/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-right: 2rem;
}
.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 0.9rem;
    flex-shrink: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
    color: #888;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    border-radius: 2px;
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 70%);
    overflow: hidden;
    padding-top: 70px;
}
.hero-particles {
    position: absolute;
    inset: 0;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}
.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6c5ce7, #00cec9, #6c5ce7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    margin-bottom: 1rem;
    letter-spacing: 4px;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}
.hero-subtitle {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}
.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === HERO ABOUT === */
.hero-about {
    margin: 2.5rem 0;
    max-width: 800px;
}
.hero-about-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.hero-about-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.hero-about-desc strong {
    color: #00cec9;
}
.hero-about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    text-align: center;
}
.hero-about-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    transition: transform 0.3s, border-color 0.3s;
}
.hero-about-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 92, 231, 0.3);
}
.hero-about-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}
.hero-about-card h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.hero-about-card p {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .hero-about-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}
.btn-play {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
}
.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}
.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
}

/* === SECTIONS === */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.section-dark {
    background: rgba(255, 255, 255, 0.02);
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 2rem);
    padding-right: calc((100% - 1200px) / 2 + 2rem);
}
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
}

/* === GAMES === */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
}
.game-card.featured {
    border-color: rgba(108, 92, 231, 0.3);
}
.game-banner {
    height: 250px;
    position: relative;
    overflow: hidden;
}
.game-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.maze-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.maze-bg::before {
    content: 'THE MAZE RUNNER';
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.maze-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px);
}
.game-banner-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}
.game-badge {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.badge-wip {
    background: linear-gradient(135deg, #e17055, #d63031) !important;
}
.btn-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}
.game-info {
    padding: 1.5rem;
}
.game-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.game-info p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.game-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tag {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.game-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.feature {
    color: #666;
    font-size: 0.85rem;
    padding-left: 1rem;
    position: relative;
}
.feature::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00cec9;
    font-weight: bold;
}

.freeform-bg {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #00cec9 100%);
}
.freeform-bg::before {
    content: 'FREEFORM';
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.dronewars-bg {
    background: linear-gradient(135deg, #2d3436 0%, #d63031 50%, #e17055 100%);
}
.dronewars-bg::before {
    content: 'DRONE WARS';
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-data {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    border: 1px solid rgba(108, 92, 231, 0.3);
    width: 100%;
    text-align: center;
    padding: 0.7rem 1.5rem;
}
.btn-data:hover {
    background: rgba(108, 92, 231, 0.25);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
    transform: translateY(-2px);
}

/* === GAME DATA === */
.game-data-panel:empty,
.player-stats-panel:empty {
    display: none;
}
.game-data-panel {
    margin-top: 0.5rem;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
}
.game-data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.game-data-row:last-child {
    border-bottom: none;
}
.game-data-val {
    color: #fff;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

/* === PLAYER STATS === */
.btn-stats {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: white;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1.5rem;
    margin-top: 0.5rem;
}
.btn-stats:hover {
    box-shadow: 0 8px 25px rgba(214, 48, 49, 0.3);
    transform: translateY(-2px);
}
.player-stats-card {
    margin-top: 0.5rem;
    background: rgba(214, 48, 49, 0.08);
    border: 1px solid rgba(214, 48, 49, 0.2);
    border-radius: 8px;
    padding: 1rem;
}
.player-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.player-stats-title {
    color: #e17055;
    font-weight: 700;
    font-size: 0.9rem;
}
.player-stats-level {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
}
.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.player-stat {
    text-align: center;
}
.player-stat-val {
    display: block;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}
.player-stat-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.player-stats-ships {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ship-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}
.ship-tag {
    background: rgba(225, 112, 85, 0.15);
    color: #e17055;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}
.player-stats-loading {
    text-align: center;
    color: #888;
    padding: 1rem;
    font-size: 0.85rem;
}
.player-stats-error {
    text-align: center;
    color: #e17055;
    padding: 0.8rem;
    background: rgba(214, 48, 49, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* === LEGAL PAGES === */
.legal-content {
    color: #aaa;
    line-height: 1.8;
}
.legal-content h3 {
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.legal-content p {
    margin-bottom: 0.8rem;
}
.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}
.legal-content li {
    margin-bottom: 0.3rem;
}

/* === EVENTS === */
.events-container {
    max-width: 800px;
    margin: 2rem auto 0;
}
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: border-color 0.3s;
}
.event-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
}
.event-date {
    text-align: center;
    min-width: 70px;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
    border-radius: 10px;
}
.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #00cec9;
    font-weight: 600;
    letter-spacing: 1px;
}
.event-date .day {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}
.event-details h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.event-details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}
.event-time {
    color: #a29bfe;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.3rem;
}
.event-card.live {
    border-color: rgba(0, 184, 148, 0.5);
    position: relative;
}
.event-card.live::before {
    content: 'LIVE';
    position: absolute;
    top: -8px;
    right: 1rem;
    background: #00b894;
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.no-events {
    text-align: center;
    padding: 3rem;
    color: #555;
}
.no-events-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.no-events .sub {
    font-size: 0.85rem;
    color: #444;
    margin-top: 0.5rem;
}


/* === TOOLS === */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.15);
}
.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}
.tool-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.tool-desc {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.tool-output:empty {
    display: none;
}
.tool-output {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.18);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.8;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.tool-output:not(:empty):hover {
    border-color: rgba(108, 92, 231, 0.35);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.1);
}
.tool-copy-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    color: #888;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    opacity: 0;
    z-index: 2;
}
.tool-output:hover .tool-copy-btn {
    opacity: 1;
}
.tool-copy-btn:hover {
    background: rgba(108,92,231,0.2);
    color: #a29bfe;
    border-color: rgba(108,92,231,0.4);
}
.tool-copy-btn.copied {
    background: rgba(0,184,148,0.2);
    color: #00b894;
    border-color: rgba(0,184,148,0.4);
    opacity: 1;
}
.tool-label {
    display: block;
    color: #999;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    text-align: left;
}
.tool-input {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.tool-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 92, 231, 0.25);
}
.tool-input:focus {
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
    background: rgba(255, 255, 255, 0.07);
}
.tool-input::placeholder {
    color: #555;
    transition: color 0.2s;
}
.tool-input:focus::placeholder {
    color: #666;
}

