/* Vig Poker — the walk-on. A scroll-played film dressed in the game's Final Table design system:
   the page is the broadcast of one beast's walk to the final table. Night ultramarine plates cut on
   one slant, gold for the next step, signal red only for "Live", condensed heavy italic for names. */

@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: italic; font-weight: 1 1000; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: italic; font-weight: 1 1000; font-display: swap;
  src: url("fonts/sofia-sans-extra-condensed-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url("fonts/sofia-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url("fonts/sofia-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-latin-standard-normal.woff2") format("woff2"); }

:root {
  --night: #0A1036;
  --plate: #16236E;
  --plate-hi: #1D2C85;
  --lit: #2A3CB0;
  --ice: #EEF2FF;
  --steel: #8E9BCB;
  --signal: #E8432B;
  --gold: #F2C14E;
  --gold-hi: #F7D272;
  --amb: 120, 80, 90;                 /* the feed's own colour, read off the frame each moment */
  --cond: "Sofia Sans Extra Condensed", "Arial Narrow", "Avenir Next Condensed", system-ui, sans-serif;
  --ui: "Sofia Sans", "Avenir Next", Avenir, system-ui, -apple-system, sans-serif;
  --word: Fraunces, Georgia, serif;
  --cut: 12px;
  --cut-l: 18px;
  --tick-h: 36px;
  --edge: clamp(20px, 5.5vw, 96px);
  --shadow: drop-shadow(0 8px 14px rgba(4, 7, 28, 0.55));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ice);
  font-family: var(--ui); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--night); }

/* ───────────────────────────── The stage ───────────────────────────── */
.walk { position: relative; height: 1250vh; }             /* main.js sets the real height */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }

/* The far plane: the same frame, enormous, out of focus and sunk into the night. */
.amb {
  position: absolute; inset: -8%; width: 116%; height: 116%; z-index: 0;
  filter: blur(30px) saturate(1.35) brightness(0.78);
  image-rendering: auto;
}
.stage::before {                                         /* night over the ambient, deepest at the edges */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at var(--feed-cx, 62%) 50%, rgba(10, 16, 54, 0.05), rgba(10, 16, 54, 0.62) 72%),
    linear-gradient(180deg, rgba(10, 16, 54, 0.35), rgba(10, 16, 54, 0) 30%, rgba(10, 16, 54, 0.5));
}

/* The feed: the film itself, a tall plate cut on the game's slant, riding across the stage. */
.feed {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: var(--feed-w, 56vh); height: 100%;
  transform: translate3d(var(--feed-x, 0px), 0, 0);
  clip-path: polygon(var(--feed-cut, 6vh) 0, 100% 0, calc(100% - var(--feed-cut, 6vh)) 100%, 0 100%);
  filter: drop-shadow(0 0 60px rgba(var(--amb), 0.35));
  will-change: transform, clip-path;
}
.feed__poster, .feed__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.feed__poster { object-fit: cover; }
.feed__cv { opacity: 0; }
.is-ready .feed__cv { opacity: 1; }

.scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }

