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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.game-header {
    margin-bottom: 30px;
}

.game-title {
    font-size: 2.5em;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 700;
}

.game-subtitle {
    color: #718096;
    font-size: 1.1em;
}

.score-board {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 15px;
}

.score-item {
    text-align: center;
}

.score-label {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.score-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.question-container {
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.question-number {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 15px;
}

.question-text {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.5;
}

.options-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: left;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
    transform: translateY(-2px);
}

.option-btn.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.option-btn.correct {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.option-btn.incorrect {
    background: #f56565;
    color: white;
    border-color: #f56565;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.result-container {
    display: none;
    padding: 30px;
    background: #f0fff4;
    border-radius: 15px;
    border: 2px solid #48bb78;
    margin-top: 20px;
}

.result-title {
    font-size: 1.5em;
    color: #2f855a;
    margin-bottom: 15px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    color: #718096;
    font-size: 0.9em;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.music-note {
    display: inline-block;
    animation: bounce 2s infinite;
    margin: 0 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.category-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 15px;
}

.category-title {
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.category-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
        margin: 10px;
    }

    .game-title {
        font-size: 2em;
    }

    .question-text {
        font-size: 1.1em;
    }

    .control-buttons {
        flex-direction: column;
    }

    .score-board {
        flex-direction: column;
        gap: 15px;
    }
}