/* ============================================================
   FARO — faro.pyroplay.io
   ============================================================
   Structure borrowed from pyroplay.io by way of playcaptainscall.com;
   palette, type and materials taken from the game.

   The borrowed part is the *shape*: separation by tone rather than by
   borders, nested rounded islands, one accent used sparingly, motion tokens
   declared once at the top. That system is already proven on a phone and
   re-deriving it would have been waste.

   The rest is FARO's. tokens.css arrives from the game's own
   src/config/tokens.ts, so nothing below states a colour — everything states
   a token, and a change to the game's palette reaches this site by running
   one script. The type is the game's two faces, self-hosted from the same
   files the game loads. The felt, the brass and the instrument plates are the
   game's own recipes, ported rather than re-invented, because a marketing
   page that is a shade off the product it sells is worse than a plain one.

   Sections are numbered and they match the order of index.html.

    1 THEME          8 THE TURN
    2 FONTS          9 THE BET
    3 RESET         10 THE CASEKEEPER
    4 TYPE          11 THE DOUBLE DRAW
    5 MATERIALS     12 TAKE A TURN
    6 FURNITURE     13 THE NUMBERS
    7 HERO          14 TWO HUNDRED YEARS
                    15 OPERATORS
                    16 SAFER PLAY
                    17 FOOTER
                    18 AGE GATE
                    19 LEGAL PAGES
                    20 REDUCED MOTION
   ============================================================ */

/* ============================================================
   1 · THEME — roles, mapped onto the game's raw palette
   ============================================================
   tokens.css says what #c4a36c is called. This says what it is for. Keeping
   the two apart is what lets the generated file be overwritten without ever
   touching a design decision.

   **The brass rule comes across with the palette.** In the game brass is
   allowed on six surfaces and nowhere else, because a table that glitters all
   over reads as a cheap casino and one that glitters in six places reads as an
   expensive instrument. This site gets six too: the wordmark, the primary
   action, the cards, the casekeeper, the figures on the numbers plate, and the
   result of a turn. Everything else is felt, ivory and ink.
   ============================================================ */
:root {
  /* Surfaces, as a tonal ladder. Each step is lighter than the last, which is
     what separates one island from another with no line between them. */
  --ground: var(--faro-green-950);
  --surface: var(--faro-green-900);
  --surface-high: var(--faro-green-800);
  --surface-higher: var(--faro-green-700);

  /* Ink is not a surface in the ladder. It is what an instrument is made of:
     the casekeeper's plate, the numbers panel, the lettering cut into brass. */
  --plate: var(--faro-ink-900);
  --panel: var(--faro-smoke-900);

  --fill: rgb(231 216 193 / 0.045);
  --fill-hover: rgb(231 216 193 / 0.085);
  --hairline: rgb(75 55 25 / 0.55);
  --hairline-bright: rgb(168 131 75 / 0.42);

  --on-surface: var(--faro-ivory-100);
  --on-surface-variant: var(--faro-ivory-200);
  --on-surface-muted: rgb(211 192 164 / 0.62);
  --on-surface-faint: rgb(211 192 164 / 0.38);

  /* One accent, and it is metal. */
  --accent: var(--faro-brass-400);
  --accent-bright: var(--faro-brass-300);
  --accent-specular: var(--faro-brass-200);
  --accent-deep: var(--faro-brass-600);
  --on-accent: var(--faro-ink-900);

  --copper: var(--faro-copper-300);
  --win: var(--faro-win-500);
  --lose: var(--faro-lose-500);
  --card-face: var(--faro-ivory-100);
  --card-red: var(--faro-oxblood-500);
  --card-black: var(--faro-ink-900);

  --accent-rgb: 196 163 108;
  --ivory-rgb: 231 216 193;

  /* Shape. One scale, and it is the game's: small radii, because a playing
     card has small radii and everything here sits on the same table. */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-panel: 18px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter Variable', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Motion, ported from the game's theme.css so the site and the table move
     the same way. `settle` overshoots by a hair; it is for things that arrive,
     never for things that leave. */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-card: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-link: 0.14s;
  --dur-btn: 0.18s;
  --dur-card: 0.34s;
  --dur-reveal: 0.9s;

  /* Layout */
  --container: 1160px;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 66px;

  /* Layers. Five of them, and nothing invents a sixth. */
  --z-felt: 0;
  --z-raised: 1;
  --z-header: 20;
  --z-menu: 30;
  --z-gate: 40;

  color-scheme: dark;
}

/* ============================================================
   2 · FONTS — the game's two faces, on this site's own origin
   ============================================================
   Self-hosted from the same files the game loads, vendored by
   tools/sync-fonts.mjs. A face on somebody else's origin costs a DNS lookup, a
   handshake and a connection before the first byte of the type the first paint
   needs, and it forces the content security policy open to two hosts that have
   nothing else to do with this site.

   Cormorant at 400 and 600 only. The game ships those two and no others, and
   a wordmark set in a weight the product does not own is a wordmark that does
   not match the product.
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215;
}

/*
  The wordmark's understudy, matched to Cormorant's metrics.

  Lifted from the game's theme.css. Without it the largest type on the page
  reflows the moment the real face arrives, which on a slow connection is the
  first thing a visitor sees the site do.
*/
@font-face {
  font-family: 'Cormorant Fallback';
  src: local('Times New Roman'), local('Times'), local('Liberation Serif');
  size-adjust: 108%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 0%;
}

/* ============================================================
   3 · RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Every in-page link would otherwise land under the fixed header. */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html.no-motion {
  scroll-behavior: auto;
}

