@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

/* A dark room and one lit table. Colors are the game's own constants:
   CasinoArt.GOLD, the classic_green felt, the walnut rail, card stock and ink. */
:root {
  --room: #050907;
  --felt: #094a2b;
  --felt-hi: #12663e;
  --rail: #4a2716;
  --rail-hi: #6e3d22;
  --gold: #f0ba42;
  --gold-deep: #a97a1d;
  --stock: #f7f5eb;
  --stock-edge: #b8ad94;
  --ink-red: #b80e12;
  --ink-black: #0e1013;
  --ink: #ece8dc;
  --muted: #a6afa5;
  --pts: #5fb8ff;
  --mlt: #ff6a5c;
  --bust: #ff4a3d;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --print: "Alfa Slab One", Rockwell, Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cw: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--room); }
body { margin: 0; background: var(--room); color: var(--ink); font: 17px/1.6 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, .btn { font-family: var(--display); font-weight: 400; text-wrap: balance; }

.btn {
  display: inline-block;
  padding: .65em 1.4em;
  border-radius: 12px;
  font-size: 1.15rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold {
  background: linear-gradient(#f6d37a, var(--gold));
  color: #2a1a05;
  box-shadow: 0 4px 0 var(--gold-deep), 0 12px 24px rgba(0,0,0,.45);
}
.btn-ghost { background: rgba(0,0,0,.35); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(236,232,220,.4); }

/* ------------------------------------------------------------ the ride */
.ride { position: relative; height: 100svh; }
.snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(240,186,66,.10), transparent 70%),
    var(--room);
  perspective: 1400px;
}

/* The room before you sit: cards drifting down in the dark. */
.rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* The cards fade out before the bottom rather than dropping off it. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 88%);
}
.rain .card { position: absolute; top: -20%; opacity: .5; animation: fall linear infinite; }
@keyframes fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--r0)); }
  to { transform: translate3d(var(--dx), 140svh, 0) rotate(var(--r1)); }
}

.title {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 0 16px;
  z-index: 5;
}
.title h1 {
  margin: 0;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: .9;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 .05em 0 var(--gold-deep), 0 .12em 0 #3a2706, 0 20px 60px rgba(0,0,0,.8);
}
.tagline {
  margin: .6em 0 0;
  font-family: var(--display);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.cue {
  margin: 3.5em 0 0;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cue::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 12px auto 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(6px) rotate(45deg); } }

/* The table: walnut rail, felt, printing. JS moves the camera onto it. */
.table {
  position: absolute;
  /* The band above the table is where the taglines are said. Tables stand a
     little taller than wide, like the game's own felt. */
  --tw: min(calc(100vw - 2 * max(3vmin, 12px)), calc((88svh - max(3vmin, 12px) - 14px) * .66));
  top: 12svh;
  bottom: calc(max(3vmin, 12px) + 14px);
  left: calc((100% - var(--tw)) / 2);
  width: var(--tw);
  border-radius: min(14vmin, 120px);
  background: linear-gradient(160deg, var(--rail-hi), var(--rail) 45%, #2c160b);
  padding: min(2.4vmin, 20px);
  box-shadow: 0 40px 120px rgba(0,0,0,.8), inset 0 2px 0 rgba(255,255,255,.12);
  transform-origin: 50% 40%;
  will-change: transform, opacity;
}
.felt {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: min(12vmin, 100px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--felt-hi), transparent 75%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.55), transparent 60%),
    var(--felt);
  box-shadow: inset 0 0 0 2px rgba(240,186,66,.28), inset 0 0 80px rgba(0,0,0,.5);
}
.print { position: absolute; left: 50%; width: min(80%, 520px); top: 29%; height: auto; transform: translateX(-50%); }
.print text { font-family: var(--print); font-size: 24px; letter-spacing: .06em; fill: rgba(240,230,200,.55); }
.print text.small { font-size: 11px; letter-spacing: .18em; fill: rgba(240,230,200,.42); }
.shoe { position: absolute; right: 7%; top: 6%; width: calc(var(--cw) * 1.25); height: calc(var(--cw) * 1.7); }
.shoe .card { position: absolute; left: 0; top: 0; }