/* ───────────────────────────── The bug ───────────────────────────── */
.bug {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) var(--edge) 0;
  pointer-events: none; transition: opacity 0.4s ease;
}
.bug > * { pointer-events: auto; }
.bug__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ice); text-decoration: none; }
.bug__brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.bug__mark { width: 46px; height: auto; fill: var(--ice); filter: var(--shadow); }
.bug__name { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 27px; line-height: 1; letter-spacing: 0.01em; }
.bug__cam {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 22px; filter: var(--shadow);
}
.bug__cam::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.bug__camname { font-family: var(--cond); font-weight: 800; font-size: 19px; line-height: 1; }
.bug__tc { font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.is-end .bug { opacity: 0; }
.is-end .bug > * { pointer-events: none; }

/* ───────────────────────────── Chapters ───────────────────────────── */
.ch {
  position: absolute; z-index: 5; top: 50%; left: var(--edge);
  width: min(40vw, 580px);
  transform: translateY(-50%);
  visibility: hidden;
}
.ch.is-on { visibility: visible; }
.ch--rooms { left: auto; right: var(--edge); }
.ch--hero { top: auto; bottom: calc(var(--tick-h) + 7vh); transform: none; }

/* Each part of a chapter is laid down in turn as the scroll reaches it: wiped in along the slant. */
[data-r] {
  --r: 0;
  opacity: calc(var(--r) * 1.4);
  transform: translate3d(calc((1 - var(--r)) * -26px), 0, 0);
  clip-path: polygon(0 -20%, calc(var(--r) * 115%) -20%, calc(var(--r) * 115% - 14%) 120%, 0 120%);
}
.ch--rooms [data-r] { transform: translate3d(calc((1 - var(--r)) * 26px), 0, 0); }
.ch [data-r] + [data-r] { margin-top: 0; }

.display {
  margin: 0; font-family: var(--cond); font-style: italic; font-weight: 900;
  font-size: clamp(58px, 8vw, 150px); line-height: 0.86; letter-spacing: -0.004em;
  text-wrap: balance; color: var(--ice);
  text-shadow: 0 2px 30px rgba(4, 7, 28, 0.55);
  padding-right: 0.08em;
}
.display--m { font-size: clamp(46px, 5.4vw, 98px); line-height: 0.88; }
.lede, .body {
  margin: 30px 0 0; max-width: 33em; color: rgba(238, 242, 255, 0.86);
  font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; text-wrap: pretty;
}
.body--s { font-size: clamp(15px, 1.05vw, 17px); color: var(--steel); margin-top: 20px; }

/* The lower third: seat, name, line. */
.strap { display: inline-flex; align-items: stretch; margin: 0 0 26px; filter: var(--shadow); }
.strap > span { display: inline-flex; align-items: center; height: 46px; }
.strap__seat {
  padding: 0 22px 0 18px; background: var(--gold); color: var(--night);
  font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 22px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  position: relative; z-index: 2;
}
.strap__name {
  margin-left: -10px; padding: 0 26px 0 24px; background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 30px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  position: relative; z-index: 1;
}
.strap__line {
  margin-left: -10px; padding: 0 22px 0 22px; background: var(--night); color: var(--steel);
  font-weight: 600; font-size: 15px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}

.cue { display: flex; align-items: center; gap: 12px; margin: 34px 0 0; font-family: var(--cond); font-weight: 800; font-size: 19px; color: var(--steel); }
.cue__bar { position: relative; width: 64px; height: 4px; background: rgba(142, 155, 203, 0.3); overflow: hidden; transform: skewX(-20deg); }
.cue__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--cue, 0)); }

/* Plates: modes, rungs, log lines. Square, cut on one slant, floating on their shadow. */
.modes, .ladder, .log { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.mode, .rung, .log li { position: relative; isolation: isolate; filter: var(--shadow); }
.mode::before, .rung::before, .log li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: background 0.25s ease;
}
.mode { display: grid; grid-template-columns: 9.5em 1fr; align-items: baseline; gap: 16px; padding: 15px 28px 15px 26px; }
.mode b { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; }
.mode span { font-size: 15.5px; line-height: 1.4; color: rgba(238, 242, 255, 0.82); }

.ladder { gap: 6px; }
.rung { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: center; gap: 14px; height: 50px; padding: 0 28px 0 24px; }
.rung i { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 24px; color: var(--steel); }
.rung b { font-family: var(--cond); font-weight: 800; font-size: 26px; line-height: 1; }
.rung span { font-weight: 600; font-size: 15px; color: var(--steel); font-variant-numeric: tabular-nums; }
.rung.is-past::before { background: linear-gradient(180deg, #24348F, #1B2A7C); }
.rung.is-lit::before { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.rung.is-lit, .rung.is-lit i, .rung.is-lit span { color: var(--night); }
.rung.is-lit { transform: translateX(-10px); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rung { transition: transform 0.25s ease; }
.note { margin: 12px 0 0; font-size: 14px; color: var(--steel); text-align: right; padding-right: 28px; }

/* The hole-card graphic. */
.holecam { display: inline-flex; align-items: center; gap: 22px; margin-top: 30px; padding: 16px 34px 16px 22px; position: relative; isolation: isolate; filter: var(--shadow); }
.holecam::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--night);
  clip-path: polygon(var(--cut-l) 0, 100% 0, calc(100% - var(--cut-l)) 100%, 0 100%);
}
.holecam__cards { display: flex; gap: 8px; perspective: 600px; }
.card {
  position: relative; width: 58px; height: 82px; transform-style: preserve-3d;
  transform: rotateY(calc((1 - var(--flip, 0)) * 180deg));
}
.card__face, .card::after {
  position: absolute; inset: 0; border-radius: 4px; backface-visibility: hidden;
}
.card__face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ice); color: var(--night);
  font-family: var(--cond); font-weight: 900; font-size: 38px; line-height: 0.9;
}
.card__face em { font-style: normal; font-family: var(--ui); font-size: 26px; line-height: 1; }
.card--red .card__face { color: #C0263A; }
.card::after {
  content: ""; transform: rotateY(180deg);
  background:
    url("brand/vig-mark-gold.svg") center / 70% auto no-repeat,
    linear-gradient(180deg, var(--lit), var(--plate));
  box-shadow: inset 0 0 0 3px var(--plate-hi);
}
.holecam__who { display: grid; gap: 8px; }
.holecam__who b { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 30px; line-height: 1; }
.holecam__odds { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--steel); font-variant-numeric: tabular-nums; }
.holecam__odds [data-odds] { color: var(--gold); font-size: 20px; font-family: var(--cond); font-weight: 900; font-style: italic; margin-right: -6px; }
.holecam__bar { width: 120px; height: 8px; background: rgba(142, 155, 203, 0.22); transform: skewX(-20deg); overflow: hidden; }
.holecam__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--odds, 0)); }

