:root { color-scheme: light; --navy: #0b1f44; --blue: #245bc3; --ink: #172033; --muted: #596579; --line: #dfe5ec; --soft: #f5f7fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--soft); font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #bd6100; outline-offset: 4px; }
button, input, select { font: inherit; }
button, input, select, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 24px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0 0 16px; }
h3 { font-size: 1rem; }
p { overflow-wrap: anywhere; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 1120px; margin: auto; padding: 20px 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; min-width: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.brand span { min-width: 0; }
.brand strong { display: block; line-height: 1.4; font-size: .95rem; }
.brand small { display: block; color: var(--muted); }
.back-link { font-weight: 600; }
.container { width: min(880px, calc(100% - 32px)); margin: 12px auto 48px; }
.page-title { padding-inline: 4px; }
.eyebrow { color: var(--blue); font-weight: 750; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 8px 28px rgb(11 31 68 / 6%); }
.muted, .rules { color: var(--muted); }
.small { font-size: .85rem; }
fieldset { padding: 0; border: 0; margin: 24px 0; min-width: 0; }
legend, label { font-weight: 650; }
legend { margin-bottom: 12px; }
.level-options, .names-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.level-option { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); padding: 16px; border-radius: 12px; cursor: pointer; }
.level-option:has(input:checked) { border-color: var(--blue); background: #eef4ff; }
.level-option input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.level-option small { display: block; color: var(--muted); font-weight: 400; }
.count-field { max-width: 340px; margin-bottom: 20px; }
.names-grid label, .count-field label { display: block; margin-bottom: 6px; font-size: .9rem; }
input[type=text], select { width: 100%; min-height: 48px; background: white; border: 1px solid #8695a8; border-radius: 8px; padding: 10px 12px; color: var(--ink); }
input::placeholder { color: #667085; }
.button { border: 1px solid var(--navy); border-radius: 10px; padding: 12px 20px; min-height: 48px; background: var(--navy); color: #fff; font-weight: 650; }
.button:hover { background: #173866; }
.rules { margin-top: 24px; }
.progress-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); }
progress { width: 100%; height: 10px; accent-color: var(--blue); margin: 12px 0 20px; border: 0; }
.turn { background: #eef4ff; color: var(--navy); padding: 10px 14px; border-radius: 8px; font-weight: 650; margin: 0 0 24px; }
#question { line-height: 1.45; overflow-wrap: anywhere; }
.answers { display: grid; gap: 12px; margin-top: 24px; }
.answer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 56px; width: 100%; text-align: left; background: white; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
.answer > span:last-child { min-width: 0; }
.answer-letter { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; background: var(--soft); border-radius: 6px; font-weight: 650; }
.answer:hover:not(:disabled) { border-color: var(--blue); background: #f5f8ff; }
.answer:disabled { cursor: default; opacity: 1; }
.answer.correct { border-color: #197044; background: #e7f5ed; color: #135831; }
.answer.incorrect { border-color: #ab3030; background: #fff0f0; color: #822222; }
.feedback { min-height: 1.6em; padding-block: 8px; font-weight: 500; }
.scores { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 12px; }
.scoreboard { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scoreboard li { min-width: 0; padding: 12px; background: var(--soft); border-radius: 10px; overflow-wrap: anywhere; }
.scoreboard li.active { box-shadow: inset 0 0 0 2px var(--blue); }
.scoreboard strong { display: block; font-size: 1.3rem; color: var(--navy); }
.result-list { padding-left: 24px; }
.result-list li { padding: 10px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }
@media(max-width: 600px) { .quiz-header { padding: 16px; } .brand img { width: 52px; height: 52px; } .level-options, .names-grid { grid-template-columns: 1fr; } .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } .answer { font-size: 1rem; padding: 12px; } }