body {
  background: var(--ground);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* The double-tap zoom guard that does not cost anybody their pinch. */
  touch-action: manipulation;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/*
  The artwork is not handed over.

  Everything drawn on this site is the game's own: the box, the courts, the
  table plates, both marks. A browser has to fetch a picture to show it, so
  none of this makes the files unobtainable — a determined visitor has the
  network tab, and everybody has a screenshot. What it removes is every easy
  way to walk off with one:

    `-webkit-touch-callout` is the iOS long press. Without it, holding a
    finger on the box no longer raises Save Image / Copy / Share, which is
    the route almost everybody takes on a phone.

    `-webkit-user-drag` is the desktop drag: an image can no longer be pulled
    out of the page onto a desktop or into another tab.

    `pointer-events: none` is the belt to those braces, and a press that
    never reaches a picture cannot open a menu about it. Nothing is lost by
    it: every <img> here is either decoration, or a mark inside a link that
    takes the press itself. If a picture is ever added that has to be
    clicked, it needs this turned back on for itself.

  Right click and dragstart are refused in js/guard.js, because a context
  menu is the browser's and only a script can decline it.
*/
img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* One focus ring, brass, visible on felt. The game's tables are dark enough
   that the browser's default blue disappears into them. */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection {
  background: rgb(var(--accent-rgb) / 0.3);
  color: var(--faro-ivory-050);
}

/* ============================================================
   4 · TYPE
   ============================================================
   Cormorant for anything the table would print: the wordmark, the headings,
   the rank on a card, every figure. Inter for anything a player reads as
   prose. That division is the game's and it is the reason the page reads as
   the same object as the product.

   Numerals in Cormorant need `lining`, always. It is an old-style face, so a
   three drops below the baseline by default and reads as an ezh, and "51"
   comes out as "5ı".
   ============================================================ */
.lining {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    'lnum' 1,
    'tnum' 1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}

/*
  The display sizes. Two lines at most for a heading, which is why the top of
  the ramp is restrained: a five-word heading at 96px is a poster, and this is
  a page somebody has to read the rest of.
*/
.t-hero {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.t-section {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  letter-spacing: 0.015em;
}

.t-sub {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  letter-spacing: 0.02em;
}

/*
  The tracked, uppercase label the game prints on felt. Rationed: the page
  carries three of these in total, because a label above every section is the
  rhythm of a template rather than of a table.
*/
.t-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.t-lead {
  font-size: clamp(1.05rem, 0.98rem + 0.34vw, 1.24rem);
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: var(--measure);
}

.t-body {
  color: var(--on-surface-muted);
  max-width: var(--measure);
}

.t-body + .t-body {
  margin-top: 1rem;
}

.t-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  line-height: 1;
  color: var(--accent-bright);
}

.t-caption {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--on-surface-faint);
}

em {
  font-style: italic;
  /* Cormorant's italic descenders clip against a tight leading, and half the
     words this page emphasises have one: soda, copper, hock. */
  line-height: 1.15;
}

strong {
  font-weight: 600;
  color: var(--on-surface);
}

/* ============================================================
   5 · MATERIALS — felt, brass, plate, screw
   ============================================================
   Ported from the game's table.css rather than approximated. Four surfaces do
   all the work on this page and each one is a real thing: baize with a nap,
   a machined brass face, an instrument plate, and the screw that fixes the
   plate to the table.
   ============================================================ */

/*
  The felt. A scrim over the photographic plate over a lamp, in that order,
  because the light in this room comes from above the box and everything else
  falls away from it.
*/
.felt {
  position: relative;

  /*
    The nap below blends, and a blend without an isolate blends against the
    nearest stacking context — which `position: relative` does not make, so
    the grain on every section was mixing against the root. The compositor
    then has to flatten the whole document to work out seven per cent of a
    256px tile, and a phone that cannot hold a surface that size drops tiles:
    black rectangles and stale copies of the artwork, painted under the type.
    Which is what the turn section was doing on some phones and not others,
    and why it never reproduced on a desk.

    Isolating costs nothing to look at. These sections are opaque, so the
    backdrop the grain blends against is the felt's own gradient either way;
    the only difference is that the compositor now flattens a section instead
    of a site.
  */
  isolation: isolate;
  background:
    radial-gradient(
      140% 90% at 50% -6%,
      color-mix(in srgb, var(--surface-higher) 82%, var(--faro-green-600)) 0%,
      var(--surface-high) 28%,
      var(--surface) 58%,
      var(--ground) 100%
    ),
    var(--ground);
}

/* The nap, laid at five per cent. Any more and it reads as noise on a screen
   rather than as cloth. Fixed and unclickable, per the rule about grain. */
.felt::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/art/felt-tile.webp');
  background-size: 256px 256px;
  mix-blend-mode: overlay;
  opacity: 0.07;
  pointer-events: none;
}

/*
  Brass, as a machined face rather than a yellow rectangle.

  Four stops: a metal surface has a bright edge, a body, and a darker roll
  where it turns away from the light. The game's note on this is worth keeping:
  a two-stop gradient reads as a yellow rectangle.
*/
.brass {
  background: linear-gradient(
    180deg,
    var(--faro-brass-300) 0%,
    var(--faro-brass-400) 18%,
    var(--faro-brass-500) 62%,
    var(--faro-brass-600) 100%
  );
  color: var(--on-accent);
  box-shadow:
    inset 0 1px 0 rgb(240 220 181 / 0.55),
    inset 0 -1px 0 rgb(75 55 25 / 0.5),
    0 1px 2px rgb(0 0 0 / 0.5),
    0 10px 30px rgb(196 163 108 / 0.12);
}

