:root {
  --bg: #11131f; --card: #1b1e2e; --line: #2c3047; --text: #f3f4fa; --muted: #9a9fb8;
  --accent: #ffc83d; --accent-ink: #2b2100; --good: #3ddc97; --bad: #ff5d6c; --blue: #6c8cff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; max-width: 520px; margin: 0 auto; }
.brand { font-weight: 800; letter-spacing: .3px; font-size: 18px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
main { max-width: 520px; margin: 0 auto; padding: 0 16px 32px; display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
h1, h2 { margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
p { margin: 6px 0; line-height: 1.5; }
.big { font-size: 48px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.label { font-size: 13px; color: var(--muted); }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
button.primary {
  width: 100%; margin-top: 18px; font: inherit; font-size: 18px; font-weight: 700; border: 0; border-radius: 14px;
  padding: 15px; background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
button.primary:disabled { opacity: .6; }
.error { color: var(--bad); font-size: 14px; margin-top: 8px; min-height: 1em; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--bg); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.qhead { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.timer { height: 8px; background: var(--bg); border-radius: 8px; overflow: hidden; margin-bottom: 18px; }
.timer span { display: block; height: 100%; background: var(--accent); border-radius: 8px; transition: width .2s linear; }
.question { font-size: 26px; font-weight: 800; text-align: center; margin: 8px 0 20px; line-height: 1.3; }
.options { display: grid; gap: 10px; }
.opt {
  font: inherit; font-size: 20px; font-weight: 700; text-align: left; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: var(--bg); color: var(--text); border: 2px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.opt:active { transform: scale(.98); }
.opt.picked { border-color: var(--blue); background: #1f2747; }
.opt.right { border-color: var(--good); background: #133528; }
.opt.wrong { border-color: var(--bad); background: #3a1820; }
.opt:disabled { cursor: default; }
.opt small { font-size: 13px; font-weight: 500; color: var(--muted); }
.result { text-align: center; font-size: 22px; font-weight: 800; margin-top: 16px; }
.result.good { color: var(--good); }
.result.bad { color: var(--bad); }
.champ { border-color: var(--accent); background: #2a2412; text-align: center; }
.champ h1 { color: var(--accent); }
.count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.notice { font-size: 13px; color: var(--muted); text-align: center; }
code { background: var(--bg); padding: 2px 6px; border-radius: 6px; }
.country-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; font-size: 16px; }
.country-row .label { font-size: 14px; }
button.link { font: inherit; font-size: 14px; background: none; border: 0; padding: 4px; color: var(--accent); text-decoration: underline; cursor: pointer; }
#country { margin-top: 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline-offset: 0; }
.offline { position: sticky; top: 0; z-index: 5; background: var(--bad); color: #fff; text-align: center; font-weight: 700; padding: 10px 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .opt:active { transform: none; }
}