/* The studio's log. A real sequence, so it is dated. */
.log { gap: 6px; }
.log li { display: grid; grid-template-columns: 5.6em 1fr; align-items: baseline; gap: 14px; padding: 14px 28px 14px 24px; }
.log time { font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 24px; color: var(--gold); line-height: 1; }
.log span { font-size: 15.5px; line-height: 1.4; color: rgba(238, 242, 255, 0.86); }
.log .log__next::before { background: var(--night); }
.log .log__next time { color: var(--ice); }

/* ───────────────────────────── The tracker ───────────────────────────── */
.tracker {
  position: absolute; z-index: 4; top: 0; left: 0;
  display: inline-flex; align-items: stretch; filter: var(--shadow);
  transform: translate3d(var(--tx, -999px), var(--ty, 0px), 0);
  opacity: var(--to, 0); pointer-events: none; will-change: transform, opacity;
}
.tracker > span { display: inline-flex; align-items: center; height: 30px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.tracker__name { padding: 0 16px 0 14px; background: linear-gradient(180deg, var(--plate-hi), var(--plate)); font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 19px; position: relative; z-index: 1; }
.tracker__state { margin-left: -7px; padding: 0 14px; background: var(--gold); color: var(--night); font-family: var(--cond); font-weight: 800; font-size: 16px; }
.tracker.is-left { flex-direction: row-reverse; }
.tracker.is-left .tracker__state { margin-left: 0; margin-right: -7px; }

/* ───────────────────────────── The finale ───────────────────────────── */
.finale { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; overflow: visible; visibility: hidden; }
.finale.is-on { visibility: visible; }
.finale__night { fill: var(--night); opacity: var(--night-o, 0); }
.finale__mark { fill: var(--ice); opacity: var(--mark-o, 0); }
.finale__socket { fill: var(--night); }
[data-eyeimg] { opacity: var(--eye-o, 1); }

.end {
  position: absolute; z-index: 8; left: 50%; top: var(--end-top, 62%);
  width: min(92vw, 760px); transform: translateX(-50%);
  text-align: center; visibility: hidden;
}
.end.is-on { visibility: visible; }
.end [data-r] { transform: translate3d(0, calc((1 - var(--r)) * 18px), 0); clip-path: none; }
.end__word {
  margin: 0; font-family: var(--word); font-weight: 900; font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); padding-left: 0.22em;
}
.end__line { margin: 18px 0 0; font-family: var(--cond); font-style: italic; font-weight: 800; font-size: clamp(22px, 2vw, 30px); color: var(--ice); }
.end__keys { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.end__foot { margin: 34px 0 0; font-size: 14px; color: var(--steel); }

/* ───────────────────────────── Keys ───────────────────────────── */
/* As in the game: a plate drawn on the key's ::before, the key keeping its whole hit area. Under the
   finger the lit plate wipes out from where it landed and the key nudges along its slant. */
.key {
  --face: var(--plate); --face-hi: var(--plate-hi); --wipe: var(--lit); --ink: var(--ice);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 34px; border: 0; background: none; cursor: pointer;
  color: var(--ink); font: italic 900 24px/1 var(--cond); letter-spacing: 0.01em;
  filter: var(--shadow); -webkit-tap-highlight-color: transparent;
  transition: transform 0.09s ease-out;
}
.key::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: polygon(var(--cut-l) 0, 100% 0, calc(100% - var(--cut-l)) 100%, 0 100%);
  background:
    linear-gradient(var(--wipe), var(--wipe)) var(--px, 50%) 50% / 0% 100% no-repeat,
    linear-gradient(180deg, var(--face-hi), var(--face));
  transition: background-size 0.16s ease-out;
}
.key--gold { --face: var(--gold); --face-hi: var(--gold-hi); --wipe: #FFE08F; --ink: var(--night); }
@media (hover: hover) { .key:hover::before { background-size: 100% 100%, auto; } }
.key.is-down { transform: translateX(3px); }
.key.is-down::before { background-size: 100% 100%, auto; transition-duration: 0.12s; transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
.key:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.key--gold:focus-visible { outline-color: var(--ice); }

/* ───────────────────────────── The stops ───────────────────────────── */
/* The page rests only where a chapter is whole (main.js steers the scroll from stop to stop). */
html, body { overscroll-behavior: none; }

/* The rail: a tick per stop, cut on the ticker's slant; gold where the page stands. */
.rail {
  position: fixed; z-index: 19; top: 50%; right: max(12px, env(safe-area-inset-right));
  display: flex; flex-direction: column; gap: 2px; transform: translateY(-50%);
}
.rail__stop { position: relative; display: block; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.rail__stop::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 14px; margin: -7px 0 0 -2px;
  background: rgba(238, 242, 255, 0.32); transform: skewX(-16deg);
  transition: height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease;
}
.rail__stop.is-past::before { background: rgba(238, 242, 255, 0.72); }
.rail__stop.is-now::before { height: 22px; margin-top: -11px; background: var(--gold); box-shadow: 0 0 12px rgba(242, 193, 78, 0.45); }
.rail__stop:hover::before { background: var(--gold-hi); }
.rail__stop:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
/* Upright, the rail lies down under the camera plate, clear of the tag that rides his head. */
.is-cover .rail { flex-direction: row; gap: 0; top: calc(max(18px, env(safe-area-inset-top)) + 38px); right: 12px; transform: none; }
.is-cover .rail__stop { width: 15px; height: 22px; }
@media (max-height: 520px) { .rail__stop { height: 19px; } }

/* ───────────────────────────── The ticker ───────────────────────────── */
.ticker {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; box-sizing: content-box;
  height: var(--tick-h); padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; align-items: stretch; overflow: hidden; pointer-events: none;
  background: var(--night); color: var(--ice); box-shadow: 0 -6px 18px rgba(4, 7, 28, 0.4);
}
.ticker__live {
  flex: none; display: flex; align-items: center; gap: 9px; position: relative; z-index: 1;
  padding: 0 26px 0 max(var(--edge), env(safe-area-inset-left, 0px));
  background: var(--signal); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  font-family: var(--cond); font-style: italic; font-weight: 900; font-size: 19px; letter-spacing: 0.02em;
}
.ticker__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.ticker__lane { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px); mask-image: linear-gradient(90deg, transparent 0, #000 22px); }
.ticker__crawl { display: flex; flex: none; white-space: nowrap; animation: crawl 46s linear infinite; will-change: transform; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding-left: 24px; font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ticker__item::after { content: ""; width: 6px; height: 16px; margin-left: 24px; background: var(--gold); transform: skewX(-16deg); }
@keyframes crawl { to { transform: translateX(-50%); } }

.nojs { position: fixed; inset: auto 0 60px; text-align: center; color: var(--steel); }

/* ─────────────── An upright window: the film fills it, the words stand at its foot ─────────────── */
.is-cover .feed { clip-path: none; filter: none; }
.is-cover .stage::before { background: none; }
.is-cover .scrim {
  opacity: 1;
  background: linear-gradient(180deg, rgba(10, 16, 54, 0.55) 0, rgba(10, 16, 54, 0) 18%, rgba(10, 16, 54, 0) 34%, rgba(10, 16, 54, 0.82) 62%, rgba(10, 16, 54, 0.96));
}
.is-cover .ch, .is-cover .ch--rooms, .is-cover .ch--hero {
  left: 20px; right: 20px; width: auto; top: auto; transform: none;
  bottom: calc(var(--tick-h) + env(safe-area-inset-bottom, 0px) + 22px);
}
.is-cover .display { font-size: clamp(46px, 13vw, 78px); }
.is-cover .display--m { font-size: clamp(38px, 10.5vw, 62px); }
.is-cover .lede, .is-cover .body { font-size: 16px; margin-top: 14px; }
.is-cover .body--s { font-size: 14.5px; margin-top: 12px; }
.is-cover .strap { margin-bottom: 18px; }
.is-cover .strap > span { height: 38px; }
.is-cover .strap__name { font-size: 25px; }
.is-cover .strap__line { display: none; }
.is-cover .modes, .is-cover .ladder, .is-cover .log { margin-top: 16px; gap: 5px; }
.is-cover .mode { grid-template-columns: 1fr; gap: 4px; padding: 10px 22px 11px 20px; }
.is-cover .mode b { font-size: 24px; }
.is-cover .mode span { font-size: 14px; }
.is-cover .rung { height: 38px; padding: 0 22px 0 18px; gap: 10px; }
.is-cover .rung b { font-size: 21px; }
.is-cover .rung i { font-size: 19px; }
.is-cover .rung span { font-size: 13px; }
.is-cover .rung.is-lit { transform: translateX(6px); }
.is-cover .note { display: none; }
.is-cover .holecam { margin-top: 16px; padding: 12px 26px 12px 18px; gap: 16px; }
.is-cover .card { width: 46px; height: 65px; }
.is-cover .card__face { font-size: 30px; }
.is-cover .card__face em { font-size: 20px; }
.is-cover .holecam__who b { font-size: 24px; }
.is-cover .log li { grid-template-columns: 4.6em 1fr; padding: 10px 22px 10px 18px; gap: 10px; }
.is-cover .log time { font-size: 20px; }
.is-cover .log span { font-size: 14px; }
.is-cover .cue { margin-top: 20px; }
.is-cover .bug__name { font-size: 23px; }
.is-cover .bug__mark { width: 38px; }
.is-cover .bug__cam { height: 30px; padding: 0 16px; }
.is-cover .bug__camname { font-size: 16px; }
.is-cover .bug__tc { font-size: 12.5px; }
@media (max-width: 420px) { .is-cover .bug__camname { display: none; } }
.is-cover .key { font-size: 21px; min-height: 52px; padding: 0 28px; }
.is-cover .end { --end-top: 56%; }

/* A short window held sideways (a phone in landscape): smaller words, the feed stays a plate. */
@media (max-height: 520px) {
  :root { --tick-h: 28px; --edge: 28px; }
  .display { font-size: clamp(40px, 7vw, 64px); }
  .display--m { font-size: clamp(32px, 5vw, 50px); }
  .lede, .body { font-size: 14.5px; margin-top: 10px; }
  .body--s { display: none; }
  .strap { margin-bottom: 12px; } .strap > span { height: 34px; } .strap__name { font-size: 22px; } .strap__seat { font-size: 18px; }
  .modes, .ladder, .log { margin-top: 12px; gap: 4px; }
  .mode { padding: 7px 20px; } .mode b { font-size: 20px; } .mode span { font-size: 13px; }
  .rung { height: 30px; } .rung b { font-size: 19px; } .rung i { font-size: 17px; } .rung span { font-size: 12.5px; }
  .note, .cue { display: none; }
  .holecam { margin-top: 12px; padding: 8px 22px 8px 14px; } .card { width: 38px; height: 54px; } .card__face { font-size: 24px; } .card__face em { font-size: 16px; }
  .log li { padding: 7px 20px; } .log time { font-size: 18px; } .log span { font-size: 13px; }
  .bug { padding-top: 10px; } .bug__mark { width: 34px; } .bug__name { font-size: 21px; } .bug__cam { height: 28px; }
  .ticker__live { font-size: 16px; } .ticker__item { font-size: 13px; }
  .end__keys { margin-top: 16px; } .end__foot { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__crawl { animation: none; }
  [data-r] { transform: none !important; clip-path: none; }
  .key, .key::before, .rung, .rail__stop::before { transition: none; }
}

[data-r].is-in { clip-path: none; }
.holecam__odds { white-space: nowrap; }
.is-cover .holecam__bar { width: 84px; }

/* A phone held sideways: the lists carry the chapter, their lead paragraphs step aside. */
@media (max-height: 520px) {
  .ch { width: min(48vw, 470px); }
  .ch--game .body, .ch--rooms .body, .ch--studio .body { display: none; }
  .mode { grid-template-columns: 6.6em 1fr; gap: 10px; }
  .log li { grid-template-columns: 4.4em 1fr; }
  .end__word { font-size: 26px; }
  .end__line { margin-top: 8px; font-size: 19px; }
  .end__foot { display: none; }
  .key { min-height: 44px; font-size: 19px; padding: 0 24px; }
}
