/* Now & When — the timeline is a departures board: a dark panel of ruled
   rows with years on split-flap tiles, mounted on a plain paper page. One
   blue for "right", amber for "close", vermilion for "way off". */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/bigshoulders-latin.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/bigshoulders-latin-ext.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-latin-ext.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* page */
  --paper: #ffffff;
  --paper-2: #f1f1ed;
  --ink: #141414;
  --ink-2: #46463f;
  --muted: #74746d;
  --rule: #dddcd5;
  /* the board */
  --board: #17181b;
  --board-ink: #f3f2ec;
  --board-muted: #9a998f;
  --board-rule: #2c2d31;
  --board-dash: #4a4b51;
  --board-edge: transparent;
  --band: #f1efe8;
  --flap: #26272c;
  --flap-top: #313238;
  --flap-ink: #f6f5ef;
  /* verdicts */
  --right: #1f45f2;
  --right-top: #3a5cff;
  --right-soft: #e8ecff;
  --right-lite: #8ea2ff;
  --close: #e98d00;
  --close-top: #f7a21e;
  --close-lite: #ffb347;
  --wrong: #d9412b;
  --wrong-top: #ea5943;
  --wrong-lite: #ff8a78;
  --on-tone: #ffffff;
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --text: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand-rule: #141414;
  --hand-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0a0a0c;
    --paper-2: #18191c;
    --ink: #f0efe9;
    --ink-2: #c6c5be;
    --muted: #8e8d86;
    --rule: #2b2c30;
    --board: #1f2024;
    --board-edge: #2c2d33;
    --band: #141518;
    --board-rule: #303136;
    --board-dash: #55565c;
    --flap: #303137;
    --flap-top: #3b3c43;
    --right: #2f52f5;
    --right-top: #4a6aff;
    --right-soft: #1a2144;
    --close: #d98400;
    --close-top: #eb9a17;
    --wrong: #cf3d28;
    --wrong-top: #e2533d;
    --hand-rule: #3a3b41;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0a0a0c;
  --paper-2: #18191c;
  --ink: #f0efe9;
  --ink-2: #c6c5be;
  --muted: #8e8d86;
  --rule: #2b2c30;
  --board: #1f2024;
  --board-edge: #2c2d33;
  --band: #141518;
  --board-rule: #303136;
  --board-dash: #55565c;
  --flap: #303137;
  --flap-top: #3b3c43;
  --right: #2f52f5;
  --right-top: #4a6aff;
  --right-soft: #1a2144;
  --close: #d98400;
  --close-top: #eb9a17;
  --wrong: #cf3d28;
  --wrong-top: #e2533d;
  --hand-rule: #3a3b41;
  color-scheme: dark;
}

* { box-sizing: border-box; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 var(--text);
  min-height: 100dvh;
  padding-bottom: calc(var(--hand-h) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--right); outline-offset: 2px; }

