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

        body {
            font-family: 'Comic Sans MS', cursive, sans-serif;
            overflow: hidden;
            background: #000;
        }

        #gameCanvas {
            display: block;
            background: linear-gradient(to bottom, #000428 0%, #004e92 100%);
        }

        .ui-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            pointer-events: none;
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            padding: 20px;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
        }

        .stat {
            color: white;
            font-size: 1.5em;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .progress-bar {
            position: absolute;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            max-width: 600px;
            height: 30px;
            background: rgba(0, 0, 0, 0.5);
            border: 3px solid #ffd700;
            border-radius: 15px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #00ff88, #00ccff);
            width: 0%;
            transition: width 0.3s;
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
        }

        .question-panel {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(138, 43, 226, 0.9);
            backdrop-filter: blur(10px);
            border: 4px solid #ffd700;
            border-radius: 20px;
            padding: 25px;
            text-align: center;
            pointer-events: all;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
            z-index: 1000;
        }

        .question {
            color: white;
            font-size: 2.5em;
            font-weight: bold;
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
        }

        .answers {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .answer-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: 3px solid #ffd700;
            color: white;
            font-size: 2em;
            font-weight: bold;
            padding: 15px 30px;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.2s;
            min-width: 80px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .answer-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
        }

        .answer-btn:active {
            transform: scale(0.95);
        }

        .speed-indicator {
            position: absolute;
            top: 130px;
            right: 20px;
            color: white;
            font-size: 1.2em;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px 20px;
            border-radius: 10px;
            border: 2px solid #00ff88;
        }

        .results-screen {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            border: 5px solid #ffd700;
            border-radius: 30px;
            padding: 50px;
            text-align: center;
            display: none;
            pointer-events: all;
            max-width: 600px;
            z-index: 1000;
        }

        .results-screen.show {
            display: block;
            animation: slideIn 0.5s;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translate(-50%, -60%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        .results-screen h2 {
            color: #ffd700;
            font-size: 3em;
            margin-bottom: 30px;
            text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
        }

        .result-item {
            color: white;
            font-size: 1.5em;
            margin: 15px 0;
        }

        .play-again-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: 3px solid #ffd700;
            color: white;
            font-size: 1.5em;
            font-weight: bold;
            padding: 20px 40px;
            border-radius: 15px;
            cursor: pointer;
            margin-top: 30px;
            transition: all 0.3s;
        }

        .play-again-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
        }