/* --- VARIABLES & RESET --- */
        :root {
            --bg-deep: #050505;
            --bg-card: rgba(18, 18, 24, 0.7);
            --gold: #D4AF37;
            --gold-light: #F4D03F;
            --gold-glow: rgba(212, 175, 55, 0.25);
            --violet-deep: #1a0a2e; /* NEW: Mystic violet */
            --violet-glow: rgba(90, 50, 150, 0.15);
            --text-main: #D0D0D5;
            --text-muted: #9A9A9F;
            --font-display: 'Cormorant SC', serif;
            --font-body: 'Inter', sans-serif;
            --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Custom cursor uniquement sur desktop avec dispositif de pointage fin */
        @media (pointer: fine) {
            body { cursor: none; }
            a, button, [role="button"], input, select, textarea, label { cursor: none; }
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            /* DA Senior: Violet-tinted cosmic gradient */
            background: linear-gradient(
                180deg, 
                #050505 0%, 
                #0a0812 20%, 
                var(--violet-deep) 50%, 
                #0a0812 80%, 
                #050505 100%
            );
            background-attachment: fixed;
            color: var(--text-main);
            font-family: var(--font-body);
            overflow-x: hidden;
            line-height: 1.8;
            position: relative;
        }

        /* Noise Texture Overlay */
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            opacity: 0.03;
            pointer-events: none;
            z-index: 0;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        /* --- CUSTOM CURSOR --- */
        .cursor-dot,
        .cursor-outline {
            position: fixed;
            top: 0;
            left: 0;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            z-index: 9999;
            pointer-events: none;
        }

        .cursor-dot {
            width: 8px;
            height: 8px;
            background-color: var(--gold);
        }

        .cursor-outline {
            width: 40px;
            height: 40px;
            border: 1px solid var(--gold);
            transition: width 0.2s, height 0.2s, background-color 0.2s;
        }

        /* --- BACKGROUND CANVAS --- */
        #starfield {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            pointer-events: none;
        }

        /* --- TYPOGRAPHY & UTILS --- */
        h1, h2, h3 {
            font-family: var(--font-display);
            font-weight: 300;
            text-transform: uppercase;
            color: var(--gold);
        }

        .highlight {
            color: #fff;
            font-weight: 500;
        }

        .accent {
            color: var(--gold-light);
            font-style: italic;
        }

        /* --- HERO SECTION --- */
        
        /* AUDIO TOGGLE */
        .audio-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(10, 10, 20, 0.6);
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 30px;
            padding: 8px 16px;
            cursor: pointer;
            z-index: 1001; /* Above Hero */
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(0,0,0,0.5);
        }
        
        .audio-toggle:hover {
            background: rgba(212, 175, 55, 0.1);
            border-color: var(--gold);
        }
        
        .audio-icon {
            display: flex;
            align-items: center;
            gap: 3px;
            height: 15px;
        }
        
        .audio-bar {
            width: 3px;
            background: var(--gold);
            height: 100%;
            border-radius: 2px;
            animation: none;
        }
        
        .audio-toggle.playing .audio-bar {
            animation: equalizer 1s infinite ease-in-out;
        }
        
        .audio-toggle.playing .audio-bar:nth-child(2) { animation-delay: 0.2s; }
        .audio-toggle.playing .audio-bar:nth-child(3) { animation-delay: 0.4s; }
        
        .audio-label {
            font-family: var(--font-body);
            font-size: 0.75rem;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 500;
        }

        @keyframes equalizer {
            0%, 100% { height: 30%; opacity: 0.5; }
            50% { height: 100%; opacity: 1; }
        }

        .hero {
            height: 100vh;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 100px 20px 20px 20px; /* Increased top padding */
            position: relative;
        }

        /* DA Senior: Pendulum Visual */
        .pendulum-container {
            position: relative;
            width: 80px;
            height: 150px;
            margin-bottom: 1rem;
            transform-origin: 50% 0;
            animation: pendulumSwing 4s ease-in-out infinite;
        }

        .divine-glow {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
            filter: blur(15px);
            animation: divineGlowPulse 2s ease-in-out infinite;
        }

        .pendulum-svg {
            position: relative;
            z-index: 2;
        }

        @keyframes pendulumSwing {
            0%, 100% { transform: rotate(-8deg); }
            50% { transform: rotate(8deg); }
        }

        @keyframes divineGlowPulse {
            0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
            50% { opacity: 1; transform: translateX(-50%) scale(1.3); }
        }

        @keyframes textPulse {
            0%, 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.2); opacity: 0.7; transform: scale(1); }
            50% { text-shadow: 0 0 20px rgba(0, 255, 136, 0.6); opacity: 1; color: #fff; transform: scale(1.02); }
        }
        
        .prompt-glow {
            animation: textPulse 2s ease-in-out infinite;
        }

        /* Social Proof Counter */
        .social-proof {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            letter-spacing: 0.1em;
        }

        .social-proof .counter {
            color: var(--gold);
            font-weight: 600;
            font-size: 1rem;
        }

        .hero-uptitle {
            display: block !important;
            font-size: 0.9rem;
            letter-spacing: 0.4em;
            color: var(--text-muted);
            margin-bottom: 2rem;
            text-transform: uppercase;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            z-index: 100;
        }

        .hero-title {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 300;
            letter-spacing: 0.12em;
            line-height: 1.1;
            margin-bottom: 2rem;
            background: linear-gradient(to right, #fff 20%, var(--gold) 40%, var(--gold-light) 60%, #fff 80%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shine 5s linear infinite;
            opacity: 0; /* Anim start */
            filter: drop-shadow(0 0 20px var(--gold-glow));
        }

        @keyframes shine {
            to { background-position: 200% center; }
        }

        .hero-cta {
            position: relative;
            padding: 1.2rem 3rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            
            /* SOLID COSMIC PREMIUM STYLE */
            background: linear-gradient(135deg, #d4af37 0%, #b8972e 50%, #a07d24 100%);
            border: none;
            border-radius: 50px;
            
            /* STRONG GLOW AURA */
            box-shadow: 
                0 0 20px rgba(212, 175, 55, 0.8),
                0 0 60px rgba(212, 175, 55, 0.4),
                0 8px 25px rgba(0, 0, 0, 0.5);
            
            /* DARK TEXT FOR CONTRAST */
            color: #0a0812;
            text-shadow: none;
            
            font-family: var(--font-display);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.4s var(--transition-smooth);
            overflow: hidden;
            opacity: 0;
            margin-top: 2rem;
            cursor: pointer;
            
            /* Idle Breathing Animation */
            animation: solidGlow 3s ease-in-out infinite; 
        }

        .hero-cta:hover {
            transform: translateY(-3px) scale(1.03);
            box-shadow: 
                0 0 35px rgba(212, 175, 55, 1),
                0 0 80px rgba(212, 175, 55, 0.6),
                0 12px 35px rgba(0, 0, 0, 0.4);
            background: linear-gradient(135deg, #e5c44a 0%, #d4af37 50%, #b8972e 100%);
        }

        @keyframes solidGlow {
            0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.4), 0 8px 25px rgba(0,0,0,0.5); }
            50% { box-shadow: 0 0 35px rgba(212, 175, 55, 1), 0 0 90px rgba(212, 175, 55, 0.6), 0 12px 35px rgba(0,0,0,0.4); }
        }

        .hero-cta.breathing {
            animation: breathSync 4s ease-in-out infinite;
            border-color: var(--gold-light);
            background: rgba(212, 175, 55, 0.1);
        }

        .hero-cta.charged {
            background: var(--gold);
            color: var(--bg-deep);
            box-shadow: 0 0 30px var(--gold-glow);
            border-color: var(--gold);
            animation: none;
            cursor: pointer;
        }

        @keyframes breathSync {
            0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.1); transform: scale(1); }
            50% { box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.3); transform: scale(1.05); }
        }

        .ritual-circle {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 100%; height: 100%;
            border-radius: 50px;
            border: 2px solid var(--gold);
            opacity: 0;
            pointer-events: none;
        }

        .hero-cta::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: var(--gold);
            transition: transform 0.4s var(--transition-smooth);
            z-index: -1;
        }

        .hero-cta:hover {
            color: var(--bg-deep);
            box-shadow: 0 0 40px var(--gold-glow);
        }

        .hero-cta:hover::before {
            transform: translateX(100%);
        }

        .scroll-indicator {
            position: relative; /* Changed from absolute to flow under text */
            margin-top: 1rem;   /* Attached closer to the text above */
            opacity: 0.6;       /* Made visible by default */
            animation: bounce 2s infinite 2s;
            cursor: pointer;
            z-index: 1;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
            40% {transform: translateY(-10px);}
            60% {transform: translateY(-5px);}
        }

        /* --- CONTENT SECTIONS (GLASSMORPHISM) --- */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        section {
            padding: 6rem 0; /* Optimized: ~96px */
            position: relative;
        }

        .glass-card {
            background: var(--bg-card);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(212, 175, 55, 0.3);
            padding: 4rem;
            border-radius: 8px;
            opacity: 0; /* GSAP Trigger */
            filter: blur(10px); /* Vision Clear Initial State */
            transform: translateY(50px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            transition: border-color 0.4s ease, box-shadow 0.4s ease;
        }

        .glass-card:hover {
            border-top-color: var(--gold);
            box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212, 175, 55, 0.08);
        }

        .section-header {
            margin-bottom: 3rem;
            border-left: 2px solid var(--gold);
            padding-left: 2rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--gold) 0%, var(--gold) 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            transition: background-position 0s;
        }

        .section-header h2:hover {
            background: linear-gradient(to right, var(--gold) 20%, #fff 40%, var(--gold-light) 60%, var(--gold) 80%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shine 5s linear infinite;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 3rem;
        }

        .text-block p {
            margin-bottom: 1.5rem;
            font-weight: 300;
            color: var(--text-main); /* Use variable instead of hardcoded #ccc */
            opacity: 0.9; /* Slight opacity adjustment */
        }

        .step-card {
            padding: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.4s var(--transition-smooth);
            background: rgba(18, 18, 24, 0.5);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
        }

        .step-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
            transition: left 0.6s ease;
        }
        
        .step-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: var(--gold);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--gold-glow);
        }

        .step-card:hover::before {
            left: 100%;
        }

        .step-number {
            font-family: var(--font-display);
            font-size: 3rem;
            color: rgba(212, 175, 55, 0.2);
            line-height: 1;
            margin-bottom: 1rem;
        }

        /* --- OVERLAY TRANSITION --- */
        .transition-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: #000;
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            pointer-events: none;
            opacity: 0;
        }
        
        .loader-text {
            color: var(--gold);
            font-family: var(--font-display);
            letter-spacing: 5px;
            text-transform: uppercase;
        }

        /* --- FOOTER --- */
        footer {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: 4rem 2rem;
            text-align: center;
            color: var(--text-muted);
            font-size: 0.8rem;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .hero-title { font-size: 3rem; }
            .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
            .glass-card { padding: 2rem; }
            .cursor-dot, .cursor-outline { display: none; } /* Pas de custom cursor sur mobile */
            * { cursor: auto; }
        }
    

        /* ── STYLES DÉPLACÉS DU BODY ── */
