/* Shared styles: tokens, header, footer, buttons, forms, legal pages. The lobby adds app.css.
   The look is a white page: near-black text, lots of space, few borders and no panels. Green means a right call
   and red a wrong one, nothing else; the one primary button is near-black, like a newspaper puzzle's Play. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/display/big-shoulders-display-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/text/archivo-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Bangers';
  src: url('/fonts/comic/bangers-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/mono/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/mono/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f4f4f2; /* the few filled areas: wells, asks, the call panel on phones */
  --panel-2: #ebebe8; /* hover */
  --line: #e2e2de; /* dividers */
  --ui-line: #7d8288; /* edges that identify a control: 3.8:1 on white, 3.5:1 on --panel */
  --text: #121212; /* 18.7:1 */
  --muted: #5b6066; /* 6.3:1 on white, 5.8:1 on --panel */
  --ink: #121212; /* the primary button */
  --on-ink: #ffffff;
  --green: #1e7a3c; /* a right call: 5.4:1 as text, white on it 5.4:1 */
  --red: #c62828; /* a wrong call, a clock running out: 5.6:1 */
  --ivory: #f4f1ea; /* the white pieces' colour; always drawn with an edge on white */
  --ebony: #121212; /* the black pieces' colour */
  --slate: #8a9096; /* the draw */
  --brass: #7a5c00; /* prize money only: 6.3:1 */
  /* the comic lettering of the big moments (BLUNDER??, a game's ending, YOU WIN!): an ink outline and a yellow */
  --comic-ink: #070d0a;
  --comic-yellow: #ffd23f;
  --comic-yellow-2: #ffe27a;
  /* older names, still used across the pages */
  --sky: var(--green);
  --flag: var(--red);
  --flag-text: var(--red);
  --red-soft: rgba(198, 40, 40, .08);
  --amber-soft: #fff6dd;
  --c-white: var(--ivory);
  --c-draw: var(--slate);
  --c-black: var(--ebony);
  --focus: #1a5fb4; /* 6.3:1 */
  /* one type scale: 12px is the floor for UI text (chart glyphs and a few display figures are exempt) */
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-28: 28px; --fs-40: 40px;
  --fs-hero: clamp(34px, 4.4vw, 54px);
  /* three radii; 50% for round things and 999px only for the live dot and status chips */
  --r-1: 4px; /* chips, mini squares, check boxes */
  --r-2: 10px; /* buttons, boxes, inputs */
  --r-3: 16px; /* panels, dialogs */
  --radius: var(--r-2);
  --radius-lg: var(--r-3);
  --wrap: 1200px;
  /* depth, kept to a minimum: flat surfaces, a hairline where something needs an edge, one shadow for menus */
  --sunken: var(--panel);
  --surface: var(--bg);
  --edge: var(--line);
  --lift-1: none;
  --lift-2: none;
  --lift-3: 0 8px 24px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .1);
  --well: none;
  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-comic: 'Bangers', 'Impact', 'Arial Black', sans-serif; /* a game's ending only */
  --f-text: Archivo, system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { margin: 0; color: var(--text); }
