/* Play and live pages. Minimal, mobile first. Uses the shell's tokens from
   app.css where they exist and falls back to its own. */
:root {
  --g-bg: var(--bg, #0f1115);
  --g-card: var(--card, #1a1e26);
  --g-text: var(--text, #f2f4f8);
  --g-muted: var(--muted, #9aa3b2);
  --g-accent: var(--accent, #ffb300);
  --g-good: #2ecc71;
  --g-bad: #e74c3c;
  --g-radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root { --g-bg: var(--bg, #f6f7fa); --g-card: var(--card, #fff); --g-text: var(--text, #14171c); --g-muted: var(--muted, #5b6472); }
}
body { background: var(--g-bg); color: var(--g-text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px; padding-bottom: 48px; }
h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.sub { color: var(--g-muted); margin: 0 0 16px; }
.card { background: var(--g-card); border-radius: var(--g-radius); padding: 16px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.btn { display: block; box-sizing: border-box; appearance: none; border: 0; border-radius: 999px; padding: 14px 22px; font-size: 1.05rem; font-weight: 600;
  background: var(--g-accent); color: #111; cursor: pointer; width: 100%; text-align: center; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--g-text); border: 1px solid var(--g-muted); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.timer { height: 6px; background: rgba(128,128,128,.25); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.timer > i { display: block; height: 100%; background: var(--g-accent); width: 100%; transition: width .2s linear; }
.timer.low > i { background: var(--g-bad); }
.prompt { font-size: 1.25rem; font-weight: 600; margin: 8px 0 14px; line-height: 1.3; }
.options { display: grid; gap: 10px; }
.opt { appearance: none; border: 2px solid transparent; border-radius: 12px; background: rgba(128,128,128,.12); color: var(--g-text);
  padding: 14px; font-size: 1.05rem; text-align: left; cursor: pointer; position: relative; }
.opt:disabled { cursor: default; }
.opt.picked { border-color: var(--g-accent); }
.opt.correct { border-color: var(--g-good); background: rgba(46,204,113,.15); }
.opt.wrong { border-color: var(--g-bad); background: rgba(231,76,60,.15); }
.opt .count { position: absolute; right: 12px; top: 14px; color: var(--g-muted); font-size: .9rem; }
.media { margin: 0 0 12px; text-align: center; }
.media img { max-width: 100%; max-height: 260px; border-radius: 10px; }
.media audio { width: 100%; }
.credit { display: block; color: var(--g-muted); font-size: .7rem; margin-top: 4px; }
.fact { color: var(--g-muted); margin-top: 12px; }
.big { font-size: 2.4rem; font-weight: 800; margin: 6px 0; }
.muted { color: var(--g-muted); }
.status { color: var(--g-muted); font-size: .9rem; min-height: 1.2em; }
.board { list-style: none; padding: 0; margin: 8px 0 0; }
.board li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(128,128,128,.15); }
.board li.me { color: var(--g-accent); font-weight: 600; }
.hidden { display: none !important; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(128,128,128,.18); font-size: .8rem; }
.pill.live { background: var(--g-bad); color: #fff; }
.err { color: var(--g-bad); }