/*
  An instrument plate: the thing a casekeeper is made of, and the thing the
  numbers are engraved on.

  This is the double enclosure the game uses everywhere — an outer plate with
  a second rule set inside it. One hairline reads as a wireframe box; two read
  as an edge with a thickness, which is what is actually in front of you.
*/
.plate {
  position: relative;
  border-radius: var(--r-panel);
  border: 1px solid var(--hairline-bright);
  background: linear-gradient(180deg, color-mix(in srgb, var(--plate) 92%, var(--surface)), var(--plate));
  box-shadow:
    inset 0 0 0 1px rgb(5 8 5 / 0.6),
    inset 0 1px 0 rgb(240 220 181 / 0.12),
    0 22px 60px rgb(0 0 0 / 0.5);
}

.plate::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-panel) - 6px);
  border: 1px solid rgb(124 93 49 / 0.28);
  pointer-events: none;
}

/* The screw that fixes it down. A rectangle with a border is a container; a
   rectangle bolted at the corners is an object that was fitted. */
.screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 30%,
    var(--faro-brass-200),
    var(--faro-brass-500) 58%,
    var(--faro-brass-700)
  );
  box-shadow: 0 0 0 1px rgb(5 8 5 / 0.55);
}

.screw--tl {
  top: 9px;
  left: 9px;
}
.screw--tr {
  top: 9px;
  right: 9px;
}
.screw--bl {
  bottom: 9px;
  left: 9px;
}
.screw--br {
  bottom: 9px;
  right: 9px;
}

/* ============================================================
   6 · FURNITURE — container, sections, header, actions
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: 1340px;
}

/* Sections breathe. The ramp is wide on purpose: this page is a room with a
   few objects in it, not a list of features. */
.section {
  position: relative;
  padding-block: clamp(5.5rem, 3rem + 9vw, 10rem);
}

.section--tight {
  padding-block: clamp(4rem, 2.5rem + 5vw, 6.5rem);
}

/* A hairline that is a rule on felt rather than a border on a box: brass, and
   it fades out at both ends because a line that meets the edge of the screen
   reads as a table cell. */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--hairline-bright) 22%, var(--hairline-bright) 78%, transparent);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: calc(var(--z-gate) + 1);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--panel);
  border: 1px solid var(--hairline-bright);
  transition: top var(--dur-btn) var(--ease-out-expo);
}

.skip:focus-visible {
  top: 12px;
}

/* ---- the header ------------------------------------------------------
   A rail rather than a bar: it carries the mark and one action, and it stops
   short of the edges so the felt runs behind it. Blur only ever on a fixed
   element, which this is. */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-card) var(--ease-out-expo),
    border-color var(--dur-card) var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgb(10 16 11 / 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--hairline);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.header__mark {
  display: block;
  flex-shrink: 0;
}

.header__mark img {
  height: 26px;
  width: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--on-surface-muted);
  transition: color var(--dur-link) var(--ease-out-expo);
}

.nav a:hover {
  color: var(--on-surface);
}

@media (min-width: 60rem) {
  .nav {
    display: flex;
  }
}

/* ---- actions ---------------------------------------------------------
   One brass button on the page at a time, and it is always the same words.
   The secondary is a hairline, because a second filled button is a second
   answer to a question that has one. */
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.1rem 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--dur-btn) var(--ease-out-expo),
    filter var(--dur-btn) var(--ease-out-expo),
    background var(--dur-btn) var(--ease-out-expo),
    border-color var(--dur-btn) var(--ease-out-expo);
}

.action:hover {
  filter: brightness(1.06);
}

.action:active {
  transform: scale(0.985);
}

.action--brass {
  padding-block: 0.8rem;
}

/* The mark inside the button gets its own enclosure, flush with the inner
   padding, and it is what moves on hover. The button itself only presses. */
.action__glyph {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgb(21 20 15 / 0.14);
  transition: transform var(--dur-btn) var(--ease-settle);
}

.action:hover .action__glyph {
  transform: translate(2px, -1px);
}

.action--ghost {
  border: 1px solid var(--hairline-bright);
  color: var(--on-surface-variant);
  padding-inline: 1.4rem;
}

.action--ghost .action__glyph {
  background: var(--fill);
}

.action--ghost:hover {
  border-color: var(--accent);
  color: var(--on-surface);
  background: var(--fill);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* ---- reveals ---------------------------------------------------------
   Everything on this page arrives; nothing is simply there. Heavy and slow,
   with a little blur, because the objects on this table have mass.

   Driven by IntersectionObserver rather than by a scroll position, and the
   class is added by js/reveal.js. `.no-js` sets them visible before first
   paint, so a visitor with no JavaScript reads a finished page. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity var(--dur-reveal) var(--ease-out-expo),
    transform var(--dur-reveal) var(--ease-out-expo),
    filter var(--dur-reveal) var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-in,
.no-js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================================
   7 · HERO — the table, from the chair
   ============================================================
   The plate behind this is the game's own photograph of its own table, laid
   under a scrim so the type has somewhere to sit. The light comes from above
   the dealing box, as it does in the game, and everything falls away from it.

   Left-aligned rather than centred. A centred hero over a dark plate is the
   shape every game site has; the table is a room, and you are sitting at one
   side of it.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

.hero__plate {
  position: absolute;
  inset: 0;
  /*
    The scrim is lightest across the top third, which is where the dealing box
    sits in both plates. It was heaviest there to begin with, and on a phone
    that put the darkest part of the gradient over the one object in the
    photograph worth seeing.
  */
  background-image:
    linear-gradient(
      to bottom,
      rgb(5 8 5 / 0.34) 0%,
      rgb(5 8 5 / 0.16) 22%,
      rgb(5 8 5 / 0.52) 58%,
      rgb(5 8 5 / 0.95) 100%
    ),
    url('../assets/art/table-portrait.webp');
  background-size: cover;
  background-position: 50% 12%;
  z-index: var(--z-felt);
}

@media (min-width: 64rem) {
  .hero__plate {
    background-image:
      linear-gradient(
        to bottom,
        rgb(5 8 5 / 0.5) 0%,
        rgb(5 8 5 / 0.1) 24%,
        rgb(5 8 5 / 0.5) 64%,
        rgb(5 8 5 / 0.96) 100%
      ),
      url('../assets/art/table-landscape.webp');
    background-position: 50% 30%;
  }
}

/* The lamp over the box. One soft source, and it is the reason the top of the
   frame is warm and the bottom is not. */
.hero__lamp {
  position: absolute;
  inset-inline: 0;
  top: -18%;
  height: 70%;
  background: radial-gradient(
    50% 60% at 50% 40%,
    rgb(196 163 108 / 0.16) 0%,
    rgb(196 163 108 / 0.05) 45%,
    transparent 72%
  );
  z-index: var(--z-felt);
  pointer-events: none;
}

/* Laid on the felt at the top of the frame, where the game puts it and where
   the lamp already is. It goes on a desk, because the landscape plate behind
   it has a box of its own and two boxes is one too many. */
.hero__box {
  position: absolute;
  top: clamp(6rem, 17vh, 11rem);
  left: 50%;
  width: clamp(150px, 46vw, 230px);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / 0.6));
  z-index: var(--z-felt);
}