/* === Custom Color Picker (inline) === */
.color-picker-wrapper {
    width: 100%;
    margin-bottom: 1rem;
}
.color-swatch-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}
.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.color-hex-label {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ccc;
    letter-spacing: 0.5px;
    flex: 1;
}
.color-canvas-area {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 8px;
    cursor: crosshair;
    margin-bottom: 0.6rem;
    overflow: hidden;
}
.color-canvas-area canvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
}
.color-hue-slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 0.6rem;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.color-hue-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.color-hue-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.color-inputs-row {
    display: flex;
    gap: 0.4rem;
}
.color-inputs-row input {
    flex: 1;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.color-inputs-row input:focus {
    border-color: rgba(108, 92, 231, 0.5);
}
.color-inputs-row label {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 0.65rem;
    margin-top: 0.15rem;
}
/* Hide native color input when custom is active */
input[type="color"].tool-input {
    display: none !important;
}

/* === Textarea refinements === */
textarea.tool-input {
    border-radius: 10px;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    min-height: 80px;
}
textarea.tool-input::-webkit-scrollbar {
    width: 5px;
}
textarea.tool-input::-webkit-scrollbar-track {
    background: transparent;
}
textarea.tool-input::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 10px;
}

/* === Number input spinner removal + style === */
.tool-input[type="number"]::-webkit-inner-spin-button,
.tool-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tool-input[type="number"] {
    -moz-appearance: textfield;
}
/* === Custom Dropdown === */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    user-select: none;
}
.custom-dropdown .dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.custom-dropdown .dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(108, 92, 231, 0.35);
}
.custom-dropdown.open .dropdown-selected {
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.custom-dropdown .dropdown-arrow {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #888;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
.custom-dropdown .dropdown-arrow svg {
    width: 12px;
    height: 12px;
}
.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: #6c5ce7;
}
.custom-dropdown .dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #16162a;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.custom-dropdown.open .dropdown-options {
    max-height: 240px;
    overflow-y: auto;
    opacity: 1;
}
.custom-dropdown .dropdown-option {
    padding: 0.55rem 1rem;
    color: #ccc;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, padding-left 0.2s;
    border-left: 2px solid transparent;
}
.custom-dropdown .dropdown-option:hover {
    background: rgba(108, 92, 231, 0.15);
    color: #fff;
    padding-left: 1.2rem;
    border-left-color: #6c5ce7;
}
.custom-dropdown .dropdown-option.selected {
    background: rgba(108, 92, 231, 0.2);
    color: #fff;
    border-left-color: #6c5ce7;
}
.custom-dropdown .dropdown-options::-webkit-scrollbar {
    width: 5px;
}
.custom-dropdown .dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-dropdown .dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 10px;
}
.custom-dropdown .dropdown-options::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
}
/* Hide the native select when custom dropdown is active */
.tool-select {
    display: none;
}
.btn-tool {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, filter 0.25s;
    position: relative;
    overflow: hidden;
}
.btn-tool::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.btn-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.35);
    filter: brightness(1.1);
}
.btn-tool:hover::after {
    opacity: 1;
}
.btn-tool:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

