/* OFCEdge — marketing site.
   Layout and type follow the RazzEdge site; every colour comes from the
   OFCEdge app (src/styles/tokens.css, dark theme). One dark world. */

/* ==== FOUNDATION (shared by every stylesheet; do not rename tokens) ==== */
:root {
  color-scheme: dark;

  /* surfaces — app: --bg-app / --bg-toolbar / --bg-panel / --bg-raised / --bg-hover */
  --bg: #0d1015;
  --s1: #141920;
  --s2: #161b22;
  --s3: #1e252e;
  --s4: #262e39;
  --line: #252d38;
  --line2: #3a4554;

  /* text — app: --text-strong / --text-primary / --text-muted (+ one site step for body copy) */
  --ink: #f5f7fa;
  --ink2: #b3bcc9;
  --ink3: #8f9aa9;

  /* accent — app: --accent / --accent-strong / --accent-soft */
  --accent: #5aa5ff;
  --accent-hover: #7bb8ff;
  --accent-strong: #2f7fe6;
  --accent-ink: #06121f;
  --accent-soft: rgb(90 165 255 / 16%);

  /* semantic — app: --royalty-gold / --teal / --suit-joker / --ev-pos / --ev-neg / --warn-amber */
  --gold: #e8b93f;
  --gold-soft: rgb(232 185 63 / 16%);
  --teal: #5ccfe0;
  --teal-soft: rgb(92 207 224 / 14%);
  --joker: #8a56e8;
  --joker-ink: #b799ff;
  --joker-soft: rgb(138 86 232 / 18%);
  --pos: #4cc276;
  --pos-soft: rgb(76 194 118 / 14%);
  --neg: #f0605a;
  --neg-soft: rgb(240 96 90 / 13%);
  --amber: #f2b33d;
  --amber-soft: rgb(242 179 61 / 13%);

  /* the table — app: --felt-1/2/3, --board-bg, --board-border, --board-hero-border */
  --felt-1: #163a2d;
  --felt-2: #0f2a21;
  --felt-3: #0a1d17;
  --felt: radial-gradient(ellipse 90% 75% at 50% 35%, var(--felt-1) 0%, var(--felt-2) 55%, var(--felt-3) 100%);
  --felt-line: rgb(255 255 255 / 7%);
  --board-bg: rgb(6 14 11 / 42%);
  --board-border: rgb(255 255 255 / 8%);
  --board-hero-border: rgb(90 165 255 / 35%);
  --slot-bg: rgb(255 255 255 / 4.5%);

  /* cards — app: --card-face, --card-face-down, --card-back-accent, two-colour deck */
  --card: #f8f6f1;
  --card-ink: #1a1d23;
  --suit-s: #1a1d23;
  --suit-c: #1a1d23;
  --suit-h: #c9302a;
  --suit-d: #c9302a;
  --suit-x: #7446d6;
  /* suit text printed on a dark panel — app: --ink-hearts etc. */
  --ink-s: #e3e7ec;
  --ink-c: #e3e7ec;
  --ink-h: #ff6f66;
  --ink-d: #ff6f66;
  --ink-x: #b799ff;
  --back-1: #29457e;
  --back-2: #4a6db3;

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 8px;
  --r-lg: 14px;
  --bar-h: 64px;
  --w: 26px; /* playing-card width; override on a card or any ancestor */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { font: 800 clamp(54px, 6vw, 84px)/1.02 var(--display); letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 800 clamp(36px, 4.4vw, 58px)/1.06 var(--display); letter-spacing: -.005em; text-wrap: balance; }
h3 { font: 600 19px/1.3 var(--sans); }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 4px 16px rgb(90 165 255 / 10%);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 10px 28px rgb(90 165 255 / 28%); }
.cta:active { transform: translateY(0); }
.ghost {
  display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--ink); font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Playing cards: one component for the page and the felt.
   <span class="card h"><b>Q</b><i>♥</i></span>   suit class: s h d c
   <span class="card x"><b>X</b><i>★</i></span>   joker (wild)
   <span class="cback"></span>                    face-down
   Size with --w on the card or any ancestor. */
