:root {
  --bg: #F5F2EB;
  --surface: #FFFFFF;
  --surface-2: #FAF8F3;
  --ink: #1F1D1A;
  --ink-2: #5B574F;
  --ink-3: #6E6A62; /* 4.5:1+ on cream and white (WCAG AA small text) */
  --line: rgba(31, 29, 26, .10);
  --line-2: rgba(31, 29, 26, .22);
  --accent: #C8402F;
  --good: #277953; /* 4.5:1+ on cream and white */
  --bad: #C2553B;
  --card: #FFFDF8;
  --board: #1E2F72; /* the answer board */
  --board-hi: #33509F;
  --board-ink: #E9D8A6; /* warm gold numbers on the board */
  --tile: #2A428F;
  --tile-hi: #3854A8;
  --gold: #D99A1E; /* points box, top answer */
  --gold-ink: #855600; /* gold as small text (4.5:1+ on cream) */
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --ad-gap: 150px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-ui);
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
kbd { font: 500 11px var(--font-ui); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}
/* Logo F (owner's pick, 15 Oct): a tiny 2 x 3 board, top tile gold, then "Typicle". The board is 0.96em
   tall with the T centred on it: the T runs from the baseline to 0.714em, so the box goes from -0.123em to
   0.837em (owner, 16 Oct: box spanning the whole word put the text too high, bottom-aligned too low).
   Optical size pinned so it looks the same at every size. */
.logo {
  display: inline-block;
  font: 600 26px/1 var(--font-display);
  font-variation-settings: "opsz" 36;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-board { display: inline-block; width: .96em; height: .96em; margin-right: .22em; vertical-align: -.123em; }
/* Back to the Everythingle hub: its "le" tile, the same as the site icon. */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-text { min-width: 0; }
.hub-link { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); text-decoration: none; }
.hub-back { width: 8px; height: 14px; transition: transform .15s; }
.hub-tile {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding-bottom: 3px;
  border-radius: 8px;
  background: #2AA0B0;
  color: #fff;
  font: 600 19px/1 var(--font-display);
  letter-spacing: -.03em;
  transition: background .15s;
}
.hub-link:hover { color: var(--ink); }
.hub-link:hover .hub-back { transform: translateX(-2px); }
.hub-link:hover .hub-tile { background: #23899A; }
.hub-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.issue { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex: none; align-items: center; gap: 16px; font-size: 13px; }
.nav a, .nav button { background: none; border: 0; padding: 4px 0; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav button:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-help i {
  display: none;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2);
  font-style: normal; line-height: 24px; text-align: center;
}
.coffee-top { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); }
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .brand { gap: 10px; }
  .issue { font-size: 10px; letter-spacing: .1em; }
  .issue-arch { display: none; }
  .nav-archive { display: none; } /* Archive stays on the results screen and in the footer */
  .nav-help span { display: none; }
  .nav-help i { display: inline-block; }
}

/* Ad spots: fixed size per screen width so the page never jumps */
.ad-band { display: flex; justify-content: center; padding: 8px var(--gutter); }
.ad-band--top { margin-bottom: 8px; }
.ad-band--bottom { margin: 40px 0; }
.ad-slot { flex: none; position: relative; max-width: 100%; }
.ad-slot ins { display: block; width: 100%; height: 100%; }
.ad-slot.is-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: rgba(31, 29, 26, .035);
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ad-slot.is-placeholder::after { content: "Ad · " var(--ad-label); }

.ad-slot[data-spot="top"] { width: 320px; height: 100px; --ad-label: "320 × 100"; }
.ad-slot[data-spot="bottom"] { width: 300px; height: 250px; --ad-label: "300 × 250"; }
.ad-slot--inline { width: 300px; height: 250px; --ad-label: "300 × 250"; }
.ad-slot--rail { width: 160px; height: 600px; --ad-label: "160 × 600"; }
@media (min-width: 768px) {
  .ad-slot[data-spot="top"], .ad-slot[data-spot="bottom"] { width: 728px; height: 90px; --ad-label: "728 × 90"; }
}
@media (min-width: 1280px) {
  .ad-slot[data-spot="top"] { width: 970px; height: 90px; --ad-label: "970 × 90"; }
}
.ad-inline { display: flex; justify-content: center; padding: 0 var(--gutter); margin: 24px 0 8px; }
/* Live site: a spot without an AdSense id is hidden instead of leaving a gap (js/ads.js). */
.no-ad-top .ad-band--top, .no-ad-bottom .ad-band--bottom, .no-ad-middle .rail, .no-ad-middle .ad-inline { display: none; }