#backToTop.visible {
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
        }
        #backToTop:hover {
            background: rgba(212, 175, 55, 0.2) !important;
            box-shadow: 0 0 50px rgba(212, 175, 55, 0.6) !important;
            transform: translateY(-3px) !important;
        }
/* ── TABLE DES MATIÈRES ── */
            .toc-nav {
                padding: 2.5rem 3rem;
            }

            .toc-header {
                display: flex;
                align-items: center;
                gap: 1.2rem;
                margin-bottom: 2rem;
            }

            .toc-crystal {
                flex-shrink: 0;
                width: 18px;
                height: 30px;
                opacity: 0.9;
            }

            .toc-title {
                font-family: var(--font-display);
                font-size: 0.75rem;
                letter-spacing: 0.35em;
                color: var(--text-muted);
                text-transform: uppercase;
                margin: 0;
            }

            .toc-rule {
                flex: 1;
                height: 1px;
                background: linear-gradient(90deg, rgba(212,175,55,0.4) 0%, transparent 100%);
            }

            .toc-list {
                list-style: none;
                padding: 0;
                margin: 0;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0;
            }

            .toc-item {
                border-bottom: 1px solid rgba(255,255,255,0.04);
            }

            .toc-item:nth-child(odd) {
                border-right: 1px solid rgba(255,255,255,0.04);
            }

            /* Dernière ligne : pas de border-bottom */
            .toc-item:nth-last-child(-n+2) {
                border-bottom: none;
            }

            .toc-link {
                display: flex;
                align-items: center;
                gap: 1rem;
                padding: 0.85rem 1.2rem;
                text-decoration: none;
                color: var(--text-main);
                font-size: 0.875rem;
                font-weight: 300;
                line-height: 1.4;
                position: relative;
                transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
                overflow: hidden;
            }

            .toc-link::before {
                content: '';
                position: absolute;
                left: 0;
                top: 0;
                bottom: 0;
                width: 2px;
                background: var(--gold);
                transform: scaleY(0);
                transition: transform 0.25s ease;
                transform-origin: center;
            }

            .toc-link:hover {
                color: #fff;
                background: rgba(212,175,55,0.04);
                padding-left: 1.6rem;
            }

            .toc-link:hover::before {
                transform: scaleY(1);
            }

            .toc-num {
                font-family: var(--font-display);
                font-size: 0.65rem;
                color: rgba(212,175,55,0.45);
                letter-spacing: 0.05em;
                flex-shrink: 0;
                width: 1.8rem;
                text-align: right;
                transition: color 0.25s ease;
            }

            .toc-link:hover .toc-num {
                color: var(--gold);
            }

            .toc-arrow {
                margin-left: auto;
                flex-shrink: 0;
                opacity: 0;
                transform: translateX(-4px);
                transition: opacity 0.25s ease, transform 0.25s ease;
                color: var(--gold);
                font-size: 0.7rem;
            }

            .toc-link:hover .toc-arrow {
                opacity: 1;
                transform: translateX(0);
            }

            @media (max-width: 640px) {
                .toc-list { grid-template-columns: 1fr; }
                .toc-item:nth-child(odd) { border-right: none; }
                .toc-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.04); }
                .toc-item:last-child { border-bottom: none; }
                .toc-nav { padding: 2rem 1.5rem; }
            }