@media (min-width: 64rem) {
  .hero__box {
    display: none;
  }
}

/*
  A short phone has to hold the box, two lines of heading, three of lead and
  two buttons in 568 pixels. Measured at 320x568 the heading ran into the box
  by about fourteen of them. The box gives way rather than the type: it is the
  only thing in the frame that is there to be looked at rather than read.
*/
@media (max-height: 40rem) {
  .hero {
    padding-block: calc(var(--header-h) + 1.5rem) clamp(1.5rem, 5vh, 3rem);
  }

  .hero__box {
    top: clamp(4.2rem, 12vh, 7rem);
    width: clamp(104px, 33vw, 160px);
  }
}

.hero__inner {
  position: relative;
  z-index: var(--z-raised);
}

.hero__title {
  max-width: 14ch;
}

.hero__lead {
  margin-top: 1.4rem;
  max-width: 46ch;
}

.hero__actions {
  margin-top: 2.4rem;
}

/* Stacked, they have to be the same width. Two pills of different lengths one
   above the other read as a layout that got away rather than as a choice. */
@media (max-width: 32rem) {
  .hero__actions {
    display: grid;
    gap: 0.7rem;
  }

  .hero__actions .action {
    justify-content: space-between;
    width: 100%;
    max-width: 20rem;
  }
}

/* The hero's own arrival. Not a reveal: it is the first thing on the screen,
   so it plays on load rather than waiting for an observer that has already
   fired by the time the script runs. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__lead,
  .hero__actions {
    animation: hero-rise 1.1s var(--ease-out-expo) both;
  }

  .hero__lead {
    animation-delay: 0.12s;
  }

  .hero__actions {
    animation-delay: 0.24s;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ============================================================
   8 · THE TURN — the deal, scrubbed
   ============================================================
   One section on this page pins, and this is it.

   The whole sequence hangs off a single view timeline declared on the track.
   `contain` is the range in which the track covers the entire viewport, which
   is exactly the span during which the stage inside it is stuck, so the
   animation and the pin cannot drift apart: they are the same measurement.

   No scroll listener, no library, no JavaScript at all. It runs on the
   compositor, so it costs nothing on the main thread and cannot jank on a
   phone, because there is nothing on the main thread to jank.

   Where scroll-driven animation is not supported, and wherever reduced motion
   is asked for, section 20 un-pins the whole thing and the four beats become
   four stacked frames. That is a different page, not a broken one.
   ============================================================ */
.turn {
  position: relative;
}

.turn__track {
  height: 420svh;
  view-timeline-name: --deal;
  view-timeline-axis: block;
}

.turn__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.turn__inner {
  display: grid;
  gap: clamp(1.2rem, 3.5vh, 2.6rem);
  width: 100%;
}

.turn__head {
  text-align: center;
}

/* ---- the table on the stage ---- */
.deal {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 3.5vh, 2.4rem);
}

.deal__box {
  width: clamp(112px, 15vh, 190px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.55));
}

.deal__places {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
}

.place {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.place__label {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(220 192 141 / 0.85);
}

/* The empty place, drawn the way the game draws it: a brass hairline, a
   second rule inside it, and the deck's mark faint in the middle. A place a
   card belongs is more inviting than a place where one is missing. */
.place__slot {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--r-sm);
  border: 1px solid rgb(168 131 75 / 0.46);
  box-shadow:
    inset 0 0 0 1px rgb(5 8 5 / 0.55),
    inset 0 0 0 2px rgb(124 93 49 / 0.3);
}

.place__fleur {
  width: 26%;
  fill: rgb(168 131 75 / 0.5);
}

/* ---- a card ----
   Drawn, not pictured. Every part of it scales with the card: the frame, the
   index, the pip. The three court engravings are the one exception, because
   an engraving is an engraving. */
.deal,
.double__cards {
  --card-h: clamp(120px, 22vh, 250px);
  --card-w: calc(var(--card-h) / 1.4);
}

.card {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--r-sm);
  background: linear-gradient(
    168deg,
    var(--faro-ivory-050),
    var(--card-face) 62%,
    var(--faro-ivory-200)
  );
  box-shadow:
    inset 0 0 0 1px rgb(168 131 75 / 0.55),
    inset 0 0 0 3px rgb(244 234 217 / 0.9),
    inset 0 0 0 4px rgb(168 131 75 / 0.3),
    0 6px 10px rgb(0 0 0 / 0.45),
    0 1px 2px rgb(0 0 0 / 0.35);
  color: var(--card-black);
  overflow: hidden;
}

