        @import url('https://fonts.googleapis.com/css2?family=Bangers&family=Poppins:wght@600;800&display=swap');

        :root {
            --bg-color: #2c3e50;
            --accent-color: #e74c3c;
            --text-color: #ecf0f1;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            min-height: 100vh;
            min-height: 100dvh;
            overflow: hidden;
        }

        #game-container {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        canvas {
            display: block;
            max-width: 100%;
            max-height: 100%;
            background: radial-gradient(ellipse at center, #4a5568 0%, #2d3748 50%, #1a202c 100%);
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(0, 0, 0, 0.3);
        }

        /* Overlay UI Styles */
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, rgb(11 11 11 / 95%) 0%, rgba(118, 75, 162, 0.95) 100%);
            color: white;
            z-index: 10;
            text-align: center;
            backdrop-filter: blur(10px);
            min-height: 100vh;
            min-height: 100dvh;
            padding: 20px;
            box-sizing: border-box;
        }

        h1 {
            font-family: 'Bangers', cursive;
            font-size: 5rem;
            margin-bottom: 0.5rem;
            color: #fff;
            text-shadow:
                4px 4px 0px #ff6b6b,
                8px 8px 0px #4ecdc4,
                12px 12px 20px rgba(0, 0, 0, 0.5);
            letter-spacing: 5px;
            animation: titlePulse 2s ease-in-out infinite;
        }

        @keyframes titlePulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            max-width: 600px;
            line-height: 1.6;
        }

        .btn {
            background: linear-gradient(135deg, #ffcc00, #ff9500);
            color: #000;
            border: none;
            padding: 20px 50px;
            font-size: 1.4rem;
            font-weight: 900;
            border-radius: 50px;
            cursor: pointer;
            text-transform: uppercase;
            box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4), 0 5px 0 #b8860b;
            transition: all 0.1s;
            letter-spacing: 2px;
        }

        .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;
        }

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

        .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
        }

        .btn:active {
            transform: translateY(-2px) scale(1.02);
        }

        #ui-layer {
            position: absolute;
            top: 30px;
            left: 0;
            width: 100%;
            padding: 0 30px;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            pointer-events: none;
            z-index: 5;
        }

        .stat-box {
            background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
            padding: 15px 25px;
            border-radius: 20px;
            color: white;
            font-size: 28px;
            font-weight: 800;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .stat-box span {
            color: #ffd700;
            font-size: 32px;
        }

        .lives {
            color: #ff4757;
            font-size: 32px;
        }

        .combo-popup {
            position: absolute;
            font-family: 'Bangers', cursive;
            font-size: 48px;
            color: #ffd700;
            text-shadow:
                3px 3px 0px #ff6b6b,
                6px 6px 10px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            z-index: 100;
            animation: comboAnim 1s ease-out forwards;
        }

        @keyframes comboAnim {
            0% {
                transform: scale(0) rotate(-10deg);
                opacity: 1;
            }

            50% {
                transform: scale(1.2) rotate(5deg);
            }

            100% {
                transform: scale(1) translateY(-50px) rotate(0deg);
                opacity: 0;
            }
        }

        .hidden {
            display: none !important;
        }

        /* Sound toggle button */
        #sound-toggle {
            position: absolute;
            top: 90px;
            right: 30px;
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 24px;
            transition: all 0.3s;
            z-index: 1000;
            pointer-events: all;
        }

        #sound-toggle:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.1);
        }

        /* ============================= */
        /* 📱 Mobile Responsive Styles   */
        /* ============================= */

        /* Tablets */
        @media (max-width: 1024px) {
            h1 {
                font-size: 3.5rem;
                letter-spacing: 3px;
            }

            p {
                font-size: 1.1rem;
                padding: 0 20px;
            }

            .btn {
                padding: 16px 40px;
                font-size: 1.2rem;
            }

            .stat-box {
                font-size: 22px;
                padding: 12px 20px;
            }

            .stat-box span,
            .lives {
                font-size: 26px;
            }
        }


        /* Large Phones */
        @media (max-width: 768px) {

            h1 {
                font-size: 2.8rem;
                letter-spacing: 2px;
            }

            p {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }

            .btn {
                padding: 14px 35px;
                font-size: 1rem;
            }

            #ui-layer {
                top: 15px;
                padding: 0 15px;
            }

            .stat-box {
                font-size: 18px;
                padding: 10px 15px;
                border-radius: 15px;
            }

            .stat-box span,
            .lives {
                font-size: 22px;
            }

            #sound-toggle {
                width: 45px;
                height: 45px;
                font-size: 20px;
                top: 70px;
                right: 15px;
            }
        }


        /* Small Phones */
        @media (max-width: 480px) {

            h1 {
                font-size: 2.2rem;
                text-shadow:
                    2px 2px 0px #ff6b6b,
                    4px 4px 10px rgba(0, 0, 0, 0.5);
            }

            p {
                font-size: 0.9rem;
                padding: 0 15px;
            }

            .btn {
                width: 80%;
                padding: 12px;
                font-size: 0.95rem;
            }

            .overlay {
                padding: 20px;
            }

            .stat-box {
                font-size: 16px;
                padding: 8px 12px;
            }

            .stat-box span,
            .lives {
                font-size: 18px;
            }

            .combo-popup {
                font-size: 32px;
            }

            #sound-toggle {
                width: 40px;
                height: 40px;
                font-size: 18px;
                top: 60px;
                right: 10px;
            }
        }


        /* Ultra Small Devices (360px like older Android) */
        @media (max-width: 360px) {
            h1 {
                font-size: 1.8rem;
            }

            .btn {
                font-size: 0.85rem;
            }

            .stat-box {
                font-size: 14px;
            }
        }


        /* Safe Area Support for iPhone Notch */
        body {
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }