/* Layout: deck-faithful. Navy header band, cream field, the four Kahoot answer colors from the slides. */
:root {
  --navy: #1f3a5f;
  --navy-deep: #172c49;
  --cream: #e8dcc4;
  --paper: #f5efe3;
  --red: #b92025;
  --gold: #c8862d;
  --olive: #5b6b3a;
  --ink: #1d2433;
  --muted: #6b7486;
  --display: 'Jost', 'Futura', 'Avenir Next', 'Century Gothic', system-ui, sans-serif;
  --body: 'Jost', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}

.bar {
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
}
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.32em; font-size: 15px; }
.brand small { font-weight: 400; letter-spacing: 0.08em; opacity: 0.7; margin-left: 14px; font-size: 13px; }
.bar .meta { font-family: var(--display); font-weight: 600; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.bar .meta b { font-size: 20px; }

.stripes { height: 26px; flex: none; background: repeating-linear-gradient(to bottom, var(--navy) 0 3px, var(--cream) 3px 6px); }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: 20px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  min-height: 0;
}

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }

.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12px; padding: 5px 14px; border-radius: 999px; background: var(--red); color: var(--paper);
}
.chip.outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }

.btn {
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em;
  border: 0; border-radius: 8px; padding: 14px 26px; cursor: pointer;
  background: var(--navy); color: var(--cream);
}
.btn:hover { background: var(--navy-deep); }
.btn:focus-visible, .opt:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* answer tiles, shared by host and phone */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 16px; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2;
  border: 0; border-radius: 8px; padding: 18px 22px; color: var(--paper);
  transition: opacity 0.25s, transform 0.12s;
}
.opt svg { flex: none; width: 26px; height: 26px; }
.opt.c0 { background: var(--red); }
.opt.c1 { background: var(--navy); }
.opt.c2 { background: var(--gold); color: var(--ink); }
.opt.c3 { background: var(--olive); }
.opt.dim { opacity: 0.28; }
.opt .tick { margin-left: auto; font-size: 26px; }
.opt .count { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; }

.diagram { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--navy); background: var(--paper); }

.card { background: var(--paper); border: 2px solid var(--navy); border-radius: 14px; padding: 22px 26px; }
.why { font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 75ch; }
.why b { font-family: var(--display); color: var(--navy); }

.board { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 720px; margin: 0 auto; }
.row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px;
  background: var(--paper); border-radius: 8px; padding: 12px 18px; font-variant-numeric: tabular-nums;
}
.row .rk { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--gold); }
.row .nm { font-weight: 600; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sc { font-family: var(--display); font-weight: 700; font-size: 20px; }
.row.you { outline: 3px solid var(--gold); }

.big { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grow { flex: 1; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .opts { grid-template-columns: 1fr; }
  .opt { font-size: 18px; padding: 16px 18px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
