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

        body {
            font-family: 'Courier New', monospace;
            overflow: hidden;
            background: #000;
            color: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            user-select: none;
        }

        #game-container {
            position: relative;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, #1a1a2e, #000);
            overflow: hidden;
        }

        #score-display {
            position: absolute;
            top: 30px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 3rem;
            font-weight: bold;
            z-index: 100;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
            color: #0ff;
            transition: all 0.3s ease;
        }

        #timer-display {
            position: absolute;
            top: 30px;
            right: 50px;
            font-size: 2.5rem;
            font-weight: bold;
            z-index: 100;
            color: #0ff;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
            transition: all 0.3s ease;
        }

        #stage-display {
            position: absolute;
            top: 30px;
            left: 50px;
            font-size: 2rem;
            font-weight: bold;
            z-index: 100;
            color: #f0f;
            text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
            transition: all 0.3s ease;
        }

        #next-stage-info {
            position: absolute;
            top: 80px;
            left: 50px;
            font-size: 0.9rem;
            color: #888;
            z-index: 100;
            letter-spacing: 1px;
        }

        #timer-display.warning {
            color: #ff0;
            animation: timerPulse 0.5s ease-in-out infinite;
        }

        #timer-display.critical {
            color: #f00;
            animation: timerPulse 0.3s ease-in-out infinite;
        }

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

        #time-bonus {
            position: absolute;
            top: 30px;
            right: 50px;
            font-size: 2rem;
            font-weight: bold;
            color: #0f0;
            text-shadow: 0 0 30px #0f0;
            opacity: 0;
            z-index: 150;
            pointer-events: none;
            animation: bonusFloat 1s ease-out forwards;
        }

        @keyframes bonusFloat {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-80px) scale(1.5);
            }
        }

        #start-screen, #game-over-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.95);
            z-index: 200;
            animation: fadeIn 0.5s ease;
        }

        #game-over-screen {
            display: none;
        }

        #leaderboard-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.95);
            z-index: 200;
            animation: fadeIn 0.5s ease;
            overflow-y: auto;
            padding: 20px;
        }

        .title {
            font-size: 5rem;
            background: linear-gradient(45deg, #0ff, #f0f, #0ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 20px;
            animation: glow 2s ease-in-out infinite;
        }

        .subtitle {
            font-size: 1.2rem;
            color: #888;
            margin-bottom: 40px;
            letter-spacing: 3px;
            text-align: center;
            padding: 0 20px;
        }

        .btn {
            padding: 20px 50px;
            font-size: 1.5rem;
            background: transparent;
            color: #0ff;
            border: 3px solid #0ff;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Courier New', monospace;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            background: #0ff;
            color: #000;
            box-shadow: 0 0 30px #0ff;
            transform: scale(1.05);
        }

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

        .btn:active::before {
            width: 300px;
            height: 300px;
        }

        .circle {
            position: absolute;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 0 20px currentColor;
            animation: pulse 1s ease-in-out infinite;
        }

        .circle:hover {
            transform: scale(1.1);
        }

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

        @keyframes glow {
            0%, 100% { text-shadow: 0 0 20px #0ff, 0 0 40px #0ff; }
            50% { text-shadow: 0 0 30px #f0f, 0 0 60px #f0f; }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes explode {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(3); opacity: 0; }
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            pointer-events: none;
        }

        #combo-display {
            position: absolute;
            top: 120px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1.5rem;
            color: #f0f;
            text-shadow: 0 0 10px #f0f;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #high-score {
            position: absolute;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 1rem;
            color: #666;
            letter-spacing: 2px;
        }

        .final-score {
            font-size: 4rem;
            color: #0ff;
            margin: 20px 0;
            text-shadow: 0 0 20px #0ff;
        }

        .final-stage {
            font-size: 2rem;
            color: #f0f;
            margin: 10px 0;
            text-shadow: 0 0 15px #f0f;
        }

        #canvas-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.3;
        }

        .combo-milestone {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 4rem;
            font-weight: bold;
            color: #0f0;
            text-shadow: 0 0 40px #0f0;
            opacity: 0;
            z-index: 150;
            pointer-events: none;
            animation: milestonePopup 1s ease-out forwards;
            text-align: center;
            white-space: pre-line;
        }

        .stage-up-notification {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 5rem;
            font-weight: bold;
            color: #f0f;
            text-shadow: 0 0 60px #f0f, 0 0 100px #f0f;
            opacity: 0;
            z-index: 180;
            pointer-events: none;
            animation: stageUpAnim 2s ease-out forwards;
            text-align: center;
        }

        .countdown-animation {
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 6rem;
            font-weight: bold;
            color: #0ff;
            text-shadow: 0 0 60px #0ff, 0 0 100px #0ff;
            opacity: 0;
            z-index: 185;
            pointer-events: none;
            text-align: center;
        }

        .countdown-go {
            position: absolute;
            top: 45%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 7rem;
            font-weight: bold;
            color: #0f0;
            text-shadow: 0 0 80px #0f0, 0 0 120px #0f0;
            opacity: 0;
            z-index: 185;
            pointer-events: none;
            text-align: center;
            animation: goAnim 0.8s ease-out forwards;
        }

        @keyframes countdownPulse {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.5);
            }
            20% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.3);
            }
            80% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.1);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.9);
            }
        }

        @keyframes goAnim {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.3);
            }
            30% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.5);
            }
            60% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.2);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(2);
            }
        }

        @keyframes stageUpAnim {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
            }
            20% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
            }
            50% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.1) rotate(-2deg);
            }
            70% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.15) rotate(0deg);
            }
            100% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
            }
        }

        @keyframes milestonePopup {
            0% {
                opacity: 0;
                transform: translate(-50%, -50%) scale(0.5);
            }
            30% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.3);
            }
            100% {
                opacity: 1;
                transform: translate(-50%, -50%) scale(1.1);
            }
        }

        .time-bonus-fly {
            position: absolute;
            font-size: 2.5rem;
            font-weight: bold;
            color: #0f0;
            text-shadow: 0 0 30px #0f0, 0 0 60px #0f0;
            z-index: 160;
            pointer-events: none;
        }

        .wind-particle {
            position: absolute;
            width: 8px;
            height: 8px;
            background: #0f0;
            border-radius: 50%;
            box-shadow: 0 0 15px #0f0;
            z-index: 155;
            pointer-events: none;
        }

        @keyframes timerReceive {
            0% {
                transform: scale(1);
                color: #0ff;
            }
            25% {
                transform: scale(1.5) rotate(5deg);
                color: #0f0;
            }
            50% {
                transform: scale(1.3) rotate(-5deg);
                color: #0f0;
            }
            75% {
                transform: scale(1.4) rotate(3deg);
                color: #0f0;
            }
            100% {
                transform: scale(1);
            }
        }

        .timer-burst {
            position: absolute;
            top: 30px;
            right: 50px;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid #0f0;
            z-index: 95;
            pointer-events: none;
            animation: burstExpand 0.8s ease-out forwards;
        }

        @keyframes burstExpand {
            0% {
                transform: scale(0);
                opacity: 1;
                box-shadow: 0 0 20px #0f0;
            }
            100% {
                transform: scale(3);
                opacity: 0;
                box-shadow: 0 0 60px #0f0;
            }
        }

        @media (max-width: 768px) {
            .title {
                font-size: 3rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
                letter-spacing: 2px;
                word-spacing: 3px;
                text-align: center;
                padding: 0 30px;
            }
            
            #score-display {
                font-size: 2rem;
                top: 20px;
            }
            
            #timer-display {
                font-size: 1.8rem;
                top: 20px;
                right: 20px;
            }

            #stage-display {
                font-size: 1.5rem;
                top: 20px;
                left: 20px;
            }

            #next-stage-info {
                top: 60px;
                left: 20px;
                font-size: 0.7rem;
            }
            
            #high-score {
                font-size: 0.8rem;
                top: 110px;
            }
            
            #combo-display {
                top: 140px;
                font-size: 1.2rem;
            }
            
            .timer-burst {
                top: 20px;
                right: 20px;
            }
            
            .combo-milestone {
                font-size: 2.5rem;
            }

            .stage-up-notification {
                font-size: 3rem;
            }

            .countdown-animation {
                font-size: 4rem;
            }

            .countdown-go {
                font-size: 5rem;
            }
            
            .time-bonus-fly {
                font-size: 1.8rem;
            }

            #nickname-input {
                width: 200px !important;
                font-size: 0.9rem !important;
                padding: 8px 15px !important;
            }

            #leaderboard-list {
                font-size: 0.85rem;
                max-width: 95% !important;
            }

            #leaderboard-screen .title {
                font-size: 2.5rem !important;
            }
        }
