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

        :root {
            --bg-gradient: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe, #43e97b, #38f9d7);
            --accent-color: #64c8ff;
            --particle-hue-offset: 0;
        }

        body.theme-classic {
            --bg-gradient: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe, #43e97b, #38f9d7);
            --accent-color: #64c8ff;
            --particle-hue-offset: 0;
        }

        body.theme-synthwave {
            --bg-gradient: linear-gradient(-45deg, #ff007f, #7a00ff, #ff7b00, #ff007f);
            --accent-color: #ff007f;
            --particle-hue-offset: 120;
        }

        body.theme-aurora {
            --bg-gradient: linear-gradient(-45deg, #0575e6, #00f260, #0575e6, #00f260);
            --accent-color: #00f260;
            --particle-hue-offset: 240;
        }

        body.theme-cyberpunk {
            --bg-gradient: linear-gradient(-45deg, #00f0ff, #ff007f, #ff00ff, #00f0ff);
            --accent-color: #00f0ff;
            --particle-hue-offset: 180;
        }

        body.theme-space {
            --bg-gradient: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #0f2027);
            --accent-color: #00e5ff;
            --particle-hue-offset: 60;
        }

        body {
            font-family: 'Poppins', sans-serif;
            overflow: hidden;
            height: 100vh;
            background: var(--bg-gradient);
            background-size: 600% 600%;
            animation: gradientShift 20s ease infinite;
            position: relative;
        }

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

        /* Animated mesh overlay */
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
            animation: meshMove 15s ease infinite;
            pointer-events: none;
        }

        @keyframes meshMove {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(30px, 30px); }
        }

        #canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: crosshair;
            filter: blur(0px);
        }

        #metaball-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            filter: blur(20px) contrast(20);
            mix-blend-mode: screen;
            opacity: 0.7;
        }

        .glass-container {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-radius: 30px;
            padding: 50px 70px;
            box-shadow:
                0 8px 32px 0 rgba(31, 38, 135, 0.37),
                inset 0 1px 1px rgba(255, 255, 255, 0.3),
                0 20px 60px rgba(0, 0, 0, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.25);
            border-top: 2px solid rgba(255, 255, 255, 0.5);
            border-left: 2px solid rgba(255, 255, 255, 0.4);
            text-align: center;
            max-width: 700px;
            z-index: 10;
            animation: floatIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        .glass-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(
                45deg,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent
            );
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        @keyframes floatIn {
            from {
                opacity: 0;
                transform: translate(-50%, -40%) scale(0.8);
                filter: blur(10px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1);
                filter: blur(0px);
            }
        }

        h1 {
            color: white;
            font-size: 2.8em;
            font-weight: 700;
            margin-bottom: 25px;
            text-shadow:
                2px 2px 4px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 255, 255, 0.3);
            animation: pulse 3s ease-in-out infinite;
            position: relative;
            z-index: 1;
            letter-spacing: -0.5px;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                filter: brightness(1);
            }
            50% {
                transform: scale(1.02);
                filter: brightness(1.1);
            }
        }

        .message {
            color: rgba(255, 255, 255, 0.95);
            font-size: 1.25em;
            font-weight: 300;
            line-height: 1.8;
            margin-bottom: 20px;
            text-shadow:
                1px 1px 2px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 255, 255, 0.2);
            position: relative;
            z-index: 1;
        }

        .message strong {
            font-weight: 600;
            color: #fff;
        }

        .game-instructions {
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95em;
            font-weight: 300;
            margin-top: 35px;
            padding: 20px 25px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow:
                inset 0 1px 1px rgba(255, 255, 255, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 1;
            line-height: 1.6;
        }

        .game-instructions strong {
            font-size: 1.1em;
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .controls {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 10;
        }

        button {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(15px) saturate(180%);
            -webkit-backdrop-filter: blur(15px) saturate(180%);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 14px 28px;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1em;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow:
                0 4px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }

        button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        button:hover::before {
            width: 300px;
            height: 300px;
        }

        button:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-3px) scale(1.05);
            box-shadow:
                0 8px 30px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.4),
                0 0 30px rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.5);
        }

        button:active {
            transform: translateY(-1px) scale(1.02);
            transition: all 0.1s ease;
        }

        button span {
            position: relative;
            z-index: 1;
        }

        .particle-count, .apm-counter {
            position: absolute;
            color: white;
            font-size: 1.1em;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px) saturate(180%);
            -webkit-backdrop-filter: blur(15px) saturate(180%);
            padding: 12px 24px;
            border-radius: 25px;
            border: 2px solid rgba(255, 255, 255, 0.25);
            border-top: 2px solid rgba(255, 255, 255, 0.4);
            box-shadow:
                0 4px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
            z-index: 10;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            animation: slideInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .particle-count {
            top: 25px;
            right: 25px;
        }

        .apm-counter {
            top: 80px;
            right: 25px;
        }

        .ai-indicator, .music-indicator {
            position: absolute;
            color: white;
            font-size: 0.9em;
            font-weight: 500;
            backdrop-filter: blur(15px) saturate(180%);
            -webkit-backdrop-filter: blur(15px) saturate(180%);
            padding: 8px 16px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            z-index: 10;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            animation: slideInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ai-indicator {
            top: 135px;
            right: 25px;
            background: rgba(100, 200, 255, 0.15);
            border: 2px solid rgba(100, 200, 255, 0.3);
            animation: slideInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1), aiPulse 2s ease-in-out infinite;
        }

        .music-indicator {
            top: 190px;
            right: 25px;
            background: rgba(255, 100, 200, 0.15);
            border: 2px solid rgba(255, 100, 200, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .music-indicator:hover {
            background: rgba(255, 100, 200, 0.25);
            transform: scale(1.05);
        }

        .music-indicator.active {
            animation: slideInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1), musicPulse 1.5s ease-in-out infinite;
        }

        @keyframes aiPulse {
            0%, 100% {
                box-shadow: 0 4px 20px rgba(100, 200, 255, 0.3);
            }
            50% {
                box-shadow: 0 4px 30px rgba(100, 200, 255, 0.6);
            }
        }

        @keyframes musicPulse {
            0%, 100% {
                box-shadow: 0 4px 20px rgba(255, 100, 200, 0.3);
            }
            50% {
                box-shadow: 0 4px 30px rgba(255, 100, 200, 0.7);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* Countdown Container Styling */
        .countdown-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 25px 0 10px 0;
            z-index: 1;
            position: relative;
        }

        .countdown-item {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            padding: 10px 15px;
            min-width: 75px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .countdown-item:hover {
            transform: translateY(-2px) scale(1.05);
            border-color: rgba(255, 255, 255, 0.35);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .countdown-item span:first-child {
            display: block;
            font-size: 1.8em;
            font-weight: 700;
            color: #fff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .countdown-item .label {
            display: block;
            font-size: 0.7em;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.6);
            font-weight: 600;
            margin-top: 2px;
        }

        /* Neural Dashboard Styling */
        .ai-dashboard {
            position: absolute;
            top: 25px;
            left: 25px;
            color: white;
            font-size: 0.85em;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(15px) saturate(180%);
            -webkit-backdrop-filter: blur(15px) saturate(180%);
            padding: 15px 20px;
            border-radius: 18px;
            border: 2px solid rgba(100, 200, 255, 0.25);
            border-top: 2px solid rgba(100, 200, 255, 0.4);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
            z-index: 10;
            width: 220px;
            opacity: 0;
            transform: translateX(-20px);
            pointer-events: none;
            transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .ai-dashboard.active {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        .dashboard-title {
            font-weight: 600;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 5px;
            margin-bottom: 10px;
            color: #64c8ff;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dashboard-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
            font-family: monospace;
        }

        .dashboard-row span:first-child {
            color: rgba(255, 255, 255, 0.6);
        }

        .dashboard-row span:last-child {
            font-weight: 600;
            color: #fff;
        }

        @media (max-width: 768px) {
            .glass-container {
                padding: 30px 40px;
                max-width: 90%;
            }

            h1 {
                font-size: 1.8em;
            }

            .message {
                font-size: 1em;
            }
        }