html { background: var(--bg); }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font: var(--fs-14)/1.45 var(--f-text); -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
main { flex: 1; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--text); text-decoration-color: rgba(18, 18, 18, .35); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: .005em; line-height: 1.05; }
img, svg { display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--r-2); text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- buttons: secondary ones are white with a 3.8:1 edge; the one primary action is near-black ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--ui-line); background: var(--bg); padding: 8px 16px; border-radius: var(--r-2);
  cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--text);
  transition: background-color .12s, transform 90ms var(--ease-out);
}
.btn:hover { background: var(--panel); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ink, .btn-go { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn-ink:hover, .btn-go:hover { background: #333; }
.btn-danger { color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-block { width: 100%; padding: 13px 16px; font-size: var(--fs-16); }
.btn-text { border: 0; background: none; padding: 6px 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-text:hover { text-decoration: underline; }
.btn-link { border: 0; background: none; padding: 0; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--f-display); font-weight: 900; font-size: var(--fs-28); letter-spacing: .01em; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.account-slot { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.record { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; margin-right: 6px; text-decoration: none; }
.record small { color: var(--muted); font-size: var(--fs-12); font-weight: 500; }
.record b { color: var(--text); font-family: var(--f-mono); font-weight: 500; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 0;
  border-radius: var(--radius-lg); box-shadow: var(--lift-3); padding: 6px; display: flex; flex-direction: column;
}
.menu-panel .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-panel .who b { display: block; }
.menu-panel .who small { color: var(--muted); }
.menu-panel a, .menu-panel button { text-align: left; border: 0; background: none; padding: 8px 10px; min-height: 44px; display: flex; align-items: center; border-radius: var(--r-1); text-decoration: none; cursor: pointer; font-weight: 500; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--panel-2); }
.notice { background: var(--amber-soft); border-bottom: 1px solid #ecd9a0; font-size: var(--fs-14); }
.notice .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 720px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: var(--fs-20); }
}
@media (max-width: 420px) {
  .site-header .wrap { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .brand { font-size: var(--fs-20); gap: 6px; }
  .account-slot { gap: 6px; }
  .account-slot .btn { padding: 7px 11px; min-height: 44px; }
  .account-slot .save-btn { display: none; } /* too wide here: it's in the account menu instead */
  .record { margin-right: 0; }
}

/* the menu: every page's links, the same button as on the play page */
.nav-menu > summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-2); color: var(--text); }
.nav-menu > summary:hover { background: var(--panel); }
.nav-menu a[aria-current='page'] { background: var(--panel-2); }

/* ---------- the mark: a short chain of squares, each greener than the last, like a streak building ---------- */
.mark { display: inline-grid; grid-template-columns: repeat(4, 30px); gap: 6px; flex: none; }
.mark i { aspect-ratio: 1; border-radius: var(--r-1); }
.mark i:nth-child(1) { background: #d3e7d8; }
.mark i:nth-child(2) { background: #8cc79c; }
.mark i:nth-child(3) { background: #46a061; }
.mark i:nth-child(4) { background: var(--green); }
.mark.small { grid-template-columns: repeat(4, 9px); gap: 3px; }
.mark.small i, .mark.tiny i { border-radius: 2px; }
.mark.tiny { grid-template-columns: repeat(4, 7px); gap: 2px; }

/* the landing page and the lobby: no header bar, one menu button */
.page-menu > summary { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-2); color: var(--text); }
.page-menu > summary:hover { background: var(--panel); }
.page-menu .menu-panel { z-index: 40; }
.page-menu a[aria-current='page'] { background: var(--panel-2); }

/* ---------- the landing page: today's game as one object, centred, like a newspaper puzzle's front ---------- */
.landing-page { background: var(--bg); }
.landing-top { position: absolute; top: 12px; right: 12px; z-index: 30; }
.landing { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 20px 40px; }
.landing h1 { font-size: clamp(48px, 8vw, 72px); font-weight: 900; line-height: 1; margin: 24px 0 12px; }
.landing-line { margin: 0 0 28px; font-size: var(--fs-20); line-height: 1.4; max-width: 44ch; color: var(--muted); }
.btn-play { min-width: 220px; min-height: 56px; padding: 0 28px; font-size: var(--fs-20); }
.landing-status { margin: 16px 0 0; font-size: var(--fs-16); color: var(--muted); font-variant-numeric: tabular-nums; }
.landing-status:empty { display: none; }
.landing-links { display: flex; gap: 8px 24px; margin: 18px 0 0; font-size: var(--fs-16); }
.landing-links a { display: inline-flex; align-items: center; min-height: 44px; }


/* a small footer: the legal line and a few links */
.mini-foot { padding: 20px 16px 28px; text-align: center; font-size: var(--fs-12); color: var(--muted); line-height: 1.5; }
.mini-foot p { margin: 0 auto 8px; max-width: 64ch; }
.mini-foot a { color: var(--muted); }
.mini-foot a:hover { color: var(--text); }
.mini-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.mini-foot nav a { display: inline-flex; align-items: center; min-height: 44px; } /* a full tap area around short words */

/* ---------- footer ---------- */
.site-foot { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label { font-weight: 500; font-size: var(--fs-14); }
.field small { color: var(--muted); font-size: var(--fs-12); }
.input {
  width: 100%; border: 1px solid var(--ui-line); background: var(--bg); border-radius: var(--r-2); padding: 10px 12px; font-size: var(--fs-16);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.input[aria-invalid="true"] { border-color: var(--flag-text); }
textarea.input { resize: vertical; }
.password-row { position: relative; }
.password-row .input { padding-right: 64px; }
.password-row button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: var(--fs-14); font-weight: 600; color: var(--muted); cursor: pointer; padding: 6px 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-14); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-msg { margin: 0; font-size: var(--fs-14); min-height: 1.2em; }
.form-msg:empty { display: none; }
.form-msg.error { color: var(--flag-text); }
.form-msg.ok { color: var(--sky); }

/* auth pages: one centered card */
.auth { width: min(420px, calc(100% - 32px)); margin: 48px auto auto; flex: none; padding: 28px; }
.auth h1 { font-size: var(--fs-40); }
.auth .lede { color: var(--muted); margin: 8px 0 22px; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.auth .alt { margin: 18px 0 0; color: var(--muted); font-size: var(--fs-14); text-align: center; }
.auth .alt a { color: var(--text); font-weight: 600; }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--ink); color: var(--on-ink); padding: 11px 16px; border-radius: var(--r-2); font-size: var(--fs-14); font-weight: 500; text-align: center; box-shadow: var(--lift-3); animation: toast-in .22s var(--ease-out); pointer-events: auto; }
.toast.error { background: var(--red); color: #fff; }
.toast.ok { background: var(--green); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: var(--r-3); padding: 28px; width: min(380px, calc(100vw - 32px)); background: var(--surface); box-shadow: var(--lift-3); color: var(--text); }
dialog::backdrop { background: rgba(18, 18, 18, .4); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--fs-14); }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); }
td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
td a { text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; }

/* ---------- legal pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 36px 20px 0; }
.prose h1 { font-size: var(--fs-40); }
.prose .updated { color: var(--muted); margin: 6px 0 18px; }
.prose .callout { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px 18px; margin: 0 0 22px; }
.prose h2 { font-size: var(--fs-28); margin: 34px 0 8px; scroll-margin-top: 80px; }
.prose h3 { font-size: var(--fs-16); margin: 20px 0 6px; }
.prose p, .prose li { line-height: 1.65; font-size: var(--fs-16); }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose table { display: block; overflow-x: auto; margin: 8px 0 18px; }
.prose th, .prose td { vertical-align: top; }
.prose th { font-weight: 600; background: var(--panel-2); color: var(--text); }
.prose .toc { border-left: 2px solid var(--line); padding-left: 16px; margin: 0 0 8px; }
.prose .toc ol { margin: 0; columns: 2; column-gap: 28px; }
.prose .toc a { text-decoration: none; color: var(--muted); }
.prose .toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 600px) { .prose h1 { font-size: var(--fs-28); } .prose .toc ol { columns: 1; } }

/* ---------- 404 ---------- */
.notfound { max-width: 520px; margin: 80px auto 0; padding: 0 20px; text-align: center; }
.notfound .figure { font-family: var(--f-display); font-size: 120px; font-weight: 900; line-height: 1; color: var(--line); }
.notfound h1 { font-size: var(--fs-40); margin: 8px 0; }
.notfound p { color: var(--muted); margin: 0 0 22px; }

/* ---------- marketing pages: how it works, winners, FAQ, about, contact ---------- */
.page-head { max-width: 860px; margin: 0 auto; padding: 48px 20px 8px; }
.page-head .eyebrow, .dayline { display: block; font: 600 var(--fs-14)/1.3 var(--f-text); color: var(--muted); margin: 0 0 10px; }
.dayline b { color: var(--text); font-variant-numeric: tabular-nums; }
.page-head h1 { font-size: var(--fs-hero); }
.page-head .lede { font-size: var(--fs-20); line-height: 1.5; color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.page-body { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.page-body > h2, .page-body section > h2 { font-size: var(--fs-28); margin: 48px 0 12px; scroll-margin-top: 80px; }
.page-body p, .page-body li { font-size: var(--fs-16); line-height: 1.65; }
@media (max-width: 600px) { .page-head .lede { font-size: var(--fs-16); } }
.page-body p { margin: 0 0 14px; max-width: 68ch; }

/* the steps: a plain numbered list, no cards */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; }
.steps li::before { content: counter(step); grid-row: 1 / 3; font-family: var(--f-display); font-size: var(--fs-40); font-weight: 900; line-height: 1; color: var(--muted); }
.steps h2 { font-family: var(--f-display); font-size: var(--fs-20); font-weight: 800; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; }
@media (max-width: 600px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts dd { font-size: var(--fs-28); } }
.facts div { background: var(--sunken); box-shadow: var(--well); border-radius: var(--r-3); padding: 16px 18px; }
.facts dt { font-size: var(--fs-14); color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--f-display); font-size: var(--fs-40); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.facts .brass { color: var(--brass); }

.cta-band { margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--fs-28); margin: 0; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }
.cta-band .btn { padding: 13px 22px; font-size: var(--fs-16); min-height: 48px; }


.faq { margin: 8px auto 0; }
.faq .faq-group { font-size: var(--fs-14); line-height: 1.4; font-family: var(--f-text); font-weight: 600; letter-spacing: normal; color: var(--muted); margin: 40px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; font-size: var(--fs-16); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: var(--fs-20); color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.winners-table td:first-child { white-space: nowrap; }
.winners-table .prize { color: var(--brass); font-weight: 600; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--sunken); box-shadow: var(--well); border-radius: var(--r-3); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; margin-top: 28px; align-items: start; }
.contact-grid form { display: flex; flex-direction: column; gap: 16px; }
.contact-grid aside h2 { font-size: var(--fs-20); margin: 0 0 6px; }
.contact-grid aside p { font-size: var(--fs-16); color: var(--muted); }
.contact-grid aside section + section { margin-top: 24px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.notfound nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 24px; }
.code-input { font-family: var(--f-mono); font-size: var(--fs-20); letter-spacing: .3em; }
.secret { font-family: var(--f-mono); font-size: var(--fs-16); letter-spacing: .08em; background: var(--sunken); box-shadow: var(--well); padding: 10px 14px; border-radius: var(--r-2); word-break: break-all; user-select: all; }
.fine { color: var(--muted); font-size: var(--fs-14); margin: 18px 0 0; }
.contact-grid form .fine { margin: 0; }

/* in-app browsers (Instagram, TikTok…) can lose a guest's run: one dismissable line */
.inapp { background: var(--panel); border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.inapp .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- day pages (/day/YYYY-MM-DD) ---------- */
.crumbs-nav { font-size: var(--fs-14); color: var(--muted); margin-bottom: 12px; }
.crumbs-nav a { color: var(--muted); }
.day-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: var(--fs-14); }
.day-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.page-body h2 small { font-family: var(--f-text); font-size: var(--fs-14); font-weight: 500; color: var(--muted); }
.day-games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.day-game { padding: 12px 14px; border-radius: var(--r-2); background: var(--sunken); box-shadow: var(--well); }
.day-game p { margin: 0; font-size: var(--fs-14); line-height: 1.4; }
.day-game .who { font-weight: 600; overflow-wrap: anywhere; }
.day-game .who small { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.day-game .res { margin-top: 4px; }
.day-game .crowd { color: var(--muted); font-size: var(--fs-12); margin-top: 6px; font-variant-numeric: tabular-nums; }
.day-game .hair { display: flex; height: 3px; margin-top: 4px; border-radius: 1px; overflow: hidden; }
.day-game .hair .w { background: var(--ivory); box-shadow: inset 0 0 0 1px var(--ui-line); } .day-game .hair .d { background: var(--slate); } .day-game .hair .b { background: var(--ebony); }
.brass { color: var(--brass); }

/* ---------- shared result page (/r/:id): six squares, no spoilers ---------- */
.run-squares { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 88px)); gap: 10px; }
.run-squares li { aspect-ratio: 1; border-radius: var(--r-1); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ui-line); }
.run-squares .correct { background: var(--sky); box-shadow: none; }
.run-squares .wrong { background: var(--flag); box-shadow: none; }
.run-squares .open { background: var(--bg); box-shadow: none; outline: 2px dashed var(--ink); outline-offset: -2px; }
@media (max-width: 480px) { .run-squares { gap: 6px; } }
.day-board { list-style: none; margin: 0; padding: 0; }
.day-board li { display: grid; grid-template-columns: 2.5em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-16); }
.day-board .rank { font-family: var(--f-mono); color: var(--muted); }
.day-board .n { font-family: var(--f-display); font-size: var(--fs-28); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
