        /* ===== CSS CUSTOM PROPERTIES ===== */
        :root {
            /* Base Colors */
            --clr-primary: #f39c12;
            --clr-secondary: #3498db;
            --clr-success: #27ae60;
            --clr-danger: #e74c3c;
            --clr-warning: #f1c40f;
            --clr-purple: #9b59b6;
            --clr-dark: #2c3e50;
            --clr-darker: #34495e;
            --clr-light: #ecf0f1;
            --clr-muted: #7f8c8d;
            
            /* Effects */
            --shadow-sm: 0 2px 5px rgba(0,0,0,0.2);
            --shadow-md: 0 5px 15px rgba(0,0,0,0.2);
            --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
            --radius-sm: 5px;
            --radius-md: 10px;
            --radius-lg: 20px;
            --transition: all 0.2s ease;
            
            /* Theme-specific */
            --bg-gradient-1: #667eea;
            --bg-gradient-2: #764ba2;
            --slot-bg: #2c3e50;
            --reel-border: #34495e;
            --text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            
            /* Fluid Sizing - scales with viewport */
            --fluid-xs: clamp(0.65rem, 1.5vw, 0.8rem);
            --fluid-sm: clamp(0.8rem, 2vw, 0.95rem);
            --fluid-base: clamp(0.95rem, 2.5vw, 1.1rem);
            --fluid-md: clamp(1.1rem, 3vw, 1.3rem);
            --fluid-lg: clamp(1.3rem, 3.5vw, 1.6rem);
            --fluid-xl: clamp(1.6rem, 4vw, 2rem);
            --fluid-2xl: clamp(2rem, 5vw, 2.5rem);
            
            /* Fluid Spacing - reduced for vertical compactness */
            --space-xs: clamp(2px, 0.3vw, 4px);
            --space-sm: clamp(4px, 0.6vw, 6px);
            --space-md: clamp(6px, 1vw, 10px);
            --space-lg: clamp(10px, 1.5vw, 14px);
            --space-xl: clamp(14px, 2vw, 18px);
        }

        /* ===== THEME VARIATIONS ===== */
        body.theme-neon {
            --bg-gradient-1: #0a0e27;
            --bg-gradient-2: #1a1a2e;
            --slot-bg: #16213e;
            --reel-border: #0f3460;
            --clr-primary: #ff00ff;
            --clr-secondary: #00ffff;
            --clr-warning: #ffff00;
            --text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
        }

        body.theme-classic {
            --bg-gradient-1: #1a4d2e;
            --bg-gradient-2: #0f3a1f;
            --slot-bg: #1a1a1a;
            --reel-border: #8b0000;
            --clr-primary: #ffd700;
            --clr-secondary: #cd7f32;
            --clr-warning: #ffd700;
            --clr-danger: #dc143c;
        }

        body.theme-dark {
            --bg-gradient-1: #000000;
            --bg-gradient-2: #1a1a1a;
            --slot-bg: #0d0d0d;
            --reel-border: #333333;
            --clr-primary: #00d4ff;
            --clr-secondary: #0099cc;
            --clr-warning: #00ffff;
        }

        /* ===== PARTICLE SYSTEM ===== */
        #particleContainer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9999;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            pointer-events: none;
            font-size: 24px;
            animation: particleExplode ease-out forwards;
            text-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
            will-change: transform, opacity; /* Hardware acceleration for particles */
            transform: translateZ(0); /* Force GPU acceleration */
        }

        @keyframes particleExplode {
            0% {
                transform: translate(0, 0) rotate(0deg) scale(1) translateZ(0);
                opacity: 1;
            }
            50% {
                opacity: 1;
            }
            100% {
                transform: translate(var(--end-x, 0), var(--end-y, 400px)) rotate(720deg) scale(0.3) translateZ(0);
                opacity: 0;
            }
        }

        /* ===== SCREEN SHAKE EFFECT ===== */
        /* Gentle Glow Effect - Soothing Big Win Animation */
        @keyframes gentleGlow {
            0% {
                box-shadow: 0 0 0px rgba(255, 215, 0, 0);
                filter: brightness(1);
            }
            25% {
                box-shadow: 
                    0 0 30px rgba(255, 215, 0, 0.4),
                    0 0 60px rgba(255, 215, 0, 0.3),
                    0 0 90px rgba(255, 215, 0, 0.2);
                filter: brightness(1.1);
            }
            50% {
                box-shadow: 
                    0 0 40px rgba(255, 215, 0, 0.5),
                    0 0 80px rgba(255, 215, 0, 0.4),
                    0 0 120px rgba(255, 215, 0, 0.3);
                filter: brightness(1.15);
            }
            75% {
                box-shadow: 
                    0 0 30px rgba(255, 215, 0, 0.4),
                    0 0 60px rgba(255, 215, 0, 0.3),
                    0 0 90px rgba(255, 215, 0, 0.2);
                filter: brightness(1.1);
            }
            100% {
                box-shadow: 0 0 0px rgba(255, 215, 0, 0);
                filter: brightness(1);
            }
        }

        .gentle-glow {
            animation: gentleGlow 2s ease-in-out;
        }

        /* ===== ENHANCED SYMBOL WIN ANIMATIONS ===== */
        .reel-symbol.winning {
            animation: symbolGlowEnhanced 0.8s ease-in-out infinite, symbolSparkle 2s linear infinite;
            position: relative;
            z-index: 10;
        }

        @keyframes symbolGlowEnhanced {
            0%, 100% {
                transform: scale(1) rotate(0deg);
                filter: brightness(1.2) drop-shadow(0 0 5px var(--clr-warning)) saturate(1.5);
            }
            25% {
                transform: scale(1.08) rotate(-2deg);
                filter: brightness(1.5) drop-shadow(0 0 15px var(--clr-warning)) saturate(2);
            }
            50% {
                transform: scale(1.2) rotate(0deg);
                filter: brightness(1.8) drop-shadow(0 0 25px var(--clr-warning)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.6)) saturate(2.5);
            }
            75% {
                transform: scale(1.08) rotate(2deg);
                filter: brightness(1.5) drop-shadow(0 0 15px var(--clr-warning)) saturate(2);
            }
        }

        @keyframes symbolSparkle {
            0%, 100% {
                box-shadow: 
                    0 0 10px rgba(255, 215, 0, 0.8),
                    0 0 20px rgba(255, 215, 0, 0.5);
            }
            50% {
                box-shadow: 
                    0 0 20px rgba(255, 215, 0, 1),
                    0 0 40px rgba(255, 215, 0, 0.8),
                    0 0 60px rgba(255, 215, 0, 0.4);
            }
        }

        /* Symbol Landing Bounce */
        .reel-symbol.landing {
            animation: symbolLandBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes symbolLandBounce {
            0% {
                transform: scale(0.7) translateY(-20px);
                opacity: 0.8;
            }
            50% {
                transform: scale(1.25) translateY(0);
                opacity: 1;
            }
            65% {
                transform: scale(0.95);
            }
            80% {
                transform: scale(1.05);
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Symbol Sparkle Particles */
        .sparkle-particle {
            position: absolute;
            pointer-events: none;
            font-size: 16px;
            z-index: 100;
            animation: sparkleFloat linear forwards;
        }

        @keyframes sparkleFloat {
            0% {
                transform: translate(0, 0) rotate(0deg) scale(1);
                opacity: 1;
            }
            100% {
                transform: translate(var(--tx), var(--ty)) rotate(360deg) scale(0);
                opacity: 0;
            }
        }

        /* ===== WIN STREAK COMBO COUNTER ===== */
        #comboMeter {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.8);
            border: 3px solid var(--clr-warning);
            border-radius: var(--radius-md);
            padding: 15px 20px;
            min-width: 200px;
            z-index: 1000;
            transform: translateX(300px);
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
            pointer-events: none; /* Ensure mouse hover doesn't interfere with hiding */
            will-change: transform; /* Optimize slide animation */
        }

        #comboMeter.active {
            transform: translateX(0);
        }

        #comboMeter.pulse {
            animation: comboPulse 0.4s ease;
            will-change: transform; /* Optimize pulse animation */
        }

        @keyframes comboPulse {
            0%, 100% { transform: translateX(0) scale(1); }
            50% { transform: translateX(0) scale(1.08); }
        }

        .combo-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .combo-title {
            color: var(--clr-warning);
            font-weight: bold;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .combo-count {
            color: #fff;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 0 0 10px var(--clr-warning);
        }

        .combo-bar-container {
            width: 100%;
            height: 12px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            margin-top: 8px;
        }

        .combo-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--clr-success), var(--clr-warning), var(--clr-danger));
            border-radius: 6px;
            transition: width 0.3s ease;
            box-shadow: 0 0 10px var(--clr-warning);
            will-change: width; /* Optimize width animation */
        }

        .combo-multiplier {
            color: var(--clr-success);
            font-size: 12px;
            margin-top: 5px;
            text-align: center;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            #comboMeter {
                top: 10px;
                right: 10px;
                min-width: 160px;
                padding: 10px 15px;
            }
            
            .combo-title {
                font-size: 12px;
            }
            
            .combo-count {
                font-size: 20px;
            }
        }

        /* ===== BASE STYLES ===== */
        * { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
        }
        
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
            overflow-y: auto;
            overflow-x: hidden;
            transition: background 0.5s ease;
            position: relative;
        }

        @media (max-width: 768px) {
            body {
                padding: 10px;
                align-items: flex-start;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 5px;
            }
        }

        /* Preserve theme backgrounds in special states - Consolidated */
        body:not(.theme-neon):not(.theme-classic):not(.theme-dark).winning,
        body:not(.theme-neon):not(.theme-classic):not(.theme-dark).big-win,
        body:not(.theme-neon):not(.theme-classic):not(.theme-dark).losing,
        body:not(.theme-neon):not(.theme-classic):not(.theme-dark).fullscreen-mode {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        }

        body.theme-neon.winning,
        body.theme-neon.big-win,
        body.theme-neon.losing,
        body.theme-neon.fullscreen-mode {
            background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%) !important;
        }

        body.theme-classic.winning {
            background: linear-gradient(135deg, #2d6a3f 0%, #1a4d2e 100%) !important;
        }

        body.theme-classic.big-win {
            background: linear-gradient(135deg, #3a8750 0%, #2d6a3f 100%) !important;
            animation: pulse-bg 0.5s;
        }
        
        body.theme-classic.losing,
        body.theme-classic.fullscreen-mode {
            background: linear-gradient(135deg, #1a4d2e 0%, #0f3a1f 100%) !important;
        }

        body.theme-classic.losing {
            background: linear-gradient(135deg, #0f3a1f 0%, #0a2814 100%) !important;
        }

        body.theme-dark.winning,
        body.theme-dark.big-win,
        body.theme-dark.losing,
        body.theme-dark.fullscreen-mode {
            background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
        }

        /* Background effects */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
            z-index: 0;
        }

        body.theme-neon::before {
            opacity: 1;
            animation: neon-pulse 4s ease-in-out infinite;
        }

        body.winning { background: linear-gradient(135deg, var(--clr-primary) 0%, #e67e22 100%); }
        body.big-win { background: linear-gradient(135deg, var(--clr-success) 0%, #229954 100%); animation: pulse-bg 0.5s; }
        body.losing { background: linear-gradient(135deg, var(--clr-danger) 0%, #c0392b 100%); }

        /* ===== ANIMATIONS ===== */
        @keyframes neon-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }
        @keyframes pulse-bg { 50% { filter: brightness(1.3); } }
        @keyframes neon-flicker {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.95; }
            51% { opacity: 1; }
            52% { opacity: 0.98; }
            53% { opacity: 1; }
        }
        @keyframes fire-pulse { 50% { color: var(--clr-danger); transform: scale(1.1); } }
        @keyframes jackpot-pulse { 50% { transform: scale(1.35); text-shadow: 0 0 30px rgba(243, 156, 18, 1); } }
        @keyframes spin-pulse { 100% { transform: scale(1.02); } }
        @keyframes celebrate { 50% { transform: scale(1.1); } }
        @keyframes jackpot-glow { 100% { text-shadow: 0 0 20px var(--clr-primary); } }
        @keyframes achievement-slide { 0% { transform: translateX(400px); opacity: 0; } }
        @keyframes reel-spin { 100% { transform: translateY(-130px); } }

        @media (max-width: 768px) {
            @keyframes reel-spin { 100% { transform: translateY(-110px); } }
        }

        @media (max-width: 480px) {
            @keyframes reel-spin { 100% { transform: translateY(-90px); } }
        }

        @media (max-width: 400px) {
            @keyframes reel-spin { 100% { transform: translateY(-80px); } }
        }
        @keyframes symbol-land {
            0% { transform: scale(0.5) rotate(-10deg); }
            60% { transform: scale(1.2) rotate(5deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
        @keyframes symbol-idle {
            0%, 100% { transform: translateY(0) scale(1); }
            50% { transform: translateY(-3px) scale(1.05); }
        }
        @keyframes symbol-glow {
            50% { 
                filter: drop-shadow(0 0 20px rgba(241, 196, 15, 1)) drop-shadow(0 0 30px rgba(243, 156, 18, 0.8));
                transform: scale(1.1);
            }
        }
        @keyframes glow-pulse {
            0%, 100% { filter: drop-shadow(0 0 10px currentColor); }
            50% { filter: drop-shadow(0 0 25px currentColor); }
        }
        @keyframes star-twinkle {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.5); }
        }
        @keyframes coin-fall {
            0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
            10% { opacity: 1; }
            100% { transform: translateY(100vh) rotate(720deg); opacity: 0.5; }
        }
        @keyframes confetti-fall {
            0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
            100% { transform: translateY(100vh) rotate(720deg) translateX(var(--drift)); opacity: 0; }
        }
        /* screen-shake animation removed - replaced with gentle-glow effect */
        @keyframes particle-burst {
            0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
            10% { opacity: 1; transform: scale(1); }
            100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
        }

        /* ===== FLOATING BACKGROUND ELEMENTS ===== */
        .background-animation {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .floating-element {
            position: absolute;
            opacity: 0;
            will-change: transform, opacity;
            animation: float-up linear infinite;
            pointer-events: none;
            backface-visibility: hidden;
            -webkit-font-smoothing: subpixel-antialiased;
        }

        @keyframes float-up {
            0% { 
                transform: translate3d(var(--start-x), 100vh, 0) rotate(0deg) scale(var(--start-scale));
                opacity: 0;
            }
            5% {
                opacity: var(--max-opacity);
            }
            95% {
                opacity: var(--max-opacity);
            }
            100% { 
                transform: translate3d(var(--end-x), -20vh, 0) rotate(var(--rotation)) scale(var(--end-scale));
                opacity: 0;
            }
        }

        /* Glow effect */
        @keyframes glow-pulse {
            0%, 100% { 
                filter: drop-shadow(0 0 8px var(--glow-color)) brightness(1);
            }
            50% { 
                filter: drop-shadow(0 0 20px var(--glow-color)) brightness(1.2);
            }
        }

        .floating-element.with-glow {
            animation: float-up linear infinite, glow-pulse 3s ease-in-out infinite;
        }

        /* Hide some floating elements on mobile for better performance */
        @media (max-width: 768px) {
            .floating-element:nth-child(n+16) {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .floating-element:nth-child(n+9) {
                display: none;
            }
        }

        /* Respect user's motion preferences */
        @media (prefers-reduced-motion: reduce) {
            .floating-element {
                animation-duration: 30s !important;
                opacity: 0.1 !important;
            }
            
            .floating-element.with-glow {
                animation: float-up linear infinite !important;
            }
        }

        /* ===== BACKGROUND STARS ===== */
        .bg-stars {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        body.theme-neon .bg-stars,
        body.theme-dark .bg-stars {
            opacity: 1;
        }

        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: white;
            border-radius: 50%;
            animation: star-twinkle 3s ease-in-out infinite;
            box-shadow: 0 0 4px white;
        }

        /* ===== VISITOR COUNTER ===== */
        .visitor-counter {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: rgba(52, 73, 94, 0.9);
            padding: 12px 18px;
            border-radius: 12px;
            color: white;
            font-size: 0.85em;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            z-index: 1000;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
        }

        @media (max-width: 768px) {
            .visitor-counter {
                bottom: 10px;
                right: 10px;
                font-size: 0.75em;
                padding: 10px 14px;
            }
        }

        .visitor-counter-title {
            color: var(--clr-warning);
            font-weight: bold;
            margin-bottom: 6px;
            font-size: 0.9em;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .visitor-stats {
            display: flex;
            gap: 15px;
            font-size: 0.9em;
        }

        @media (max-width: 768px) {
            .visitor-stats {
                flex-direction: column;
                gap: 4px;
            }
        }

        .visitor-stat {
            display: flex;
            flex-direction: column;
        }

        .visitor-label {
            color: #bdc3c7;
            font-size: 0.85em;
        }

        .visitor-value {
            color: var(--clr-warning);
            font-weight: bold;
            font-size: 1.1em;
        }

        body.theme-dark .visitor-counter {
            background: rgba(13, 13, 13, 0.95);
            border-color: rgba(0, 212, 255, 0.3);
        }

        body.theme-neon .visitor-counter {
            background: rgba(26, 33, 62, 0.95);
            border-color: rgba(255, 0, 255, 0.3);
        }

        /* ===== SLOT MACHINE CONTAINER ===== */
        .slot-machine {
            background: var(--slot-bg);
            border-radius: var(--radius-lg);
            padding: var(--space-md);
            box-shadow: var(--shadow-lg);
            text-align: center;
            position: relative;
            max-width: min(750px, 95vw);
            width: 100%;
            margin: var(--space-sm) auto;
            z-index: 1;
        }

        @media (max-width: 768px) {
            .slot-machine {
                padding: var(--space-sm);
                margin: var(--space-xs) auto;
                max-width: 98vw;
            }
        }

        @media (max-width: 480px) {
            .slot-machine {
                padding: var(--space-xs);
                margin: 2px auto;
                border-radius: var(--radius-md);
            }
        }

        body.theme-neon .slot-machine {
            border: 2px solid var(--clr-secondary);
            box-shadow: 
                0 0 20px rgba(0, 255, 255, 0.5),
                0 0 40px rgba(255, 0, 255, 0.3),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
        }

        body.theme-classic .slot-machine {
            border: 3px solid #ffd700;
            box-shadow: 
                0 0 30px rgba(255, 215, 0, 0.4),
                inset 0 0 20px rgba(255, 215, 0, 0.1);
            background: #1a1a1a;
        }

        body.theme-classic .game-section {
            background: rgba(20, 20, 20, 0.85);
            border: 1px solid rgba(255, 215, 0, 0.3);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        body.theme-classic .game-section:hover {
            box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
            border-color: rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .streak-container {
            background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
            border: 2px solid #ffd700;
            box-shadow: 
                0 0 20px rgba(255, 215, 0, 0.5),
                inset 0 0 15px rgba(255, 215, 0, 0.1);
        }

        body.theme-classic .streak-label {
            color: #ffd700;
        }

        body.theme-classic .streak-value {
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1.5px rgba(139, 0, 0, 0.6);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
        }

        body.theme-classic .win-meter {
            background: linear-gradient(90deg, #8b0000, #ffd700, #dc143c);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        }

        body.theme-classic .credits-amount {
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1.5px rgba(139, 0, 0, 0.7);
            filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 1)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.9));
        }

        body.theme-classic .bet-display {
            background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
            filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 1)) drop-shadow(0 0 8px rgba(220, 20, 60, 0.7));
        }

        body.theme-classic .bet-btn,
        body.theme-classic .manual-bet-btn {
            background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
            border: 1px solid #ffd700;
        }

        body.theme-classic .bet-btn:hover:not(:disabled),
        body.theme-classic .manual-bet-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #ffd700 0%, #cd7f32 100%);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
        }

        body.theme-classic .quick-bet-btn {
            background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
            border: 1px solid #ffd700;
        }

        body.theme-classic .quick-bet-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #dc143c 0%, #ff0000 100%);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .quick-bet-btn.all-in {
            background: linear-gradient(135deg, #ffd700 0%, #cd7f32 100%);
            color: #000000;
            border: 2px solid #8b0000;
        }

        body.theme-classic .quick-bet-btn.all-in:hover:not(:disabled) {
            background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        }

        body.theme-classic .difficulty-select {
            background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
            border: 1px solid #ffd700;
            color: #ffffff;
        }

        body.theme-classic .difficulty-select:hover {
            background: linear-gradient(135deg, #ffd700 0%, #cd7f32 100%);
        }

        body.theme-classic .auto-play-section {
            background: linear-gradient(135deg, rgba(139, 0, 0, 0.7) 0%, rgba(220, 20, 60, 0.7) 100%);
            border: 1px solid rgba(255, 215, 0, 0.4);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }

        body.theme-classic .auto-play-btn {
            background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
            border: 1px solid #ffd700;
        }

        body.theme-classic .auto-play-btn:hover {
            background: linear-gradient(135deg, #dc143c 0%, #ff0000 100%);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .auto-play-btn.active {
            background: linear-gradient(135deg, #ffd700 0%, #cd7f32 100%);
            color: #000000;
        }

        body.theme-classic .auto-play-info {
            color: #ffd700;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .achievement-badge.unlocked {
            background: linear-gradient(135deg, #ffd700 0%, #cd7f32 100%);
            border-color: #8b0000;
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        }

        body.theme-classic .achievements-title {
            color: #ffd700;
        }

        body.theme-classic .achievements-count {
            color: #dc143c;
            text-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
        }

        body.theme-classic .stat-value {
            color: #ffd700;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .stats-btn {
            background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
            border: 1px solid #ffd700;
        }

        body.theme-classic .stats-btn:hover {
            background: linear-gradient(135deg, #dc143c 0%, #ff0000 100%);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .result-message {
            color: #ffd700;
        }

        body.theme-classic .win-message {
            color: #ffd700;
            text-shadow: 
                0 0 20px rgba(255, 215, 0, 1),
                0 0 30px rgba(255, 215, 0, 0.6);
        }

        body.theme-classic .jackpot {
            color: #ffd700;
            text-shadow: 
                0 0 30px rgba(255, 215, 0, 1),
                0 0 50px rgba(255, 215, 0, 0.8);
        }

        body.theme-classic .control-btn {
            background: rgba(139, 0, 0, 0.8);
            border: 1px solid rgba(255, 215, 0, 0.5);
            color: #ffd700;
        }

        body.theme-classic .control-btn:hover {
            background: rgba(220, 20, 60, 0.9);
            box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
        }

        body.theme-classic .volume-control {
            background: rgba(26, 26, 26, 0.95);
            border: 1px solid rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .volume-value {
            color: #ffd700;
        }

        body.theme-classic .footer-link {
            color: #ffd700;
        }

        body.theme-classic .footer-link:hover {
            color: #ffed4e;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        }

        body.theme-dark .slot-machine {
            background: #0d0d0d;
            border: 2px solid #00d4ff;
            box-shadow: 
                0 0 30px rgba(0, 212, 255, 0.3),
                inset 0 0 30px rgba(0, 212, 255, 0.05);
        }

        .slot-machine.fullscreen {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-height: 90vh;
            z-index: 9999;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(241, 196, 15, 0.5) rgba(52, 73, 94, 0.3);
        }

        /* screen-shake class removed - replaced with gentle-glow effect */

        /* ===== BRANDING & TITLES ===== */
        .brand-header { 
            margin-bottom: var(--space-xs);
        }

        .brand-logo {
            background: linear-gradient(135deg, var(--clr-primary) 0%, #e67e22 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: clamp(0.95rem, 2.5vw, 1.2rem);
            font-weight: bold;
            text-decoration: none;
            /* Add text stroke for readability */
            -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
            filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(243, 156, 18, 0.4));
            transition: var(--transition);
            display: inline-block;
        }

        .brand-logo:hover { 
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(230, 126, 34, 0.6));
            transform: scale(1.05); 
        }
        .brand-tagline { 
            color: #bdc3c7; 
            font-size: clamp(0.6rem, 1.5vw, 0.75rem); 
            margin-top: 2px; 
            font-style: italic; 
            display: none; /* Hide tagline to save vertical space */
        }

        @media (min-width: 1024px) {
            .brand-tagline {
                display: block; /* Show on larger screens only */
            }
        }
        
        .title { 
            background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #e67e22 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: clamp(1.2rem, 3.5vw, 1.5rem); 
            font-weight: bold; 
            margin-bottom: var(--space-sm);
            /* Enhanced readability */
            -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.4);
            filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(241, 196, 15, 0.5));
            line-height: 1.2;
        }

        body.theme-neon .title,
        body.theme-neon .brand-logo {
            background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9);
            filter: 
                drop-shadow(0 3px 6px rgba(0, 0, 0, 1)) 
                drop-shadow(0 0 15px rgba(255, 0, 255, 0.8))
                drop-shadow(0 0 25px rgba(0, 255, 255, 0.6));
            animation: neon-flicker 3s ease-in-out infinite;
        }

        body.theme-neon .streak-value {
            background: linear-gradient(135deg, #ff00ff 0%, #ff66ff 50%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9);
            filter: 
                drop-shadow(0 3px 6px rgba(0, 0, 0, 1)) 
                drop-shadow(0 0 18px rgba(255, 0, 255, 0.9))
                drop-shadow(0 0 30px rgba(0, 255, 255, 0.7));
        }

        body.theme-neon .credits-amount {
            background: linear-gradient(135deg, #ff00ff 0%, #ff66ff 50%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9);
            filter: 
                drop-shadow(0 3px 6px rgba(0, 0, 0, 1)) 
                drop-shadow(0 0 18px rgba(255, 0, 255, 0.9))
                drop-shadow(0 0 30px rgba(0, 255, 255, 0.7));
        }

        body.theme-neon .bet-display {
            background: linear-gradient(135deg, #ff00ff 0%, #ff0080 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.9);
            filter: 
                drop-shadow(0 2px 5px rgba(0, 0, 0, 1)) 
                drop-shadow(0 0 15px rgba(255, 0, 255, 0.9));
        }

        body.theme-classic .title,
        body.theme-classic .brand-logo {
            background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1.5px rgba(139, 0, 0, 0.7);
            filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 1)) drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
        }

        body.theme-dark .title,
        body.theme-dark .brand-logo {
            background: linear-gradient(135deg, #00d4ff 0%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 12px rgba(0, 212, 255, 0.8));
        }

        /* ===== STREAK & MULTIPLIER DISPLAY ===== */
        .streak-container {
            background: linear-gradient(135deg, rgba(142, 68, 173, 0.5) 0%, rgba(155, 89, 182, 0.5) 100%);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius-sm);
            margin-bottom: var(--space-sm);
            display: flex;
            justify-content: space-around;
            align-items: center;
            box-shadow: 
                0 8px 32px rgba(142, 68, 173, 0.3),
                0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        @media (max-width: 480px) {
            .streak-container {
                flex-direction: row;
                gap: var(--space-md);
            }
        }

        body.theme-neon .streak-container {
            background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
            border: 1px solid var(--clr-primary);
            box-shadow: 
                0 0 15px rgba(255, 0, 255, 0.4),
                inset 0 0 10px rgba(255, 0, 255, 0.1);
        }

        body.theme-dark .streak-container {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border: 1px solid #00d4ff;
            box-shadow: 
                0 0 15px rgba(0, 212, 255, 0.3),
                inset 0 0 10px rgba(0, 212, 255, 0.1);
        }

        .win-meter {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            background: linear-gradient(90deg, #27ae60, #f1c40f, #e74c3c);
            width: 0%;
            transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 0 10px currentColor;
        }

        body.theme-dark .win-meter {
            background: linear-gradient(90deg, #00d4ff, #00ffff, #66ffff);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
        }

        .streak-label { 
            color: var(--clr-light); 
            font-size: clamp(0.65rem, 1.5vw, 0.8rem); 
            margin-bottom: 2px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .streak-value { 
            background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: clamp(1.2rem, 3.5vw, 1.6rem); 
            font-weight: bold;
            /* Enhanced readability */
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 12px rgba(241, 196, 15, 0.6));
            line-height: 1;
        }
        .streak-value.on-fire { animation: fire-pulse 0.5s ease-in-out infinite; }

        body.theme-dark .streak-value {
            background: linear-gradient(135deg, #00d4ff 0%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 15px rgba(0, 255, 255, 0.8));
        }

        body.theme-dark .streak-label {
            color: #66d9ef;
        }

        /* ===== GAME SECTIONS (CARD-BASED) ===== */
        .game-section {
            background: rgba(52, 73, 94, 0.4);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            padding: var(--space-sm);
            border-radius: var(--radius-sm);
            margin-bottom: var(--space-sm);
            color: white;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            transition: var(--transition);
        }

        .game-section:hover {
            box-shadow: 
                0 12px 40px rgba(0, 0, 0, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.25);
        }

        body.theme-dark .game-section {
            background: rgba(13, 13, 13, 0.6);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border: 1px solid rgba(0, 212, 255, 0.3);
            box-shadow: 
                0 8px 32px rgba(0, 212, 255, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(0, 212, 255, 0.1);
        }

        body.theme-dark .game-section:hover {
            box-shadow: 
                0 12px 40px rgba(0, 212, 255, 0.25),
                0 4px 12px rgba(0, 212, 255, 0.1),
                inset 0 1px 0 rgba(0, 212, 255, 0.15);
            border-color: rgba(0, 212, 255, 0.5);
        }

        .credits-section { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            background: rgba(52, 73, 94, 0.5); 
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            padding: var(--space-sm);
            gap: var(--space-md);
            flex-wrap: wrap;
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        body.theme-classic .credits-section {
            background: rgba(20, 20, 20, 0.6);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border: 1px solid rgba(255, 215, 0, 0.3);
            box-shadow: 
                0 8px 32px rgba(255, 215, 0, 0.1),
                inset 0 1px 0 rgba(255, 215, 0, 0.1);
        }

        @media (max-width: 600px) {
            .credits-section {
                flex-direction: column;
                gap: var(--space-sm);
                padding: var(--space-sm);
            }
        }

        .difficulty-section { 
            display: flex; 
            justify-content: flex-start; 
            align-items: center; 
            gap: 10px;
            padding: 0;
            background: transparent;
            margin-bottom: 0;
            border: none;
            box-shadow: none;
        }

        .difficulty-section:hover {
            transform: none;
        }

        @media (min-width: 601px) {
            .credits-section {
                display: grid;
                grid-template-columns: 1fr auto 1fr;
                align-items: center;
            }
            
            .credits-display {
                justify-self: start;
            }
            
            .bet-controls {
                justify-self: center;
            }
            
            .difficulty-section {
                justify-self: end;
            }
        }

        @media (max-width: 480px) {
            .difficulty-section {
                font-size: 0.9em;
                padding: 0;
            }
        }

        .credits-display { 
            font-size: var(--fluid-md); 
            font-weight: bold;
        }

        .credits-amount { 
            background: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #e67e22 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: var(--fluid-xl); 
            transition: all 0.2s ease;
            display: inline-block;
            min-width: clamp(60px, 10vw, 80px);
            text-align: center;
            /* Strong readability for important numbers */
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 10px rgba(241, 196, 15, 0.5));
        }

        /* Dynamic font scaling for large numbers */
        .credits-amount.scale-sm {
            font-size: clamp(1.3rem, 3.5vw, 1.6rem);
        }

        .credits-amount.scale-md {
            font-size: clamp(1.1rem, 3vw, 1.4rem);
        }

        .credits-amount.scale-lg {
            font-size: clamp(0.95rem, 2.5vw, 1.2rem);
        }

        .credits-amount.scale-xl {
            font-size: clamp(0.8rem, 2vw, 1rem);
        }

        .credits-amount.win-flash { 
            animation: creditsWinPulse 0.6s ease-out;
            background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 15px rgba(39, 174, 96, 0.8)); 
        }
        .credits-amount.loss-flash { 
            animation: creditsLossPulse 0.4s ease-out;
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.6);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 10px rgba(231, 76, 60, 0.6)); 
        }

        @keyframes creditsWinPulse {
            0% { transform: scale(1); }
            30% { transform: scale(1.3); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        @keyframes creditsLossPulse {
            0% { transform: scale(1); }
            50% { transform: scale(0.85); }
            100% { transform: scale(1); }
        }

        /* Rolling number effect */
        .credits-amount.rolling {
            animation: creditRoll 0.3s ease-out;
        }

        @keyframes creditRoll {
            0% { transform: translateY(-20px); opacity: 0.5; }
            100% { transform: translateY(0); opacity: 1; }
        }
        .credits-amount.jackpot-flash { color: var(--clr-primary); animation: jackpot-pulse 0.5s; }

        body.theme-dark .credits-amount {
            background: linear-gradient(135deg, #00d4ff 0%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 12px rgba(0, 255, 255, 0.7));
        }

        /* ===== BUTTONS & CONTROLS ===== */
        .btn-base, .difficulty-select, .auto-play-select {
            border: none;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: bold;
            transition: var(--transition);
            color: white;
        }

        .bet-controls { display: flex; align-items: center; gap: var(--space-sm); }
        .bet-btn, .manual-bet-btn { 
            background: linear-gradient(135deg, var(--clr-secondary) 0%, #2980b9 100%);
            padding: var(--space-md) var(--space-lg);
            min-width: clamp(40px, 8vw, 50px);
            min-height: clamp(40px, 8vw, 50px);
            font-size: var(--fluid-base);
            box-shadow: 
                0 4px 12px rgba(52, 152, 219, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .bet-btn:hover:not(:disabled), .manual-bet-btn:hover:not(:disabled) { 
            background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
            transform: scale(1.08) translateY(-2px); 
            box-shadow: 
                0 6px 16px rgba(52, 152, 219, 0.4),
                0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4);
        }

        .bet-btn:active:not(:disabled), .manual-bet-btn:active:not(:disabled) {
            transform: scale(1.02) translateY(0);
            box-shadow: 
                0 2px 8px rgba(52, 152, 219, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 2px 3px rgba(0, 0, 0, 0.2);
        }

        .bet-btn:disabled, .manual-bet-btn:disabled, .quick-bet-btn:disabled { 
            background: linear-gradient(135deg, var(--clr-muted) 0%, #6c757d 100%);
            cursor: not-allowed; 
            opacity: 0.5;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
        .bet-display { 
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: var(--fluid-md); 
            font-weight: bold; 
            min-width: clamp(80px, 15vw, 100px);
            text-align: center;
            /* Enhanced readability */
            -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.5);
            filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 8px rgba(231, 76, 60, 0.4));
        }

        body.theme-dark .bet-display {
            background: linear-gradient(135deg, #00d4ff 0%, #00ffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            -webkit-text-stroke: 0.8px rgba(0, 0, 0, 0.7);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
        }

        body.theme-dark .difficulty-select,
        body.theme-dark .bet-btn,
        body.theme-dark .manual-bet-btn {
            background: #00d4ff;
            color: #000000;
            font-weight: bold;
        }

        body.theme-dark .difficulty-select:hover,
        body.theme-dark .bet-btn:hover:not(:disabled),
        body.theme-dark .manual-bet-btn:hover:not(:disabled) {
            background: #00ffff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
        }

        .quick-bet-buttons { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
        .quick-bet-btn { 
            background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
            padding: var(--space-sm) var(--space-md); 
            font-size: var(--fluid-sm); 
            min-width: clamp(50px, 10vw, 60px);
            box-shadow: 
                0 3px 10px rgba(22, 160, 133, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .quick-bet-btn:hover:not(:disabled) { 
            background: linear-gradient(135deg, #138d75 0%, #117a65 100%);
            transform: scale(1.08) translateY(-2px); 
            box-shadow: 
                0 5px 14px rgba(22, 160, 133, 0.4),
                0 2px 5px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
        }

        .quick-bet-btn:active:not(:disabled) {
            transform: scale(1.02) translateY(0);
            box-shadow: 
                0 2px 8px rgba(22, 160, 133, 0.3),
                inset 0 2px 3px rgba(0, 0, 0, 0.2);
        }

        .quick-bet-btn.all-in { 
            background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
            box-shadow: 
                0 3px 10px rgba(230, 126, 34, 0.3),
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
        }

        .quick-bet-btn.all-in:hover:not(:disabled) { 
            background: linear-gradient(135deg, #d35400 0%, #ba4a00 100%);
            box-shadow: 
                0 5px 14px rgba(230, 126, 34, 0.4),
                0 2px 5px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
        }

        body.theme-dark .quick-bet-btn {
            background: #0099cc;
            color: #ffffff;
        }

        body.theme-dark .quick-bet-btn:hover:not(:disabled) {
            background: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
        }

        body.theme-dark .quick-bet-btn.all-in {
            background: #00ffff;
            color: #000000;
        }

        body.theme-dark .quick-bet-btn.all-in:hover:not(:disabled) {
            background: #66ffff;
        }

        .difficulty-select, .auto-play-select {
            background: var(--clr-secondary);
            padding: var(--space-sm) var(--space-md);
            font-size: var(--fluid-sm);
        }

        .difficulty-select:hover, .auto-play-select:hover { background: #2980b9; }
        .manual-bet-btn { background: var(--clr-purple); }
        .manual-bet-btn:hover:not(:disabled) { background: #8e44ad; }

        /* ===== REELS ===== */
        .reels-container {
            display: flex;
            gap: clamp(6px, 1.5vw, 12px);
            margin: var(--space-sm) 0;
            justify-content: center;
            perspective: 1000px;
        }

        .reel-wrapper {
            width: clamp(80px, 18vw, 120px);
            height: clamp(80px, 18vw, 120px);
            background: white;
            border: clamp(2px, 0.4vw, 4px) solid var(--reel-border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            position: relative;
            box-shadow: 
                inset 0 2px 10px rgba(0,0,0,0.1),
                0 6px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
        }

        .reel-wrapper:hover {
            transform: translateY(-4px);
        }

        /* Winning reel glow effect */
        .reel-wrapper.winning-reel {
            animation: reelGlow 1s ease-in-out infinite;
            box-shadow: 
                0 0 30px rgba(241, 196, 15, 0.8),
                0 0 60px rgba(241, 196, 15, 0.4),
                0 6px 20px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(241, 196, 15, 0.2);
            border-color: #f1c40f;
            z-index: 10;
        }

        @keyframes reelGlow {
            0%, 100% {
                box-shadow: 
                    0 0 30px rgba(241, 196, 15, 0.8),
                    0 0 60px rgba(241, 196, 15, 0.4),
                    0 6px 20px rgba(0, 0, 0, 0.3),
                    inset 0 0 20px rgba(241, 196, 15, 0.2);
                border-color: #f1c40f;
            }
            50% {
                box-shadow: 
                    0 0 40px rgba(241, 196, 15, 1),
                    0 0 80px rgba(241, 196, 15, 0.6),
                    0 6px 20px rgba(0, 0, 0, 0.3),
                    inset 0 0 30px rgba(241, 196, 15, 0.3);
                border-color: #f39c12;
            }
        }

        @media (max-width: 768px) {
            .reel-wrapper {
                width: 110px;
                height: 110px;
                border-width: 4px;
            }
        }

        @media (max-width: 480px) {
            .reel-wrapper {
                width: 90px;
                height: 90px;
                border-width: 3px;
            }
        }

        @media (max-width: 400px) {
            .reel-wrapper {
                width: 80px;
                height: 80px;
            }
        }

        body.theme-neon .reel-wrapper {
            background: #0a0a0a;
            border-color: var(--clr-secondary);
            box-shadow: 
                0 0 15px rgba(0, 255, 255, 0.5),
                inset 0 0 10px rgba(0, 255, 255, 0.2);
        }

        body.theme-classic .reel-wrapper {
            border-color: #8b0000;
            box-shadow: 
                0 0 10px rgba(255, 215, 0, 0.3),
                inset 0 2px 10px rgba(0,0,0,0.3);
            border-width: 4px;
        }

        body.theme-classic .betting-card-title {
            color: #ffd700;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        }

        body.theme-dark .reel-wrapper {
            background: #1a1a1a;
            border-color: #00d4ff;
            box-shadow: 
                0 0 15px rgba(0, 212, 255, 0.4),
                inset 0 0 10px rgba(0, 212, 255, 0.15);
        }

        .reel {
            position: absolute;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            will-change: transform; /* Optimize for transform animations */
        }

        .reel.spinning { 
            animation: reel-spin 0.1s linear infinite; 
            filter: blur(2px); /* Reduced from 3px for better performance */
        }
        .reel.stopping { 
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
            filter: blur(0); 
            will-change: transform; /* Optimize stopping animation */
        }

        .reel-symbol {
            width: clamp(80px, 18vw, 120px);
            height: clamp(80px, 18vw, 120px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(2em, 4.5vw, 3.2em);
            flex-shrink: 0;
            transition: transform 0.3s ease;
            will-change: transform, filter; /* Optimize symbol animations */
        }

        .reel-symbol.landing { 
            animation: symbol-land 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
        }
        .reel-symbol.idle-animate { 
            animation: symbol-idle 3s ease-in-out infinite; 
        }
        .reel-symbol.winning { 
            animation: symbol-glow 0.8s ease-in-out infinite; 
            z-index: 10;
            will-change: transform, filter; /* Optimize winning animation */
        }

        /* ===== SPIN BUTTON ===== */
        .spin-btn {
            background: linear-gradient(135deg, var(--clr-danger) 0%, #c0392b 100%);
            color: white;
            border: none;
            padding: clamp(12px, 2.5vw, 16px) clamp(24px, 5vw, 32px);
            font-size: clamp(1.1rem, 3.5vw, 1.4rem);
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 
                0 6px 20px rgba(231, 76, 60, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            margin: var(--space-sm) 0;
            min-width: clamp(140px, 28vw, 180px);
            will-change: transform, box-shadow;
            position: relative;
            overflow: hidden;
        }

        /* Shine effect */
        .spin-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(255, 255, 255, 0.3),
                transparent
            );
            transition: left 0.5s;
        }

        .spin-btn:hover::before {
            left: 100%;
        }

        .spin-btn:hover:not(:disabled) { 
            transform: translateY(-3px) scale(1.05); 
            box-shadow: 
                0 10px 30px rgba(231, 76, 60, 0.5),
                0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.4);
        }

        .spin-btn:active:not(:disabled) {
            transform: translateY(-1px) scale(1.02);
            box-shadow: 
                0 4px 15px rgba(231, 76, 60, 0.4),
                0 2px 6px rgba(0, 0, 0, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .spin-btn:disabled { 
            background: linear-gradient(135deg, var(--clr-muted) 0%, #6c757d 100%);
            cursor: not-allowed;
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .spin-btn.spinning { 
            animation: spin-pulse 0.8s ease-in-out infinite alternate; 
            will-change: transform;
        }
        
        /* Spin Button Ready Pulse */
        .spin-btn:not(:disabled):not(.spinning) {
            animation: spinReadyPulse 2s ease-in-out infinite;
        }

        @keyframes spinReadyPulse {
            0%, 100% {
                box-shadow: var(--shadow-md);
            }
            50% {
                box-shadow: 0 0 20px rgba(231, 76, 60, 0.6), 0 0 40px rgba(231, 76, 60, 0.3), var(--shadow-md);
            }
        }

        body.theme-neon .spin-btn {
            background: linear-gradient(45deg, #ff00ff, #00ffff);
            box-shadow: 
                0 0 20px rgba(255, 0, 255, 0.8),
                0 5px 15px rgba(0,0,0,0.3);
        }

        body.theme-classic .spin-btn {
            background: linear-gradient(45deg, #dc143c, #8b0000);
            border: 3px solid #ffd700;
            box-shadow: 
                0 0 20px rgba(255, 215, 0, 0.5),
                0 5px 15px rgba(0, 0, 0, 0.5);
            color: #ffd700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        body.theme-classic .spin-btn:hover:not(:disabled) {
            background: linear-gradient(45deg, #ff0000, #dc143c);
            box-shadow: 
                0 0 30px rgba(255, 215, 0, 0.8),
                0 8px 25px rgba(255, 215, 0, 0.4);
        }

        body.theme-dark .spin-btn {
            background: linear-gradient(45deg, #00d4ff, #0099cc);
            color: #000000;
            box-shadow: 
                0 0 20px rgba(0, 212, 255, 0.5),
                0 5px 15px rgba(0,0,0,0.3);
        }

        body.theme-dark .spin-btn:hover:not(:disabled) {
            background: linear-gradient(45deg, #00ffff, #00d4ff);
            box-shadow: 
                0 0 30px rgba(0, 212, 255, 0.8),
                0 8px 25px rgba(0, 212, 255, 0.4);
        }

        /* ===== UNIFIED BETTING CONTROLS (Quick Bet + Auto-Play) ===== */
        .betting-card, .auto-play-section {
            background: rgba(155, 89, 182, 0.4);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius-sm);
            margin-bottom: var(--space-sm);
            box-shadow: 
                0 8px 32px rgba(155, 89, 182, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        @media (min-width: 769px) {
            .betting-card {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: var(--space-lg);
                align-items: start;
            }
            
            .betting-card-title {
                grid-column: 1;
            }
            
            .quick-bet-buttons {
                grid-column: 1;
                grid-row: 2;
            }
            
            .auto-play-section {
                grid-column: 2;
                grid-row: 1 / 3;
                margin-bottom: 0;
                display: flex;
                flex-direction: column;
                justify-content: center;
                background: transparent;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                padding: 0;
                box-shadow: none;
                border: none;
            }
        }

        @media (max-width: 768px) {
            .betting-card, .auto-play-section {
                padding: 12px 14px;
            }
        }

        .betting-card-title {
            color: var(--clr-light);
            font-weight: bold;
            margin-bottom: var(--space-md);
            font-size: var(--fluid-sm);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        body.theme-classic .betting-card,
        body.theme-classic .auto-play-section {
            background: rgba(139, 0, 0, 0.4);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border: 1px solid rgba(255, 215, 0, 0.4);
            box-shadow: 
                0 8px 32px rgba(139, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 215, 0, 0.1);
        }

        body.theme-dark .betting-card,
        body.theme-dark .auto-play-section {
            background: rgba(0, 153, 204, 0.2);
            backdrop-filter: blur(12px) saturate(180%);
            -webkit-backdrop-filter: blur(12px) saturate(180%);
            border: 1px solid rgba(0, 212, 255, 0.3);
            box-shadow: 
                0 8px 32px rgba(0, 212, 255, 0.15),
                inset 0 1px 0 rgba(0, 212, 255, 0.1);
        }

        .auto-play-controls { 
            display: flex; 
            gap: var(--space-md); 
            align-items: center; 
            justify-content: center; 
            flex-wrap: wrap; 
        }

        .auto-play-title {
            color: var(--clr-light);
            font-weight: bold;
            margin-bottom: var(--space-md);
            font-size: var(--fluid-sm);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
        }

        .auto-play-btn {
            background: var(--clr-purple);
            color: white;
            border: none;
            padding: var(--space-md) var(--space-lg);
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: bold;
            font-size: var(--fluid-sm);
            transition: var(--transition);
            min-width: clamp(70px, 12vw, 80px);
        }

        .auto-play-btn:hover { background: #8e44ad; transform: scale(1.05); }
        .auto-play-btn.active { background: var(--clr-success); }
        .auto-play-btn.stop { background: var(--clr-danger); }
        .auto-play-btn.stop:hover { background: #c0392b; }
        .auto-play-info { color: var(--clr-light); font-size: var(--fluid-sm); font-weight: bold; }

        body.theme-dark .auto-play-section {
            background: rgba(0, 153, 204, 0.2);
            border: 1px solid rgba(0, 212, 255, 0.3);
        }

        body.theme-dark .auto-play-btn {
            background: #0099cc;
        }

        body.theme-dark .auto-play-btn:hover {
            background: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
        }

        body.theme-dark .auto-play-info {
            color: #00ffff;
        }

        /* ===== RESULT MESSAGES ===== */
        .result-message {
            margin: var(--space-sm) 0;
            font-size: clamp(1rem, 2.8vw, 1.25rem);
            font-weight: bold;
            min-height: clamp(30px, 5vw, 36px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 var(--space-sm);
            line-height: 1.2;
        }

        .win-message, .payout-message { 
            color: var(--clr-warning); 
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
            animation: celebrate 0.5s; 
        }
        .payout-message { color: var(--clr-success); }
        .lose-message { color: #95a5a6; }
        .jackpot { 
            color: var(--clr-primary); 
            font-size: 1.3em; 
            animation: jackpot-glow 1s infinite alternate; 
        }

        body.theme-dark .result-message {
            color: #ffffff;
        }

        body.theme-dark .win-message {
            color: #00ffff;
            text-shadow: 0 0 20px rgba(0, 255, 255, 1);
        }

        /* ===== CONTROL BUTTONS ===== */
        .sound-controls {
            position: absolute;
            top: var(--space-md);
            right: var(--space-md);
            display: flex;
            gap: var(--space-sm);
            flex-wrap: wrap;
            max-width: 280px;
            justify-content: flex-end;
            z-index: 100;
        }

        @media (max-width: 480px) {
            .sound-controls {
                max-width: 200px;
            }
        }

        .control-btn {
            background: rgba(52, 73, 94, 0.8);
            color: white;
            border: none;
            padding: var(--space-md);
            border-radius: 50%;
            cursor: pointer;
            font-size: var(--fluid-base);
            transition: var(--transition);
            width: clamp(38px, 8vw, 45px);
            height: clamp(38px, 8vw, 45px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .control-btn:hover { background: rgba(52, 73, 94, 1); transform: scale(1.1); }
        .control-btn.muted { background: rgba(231, 76, 60, 0.8); }
        .control-btn.reset-btn { background: rgba(155, 89, 182, 0.8); font-size: var(--fluid-sm); }
        .control-btn.fullscreen-active { background: rgba(39, 174, 96, 0.8); }
        .control-btn.fullscreen-active:hover { background: rgba(39, 174, 96, 1); }
        .help-button { background: rgba(52, 152, 219, 0.8); }
        .help-button:hover { background: rgba(52, 152, 219, 1); }
        .theme-button { background: rgba(155, 89, 182, 0.8); }
        .theme-button:hover { background: rgba(155, 89, 182, 1); }

        body.theme-dark .control-btn {
            background: rgba(0, 212, 255, 0.2);
            border: 1px solid rgba(0, 212, 255, 0.5);
            color: #00ffff;
        }

        body.theme-dark .control-btn:hover {
            background: rgba(0, 212, 255, 0.4);
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
        }

        /* ===== VOLUME CONTROL ===== */
        .volume-control {
            position: absolute;
            top: clamp(65px, 12vw, 75px);
            right: var(--space-md);
            background: rgba(52, 73, 94, 0.9);
            padding: var(--space-md);
            border-radius: var(--radius-md);
            display: flex;
            flex-direction: column;
            gap: var(--space-sm);
            min-width: clamp(120px, 20vw, 140px);
        }

        body.theme-dark .volume-control {
            background: rgba(13, 13, 13, 0.95);
            border: 1px solid rgba(0, 212, 255, 0.5);
        }

        .volume-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(to right, var(--clr-danger) 0%, var(--clr-primary) 50%, var(--clr-success) 100%);
            cursor: pointer;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: white;
            cursor: pointer;
            box-shadow: var(--shadow-sm);
        }

        .volume-value { 
            color: var(--clr-warning); 
            font-weight: bold; 
            text-align: center; 
            font-size: 0.85em; 
        }

        body.theme-dark .volume-value {
            color: #00ffff;
        }

        .slot-machine.fullscreen .sound-controls { position: fixed; top: 10px; right: 10px; z-index: 10001; }
        .slot-machine.fullscreen .volume-control { position: fixed; top: 70px; right: 10px; z-index: 10001; }

        /* ===== OVERLAYS & MODALS ===== */
        .keypad-overlay, .overlay, .share-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        @media (max-width: 480px) {
            .keypad-overlay, .overlay, .share-overlay {
                padding: 10px;
            }
        }

        .overlay { background: rgba(0, 0, 0, 0.95); overflow-y: auto; }

        .keypad-content, .overlay-content, .share-content {
            background: var(--clr-dark);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: 0 10px 50px rgba(0,0,0,0.5);
            max-width: 350px;
            width: 100%;
            position: relative;
        }

        @media (max-width: 480px) {
            .keypad-content, .overlay-content, .share-content {
                padding: 18px;
                border-radius: 12px;
            }
        }

        .overlay-content { 
            max-width: 600px; 
            color: white; 
            max-height: 90vh; 
            overflow-y: auto; 
            position: relative; 
        }

        @media (max-width: 768px) {
            .overlay-content {
                max-width: 95%;
            }
        }

        .share-content {
            max-width: 450px;
            border: 2px solid var(--clr-primary);
            max-height: 90vh;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(241, 196, 15, 0.5) rgba(52, 73, 94, 0.3);
            padding: 24px !important;
        }

        .share-content::-webkit-scrollbar {
            width: 6px;
        }

        .share-content::-webkit-scrollbar-track {
            background: rgba(52, 73, 94, 0.3);
            border-radius: 3px;
        }

        .share-content::-webkit-scrollbar-thumb {
            background: rgba(241, 196, 15, 0.5);
            border-radius: 3px;
        }

        .share-content::-webkit-scrollbar-thumb:hover {
            background: rgba(241, 196, 15, 0.7);
        }

        @media (max-width: 600px) {
            .share-content {
                max-width: 95%;
                max-height: 85vh;
                padding: 18px !important;
            }
        }

        @media (max-width: 480px) {
            .share-content {
                max-width: 98%;
                max-height: 80vh;
                padding: 16px !important;
            }
        }

        body.theme-neon .share-content {
            box-shadow: 
                0 0 30px rgba(0, 255, 255, 0.5),
                0 0 50px rgba(255, 0, 255, 0.3);
        }

        body.theme-dark .keypad-content,
        body.theme-dark .overlay-content,
        body.theme-dark .share-content {
            background: #0d0d0d;
            border: 2px solid #00d4ff;
            box-shadow: 
                0 0 40px rgba(0, 212, 255, 0.5),
                0 10px 50px rgba(0,0,0,0.8);
        }

        .keypad-title, .overlay-title, .share-title {
            color: var(--clr-primary);
            font-size: 1.5em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 20px;
        }

        .overlay-title { font-size: 2em; }

        .share-title { font-size: 1.4em; }

        @media (max-width: 768px) {
            .overlay-title { font-size: 1.7em; }
            .share-title { font-size: 1.3em; }
        }

        @media (max-width: 480px) {
            .keypad-title, .share-title { 
                font-size: 1.2em;
                margin-bottom: 16px;
            }
            .overlay-title { font-size: 1.5em; }
        }

        body.theme-dark .keypad-title,
        body.theme-dark .overlay-title,
        body.theme-dark .share-title {
            color: #00d4ff;
            text-shadow: 
                0 0 15px rgba(0, 212, 255, 0.8),
                0 0 25px rgba(0, 212, 255, 0.5);
        }

        .hidden { display: none; }

        /* ===== KEYPAD ===== */
        .keypad-display {
            background: rgba(52, 73, 94, 0.8);
            color: var(--clr-warning);
            font-size: 2em;
            font-weight: bold;
            text-align: center;
            padding: 15px;
            border-radius: var(--radius-md);
            margin-bottom: 20px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(241, 196, 15, 0.3);
        }

        .keypad-display.error { color: var(--clr-danger); border-color: rgba(231, 76, 60, 0.5); }
        .keypad-info { color: #bdc3c7; font-size: 0.85em; text-align: center; margin-bottom: 15px; }
        .keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }

        body.theme-dark .keypad-display {
            background: rgba(0, 212, 255, 0.1);
            border-color: #00d4ff;
            color: #00ffff;
        }

        .keypad-btn {
            background: var(--clr-darker);
            color: white;
            border: none;
            padding: 20px;
            font-size: 1.5em;
            font-weight: bold;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
        }

        .keypad-btn:hover { background: #4a6278; transform: scale(1.05); }
        .keypad-btn:active { transform: scale(0.95); }
        .keypad-btn.zero { grid-column: span 2; }

        body.theme-dark .keypad-btn {
            background: #1a1a2e;
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: #00ffff;
        }

        body.theme-dark .keypad-btn:hover {
            background: #16213e;
            border-color: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
        }

        .keypad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

        .keypad-action-btn {
            background: var(--clr-secondary);
            color: white;
            border: none;
            padding: 15px;
            font-size: 1.1em;
            font-weight: bold;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
        }

        .keypad-action-btn:hover { background: #2980b9; transform: scale(1.05); }
        .keypad-action-btn.clear { background: #e67e22; }
        .keypad-action-btn.clear:hover { background: #d35400; }
        .keypad-action-btn.confirm { background: var(--clr-success); }
        .keypad-action-btn.confirm:hover { background: #229954; }
        .keypad-action-btn.cancel { background: #95a5a6; }
        .keypad-action-btn.cancel:hover { background: var(--clr-muted); }

        .close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(231, 76, 60, 0.8);
            color: white;
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.3em;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        @media (max-width: 480px) {
            .close-btn {
                width: 32px;
                height: 32px;
                font-size: 1.2em;
                top: 10px;
                right: 10px;
            }
        }

        .close-btn:hover { background: rgba(231, 76, 60, 1); transform: scale(1.1); }

        /* ===== DOCUMENTATION ===== */
        .info-box {
            background: rgba(52, 73, 94, 0.6);
            border-radius: var(--radius-md);
            padding: 15px;
            margin-bottom: 15px;
        }

        body.theme-dark .info-box {
            background: rgba(0, 212, 255, 0.05);
            border: 1px solid rgba(0, 212, 255, 0.2);
        }

        .info-box h3 { color: var(--clr-primary); margin: 0 0 10px; }
        .info-box p, .info-box li { line-height: 1.6; margin-bottom: 8px; }
        .info-box ul { margin: 10px 0; padding-left: 20px; }

        body.theme-dark .info-box h3 {
            color: #00d4ff;
        }

        .docs-table {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
        }

        .docs-table th {
            background: rgba(52, 152, 219, 0.3);
            color: var(--clr-secondary);
            padding: 10px;
            text-align: left;
            border: 1px solid rgba(52, 152, 219, 0.5);
        }

        .docs-table td { 
            padding: 10px; 
            border: 1px solid rgba(52, 152, 219, 0.3); 
            color: var(--clr-light); 
        }

        body.theme-classic .docs-table th {
            background: rgba(139, 0, 0, 0.3);
            color: #ffd700;
            border: 1px solid rgba(255, 215, 0, 0.5);
        }

        body.theme-classic .docs-table td {
            border: 1px solid rgba(255, 215, 0, 0.3);
        }

        .start-button {
            background: linear-gradient(45deg, var(--clr-success), #229954);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.3em;
            font-weight: bold;
            border-radius: 50px;
            cursor: pointer;
            width: 100%;
            transition: var(--transition);
        }

        .start-button:hover { 
            background: linear-gradient(45deg, #229954, #1e8449); 
            transform: translateY(-2px); 
        }

        body.theme-classic .start-button {
            background: linear-gradient(45deg, #ffd700, #cd7f32);
            color: #000000;
            border: 2px solid #8b0000;
            text-shadow: none;
        }

        body.theme-classic .start-button:hover {
            background: linear-gradient(45deg, #ffed4e, #ffd700);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        }

        /* ===== ACHIEVEMENTS ===== */
        .achievements-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            cursor: pointer; 
            user-select: none;
            padding: 4px 0;
        }

        .achievements-reset-container {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .achievements-section {
            margin-top: var(--space-sm);
            padding-top: var(--space-sm);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        @media (min-width: 769px) {
            .achievements-section {
                display: grid;
                grid-template-columns: 2fr 1fr;
                gap: var(--space-lg);
                align-items: start;
            }
            
            .achievements-header {
                grid-column: 1 / 3;
            }
            
            .achievements-grid {
                grid-column: 1;
            }
            
            .achievements-reset-container {
                grid-column: 2;
                display: flex;
                align-items: flex-start;
                margin-top: 0;
                padding-top: 0;
                border-top: none;
            }
        }

        .achievements-title { 
            color: var(--clr-primary); 
            font-weight: bold; 
            font-size: clamp(0.95rem, 2.5vw, 1.1rem); 
        }

        .achievements-count { 
            color: var(--clr-secondary); 
            font-weight: bold;
            font-size: clamp(0.85rem, 2.2vw, 1rem);
        }

        .achievements-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); 
            gap: var(--space-sm); 
            margin-top: var(--space-sm); 
        }

        @media (max-width: 480px) {
            .achievements-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: var(--space-xs);
            }
        }

        body.theme-dark .achievements-title {
            color: #00d4ff;
        }

        body.theme-dark .achievements-count {
            color: #00ffff;
        }

        .achievement-badge {
            background: rgba(52, 73, 94, 0.8);
            padding: 10px;
            border-radius: var(--radius-md);
            text-align: center;
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .achievement-badge.unlocked {
            background: linear-gradient(135deg, var(--clr-primary) 0%, #e67e22 100%);
            border-color: var(--clr-warning);
            box-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
        }

        body.theme-dark .achievement-badge.unlocked {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-color: #00ffff;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
        }

        .achievement-badge:not(.unlocked) { opacity: 0.4; filter: grayscale(1); }
        .achievement-icon { font-size: 2em; margin-bottom: 5px; }
        .achievement-name { font-size: 0.7em; color: white; font-weight: bold; }

        .achievement-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, var(--clr-primary) 0%, #e67e22 100%);
            padding: 20px;
            border-radius: 15px;
            box-shadow: var(--shadow-lg);
            z-index: 10001;
            animation: achievement-slide 0.5s ease-out;
            min-width: 250px;
        }

        body.theme-classic .achievement-notification {
            background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
            border: 3px solid #ffd700;
            box-shadow: 
                0 0 40px rgba(255, 215, 0, 1),
                0 10px 40px rgba(0, 0, 0, 0.6);
        }

        .achievement-notification-title { 
            color: white; 
            font-weight: bold; 
            font-size: 1.2em; 
            margin-bottom: 10px; 
        }

        body.theme-classic .achievement-notification-title {
            color: #ffffff;
            text-shadow: 
                0 0 15px rgba(255, 215, 0, 1),
                2px 2px 4px rgba(0, 0, 0, 0.8);
        }

        .achievement-notification-content { display: flex; gap: 15px; align-items: center; }
        .achievement-notification-icon { font-size: 3em; }
        .achievement-notification-info { flex: 1; }
        .achievement-notification-name { 
            color: white; 
            font-weight: bold; 
            font-size: 1.1em; 
            margin-bottom: 5px; 
        }

        body.theme-classic .achievement-notification-name {
            color: #ffd700;
        }

        .achievement-notification-desc { color: var(--clr-light); font-size: 0.9em; }

        body.theme-classic .achievement-notification-desc {
            color: #ffffff;
        }

        /* ===== PARTICLES & EFFECTS ===== */
        .particle-container {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 100;
        }

        .particle {
            position: absolute;
            font-size: 1.5em;
            animation-timing-function: ease-out;
            pointer-events: none;
        }

        /* ===== FLOATING BONUS TEXT ===== */
        .floating-bonus-text {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.8em;
            font-weight: bold;
            pointer-events: none;
            z-index: 150;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
            animation: float-up-bonus 1.5s ease-out forwards;
        }

        .floating-bonus-text.base-win {
            color: #ffffff;
            top: 45%;
        }

        .floating-bonus-text.streak-bonus {
            color: #ffd700;
            top: 50%;
            font-size: 2em;
            text-shadow: 
                0 0 10px rgba(255, 215, 0, 0.8),
                2px 2px 4px rgba(0, 0, 0, 0.8);
            animation-delay: 0.6s;
        }

        @keyframes float-up-bonus {
            0% {
                opacity: 0;
                transform: translateX(-50%) translateY(0) scale(0.5);
            }
            10% {
                opacity: 1;
                transform: translateX(-50%) translateY(0) scale(1);
            }
            80% {
                opacity: 1;
                transform: translateX(-50%) translateY(-50px) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateX(-50%) translateY(-80px) scale(0.8);
            }
        }

        @media (max-width: 768px) {
            .floating-bonus-text {
                font-size: 1.5em;
            }
            
            .floating-bonus-text.streak-bonus {
                font-size: 1.7em;
            }
        }

        @media (max-width: 480px) {
            .floating-bonus-text {
                font-size: 1.3em;
            }
            
            .floating-bonus-text.streak-bonus {
                font-size: 1.5em;
            }
        }

        /* ===== BIG WIN BREAKDOWN DISPLAY ===== */
        .big-win-breakdown {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(52, 73, 94, 0.98) 100%);
            border: 3px solid #ffd700;
            border-radius: 20px;
            padding: 30px 40px;
            z-index: 10000;
            box-shadow: 
                0 0 50px rgba(255, 215, 0, 0.6),
                0 20px 60px rgba(0, 0, 0, 0.8);
            animation: breakdown-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            min-width: 350px;
            text-align: center;
        }

        @keyframes breakdown-appear {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.5);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
        }

        @keyframes breakdown-disappear {
            0% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8);
            }
        }

        .big-win-breakdown.hiding {
            animation: breakdown-disappear 0.3s ease-out forwards;
        }

        @media (max-width: 600px) {
            .big-win-breakdown {
                min-width: 300px;
                padding: 25px 30px;
            }
        }

        @media (max-width: 480px) {
            .big-win-breakdown {
                min-width: 280px;
                padding: 20px 25px;
            }
        }

        body.theme-neon .big-win-breakdown {
            background: linear-gradient(135deg, rgba(26, 14, 51, 0.98) 0%, rgba(26, 33, 62, 0.98) 100%);
            border-color: #00ffff;
            box-shadow: 
                0 0 50px rgba(0, 255, 255, 0.6),
                0 0 100px rgba(255, 0, 255, 0.4),
                0 20px 60px rgba(0, 0, 0, 0.8);
        }

        body.theme-classic .big-win-breakdown {
            background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
            border-color: #ffd700;
            box-shadow: 
                0 0 50px rgba(255, 215, 0, 0.8),
                0 20px 60px rgba(0, 0, 0, 0.9);
        }

        body.theme-dark .big-win-breakdown {
            background: linear-gradient(135deg, rgba(13, 13, 13, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
            border-color: #00d4ff;
            box-shadow: 
                0 0 50px rgba(0, 212, 255, 0.6),
                0 20px 60px rgba(0, 0, 0, 0.8);
        }

        .breakdown-title {
            font-size: 2em;
            color: #ffd700;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
            animation: glow-pulse 1s ease-in-out infinite;
        }

        @media (max-width: 480px) {
            .breakdown-title {
                font-size: 1.6em;
                margin-bottom: 15px;
            }
        }

        body.theme-dark .breakdown-title {
            color: #00ffff;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
        }

        .breakdown-line {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 15px 0;
            font-size: 1.3em;
            color: white;
        }

        @media (max-width: 480px) {
            .breakdown-line {
                font-size: 1.1em;
                margin: 12px 0;
            }
        }

        .breakdown-label {
            text-align: left;
            font-weight: 600;
        }

        .breakdown-value {
            text-align: right;
            font-weight: bold;
            color: #ecf0f1;
        }

        .breakdown-bonus .breakdown-value {
            color: #ffd700;
            font-size: 1.2em;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
        }

        body.theme-dark .breakdown-bonus .breakdown-value {
            color: #00ffff;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
        }

        .breakdown-separator {
            border-top: 2px solid rgba(255, 215, 0, 0.5);
            margin: 20px 0;
        }

        body.theme-dark .breakdown-separator {
            border-color: rgba(0, 212, 255, 0.5);
        }

        .breakdown-total {
            font-size: 1.8em;
            color: #ffd700;
            font-weight: bold;
            margin-top: 10px;
            text-shadow: 
                0 0 20px rgba(255, 215, 0, 1),
                0 0 40px rgba(255, 215, 0, 0.6);
            animation: pulse-glow 0.8s ease-in-out infinite;
        }

        @media (max-width: 480px) {
            .breakdown-total {
                font-size: 1.5em;
            }
        }

        @keyframes pulse-glow {
            0%, 100% {
                transform: scale(1);
                text-shadow: 
                    0 0 20px rgba(255, 215, 0, 1),
                    0 0 40px rgba(255, 215, 0, 0.6);
            }
            50% {
                transform: scale(1.05);
                text-shadow: 
                    0 0 30px rgba(255, 215, 0, 1),
                    0 0 60px rgba(255, 215, 0, 0.8);
            }
        }

        body.theme-dark .breakdown-total {
            color: #00ffff;
            text-shadow: 
                0 0 20px rgba(0, 255, 255, 1),
                0 0 40px rgba(0, 255, 255, 0.6);
        }

        .multiplier-badge {
            display: inline-block;
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9em;
            margin-left: 8px;
            box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
            animation: badge-pulse 1s ease-in-out infinite;
        }

        @keyframes badge-pulse {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 0 25px rgba(231, 76, 60, 0.8);
            }
        }

        body.theme-dark .multiplier-badge {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
        }

        @media (max-width: 480px) {
            .multiplier-badge {
                font-size: 0.8em;
                padding: 3px 10px;
            }
        }

        .particle-coin { color: var(--clr-warning); text-shadow: 0 0 10px rgba(241, 196, 15, 0.8); }
        .particle-star { 
            color: var(--clr-purple); 
            text-shadow: 0 0 20px rgba(155, 89, 182, 0.8); 
            font-size: 2em; 
        }

        body.theme-classic .particle-star {
            color: #ffd700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 1);
        }

        .coin-rain {
            position: absolute;
            font-size: 2em;
            color: #ffd700;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
            animation: coin-fall linear forwards;
            pointer-events: none;
            z-index: 200;
        }

        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background: var(--color);
            animation: confetti-fall linear forwards;
            pointer-events: none;
            z-index: 200;
        }

        /* ===== STATS & SHARING ===== */
        .stats-btn {
            background: var(--clr-purple);
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.95em;
            font-weight: bold;
            transition: var(--transition);
            margin: 6px 4px;
        }

        @media (max-width: 480px) {
            .stats-btn {
                padding: 9px 16px;
                font-size: 0.9em;
                margin: 5px 3px;
            }
        }

        .stats-btn:hover { background: #8e44ad; }

        .stats-btn#resetStatsBtn {
            background: #e67e22;
            border: 2px solid rgba(230, 126, 34, 0.5);
        }

        .stats-btn#resetStatsBtn:hover {
            background: #d35400;
            border-color: #e67e22;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
        }

        .stats-btn#resetAchievementsBtn {
            background: #c0392b;
            border: 2px solid rgba(192, 57, 43, 0.5);
        }

        .stats-btn#resetAchievementsBtn:hover {
            background: #a93226;
            border-color: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(192, 57, 43, 0.4);
        }

        body.theme-dark .stats-btn {
            background: #0099cc;
        }

        body.theme-dark .stats-btn:hover {
            background: #00d4ff;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
        }

        body.theme-classic .stats-btn#resetStatsBtn {
            background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        }

        body.theme-classic .stats-btn#resetStatsBtn:hover {
            background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
        }

        body.theme-classic .stats-btn#resetAchievementsBtn {
            background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%);
        }

        body.theme-classic .stats-btn#resetAchievementsBtn:hover {
            background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
        }

        body.theme-dark .stats-btn#resetStatsBtn {
            background: #e67e22;
        }

        body.theme-dark .stats-btn#resetStatsBtn:hover {
            background: #f39c12;
            box-shadow: 0 0 10px rgba(243, 156, 18, 0.6);
        }

        body.theme-dark .stats-btn#resetAchievementsBtn {
            background: #c0392b;
        }

        body.theme-dark .stats-btn#resetAchievementsBtn:hover {
            background: #e74c3c;
            box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
        }

        .stats-display { 
            padding: 12px; 
            margin: 8px 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px 16px;
        }

        @media (max-width: 600px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .stats-display {
                padding: 10px;
                margin: 6px 0;
            }
        }

        .stat-row { 
            display: flex; 
            justify-content: space-between; 
            margin: 8px 0;
            font-size: 1em;
        }

        @media (max-width: 480px) {
            .stat-row {
                margin: 6px 0;
                font-size: 0.95em;
            }
        }

        .stat-label { color: #bdc3c7; }
        .stat-value { color: var(--clr-warning); font-weight: bold; }

        body.theme-dark .stat-value {
            color: #00ffff;
        }

        .share-stats {
            background: rgba(52, 73, 94, 0.6);
            border-radius: var(--radius-md);
            padding: 16px;
            margin-bottom: 16px;
            text-align: center;
        }

        @media (max-width: 480px) {
            .share-stats {
                padding: 12px;
                margin-bottom: 12px;
            }
        }

        .share-stat-row {
            display: flex;
            justify-content: space-between;
            margin: 8px 0;
            font-size: 1em;
        }

        @media (max-width: 480px) {
            .share-stat-row {
                margin: 6px 0;
                font-size: 0.9em;
            }
        }

        .share-stat-label {
            color: #bdc3c7;
            font-weight: bold;
            font-size: 0.95em;
        }

        .share-stat-value {
            color: var(--clr-warning);
            font-weight: bold;
            font-size: 0.95em;
        }

        @media (max-width: 480px) {
            .share-stat-label,
            .share-stat-value {
                font-size: 0.85em;
            }
        }

        body.theme-dark .share-stat-value,
        body.theme-dark .share-stats {
            color: #00ffff;
        }

        .share-message {
            background: rgba(52, 73, 94, 0.8);
            border-radius: var(--radius-md);
            padding: 12px;
            margin-bottom: 16px;
            color: var(--clr-light);
            font-size: 0.85em;
            line-height: 1.5;
            border: 1px dashed var(--clr-secondary);
            max-height: 150px;
            overflow-y: auto;
        }

        @media (max-width: 480px) {
            .share-message {
                padding: 10px;
                margin-bottom: 12px;
                font-size: 0.8em;
                max-height: 120px;
            }
        }

        body.theme-dark .share-message {
            background: rgba(0, 212, 255, 0.1);
            border-color: #00d4ff;
            color: #ffffff;
        }

        .share-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-bottom: 12px;
        }

        @media (max-width: 480px) {
            .share-buttons {
                grid-template-columns: 1fr;
                gap: 6px;
            }
        }

        .share-btn {
            padding: 10px 16px;
            border: none;
            border-radius: var(--radius-md);
            font-weight: bold;
            font-size: 0.9em;
            cursor: pointer;
            transition: var(--transition);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        @media (max-width: 480px) {
            .share-btn {
                padding: 10px 14px;
                font-size: 0.85em;
            }
            
            .share-btn.copy {
                grid-column: 1;
            }
        }

        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .share-btn.facebook { background: #1877f2; }
        .share-btn.facebook:hover { background: #145dbf; }
        .share-btn.twitter { background: #000000; }
        .share-btn.twitter:hover { background: #333333; }
        .share-btn.reddit { background: #ff4500; }
        .share-btn.reddit:hover { background: #cc3700; }
        .share-btn.linkedin { background: #0077b5; }
        .share-btn.linkedin:hover { background: #006399; }
        .share-btn.whatsapp { background: #25d366; }
        .share-btn.whatsapp:hover { background: #1da851; }
        .share-btn.copy { background: var(--clr-purple); grid-column: span 2; }
        .share-btn.copy:hover { background: #8e44ad; }

        body.theme-classic .share-btn.copy {
            background: linear-gradient(135deg, #ffd700 0%, #cd7f32 100%);
            color: #000000;
        }

        body.theme-classic .share-btn.copy:hover {
            background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
        }

        .share-close-btn {
            background: var(--clr-muted);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: var(--radius-md);
            font-weight: bold;
            cursor: pointer;
            width: 100%;
            transition: var(--transition);
            font-size: 0.95em;
        }

        @media (max-width: 480px) {
            .share-close-btn {
                padding: 10px 16px;
                font-size: 0.9em;
            }
        }

        .share-close-btn:hover { background: #6c7a89; }

        body.theme-classic .share-close-btn {
            background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
            border: 1px solid #ffd700;
        }

        body.theme-classic .share-close-btn:hover {
            background: linear-gradient(135deg, #dc143c 0%, #ff0000 100%);
        }

        /* ===== FOOTER ===== */
        .footer-branding {
            margin-top: var(--space-sm);
            text-align: center;
            padding-top: var(--space-sm);
            border-top: 2px solid rgba(255,255,255,0.1);
        }

        .footer-buttons {
            display: flex;
            justify-content: center;
            gap: var(--space-sm);
            flex-wrap: wrap;
            margin-bottom: var(--space-sm);
        }

        .footer-link { 
            color: var(--clr-secondary); 
            text-decoration: none; 
            font-size: clamp(0.75rem, 2vw, 0.9rem); 
            font-weight: bold;
            display: inline-block;
            margin-top: var(--space-xs);
        }

        .footer-link:hover { color: #2980b9; }

        body.theme-dark .footer-link {
            color: #00d4ff;
        }

        body.theme-dark .footer-link:hover {
            color: #00ffff;
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
        }

        /* ===== UTILITY CLASSES ===== */
        .hidden { display: none !important; }

        /* Prevent body scroll when overlay is open */
        body.overlay-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* Improve touch targets on mobile */
        @media (max-width: 768px) {
            button, .control-btn, .bet-btn, .quick-bet-btn {
                min-width: 44px;
                min-height: 44px;
            }
        }