/* Stage: the game stays centred exactly as it is without ads. Side ads are desktop only: they sit in
   the free space either side of the game (580px wide at most), 150px+ from it and 24px+ from the
   screen edge, and appear only once both fit. Below that the same spot is one 300 x 250 box under the game. */
.stage { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); --game-w: 580px; }
.rail { display: none; }
@media (min-width: 1280px) { .stage { padding: 0 24px; } }
@media (min-width: 1248px) {
  .rail { display: block; position: absolute; top: 0; bottom: 0; right: calc(50% + var(--game-w) / 2 + var(--ad-gap)); }
  .rail--right { right: auto; left: calc(50% + var(--game-w) / 2 + var(--ad-gap)); }
  .rail:not(.rail--right) .ad-slot { position: sticky; top: 24px; } /* at most one sticky ad per page */
  .ad-inline { display: none; }
}
@media (min-width: 1528px) {
  .ad-slot--rail { width: 300px; --ad-label: "300 × 600"; }
}

.game { min-width: 0; }
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-height: 40px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.dots i.current { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 29, 26, .12); }
.dots i.done { background: var(--board); border-color: var(--board); }
.status .today b { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }

.ghost-title {
  margin: 4px 0 22px;
  text-align: center;
  font: 400 clamp(44px, 8.4vw, 120px)/1 var(--font-display);
  letter-spacing: -.02em;
  color: rgba(31, 29, 26, .07);
  user-select: none;
}
@media (max-width: 767px) {
  .ad-band--top { margin-bottom: 0; }
  .status { margin-top: 26px; }
  .ghost-title { font-size: 40px; margin: 10px 0 28px; }
}

.play { display: grid; grid-template-columns: minmax(0, 540px); justify-content: center; }
.panel.is-done { max-width: 500px; margin: 0 auto; }

/* Panel */
.panel {
  width: 100%;
  background: var(--surface);
  border-radius: 22px;
  padding: 16px 16px 18px;
  box-shadow: 0 1px 2px rgba(31, 29, 26, .05), 0 24px 48px -28px rgba(31, 29, 26, .35);
}
.panel-loading { margin: 0; color: var(--ink-3); font-size: 14px; }
.panel-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* The question, as the host would read it out. It sits above the game card, in the space the
   150px gap from the top ad needs anyway, so the board and guess box fit above the fold on phones. */