.card, .cback {
  position: relative; display: inline-grid; align-content: start; justify-items: start;
  width: var(--w); height: calc(var(--w) * 1.4); padding: calc(var(--w) * .07) 0 0 calc(var(--w) * .11);
  border-radius: calc(var(--w) * .14);
  border: 1px solid rgb(0 0 0 / 45%);
  background: linear-gradient(160deg, #fffefb 0%, var(--card) 55%, #efece4 100%);
  color: var(--suit-s); flex: none; user-select: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 1px 1.5px rgb(0 0 0 / 35%), 0 2px 6px rgb(0 0 0 / 28%);
}
.card b { font: 800 calc(var(--w) * .46)/1 var(--sans); letter-spacing: -.03em; }
.card i { font: 700 calc(var(--w) * .38)/1 var(--sans); font-style: normal; margin-top: 1px; }
.card.s { color: var(--suit-s); } .card.c { color: var(--suit-c); }
.card.h { color: var(--suit-h); } .card.d { color: var(--suit-d); }
.card.x { color: var(--suit-x); background: linear-gradient(160deg, #fffefb 0%, #f3eefc 55%, #ece6f9 100%); }
.cback {
  padding: 0; border-color: rgb(0 0 0 / 60%);
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 9%) 0 1.5px, transparent 1.5px 5px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 9%) 0 1.5px, transparent 1.5px 5px),
    linear-gradient(160deg, var(--back-2) 0%, var(--back-1) 70%);
  box-shadow: inset 0 0 0 2.5px #e6ecf7, inset 0 0 0 3.5px rgb(0 0 0 / 25%), 0 1px 1px rgb(0 0 0 / 35%), 0 2px 5px rgb(0 0 0 / 30%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* ==== END FOUNDATION ==== */

/* ==== PAGE (index.html sections) ====
   Round 2. Every colour is a FOUNDATION token, or a tint of one made with
   color-mix() / alpha. No new hues. */
:root {
  --sec: clamp(56px, 6vw, 88px);
  --r-xl: 20px;
  --tile: linear-gradient(180deg, var(--s2) 0%, var(--s1) 100%);
  --band: linear-gradient(180deg, color-mix(in srgb, var(--s1) 88%, var(--bg)) 0%, var(--bg) 78%);
  --hairline: color-mix(in srgb, var(--line) 80%, transparent);
  --lift: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 24px 56px -28px rgb(0 0 0 / 75%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.section-head { display: grid; gap: 14px; max-width: 62ch; }
.section-head h2 { max-width: 21ch; }
.section .section-head { max-width: 760px; }
.section-note { color: var(--ink2); max-width: 58ch; font-size: 17px; line-height: 1.6; }
.section { position: relative; padding-block: var(--sec); }
.section + .section { border-top: 1px solid var(--hairline); }
.no-script { padding: 20px 0 0; color: var(--ink2); }
/* Anything scrolled into view (an in-page link, keyboard focus) clears the sticky bar by 12px. Sections land
   with their eyebrow 28px below the bar (their own top padding slides under it); cards and blocks 20px. */
html { scroll-padding-top: calc(var(--bar-h) + 12px); }
main > section[id] { scroll-margin-top: calc(16px - var(--sec)); }
main[id] { scroll-margin-top: -12px; }
.game, #coverage, #how-to-buy { scroll-margin-top: 8px; }
/* when the recorded examples cannot load, each mount hides and a one-line note takes its place */
.no-data { display: none; padding-top: 20px; color: var(--ink2); }
[data-empty] + .no-data { display: block; }
#solves:has(#solve-explorer[data-empty]) .section-note { display: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
.nowrap { white-space: nowrap !important; } /* wins over text-wrap: pretty on a parent rule */

/* Section heads in three compositions, so the page does not repeat one pattern:
   split (title left, note right), centred, and stacked (the default). */
.split-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.section .split-head { max-width: none; }
.split-title { display: grid; gap: 14px; align-content: end; }
.split-head > .section-note { padding-bottom: 4px; }
.features-head, #fantasy .section-head { margin-inline: auto; text-align: center; justify-items: center; }
.features-head h2, #fantasy .section-head h2 { max-width: 20ch; }

/* Background rhythm: alternate a soft slate band with the plain page, with
   felt light wherever the table is shown. */
#games, #play { background: var(--band); }
#showdown { background: radial-gradient(ellipse 70% 42% at 50% 64%, color-mix(in srgb, var(--felt-1) 42%, transparent), transparent 72%); }
#fantasy { background: radial-gradient(ellipse 65% 34% at 50% 0%, color-mix(in srgb, var(--teal) 8%, transparent), transparent 72%), radial-gradient(ellipse 70% 40% at 50% 70%, color-mix(in srgb, var(--felt-1) 36%, transparent), transparent 72%); }

/* ---- top bar: wordmark, nav centred on the page, call to action ---- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px;
  min-height: var(--bar-h); padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  background: rgb(13 16 21 / 82%);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 18px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.topbar > .wordmark { grid-column: 1; justify-self: start; }
.mark { width: 32px; height: 32px; flex: none; }
.topnav { grid-column: 2; display: flex; gap: 2px; }
.topnav .nav-price { display: none; }
.topnav a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--ink2); font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
.topnav a:hover { color: var(--ink); background: var(--s3); }
.topnav a.is-active { color: var(--accent); background: var(--accent-soft); }
.cta-top { grid-column: 3; justify-self: end; min-height: 42px; padding-inline: 18px; font-size: 14px; }
.nav-toggle { display: none; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: clip;
  padding-block: clamp(36px, 4.4vw, 64px) clamp(32px, 3.6vw, 52px);
  background:
    radial-gradient(ellipse 46% 60% at 8% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(ellipse 42% 62% at 80% 46%, color-mix(in srgb, var(--felt-1) 62%, transparent), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 572px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.hero-copy .eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(50px, 5.3vw, 78px); }
.hero-brand { display: flex; align-items: center; gap: .2em; margin-bottom: .08em; }
.hero-brand img { width: .88em; height: .88em; flex: none; filter: drop-shadow(0 6px 18px rgb(47 127 230 / 35%)); }
.hero-games { display: block; color: var(--accent); font-size: .76em; }
.hero-variants { display: block; margin-top: .3em; color: var(--accent); font-size: .55em; }
.hero-variants i { color: var(--ink3); font-style: normal; font-weight: 800; }
/* "+ jokers": Progressive and Ultimate also come with two wild jokers */
.jk-chip {
  display: inline-block; margin-left: .25em; padding: .2em .55em .24em; border-radius: 999px; vertical-align: .32em;
  background: var(--joker-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--joker) 55%, transparent);
  color: var(--joker-ink); font: 600 clamp(13px, 1.15vw, 16px)/1 var(--mono); font-style: normal; letter-spacing: .02em; white-space: nowrap;
}
.solver-promise { max-width: 40ch; color: var(--ink); font: 600 clamp(19px, 1.9vw, 24px)/1.4 var(--sans); text-wrap: balance; }
.lede { max-width: 46ch; color: var(--ink2); font-size: clamp(17px, 1.45vw, 19px); }
.lede-promise { display: none; }
/* on wide screens each h1 line stays one line, so the hero's height does not change when the web fonts arrive */
@media (min-width: 961px) { .hero h1 > span { white-space: nowrap; } }
@media (min-width: 1101px) { .solver-promise { white-space: nowrap; max-width: none; } }
@media (min-width: 851px) { .purchase-note .pn-os { display: block; } .lede { max-width: 520px; } }
/* two columns: the copy hangs from the top instead of centring, so a font swap that changes its height
   does not move it (it sits a little below the showcase's top edge, where centring used to put it) */
@media (min-width: 851px) { .hero-grid { align-items: start; } .hero-copy { padding-top: 18px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ghost span { transition: transform .2s var(--ease); }
.ghost:hover span { transform: translateY(2px); }
.purchase-note { color: var(--ink3); font-size: 13px; }

/* the showcase slot: DEMO2's script fills #hero-solve; the frame, glow and
   reserved height live here so nothing moves when it does. */
.hero-stage { position: relative; isolation: isolate; min-width: 0; animation: hero-rise .7s var(--ease) both; }
.hero-stage:has(> #hero-solve[hidden]) { display: none; }
.hero-grid:has(#hero-solve[hidden]) { grid-template-columns: minmax(0, 1fr); }
.hero-stage::before {
  content: ""; position: absolute; inset: -14% -16% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--felt-1) 75%, transparent), transparent);
}
.hero-solve {
  --hs-h: 556px;
  position: relative; min-height: var(--hs-h); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line2) 75%, transparent); border-radius: 18px;
  background: linear-gradient(180deg, var(--s2) 0%, var(--s1) 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 6%) inset, 0 0 0 1px rgb(0 0 0 / 35%), 0 44px 90px -34px rgb(0 0 0 / 85%);
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* static fallback inside #hero-solve (first paint, no JS, or no data): the same layout and strings as the built
   panel for solves[0], with its breakpoints on the slot's own width (the built panel's are 540 / 470 / 370 / 320) */
.hero-solve { container: hf / inline-size; }
.hf { display: flex; flex-direction: column; min-height: var(--hs-h); }
.hf-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 1.5%); }
.hf-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hf-title { color: var(--ink); font: 600 13px/1.2 var(--sans); white-space: nowrap; }
.hf-meta { margin-left: auto; overflow: hidden; color: var(--ink3); font: 500 11px/1.2 var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.hf-q { padding: 13px 18px 0; color: var(--ink); font: 600 15px/1.4 var(--sans); text-wrap: balance; }
.hf-felt {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px;
  margin: 11px 18px 0; padding: 12px 16px; border: 1px solid var(--felt-line); border-radius: 12px; background: var(--felt); box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}
.hf-board { --w: 37px; display: grid; gap: 5px; }
.hf-row { display: grid; grid-template-columns: 18px repeat(5, var(--w)); align-items: center; gap: 5px; }
.hf-row:nth-of-type(1) > :nth-child(2) { grid-column-start: 3; }
.hf-cap { color: var(--ink3); font: 600 11px/1 var(--sans); letter-spacing: .06em; }
.hf-slot { width: var(--w); height: calc(var(--w) * 1.4); border: 1px dashed rgb(255 255 255 / 13%); border-radius: calc(var(--w) * .14); background: var(--slot-bg); }
.hf-side { display: grid; gap: 6px; justify-items: start; padding-left: 18px; border-left: 1px solid var(--felt-line); }
.hf-seatline { display: flex; align-items: center; gap: 8px; }
.hf-seat { color: var(--ink); font: 600 12px/1 var(--sans); letter-spacing: .06em; }
.hf-toact { padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 11px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.hf-rankline { color: var(--ink2); font: 600 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hf-big { color: var(--pos); font: 600 30px/1 var(--mono); letter-spacing: -.02em; }
.hf-unit { margin-top: -2px; color: var(--ink2); font-size: 12px; line-height: 1.2; }
.hf-discard { --w: 20px; display: flex; align-items: center; gap: 8px; color: var(--ink2); font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hf-discard .card { padding: 1px 0 0 2px; }
.hf-discard .card b { font-size: 11px; }
.hf-discard .card i { font-size: 9px; margin-top: 0; }
.hf-results { padding: 12px 18px 0; }
.hf-results-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink); font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hf-for { padding: 3px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; letter-spacing: .02em; text-transform: none; }
.hf-cols { display: flex; gap: 22px; margin-left: auto; color: var(--ink3); }
.hf-list { display: grid; gap: 4px; }
.hf-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto 50px; align-items: center; gap: 10px; min-height: 33px; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--s3) 70%, transparent); }
.hf-list li.is-best { background: color-mix(in srgb, var(--pos) 11%, var(--s2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 48%, transparent); }
.hf-rank { color: var(--ink3); font: 600 12px/1 var(--mono); }
.is-best .hf-rank { color: var(--pos); }
.hf-play { --w: 18px; display: flex; align-items: center; gap: 2px; min-width: 0; }
.hf-play .card { padding: 1px 0 0 2px; }
.hf-play .card b { font-size: 11px; }
.hf-play .card i { font-size: 9px; margin-top: 0; }
.hf-play > i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0 2px 0 6px; border-radius: 3px; background: var(--s4); color: var(--ink3); font: 600 11px/1 var(--mono); font-style: normal; }
.hf-play > i:first-child { margin-left: 0; }
.hf-x { margin-left: auto; padding-left: 8px; }
.hf-play .card.hf-disc, .hf-discard .card.hf-disc { background: color-mix(in srgb, var(--card) 70%, var(--ink3)); color: var(--card-ink); box-shadow: none; }
.hf-num { color: var(--pos); font: 600 14px/1 var(--mono); text-align: right; }
.hf-gap { color: var(--ink3); font: 500 12px/1 var(--mono); text-align: right; }
.hf-bestpill { display: inline-block; padding: 3px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 60%, transparent); color: var(--pos); font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hf-foot { display: flex; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: auto; padding: 10px 18px 12px; color: var(--ink3); font: 500 11px/1.45 var(--mono); }
.hf-foot a { color: var(--accent); font: 600 14px/1 var(--sans); text-decoration: none; white-space: nowrap; }
@container hf (max-width: 470px) {
  .hf-machine, .hf-list li.hf-more { display: none; }
  .hf-felt { gap: 14px; padding: 10px 12px; }
  .hf-board { --w: 34px; }
  .hf-side { padding-left: 14px; }
}
@container hf (max-width: 370px) {
  .hf-meta, .hf-toact, .hf-for, .hf-vs { display: none; }
  .hf-bar { padding: 12px 14px; }
  .hf-q { padding: 12px 14px 0; font-size: 14.5px; }
  .hf-felt { margin: 10px 12px 0; }
  .hf-board { --w: 28px; gap: 4px; }
  .hf-row { grid-template-columns: 14px repeat(5, var(--w)); gap: 4px; }
  .hf-big { font-size: 24px; }
  .hf-results { padding: 10px 12px 0; }
  .hf-list li { grid-template-columns: 12px minmax(0, 1fr) auto 42px; gap: 8px; padding-inline: 8px; }
  .hf-play { --w: 16px; }
  .hf-play .card i { font-size: 8px; }
  .hf-play > i { width: 15px; height: 15px; margin-left: 4px; }
  .hf-num { font-size: 13px; }
  .hf-gap { font-size: 11px; }
  .hf-foot { padding: 10px 14px 12px; }
}
@container hf (max-width: 320px) {
  .hf-felt { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hf-side { display: none; }
}

/* the four facts, full width under the hero */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(32px, 3.6vw, 48px); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); }
.facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start; padding: 22px 22px 20px; background: linear-gradient(145deg, var(--s3), var(--s1) 85%); }
/* icons drawn in the page's own vocabulary: the pip bars of the streets timeline, jokers, the 3-5-5 board */
.fact-icon { grid-row: 1 / span 2; width: 52px; height: 40px; padding: 8px 6px; border-radius: 10px; background: color-mix(in srgb, var(--felt-1) 70%, var(--s2)); box-shadow: inset 0 0 0 1px var(--felt-line); }
.fact-icon .fi-card { fill: var(--card); }
.fact-icon .fi-joker { fill: var(--joker-ink); }
.fact-icon .fi-dark { fill: color-mix(in srgb, var(--card) 22%, transparent); }
.fact-icon .fi-fl rect { fill: var(--gold); }
.fact-icon .fi-dim { fill: color-mix(in srgb, var(--gold) 35%, transparent); }
.fact-icon .fi-board rect { fill: none; stroke: var(--accent); stroke-width: 1.1; }
.facts strong { align-self: end; font: 800 26px/1 var(--display); letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.facts span { font-size: 13px; line-height: 1.4; color: var(--ink3); text-wrap: pretty; }

/* ---- questions it answers ---- */
.questions { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 6vw, 80px); }
.questions-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; margin-bottom: 24px; }
.questions-head h2 { font-size: clamp(28px, 2.9vw, 38px); max-width: none; }
.q-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q-card {
  --q: var(--accent);
  position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 14px; min-width: 0; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--lift);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.q-fl { --q: var(--gold); }