.total {
  position: absolute;
  left: 50%;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  font-family: var(--display);
  font-size: clamp(1rem, 2.6vmin, 1.5rem);
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%) scale(var(--s, 0));
  opacity: var(--o, 0);
}
.total.hot { background: var(--gold); color: #2a1a05; }
.bust {
  position: absolute;
  left: 50%;
  top: 22%;
  font-family: var(--display);
  font-size: clamp(2.5rem, 11vmin, 7rem);
  color: var(--bust);
  text-transform: uppercase;
  -webkit-text-stroke: 3px #2a0503;
  paint-order: stroke;
  text-shadow: 0 6px 0 #5a0b06, 0 0 40px rgba(255,74,61,.6);
  transform: translate(-50%, -50%) rotate(-10deg) scale(var(--s, 0));
  opacity: var(--o, 0);
  z-index: 4;
}
.pill {
  position: absolute;
  left: 50%;
  top: 51%;
  display: grid;
  justify-items: center;
  padding: .2em .8em .35em;
  border-radius: 14px;
  background: #0b1210;
  box-shadow: inset 0 0 0 2px #2fd47a66, 0 10px 30px rgba(0,0,0,.5);
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%) scale(var(--s, 0));
  opacity: var(--o, 0);
  z-index: 3;
}
.pill-label { font-family: var(--display); font-size: clamp(.55rem, 1.4vmin, .8rem); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.pill-math { font-family: var(--display); font-size: clamp(1.6rem, 6vmin, 3.6rem); line-height: 1.05; display: flex; gap: .25em; align-items: baseline; }
.pill-math i { font-style: normal; color: var(--muted); font-size: .6em; }
.pts { color: var(--pts); }
.mlt { color: var(--mlt); }
.tot { color: #fff; min-width: 3ch; text-align: left; }
.pill.done { box-shadow: inset 0 0 0 3px var(--gold), 0 0 50px rgba(240,186,66,.45); }
.pill.done .pill-label { color: var(--gold); }
.pop-layer { position: absolute; inset: 0; pointer-events: none; }
.pop {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(1rem, 3vmin, 1.7rem);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  text-shadow: 0 2px 0 #000;
}

/* Everything that moves is placed by JS with a transform from the top left. */
.flying, .scene { position: absolute; inset: 0; pointer-events: none; }
.felt > .card, .felt > .chip, .felt > .flip, .flying > .card, .flying > .chip { position: absolute; left: 0; top: 0; will-change: transform; }

/* --------------------------------------------------------------- cards */
.card {
  --w: var(--cw);
  flex: none;
  width: var(--w);
  aspect-ratio: 96 / 134;
  border-radius: calc(var(--w) * .085);
  background: var(--stock);
  box-shadow: inset 0 0 0 1.5px var(--stock-edge), 0 6px 14px rgba(0,0,0,.5);
  color: var(--ink-black);
  font-family: var(--body);
  font-weight: 700;
}
.card.red { color: var(--ink-red); }
.card .corner { position: absolute; top: 5%; left: 8%; display: grid; justify-items: center; line-height: .95; font-size: calc(var(--w) * .22); }
.card .corner small { font-size: .8em; }
.card .corner.bottom { top: auto; left: auto; bottom: 5%; right: 8%; transform: rotate(180deg); }
.card .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .5); line-height: 1; }
.card.face .pip { font-family: var(--display); font-weight: 400; font-size: calc(var(--w) * .46); }
.card.back {
  background:
    radial-gradient(circle, var(--back-trim) 0 9%, var(--back-body) 9.5% 16%, var(--back-trim) 16.5% 19%, transparent 19.5%),
    repeating-linear-gradient(45deg, transparent 0 5px, color-mix(in srgb, var(--back-trim) 22%, transparent) 5px 6px),
    repeating-linear-gradient(-45deg, transparent 0 5px, color-mix(in srgb, var(--back-trim) 22%, transparent) 5px 6px),
    var(--back-body);
  box-shadow: inset 0 0 0 3px var(--back-body), inset 0 0 0 4.5px var(--back-trim), 0 6px 14px rgba(0,0,0,.5);
}
/* The hole card: two faces, turned by JS. */
.flip { width: var(--cw); aspect-ratio: 96 / 134; transform-style: preserve-3d; }
.flip .card { position: absolute; inset: 0; backface-visibility: hidden; }
.flip .card.back { transform: rotateY(180deg); }