/* The deck's name at the foot, faint, as on the game's cards. */
.card::after {
  content: 'FARO';
  position: absolute;
  bottom: 8.6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: calc(var(--card-w) * 0.052);
  letter-spacing: calc(var(--card-w) * 0.0096);
  line-height: 1;
  color: rgb(168 131 75 / 0.55);
  pointer-events: none;
}

.card[data-suit='heart'],
.card[data-suit='diamond'] {
  color: var(--card-red);
}

.card__index {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(var(--card-w) * 0.16);
  line-height: 0.75;
}

/* The suit, small and directly under the rank, as on the game's cards
   (faro/src/ui/cards/PlayingCard.tsx). */
.card__index svg {
  width: calc(var(--card-w) * 0.068);
  fill: currentColor;
}

.card__index em {
  font-style: normal;
}

/* Each index centred on a column 12% in from its side, clear of a court
   card's frame. */
.card__index--tl {
  top: 8%;
  left: 12%;
  transform: translateX(-50%);
}

.card__index--br {
  right: 12%;
  bottom: 8%;
  transform: translateX(50%) rotate(180deg);
}

.card__pip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34%;
  transform: translate(-50%, -50%);
  fill: currentColor;
}

/* A court picture in a panel of its own, framed like any ordinary deck's:
   a strong ink rule round it and a brass line just inside, the picture
   filling it edge to edge and the indices outside it. The game's panel,
   140 x 264 at 55, 30 on its 250 x 350 card. */
.card__court {
  position: absolute;
  top: 8.57%;
  left: 22%;
  box-sizing: border-box;
  width: 56%;
  height: 75.43%;
  object-fit: cover;
  border: calc(var(--card-w) * 0.009) solid var(--faro-ink-900);
  outline: calc(var(--card-w) * 0.0036) solid rgb(168 131 75 / 0.8);
  outline-offset: calc(var(--card-w) * -0.0148);
}

/* ---- the flight ----
   The card is mounted where it lands and animated *from* the box, which is
   the only arrangement in which nothing on the stage moves when it arrives.
   It starts clipped to nothing at the mouth, the clip opens as it slides out,
   and only then does it travel: the card emerges rather than sliding in from
   somewhere. */
.card--lose {
  --fly-x: 118%;
  --fly-y: -188%;
}

.card--win {
  --fly-x: -118%;
  --fly-y: -188%;
}

@keyframes card-deal {
  0% {
    transform: translate(var(--fly-x), var(--fly-y)) scale(0.44);
    clip-path: inset(0 0 100% 0 round 8px);
  }
  28% {
    transform: translate(var(--fly-x), var(--fly-y)) scale(0.44);
    clip-path: inset(0 0 0 0 round 8px);
  }
  78% {
    transform: translate(calc(var(--fly-x) * 0.22), calc(var(--fly-y) * 0.22)) scale(0.9)
      rotate(2.5deg);
    clip-path: inset(0 0 0 0 round 8px);
  }
  100% {
    transform: none;
    clip-path: inset(0 0 0 0 round 8px);
  }
}

/* ---- the beats ----
   One at a time, each holding the floor while its part of the deal happens.
   They share a grid cell so the stage never changes height. */
.beats {
  position: relative;
  list-style: none;
  min-height: clamp(6.5rem, 14vh, 8.5rem);
  text-align: center;
}

.beat {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.4rem;
  opacity: 0;
}

.beat__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-bright);
}

.beat .t-body {
  max-width: 46ch;
}

@keyframes beat-hold {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  16%,
  84% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/*
  The two ends of the sequence are not like the three handoffs in the middle.

  The first beat is already on the screen when the section pins, so fading it
  in means the reader watches it arrive after it has arrived. The last one has
  to still be there when the section lets go, or the final thing the pin does
  is empty itself. Measured at both ends: beat one opened at 0.75 opacity and
  beat four was at zero while the stage was still stuck.
*/
@keyframes beat-open {
  0%,
  84% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes beat-close {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  16%,
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes box-light {
  from {
    filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.55));
  }
  to {
    filter: drop-shadow(0 18px 26px rgb(0 0 0 / 0.55))
      drop-shadow(0 0 18px rgb(196 163 108 / 0.35));
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card--lose {
      animation: card-deal linear both;
      animation-timeline: --deal;
      animation-range: contain 14% contain 44%;
    }

    .card--win {
      animation: card-deal linear both;
      animation-timeline: --deal;
      animation-range: contain 52% contain 82%;
    }

    .beat {
      animation: beat-hold linear both;
      animation-timeline: --deal;
    }

    .beat[data-beat='1'] {
      animation-name: beat-open;
      animation-range: contain 0% contain 22%;
    }
    .beat[data-beat='2'] {
      animation-range: contain 22% contain 50%;
    }
    .beat[data-beat='3'] {
      animation-range: contain 50% contain 78%;
    }
    .beat[data-beat='4'] {
      animation-name: beat-close;
      animation-range: contain 78% contain 100%;
    }

    /* The box lights as the card leaves it. */
    .deal__box {
      animation: box-light linear both;
      animation-timeline: --deal;
      animation-range: contain 8% contain 30%;
    }
  }
}

/* ============================================================
   9 · THE BET — standard, or the other way round
   ============================================================
   The one control on the page, and it is the game's own gesture: press and
   hold a wager to change what it answers. Copying the gesture rather than
   describing it means a visitor arrives at the table already knowing it.
   ============================================================ */
.bet__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 54rem) {
  .bet__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.bet__copy .t-lead {
  margin-top: 1.4rem;
}

.bet__copy .t-body {
  margin-top: 1.1rem;
}

.bet__demo {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
}

/* The chip. A disc with a milled edge, the denomination cut into the face,
   and a colourway that turns over to copper while it is held. */
.chip {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/*
  The chip is the game's own, down to the eight inlays.

  A clay chip's rim is pale clay set into the body colour, not a gold ring: the
  game found that making them brass turned every denomination into a variation
  on the same yellow disc. The conic gradient draws the rim, and the face sits
  opaquely on top of it inset by eighteen per cent, which is the only reason
  eight wedges read as inlays rather than as a sunburst.
*/
.chip__face {
  --chip-body: var(--faro-chip-black);
  --chip-spot: var(--faro-ivory-200);

  position: relative;
  display: grid;
  place-items: center;
  width: clamp(112px, 22vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--chip-spot) 0deg 20deg,
    var(--chip-body) 20deg 45deg,
    var(--chip-spot) 45deg 65deg,
    var(--chip-body) 65deg 90deg,
    var(--chip-spot) 90deg 110deg,
    var(--chip-body) 110deg 135deg,
    var(--chip-spot) 135deg 155deg,
    var(--chip-body) 155deg 180deg,
    var(--chip-spot) 180deg 200deg,
    var(--chip-body) 200deg 225deg,
    var(--chip-spot) 225deg 245deg,
    var(--chip-body) 245deg 270deg,
    var(--chip-spot) 270deg 290deg,
    var(--chip-body) 290deg 315deg,
    var(--chip-spot) 315deg 335deg,
    var(--chip-body) 335deg 360deg
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 10px 24px rgb(0 0 0 / 0.6);
  transition:
    transform var(--dur-card) var(--ease-settle),
    box-shadow var(--dur-card) var(--ease-out-expo);
}

.chip:active .chip__face {
  transform: scale(0.97);
}

.chip[aria-pressed='true'] .chip__face {
  --chip-body: var(--faro-copper-700);
  --chip-spot: var(--faro-copper-300);

  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 10px 28px rgb(169 90 44 / 0.35);
}

/* The face: the flat middle of the chip, inside the rim. Opaque, because it
   is the part of a chip that is printed rather than moulded. */
.chip__value {
  position: absolute;
  inset: 18%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chip-body);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-spot) 45%, transparent);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--faro-ivory-100);
  white-space: nowrap;
  transition: background var(--dur-card) var(--ease-out-expo);
}