.q-cost { --q: var(--neg); }
.q-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 70% 55% at 100% 0%, color-mix(in srgb, var(--q) 11%, transparent), transparent 70%); }
.q-card:hover, .q-card:focus-within { transform: translateY(-3px); border-color: color-mix(in srgb, var(--q) 45%, var(--line)); box-shadow: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 28px 56px -26px rgb(0 0 0 / 85%); }
.q-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.q-kicker { color: var(--q); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.q-hand { --w: 34px; display: flex; align-items: center; gap: 5px; min-height: 52px; }
.q-ctx { margin-left: 8px; color: var(--ink3); font: 500 11px/1.4 var(--mono); }
.q-card h3 { font: 600 17px/1.42 var(--sans); text-wrap: pretty; }
.q-card h3 a { color: inherit; text-decoration: none; }
.q-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.q-card h3 a:focus-visible { outline: none; }
.q-answer { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14px; line-height: 1.5; }
.q-ev, .q-loss { flex: none; font: 600 15px/1 var(--mono); }
.q-ev { color: var(--pos); }
.q-ev.is-neg { color: var(--neg); }
.q-loss { color: var(--neg); }
.q-go { display: flex; align-items: center; gap: 8px; color: var(--accent); font: 600 14px/1 var(--sans); }
.q-go span { transition: transform .25s var(--ease); }
.q-card:hover .q-go span { transform: translateX(4px); }
.q-answer span { text-wrap: pretty; }
/* the five parts of every card sit on shared rows, so the answers' rules line up across the three */
@supports (grid-template-rows: subgrid) {
  .q-cards { grid-template-rows: repeat(5, auto); row-gap: 0; }
  .q-card { grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; }
}

/* ---- solve explorer section (note on the right) ---- */
.solves-section { position: relative; padding-block: var(--sec); border-top: 1px solid var(--hairline); background: radial-gradient(ellipse 62% 46% at 50% 64%, color-mix(in srgb, var(--felt-1) 46%, transparent), transparent 72%), var(--band); }
.comparison-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px 80px; max-width: none; margin-bottom: 36px; }
.comparison-head h2 { margin-top: 14px; }
.comparison-head .section-note { max-width: 54ch; padding-bottom: 4px; }

/* ---- features ---- */
.features-section { background: radial-gradient(ellipse 56% 26% at 50% 22%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%); }
.features-head .section-note { margin-inline: auto; }
.shot { margin-top: 28px; }
.shot img, .ft-window img { position: relative; color: var(--ink3); font: 500 12px/1.45 var(--sans); }
/* a missing screenshot shows a quiet skeleton, not a broken-image icon */
.shot img::before, .ft-window img::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(var(--s3), var(--s3)) 6% 9% / 34% 3.5% no-repeat,
    linear-gradient(var(--s3), var(--s3)) 6% 17% / 22% 3.5% no-repeat,
    linear-gradient(var(--s3), var(--s3)) 94% 9% / 18% 3.5% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 27px, rgb(255 255 255 / 2.5%) 27px 28px),
    linear-gradient(180deg, var(--s2), var(--s1));
}
.shot img::after, .ft-window img::after { content: attr(alt); position: absolute; left: 16px; right: 16px; bottom: 14px; color: var(--ink3); font: 500 12px/1.45 var(--sans); }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); box-shadow: 0 16px 48px rgb(0 0 0 / 22%); }
.shot .zoom { border-radius: var(--r-lg); }
.shot-crop { margin: 0; }
.shot-crop img { border-color: color-mix(in srgb, var(--line2) 80%, transparent); box-shadow: var(--lift); }
.shot-crop figcaption { padding-top: 10px; font-size: 12.5px; }