/* === FOOTER === */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    text-align: center;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    color: #444;
    font-size: 0.8rem;
}

/* === GLOBAL PARTICLES === */
.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.g-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* === NAVBAR SCROLLED === */
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    border-bottom-color: rgba(108, 92, 231, 0.15);
}
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === EVENT EXTRAS === */
.event-date-badge {
    min-width: 60px;
    text-align: center;
    padding: 0.6rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
    border-radius: 10px;
    flex-shrink: 0;
}
.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #00cec9;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
}
.event-day {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    display: block;
}
.event-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.event-time {
    color: #a29bfe !important;
    font-size: 0.85rem;
    font-weight: 500;
}
.event-desc {
    color: #888 !important;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}
.event-game {
    display: inline-block;
    margin-top: 0.4rem;
    background: rgba(0, 206, 201, 0.15);
    color: #00cec9;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.event-countdown {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #6c5ce7;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}
.no-events {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === AUTH === */
/* === DONATE BUTTON & MENU === */
.btn-donate {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
    margin-right: 0.8rem;
    position: relative;
}
.btn-donate:hover {
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transform: translateY(-1px);
}
.donate-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.8rem;
    min-width: 240px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1001;
}
.donate-menu.open {
    display: block;
}
.donate-menu-header {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-align: center;
}
.donate-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.3rem;
}
.donate-option:hover {
    background: rgba(255,255,255,0.05);
}
.donate-option-icon {
    font-size: 1.3rem;
}
.donate-option-img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.donate-option-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
.donate-option-desc {
    color: #666;
    font-size: 0.75rem;
}
.donate-note {
    color: #555;
    font-size: 0.7rem;
    text-align: center;
    margin-top: 0.3rem;
}

.nav-auth {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}
.btn-login {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}
.btn-login:hover {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    transform: translateY(-1px);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(108, 92, 231, 0.5);
}
.user-name {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}
.btn-logout {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}
.btn-rank {
    pointer-events: none;
    background: linear-gradient(135deg, #00b894, #00cec9);
}
.btn-admin {
    background: rgba(108, 92, 231, 0.15);
    color: #a29bfe;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(108, 92, 231, 0.3);
    transition: all 0.3s;
    margin-right: 0.5rem;
    white-space: nowrap;
}
.btn-admin:hover {
    background: rgba(108, 92, 231, 0.25);
    border-color: rgba(108, 92, 231, 0.5);
    color: #fff;
}

/* === DESIGN STUDIO === */
.design-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
    position: relative;
    z-index: 1;
}
.nav-back {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}
.nav-back:hover { color: #fff; }

/* Design Tabs */
.design-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.design-tab {
    padding: 0.6rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.design-tab:hover { color: #fff; border-color: rgba(108,92,231,0.3); }
.design-tab.active {
    background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,206,201,0.2));
    border-color: rgba(108,92,231,0.4);
    color: #fff;
}
.design-tab-content { display: none; }
.design-tab-content.active { display: block; }

/* Template Filters */
.template-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.filter-btn {
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover { color: #fff; }
.filter-btn.active {
    background: rgba(108,92,231,0.15);
    border-color: rgba(108,92,231,0.4);
    color: #a29bfe;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}
.template-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(108,92,231,0.15);
    border-color: rgba(108,92,231,0.3);
}
.template-preview {
    height: 160px;
    background: #0d0d1a;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.template-info {
    padding: 1rem;
    text-align: center;
}
.template-icon { font-size: 1.5rem; display: block; margin-bottom: 0.4rem; }
.template-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
.template-info p { color: #666; font-size: 0.8rem; margin-bottom: 0.5rem; }
.template-category-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}
.template-category-tag.roblox { background: rgba(108,92,231,0.15); color: #a29bfe; }
.template-category-tag.general { background: rgba(0,206,201,0.15); color: #00cec9; }

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 200px 1fr 260px;
    gap: 1rem;
    min-height: 500px;
}
.editor-sidebar, .editor-properties {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1rem;
    overflow-y: auto;
    max-height: 600px;
}
.editor-sidebar h4, .editor-properties h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #a29bfe;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-section { margin-bottom: 1.5rem; }

/* Toolbox */
.toolbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.toolbox-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.6rem 0.3rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #aaa;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.toolbox-btn:hover { background: rgba(108,92,231,0.15); border-color: rgba(108,92,231,0.3); color: #fff; }
.toolbox-icon { font-size: 1.2rem; }

/* Layers */
.layer-list { display: flex; flex-direction: column; gap: 2px; }
.layer-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    color: #999;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}
.layer-item:hover { background: rgba(255,255,255,0.04); color: #ddd; }
.layer-item.active {
    background: rgba(108,92,231,0.12);
    border-left-color: #6c5ce7;
    color: #fff;
}
.layer-type { font-size: 0.9rem; opacity: 0.6; width: 16px; text-align: center; flex-shrink: 0; }
.layer-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Canvas */
.editor-canvas-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a12;
}
.canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.toolbar-btn {
    padding: 0.3rem 0.7rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #aaa;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.toolbar-btn:hover { background: rgba(108,92,231,0.15); color: #fff; }
.toolbar-sep { width: 1px; height: 20px; background: rgba(255,255,255,0.08); margin: 0 0.2rem; }
.editor-canvas {
    position: relative;
    margin: 1rem auto;
    background: #111118;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 10px 10px;
    border: 1px dashed rgba(255,255,255,0.1);
    min-height: 350px;
}
.editor-canvas.no-grid { background-image: none; }
.canvas-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Canvas Elements */
.canvas-element {
    position: absolute;
    cursor: move;
    box-sizing: border-box;
    transition: box-shadow 0.15s;
}
.canvas-element:hover { box-shadow: 0 0 0 1px rgba(108,92,231,0.4); }
.canvas-element.selected { outline: 2px dashed #00cec9; outline-offset: 1px; }

/* Resize Handles */
.resize-handle {
    position: absolute;
    background: #6c5ce7;
    border: 1px solid #fff;
    border-radius: 2px;
    z-index: 100;
}

/* Properties Panel */
.props-empty {
    color: #555;
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 0;
}
.prop-group { margin-bottom: 0.8rem; }
.prop-group .tool-input { margin-bottom: 0.3rem; padding: 0.45rem 0.7rem; font-size: 0.82rem; }
.prop-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.prop-mini-label { color: #666; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.3px; }
.prop-type-badge {
    display: inline-block;
    background: rgba(108,92,231,0.15);
    color: #a29bfe;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.prop-color-row { display: flex; gap: 0.4rem; align-items: center; }
.prop-color-input {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
}

/* Code Output */
.code-actions {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    align-items: center;
}
.code-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    color: #ccc;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
    max-height: 600px;
    overflow-y: auto;
}

/* Export Grid */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.export-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}
.export-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108,92,231,0.3);
}
.export-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.export-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.4rem;
}
.export-card p { color: #666; font-size: 0.8rem; margin-bottom: 1rem; }
.export-options { margin-bottom: 0.8rem; }
.export-options .tool-input { margin-bottom: 0.5rem; }
.export-btn-row { display: flex; gap: 0.5rem; justify-content: center; }

/* Responsive Design Editor */
@media (max-width: 1100px) {
    .editor-layout { grid-template-columns: 1fr; }
    .editor-sidebar, .editor-properties { max-height: none; }
    .editor-sidebar { order: -1; }
    .editor-properties { order: 1; }
}
@media (max-width: 600px) {
    .template-grid { grid-template-columns: 1fr; }
    .design-tabs { flex-wrap: wrap; }
    .canvas-toolbar { gap: 0.3rem; }
    .toolbar-btn { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
}

/* === TABLET === */
@media (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .nav-link { font-size: 0.85rem; }
    .btn-donate { font-size: 0.75rem; padding: 0.4rem 0.8rem; margin-right: 0.5rem; }
    .btn-login { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .hero-title { font-size: 3.5rem; }
}

/* === MOBILE === */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-hamburger { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .game-features { grid-template-columns: 1fr; }
    .search-box { flex-direction: column; }
    .player-card { flex-direction: column; text-align: center; }
    .event-card { flex-direction: column; text-align: center; }
    .section-dark {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .user-name { display: none; }
    .nav-auth { margin-right: 0.5rem; }
    .btn-login { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .btn-donate { font-size: 0.75rem; padding: 0.35rem 0.7rem; margin-right: 0.4rem; }
    .footer-links { flex-wrap: wrap; gap: 1rem; }
    .hero-about-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}

/* === THEME TOGGLE === */
.theme-toggle {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #aaa;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-right: 0.5rem;
}
.theme-toggle:hover { background: rgba(108,92,231,0.2); color: #fff; }

/* === LIGHT THEME === */
[data-theme="light"] {
    background: #f5f5f7 !important;
    color: #2d2d3a !important;
}

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.92) !important;
    border-bottom-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255,255,255,0.97) !important;
    border-bottom-color: rgba(108,92,231,0.12) !important;
}
[data-theme="light"] .nav-link { color: #555 !important; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #1a1a2e !important; }
[data-theme="light"] .nav-hamburger span { background: #1a1a2e !important; }
[data-theme="light"] .nav-links.open {
    background: rgba(255,255,255,0.98) !important;
    border-bottom-color: rgba(0,0,0,0.06) !important;
}

/* Hero */
[data-theme="light"] .hero {
    background: radial-gradient(ellipse at center, #eeeef5 0%, #f5f5f7 70%) !important;
}
[data-theme="light"] .hero-subtitle { color: #666 !important; }
[data-theme="light"] .stat-number { color: #1a1a2e !important; }
[data-theme="light"] .stat-label { color: #777 !important; }
[data-theme="light"] .hero-about-desc { color: #555 !important; }
[data-theme="light"] .hero-about-card {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
[data-theme="light"] .hero-about-card h3 { color: #1a1a2e !important; }
[data-theme="light"] .hero-about-card p { color: #666 !important; }

/* Sections */
[data-theme="light"] .section-dark {
    background: rgba(0,0,0,0.015) !important;
}
[data-theme="light"] .section-desc { color: #777 !important; }

/* Cards — universal */
[data-theme="light"] .game-card,
[data-theme="light"] .tool-card,
[data-theme="light"] .event-card,
[data-theme="light"] .admin-card,
[data-theme="light"] .admin-stat,
[data-theme="light"] .submit-form,
[data-theme="light"] .idea-card {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
[data-theme="light"] .game-card:hover,
[data-theme="light"] .tool-card:hover {
    box-shadow: 0 8px 30px rgba(108,92,231,0.1) !important;
}

/* Text in cards */
[data-theme="light"] .game-info h3,
[data-theme="light"] .tool-card h3,
[data-theme="light"] .event-title,
[data-theme="light"] .idea-title,
[data-theme="light"] .admin-card h3,
[data-theme="light"] .vote-count { color: #1a1a2e !important; }
[data-theme="light"] .game-info p,
[data-theme="light"] .tool-desc,
[data-theme="light"] .event-desc,
[data-theme="light"] .idea-desc { color: #666 !important; }
[data-theme="light"] .idea-author { color: #888 !important; }

/* Inputs */
[data-theme="light"] .tool-input,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select,
[data-theme="light"] .comment-input {
    background: #f8f8fa !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .tool-input:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .comment-input:focus {
    background: #fff !important;
    border-color: rgba(108,92,231,0.5) !important;
}
[data-theme="light"] .tool-input::placeholder,
[data-theme="light"] .comment-input::placeholder { color: #999 !important; }
[data-theme="light"] .tool-label,
[data-theme="light"] .form-group label { color: #777 !important; }

/* Tool output */
[data-theme="light"] .tool-output {
    background: rgba(108,92,231,0.05) !important;
    border-color: rgba(108,92,231,0.12) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .tool-copy-btn {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #777 !important;
}

/* Dropdowns */
[data-theme="light"] .custom-dropdown .dropdown-selected {
    background: #f8f8fa !important;
    border-color: rgba(0,0,0,0.12) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .custom-dropdown .dropdown-options {
    background: #fff !important;
    border-color: rgba(0,0,0,0.1) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .custom-dropdown .dropdown-option { color: #333 !important; }
[data-theme="light"] .custom-dropdown .dropdown-option:hover {
    background: rgba(108,92,231,0.08) !important;
}
[data-theme="light"] .custom-dropdown .dropdown-arrow { color: #999 !important; }

/* Game data panels */
[data-theme="light"] .game-data-panel {
    background: rgba(108,92,231,0.04) !important;
    border-color: rgba(108,92,231,0.12) !important;
}
[data-theme="light"] .game-data-row {
    color: #666 !important;
    border-bottom-color: rgba(0,0,0,0.05) !important;
}
[data-theme="light"] .game-data-val { color: #1a1a2e !important; }
[data-theme="light"] .player-stats-card {
    background: rgba(214,48,49,0.04) !important;
    border-color: rgba(214,48,49,0.12) !important;
}
[data-theme="light"] .player-stats-header { border-bottom-color: rgba(0,0,0,0.06) !important; }
[data-theme="light"] .player-stat-val { color: #1a1a2e !important; }
[data-theme="light"] .player-stat-label { color: #777 !important; }
[data-theme="light"] .player-stats-ships { border-top-color: rgba(0,0,0,0.06) !important; }
[data-theme="light"] .ship-tag {
    background: rgba(225,112,85,0.1) !important;
}

/* Events */
[data-theme="light"] .event-date-badge {
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.1)) !important;
}
[data-theme="light"] .event-countdown { color: #6c5ce7 !important; }
[data-theme="light"] .no-events { color: #888 !important; }

/* Tags */
[data-theme="light"] .tag {
    background: rgba(108,92,231,0.08) !important;
}
[data-theme="light"] .game-badge {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer */
[data-theme="light"] .footer {
    border-top-color: rgba(0,0,0,0.06) !important;
    background: #fff !important;
}
[data-theme="light"] .footer-brand { color: #1a1a2e !important; }
[data-theme="light"] .footer-links a { color: #777 !important; }
[data-theme="light"] .footer-links a:hover { color: #1a1a2e !important; }
[data-theme="light"] .footer-copy { color: #aaa !important; }

/* Auth / User */
[data-theme="light"] .user-name { color: #1a1a2e !important; }
[data-theme="light"] .nav-profile-link { color: #6c5ce7 !important; }
[data-theme="light"] .btn-logout {
    background: rgba(0,0,0,0.05) !important;
    color: #666 !important;
}
[data-theme="light"] .btn-logout:hover {
    background: rgba(231,76,60,0.1) !important;
    color: #e74c3c !important;
}
[data-theme="light"] .btn-admin {
    background: rgba(108,92,231,0.08) !important;
    border-color: rgba(108,92,231,0.2) !important;
}
[data-theme="light"] .user-avatar-small {
    border-color: rgba(108,92,231,0.3) !important;
}

/* Donate */
[data-theme="light"] .donate-menu {
    background: #fff !important;
    border-color: rgba(0,0,0,0.1) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .donate-menu-header { color: #1a1a2e !important; }
[data-theme="light"] .donate-option:hover { background: rgba(0,0,0,0.03) !important; }
[data-theme="light"] .donate-option-title { color: #1a1a2e !important; }
[data-theme="light"] .donate-option-desc { color: #888 !important; }

/* Particles */
[data-theme="light"] .g-particle { opacity: 0.15 !important; }

/* Color picker */
[data-theme="light"] .color-swatch-bar {
    background: #f8f8fa !important;
    border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .color-hex-label { color: #333 !important; }
[data-theme="light"] .color-inputs-row input {
    background: #f8f8fa !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .color-inputs-row label { color: #888 !important; }

/* Design studio */
[data-theme="light"] .editor-sidebar,
[data-theme="light"] .editor-properties {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .editor-canvas-wrapper {
    border-color: rgba(0,0,0,0.08) !important;
    background: #fafafa !important;
}
[data-theme="light"] .canvas-toolbar {
    background: #f8f8fa !important;
    border-bottom-color: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .toolbar-btn {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #555 !important;
}
[data-theme="light"] .toolbar-btn:hover {
    background: rgba(108,92,231,0.1) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .toolbox-btn {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #555 !important;
}
[data-theme="light"] .toolbox-btn:hover {
    background: rgba(108,92,231,0.08) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .layer-item { color: #666 !important; }
[data-theme="light"] .layer-item:hover { background: rgba(0,0,0,0.03) !important; }
[data-theme="light"] .layer-item.active {
    background: rgba(108,92,231,0.06) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .editor-canvas {
    background-color: #f0f0f5 !important;
    border-color: rgba(0,0,0,0.1) !important;
}
[data-theme="light"] .props-empty { color: #999 !important; }
[data-theme="light"] .code-block {
    background: #f8f8fa !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #333 !important;
}
[data-theme="light"] .template-card {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .template-card:hover {
    box-shadow: 0 8px 30px rgba(108,92,231,0.1) !important;
}
[data-theme="light"] .template-preview {
    background: #eeeef3 !important;
    border-bottom-color: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .template-info h3 { color: #1a1a2e !important; }
[data-theme="light"] .template-info p { color: #666 !important; }
[data-theme="light"] .export-card {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
}

/* Design/filter tabs */
[data-theme="light"] .design-tab,
[data-theme="light"] .filter-btn {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #666 !important;
}
[data-theme="light"] .design-tab:hover,
[data-theme="light"] .filter-btn:hover { color: #1a1a2e !important; }
[data-theme="light"] .design-tab.active {
    background: rgba(108,92,231,0.08) !important;
    border-color: rgba(108,92,231,0.25) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .filter-btn.active {
    background: rgba(108,92,231,0.08) !important;
    border-color: rgba(108,92,231,0.25) !important;
}

/* Admin panel */
[data-theme="light"] .admin-stat-num { color: #1a1a2e !important; }
[data-theme="light"] .admin-stat-label { color: #777 !important; }
[data-theme="light"] .admin-tab {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #666 !important;
}
[data-theme="light"] .admin-tab:hover { color: #1a1a2e !important; }
[data-theme="light"] .admin-tab.active {
    background: rgba(108,92,231,0.08) !important;
    border-color: rgba(108,92,231,0.25) !important;
    color: #1a1a2e !important;
}

/* Ideas page specific */
[data-theme="light"] .ideas-tab {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #666 !important;
}
[data-theme="light"] .ideas-tab.active {
    background: rgba(108,92,231,0.08) !important;
    border-color: rgba(108,92,231,0.25) !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .sort-btn { color: #777 !important; }
[data-theme="light"] .sort-btn.active {
    color: #1a1a2e !important;
    background: rgba(108,92,231,0.08) !important;
}
[data-theme="light"] .vote-btn { color: #aaa !important; }
[data-theme="light"] .vote-btn:hover { color: #6c5ce7 !important; }
[data-theme="light"] .vote-btn.voted { color: #6c5ce7 !important; }
[data-theme="light"] .btn-del { color: #aaa !important; }
[data-theme="light"] .btn-del:hover { color: #e74c3c !important; }
[data-theme="light"] .login-prompt { color: #888 !important; }
[data-theme="light"] .empty-state { color: #888 !important; }

/* Comments */
[data-theme="light"] .comments-section { border-top-color: rgba(0,0,0,0.06) !important; }
[data-theme="light"] .comment-item { border-bottom-color: rgba(0,0,0,0.05) !important; }
[data-theme="light"] .comment-text { color: #333 !important; }
[data-theme="light"] .comment-time { color: #999 !important; }

/* Play page */
[data-theme="light"] .game-select-card {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .game-select-card:hover {
    box-shadow: 0 8px 25px rgba(108,92,231,0.08) !important;
}
[data-theme="light"] .game-select-card.active {
    background: rgba(0,206,201,0.04) !important;
    border-color: rgba(0,206,201,0.3) !important;
}
[data-theme="light"] .game-select-card h3 { color: #1a1a2e !important; }
[data-theme="light"] .game-select-card p { color: #888 !important; }
[data-theme="light"] .canvas-wrapper {
    border-color: rgba(108,92,231,0.12) !important;
    background: #f0f0f5 !important;
}
[data-theme="light"] .game-controls {
    background: rgba(0,0,0,0.02) !important;
    border-color: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .game-controls span { color: #777 !important; }
[data-theme="light"] .score-item {
    background: rgba(0,0,0,0.02) !important;
}
[data-theme="light"] .score-item:first-child {
    background: rgba(108,92,231,0.06) !important;
}
[data-theme="light"] .no-scores { color: #999 !important; }
[data-theme="light"] .time-btn {
    background: rgba(0,0,0,0.03) !important;
    border-color: rgba(0,0,0,0.08) !important;
    color: #666 !important;
}
[data-theme="light"] .time-btn:hover { color: #1a1a2e !important; }
[data-theme="light"] .time-btn.active {
    background: rgba(108,92,231,0.08) !important;
    border-color: rgba(108,92,231,0.25) !important;
    color: #6c5ce7 !important;
}

/* Global leaderboard */
[data-theme="light"] .global-lb {
    background: #fff !important;
    border-color: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .lb-item {
    background: rgba(0,0,0,0.02) !important;
}
[data-theme="light"] .lb-item:first-child {
    background: rgba(108,92,231,0.06) !important;
}
[data-theme="light"] .lb-name { color: #333 !important; }
[data-theme="light"] .lb-rank { color: #999 !important; }
[data-theme="light"] .lb-empty { color: #999 !important; }

/* GOTW banner */
[data-theme="light"] .gotw-banner {
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,206,201,0.08)) !important;
    border-color: rgba(108,92,231,0.15) !important;
}
[data-theme="light"] .gotw-title { color: #1a1a2e !important; }
[data-theme="light"] .gotw-desc { color: #555 !important; }

/* Legal pages */
[data-theme="light"] .legal-content { color: #555 !important; }
[data-theme="light"] .legal-content h3 { color: #1a1a2e !important; }

/* Theme toggle button */
[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #555 !important;
}
[data-theme="light"] .theme-toggle:hover {
    background: rgba(108,92,231,0.1) !important;
    color: #6c5ce7 !important;
}

/* === NOTIFICATIONS BELL === */
.notif-wrapper {
    position: relative;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.notif-bell {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #aaa;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s;
    position: relative;
}
.notif-bell:hover { background: rgba(108,92,231,0.2); color: #fff; }
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1001;
}
.notif-dropdown.open { display: block; }
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.notif-header-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #fff;
}
.notif-mark-read {
    background: none;
    border: none;
    color: #6c5ce7;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.notif-mark-read:hover { color: #a29bfe; }
.notif-item {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
    cursor: pointer;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item.unread { border-left: 3px solid #6c5ce7; }
.notif-item-msg {
    color: #ccc;
    font-size: 0.82rem;
    line-height: 1.4;
}
.notif-item.unread .notif-item-msg { color: #fff; }
.notif-item-time {
    color: #555;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}
.notif-empty {
    padding: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}
[data-theme="light"] .notif-dropdown {
    background: #fff !important;
    border-color: rgba(0,0,0,0.1) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
}
[data-theme="light"] .notif-header {
    border-bottom-color: rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .notif-header-title { color: #1a1a2e !important; }
[data-theme="light"] .notif-item { border-bottom-color: rgba(0,0,0,0.04) !important; }
[data-theme="light"] .notif-item:hover { background: rgba(0,0,0,0.02) !important; }
[data-theme="light"] .notif-item-msg { color: #555 !important; }
[data-theme="light"] .notif-item.unread .notif-item-msg { color: #1a1a2e !important; }
[data-theme="light"] .notif-item-time { color: #999 !important; }
[data-theme="light"] .notif-empty { color: #999 !important; }
[data-theme="light"] .notif-bell {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: #555 !important;
}
[data-theme="light"] .notif-bell:hover {
    background: rgba(108,92,231,0.1) !important;
    color: #6c5ce7 !important;
}

/* === COMMENTS === */
.comments-section {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
}
.comments-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #a29bfe;
    margin-bottom: 0.8rem;
}
.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.comment-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.comment-input:focus { border-color: rgba(108,92,231,0.5); }
.comment-submit {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.comment-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(108,92,231,0.2);
}
.comment-body { flex: 1; min-width: 0; }
.comment-author {
    color: #a29bfe;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.comment-text {
    color: #ccc;
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-word;
}
.comment-time {
    color: #555;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}
.comment-delete {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0.2rem;
}
.comment-delete:hover { color: #e74c3c; }

/* === GAME OF THE WEEK === */
.gotw-banner {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.15));
    border: 1px solid rgba(108,92,231,0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.gotw-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00cec9;
    margin-bottom: 0.5rem;
}
.gotw-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.gotw-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.gotw-play {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.gotw-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.4);
}

/* === GLOBAL LEADERBOARD (play page) === */
.global-lb {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.2rem;
}
.global-lb h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #00cec9;
    margin-bottom: 0.8rem;
}
.lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
}
.lb-item:first-child { background: rgba(108,92,231,0.1); }
.lb-rank { color: #666; width: 30px; font-weight: 600; }
.lb-item:first-child .lb-rank { color: #f1c40f; }
.lb-name { color: #ccc; flex: 1; margin: 0 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score {
    color: #00cec9;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}
.lb-empty {
    color: #555;
    font-size: 0.82rem;
    text-align: center;
    padding: 1rem;
}
.lb-login-hint {
    color: #888;
    font-size: 0.78rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* === ACHIEVEMENT TOAST === */
.achievement-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(108,92,231,0.95), rgba(0,206,201,0.95));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInRight 0.4s ease-out;
    max-width: 350px;
}
.achievement-toast-icon { font-size: 1.8rem; }
.achievement-toast-text h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}
.achievement-toast-text p {
    font-size: 0.75rem;
    opacity: 0.9;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === PROFILE LINK IN NAVBAR === */
.nav-profile-link {
    color: #a29bfe;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
    transition: color 0.3s;
}
.nav-profile-link:hover { color: #fff; }
