:root {
    --primary: #1e3a8a;
    --secondary: #d97706;
    --success: #16a34a;
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f3f4f6 100%);
    --card-bg: #ffffff;
    --text-color: #1f2937;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 650px;
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.1);
}

.screen {
    display: none;
    animation: fadeIn 0.4s ease;
}
.screen.active {
    display: block;
}

.status-bar { display: flex; justify-content: space-between; margin-bottom: 30px; gap: 15px; }
.score-badge { flex:1; text-align:center; padding:12px; border-radius:12px; background:#eff6ff; color:var(--primary); font-weight:bold; border:2px solid #bfdbfe;}
.timer-badge { flex:1; text-align:center; padding:12px; border-radius:12px; background:#fef2f2; color:#dc2626; font-weight:bold; border:2px solid #fecaca;}

.level-card { display: none; }
.level-card.active { display: block; }
.level-tag { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; color: white; margin-bottom: 15px; }
.tag-pop { background-color: var(--success); }
.tag-jazz { background-color: var(--secondary); }
.tag-urban { background-color: #7c3aed; }

.question { font-size: 1.15rem; line-height: 1.6; }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
button { background-color: #f8fafc; color: var(--primary); border: 2px solid #e2e8f0; padding: 16px; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
button:hover { background-color: var(--primary); color: white; transform: translateY(-2px); }

input[type="text"] { width: 100%; padding: 16px; border: 2px solid #cbd5e1; border-radius: 12px; font-size: 1rem; margin-bottom: 15px; box-sizing: border-box; }
.submit-btn { background-color: var(--primary); color: white; width: 100%; border: none;}
.submit-btn:hover { background-color: #1d4ed8; }

.final-score-box { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 2px solid #bbf7d0; padding: 20px; border-radius: 16px; text-align: center; margin: 20px 0; }
.final-score-box h3 { margin: 0; color: #166534; font-size: 1.5rem; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background-color: #f1f5f9; color: var(--primary); }
tr:nth-child(1) { font-weight: bold; color: #b45309; background-color: #fffbeb; }

.loader { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }