/* The audience page: one poll on a phone. Colours follow theme.css. */
:root {
  --bg: #f6f3ec; --card: #fffdf8; --ink: #1b242d; --muted: #5b6670; --line: #d9d2c3;
  --accent: #0e5a60; --accent-soft: #dcebea; --good: #23704a; --good-soft: #dff0e5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161b; --card: #1b242d; --ink: #edeae2; --muted: #a3adb5; --line: #33404b;
    --accent: #6cc3c9; --accent-soft: #173a3d; --good: #7fd0a2; --good-soft: #17382a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header.top, main, footer { max-width: 720px; margin: 0 auto; }
header.top { padding: 18px 16px 6px; }
header.top h1 { font-size: 1.25rem; margin: 0; line-height: 1.25; }
header.top p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
main { padding: 10px 16px 32px; }
footer { padding: 0 16px 28px; color: var(--muted); font-size: .82rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-top: 14px;
}
.card h2 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.3; }
.note { color: var(--muted); font-size: .92rem; margin: 10px 0 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.options { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.option {
  position: relative; width: 100%; text-align: left; overflow: hidden;
  border: 2px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 13px 14px; min-height: 52px; display: flex; gap: 10px; align-items: center;
}
.option .bar {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft);
  transition: width .5s ease; z-index: 0;
}
.option > span { position: relative; z-index: 1; }
.option .text { flex: 1; }
.option .pct { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; text-align: right; }
.option .pct small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.option.mine { border-color: var(--accent); }
.option.correct { border-color: var(--good); }
.option.correct .bar { background: var(--good-soft); }
.option .tag { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.option.correct .tag { color: var(--good); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .option .bar { transition: none; }
}