/* every app screenshot opens enlarged (site.js); without JS the link opens the file */
.zoom { position: relative; display: block; color: inherit; cursor: zoom-in; }
.zoom::before, .zoom::after { content: ""; position: absolute; top: 10px; right: 10px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; opacity: 0; transform: scale(.88); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.zoom::before { background: rgb(13 16 21 / 78%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%), 0 4px 14px rgb(0 0 0 / 40%); }
.zoom::after {
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-6.5 6.5M10 20H4v-6M4 20l6.5-6.5'/%3E%3C/svg%3E") center / 15px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-6.5 6.5M10 20H4v-6M4 20l6.5-6.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.zoom:hover::before, .zoom:hover::after, .zoom:focus-visible::before, .zoom:focus-visible::after { opacity: 1; transform: none; }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: none) { .zoom::before, .zoom::after { opacity: .9; transform: none; } }
/* the screenshot viewer (site.js): image, then a bar with previous / count / next, the caption and Close */
.lightbox { width: fit-content; height: fit-content; min-width: min(96vw, 640px); max-width: 96vw; max-height: 94vh; padding: 0; overflow: hidden; border: 1px solid var(--line2); border-radius: var(--r-lg); background: var(--s1); color: var(--ink); box-shadow: 0 40px 120px rgb(0 0 0 / 75%); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgb(5 7 10 / 82%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in .22s var(--ease); }
.lb-stage { min-height: 0; overflow: hidden; background: var(--bg); }
.lb-img { display: block; width: auto; height: auto; max-width: none; margin-inline: auto; background: var(--bg); }
.lightbox.can-zoom .lb-img { cursor: zoom-in; }
.lightbox.is-actual .lb-img { cursor: zoom-out; }
.lightbox.is-actual .lb-stage { overflow: auto; overscroll-behavior: contain; }
.lb-bar { container-type: inline-size; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 64px; padding: 10px 10px 10px 12px; border-top: 1px solid var(--line); }
.lb-nav { display: flex; flex: none; align-items: center; gap: 6px; }
.lb-count { min-width: 52px; color: var(--ink3); font: 500 12.5px/1 var(--mono); text-align: center; }
.lb-caption { flex: 1 1 0; min-width: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.45; text-wrap: pretty; }
.lb-hint { flex: none; color: var(--ink3); font: 500 11.5px/1.3 var(--mono); }
.lb-hint:empty { display: none; }
.lb-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: var(--s2); color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer; transition: border-color .15s, color .15s; }
.lb-btn span { margin-top: -2px; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { margin-left: auto; }
/* a narrow dialog: the caption takes a row of its own under the buttons, so it stays a line or two */
@container (max-width: 760px) { .lb-caption { order: 9; flex: 1 0 100%; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
html.lb-open { overflow: hidden; }
/* phones, upright or on their side: a full-screen viewer; the image fits the width, a tap shows it at full size to pan and pinch */
@media (max-width: 600px), (max-height: 480px) {
  .lightbox { width: 100vw; height: 100dvh; min-width: 0; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .lb-stage { flex: 1 1 auto; display: grid; align-items: center; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
  .lightbox.is-actual .lb-stage { align-items: start; }
  .lb-img { cursor: zoom-in; }
  .lightbox.is-actual .lb-img { cursor: zoom-out; }
  .lb-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "nav hint close" "cap cap cap"; gap: 8px 10px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .lb-nav { grid-area: nav; }
  .lb-hint { grid-area: hint; justify-self: center; }
  .lb-close { grid-area: close; }
  .lb-caption { grid-area: cap; font-size: 13px; }
}
.shot figcaption { padding: 14px 2px 0; color: var(--ink3); font-size: 13px; }
.shot-main { position: relative; margin: clamp(32px, 4vw, 52px) auto 0; }
.shot-main::before { content: ""; position: absolute; inset: 6% 4% -4%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.shot-main img { border-color: color-mix(in srgb, var(--line2) 80%, transparent); border-radius: var(--r-xl); box-shadow: 0 0 0 6px rgb(255 255 255 / 2.5%), 0 60px 120px -50px rgb(0 0 0 / 90%); }
.shot-main figcaption { text-align: center; }

/* feature tiles: rows of three. A wide tile takes two places; if a tile is
   removed, flex-grow widens the rest of its row, so no row is left with a hole. */
.bento { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(36px, 4.5vw, 56px); }
.ft {
  --t: var(--accent);
  flex: 1 1 calc((100% - 32px) / 3 - 1px);
  container-type: inline-size; position: relative; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--lift);
  transition: border-color .2s;
}
.ft-wide { flex: 2 1 calc((100% - 32px) / 3 * 2 + 15px); }
.ft-full { flex-basis: 100%; }
.ft:hover { border-color: color-mix(in srgb, var(--t) 34%, var(--line)); }
/* kickers are accent blue; teal (staying in fantasy land) and gold (fantasy-land values) only where they mean that */
.ft-teal { --t: var(--teal); }
.ft-gold { --t: var(--gold); }
.ft::before { content: ""; position: absolute; inset: 30% 0 0; pointer-events: none; background: radial-gradient(ellipse 85% 75% at 50% 100%, color-mix(in srgb, var(--t) 11%, transparent), transparent 72%); }
.ft-in { position: relative; display: flex; flex-direction: column; height: 100%; }
.ft-body { display: grid; gap: 8px; align-content: start; padding: 24px 24px 20px; }
.ft-kicker { color: var(--t); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ft h3 { color: var(--ink); font: 600 19px/1.3 var(--sans); }
.ft-body > p:not(.ft-kicker) { color: var(--ink2); font-size: 14.5px; line-height: 1.55; text-wrap: pretty; }
/* the setup tile's short list fills the column beside its tall screenshot */
.ft-list { display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14px; line-height: 1.45; }
.ft-list li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); }
.ft-list li::before { content: ""; position: absolute; left: 1px; top: calc(10px + .52em); width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.ft code { padding: 1px 5px; border-radius: 4px; background: var(--s4); color: var(--ink); font: 500 .9em/1 var(--mono); white-space: nowrap; }
.ft-window {
  /* --nat (set on the element) is the crop's own width in CSS px: a window never shows its image larger than that */
  position: relative; align-self: center; width: min(100% - 48px, var(--nat, 100%)); margin: auto 0 0; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line2) 85%, transparent); border-bottom: 0; border-radius: 10px 10px 0 0;
  background: var(--s1); box-shadow: 0 -12px 32px -14px rgb(0 0 0 / 65%);
}
.ft-window .zoom { border-radius: inherit; }
.ft-window img { display: block; width: 100%; height: auto; border-radius: inherit; transition: transform .5s var(--ease); transform-origin: 0 0; }
.ft:hover .ft-window img { transform: scale(1.012); }
@container (min-width: 620px) {
  .ft-in { flex-direction: row; align-items: flex-end; }
  .ft-body { flex: 0 0 36%; align-self: stretch; gap: 10px; padding: 32px 28px 32px 32px; }
  .ft h3 { font-size: 24px; }
  .ft-body > p:not(.ft-kicker) { font-size: 15px; }
  .ft-window { flex: 0 1 var(--nat, 100%); align-self: flex-end; width: auto; min-width: 0; margin: 32px 0 0 auto; border-right: 0; border-radius: 10px 0 0 0; }
  .ft-band .ft-in { flex-direction: column; align-items: stretch; }
  .ft-band .ft-body { flex: none; padding: 28px 32px 22px; }
  .ft-band .ft-body > p:not(.ft-kicker) { max-width: 60ch; }
  .ft-band .ft-window { flex: none; align-self: center; width: min(100% - 64px, var(--nat, 100%)); margin: auto 0 0; border-right: 1px solid color-mix(in srgb, var(--line2) 85%, transparent); border-radius: 10px 10px 0 0; }
}
/* the search modes, as a text tile */
.ft-modes .ft-body { padding-bottom: 24px; }
.modes-list { display: grid; margin-top: 6px; border-top: 1px solid var(--line); }
.modes-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.modes-list b { color: var(--ink); font: 600 14.5px/1.3 var(--sans); }
.modes-list li:first-child b { color: var(--accent); }
.modes-list span { flex: 1 1 100%; color: var(--ink3); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.modes-list em { padding: 2px 7px; border-radius: 999px; background: var(--s4); color: var(--ink2); font: 600 11px/1.3 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.modes-list li:first-child em { background: var(--accent-soft); color: var(--accent); }
.modes-list a { color: var(--accent); text-underline-offset: 3px; }
@container (min-width: 620px) {
  .ft-modes .ft-body { flex: 1 1 auto; padding: 28px 32px; }
  .ft-modes .modes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
/* "Also in the app": a slim full-width strip, short text items and two small thumbnails */
.ft-also { flex-basis: 100%; }
.ft-also::before { display: none; }
.ft-also-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 26px 28px; }
.ft-also-main { display: grid; gap: 14px; min-width: 0; }
.also-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 28px; }
.also-list li { display: grid; align-content: start; gap: 3px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.also-list b { color: var(--ink); font: 600 14.5px/1.35 var(--sans); }
.also-list span { color: var(--ink3); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.also-thumbs { display: grid; grid-template-columns: 250px 170px; align-items: end; gap: 16px; }
.also-thumb { display: grid; gap: 8px; margin: 0; }
.also-thumb .zoom { overflow: hidden; border: 1px solid color-mix(in srgb, var(--line2) 85%, transparent); border-radius: 10px; background: var(--s1); }
.also-thumb img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.also-thumb .zoom:hover img { transform: scale(1.03); }
.also-thumb .zoom::before, .also-thumb .zoom::after { top: 6px; right: 6px; width: 28px; height: 28px; }
.also-thumb figcaption { color: var(--ink3); font-size: 12.5px; line-height: 1.4; }
.ft h3.ft-kicker { color: var(--accent); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.also-thumb figcaption b { color: var(--ink); font-weight: 600; }
.also-thumb code { padding: 1px 4px; border-radius: 4px; background: var(--s4); color: var(--ink); font: 500 .92em/1 var(--mono); }

/* ---- games ---- */
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.game {
  position: relative; display: grid; gap: 16px; align-content: start; padding: 26px 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--lift);
}
.game::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); opacity: .7; }
.game h3 { display: grid; gap: 8px; font: 800 32px/1 var(--display); letter-spacing: .01em; }
.game h3 span { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.game-jokers h3 span { color: var(--joker-ink); }
.game p { color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.hand { display: flex; align-items: flex-end; padding: 10px 0 6px 4px; }
.hand .card { --w: 44px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 2px 3px rgb(0 0 0 / 35%), 0 8px 18px rgb(0 0 0 / 35%); }
.hand .card + .card { margin-left: -10px; }
.hand .card:nth-child(1) { transform: rotate(-7deg) translateY(3px); }
.hand .card:nth-child(2) { transform: translateY(-3px); z-index: 1; }
.hand .card:nth-child(3) { transform: rotate(7deg) translateY(3px); z-index: 2; }
.game-jokers .hand .card:nth-child(2) { transform: rotate(7deg) translateY(1px); }
.hand-arrow { margin-left: 22px; color: var(--ink3); font: 500 12px/1.4 var(--mono); }
.hand-arrow b { display: block; color: var(--gold); font: 800 34px/1 var(--display); }
.game-jokers .hand-arrow b { color: var(--joker-ink); }
.game ul { display: grid; align-content: start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 14px; line-height: 1.5; }
.game li { padding-left: 16px; position: relative; }
.game li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--gold) 70%, transparent); }
.game li strong { color: var(--ink); font-weight: 600; }
.game-jokers { border-color: color-mix(in srgb, var(--joker) 32%, var(--line)); background: radial-gradient(ellipse 80% 60% at 100% 0%, var(--joker-soft), transparent 70%), var(--tile); }
.game-jokers::before { background: linear-gradient(90deg, var(--joker-ink), transparent 70%); }
.game-jokers li::before { background: color-mix(in srgb, var(--joker-ink) 70%, transparent); }
/* line the four cards up: title, text, hand and rules sit on shared rows */
@supports (grid-template-rows: subgrid) {
  .games { grid-auto-rows: auto; }
  .game { grid-row: span 4; grid-template-rows: subgrid; }
}

/* fantasy-land ladder: cards dealt by top row, per game */
.fl-table-wrap { min-width: 0; margin-top: 44px; }
.fl-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); }
.fl-table thead th:first-child { border-top-left-radius: var(--r-lg); }
.fl-table thead th:last-child { border-top-right-radius: var(--r-lg); }
.fl-table tfoot th { border-bottom-left-radius: var(--r-lg); }
.fl-table tfoot td:last-child { border-bottom-right-radius: var(--r-lg); }
.fl-table caption { caption-side: top; padding: 0 0 14px; text-align: left; color: var(--ink); font: 600 17px/1.3 var(--sans); }
.fl-table th, .fl-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fl-table thead th { padding-block: 13px; background: var(--s2); color: var(--ink3); font: 600 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.fl-table tbody tr { transition: background-color .15s; }
.fl-table tbody tr:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.fl-table tbody th { color: var(--ink); font: 600 15px/1.2 var(--sans); white-space: nowrap; }
.fl-table td { color: var(--gold); font: 800 30px/1 var(--display); }
.fl-table td small { color: var(--ink3); font: 500 12px/1.2 var(--sans); }
.fl-table tfoot th, .fl-table tfoot td { border-bottom: 0; background: var(--teal-soft); color: var(--teal); }
.fl-table tfoot th { font: 600 14px/1.25 var(--sans); white-space: normal; }
.fl-table caption small { display: block; margin-top: 4px; color: var(--ink3); font: 400 14px/1.5 var(--sans); }
.fl-table tfoot td { font-size: 22px; }
.fl-table tfoot td small { color: var(--teal); }
.top-row { display: inline-flex; align-items: center; gap: 14px; }
.top-cards { --w: 24px; display: inline-flex; gap: 3px; }
.top-cards .card { padding: 2px 0 0 3px; }
.top-cards .card b { font-size: 11px; }
.top-cards .card i { font-size: 9px; margin-top: 0; }

/* inline copies of the app's badges, used in running text */
.badge { display: inline-block; padding: 0 7px; border-radius: 999px; font: 600 12px/20px var(--mono); white-space: nowrap; vertical-align: 1px; }
.badge-gold { color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgb(232 185 63 / 35%); }

/* ---- showdown: title and scoring keys side by side, then the table ---- */
#showdown > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 72px); align-items: start; }
#showdown .section-head { grid-column: 1; grid-row: 1; }
#showdown .score-keys { grid-column: 1; grid-row: 2; align-self: end; }
#showdown .shot-showdown { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
#showdown > .wrap > #showdown-demo, #showdown > .wrap > noscript, #showdown > .wrap > .no-data { grid-column: 1 / -1; }
#showdown .shot-showdown figcaption { text-wrap: pretty; }
#showdown > .wrap:not(:has(.shot-showdown)) { grid-template-columns: minmax(0, 1fr); }
.score-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); box-shadow: var(--lift); }
#showdown .score-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
#showdown > .wrap:not(:has(.shot-showdown)) .score-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.score-keys li { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 20px 18px; background: var(--s1); }
.score-keys li::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 0 2px 2px 0; background: var(--line2); }
.score-keys b { font: 800 24px/1 var(--display); letter-spacing: .01em; }
.score-keys span { color: var(--ink3); font-size: 13px; line-height: 1.45; }
.score-keys .k-scoop b { color: var(--pos); } .score-keys .k-scoop::before { background: var(--pos); }
.score-keys .k-royalty b { color: var(--gold); } .score-keys .k-royalty::before { background: var(--gold); }
.score-keys .k-foul b { color: var(--neg); } .score-keys .k-foul::before { background: var(--neg); }
#showdown-demo, #solve-explorer, #simulation-demo { margin-top: 36px; }

/* ---- play and review ---- */
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); grid-template-rows: auto 1fr; gap: 32px 64px; align-items: start; }
.play-grid > .section-head { grid-column: 1; grid-row: 1; }
.play-grid > #review-demo { grid-column: 2; grid-row: 1 / span 2; }
.play-grid > .shot-review { grid-column: 1; grid-row: 2; max-width: 677px; }
/* the app's own review stays beside the long recorded one while it is read */
@media (min-width: 851px) { .play-grid > .shot-review { position: sticky; top: calc(var(--bar-h) + 24px); align-self: start; } }
.play-grid .section-head { max-width: 560px; }
.play-grid:has(> #review-demo[hidden]), .play-grid:has(> #review-demo:empty) { grid-template-columns: minmax(0, 1fr); }
.verdicts { display: grid; gap: 2px; margin-top: 14px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); }
/* one grid for every row, so the descriptions start on the same line */
.verdicts li { display: grid; grid-template-columns: 28px 132px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 10px 12px; border-radius: 9px; color: var(--ink3); font-size: 14px; line-height: 1.45; }
.verdicts li + li { border-top: 1px solid var(--line); border-radius: 0; }
.verdicts b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.verdicts span { text-wrap: pretty; }
.verdicts i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--accent-ink); font: 600 14px/1 var(--sans); font-style: normal; }
.verdicts .v-best { background: var(--pos); }
.verdicts .v-loss { background: var(--neg); }
.verdicts .v-total { background: var(--accent); }
.verdicts .v-none { background: transparent; color: var(--ink2); box-shadow: inset 0 0 0 1.5px var(--line2); }

