        /* --- CORE & VARIABLES --- */
        :root {
            --primary: #facc15;
            --secondary: #eab308;
            --accent: #ca8a04;
            --bg-dark: #020617;
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-bg: rgba(20, 15, 5, 0.75);
            --neon-blue: #fef08a;
            --neon-purple: #fde047;
        }

        /* --- VISUAL FX --- */
        @keyframes coin-pop { 0% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.4); filter: brightness(1.5); } 100% { transform: scale(1); filter: brightness(1); } }
        .flash-coins { animation: coin-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #facc15 !important; text-shadow: 0 0 15px gold; }
        .flash-gems { animation: coin-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); color: #d8b4fe !important; text-shadow: 0 0 15px #a855f7; }

        @keyframes shiny-wipe { 0% { left: -100%; opacity: 0; } 50% { opacity: 0.5; } 100% { left: 200%; opacity: 0; } }


        body {
            margin: 0;
            overflow: hidden;
            background: radial-gradient(circle at 50% 120%, #1e1b4b 0%, #020617 60%, #000000 100%);
            font-family: 'Rajdhani', sans-serif;
            color: white;
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
            -webkit-tap-highlight-color: transparent;
            height: 100vh;
        }

        /* Subtle animated background grid */
        body::before {
            content: '';
            position: absolute;
            inset: 0;
            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: 40px 40px;
            pointer-events: none;
            z-index: 0;
            mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
            -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
        }

        canvas { display: block; position: relative; z-index: 1; }

        /* --- TYPOGRAPHY --- */
        .font-tech { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; text-transform: uppercase; }

        /* --- PREMIUM GLASS UI --- */
        .glass-panel {
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.65) 100%);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        /* Subtle shine effect on panels */
        .glass-panel::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
            transform: skewX(-25deg);
            pointer-events: none;
            transition: 0.5s;
        }
        .glass-panel:hover::before { left: 100%; transition: 0.7s; }

        .glass-nav {
            background: rgba(2, 6, 23, 0.9);
            backdrop-filter: blur(30px);
            border-top: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 -4px 30px rgba(0,0,0,0.6);
        }

        /* --- BUTTONS & INTERACTIVE --- */
        .glass-btn {
            position: relative;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
            border: 1px solid rgba(255,255,255,0.12);
            transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            cursor: pointer;
        }

        .glass-btn:active { transform: scale(0.96); filter: brightness(1.2); }
        .glass-btn::after { content: ''; position: absolute; top:0; left:-100%; width:100%; height:100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); transition: 0s; pointer-events: none; }
        .glass-btn:active::after { animation: shiny-wipe 0.4s; transition: 0s; }
        .glass-btn:hover {
            border-color: rgba(255,255,255,0.4);
            background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
            box-shadow: 0 0 15px rgba(255,255,255,0.1);
        }

        .glass-btn.selected {
            background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.1)) !important;
            border-color: #22d3ee !important;
            box-shadow: 0 0 20px rgba(34, 211, 238, 0.25) inset, 0 0 10px rgba(34, 211, 238, 0.3) !important;
            color: #fff !important;
            text-shadow: 0 0 5px rgba(34, 211, 238, 0.8) !important;
        }

        /* --- NAVIGATION --- */
        .nav-item {
            color: #64748b;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            opacity: 0.7;
        }

        .nav-item:hover { opacity: 1; color: #94a3b8; }

        .nav-item.active {
            color: #22d3ee;
            opacity: 1;
            transform: translateY(-8px);
            text-shadow: 0 0 15px rgba(34, 211, 238, 0.8);
        }

        .nav-item.active .icon {
            transform: scale(1.25);
            filter: drop-shadow(0 0 8px rgba(34,211,238,0.6));
        }

        .nav-item.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px; height: 5px;
            background: #22d3ee;
            border-radius: 50%;
            box-shadow: 0 0 10px #22d3ee, 0 0 20px #22d3ee;
        }

        /* --- BADGES & TAGS --- */
        .currency-badge {
            background: rgba(0,0,0,0.6);
            padding: 5px 12px;
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.15);
            font-family: 'Orbitron';
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

        .rarity-badge {
            position: absolute; top: 6px; right: 6px;
            padding: 4px 8px; border-radius: 6px;
            font-size: 9px; font-weight: 900;
            text-transform: uppercase; z-index: 10;
            border: 1px solid rgba(255,255,255,0.3);
            box-shadow: 0 2px 5px rgba(0,0,0,0.5);
            letter-spacing: 1px;
            backdrop-filter: blur(4px);
            text-shadow: 0 1px 2px black;
        }

        /* SAISON 2 THEME: CYAN/PURPLE GLOW */
        .season-gold {
            border-color: #fbbf24 !important;
            background: linear-gradient(145deg, rgba(234, 179, 8, 0.15), rgba(251, 191, 36, 0.1)) !important;
            box-shadow: 0 0 25px rgba(234, 179, 8, 0.2) !important;
            animation: pulse-border 4s infinite ease-in-out;
        }
        @keyframes pulse-border { 0%, 100% { border-color: rgba(34,211,238,0.5); box-shadow: 0 0 20px rgba(34,211,238,0.2); } 50% { border-color: rgba(168,85,247,0.7); box-shadow: 0 0 30px rgba(168,85,247,0.3); } }

        .locked { opacity: 0.6; filter: grayscale(1) brightness(0.6); cursor: not-allowed; position: relative; }
        .locked::after { content: '🔒'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 24px; opacity: 0.8; filter: drop-shadow(0 0 5px black); }

        /* --- ANIMATIONS --- */
        @keyframes gainFlash { 0% { transform: scale(1.0); filter: brightness(1); } 50% { transform: scale(1.2); filter: brightness(1.7); text-shadow: 0 0 20px currentColor; } 100% { transform: scale(1.0); } }
        .currency-badge.flash-coins { animation: gainFlash 0.4s ease-out; color: #fbbf24; border-color: #fbbf24; }
        .currency-badge.flash-gems { animation: gainFlash 0.4s ease-out; color: #a855f7; border-color: #a855f7; }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
        .animate-fadeIn { animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

        @keyframes shine {
            0% { left: -100%; opacity: 0; }
            50% { opacity: 0.5; }
            100% { left: 100%; opacity: 0; }
        }
        .btn-shine { position: relative; overflow: hidden; }
        .btn-shine::after {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 50%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: skewX(-20deg);
            animation: shine 3s infinite;
            pointer-events: none;
        }

        /* --- VFX LAYERS --- */
        #vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.95) 130%); z-index: 5; }
        #gas-overlay { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle, transparent 30%, rgba(34, 197, 94, 0.2) 90%); z-index: 4; transition: opacity 0.5s; mix-blend-mode: hard-light; }
        #flash-layer { position: absolute; inset: 0; pointer-events: none; background: white; opacity: 0; transition: opacity 0.05s; z-index: 100; mix-blend-mode: overlay; }

        /* --- CONTROLS --- */
        .joystick-zone { position: absolute; width: 140px; height: 140px; pointer-events: auto; z-index: 50; opacity: 0; transition: opacity 0.2s; }
        .joystick-zone.active { opacity: 1; }
        .stick-base {
            width: 120px; height: 120px; border-radius: 50%;
            background: rgba(255,255,255,0.03);
            border: 2px solid rgba(255,255,255,0.08);
            position: absolute; bottom: 50px; pointer-events: auto;
            backdrop-filter: blur(4px);
            transition: all 0.2s;
            box-shadow: 0 0 15px rgba(0,0,0,0.2);
        }
        .stick-base.active { border-color: rgba(34, 211, 238, 0.5); background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%); box-shadow: 0 0 25px rgba(34, 211, 238, 0.2); }
        .stick-knob { width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #cbd5e1); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 4px 10px rgba(0,0,0,0.5); }

        .action-btn {
            position: absolute; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            z-index: 60; pointer-events: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            transition: all 0.1s; border: 1px solid rgba(255,255,255,0.2);
            backdrop-filter: blur(12px);
        }
        .action-btn:active { transform: scale(0.9); box-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-top: 5px;}

        /* --- PASS TRACK --- */
        .pass-track-container { overflow-x: auto; padding: 40px 20px; scroll-behavior: smooth; position: relative; white-space: nowrap; -webkit-overflow-scrolling: touch; width: 100%; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); }
        .pass-wrapper { display: inline-flex; flex-direction: column; min-width: 100%; position: relative; gap: 5px; padding: 0 40px; }
        .pass-track-main-line { position: absolute; left: 0; right: 0; top: 50%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; z-index: 0; transform: translateY(-50%); border: 1px solid rgba(255,255,255,0.05); }
        .pass-row { display: flex; gap: 5px; align-items: center; position: relative; z-index: 10; padding: 10px 0; }

        .pass-step {
            width: 90px; height: 110px;
            background: #1e293b;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        }

        .pass-step.active { transform: scale(1.15) translateY(-5px); border-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.2); z-index: 20; background: #334155; }
        .pass-step.claimed { opacity: 0.6; border-color: #22c55e; background: rgba(34, 197, 94, 0.05); filter: grayscale(0.5); }
        .pass-step.pro { background: radial-gradient(circle at top right, #312e81, #0f172a); border-color: rgba(168, 85, 247, 0.3); }
        .pass-step.active.pro { border-color: #d8b4fe; box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); }

        .check-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #22c55e; background: rgba(0,0,0,0.8); border-radius: 16px; backdrop-filter: blur(2px); animation: popIn 0.3s; z-index: 25; }

        /* --- INTRO & UTILS --- */
/* Intro Styles */
        .intro-text { filter: drop-shadow(0 0 20px rgba(168,85,247,0.5)); animation: introShine 3s infinite; }
        @keyframes introShine { 0% { filter: hue-rotate(0deg) drop-shadow(0 0 20px rgba(168,85,247,0.5)); } 50% { filter: hue-rotate(30deg) drop-shadow(0 0 40px rgba(34,211,238,0.8)); } 100% { filter: hue-rotate(0deg) drop-shadow(0 0 20px rgba(168,85,247,0.5)); } }
        .intro-bg { background: radial-gradient(circle at center, #1e1b4b 0%, #000 70%); }

        @keyframes slideIn { from { opacity:0; transform:translateX(-50px); } to { opacity:1; transform:translateX(0); } }
        @keyframes popIn { 0% { transform: scale(0); } 80% { transform: scale(1.2); } 100% { transform: scale(1); } }

        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .safe-pb { padding-bottom: max(90px, env(safe-area-inset-bottom) + 90px); }
        .menu-anim { background: radial-gradient(circle at 50% 30%, #172554 0%, #020617 60%); }

        /* --- FORMS --- */
        .profile-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 14px;
            color: white;
            font-family: 'Rajdhani', sans-serif;
            font-weight: bold;
            transition: all 0.3s ease;
            outline: none;
            backdrop-filter: blur(10px);
        }
        .profile-input:focus {
            background: rgba(0, 0, 0, 0.7);
            border-color: #22d3ee;
            box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
        }
        .profile-input::placeholder {
            color: rgba(255, 255, 255, 0.3);
            font-style: italic;
        }

        /* --- CUSTOM SCROLLBAR FOR DESKTOP --- */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
        /* --- SETTINGS & EXTRAS --- */
        .settings-grp { margin-bottom: 12px; }
        .settings-label { display: block; font-size: 11px; font-weight: bold; color: #94a3b8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
        .diff-btn { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; position: relative; overflow: hidden; }
        .mod-btn { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; }

        /* Rank Progress Fill */
        .rank-progress-bg { width: 100%; height: 6px; background: rgba(0,0,0,0.5); border-radius: 3px; overflow: hidden; margin-top: 5px; }
        .rank-progress-fill { height: 100%; transition: width 0.5s ease-out; box-shadow: 0 0 10px currentColor; }

        /* --- PATCH NOTES --- */
        .patch-note {
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            position: relative;
            transition: all 0.3s ease;
        }
        .patch-note:hover {
            background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent);
            padding-left: 15px;
            border-left: 2px solid #22d3ee;
        }
        .patch-note:last-child { border-bottom: none; margin-bottom: 0; }
        .patch-note h3 {
            color: #22d3ee;
            font-family: 'Orbitron';
            margin-bottom: 8px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .patch-note h3::before { content: '💠'; font-size: 10px; }
        .patch-note ul { list-style: none; padding: 0; }
        .patch-note li {
            margin-bottom: 4px;
            padding-left: 14px;
            position: relative;
            color: #ccc;
        }
        .patch-note li::before {
            content: '•';
            color: #a855f7;
            position: absolute;
            left: 0;
            font-weight: bold;
        }