.chip__hint {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-faint);
  transition: color var(--dur-link) var(--ease-out-expo);
}

.chip:hover .chip__hint {
  color: var(--on-surface-muted);
}

/* The ring that fills while a finger is down, so the hold has a length you
   can see rather than one you have to discover. */
.chip__face::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-bright) calc(var(--hold, 0) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  opacity: var(--hold, 0);
  pointer-events: none;
}

.bet__state {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  text-align: center;
}

.chip[aria-pressed='true'] ~ .bet__state {
  color: var(--copper);
}

/* ============================================================
   10 · THE CASEKEEPER
   ============================================================
   The instrument, drawn rather than photographed, because it has to hold
   thirteen columns legibly at 320px and still look machined at 1920px.
   ============================================================ */
.casekeeper .t-lead {
  margin-top: 1.2rem;
}

/*
  Sized like the instrument it is rather than stretched to the container.

  It carries thirteen columns of four beads and nothing else, so a plate as
  wide as a desk puts an inch of empty brass between every rank. And nothing
  clips: the nameplate is hung above the top edge, and an `overflow` here cut
  it in half, which is what the first version did.
*/
.case {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: clamp(1.7rem, 4vw, 2.2rem) clamp(0.9rem, 2.5vw, 1.6rem) clamp(1.3rem, 3vw, 1.7rem);
}

/* The nameplate, screwed to the front of the case. Hung above the plate's
   own edge, which is why the section carries its top padding. */
.case__plate {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-bright);
  background: var(--ground);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  white-space: nowrap;
}

.case__columns {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: clamp(1px, 0.5vw, 8px);
}

.case__column {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding-block: 0.3rem;
  border-radius: var(--r-xs);
}

.case__rank {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.4vw, 0.86rem);
  font-weight: 600;
  color: var(--on-surface-faint);
  font-variant-numeric: lining-nums tabular-nums;
}

.case__beads {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(2px, 0.5vw, 4px);
}

.case__bead {
  width: clamp(5px, 1.1vw, 9px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgb(5 8 5 / 0.6);
  transition:
    background 0.5s var(--ease-out-expo),
    opacity 0.5s var(--ease-out-expo);
  transition-delay: calc(var(--d, 0) * 26ms);
}

/* Spent. Dark rather than absent: the bead is still on the frame, which is
   the whole point of a casekeeper. */
.case__bead.is-spent {
  background: var(--faro-green-600);
  opacity: 0.55;
}

.case__note {
  margin-top: 1.6rem;
  max-width: 56ch;
}

/* ============================================================
   11 · THE DOUBLE DRAW
   ============================================================ */
.double__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 54rem) {
  .double__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

/* Two of the same rank, laid one across the other the way a dealer would
   leave them. The tilt is what says they arrived together. */
.double__cards {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 1rem;
}

.double__cards .card:first-child {
  transform: rotate(-7deg) translateX(8%);
}

.double__cards .card:last-child {
  transform: rotate(6deg) translateX(-8%);
  margin-left: calc(var(--card-w) * -0.34);
}

.double__copy .t-lead {
  margin-top: 1.3rem;
}

.double__copy .t-body {
  margin-top: 1.1rem;
}

/* ============================================================
   12 · TAKE A TURN — the game, framed as the machine it is
   ============================================================
   Loaded on a press rather than on arrival. An iframe that boots a whole card
   game is not something to spend a visitor's first two seconds on, and a
   poster that becomes the thing it pictures is a fair trade for one tap.
   ============================================================ */
.table__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}

.table__inner .t-lead {
  margin-top: 1.2rem;
}