/* ---- fantasy land ---- */
.fl-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.fl-points li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 24px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--lift); color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.fl-points li::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--teal), transparent 75%); }
.fl-points li:last-child::before { background: linear-gradient(90deg, var(--gold), transparent 75%); }
.fl-points b { color: var(--ink); font: 600 17px/1.3 var(--sans); }
.fl-points span { text-wrap: pretty; }
.fl-honest { position: relative; max-width: 84ch; margin: 28px auto 0; padding: 18px 22px 18px 54px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); color: var(--ink3); font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.fl-honest::before { content: "i"; position: absolute; left: 20px; top: 19px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--amber); color: var(--amber); font: 600 12px/1 var(--mono); }
.fl-honest strong { color: var(--ink2); font-weight: 600; }

/* ---- specs (#machine): the streets timeline (#coverage), one row of laptop timings, then four cards ---- */
.block-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 40px; color: var(--ink); font: 600 17px/1.3 var(--sans); }
.block-title span { color: var(--ink3); font: 500 12px/1.4 var(--mono); }
.streets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); box-shadow: var(--lift); }
.streets li { position: relative; display: grid; grid-template-rows: 22px auto auto; gap: 10px; align-content: start; min-width: 0; padding: 24px 18px 22px; border-left: 1px solid var(--line); }
.streets li:first-child { border-left: 0; }
.streets li::before {
  content: ""; width: 62px; height: 18px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--card) 0 10px, transparent 10px 13px); opacity: .85;
}
.streets li:nth-child(n+2):nth-child(-n+5)::before {
  width: 36px;
  background: linear-gradient(90deg, var(--card) 0 10px, transparent 10px 13px, var(--card) 13px 23px, transparent 23px 26px, var(--s4) 26px 36px);
}
.streets b { font: 800 clamp(26px, 2.5vw, 32px)/1 var(--display); white-space: nowrap; }
.streets span { color: var(--ink3); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.streets .showdown { background: radial-gradient(ellipse 100% 80% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 75%), var(--s2); }
.streets .showdown::before { width: 22px; height: 22px; opacity: 1; background: url("logo.svg") center / contain no-repeat; }
.streets .showdown b { color: var(--accent); }
.streets .fl-hand {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 18px;
  border-left: 0; border-top: 1px solid var(--line);
  background: linear-gradient(90deg, var(--gold-soft), transparent 70%), var(--s1);
}
.streets .fl-hand::before { width: calc(14 * 9px - 2px); height: 14px; background: repeating-linear-gradient(90deg, var(--card) 0 7px, transparent 7px 9px); }
.streets .fl-hand b { color: var(--gold); font-size: 28px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent) 22%, var(--line)); box-shadow: var(--lift); }
.stats li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; align-content: start; min-width: 0; padding: 22px 22px 20px; background: radial-gradient(ellipse 110% 80% at 15% 0%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%), var(--s1); }
.stats h4 { margin: 0 0 10px; color: var(--ink2); font: 500 12px/1.4 var(--mono); letter-spacing: .03em; }
.stats b { color: var(--accent); font: 800 clamp(34px, 3.7vw, 52px)/1 var(--display); white-space: nowrap; }
.stats li > span { color: var(--ink3); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.stats small { margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--ink2); font-size: 12.5px; line-height: 1.45; text-wrap: pretty; }
.stats-server { max-width: 80ch; margin-top: 18px; color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.speed-method { margin-top: 14px; color: var(--ink3); font-size: 13.5px; line-height: 1.6; }
.speed-method summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink2); cursor: pointer; list-style: none; transition: color .15s, border-color .15s, background-color .15s; }
.speed-method summary::-webkit-details-marker { display: none; }
.speed-method summary::before { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.speed-method[open] summary::before { margin-top: 3px; transform: rotate(-135deg); }
.speed-method summary:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); }
.speed-method-body { display: grid; gap: 10px; max-width: 95ch; padding-top: 14px; }
.speed-table-wrap { min-width: 0; overflow-x: auto; }
.speed-table { width: 100%; min-width: 520px; border-collapse: collapse; color: var(--ink2); font-size: 13px; line-height: 1.4; }
.speed-table th, .speed-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.speed-table thead th { color: var(--ink3); font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.speed-table tbody th { color: var(--ink); font-weight: 500; }
.speed-table tbody th small { display: block; color: var(--ink3); font-size: 12px; font-weight: 400; }
.speed-table td:nth-child(2) { color: var(--ink); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

/* covered / not covered, runs on / keeps to itself: one 2 x 2 */
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.spec-card { min-width: 0; padding: 26px 28px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--lift); }
.spec-card h3 { font-size: 17px; }
.spec-card ul { display: grid; gap: 10px; margin-top: 14px; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.spec-card li { position: relative; padding-left: 26px; text-wrap: pretty; }
.spec-card li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.spec-card li::after { content: ""; position: absolute; left: 5px; top: calc(.2em + 4px); width: 6px; height: 4px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.spec-card code { padding: 1px 5px; border-radius: 4px; background: var(--s4); color: var(--ink); font: 500 .9em/1 var(--mono); white-space: nowrap; }
.spec-yes li::before { background: var(--pos-soft); }
.spec-yes li::after { border-color: var(--pos); }
.spec-no { background: var(--s1); box-shadow: none; }
.spec-no li::before { background: var(--s4); }
.spec-no li::after { left: 4px; top: calc(.2em + 7.5px); width: 8px; height: 0; border-left: 0; border-bottom: 1.6px solid var(--ink3); transform: none; }

/* ---- buy: the one bright object on the page is a card on the felt ---- */
.buy { background: radial-gradient(ellipse 60% 85% at 72% 50%, var(--felt-1) 0%, rgb(15 42 33 / 75%) 38%, transparent 72%); }
.buy .eyebrow { color: var(--gold); }
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 48px clamp(48px, 7vw, 112px); align-items: start; }
.buy-copy { display: grid; gap: 32px; align-content: start; min-width: 0; padding-top: 12px; }
.buy-grid .section-head { max-width: 560px; }
/* how buying works: four steps, from the product's instructions */
.buy-how { display: grid; gap: 14px; max-width: 560px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--s1) 88%, transparent); box-shadow: var(--lift); }
.buy-how h3 { font-size: 17px; }
.buy-steps { display: grid; gap: 12px; counter-reset: step; }
.buy-steps li { position: relative; padding-left: 38px; color: var(--ink2); font-size: 15px; line-height: 1.55; counter-increment: step; text-wrap: pretty; }
.buy-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgb(232 185 63 / 40%); color: var(--gold); font: 600 13px/1 var(--mono); }
.buy-steps b { color: var(--ink); font-weight: 600; }
.buy-steps a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.buy-license { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 13.5px; line-height: 1.5; }
.buy-cards { display: grid; grid-template-columns: minmax(0, 470px); justify-content: center; padding: 12px 0 12px 24px; }
/* a face-down card fanned behind the purchase card */
.buy-cards::before {
  content: ""; grid-area: 1 / 1; border-radius: 22px; border: 1px solid rgb(0 0 0 / 60%);
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 9%) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 9%) 0 2px, transparent 2px 8px),
    linear-gradient(160deg, var(--back-2) 0%, var(--back-1) 70%);
  box-shadow: inset 0 0 0 7px #e6ecf7, inset 0 0 0 8px rgb(0 0 0 / 25%), 0 30px 60px rgb(0 0 0 / 45%);
  transform: rotate(-6deg) translate(-24px, 10px); transform-origin: 50% 100%;
}
/* the purchase card itself stands upright, so its text is level */
.buy-card {
  grid-area: 1 / 1; position: relative; display: grid; gap: 18px; min-width: 0; padding: 58px 34px 50px;
  border: 1px solid rgb(0 0 0 / 40%); border-radius: 22px;
  background: linear-gradient(160deg, #fffefb 0%, var(--card) 55%, #e9e5dc 100%); color: var(--card-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 2px 4px rgb(0 0 0 / 35%), 0 36px 70px rgb(0 0 0 / 50%);
}
.buy-index { position: absolute; left: 16px; top: 12px; display: grid; justify-items: center; color: var(--suit-h); font: 800 26px/1 var(--display); }
.buy-index i { font: 600 16px/1 var(--sans); font-style: normal; }
.buy-index.flip { left: auto; right: 16px; top: auto; bottom: 12px; transform: rotate(180deg); }
.buy-name { font: 800 40px/1 var(--display); letter-spacing: .005em; }
.buy-price { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid rgb(0 0 0 / 14%); }
.buy-price strong { font: 800 clamp(46px, 5vw, 66px)/1 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.buy-price > p:first-child { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price span { font: 600 13px/1 var(--mono); color: rgb(26 29 35 / 78%); }
.buy-price-note { color: rgb(26 29 35 / 78%); font-size: 14px; }
.buy-card ul { display: grid; gap: 9px; color: rgb(26 29 35 / 86%); font-size: 15px; line-height: 1.45; }
.buy-card li { position: relative; padding-left: 18px; text-wrap: pretty; }
.buy-card li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent-strong); transform: rotate(45deg); }
.buy-action { display: grid; gap: 8px; margin-top: 4px; }
.cta-card { width: 100%; min-height: 50px; font-size: 16px; }
.buy-mail { color: rgb(26 29 35 / 70%); font: 500 12.5px/1.3 var(--mono); text-align: center; overflow-wrap: anywhere; }

/* ---- faq ---- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--bar-h) + 32px); }
.faq { display: grid; min-width: 0; }
.faq > details { border-top: 1px solid var(--line); }
.faq > details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 52px 22px 0; list-style: none; cursor: pointer; font: 600 18px/1.4 var(--sans); transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; right: 0; top: 19px; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line2); transition: background-color .2s, box-shadow .2s; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 19px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); font: 400 22px/1 var(--sans); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary::before { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.faq summary:hover { color: var(--accent); }
.faq summary:hover::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.faq details p { max-width: 64ch; padding-bottom: 24px; color: var(--ink2); font-size: 15.5px; line-height: 1.65; }
.faq details p + p { margin-top: -12px; }
.faq details p a { color: var(--accent); text-underline-offset: 3px; }

/* ---- footer ---- */
.footer { padding: clamp(56px, 6vw, 80px) 0 calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--s1) 80%, var(--bg)), var(--bg)); color: var(--ink3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px 64px; }
.footer-brand { display: grid; gap: 16px; align-content: start; justify-items: start; max-width: 340px; }
.footer-brand p { color: var(--ink3); font-size: 14px; line-height: 1.6; }
.footer .wordmark { color: var(--ink); }
.cta-foot { min-height: 44px; padding-inline: 20px; font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.footer-nav h2 { margin-bottom: 10px; color: var(--ink); font: 600 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-nav ul { display: grid; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink2); text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: var(--accent); }
.footer-mail { overflow-wrap: anywhere; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }
.footer-base p:nth-child(2) { flex: 1 1 auto; }
.footer-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink2); text-decoration: none; }
.footer-top:hover { color: var(--accent); }

