/* Theme tokens: handover §11.1, same values as Unity ThemeDefinition. */
:root {
  --ink: #14121F; --surface: #221E36; --text: #F4F1FF; --muted: #6E688C;
  --magenta: #FF3D81; --cyan: #2CE5E0; --amber: #FFB627; --violet: #8A5CFF; --lime: #B6F23A;
  --gap: 12px; --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); overflow: hidden;
  font: 500 18px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { height: 100dvh; display: flex; flex-direction: column; gap: var(--gap);
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; color: var(--muted); font-size: 15px; }
.timer { color: var(--amber); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.banner { background: var(--magenta); color: var(--ink); padding: 8px 12px; border-radius: 12px; font-weight: 700; text-align: center; }
.fill { flex: 1; display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
.center { justify-content: center; align-items: center; text-align: center; }
h1 { margin: 0; font-size: 40px; letter-spacing: 1px; color: var(--magenta); }
h2 { margin: 0; font-size: 26px; }
.prompt { font-size: 19px; color: var(--text); opacity: .9; }
.muted { color: var(--muted); }
.big { font-size: 34px; font-weight: 800; }
.good { color: var(--lime); } .bad { color: var(--magenta); } .warn { color: var(--amber); }
label { font-size: 15px; color: var(--muted); }
input { width: 100%; font: inherit; font-size: 22px; padding: 14px 16px; border-radius: 14px; border: 0;
  background: var(--text); color: var(--ink); }
input.code { text-transform: uppercase; letter-spacing: 8px; text-align: center; font-weight: 800; }
button { font: inherit; font-weight: 800; border: 0; border-radius: var(--radius); padding: 16px; min-height: 60px;
  color: var(--ink); background: var(--cyan); touch-action: manipulation; }
button:disabled { opacity: .35; }
button.secondary { background: var(--muted); color: var(--text); }
.answers { flex: 1; display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; min-height: 0; }
.answers.two { grid-template-columns: 1fr; }
.answers.list { grid-template-columns: 1fr; }
.answer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 20px; padding: 10px; }
.answer.dim { opacity: .3; }
.answer .label { overflow-wrap: anywhere; }
.shape { width: 34px; height: 34px; background: var(--ink); flex: none; }
.s0 { background: var(--magenta); } .s0 .shape { clip-path: polygon(50% 5%, 95% 92%, 5% 92%); }
.s1 { background: var(--cyan); }    .s1 .shape { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.s2 { background: var(--amber); }   .s2 .shape { border-radius: 50%; }
.s3 { background: var(--violet); }  .s3 .shape { border-radius: 4px; transform: scale(.85); }
.avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.avatar { min-height: 64px; font-size: 30px; background: var(--surface); color: var(--text); border: 3px solid transparent; }
.avatar.on { border-color: var(--amber); }
.list { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.row { display: flex; justify-content: space-between; background: var(--surface); padding: 10px 14px; border-radius: 12px; }
.row.you { outline: 2px solid var(--amber); }
.emotes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.emote { min-height: 52px; padding: 6px; font-size: 26px; background: var(--surface); }
.error { color: var(--magenta); min-height: 1.3em; text-align: center; }
