/* "Chalk and Brass" placeholder theme (B). One family (Bitter), one accent, 8px radius. Original in design/theme-options/originals/app_a_last_call.css. */
:root {
  --ink: #1b2e25;
  --ink-2: #233a2f;
  --line: #355043;
  --paper: #eef0e8;
  --muted: #a7b5ab;
  --red: #c9a04a;
  --red-ink: #d9b463;
  --ok: #6fbf73;
  --r: 8px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px;
  --font: "Bitter", -apple-system, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--paper); }
body { font-family: var(--font); font-size: 18px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
a { color: var(--paper); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.btn {
  display: block; width: 100%; min-height: 56px; padding: var(--s3);
  border: 2px solid var(--red); border-radius: var(--r);
  background: var(--red); color: var(--ink); font-weight: 700; font-size: 20px; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.field {
  display: block; width: 100%; min-height: 56px; padding: var(--s3);
  background: var(--ink-2); border: 2px solid var(--line); border-radius: var(--r);
  font-size: 22px; color: var(--paper);
}
.field:focus { outline: none; border-color: var(--paper); }
label { display: block; font-weight: 600; margin-bottom: var(--s2); }
.small { font-size: 15px; color: var(--muted); }
.err { color: var(--red-ink); font-weight: 600; min-height: 1.4em; margin: var(--s2) 0 0; }

/* Player */
.player { max-width: 560px; margin: 0 auto; padding: var(--s3) var(--s3) var(--s5); min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s4); }
.top .code { font-weight: 800; letter-spacing: .08em; }
.top .team { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { flex: 1; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 var(--s3); font-weight: 800; }
h2 { font-size: 22px; margin: 0 0 var(--s3); font-weight: 700; }
.kicker { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 var(--s2); }
.prompt { font-size: 26px; line-height: 1.25; font-weight: 700; margin: 0 0 var(--s4); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--paper); }
.timer.low { color: var(--red-ink); }
.choices { display: grid; gap: var(--s2); }
.choice {
  min-height: 64px; padding: var(--s3); text-align: left; font-size: 20px; font-weight: 600;
  background: var(--ink-2); border: 2px solid var(--line); border-radius: var(--r);
}
.choice.on { border-color: var(--red); background: #2d4638; }
.stack > * + * { margin-top: var(--s3); }
.sent { border-left: 4px solid var(--red); padding: var(--s2) var(--s3); background: var(--ink-2); border-radius: 0 var(--r) var(--r) 0; }
.answer-big { font-size: 30px; font-weight: 800; margin: 0 0 var(--s3); }
.verdict { font-size: 24px; font-weight: 800; }
.verdict.yes { color: var(--ok); }
.verdict.no { color: var(--red-ink); }
.standings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.standings li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.standings li.me { color: #fff; font-weight: 800; }
.standings li.me .name::after { content: "  (you)"; color: var(--muted); font-weight: 400; }
.standings .rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.standings .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.banner { position: sticky; top: 0; background: var(--red); color: var(--ink); font-weight: 700; padding: var(--s2) var(--s3); border-radius: var(--r); margin-bottom: var(--s3); }
footer { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); }
footer a { color: var(--muted); font-size: 15px; }

/* TV */
.tv { min-height: 100vh; padding: 4vh 5vw; display: flex; flex-direction: column; }
.tv .bar { display: flex; justify-content: space-between; align-items: baseline; font-size: 2vw; color: var(--muted); font-weight: 600; }
.tv .bar b { color: var(--paper); letter-spacing: .06em; }
.tv .stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tv .headline { font-size: 6vw; line-height: 1.05; font-weight: 800; font-stretch: 80%; margin: 0 0 3vh; }
.tv .tprompt { font-size: 5vw; line-height: 1.12; font-weight: 700; font-stretch: 88%; margin: 0 0 4vh; max-width: 80vw; }
.tv .tprompt.small { font-size: 3.2vw; color: var(--muted); }
.tv .tchoices { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh 3vw; font-size: 3vw; font-weight: 600; }
.tv .tchoices div { border: 3px solid var(--line); border-radius: var(--r); padding: 2vh 2vw; }
.tv .tchoices span { color: var(--red-ink); font-weight: 800; margin-right: 1vw; }
.tv .ttimer { font-size: 8vw; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv .ttimer.low { color: var(--red-ink); }
.tv .tanswer { font-size: 7vw; font-weight: 800; font-stretch: 85%; color: var(--red-ink); line-height: 1.05; }
.tv .join { display: grid; grid-template-columns: auto 1fr; gap: 5vw; align-items: center; }
.tv .qr { background: var(--paper); padding: 2vw; border-radius: var(--r); width: 32vw; max-width: 60vh; }
.tv .qr svg { display: block; width: 100%; height: auto; }
.tv .bigcode { font-size: 14vw; font-weight: 800; font-stretch: 75%; letter-spacing: .04em; line-height: 1; }
.tv .url { font-size: 2.6vw; font-weight: 600; margin-top: 2vh; word-break: break-all; }
.tv .teams { font-size: 2.4vw; color: var(--muted); margin-top: 4vh; }
.tv .tstand { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 6vw; font-size: 3vw; }
.tv .tstand li { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 1vw; padding: 1.2vh 0; border-bottom: 2px solid var(--line); break-inside: avoid; }
.tv .tstand .rank { color: var(--muted); }
.tv .tstand .pts { font-weight: 800; }
.tv .tstand li:first-child .name { color: var(--red-ink); font-weight: 800; }

/* Landing */
.page { max-width: 640px; margin: 0 auto; padding: var(--s6) var(--s3); }
.page h1 { font-size: 40px; }
.page p { margin: 0 0 var(--s3); }
.page section { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.joinrow { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); }
.joinrow .btn { width: auto; padding: 0 var(--s4); }
.joinrow .field { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.mt { margin-top: var(--s4); }
.prompt.sm { font-size: 20px; }
