html {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

#app {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

#panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

#panel h1 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

#panel p {
    margin: 4px 0;
    color: #444;
}

.hud {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

#question-text {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

#feedback {
    min-height: 22px;
    font-size: 15px;
    font-weight: bold;
}

#feedback.correct {
    color: #2e7d32;
}

#feedback.wrong {
    color: #c62828;
}

#panel button {
    margin-right: 8px;
}

.mode-toggle {
    margin: 4px 0 16px 0;
    font-size: 14px;
    color: #444;
}

.mode-toggle label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-select {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-label {
    color: #444;
    font-size: 14px;
}

.count-btn {
    background: #cfd8dc;
    color: #333;
}

.count-btn:hover {
    background: #b0bec5;
}

.count-btn.selected {
    background: #2e7d32;
    color: white;
}

#choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.choice-btn {
    background: #1976d2;
    margin-right: 0;
}

.choice-btn:hover {
    background: #14508c;
}

.choice-btn:disabled {
    cursor: default;
    opacity: 0.9;
}

.choice-btn.selected {
    box-shadow: 0 0 0 3px #ffd700 inset;
}

button {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #256428;
}

a.menu-link {
    display: inline-block;
    background: #607d8b;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    margin-right: 8px;
}

a.menu-link:hover {
    background: #4b626c;
}

#result-screen {
    display: none;
    text-align: center;
}

#final-score {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    color: #2e7d32;
}

#container {
    width: 100%;
    height: 650px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

#fireworks-overlay {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}