.question { display: grid; gap: 6px; justify-items: center; align-content: end; max-width: 580px; margin: 0 auto 4px; padding: 0 8px; text-align: center; }
.question:empty { display: none; }
.theme { font: 600 11px/1.3 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.q-text { margin: 0; font: 600 24px/1.2 var(--font-display); letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }

/* The board: the game's one strong object, as the felt table is for Strategle. Two columns of numbered
   tiles (1-3 left, 4-6 right), a points box on top, a dotted ring for the show's lights. */
.board {
  position: relative;
  margin-top: 26px;
  padding: 34px 12px 12px;
  border-radius: 20px;
  background: radial-gradient(120% 90% at 50% 25%, var(--board-hi), var(--board) 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 24px -16px rgba(31, 29, 26, .55);
}
.board::before { content: ""; position: absolute; inset: 6px; border-radius: 15px; border: 2px dotted rgba(233, 216, 166, .42); pointer-events: none; }
.pot {
  position: absolute; z-index: 2; top: -23px; left: 50%; transform: translateX(-50%);
  min-width: 96px; height: 48px; padding: 0 16px;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--gold); border-radius: 12px;
  font: 600 28px/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 rgba(31, 29, 26, .12);
}
.tiles { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 56px); grid-auto-flow: column; gap: 7px; }
.tile { position: relative; display: flex; align-items: center; min-width: 0; border-radius: 9px; overflow: hidden; }
.tile.hidden { justify-content: center; background: linear-gradient(var(--tile-hi), var(--tile)); box-shadow: inset 0 0 0 1px rgba(233, 216, 166, .24), inset 0 -2px 0 rgba(0, 0, 0, .18); }
.tile-n { width: 38px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--board); font: 600 17px/1 var(--font-display); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.tile.open { background: var(--card); box-shadow: inset 0 -2px 0 rgba(31, 29, 26, .08); animation: flip .5s ease-out; }
.tile-a { flex: 1; min-width: 0; padding: 0 8px 0 12px; font: 600 16px/1.12 var(--font-ui); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile.long .tile-a { font-size: 14px; }
.tile-p { flex: none; align-self: stretch; width: 46px; display: grid; place-items: center; background: var(--board); color: var(--board-ink); font: 600 21px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tile.open.top .tile-p { background: var(--gold); color: #2A1800; }
.tile.open.missed { background: #DCD6CA; }
.tile.missed .tile-a { color: var(--ink-2); font-weight: 500; }
.tile.missed .tile-p { background: #49548A; color: #DAD2BC; }
@keyframes flip { from { transform: perspective(500px) rotateX(-90deg); } to { transform: none; } }
.big-x { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.big-x svg { width: 40%; max-width: 170px; }
.big-x.show { animation: xflash 1s ease-out; }
@keyframes xflash { 0% { opacity: 0; transform: scale(.55); } 14% { opacity: 1; transform: scale(1.06); } 26% { transform: scale(1); } 72% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tile.open, .big-x.show { animation: none; } }

/* Guess box, strike boxes and the host's line */
.guess { display: flex; gap: 8px; margin-top: 16px; }
.guess input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 14px; font: 500 17px var(--font-ui); color: var(--ink); }
.guess input::placeholder { color: var(--ink-3); }
.guess input:focus { outline: none; border-color: var(--board); box-shadow: 0 0 0 3px rgba(30, 47, 114, .16); }
.guess .btn-primary { flex: none; height: 50px; padding: 0 22px; }
.guess input:disabled, .guess .btn-primary:disabled { opacity: .45; cursor: default; }
.strikes { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.strike { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font: 600 16px/1 var(--font-display); }
.strike.hit { border-color: var(--gold); color: var(--gold-ink); background: #FBF3DF; }
.strike.miss { border-color: var(--accent); color: var(--accent); background: #FBEDEA; font: 700 20px/1 var(--font-ui); }
.strikes-left { margin-left: 6px; font-size: 13px; color: var(--ink-3); }
.host { min-height: 24px; margin: 10px 0 0; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink-2); text-wrap: balance; }
.host b { color: var(--ink); }
.after { display: grid; gap: 10px; }
.after:empty { display: none; }
.after { margin-top: 12px; }
.round-pts { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.round-pts b { font: 600 20px var(--font-display); color: var(--ink); }
.after .report { justify-self: center; font-size: 12.5px; color: var(--ink-3); text-underline-offset: 3px; }
.after .report:hover { color: var(--ink); }

@media (max-width: 559px) {
  .panel { padding: 12px 12px 16px; }
  .q-text { font-size: 21px; }
  .question { min-height: 82px; } /* keeps the card 150px+ below the top ad when a question fits on one line */
  .board { margin-top: 24px; padding: 30px 8px 8px; }
  .tiles { gap: 5px; grid-template-rows: repeat(3, 56px); }
  .tile-a { font-size: 14px; padding: 0 6px 0 9px; }
  .tile.long .tile-a { font-size: 12.5px; }
  .tile-p { width: 38px; font-size: 18px; }
  .tile-n { width: 34px; height: 27px; font-size: 15px; }
}
@media (min-width: 900px) {
  .play { grid-template-columns: minmax(0, 580px); }
  .ghost-title { font-size: clamp(44px, 5vw, 72px); margin: 2px 0 16px; }
  .q-text { font-size: 27px; }
}
/* Phones: no big headline, so the board and guess box sit higher (the guess box stays 150px+ below the top ad). */
@media (max-width: 767px) {
  .ghost-title { display: none; }
  .status { margin-top: 18px; margin-bottom: 8px; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .ghost-title { margin-bottom: 28px; }
}

.btn-primary {
  height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px;
  background: var(--ink); color: #fff;
  font: 600 15px var(--font-ui);
}
.btn-primary:hover { background: #33302b; }
.btn-primary.wide { width: 100%; }
.btn-secondary {
  display: grid; place-items: center;
  height: 46px; margin-top: 10px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font: 600 15px var(--font-ui); text-decoration: none;
}
.btn-secondary.wide { width: 100%; }
.panel.is-done .btn-primary { margin-top: 4px; }
.btn-secondary:hover { border-color: var(--ink); }
.linkish { border: 0; background: none; padding: 4px 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* Results: the score on a small board, then one row per question that opens to show its board */
.scoreboard { margin-top: 30px; padding: 24px 16px 18px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.sb-tier { font: 600 12px/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--board-ink); }
.sb-big { font: 700 64px/1 var(--font-display); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.sb-of { font-size: 14px; color: #CBD3EE; }
.total-line { margin: 12px 0 0; font: italic 400 17px/1.4 var(--font-display); color: var(--ink-2); text-align: center; text-wrap: balance; }
.results { list-style: none; margin: 14px 0 4px; padding: 0; border-top: 1px solid var(--line); }
.results > li { border-bottom: 1px solid var(--line); }
.results summary { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 10px 2px; cursor: pointer; list-style: none; }
.results summary::-webkit-details-marker { display: none; }
.results summary:hover .r-q { text-decoration: underline; text-underline-offset: 3px; }
.r-n { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.r-q { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-sq { font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.r-p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-p small { margin-left: 3px; color: var(--ink-3); font-weight: 500; }
.r-board { margin: 0 0 10px; padding: 8px 12px 8px 32px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 2px; font-size: 14px; }
.r-board li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.r-board li::marker { color: var(--ink-3); font-weight: 600; }
.r-board li b { font-variant-numeric: tabular-nums; color: var(--ink-3); }
.r-board li.got { color: var(--ink); font-weight: 600; }
.r-board li.got b { color: var(--gold-ink); }
.r-tried { margin: -2px 0 10px; font-size: 13px; color: var(--ink-3); }
.results-tip { margin: 0 0 12px; text-align: center; font-size: 12px; color: var(--ink-3); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; text-align: center; }
.mini-stats div { padding: 10px 4px; border-radius: 12px; background: var(--surface-2); }
.mini-stats b { display: block; font: 600 20px var(--font-ui); }
.mini-stats span { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.next-in { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.next-in b { font-variant-numeric: tabular-nums; color: var(--ink); }
.coffee-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 11px 14px; border-radius: 12px;
  background: color-mix(in srgb, #E3A33A 18%, #fff);
  text-decoration: none; font-weight: 500; font-size: 14px;
}
.panel-links { display: flex; justify-content: center; align-items: baseline; gap: 18px; margin-top: 14px; font-size: 13px; }
.panel-links a { color: var(--ink-2); }
/* Stats is a button but sits on the line like the links next to it: same baseline, colour and underline. */
.panel-links { align-items: baseline; }
.panel-links a, .panel-links .linkish { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.panel-links .linkish { padding: 0; font: inherit; line-height: inherit; cursor: pointer; }
.notice { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }

/* Text sections between game and lower ads */
.about { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); color: var(--ink-2); font-size: 15px; }
.about:first-of-type { margin-top: 96px; }
.about h2 { font: 400 24px/1.25 var(--font-display); color: var(--ink); margin: 0 0 8px; }
.about--scoring { margin-top: 40px; }
.about ul { margin: 0; padding-left: 20px; }
.credits { font-size: 12px; color: var(--ink-3); }
@media (min-width: 1280px) {
  .about:first-of-type { margin-top: 120px; }
}

.footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; padding: 0 var(--gutter) 40px; font-size: 13px; color: var(--ink-3); }
.footer a { color: var(--ink-2); }

/* Dialogs and toast */
.dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0; border-radius: 22px; padding: 26px 24px 22px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(31, 29, 26, .5);
}
.dialog::backdrop { background: rgba(245, 242, 235, .72); backdrop-filter: blur(4px); }
.dialog h2 { font: 400 34px/1.1 var(--font-display); margin: 4px 0 14px; }
.dialog p, .dialog li { font-size: 15px; color: var(--ink-2); }
.dialog ul { padding-left: 20px; }
.dialog strong { color: var(--ink); }
.dialog .btn-primary { margin-top: 8px; }
.help-steps { list-style: none; padding: 0 !important; display: grid; gap: 8px; margin: 0 0 14px; }
.help-steps li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; }
.help-steps b { display: grid; place-items: center; height: 32px; border-radius: 8px; background: var(--board); color: var(--board-ink); font: 600 16px var(--font-display); }
.help-steps b.x { background: #FBEDEA; color: var(--accent); border: 1.5px solid var(--accent); font: 700 16px var(--font-ui); }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; font-size: 22px; color: var(--ink-3); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-bottom: 18px; }
.stat-grid b { display: block; font: 600 24px var(--font-ui); }
.stat-grid span { font-size: 11px; color: var(--ink-3); }
.hist { display: grid; gap: 6px; }
.hist div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.hist i { display: block; height: 20px; min-width: 22px; border-radius: 6px; background: var(--ink-3); color: #fff; font-style: normal; font-size: 11px; line-height: 20px; padding: 0 7px; text-align: right; font-weight: 600; }
.hist i.top { background: var(--good); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Phones: the Next button sits at the bottom of the screen after a pick, so the toast goes to the top */
@media (pointer: coarse) {
  .toast { top: 16px; bottom: auto; transform: translate(-50%, -20px); }
  .toast.show { transform: translate(-50%, 0); }
}

/* Archive page */
.archive { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.archive h1 { font: 400 clamp(36px, 7vw, 56px)/1.05 var(--font-display); margin: 24px 0 6px; }
.archive > p { color: var(--ink-2); margin: 0 0 24px; }
.arch-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 22px; box-shadow: 0 1px 2px rgba(31, 29, 26, .05), 0 24px 48px -28px rgba(31, 29, 26, .35); }
.arch-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.arch-list li:last-child a { border-bottom: 0; }
.arch-list a:hover { background: var(--surface-2); }
.arch-no { font: 600 18px var(--font-display); }
.arch-date { color: var(--ink-2); font-size: 14px; }
.arch-date small { display: block; color: var(--ink-3); font-size: 12px; }
.arch-score { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.arch-score.todo { color: var(--accent); font-weight: 500; }

/* Privacy and 404 pages */
.legal { max-width: 680px; margin: 24px auto 64px; padding: 0 var(--gutter); color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal h1 { font: 400 clamp(34px, 6vw, 48px)/1.1 var(--font-display); color: var(--ink); margin: 0 0 6px; }
.legal h2 { font: 600 19px/1.3 var(--font-ui); color: var(--ink); margin: 32px 0 8px; }
.legal-updated { font-size: 13px; color: var(--ink-3); margin: 0 0 24px; }
.legal ul { padding-left: 20px; }
.legal a { color: #2A5BAA; }

/* "Also today": links to the site's other games on the results screen */
.also:empty { display: none; }
.also { margin-top: 16px; }
.also-head { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.also-card {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink); text-decoration: none;
}
.also-card + .also-card { margin-top: 8px; }
.also-card:hover { border-color: var(--ink-3); background: #fff; }
.also-card img { display: block; width: 40px; height: 40px; }
.also-text b { display: block; font: 600 18px/1.2 var(--font-display); }
.also-text small { display: block; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.also-go { font-weight: 600; font-size: 14px; white-space: nowrap; }
.also-go.done { color: var(--good); }
.also-all { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* Read by screen readers only (the live region that announces statements and verdicts) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