@keyframes spinAtom { 100% { transform: rotate(360deg); } }
            
            /* COSMIC DIVIDERS */
            .cosmic-divider {
                position: relative;
                height: 60px; /* Optimized from 80px */
                margin: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;
            }
            
            .cosmic-divider svg {
                width: 200px;
                height: 40px;
                opacity: 0.6;
            }
            
            .cosmic-divider .energy-line {
                position: absolute;
                width: 100%;
                height: 1px;
                background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.3) 20%, rgba(212,175,55,0.6) 50%, rgba(212,175,55,0.3) 80%, transparent 100%);
            }
            
            /* STEP ICONS */
            .step-icon {
                width: 50px;
                height: 50px;
                margin: 0 auto 1rem;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background: rgba(212, 175, 55, 0.1);
                border: 1px solid rgba(212, 175, 55, 0.3);
            }
            
            .step-icon svg {
                width: 24px;
                height: 24px;
                stroke: var(--gold);
                fill: none;
                stroke-width: 1.5;
            }
            
            .step-icon.breathing svg {
                animation: iconPulse 3s ease-in-out infinite;
            }
            
            @keyframes iconPulse {
                0%, 100% { transform: scale(1); opacity: 0.7; }
                50% { transform: scale(1.1); opacity: 1; }
            }
            
            /* Constellation Dots */
            .constellation-dot {
                fill: rgba(255, 255, 255, 0.8);
                animation: twinkle 2s ease-in-out infinite;
            }
            .constellation-dot:nth-child(2) { animation-delay: 0.5s; }
            .constellation-dot:nth-child(3) { animation-delay: 1s; }
            .constellation-dot:nth-child(4) { animation-delay: 1.5s; }
            
            @keyframes twinkle {
                0%, 100% { opacity: 0.3; r: 1.5; }
                50% { opacity: 1; r: 2.5; }
            }