.machine {
  width: 100%;
  max-width: 420px;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.machine__frame {
  position: relative;
  padding: 12px;
  border-radius: calc(var(--r-panel) + 8px);
}

.machine__screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--ground);
  aspect-ratio: 9 / 16;
  box-shadow: inset 0 0 0 1px rgb(5 8 5 / 0.8);
}

.machine__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--dur-card) var(--ease-out-expo);
}

.machine__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
}

.machine__play-ring {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  transition: transform var(--dur-card) var(--ease-settle);
}

.machine__play:hover .machine__play-ring {
  transform: scale(1.05);
}

.machine__play:hover ~ .machine__poster,
.machine__frame:hover .machine__poster {
  opacity: 0.7;
}

.machine__play-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.machine__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.table__note {
  margin-top: 1.6rem;
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgb(196 163 108 / 0.4);
  text-underline-offset: 3px;
  transition: color var(--dur-link) var(--ease-out-expo);
}

.link:hover {
  color: var(--accent-bright);
  text-decoration-color: currentColor;
}

/* ============================================================
   13 · THE NUMBERS
   ============================================================
   Five plates of unequal size, because five equal cards is a pricing table
   and this is an instrument panel. The lead figure takes the width it needs
   and the rest sit under it.
   ============================================================ */
.numbers .t-lead {
  margin-top: 1.2rem;
}

.figures {
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

@media (min-width: 44rem) {
  .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .figure--lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  .figure:nth-child(2),
  .figure:nth-child(3) {
    grid-column: span 2;
  }
}

.figure {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.figure--lead {
  align-content: center;
  gap: 0.7rem;
}

.figure--lead .t-figure {
  font-size: clamp(3.2rem, 2.2rem + 4vw, 5.4rem);
}

.figure__title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.figure__note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--on-surface-muted);
  max-width: 42ch;
}

/*
  Without script there are no figures, so there is no section.

  The plates are filled from js/config.js because a number typed into the
  markup is a number nobody will ever check against the game. The cost of that
  is a visitor with scripting off, who would otherwise meet the words "the
  arithmetic, in the open" over five empty plates. They get the noscript line
  instead, which sends them to the place the figures are actually published.
*/
.no-js .numbers,
.no-js .nav a[href='#numbers'] {
  display: none;
}

/*
  And the same for the instrument, for the same reason: fifty-two beads are
  written by a script rather than typed into the markup, so without one the
  plate is an empty brass box. The prose beside it still explains what a
  casekeeper is, which is the part that matters.
*/
.no-js .case {
  display: none;
}

/*
  The honesty line, and it is the same size as the type around it.

  An uncertified figure in large type over a disclaimer in small type is the
  oldest trick in this industry. If the number is big enough to print, the
  caveat is big enough to read.
*/
.disclaimer {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--accent-deep);
  background: var(--fill);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 68ch;
}

/* ============================================================
   14 · TWO HUNDRED YEARS
   ============================================================
   A rail rather than a list. It scrolls sideways on a phone and lays out as
   four columns on a desk, and the brass line under it is the table's edge.
   ============================================================ */
.years {
  overflow: hidden;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(228px, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  list-style: none;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-inline: var(--gutter);
  padding-bottom: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;

  /*
    The gutter has to be stated twice, and the second one is not a duplicate.

    A snap position aligns an item's start edge to the *snapport's* start
    edge, and the snapport is the scrollport inset by `scroll-padding`, which
    defaults to nothing. So the rail laid the first entry one gutter in, the
    browser snapped it flush to the edge on load, and 1690s arrived clipped
    against the side of the screen while the heading above it sat properly
    indented. Saying the gutter here too moves the snapport in with the
    padding, and the first entry lines up under the heading it belongs to.

    Only ever true on a phone: above 68rem the rail is `overflow: visible`,
    which is not a scroll container, and nothing here applies to it.
  */
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

@media (min-width: 68rem) {
  .rail {
    max-width: var(--container);
    margin-inline: auto;
    overflow: visible;
  }
}

.rail__item {
  position: relative;
  scroll-snap-align: start;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}

/* The bead on the rail: each entry is marked on the table's edge. */
.rail__item::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.rail__when {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}

.rail__what {
  margin-top: 0.4rem;
  /* Two lines of room whether a title needs them or not, so the four bodies
     start on the same line. One of these wraps and the rest do not, which is
     the sort of thing only a screenshot at full width ever shows you. */
  min-height: 2lh;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface);
}

.rail__body {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--on-surface-muted);
}

/* ============================================================
   15 · OPERATORS
   ============================================================ */
.operators__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 58rem) {
  .operators__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .operators__copy {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }
}

.operators__copy .t-section {
  margin-top: 0.6rem;
}

.operators__copy .t-lead {
  margin-top: 1.2rem;
}

.operators__copy .actions {
  margin-top: 2rem;
}

.specs {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

@media (min-width: 40rem) {
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spec {
  padding-top: 1.3rem;
  border-top: 1px solid var(--hairline);
}

.spec__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--on-surface);
}

.spec__body {
  margin-top: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--on-surface-muted);
}

/* ============================================================
   16 · SAFER PLAY
   ============================================================ */
.safer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.safer__inner .t-sub {
  font-family: var(--font-display);
  color: var(--accent-bright);
}

.safer__cols {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 1.4rem;
}

@media (min-width: 50rem) {
  .safer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.safer__cols .t-body {
  max-width: none;
}

/* ============================================================
   17 · FOOTER
   ============================================================ */
.footer {
  background: var(--ground);
  border-top: 1px solid var(--hairline);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer__inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 50rem) {
  .footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer__legal {
    grid-column: 1 / -1;
  }
}

.footer__brand {
  display: grid;
  justify-items: start;
  gap: 0.15rem;
}

.footer__mark {
  width: 34px;
  height: auto;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer__studio {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-surface);
}

.footer__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-surface-faint);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.6rem;
  justify-content: flex-start;
}