/* ---- 404 ---- */
.not-found { display: grid; justify-items: center; gap: 36px; min-height: calc(100vh - var(--bar-h)); align-content: center; text-align: center; }
.not-found .section-head { justify-items: center; }
.nf-hand { --w: 64px; display: flex; padding-top: 12px; }
.nf-hand .cback + .cback { margin-left: -18px; }
.nf-hand .cback:nth-child(1) { transform: rotate(-10deg) translateY(6px); }
.nf-hand .cback:nth-child(2) { transform: translateY(-4px); }
.nf-hand .cback:nth-child(3) { transform: rotate(10deg) translateY(6px); }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---- reveal on scroll ----
   site.js adds .reveal to section heads and large blocks that start below the fold, never under
   reduced motion; it reveals at once on keyboard focus and in-page jumps. Without JS nothing is hidden. */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.reveal-now { transition: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- breakpoints ---- */
@media (max-width: 1100px) {
  .topbar { gap: 12px; }
  .topnav { gap: 0; }
  .topnav a { padding-inline: 9px; font-size: 13px; }
  .wordmark { font-size: 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .facts li { padding: 20px 16px; column-gap: 12px; }
  .fact-icon { width: 46px; height: 36px; padding: 7px 5px; }
  .facts strong { font-size: 23px; }
  .q-card { padding: 22px; }
  .q-hand { --w: 30px; gap: 4px; }
  .ft { flex-basis: calc((100% - 16px) / 2 - 1px); }
  .ft-wide, .ft-full, .ft-also { flex-basis: 100%; }
  #showdown > .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the streets timeline: three columns from here down, so "Showdown" always fits */
  .streets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .streets li:nth-child(4) { border-left: 0; }
  .streets li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .streets b { font-size: 30px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { max-width: 520px; }
}
@media (max-width: 960px) {
  .topbar { display: flex; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: var(--s1); box-shadow: 0 16px 28px rgb(0 0 0 / 35%); }
  .topnav.is-open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .topnav a { justify-content: center; min-height: 46px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--s2); font-size: 14px; }
  .topnav a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
  .topnav a.is-active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
  .topnav .nav-price { display: inline-flex; }
  .nav-toggle { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-left: auto; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink2); font-size: 13px; text-decoration: none; cursor: pointer; }
  /* if site.js never runs, the toggle link opens the menu through :target, with no layout shift */
  html:not(.js) .topnav:target { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .topnav { scroll-margin-top: -12px; max-height: calc(100dvh - 100% - 8px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-toggle[aria-expanded="true"] { color: var(--ink); border-color: var(--line2); background: var(--s2); }
  /* menu icon: three bars that become a cross while the menu is open */
  .nav-icon { position: relative; flex: none; width: 16px; height: 12px; }
  .nav-icon::before, .nav-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform .2s var(--ease), top .2s var(--ease), box-shadow .2s; }
  .nav-icon::before { top: .6px; box-shadow: 0 4.6px 0 currentColor; }
  .nav-icon::after { top: 9.8px; }
  .nav-toggle[aria-expanded="true"] .nav-icon::before { top: 5.2px; box-shadow: none; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-icon::after { top: 5.2px; transform: rotate(-45deg); }
  .cta-top { margin-left: 0; }
  .wordmark + .cta-top { margin-left: auto; } /* a bar without a menu (404) */
  @media (scripting: none) {
    .nav-toggle { display: none; }
    .topbar { position: static; flex-wrap: wrap; }
    .topnav { display: flex; flex-wrap: wrap; order: 3; position: static; width: 100%; padding: 0; border: 0; background: none; box-shadow: none; }
    .topnav a { border: 0; background: none; }
    .cta-top { margin-left: auto; }
  }
  /* the hero keeps two columns down to 850px, so the showcase never leaves half the width empty */
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
  .hero h1 { font-size: 50px; }
  .solver-promise { font-size: 19px; }
  .lede { font-size: 16.5px; }
}
@media (max-width: 850px) {
  .section-note { font-size: 16px; }
  .split-head { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { font-size: clamp(50px, 9vw, 74px); }
  .hero-copy { max-width: 700px; }
  .hero-stage { width: 100%; max-width: 640px; }
  .hero-stage::before { inset: -10% -20%; }
  .game { padding: 24px; }
  .hand .card { --w: 42px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .q-card { grid-row: auto; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; row-gap: 14px; column-gap: 20px; }
  .q-card > * { grid-column: 1; }
  .q-card .q-hand { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .comparison-head { gap: 20px 32px; }
  #showdown > .wrap { grid-template-columns: minmax(0, 1fr); }
  #showdown .section-head, #showdown .score-keys { grid-column: 1; grid-row: auto; }
  /* the small app screenshot repeats the live breakdown below it */
  #showdown .shot-showdown { display: none; }
  #showdown:has(#showdown-demo[data-empty]) .shot-showdown { display: block; width: min(100%, 340px); margin: 28px auto 0; }
  #showdown .score-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .play-grid { grid-template-columns: minmax(0, 1fr); }
  .play-grid > .section-head, .play-grid > #review-demo, .play-grid > .shot-review { grid-column: 1; grid-row: auto; }
  .play-grid > .shot-review { max-width: 677px; }
  .buy-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  /* one column: heading, then the purchase card, then how buying works */
  .buy-copy { display: contents; }
  .buy-grid { row-gap: 32px; }
  .buy-cards { order: 1; }
  .buy-how { order: 2; width: 100%; justify-self: center; }
  .faq-wrap .section-head { position: static; }
  .buy-cards { justify-content: center; grid-template-columns: minmax(0, 460px); padding: 12px 12px 12px 24px; }
  .fl-points { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fl-points li { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); column-gap: 24px; padding: 20px 22px; }
  .ft-also-in { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --sec: 56px; }
  .topbar { gap: 8px; }
  .wordmark { gap: 8px; font-size: 15px; }
  .mark { width: 26px; height: 26px; }
  .cta-top { min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .nav-toggle { padding-inline: 12px; }
  .topnav.is-open, html:not(.js) .topnav:target { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* phone hero: no eyebrow, the promise folded into the lede, the purchase note under the showcase,
     so the board is reached in the first screen */
  .hero { padding-block: 24px 36px; }
  .hero-grid { gap: 16px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow, .solver-promise { display: none; }
  .lede-promise { display: inline; color: var(--ink); font-weight: 600; }
  .hero-stage { order: 1; margin-top: 8px; }
  .purchase-note { order: 2; text-align: center; text-wrap: balance; }
  .hero h1 { font-size: clamp(42px, 11.6vw, 58px); }
  h2 { font-size: clamp(34px, 9vw, 46px); }
  .hero-variants { font-size: .52em; }
  .jk-chip { font-size: 12px; }
  .lede { font-size: 16px; line-height: 1.55; }
  .hero-actions { gap: 10px; margin-top: 2px; }
  .hero-actions .cta, .hero-actions .ghost { flex: 1 1 auto; justify-content: center; padding-inline: 18px; font-size: 14px; }
  .hero-solve { --hs-h: 552px; border-radius: 16px; }
  .facts { margin-top: 32px; }
  .facts li { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 16px 14px; }
  .fact-icon { grid-row: auto; width: 38px; height: 28px; padding: 5px 4px; border-radius: 7px; }
  .facts strong { font-size: 21px; white-space: normal; text-wrap: balance; }
  .facts span { font-size: 12.5px; }
  .questions-head { margin-bottom: 18px; }
  .questions-head h2 { font-size: 28px; }
  .q-card { display: grid; grid-template-columns: minmax(0, 1fr); padding: 20px; row-gap: 12px; }
  .q-card .q-hand { grid-column: 1; grid-row: auto; }
  .q-hand { --w: 30px; min-height: 44px; }
  .q-card h3 { font-size: 16px; }
  .q-go { display: none; }
  .q-kicker { display: flex; justify-content: space-between; gap: 12px; }
  .q-kicker::after { content: "→"; color: var(--accent); font: 600 15px/1 var(--sans); letter-spacing: 0; }
  .comparison-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  /* feature tiles, game cards and the fantasy-land settings become swipeable rows on phones */
  .bento, .games, .fl-points {
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .bento::-webkit-scrollbar, .games::-webkit-scrollbar, .fl-points::-webkit-scrollbar { display: none; }
  .bento { flex-wrap: nowrap; gap: 12px; align-items: stretch; }
  /* on phones the modes tile keeps names and tags only, so it is no taller than the screenshot tiles */
  .ft-modes .modes-list span { display: none; }
  .ft-modes .modes-list li { padding: 8px 0; }
  .bento > .ft { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .ft-body { padding: 20px 20px 16px; }
  .ft-window { width: min(100% - 40px, var(--nat, 100%)); }
  .ft-list { display: none; }
  .ft-also-in { gap: 18px; padding: 20px; align-content: start; }
  .also-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .also-list span { font-size: 12.5px; }
  .also-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .also-thumbs { grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr); }
  .games { grid-template-columns: none; grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: min(84%, 330px); gap: 12px; align-items: start; }
  .game { grid-row: auto; grid-template-rows: none; padding: 22px 20px; scroll-snap-align: start; }
  .game h3 { font-size: 28px; }
  .hand .card { --w: 40px; }
  /* the comparison below names each setting, and the Simulation tile above explains them: on phones the three notes give way */
  .fl-points { display: none; }
  .fl-honest { margin-top: 20px; padding: 14px 16px 14px 44px; font-size: 13.5px; line-height: 1.55; }
  .fl-honest::before { left: 14px; top: 15px; }
  .fl-table th, .fl-table td { padding: 10px 12px; }
  .fl-table td { font-size: 26px; }
  .fl-table tfoot td { font-size: 18px; }
  .top-cards { display: none; }
  .score-keys li { gap: 4px; padding: 12px 12px 11px; }
  .score-keys li::before { top: 12px; bottom: 12px; }
  #showdown .score-keys { margin-top: 20px; }
  #showdown-demo, #solve-explorer, #simulation-demo { margin-top: 24px; }
  #showdown .score-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-keys b { font-size: 18px; }
  .score-keys span { font-size: 12px; line-height: 1.4; }
  /* sentences the components below repeat give way on phones */
  .ph-hide { display: none; }
  /* the review card explains itself on a phone */
  .verdicts { display: none; }
  .streets li { grid-template-rows: 16px auto auto; gap: 8px; padding: 16px 12px 14px; }
  .streets li::before { transform: scale(.8); transform-origin: 0 50%; }
  .streets b { font-size: 21px; }
  .streets span { font-size: 12px; }
  .streets .fl-hand { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 14px; }
  .streets .fl-hand b { font-size: 21px; }
  .block-title { margin-top: 32px; }
  .stats li { padding: 18px 14px 16px; }
  .stats h4 { margin-bottom: 6px; font-size: 11px; }
  .stats b { font-size: clamp(26px, 8vw, 36px); }
  .stats li > span { font-size: 12px; }
  .stats small { font-size: 12px; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .spec-card { padding: 20px 18px; }
  .spec-card ul { gap: 8px; font-size: 14px; }
  .buy-cards { padding: 10px 8px; }
  .buy-cards::before { transform: rotate(-4deg) translate(-8px, 6px); }
  .buy-card { padding: 54px 22px 46px; }
  .buy-name { font-size: 34px; }
  .buy-how { padding: 20px 18px; }
  .buy-steps li { font-size: 14.5px; }
  .faq-wrap { gap: 20px; }
  .faq summary { font-size: 16px; padding-right: 48px; }
  .faq summary::before, .faq summary::after { top: 17px; }
  .footer-nav { gap: 24px 16px; }
  .footer-nav a { min-width: 44px; min-height: 44px; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* reserved showcase height: the larger of the built panel and the static fallback at each width */
@media (max-width: 410px) {
  .hero-solve { --hs-h: 538px; }
}
@media (max-width: 400px) {
  /* two columns of streets, so "Showdown" and its line fit on the smallest phones */
  .streets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .streets li:nth-child(4) { border-left: 1px solid var(--line); }
  .streets li:nth-child(odd) { border-left: 0; }
  .streets li:nth-child(3) { border-top: 1px solid var(--line); }
}
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .topbar .wordmark span { font-size: 13px; }
  .cta-top { padding-inline: 11px; font-size: 12px; }
  .nav-toggle { padding-inline: 10px; }
  .hero h1 { font-size: 40px; }
  .fl-table th, .fl-table td { padding: 9px 8px; }
  .stats li { padding-inline: 12px; }
  .q-ctx { display: none; }
}
/* ==== END PAGE ==== */