/* Immersive Styles */
        #immersive-ui {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9995;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Top/Bottom split */
            align-items: center;
            padding: 8vh 0 10vh 0; /* Vertical spacing */
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.5s ease;
            background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.9) 100%); /* Vignette only */
        }
        
        #immersive-ui.visible, #webgl-overlay.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .ui-content {
            /* REMOVED CARD STYLING - Pure Layout Container */
            background: transparent;
            box-shadow: none;
            border: none;
            backdrop-filter: none;
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-grow: 1; /* Take available space */
            pointer-events: none; /* Pass clicks through central area */
        }
        
        /* Floating Header */
        #ui-title {
            position: absolute;
            top: 10vh;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 600px;
            text-align: center;
            font-size: 1rem;
            letter-spacing: 4px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            text-shadow: 0 0 10px rgba(0,0,0,0.5);
        }

        /* Bottom Controls Container */
        #ui-question-container {
            position: absolute;
            bottom: 25vh; /* Lifted higher to avoid overlap with footer */
            width: 100%;
            max-width: 500px;
            text-align: center;
            pointer-events: auto;
            z-index: 100;
        }

        /* Result Position - Cinematic Center Low */
        #ui-result {
            position: absolute;
            top: 55%; /* Slightly higher */
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            text-align: center;
            pointer-events: none;
            z-index: 90;
        }
        #ui-result button { pointer-events: auto; margin-top: 2rem; }
        
        #ui-breathing {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9992;
            display: flex;
            justify-content: center;
            align-items: center;
            background: transparent;
        }
        
        .breath-circle {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 20vh;
            height: 20vh;
            max-width: 200px;
            max-height: 200px;
            border-radius: 50%;
            border: 2px solid var(--gold);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
            cursor: pointer;
            pointer-events: auto; /* Click to skip */
        }
        
        .breath-text {
            font-family: var(--font-display);
            font-size: 1rem;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-align: center;
        }

        .immersive-input {
            width: 100%;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(212, 175, 55, 0.3);
            padding: 1rem 1.5rem;
            border-radius: 50px;
            color: #fff;
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            text-align: center;
            outline: none;
            transition: all 0.3s ease;
        }
        .immersive-input:focus {
            border-color: #D4AF37;
            box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
            background: rgba(0,0,0,0.5);
        }

        /* --- BUTTONS DESIGN --- */
        .cosmic-btn {
            position: relative;
            background: rgba(0,0,0,0.2);
            border: 1px solid rgba(212, 175, 55, 0.5);
            padding: 1.2rem 3.5rem;
            border-radius: 100px;
            color: #fff;
            font-family: var(--font-display, sans-serif);
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
            margin-bottom: 1rem; /* Extra safety */
        }
        
        .cosmic-btn:hover {
            background: rgba(212, 175, 55, 0.1);
            border-color: #D4AF37;
            letter-spacing: 5px; /* Cinematic expansion */
            box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
        }
        
        .cosmic-btn-small {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.3);
            color: #ccc;
            padding: 0.8rem 2rem;
            border-radius: 30px;
            cursor: pointer;
            transition: 0.3s;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .cosmic-btn-small:hover {
            border-color: #fff;
            color: #fff;
            background: rgba(255,255,255,0.1);
            letter-spacing: 2px;
        }

        #ui-btn-close {
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.4);
            font-family: 'Inter', sans-serif;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            padding: 1rem;
            transition: all 0.4s ease;
            margin-bottom: 2vh;
        }
        #ui-btn-close:hover {
            color: #fff;
            text-shadow: 0 0 10px rgba(255,255,255,0.8);
            letter-spacing: 4px;
        }

        /* Result Typing */
        #result-word {
            font-size: 4rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 6px;
            margin-bottom: 1rem;
            text-shadow: 0 0 30px currentColor;
        }

        /* AUDIO TOGGLE BUTTON */
        .audio-toggle {
            position: absolute;
            top: 30px;
            right: 30px;
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.2);
            padding: 8px 16px;
            border-radius: 30px;
            color: rgba(255,255,255,0.7);
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            cursor: pointer;
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            pointer-events: auto;
        }
        .audio-toggle:hover {
            border-color: #fff;
            color: #fff;
            background: rgba(255,255,255,0.1);
        }
        .audio-toggle.playing {
            border-color: #00ff88;
            color: #00ff88;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
        }