@media (min-width: 50rem) {
  .footer__links {
    justify-content: flex-end;
  }
}

.footer__links a {
  font-size: 0.86rem;
  color: var(--on-surface-muted);
  transition: color var(--dur-link) var(--ease-out-expo);
}

.footer__links a:hover {
  color: var(--on-surface);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8rem;
  color: var(--on-surface-faint);
}

.footer__age {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding-inline: 0.4rem;
  border-radius: 50%;
  border: 1px solid var(--hairline-bright);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.footer__year {
  margin-left: auto;
}

/* ============================================================
   18 · AGE GATE
   ============================================================ */
.gate {
  max-width: min(30rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-surface);
  overflow: visible;
}

.gate::backdrop {
  background: rgb(5 8 5 / 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gate.is-done {
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
}

.gate__panel {
  padding: clamp(1.8rem, 5vw, 2.6rem);
}

.gate__panel:focus {
  outline: none;
}

.gate__badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding-inline: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--hairline-bright);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.gate__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--on-surface);
}

.gate__copy {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-surface-muted);
}

.gate__copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate__actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.gate__actions .action {
  justify-content: center;
  padding-inline: 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.gate__fine {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--on-surface-faint);
}

.gate__fine a {
  color: var(--on-surface-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.is-gated {
  overflow: hidden;
}

/* ============================================================
   19 · PRELOADER
   ============================================================
   One per session, and it is the game's boot splash rather than a spinner.
   ============================================================ */
/*
  Two ways out of here that do not involve JavaScript, because a full-screen
  panel that only a script can dismiss is a website that can lock somebody out
  of itself. The age gate was built carefully to avoid exactly that and this
  reproduced it on the first pass: with scripting off, the splash covered the
  page for ever.

  So: it does not exist without a script, and it gives up on its own after six
  seconds even with one. The second rule only ever fires when the module
  failed to arrive, since `createLoader` removes the element inside a second.
*/
.no-js .loader {
  display: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-gate);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 38%, #1a261c 0%, #0a100b 62%, #050805 100%);
  transition: opacity 0.5s var(--ease-out-expo);
  animation: loader-give-up 0.4s var(--ease-out-expo) 6s forwards;
}

@keyframes loader-give-up {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loader__mark {
  width: clamp(180px, 54vw, 300px);
  height: auto;
  animation: loader-breathe 2.4s var(--ease-in-out-quart) infinite;
}

@keyframes loader-breathe {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.loader[hidden] {
  display: none;
}

/* ============================================================
   20 · LEGAL PAGES
   ============================================================
   The same furniture, none of the table. A prose column, a heading scale one
   step smaller than the home page, and links that look like links.
   ============================================================ */
.prose {
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)) clamp(4rem, 8vw, 6rem);
}

.prose__inner {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem);
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  letter-spacing: 0.04em;
}

.prose p,
.prose li {
  margin-top: 1rem;
  color: var(--on-surface-muted);
  max-width: var(--measure);
}

.prose ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
}

.prose li {
  margin-top: 0.5rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose__updated {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--on-surface-faint);
}

/* The marks are drawn once and referenced; the sprite itself is never seen. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   21 · REDUCED MOTION, AND BROWSERS WITHOUT A SCROLL TIMELINE
   ============================================================
   The same answer to two different questions, which is why it is one block.

   The pinned deal is the only thing on the page that cannot simply be turned
   off: a stuck stage with no animation is a section that holds the screen and
   does nothing. So it un-pins. The track collapses, the stage becomes an
   ordinary section, the two cards sit in their places, and the four beats
   read as four frames one after another.

   That is not a degraded version of the section. It is the same explanation,
   told in a column instead of over time.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.no-motion .reveal,
.no-js .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/*
  The un-pinned deal, for the two cases that cannot have it.

  Stated twice, because CSS has no way to say "or" across an @supports and a
  @media. The declarations are identical and they have to stay identical: a
  stuck stage with no animation inside it is a section that holds the screen
  and does nothing, which is worse than either a moving one or a still one.

  Nothing has to be moved to make this work. Each card is already mounted in
  the place it lands in, so with the animation gone the cards are simply lying
  where the turn left them, and the four beats become four paragraphs.
*/
@media (prefers-reduced-motion: reduce) {
  .turn__track {
    height: auto;
  }

  .turn__stage {
    position: static;
    height: auto;
    padding-block: clamp(4rem, 9vw, 6.5rem);
  }

  .beats {
    position: static;
    min-height: 0;
    display: grid;
    gap: clamp(1.6rem, 4vw, 2.4rem);
    text-align: left;
  }

  .beat {
    position: static;
    inset: auto;
    justify-items: start;
    opacity: 1;
    transform: none;
  }
}

@supports not (animation-timeline: view()) {
  .turn__track {
    height: auto;
  }

  .turn__stage {
    position: static;
    height: auto;
    padding-block: clamp(4rem, 9vw, 6.5rem);
  }

  .beats {
    position: static;
    min-height: 0;
    display: grid;
    gap: clamp(1.6rem, 4vw, 2.4rem);
    text-align: left;
  }

  .beat {
    position: static;
    inset: auto;
    justify-items: start;
    opacity: 1;
    transform: none;
  }
}

/* On a desk the four still beats read better as two columns than as a very
   long single one. Only ever true in the un-pinned arrangement. */
@media (prefers-reduced-motion: reduce) and (min-width: 50rem) {
  .beats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
  }
}

@supports not (animation-timeline: view()) {
  @media (min-width: 50rem) {
    .beats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: clamp(2rem, 5vw, 4rem);
    }
  }
}

/* The card in its place. It fills the slot it is mounted in, so "where it
   lands" is not a number anybody has to keep in step with the layout. */
.card--flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
