#game {
  --quiz-accent: var(--theme-accent, #f3ce83);
  --quiz-line: var(--theme-border, #695635);
  --quiz-surface: var(--theme-field, #1d253b);
  color: var(--ui-text, #e7dff5);
  padding: clamp(16px,4vw,34px);
  border: 1px solid var(--quiz-line);
  border-radius: 22px;
}
.quiz-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.quiz-top h2 { color:var(--quiz-accent); margin:0; font-size:clamp(17px,3vw,24px); }
#quizEarnings { color:var(--quiz-accent); border:1px solid var(--quiz-line); border-radius:999px; padding:5px 12px; }
.quiz-rounds { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:5px; margin:16px 0; padding:0; list-style:none; }
.quiz-rounds li {
  display:grid; place-items:center; min-height:28px; border:1px solid var(--quiz-line); border-radius:8px;
  background:var(--quiz-surface); font-weight:700; font-size:clamp(11px,2vw,15px);
}
.quiz-rounds li[aria-current] { outline:2px solid var(--quiz-accent); outline-offset:1px; }
.quiz-rounds li[data-result="correct"] { background:#225743; color:#d4f1d9; border-color:#61a283; }
.quiz-rounds li[data-result="wrong"] { background:#643750; color:#ffdde3; border-color:#a65b74; }
.quiz-time { display:flex; align-items:center; gap:10px; min-height:26px; }
#game #timer { height:8px; flex:1; margin:0; accent-color:var(--quiz-accent); }
#game #counter { min-width:34px; color:var(--quiz-accent); font-variant-numeric:tabular-nums; }
#game.quiz-urgent #timer { accent-color:#e9746d; }
#game.quiz-urgent #counter { color:#ee847a; }
.quiz-stage { margin-top:8px; }
#question { margin:18px 0 26px; min-height:2.4em; display:grid; place-items:center; text-align:center; font-size:clamp(23px,4vw,36px); font-weight:700; }
#game[data-phase="entering"] .quiz-stage { animation:quiz-arrive 280ms ease-out both; }
#game #options button {
  min-height:60px; display:flex; gap:10px; align-items:center; text-align:start; padding:8px 10px;
  border-color:var(--quiz-line); background:var(--quiz-surface); color:inherit;
}
#game #options button:disabled { opacity:1; }
.quiz-choice-key {
  display:grid; place-items:center; min-width:28px; height:28px; border:1px solid currentColor;
  border-radius:50%; font-weight:700; font-size:.8rem; color:var(--quiz-accent); direction:ltr;
}
#game #options button.quiz-picked { border-color:var(--quiz-accent); box-shadow:0 0 0 1px var(--quiz-accent); }
#game #options button.correct { background:#225743; color:#e2f5e7; border-color:#72c49b; animation:quiz-reveal 420ms ease both; }
#game #options button.wrong { background:#643750; color:#ffdde3; border-color:#c27391; }
#game #options button:is(.correct,.wrong) .quiz-choice-key { color:inherit; }
#feedback { min-height:2.3em; margin:14px 0 0; text-align:center; font-weight:700; color:var(--quiz-accent); }
#game[data-phase="finished"] #question { font-size:clamp(40px,9vw,75px); color:var(--quiz-accent); margin:0; }
#game[data-phase="finished"] #next { display:block; margin:12px auto 0; }
@keyframes quiz-arrive { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes quiz-reveal { 50% { box-shadow:0 0 18px #72c49b75; } }
@media (max-width:430px) {
  #game #options { grid-template-columns:1fr; gap:6px; }
  #game #options button { min-height:48px; }
}
@media (prefers-reduced-motion:reduce) {
  #game[data-phase="entering"] .quiz-stage, #game #options button.correct { animation:none; }
}
