@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSansVF.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* The booth's light theme and primary palette, so the monitor and the booth
   screen read as one station. No mascot artwork: it is not yet cleared for
   publication, and this page is public. */
:root {
  --page: #ffffff;
  --surface: #f2f5f3;
  --text: #101411;
  --muted: #6a706c;
  --line: #d5dad7;
  --accent: #5fed83;
  --accent-ink: #08822a;
  --board: #bfffd1;
  --error: #a12635;
  --error-surface: #fff4f5;
  --body-font: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body-font);
  font-size: clamp(16px, 1.1vw + 10px, 28px);
  line-height: 1.4;
}

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 64px) clamp(16px, 4vw, 48px) 32px;
}

header { border-bottom: 6px solid var(--accent); padding-bottom: 0.75em; margin-bottom: 1em; container-type: inline-size; }
.kicker { margin: 0; color: var(--accent-ink); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8em; }
/* The title stays on one line at every width. Measured in a browser at weight
   800 it is up to 18.3em wide in Mona Sans (wider at small sizes) and 18.4em
   in the system fallback, so it is sized for 19.2em: 5.2% of the header's
   width (cqi), which already excludes any scrollbar.
   The first font-size is for browsers without container units, so it works
   from the viewport instead. Its terms are main's content width over 19.2,
   allowing a classic scrollbar of up to 20px, which vw includes and main does
   not: (100vw - 20px - 2 x 16px) where the side padding is at its 16px floor,
   (100vw - 20px - 2 x 4vw) where it is 4vw, and 3rem once main reaches its
   64rem cap and 48px padding. */
h1 {
  margin: 0.1em 0 0.2em;
  font-size: min(calc((100vw - 52px) / 19.2), calc((92vw - 20px) / 19.2), 3rem);
  font-size: min(5.2cqi, 4.5rem);
  white-space: nowrap;
  font-weight: 800; line-height: 1.05; letter-spacing: -0.01em;
}
.lede { margin: 0; color: var(--muted); }
.captured { margin: 0.6em 0 0; font-size: 1.1em; color: var(--text); }
.captured-count { font-size: 1.6em; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

.status { margin: 0 0 0.75em; color: var(--muted); font-size: 0.85em; font-variant-numeric: tabular-nums; }
.status.stale { color: var(--error); background: var(--error-surface); padding: 0.4em 0.7em; border: 1px solid var(--error); border-radius: 6px; }

.you { margin: 0 0 1em; padding: 0.7em 0.9em; background: var(--board); border-radius: 6px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; text-align: left; padding-top: 0.75em; color: var(--muted); font-size: 0.85em; }
thead th { text-align: left; font-size: 0.75em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 0.6em 0.5em; border-bottom: 2px solid var(--text); }
tbody th, tbody td { padding: 0.55em 0.6em; border-bottom: 1px solid var(--line); vertical-align: baseline; }
tbody th { width: 3.5em; font-weight: 800; color: var(--accent-ink); }
.drink { font-weight: 700; overflow-wrap: anywhere; }
.handle { color: var(--muted); overflow-wrap: anywhere; }
.num { text-align: right; white-space: nowrap; }
td.num { font-weight: 700; }
tr.mine { background: var(--board); }
/* On the highlighted row the green rank (4.35:1) and the muted handle (4.45:1)
   fall below 4.5:1 against --board, and on a phone neither is large text. */
tr.mine th, tr.mine .handle { color: var(--text); }

.empty { padding: 2em 0; color: var(--muted); font-size: 1.1em; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* For whoever is curious, below the board. The QR is for the monitor; on a
   phone the link is the way in, so the code is hidden there. */
.built { margin-top: 2.5em; padding-top: 1em; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85em; }
.built::after { content: ""; display: block; clear: both; }
.built h2 { margin: 0 0 0.4em; color: var(--text); font-size: 1.1em; font-weight: 700; }
.built p { max-width: 60ch; margin: 0 0 0.6em; }
.built a { color: var(--accent-ink); font-weight: 600; }
/* White padding is the code's quiet zone; the image itself has almost none
   (23px of 800, a module is 26px). 24px keeps at least four modules of white
   at every size the clamp allows: 4.4 at 260px, 5.7 at 200px. */
/* Scanned off a monitor from a step or two away, so it grows with the screen. */
.built-qr { float: right; margin: 0 0 0.5em 1.5em; padding: 24px; background: #fff; width: clamp(200px, 14vw, 260px); height: auto; image-rendering: pixelated; }

footer { max-width: 64rem; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 32px; color: var(--muted); font-size: 0.7em; }
footer a { color: var(--accent-ink); }

/* Phones: the handle is the least important column and the first to go. */
@media (max-width: 34rem) {
  .built-qr { display: none; }
  thead th:nth-child(3), td.handle { display: none; }
}
