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

        body {
            font-family: 'Courier New', monospace;
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
            color: #00ff88;
            overflow-x: hidden;
            min-height: 100vh;
            margin: 0;
            padding: 0;
        }

        /* Homepage Styles */
        .homepage {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            text-align: center;
            position: relative;
            z-index: 10;
        }

        .homepage h1 {
            font-size: clamp(2.5rem, 8vw, 6rem);
            margin-bottom: 1rem;
            text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88;
            animation: glow 2s ease-in-out infinite alternate;
        }

        .tagline {
            font-size: clamp(1rem, 3vw, 1.5rem);
            margin-bottom: 2rem;
            opacity: 0.8;
            letter-spacing: 2px;
        }

        .high-score {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: #ffaa00;
            text-shadow: 0 0 10px #ffaa00;
        }

        .start-btn {
            background: linear-gradient(45deg, #00ff88, #00cc6a);
            border: none;
            padding: 1rem 3rem;
            font-size: 1.2rem;
            font-family: inherit;
            color: #0a0a0a;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: bold;
            box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
        }

        .start-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5);
        }

        .settings-btn {
            position: absolute;
            top: 2rem;
            right: 2rem;
            background: rgba(0, 255, 136, 0.1);
            border: 2px solid #00ff88;
            color: #00ff88;
            padding: 0.8rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.5rem;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .settings-btn:hover {
            background: rgba(0, 255, 136, 0.2);
            transform: rotate(90deg) scale(1.1);
        }

        .settings-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

        .settings-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            padding: 2rem;
            border-radius: 15px;
            border: 2px solid #00ff88;
            min-width: 400px;
            text-align: center;
        }

        .settings-content h2 {
            color: #00ff88;
            margin-bottom: 2rem;
            font-size: 2rem;
            text-shadow: 0 0 20px #00ff88;
        }

        .setting-group {
            margin-bottom: 2rem;
            text-align: left;
        }

        .setting-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #00ff88;
            font-size: 1.1rem;
        }

        .speed-buttons {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .speed-btn {
            background: rgba(0, 255, 136, 0.1);
            border: 2px solid #00ff88;
            color: #00ff88;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            flex: 1;
            min-width: 80px;
        }

        .speed-btn.active {
            background: #00ff88;
            color: #0a0a0a;
        }

        .speed-btn:hover {
            background: rgba(0, 255, 136, 0.2);
            transform: scale(1.05);
        }

        .speed-btn.active:hover {
            background: #00cc6a;
        }

        .reset-btn {
            background: linear-gradient(45deg, #ff4444, #cc3333);
            border: none;
            padding: 0.8rem 2rem;
            font-size: 1rem;
            font-family: inherit;
            color: white;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }

        .reset-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
        }

        .close-settings {
            background: rgba(0, 255, 136, 0.1);
            border: 2px solid #00ff88;
            color: #00ff88;
            padding: 0.8rem 2rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            margin-top: 1rem;
        }

        .close-settings:hover {
            background: rgba(0, 255, 136, 0.2);
            transform: scale(1.05);
        }

        .confirmation-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 3000;
        }

        .confirmation-content {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            padding: 2rem;
            border-radius: 15px;
            border: 2px solid #ff4444;
            text-align: center;
            min-width: 300px;
        }

        .confirmation-content h3 {
            color: #ff4444;
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        .confirmation-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .confirm-btn, .cancel-btn {
            flex: 1;
            padding: 0.8rem;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        .confirm-btn {
            background: linear-gradient(45deg, #ff4444, #cc3333);
            color: white;
        }

        .cancel-btn {
            background: rgba(0, 255, 136, 0.1);
            border: 2px solid #00ff88;
            color: #00ff88;
        }

        .confirm-btn:hover, .cancel-btn:hover {
            transform: scale(1.05);
        }

        /* Curtain Animation */
        .curtain {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
            z-index: 1000;
            display: none;
        }

        .curtain-left, .curtain-right {
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
            transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .curtain.active {
            display: flex;
        }

        .curtain.opening .curtain-left {
            transform: translateX(-100%);
        }

        .curtain.opening .curtain-right {
            transform: translateX(100%);
        }

        /* Game Container */
        .game-container {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100vh;
            padding: 2rem;
        }

        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 600px;
            margin-bottom: 1rem;
        }

        .score-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .score {
            font-size: 1.5rem;
            text-shadow: 0 0 10px #00ff88;
        }

        .best-score {
            font-size: 1rem;
            color: #ffaa00;
            text-shadow: 0 0 5px #ffaa00;
        }

        .controls {
            display: flex;
            gap: 1rem;
        }

        .control-btn {
            background: rgba(0, 255, 136, 0.1);
            border: 2px solid #00ff88;
            color: #00ff88;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: inherit;
            min-width: 80px;
        }

        .control-btn:hover {
            background: rgba(0, 255, 136, 0.2);
            transform: scale(1.05);
        }

        .control-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        #gameCanvas {
            border: 3px solid #00ff88;
            border-radius: 10px;
            box-shadow: 0 0 50px rgba(0, 255, 136, 0.3);
            background: #0f0f23;
        }

        .game-over {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            border: 2px solid #ff4444;
            display: none;
            min-width: 300px;
        }

        .game-over h2 {
            color: #ff4444;
            margin-bottom: 1rem;
            font-size: 2rem;
            text-shadow: 0 0 20px #ff4444;
        }

        .game-over .new-record {
            color: #ffaa00;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            text-shadow: 0 0 15px #ffaa00;
            animation: pulse 1s infinite;
        }

        .restart-btn {
            background: linear-gradient(45deg, #ff4444, #cc3333);
            border: none;
            padding: 0.8rem 2rem;
            font-size: 1rem;
            font-family: inherit;
            color: white;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .restart-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
        }

        .pause-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            padding: 2rem;
            border-radius: 15px;
            text-align: center;
            border: 2px solid #00ff88;
            display: none;
        }

        .pause-overlay h2 {
            color: #00ff88;
            margin-bottom: 1rem;
            font-size: 2rem;
            text-shadow: 0 0 20px #00ff88;
        }

        /* Mobile Instructions */
        .mobile-controls {
            display: none;
            margin-top: 1rem;
            text-align: center;
            opacity: 0.7;
        }

        @media (max-width: 768px) {
            .mobile-controls {
                display: block;
            }
            
            #gameCanvas {
                max-width: 90vw;
                max-height: 60vh;
            }

            .game-header {
                flex-direction: column;
                gap: 1rem;
            }
        }

        @keyframes glow {
            from { text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88; }
            to { text-shadow: 0 0 30px #00ff88, 0 0 60px #00ff88, 0 0 80px #00ff88; }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Hidden class for transitions */
        .hidden {
            display: none !important;
        }
    