/* --------------------------------------------------------------- chips */
.chip {
  --size: calc(var(--cw) * .9);
  --b: #126140; --b2: #1a7a52; --a: #f2c240; --t: #ebe3c7;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background:
    radial-gradient(circle, #090b0c 0 36%, var(--a) 36.5% 38.5%, var(--b2) 39% 60%, var(--t) 60.5% 62%, transparent 62.5%),
    radial-gradient(circle, transparent 0 84%, var(--a) 84.5% 90%, transparent 90.5%),
    repeating-conic-gradient(var(--t) 0 15deg, transparent 15deg 30deg),
    var(--b);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--b) 40%, black), 0 10px 18px rgba(0,0,0,.5);
  display: grid;
  place-items: center;
  font-family: var(--display);
  color: #f7f5e6;
  font-size: calc(var(--size) * .27);
  text-shadow: 0 1px 2px #000, 0 0 2px #000;
}
.chip.lit { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(240,186,66,.8), 0 10px 18px rgba(0,0,0,.5); }

/* ------------------------------------------------------------ taglines */
.tag {
  position: absolute;
  left: 0;
  right: 0;
  top: 6.2svh;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(2rem, min(8vw, 7.5svh), 4.6rem);
  line-height: 1;
  translate: 0 -50%;
  color: var(--ink);
  text-shadow: 0 4px 0 rgba(0,0,0,.6), 0 10px 40px rgba(0,0,0,.8);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}
.tag.gold { color: var(--gold); text-shadow: 0 4px 0 var(--gold-deep), 0 10px 40px rgba(0,0,0,.8); }
.tag.red { color: var(--bust); text-shadow: 0 4px 0 #5a0b06, 0 10px 40px rgba(0,0,0,.8); }

.finale {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 0 16px 9svh;
  text-align: center;
  opacity: 0;
  z-index: 7;
  pointer-events: none;
}
.finale.on { pointer-events: auto; }
.finale-copy { grid-row: 2; }
.finale-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: .95;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 .05em 0 var(--gold-deep), 0 .12em 0 #3a2706, 0 10px 40px rgba(0,0,0,.8);
}
.finale-copy .tagline { margin: .5em 0 22px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; }

.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); z-index: 20; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* -------------------------------------------------------- after scenes */
/* Each is a tall section with a pinned stage, scrubbed like the ride. */
.scene { position: relative; height: 100svh; }
.scene .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 7svh;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-size: clamp(2rem, min(7vw, 8svh), 4.4rem);
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 4px 0 rgba(0,0,0,.6);
  z-index: 3;
}