/* ---------- split-flap tiles ---------- */
.flaps { display: inline-flex; gap: 3px; vertical-align: middle; }
.flap {
  position: relative;
  width: 21px;
  height: 31px;
  border-radius: 3px;
  background: linear-gradient(var(--flap-top) 50%, var(--flap) 50%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  color: var(--flap-ink);
  font: 700 23px/31px var(--display);
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.flap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 0.5px);
  height: 1px;
  background: rgba(0, 0, 0, 0.28);
}
.flap:empty { opacity: 0.45; }
.flap.era { width: 19px; font-size: 13px; letter-spacing: 0.02em; }
.flap.era.stack { display: flex; flex-direction: column; justify-content: center; font-size: 11px; line-height: 12px; }
.flap.era.stack i { font-style: normal; display: block; }
.flaps.right .flap { background: linear-gradient(var(--right-top) 50%, var(--right) 50%); color: var(--on-tone); }
.flaps.close .flap { background: linear-gradient(var(--close-top) 50%, var(--close) 50%); color: #141414; }
.flaps.wrong .flap { background: linear-gradient(var(--wrong-top) 50%, var(--wrong) 50%); color: var(--on-tone); }
.flaps.blank .flap { color: var(--board-muted); }
.flap.tick { animation: tick 70ms linear; }
@keyframes tick {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); }
  100% { transform: scaleY(1); }
}
.flaps-big .flap { width: 30px; height: 44px; font-size: 34px; line-height: 44px; border-radius: 4px; }
.flaps-big .flap.era { width: 26px; font-size: 17px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}
.topbar-in {
  max-width: 1040px;
  margin: 0 auto;
  height: 56px;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  font: 800 27px/1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand { gap: 7px; }
.brand .flaps { gap: 2px; }
.brand .flap { width: 19px; height: 28px; font-size: 22px; line-height: 28px; }
.tools { display: flex; gap: 2px; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- layout ---------- */
.layout { max-width: 1040px; margin: 0 auto; padding: 0 16px 28px; display: flex; flex-direction: column; }
.layout.done .col-side { order: 1; }
.layout.done .col-board { order: 2; }
.status {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 14px;
}
.status .no { font: 800 32px/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.status .when { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.status .when.warn { color: var(--wrong); font-weight: 600; }
.status .mode {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px 2px;
  font: 700 13px/1.1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
}
.pips { display: flex; gap: 3px; padding-bottom: 3px; }
.pip { width: 12px; height: 12px; background: var(--rule); border-radius: 2px; }
.pip.right { background: var(--right); }
.pip.close { background: var(--close); }
.pip.wrong { background: var(--wrong); }
.pip.now { background: var(--ink); }

/* ---------- the board ---------- */
.board {
  list-style: none;
  margin: 0 -16px;
  padding: 4px 16px 6px;
  background: var(--board);
  border-block: 1px solid var(--board-edge);
  color: var(--board-ink);
}
/* While playing on a phone, the board fills the screen down to the tray. */
@media (max-width: 959px) {
  .layout:not(.done) .board {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 150px - var(--hand-h) - env(safe-area-inset-top));
  }
  .layout:not(.done) .board .cap.end { margin-top: auto; }
}
/* Finished: compact rows so the whole board fits on one screen. */
.board.done .row .meta { display: none; }
.board.done .row .yr { padding: 8px 0 7px; }
.board.done .row .body { padding: 9px 28px 8px 0; }
.board.done .row .more { top: 14px; }
.board.done .row .fact { margin-top: -2px; }
.cap {
  padding: 10px 0 8px;
  font: 700 13px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--board-muted);
}
.cap.end { border-top: 1px solid var(--board-rule); padding: 10px 0 6px; }
.cap { display: flex; justify-content: space-between; gap: 12px; }
.cap-tip { color: var(--board-ink); letter-spacing: 0.08em; }
.row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 0 14px;
  align-items: start;
  border-top: 1px solid var(--board-rule);
}
.row .yr { padding: 11px 0 10px; }
.row .body {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 28px 11px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--board-ink);
}
.row .body:disabled { cursor: default; }
/* chevron: the row opens to show its fact */
.row .more {
  position: absolute;
  right: 6px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--board-muted);
  border-bottom: 2px solid var(--board-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.row .body[aria-expanded='true'] .more { transform: translateY(4px) rotate(-135deg); }
.row .body:hover .more { border-color: var(--board-ink); }
.row .title { display: block; font-weight: 600; font-size: 16px; line-height: 1.28; }
.row .meta { display: block; margin-top: 3px; font-size: 13px; color: var(--board-muted); }
.row .verdict-line { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; }
.row .verdict-line.right { color: var(--right-lite); }
.row .verdict-line.close { color: var(--close-lite); }
.row .verdict-line.wrong { color: var(--wrong-lite); }
.row .fact {
  grid-column: 2;
  margin: -4px 0 13px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #d2d1ca;
  max-width: 60ch;
}
.row .fact a { color: var(--board-muted); font-size: 13px; white-space: nowrap; }
.row.fresh { animation: land 0.6s ease; }
.row.shake { animation: shake 0.42s ease; }
@keyframes land { from { background: #2a2b31; } to { background: transparent; } }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.gap button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gap button::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1.5px dashed var(--board-dash);
}
.gap .here {
  position: relative;
  margin-left: 130px;
  padding: 7px 12px 6px;
  background: var(--board);
  border: 1.5px solid #8a8c94;
  border-radius: 999px;
  color: #e8e6e1;
  font: 700 13px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* hover only on real pointers, or a tapped gap stays lit on phones */
.gap button:focus-visible::before { border-top: 2px solid var(--right-top); }
.gap button:focus-visible .here { background: var(--right); border-color: var(--right); color: #fff; }
@media (hover: hover) {
  .gap button:hover::before { border-top: 2px solid var(--right-top); }
  .gap button:hover .here { background: var(--right); border-color: var(--right); color: #fff; }
}
.gap button:focus-visible { outline: none; }

/* ---------- side column: current card + results ---------- */
.hand {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 2px solid var(--hand-rule);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}
.hand:empty { display: none; }
.hand-in { max-width: 560px; margin: 0 auto; }
.kicker {
  display: flex;
  justify-content: space-between;
  font: 700 13px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.dealt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  animation: deal 0.3s ease;
}
@keyframes deal { from { transform: translateY(14px); opacity: 0; } }
.dealt .flap { background: linear-gradient(#313238 50%, #26272c 50%); color: #8a8980; }
.dealt .title { font-weight: 700; font-size: 20px; line-height: 1.2; }
.dealt .meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.hand .hand-in { transition: opacity 0.15s ease; }
.hand.waiting .hand-in { opacity: 0.35; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--paper-2); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { opacity: 0.88; background: var(--ink); }
.btn.blue { background: var(--right); border-color: var(--right); color: #fff; }
.btn.blue:hover { background: var(--right-top); border-color: var(--right-top); }
.btn.wide { width: 100%; }

/* ---------- results: a ticket ---------- */
.results { margin: 0 -16px 22px; padding: 22px 16px 26px; background: var(--band); }
.label {
  font: 700 13px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.ticket {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}
.ticket-top { padding: 16px 16px 18px; }
.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 800 16px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticket-head span + span { color: var(--muted); font-weight: 700; }
.score { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 16px; }
.score .of { font: 800 34px/1 var(--display); color: var(--muted); }
.score .flap { width: 52px; height: 76px; font-size: 62px; line-height: 76px; border-radius: 6px; }
.squares { display: flex; justify-content: center; gap: 4px; }
.squares i { width: 24px; height: 24px; border-radius: 3px; background: var(--rule); }
.squares i.right { background: var(--right); }
.squares i.close { background: var(--close); }
.squares i.wrong { background: var(--wrong); }
.blurb { margin: 14px auto 0; max-width: 34ch; text-align: center; font-size: 15.5px; color: var(--ink-2); }
.perf { position: relative; border-top: 2px dashed var(--rule); margin: 0 16px; }
.perf::before,
.perf::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--band);
  border: 2px solid var(--ink);
}
.perf::before { left: -30px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -30px; clip-path: inset(0 50% 0 0); }
.ticket-bottom { padding: 16px; }
.ask { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.after { margin-top: 26px; display: grid; gap: 26px; }
.clock { display: flex; align-items: center; gap: 3px; }
.clock .flap { width: 26px; height: 38px; font-size: 30px; line-height: 38px; }
.clock .sep { font: 800 26px/1 var(--display); color: var(--muted); padding: 0 2px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-row b { display: block; font: 800 34px/1 var(--display); }
.stat-row span { font-size: 12.5px; color: var(--muted); }
.dist { display: grid; gap: 3px; margin-top: 14px; }
.dist .bar { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: center; font: 700 14px/1 var(--display); }
.dist .fill {
  height: 20px;
  min-width: 22px;
  padding: 0 6px;
  background: var(--paper-2);
  color: var(--ink-2);
  text-align: right;
  font: 700 14px/20px var(--display);
  border-radius: 2px;
}
.dist .fill.me { background: var(--ink); color: var(--paper); }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links .btn { min-height: 46px; font-size: 15px; }
.textlink { background: none; border: 0; padding: 0; margin-bottom: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.small { font-size: 13px; color: var(--muted); }
.extras { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.extras .textlink { margin: 0; font-size: 13px; color: var(--ink-2); }
.extras a { color: var(--ink-2); }
.ad-slot { margin: 26px auto 0; min-height: 0; }
.ad-slot.live { min-height: 250px; }

/* ---------- dialogs ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.modal.open { opacity: 1; }
.modal[hidden] { display: none; }
.sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 22px 20px 20px;
}
.sheet:focus { outline: none; }
.sheet h2 { margin: 0 0 12px; font: 800 36px/0.95 var(--display); text-transform: uppercase; }
.sheet .close-x { position: absolute; top: 10px; right: 10px; }
.sheet p { margin: 0 0 12px; }
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.steps .flap { width: 24px; height: 32px; font-size: 24px; line-height: 32px; }
.key { display: grid; gap: 7px; margin: 4px 0 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; }
.key div { display: flex; align-items: center; gap: 10px; }
.key i { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.key i.right { background: var(--right); }
.key i.close { background: var(--close); }
.key i.wrong { background: var(--wrong); }
.menu-list { display: grid; margin-top: 4px; border-top: 1px solid var(--rule); }
.menu-list a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 650; }
.menu-list a:hover { color: var(--right); }
.menu-list small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

.share-preview {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: 6px;
  font: 15px/1.5 var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.share-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 4px; margin-top: 18px; }
.share-app {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
}
.share-app .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.share-app:hover .ic { filter: brightness(1.08); }
.share-app svg { width: 24px; height: 24px; fill: currentColor; }
.share-app .ic.line svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ic-whatsapp { background: #25d366 !important; color: #fff !important; }
.ic-sms { background: #34c759 !important; color: #fff !important; }
.ic-facebook { background: #0866ff !important; color: #fff !important; }
.ic-telegram { background: #26a5e4 !important; color: #fff !important; }
.ic-bluesky { background: #1185fe !important; color: #fff !important; }
.ic-x, .ic-threads { background: var(--ink) !important; color: var(--paper) !important; }
.ic-x svg { width: 20px; height: 20px; }

#toast {
  position: fixed;
  left: 50%;
  top: calc(66px + env(safe-area-inset-top));
  z-index: 60;
  transform: translate(-50%, -8px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 16px 32px;
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.loading, .noscript { padding: 40px 0; color: var(--muted); }

/* ---------- content pages ---------- */
.page { max-width: 680px; margin: 0 auto; padding: 26px 16px 20px; }
.page h1 { margin: 0 0 8px; font: 800 52px/0.9 var(--display); text-transform: uppercase; }
.prose { max-width: 62ch; }
.prose h2 { margin: 32px 0 6px; font: 800 28px/1 var(--display); text-transform: uppercase; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 18px; }
.prose li { margin: 6px 0; }
.archive-list { list-style: none; margin: 18px -16px; padding: 4px 16px; background: var(--board); color: var(--board-ink); }
.archive-list li + li { border-top: 1px solid var(--board-rule); }
.archive-list a { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 13px 2px; text-decoration: none; }
.archive-list a:hover .date { color: var(--board-ink); }
.archive-list .num { font: 800 24px/1 var(--display); }
.archive-list .date { font-size: 14px; color: var(--board-muted); }
.archive-list .res { font: 700 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--board-muted); }
.archive-list .res.done { color: var(--right-lite); }

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .board, .archive-list { margin-left: 0; margin-right: 0; border-radius: 10px; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: 'status status' 'board side';
    gap: 0 44px;
    align-items: start;
    padding-top: 8px;
  }
  .status { grid-area: status; }
  .col-board { grid-area: board; }
  .col-side { grid-area: side; position: sticky; top: 84px; }
  .results { margin: 0; padding: 0; background: none; }
  .perf::before, .perf::after { background: var(--paper); }
  .hand .dealt { grid-template-columns: 1fr; gap: 16px; }
  .hand .dealt .flap { width: 40px; height: 58px; font-size: 46px; line-height: 58px; border-radius: 5px; }
  .hand .dealt .title { font-size: 26px; }
  .hand {
    position: static;
    padding: 18px 18px 20px;
    border: 2px solid var(--hand-rule);
    border-radius: 10px;
  }
  .results { padding-top: 0; }
  .row { grid-template-columns: 130px minmax(0, 1fr); }
  .row .flap { width: 24px; height: 35px; font-size: 27px; line-height: 35px; }
  .row .flap.era { width: 21px; font-size: 14px; }
  .row .title { font-size: 17.5px; }
  .row .meta { font-size: 14px; }
  .gap .here { margin-left: 144px; }
  .status .no { font-size: 40px; }
  .brand { font-size: 30px; }
}
@media (max-width: 370px) {
  .row { grid-template-columns: 106px minmax(0, 1fr); gap: 0 10px; }
  .flap { width: 19px; height: 28px; font-size: 21px; line-height: 28px; }
  .flap.era { width: 17px; font-size: 12px; }
  .gap .here { margin-left: 116px; }
  .brand { font-size: 23px; }
  .brand .flap { width: 17px; height: 25px; font-size: 20px; line-height: 25px; }
  .score .flap { width: 38px; height: 56px; font-size: 44px; line-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