/* 2. Dealers */
.dealer-row { position: absolute; inset: 18svh 16px calc(52px + 2svh); }
.dealer-row .dealer { position: absolute; }
.dealer {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  /* Everything inside is sized from the card's own width (--dw), so the card
     keeps its shape at any size and nothing spills. */
  --dw: 240px;
  gap: calc(var(--dw) * .035);
  padding: calc(var(--dw) * .08) calc(var(--dw) * .07) calc(var(--dw) * .06);
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 70%),
    linear-gradient(170deg, #1c1714, #0d0b0a);
  box-shadow: inset 0 0 0 2px #3a2c22, inset 0 0 0 7px #120e0c, inset 0 0 0 8px rgba(240,186,66,.35), 0 30px 60px rgba(0,0,0,.7);
  text-align: center;
  opacity: 0;
  will-change: transform, opacity;
}
.dealer .rank { font-family: var(--display); font-size: max(9px, calc(var(--dw) * .055)); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.dealer .numeral { font-family: var(--print); font-size: calc(var(--dw) * .27); line-height: 1; color: var(--gold); }
.dealer .pips { display: flex; gap: 6px; }
.dealer .pips i { width: calc(var(--dw) * .045); height: calc(var(--dw) * .045); border-radius: 50%; background: #3a403c; }
.dealer .pips i.on { background: var(--mlt); box-shadow: 0 0 10px var(--mlt); }
.dealer .desc { margin: calc(var(--dw) * .04) 0 0; padding: 0 calc(var(--dw) * .05); font-size: max(11px, calc(var(--dw) * .058)); line-height: 1.28; color: #c9cfc7; }
.stamp {
  position: relative;
  margin: calc(var(--dw, 240px) * .012) 0;
  padding: .15em .45em;
  border: 3px solid var(--bust);
  border-radius: 8px;
  font-family: var(--display);
  font-size: calc(var(--dw, 240px) * .1);
  line-height: 1.05;
  color: var(--bust);
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(30,4,3,.55);
  box-shadow: 0 0 24px rgba(255,74,61,.35);
  transform: rotate(-8deg) scale(var(--s, 0));
  opacity: var(--o, 0);
}
@media (max-width: 560px) {
  .stamp { white-space: normal; text-align: center; }
}

/* 3. Chip wall */
.wall { position: absolute; inset: 0; }
.wall .chip { position: absolute; left: 0; top: 0; will-change: transform; }
.chipwall .scene-head.lit { color: var(--gold); text-shadow: 0 4px 0 var(--gold-deep), 0 0 40px rgba(240,186,66,.5); }

/* ---------------------------------------------------------------- demo */
/* The game draws its own rail, so the window adds none around it. */
.demo {
  width: auto;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.demo::backdrop { background: rgba(2,4,3,.86); backdrop-filter: blur(6px); }
.demo[open] { display: grid; gap: 8px; justify-items: center; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; font-size: .85rem; color: var(--muted); }
.demo-actions { display: flex; gap: 8px; }
.demo-btn {
  font: inherit;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.demo-btn:hover { background: rgba(255,255,255,.16); }
.demo-frame {
  height: min(860px, calc(100svh - 96px));
  aspect-ratio: 9 / 19.5;
  max-width: calc(100vw - 24px);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-frame:fullscreen { height: 100%; width: 100%; border-radius: 0; }
.demo-note { margin: 0; font-size: .8rem; color: var(--muted); }


@media (max-width: 520px) {
  .demo-bar > span:first-child { display: none; }
  .demo-bar { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .rain { display: none; }
  .cue::after { animation: none; }
  .btn { transition: none; }
}

/* Over the blizzard the line needs a ground of its own. */
.tag.over {
  top: 50%;
  font-size: clamp(2.4rem, min(10vw, 11svh), 6.5rem);
  text-shadow: 0 4px 0 #000, 0 0 30px #000, 0 0 60px #000, 0 0 90px rgba(0,0,0,.9);
}

/* ------------------------------------------------------- passing Tables */
.minis { position: absolute; inset: 0; pointer-events: none; }
.felt-name {
  position: absolute;
  left: 0;
  right: 0;
  top: 9%;
  margin: 0;
  text-align: center;
  font-family: var(--print);
  padding: 0 6%;
  font-size: min(calc(var(--tw) * .14), 7rem);
  line-height: .95;
  letter-spacing: .04em;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.minis .print { top: 47%; }
.minis .decks { position: absolute; left: 50%; top: 70%; display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--cw) * .3); width: calc(var(--cw) * 6); transform: translateX(-50%); }
.minis .decks .card { position: relative; }

/* ---------------------------------------------------------- Chip heroes */
.heroes { position: absolute; inset: 0; pointer-events: none; }
.hero-copy {
  position: absolute;
  display: grid;
  gap: 8px;
  max-width: 24em;
  padding: 14px 18px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 40% 50%, rgba(5,9,7,.85), rgba(5,9,7,.55) 70%, transparent);
  text-shadow: 0 2px 10px #000;
  opacity: 0;
}
.hero-copy .kind { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-copy h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, min(6vw, 7svh), 4rem); line-height: 1; color: var(--gold); text-shadow: 0 3px 0 var(--gold-deep); }
.hero-copy p { margin: 0; font-size: clamp(1.05rem, 2.4vmin, 1.4rem); line-height: 1.35; }
.wall .chip.hero { z-index: 2; }

/* ---------------------------------------------------------------- outro */
.outro .finale { padding-bottom: 6svh; }
.finale .notify { margin: 20px auto 0; }
.is-off { opacity: .45; cursor: default; }
.is-off:hover { transform: none; }

/* ----------------------------------------------------------------- foot */
.site-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .95rem;
}
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { border-radius: 14px; }
.foot-brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.foot-cols > div { display: grid; gap: 6px; align-content: start; }
.foot-cols h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.foot-cols a, .foot-cols .linkish { color: var(--muted); text-decoration: none; }
.foot-cols a:hover, .foot-cols .linkish:hover { color: var(--gold); }
.linkish { all: unset; cursor: pointer; }
.linkish:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.foot-legal { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
@media (max-width: 760px) {
  .site-foot { grid-template-columns: minmax(0, 1fr); }
}

/* The sign-up: the label in the display face, the field as tall as its button. */
.notify label { font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; color: var(--ink); }
.notify-row { align-items: stretch; }
.notify-row input, .notify-row .btn { height: 50px; box-sizing: border-box; }
.notify-row .btn { padding-block: 0; display: inline-grid; place-items: center; }
.notify { display: grid; gap: 10px; justify-items: center; width: min(100%, 440px); }
.notify-row { display: flex; gap: 8px; width: 100%; }
.notify-row input {
  flex: 1;
  min-width: 0;
  padding: 0 .9em;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 2px rgba(236,232,220,.25);
  color: var(--ink);
  font: inherit;
}
.notify-row input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.notify-msg { margin: 0; min-height: 1.4em; font-size: .9rem; color: var(--muted); }

/* The last Dealer of the Night: darker cloth, an ember under the trim, a
   heavier stamp, and a slow breath of red. */
.dealer.boss {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,74,61,.14), transparent 70%),
    linear-gradient(170deg, #1d0f0d, #090605);
  box-shadow: inset 0 0 0 2px #4a1d16, inset 0 0 0 7px #120807, inset 0 0 0 8px rgba(255,74,61,.45),
    0 0 40px rgba(255,74,61,.18), 0 34px 70px rgba(0,0,0,.8);
}
.dealer.boss .numeral { color: #ff8a5c; text-shadow: 0 0 18px rgba(255,74,61,.45); }
.dealer.boss .stamp { border-width: 4px; font-size: calc(var(--dw) * .105); }
@keyframes ember { 50% { box-shadow: inset 0 0 0 2px #4a1d16, inset 0 0 0 7px #120807, inset 0 0 0 8px rgba(255,74,61,.7), 0 0 60px rgba(255,74,61,.32), 0 34px 70px rgba(0,0,0,.8); } }
.dealer.boss { animation: ember 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .dealer.boss { animation: none; } }

/* The rack the three heroes gather into. */
.rack-line {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.6rem, min(5vw, 6svh), 3.2rem);
  color: var(--gold);
  text-shadow: 0 3px 0 var(--gold-deep), 0 10px 30px rgba(0,0,0,.8);
  opacity: 0;
}

/* The progress bar breathes while it waits at a pause point. */
.progress { transition: opacity .3s ease; }
.progress.rest i { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; box-shadow: 0 0 10px rgba(240,186,66,.6); } }
@media (prefers-reduced-motion: reduce) { .progress.rest i { animation: none; } }

/* While the stepper has the page the browser must not pan or bounce it. */
html.stepping { touch-action: pinch-zoom; overscroll-behavior: none; }

/* The cue at each pause point: what the next scroll does. */
.next-cue {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 16px 8px;
  border-radius: 999px;
  background: rgba(5, 9, 7, .72);
  font-family: var(--display);
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--ink);
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  z-index: 21;
}
.next-cue::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: nudge 1.6s ease-in-out infinite;
}
.next-cue.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .next-cue::after { animation: none; } }

/* Skip the show: a quiet way straight to the end, while the stepper runs. */
.skip {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 22;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font: 600 .8rem/1.2 var(--body);
  letter-spacing: .04em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, background .2s ease, color .2s ease;
}
.skip.on { opacity: 1; pointer-events: auto; }
.skip:hover { background: rgba(255,255,255,.16); color: var(--ink); }
.skip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip.start { right: auto; left: 12px; }
