/* =========================================================
   The Heights Games: "night game broadcast"
   Colors come from the garage itself:
   Hoop Fever red = the Kids, air hockey blue = the Parents,
   scoreboard amber = the lights.
   ========================================================= */
:root {
  --ink: #07080d;
  --ink-2: #0d0f17;
  --panel: #12141d;
  --line: rgba(255, 255, 255, .12);
  --white: #f6f3ec;
  --dim: #a7abb8;
  --red: #ef2b34;
  --blue: #3b86ff;
  --amber: #ffb21a;
  --amber-glow: rgba(255, 178, 26, .55);
  --gold: #f4c64e;
  --tape: #ffe14d;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --led: "Doto", ui-monospace, monospace;
  --body: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --hud-h: 58px;
}

* { box-sizing: border-box; }
/* "clip" (not "hidden") trims anything that pokes out sideways without breaking the pinned (sticky) titles */
html { background: var(--ink); overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font: 400 1.05rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* LED dot texture over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px);
  background-size: 4px 4px; mix-blend-mode: overlay;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }

.led {
  font-family: var(--led); font-weight: 900; color: var(--amber);
  text-shadow: 0 0 6px var(--amber-glow), 0 0 22px rgba(255,140,0,.25);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

/* ---------- Stand-in labels (the prototype's "shoot this" notes) ---------- */
.standin {
  position: absolute; left: 12px; bottom: 14px; z-index: 30;
  font: 600 .68rem/1.25 var(--cond); letter-spacing: .08em; text-transform: uppercase;
  color: #1b1600; background: var(--tape); padding: 5px 9px 5px 24px; border-radius: 2px;
  max-width: min(78vw, 360px); transform: rotate(-1deg);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.6);
}
.standin::before { content: "📷"; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: .75rem; }
.standin.inline { position: relative; left: auto; bottom: auto; display: inline-block; margin: 14px 0 0; }

/* =========================================================
   HUD
   ========================================================= */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--hud-h);
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(7,8,13,.92), rgba(7,8,13,.72));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .6s var(--ease);
}
.hud.on { transform: none; }
.brand {
  text-decoration: none; display: flex; align-items: baseline; gap: 5px;
  font: 900 1.3rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
}
.brand small { font: 600 .62rem/1 var(--cond); letter-spacing: .2em; color: var(--dim); }
.brand em { font-style: normal; color: var(--red); }

.rounds { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 7px; }
.rounds li {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.14);
  transition: color .5s, border-color .5s, box-shadow .5s, background .5s;
}
.rounds svg { width: 18px; height: 18px; }
.rounds li.lit {
  color: var(--amber); border-color: rgba(255,178,26,.7); background: rgba(255,178,26,.1);
  box-shadow: 0 0 14px rgba(255,178,26,.45), inset 0 0 8px rgba(255,178,26,.25);
}
.rounds li.pop { animation: roundPop .8s var(--ease); }
@keyframes roundPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.board {
  display: flex; gap: 2px; background: #000; border: 1px solid #262833; border-radius: 6px; padding: 3px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.9);
}
.team { display: flex; align-items: center; gap: 8px; padding: 2px 10px 2px 8px; border-radius: 4px; background: #0b0c12; }
.team .tn { font: 700 .62rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; }
.t-kids .tn { color: var(--red); }
.t-parents .tn { color: var(--blue); }
.team .led { font-size: 1.55rem; line-height: 1; min-width: 1ch; text-align: center; }
.team .led.bump { animation: bump .7s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.6); color: #fff; } 100% { transform: scale(1); } }

.rules-btn {
  font: 700 .72rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,178,26,.55); color: var(--amber);
  transition: background .3s, color .3s;
}
.rules-btn:hover { background: var(--amber); color: #111; }
.rb-short { display: none; }

@media (max-width: 720px) {
  :root { --hud-h: 52px; }
  .hud { gap: 8px; padding: 0 10px; }
  .brand { font-size: 1.05rem; gap: 4px; } /* the logo stays on phones (it's also the reset); smaller to fit */
  .brand small { font-size: .5rem; letter-spacing: .14em; }
  .rounds { margin: 0; gap: 4px; }
  .rounds li { width: 25px; height: 25px; }
  .rounds svg { width: 15px; height: 15px; }
  .team { padding: 2px 7px 2px 6px; gap: 5px; }
  .team .tn { font-size: .55rem; letter-spacing: .1em; }
  .team .led { font-size: 1.25rem; }
  .rb-full { display: none; }
  .rb-short { display: inline; }
  .rules-btn { padding: 8px 10px; }
}
@media (max-width: 370px) { .team .tn { display: none; } }

/* =========================================================
   0 + 9. OPENING / CLOSING CEREMONY (the garage door)
   ========================================================= */
.s-open { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #060a1c 0%, #101a3f 38%, #2b2b5c 62%, #7a4a62 80%, #d9774d 100%);
}
.sky.night { background: linear-gradient(180deg, #02030a 0%, #070b1e 50%, #121a38 80%, #1f2346 100%); }
.stars {
  position: absolute; inset: 0 0 45% 0; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 44% 22%, #fff, transparent), radial-gradient(1px 1px at 62% 12%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 78% 26%, #fff, transparent), radial-gradient(1px 1px at 90% 6%, #fff, transparent),
    radial-gradient(1px 1px at 8% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 35% 36%, #fff, transparent),
    radial-gradient(1px 1px at 70% 40%, #fff, transparent), radial-gradient(1.3px 1.3px at 53% 4%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .45; } }
.pines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; z-index: 2; }

.facade {
  position: absolute; left: 50%; bottom: 0; z-index: 3;
  width: min(1100px, 94vw); height: 52vh; margin-left: calc(min(1100px, 94vw) / -2); transform-origin: 50% 58%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, #3a2618, #24170f);
  box-shadow: 0 -20px 80px rgba(0,0,0,.5);
}
.roof {
  position: absolute; left: -3%; right: -3%; top: -22px; height: 26px;
  background: linear-gradient(180deg, #1a120c, #2e1f14); border-radius: 3px 3px 0 0;
  box-shadow: 0 6px 12px rgba(0,0,0,.5);
}
.opening {
  position: absolute; left: 8%; right: 8%; top: 13%; bottom: 0; overflow: hidden;
  background: #000; border: 10px solid #efece5; border-bottom: 0;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.inside { position: absolute; inset: 0; }
.inside img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: saturate(1.1) contrast(1.05); }
.inside::after { /* warm light inside */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,200,120,.25), transparent 60%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%);
}
.door {
  position: absolute; inset: 0; will-change: transform;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(25% - 3px), rgba(0,0,0,.2) calc(25% - 3px) calc(25% - 1px), rgba(255,255,255,.7) calc(25% - 1px) 25%),
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 2px), rgba(0,0,0,.08) calc(25% - 2px) 25%),
    linear-gradient(180deg, #f3f1eb, #d9d5cc);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.12);
}
.windows { position: absolute; left: 5%; right: 5%; top: 6%; height: 12%; display: flex; gap: 4%; }
.windows i {
  flex: 1; border-radius: 3px; border: 3px solid #cfcbc1;
  background: linear-gradient(180deg, #ffd89a, #f29a45);
  box-shadow: 0 0 22px rgba(255,170,80,.75), inset 0 0 10px rgba(120,50,0,.35);
}
.gap-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2;
  background: #ffd9a0; box-shadow: 0 0 30px 10px rgba(255,190,110,.7);
}
.spill {
  position: absolute; left: 50%; bottom: -8vh; z-index: 4; width: 70vw; height: 22vh; margin-left: -35vw;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,200,120,.55), transparent 70%);
  opacity: .5; pointer-events: none;
}

.open-copy {
  position: absolute; left: 0; right: 0; top: calc(var(--hud-h) - 30px); z-index: 6;
  display: grid; justify-items: center; text-align: center; padding: 6vh 16px 0;
}
.open-copy .hist, .open-copy .title { grid-row: 2; grid-column: 1; }
.open-copy @media (min-width: 760px) {
  .title { grid-template-columns: auto auto; column-gap: .22em; align-items: end; }
  .title small { grid-column: 1 / -1; }
}
.tag { grid-row: 3; grid-column: 1; }
.loc {
  margin: 0; font: 700 .8rem/1 var(--cond); letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
  padding: 8px 14px; border: 1px solid rgba(244,198,78,.45); border-radius: 3px; background: rgba(0,0,0,.25);
}
.loc span { color: var(--white); padding: 0 .3em; }
.hist {
  margin: 18px 0 0; align-self: start; max-width: 34rem; font: 500 italic clamp(1.05rem, 2.6vw, 1.45rem)/1.35 var(--body); color: #d9dcea;
  text-shadow: 0 2px 20px rgba(0,0,0,.7);
}
.title {
  margin: 18px 0 0; display: grid; justify-items: center; line-height: .8;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.title small { font: 700 clamp(.8rem, 1.8vw, 1.05rem)/1 var(--cond); letter-spacing: .5em; margin: 0 0 .5em .5em; color: var(--gold); }
.title span { font-size: clamp(4.2rem, 16vw, 8.6rem); letter-spacing: -.01em; }
.title em {
  font-style: normal; font-size: clamp(4.2rem, 16vw, 8.6rem); color: transparent;
  -webkit-text-stroke: 2.5px var(--amber); text-shadow: 0 0 30px rgba(255,178,26,.35);
}
@media (min-width: 760px) {
  .title { grid-template-columns: auto auto; column-gap: .22em; align-items: end; }
  .title small { grid-column: 1 / -1; }
}
.tag {
  margin: .6em 0 0; font: 600 italic clamp(1.15rem, 3vw, 1.6rem)/1 var(--body); color: var(--amber);
  text-shadow: 0 0 18px rgba(255,178,26,.5);
}
.big-line {
  position: absolute; left: 0; right: 0; top: 36%; z-index: 7; margin: 0; text-align: center; padding: 0 16px;
  font: 800 clamp(2.6rem, 9vw, 6rem)/.9 var(--display); text-transform: uppercase; letter-spacing: .005em;
  text-shadow: 0 4px 40px rgba(0,0,0,.85); visibility: hidden;
}
.big-line b { color: var(--amber); text-shadow: 0 0 30px rgba(255,178,26,.45), 0 4px 40px rgba(0,0,0,.8); }
.s-open .standin { bottom: 70px; }

@media (max-width: 720px) {
  .facade { height: 54vh; width: 100vw; margin-left: -50vw; }
  .opening { left: 6%; right: 6%; top: 15%; border-width: 7px; }
  .hist { font-size: 1rem; }
}

/* =========================================================
   1. THE TEAMS: split-flap matchup board
   ========================================================= */
.s-teams { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.s-teams .bg, .s-hoop .bg, .s-book .bg { position: absolute; inset: 0; }
.s-teams .bg video, .s-hoop .bg img, .s-book .bg img { width: 100%; height: 100%; object-fit: cover; }
.s-teams .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7,8,13,.55), rgba(7,8,13,.92)); }
.teams-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding: 0 12px; }
.board-label { margin: 0; font: 700 .78rem/1 var(--cond); letter-spacing: .4em; text-transform: uppercase; color: var(--dim); position: relative; height: 1em; }
.board-label span { display: block; transition: opacity .4s; }
.board-label .bl-b { position: absolute; inset: 0; opacity: 0; color: var(--amber); text-align: center; }
.s-teams.tonight .bl-a { opacity: 0; }
.s-teams.tonight .bl-b { opacity: 1; }
.matchup { display: flex; align-items: center; gap: clamp(8px, 2vw, 18px); flex-wrap: wrap; justify-content: center; }
.flap { display: flex; gap: 3px; }
.flap .ch {
  position: relative; width: clamp(24px, 5.2vw, 58px); height: clamp(36px, 7.6vw, 84px);
  display: grid; place-items: center; border-radius: 4px;
  background: linear-gradient(180deg, #1c1e27 0 49.5%, #0a0b10 49.5% 50.5%, #16181f 50.5%);
  font: 800 clamp(1.3rem, 4.6vw, 3.4rem)/1 var(--display); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.5);
}
.flap .ch.flip { animation: flip .09s linear; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(80deg); filter: brightness(.6); } 100% { transform: rotateX(0); } }
.s-teams.tonight .side-a .ch { color: var(--blue); text-shadow: 0 0 18px rgba(59,134,255,.6); }
.s-teams.tonight .side-b .ch { color: var(--red); text-shadow: 0 0 18px rgba(239,43,52,.6); }
.vs { font: 900 clamp(1.4rem, 4vw, 2.6rem)/1 var(--display); color: var(--amber); text-transform: uppercase; font-style: italic; }
.teams-line {
  margin: 12px 0 0; font: 800 clamp(1.8rem, 6vw, 3.8rem)/.95 var(--display); text-transform: uppercase; text-align: center; visibility: hidden;
}
.teams-line b { color: var(--amber); }
.s-teams .standin { top: calc(var(--hud-h) + 12px); bottom: auto; }
@media (max-width: 720px) {
  .matchup { flex-direction: column; gap: 8px; }
  .loc { letter-spacing: .2em; font-size: .72rem; }
}

/* =========================================================
   2-5. EVENTS: sticky photo, story scrolls over it
   ========================================================= */
.event { position: relative; }
.ev-bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; z-index: 0; }
.ev-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.ev-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,13,.88), rgba(7,8,13,.45) 55%, rgba(7,8,13,.25)), linear-gradient(0deg, rgba(7,8,13,.7), transparent 40%);
}
.ev-flow { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 36vh 18px 26vh; }
.ev-flow > * + * { margin-top: 30vh; }
.ev-flow > .standin.inline { margin-top: 14px; }

.lower-third {
  display: inline-grid; grid-template-columns: auto auto; grid-template-areas: "num disc" "name name";
  align-items: end; column-gap: 14px; row-gap: 4px;
}
.ev-num {
  grid-area: num; justify-self: start; font: 700 .78rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase;
  color: #111; background: var(--amber); padding: 6px 10px 5px; transform: skewX(-12deg);
}
.ev-disc { grid-area: disc; font: 600 .82rem/1 var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--dim); padding-bottom: 3px; }
.ev-name {
  grid-area: name; margin: 0; font: 900 clamp(3.4rem, 13vw, 9rem)/.85 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.ev-line { margin-bottom: 0; font: 800 clamp(2.1rem, 7vw, 4.8rem)/.92 var(--display); text-transform: uppercase; max-width: 12em; }
.ev-line b { color: var(--amber); }

.reel { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; align-items: start; }
.reel figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); border: 1px solid var(--line); }
.reel .clip { aspect-ratio: 9 / 16; }
.reel .clip video { width: 100%; height: 100%; object-fit: cover; }
.reel .still { aspect-ratio: 3 / 4; margin-top: 12%; }
.reel .still:nth-child(3) { margin-top: 30%; }
.reel .still img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; left: 10px; bottom: 10px; font: 700 .7rem/1 var(--cond); letter-spacing: .18em; text-transform: uppercase;
  background: rgba(7,8,13,.75); padding: 6px 8px; border-radius: 3px;
}
.bug {
  position: absolute; left: 10px; top: 10px; font: 700 .66rem/1 var(--cond); letter-spacing: .22em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 5px 8px 4px; border-radius: 2px;
}
.bug.live::before { content: "● "; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.clip.shoot { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #10121a 0 14px, #0c0d14 14px 28px); }
.shoot-card { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 20px; color: var(--dim); }
.shoot-card svg { width: 46px; height: 46px; color: var(--amber); }
.shoot-card b { font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--white); }
.shoot-card span { font-size: .92rem; line-height: 1.3; }
@media (max-width: 720px) {
  .reel { grid-template-columns: 1fr 1fr; }
  .reel .clip { grid-row: span 2; }
  .reel .still, .reel .still:nth-child(3) { margin-top: 0; }
}

.result {
  display: inline-flex; flex-direction: column; gap: 8px; padding: 18px 22px; border-radius: 8px;
  background: #000; border: 1px solid #2a2c37; box-shadow: 0 0 0 4px rgba(0,0,0,.5), 0 30px 60px -20px rgba(0,0,0,.9);
}
.res-label { font: 700 .72rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.result strong { font: 900 clamp(2rem, 6vw, 3.4rem)/.95 var(--display); text-transform: uppercase; }
.win-kids { color: var(--red); text-shadow: 0 0 24px rgba(239,43,52,.55); }
.win-parents { color: var(--blue); text-shadow: 0 0 24px rgba(59,134,255,.55); }

/* ---------- Rubble's rules: poster that unfolds in place (like Sprout to Spark's side trails) ---------- */
.trail { max-width: 640px; }
.poster {
  width: 100%; text-align: left; display: grid; grid-template-columns: 84px 1fr; grid-template-areas: "art body" "art play";
  column-gap: 16px; row-gap: 10px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,22,32,.95), rgba(12,13,20,.95)); border: 1px solid rgba(255,178,26,.35);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.95); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.poster:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,178,26,.12), 0 24px 60px -20px rgba(255,178,26,.35); }
.poster-art { grid-area: art; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2a2340, #120f1c); display: grid; place-items: center; border: 2px solid rgba(255,178,26,.5); }
.poster-art svg { width: 70px; height: 70px; }
.poster-body { grid-area: body; }
.t-label { display: block; font: 700 .64rem/1 var(--cond); letter-spacing: .26em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.t-title { display: block; font: 800 1.45rem/1.05 var(--display); text-transform: uppercase; }
.t-sub { display: block; margin-top: 4px; color: var(--dim); font-size: .95rem; line-height: 1.3; }
.play { grid-area: play; display: inline-flex; align-items: center; gap: 10px; font: 700 .7rem/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; }
.play-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); animation: pulse 2.4s ease-in-out infinite; }
.play-dot svg { width: 14px; height: 14px; fill: #111; margin-left: 2px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,178,26,.55); } 50% { box-shadow: 0 0 0 10px rgba(255,178,26,0); } }
.poster[aria-expanded="true"] .play-dot { animation: none; }
.poster[aria-expanded="true"] .play-word::after { content: " · close"; color: var(--dim); }

.trail-panel { height: 0; overflow: hidden; }
.trail-inner { padding: 12px 0 4px; }
.film-slot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #1b1c2a, #07080d); border: 1px dashed rgba(255,178,26,.45); padding: 18px;
}
.film-slot p { margin: 0; max-width: 26rem; color: var(--dim); font-size: .95rem; }
.film-slot b { display: block; font: 800 1.3rem/1.1 var(--display); text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.film-slot a { color: var(--amber); font-weight: 600; }

.quick { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: rgba(12,13,20,.92); border: 1px solid var(--line); }
.quick h3, .quick h4 { margin: 0 0 10px; font: 700 .72rem/1 var(--cond); letter-spacing: .28em; text-transform: uppercase; color: var(--amber); }
.quick h4 { margin-top: 16px; color: var(--gold); }
.quick ol { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 9px; }
.quick ol li { counter-increment: q; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; line-height: 1.35; }
.quick ol li::before {
  content: counter(q); width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center;
  font: 900 1rem/1 var(--led); background: #000; color: var(--amber); border: 1px solid #2d2f3a;
}
.quick ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.quick ul li { font-size: .92rem; padding: 6px 11px; border-radius: 999px; border: 1px dashed rgba(244,198,78,.55); color: #f1e4bd; }
.quick .tip { margin: 14px 0 0; font-size: .92rem; color: var(--dim); }
.quick .tip b { color: var(--white); }

/* =========================================================
   6. HOOP FEVER: the clock runs as you scroll
   ========================================================= */
.s-hoop { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.s-hoop .bg img { object-position: 50% 30%; filter: blur(2px) saturate(1.2); transform: scale(1.06); }
.s-hoop .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(7,8,13,.65), rgba(7,8,13,.95)); }
.lower-third.final { position: absolute; left: 18px; top: calc(var(--hud-h) + 4vh); z-index: 3; }
.lower-third.final .ev-name { font-size: clamp(2.8rem, 9vw, 6rem); }
.machine {
  position: relative; z-index: 3; margin-top: 6vh; padding: clamp(14px, 3vw, 26px); border-radius: 14px;
  background: #050506; border: 3px solid var(--red); box-shadow: 0 0 0 6px #1a0406, 0 0 60px rgba(239,43,52,.35), inset 0 0 30px rgba(0,0,0,.9);
  width: min(720px, 92vw); text-align: center;
}
.m-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; align-items: end; }
.m-row span { display: block; font: 700 .68rem/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.m-team.t-kids span { color: var(--red); }
.m-team.t-parents span { color: var(--blue); }
.m-team .led { font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 1; }
.m-team.t-kids .led { color: #ff4d55; text-shadow: 0 0 10px rgba(255,60,70,.7), 0 0 30px rgba(255,40,50,.35); }
.m-team.t-parents .led { color: #6aa5ff; text-shadow: 0 0 10px rgba(80,140,255,.7), 0 0 30px rgba(60,120,255,.35); }
.m-clock .led { font-size: clamp(3.8rem, 13vw, 7.6rem); line-height: 1; }
.m-flash, .m-buzz { margin: 16px 0 0; font: 900 clamp(1.3rem, 4vw, 2.2rem)/1 var(--display); text-transform: uppercase; visibility: hidden; }
.m-flash b { color: var(--amber); }
.m-buzz { position: absolute; inset: auto 0 -64px; font-size: clamp(2.4rem, 8vw, 4rem); color: var(--amber); text-shadow: 0 0 30px rgba(255,178,26,.7); }
.machine.hot { animation: hot .5s steps(2) infinite; }
@keyframes hot { 50% { box-shadow: 0 0 0 6px #3a0a0e, 0 0 90px rgba(239,43,52,.75), inset 0 0 30px rgba(0,0,0,.9); } }
.hoop-clip { position: absolute; z-index: 3; right: 18px; bottom: 18px; margin: 0; width: clamp(96px, 16vw, 170px); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.7); }
.hoop-clip video { width: 100%; height: 100%; object-fit: cover; }
.hoop-win {
  position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; margin: 0; text-align: center; visibility: hidden;
  font: 900 clamp(3rem, 12vw, 8rem)/.85 var(--display); text-transform: uppercase; color: var(--red); text-shadow: 0 0 50px rgba(239,43,52,.6), 0 6px 40px rgba(0,0,0,.9);
}
.hoop-win b { display: block; color: var(--white); }
.s-hoop .standin { bottom: 14px; left: 12px; }
.after-hoop { max-width: 1180px; margin: 0 auto; padding: 14vh 18px 6vh; }

/* =========================================================
   7. MEDALS + THE RECORD
   ========================================================= */
.s-medals { position: relative; min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 20px; padding: 16vh 16px 14vh; overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, #1e1a0c 0%, var(--ink) 65%); }
.podium { display: flex; align-items: flex-end; gap: 6px; }
.step { position: relative; width: clamp(88px, 18vw, 150px); display: grid; place-items: center; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #2b2f3d, #151720); border: 1px solid #3a3e4e; font: 900 2.4rem/1 var(--display); color: rgba(255,255,255,.35); }
.step.s1 { height: clamp(120px, 22vw, 170px); background: linear-gradient(180deg, #5a4516, #2a200b); border-color: #8a6a22; color: var(--gold); }
.step.s2 { height: clamp(80px, 15vw, 118px); }
.step.s3 { height: clamp(60px, 11vw, 86px); }
.rubble.top { position: absolute; bottom: 100%; width: clamp(90px, 16vw, 130px); height: clamp(90px, 16vw, 130px); left: 0; right: 0; margin: 0 auto; }
.trophy { position: absolute; bottom: calc(100% + clamp(70px, 13vw, 110px)); font-size: clamp(2.2rem, 5vw, 3rem); filter: drop-shadow(0 0 18px rgba(244,198,78,.8)); }
.champs { margin: 0; text-align: center; font: 900 clamp(3.4rem, 13vw, 8.5rem)/.85 var(--display); text-transform: uppercase; color: var(--red); text-shadow: 0 0 60px rgba(239,43,52,.45); }
.champs small { display: block; font: 700 .9rem/1 var(--cond); letter-spacing: .4em; color: var(--gold); margin-bottom: 14px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; }

.s-record, .sub-record { position: relative; }
.zoomer { position: absolute; left: 50%; top: 50%; width: max(100vw, 75vh); height: max(133.333vw, 100vh); margin-left: calc(max(100vw, 75vh) / -2); margin-top: calc(max(133.333vw, 100vh) / -2); }
.zoomer img { width: 100%; height: 100%; }
.rec-frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.75)); pointer-events: none; }
.rec-a, .rec-b { position: absolute; left: 0; right: 0; z-index: 2; margin: 0; text-align: center; padding: 0 16px; visibility: hidden; text-transform: uppercase; }
.rec-a { top: calc(var(--hud-h) + 6vh); font: 800 clamp(2rem, 6.5vw, 4.4rem)/.95 var(--display); text-shadow: 0 4px 30px rgba(0,0,0,.9); }
.rec-a b { color: var(--amber); }
.rec-b { bottom: 8vh; display: grid; justify-items: center; }
.rec-b .led { font-size: clamp(5rem, 22vw, 12rem); line-height: .9; }
.rec-b span { font: 800 clamp(1.8rem, 6vw, 3.6rem)/1 var(--display); text-shadow: 0 4px 30px rgba(0,0,0,.9); }

/* =========================================================
   8. THE TWIST
   ========================================================= */
.s-twist { padding: 18vh 16px 20vh; max-width: 1180px; margin: 0 auto; }
.twist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tw { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.tw video { width: 100%; height: 100%; object-fit: cover; }
.tw::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,13,.9), transparent 55%); }
.tw figcaption { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 58px; font: 900 clamp(1.8rem, 5vw, 3.6rem)/.9 var(--display); text-transform: uppercase; }
.tw-kids figcaption { color: #ff5a62; }
.tw-parents figcaption { color: #8cb8ff; }
.tw .standin { bottom: 14px; }
.tw-parents { margin-top: 18vh; }
.final-board {
  margin: 12vh auto 0; width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; padding: 4px;
  background: #000; border: 1px solid #2a2c37; border-radius: 10px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9);
}
.fb-team { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: #0b0c12; border-radius: 7px; }
.fb-team span { font: 700 .8rem/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; }
.fb-team.t-kids span { color: var(--red); }
.fb-team.t-parents span { color: var(--blue); }
.fb-team .led { font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1; }
.fb-team .led.peace { font-size: clamp(1.2rem, 4.2vw, 2.3rem); text-transform: uppercase; }
@media (max-width: 720px) {
  .twist-grid { grid-template-columns: 1fr; }
  .tw-parents { margin-top: 10vh; }
}

/* =========================================================
   10. YOUR CREW'S TURN
   ========================================================= */
.s-book { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 14vh 16px; overflow: hidden; }
.s-book .bg img { filter: saturate(1.1); }
.s-book .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,13,.95), rgba(7,8,13,.6) 45%, rgba(7,8,13,.92)); }
.book-card { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 18px; }
.rounds.lit { margin: 0; gap: 10px; }
.rounds.lit li { width: 44px; height: 44px; color: var(--amber); border-color: rgba(255,178,26,.7); background: rgba(255,178,26,.1); box-shadow: 0 0 16px rgba(255,178,26,.45); }
.rounds.lit svg { width: 26px; height: 26px; }
.crew { margin: 0; font: 900 clamp(3.6rem, 15vw, 9.5rem)/.82 var(--display); text-transform: uppercase; text-shadow: 0 6px 40px rgba(0,0,0,.7); }
.crew b { color: var(--amber); text-shadow: 0 0 40px rgba(255,178,26,.45); }
.crew-sub { margin: 0; font: 500 clamp(1.1rem, 2.8vw, 1.4rem)/1.3 var(--body); color: #dfe1ea; }
.crew-sub b { color: var(--white); }
.book-btn {
  margin-top: 6px; display: inline-block; text-decoration: none; padding: 18px 34px; border-radius: 999px;
  font: 900 1.5rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #140d00;
  background: linear-gradient(180deg, #ffc84a, var(--amber)); box-shadow: 0 0 0 6px rgba(255,178,26,.15), 0 20px 50px -10px rgba(255,178,26,.6);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.book-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 10px rgba(255,178,26,.18), 0 26px 60px -10px rgba(255,178,26,.75); }
.small-links { margin: 6px 0 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; font: 600 .8rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.small-links a, .small-links button { text-decoration: none; letter-spacing: inherit; text-transform: inherit; font: inherit; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.rubble.wink { --eye-open: 0; --wink: 1; width: 110px; height: 110px; margin-top: 6px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }

.foot { padding: 30px 16px 40px; text-align: center; color: var(--dim); font-size: .85rem; border-top: 1px solid var(--line); }
.foot a { color: var(--amber); }

/* =========================================================
   THE RULEBOOK dialog
   ========================================================= */
.rulebook {
  width: min(760px, 94vw); max-height: 88vh; padding: 0; border: 1px solid rgba(255,178,26,.4); border-radius: 18px;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; /* scrolls on its own; never drags the page behind */
  background: #0c0d14; color: var(--white); box-shadow: 0 40px 120px rgba(0,0,0,.8);
}
.rulebook::backdrop { background: rgba(3,4,8,.75); backdrop-filter: blur(4px); }
.rulebook[open] { animation: rbIn .45s var(--ease); }
@keyframes rbIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.rb-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: linear-gradient(180deg, #0c0d14 80%, rgba(12,13,20,0)); }
.rb-head .rubble { width: 64px; height: 64px; flex: none; }
.rb-kicker { margin: 0 0 4px; font: 700 .66rem/1 var(--cond); letter-spacing: .28em; text-transform: uppercase; color: var(--amber); }
.rb-head h2 { margin: 0; font: 800 clamp(1.3rem, 4vw, 1.9rem)/1 var(--display); text-transform: uppercase; }
.rb-head h2 b { color: var(--amber); }
.rb-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.1rem; flex: none; }
.rb-list { padding: 0 18px; display: grid; gap: 14px; }
.rb-game { border-radius: 12px; background: #11131c; border: 1px solid var(--line); padding: 14px 16px; }
.rb-game h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font: 900 1.6rem/1 var(--display); text-transform: uppercase; }
.rb-game h3 svg { width: 24px; height: 24px; color: var(--amber); }
.rb-game .quick { margin: 0; padding: 0; background: none; border: 0; }
.rb-wheel { margin: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px dashed rgba(244,198,78,.55); }
.rb-wheel img { width: 120px; height: 150px; object-fit: cover; object-position: 50% 45%; border-radius: 8px; }
.rb-wheel figcaption { color: var(--dim); }
.rb-wheel figcaption b { display: block; color: var(--white); font: 800 1.2rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  /* Transitions must be truly 0s, not "tiny": with any duration at all, every style change on every element becomes a
     transition, including the spacers the scroll library adds for pinned screens, so it measured the page before the
     spacers took effect and every trigger below the opening fired too early. */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}


/* =========================================================
   v2 STRUCTURE: select screen, five pinned game sections, the dock
   ========================================================= */

/* ---------- Pixel squares (one per game) + the pixel trophy ---------- */
.sq, .troph { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; }
.sq svg, .troph svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sq svg.done { filter: drop-shadow(0 0 5px var(--c)); }
.troph svg { opacity: .35; transition: opacity .4s, filter .4s; }
.troph.lit svg { opacity: 1; filter: drop-shadow(0 0 6px rgba(244,198,78,.8)); }

/* ---------- The navigation, pinned in the top bar ---------- */
.dock { display: flex; align-items: flex-end; gap: 2px; margin: 0 auto; visibility: hidden; }
.dock.on { visibility: visible; }
.dock button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 3px 6px 2px; border-radius: 8px; transition: background .3s; }
.dock button:hover { background: rgba(255,255,255,.07); }
.dock .sq, .dock .troph { width: 28px; height: 28px; transition: transform .3s var(--ease); }
.dock .dn { font: 400 .42rem/1 "Silkscreen", monospace; letter-spacing: .02em; color: var(--dim); white-space: nowrap; }
.dock button.on .sq, .dock button.on .troph { transform: scale(1.15); }
.dock button.on .dn { color: var(--amber); }
.dock button.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -5px; height: 2px; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.d-trophy { margin-left: 8px; }
.d-trophy::before { content: ""; position: absolute; left: -5px; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.16); }
.hud.measure { transform: none !important; transition: none !important; }
@media (max-width: 720px) {
  .dock { margin: 0; gap: 0; }
  .dock .dn { display: none; }
  .dock .sq, .dock .troph { width: 24px; height: 24px; }
  .dock button { padding: 2px 3px; }
  .dock button.on::after { bottom: -6px; }
}

/* ---------- SELECT YOUR EVENT ---------- */
.s-select {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 14vh 16px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 40%, #171924, var(--ink) 70%);
}
.sel-box {
  position: relative; width: min(540px, 100%); padding: 26px 22px 22px; border-radius: 6px; background: #050507;
  border: 3px solid var(--amber); box-shadow: 0 0 0 6px #140e02, 0 0 70px rgba(255,178,26,.22); font-family: "Silkscreen", monospace;
}
.sel-kicker { margin: 0 0 8px; text-align: center; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sel-title { margin: 0 0 18px; text-align: center; font: 400 clamp(1.3rem, 5vw, 1.9rem)/1.1 "Silkscreen", monospace; text-transform: uppercase; color: var(--amber); text-shadow: 0 0 14px rgba(255,178,26,.5); animation: selBlink 1.4s steps(2) infinite; }
@keyframes selBlink { 50% { opacity: .75; } }
.sel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sel-list button {
  width: 100%; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 8px 10px; border-radius: 4px; font-family: inherit; border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.sel-list button:hover, .sel-list button:focus-visible { background: rgba(255,178,26,.12); border-color: rgba(255,178,26,.55); outline: none; }
.sel-list b { font: 400 .85rem/1 "Silkscreen", monospace; text-transform: uppercase; }
.sel-list small { font: 400 .55rem/1 "Silkscreen", monospace; color: var(--dim); text-transform: uppercase; }
.sel-list .sq, .sel-list .troph { width: 30px; height: 30px; }
.play-all {
  display: block; width: 100%; margin-top: 14px; padding: 12px; border-radius: 4px; font: 400 .9rem/1 "Silkscreen", monospace;
  text-transform: uppercase; color: #140d00; background: var(--amber); box-shadow: 0 0 20px rgba(255,178,26,.45);
}
.play-all:hover { background: #ffc84a; }
.sel-hint { margin: 12px 0 0; text-align: center; font-size: .55rem; color: var(--dim); text-transform: uppercase; }
.sel-cursor { position: absolute; left: -44px; width: 32px; height: 32px; top: 0; border-radius: 3px; box-shadow: 0 0 0 2px #000, 0 0 0 3px #fff; transition: top .25s var(--ease); animation: hop .5s ease-in-out infinite alternate; }
@keyframes hop { to { transform: translateX(5px); } }
@media (max-width: 640px) { .sel-cursor { left: auto; right: -12px; width: 26px; height: 26px; } }

/* ---------- THE FIVE GAMES ---------- */
.game { position: relative; }
.g-bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; z-index: 0; }
.g-bg img { width: 100%; height: 100%; object-fit: cover; }
.g-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,8,13,.8), rgba(7,8,13,.35) 60%, rgba(7,8,13,.2)), linear-gradient(0deg, rgba(7,8,13,.75), transparent 35%);
}
.g-title {
  position: sticky; top: var(--hud-h); z-index: 4; display: flex; align-items: center; gap: 16px;
  padding: 16px max(18px, calc((100% - 1180px) / 2 + 18px)) 34px;
  background: linear-gradient(180deg, rgba(7,8,13,.95) 0%, rgba(7,8,13,.9) 76%, rgba(7,8,13,0) 100%);
}
.g-title .sq { width: 56px; height: 56px; }
.g-num { display: inline-block; font: 700 .72rem/1 var(--cond); letter-spacing: .28em; text-transform: uppercase; color: #111; background: var(--amber); padding: 5px 9px 4px; transform: skewX(-12deg); }
.g-name { margin: 6px 0 2px; font: 900 clamp(2.5rem, 7.5vw, 4.8rem)/.85 var(--display); text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.7); }
.g-disc { font: 600 .8rem/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.g-flow { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 22vh 18px 30vh; display: grid; gap: 34vh; }
.sub { max-width: 820px; }
.sub-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 .76rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--amber); }
.sub-label::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.sub-line .ev-line { margin: 0; }
.sub-result .result.big strong { font-size: clamp(2.6rem, 8vw, 4.6rem); }
@media (max-width: 720px) {
  .g-title { gap: 12px; padding-top: 12px; padding-bottom: 26px; }
  .g-title .sq { width: 42px; height: 42px; }
  .g-flow { padding-top: 16vh; gap: 26vh; }
}

/* Rubble's Chalk Talk, inside each game */
.talk { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .talk { grid-template-columns: 1fr; } .talk-film { max-width: 380px; } }
.talk .quick { margin-top: 0; }
.film-soon {
  aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 22px;
  border-radius: 14px; border: 1px dashed rgba(255,178,26,.55); background: rgba(7,8,13,.85);
}
.film-soon svg { width: 84px; height: 84px; }
.film-soon b { font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.film-soon span { color: var(--dim); font-size: .92rem; line-height: 1.35; }

/* Hoop Fever: the clock block (the machine stays put while you scroll) */
.sub-clock { height: 230vh; max-width: none; }
.machine-wrap { position: sticky; top: 34vh; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.machine-wrap .machine { margin: 0; width: min(640px, 100%); }
.machine-wrap .hoop-clip { position: static; width: clamp(90px, 13vw, 150px); }
.machine-wrap .standin.inline { flex-basis: 100%; margin-top: 4px; }

/* The end: squares + trophy, all lit */
.book-squares { display: flex; gap: 10px; align-items: center; }
.book-squares .sq, .book-squares .troph { width: 42px; height: 42px; }
.rubble.end { width: 110px; height: 110px; margin-top: 6px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.foot { padding-bottom: 40px; }

/* The high score screen inside Hoop Fever: a tall block with a full-screen frame that stays put */
.sub-record { height: 260vh; max-width: none; }
.rec-frame {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100vw; margin-left: calc(50% - 50vw);
  overflow: hidden; background: #000; z-index: 1;
}
.rec-frame .rec-a { top: calc(var(--hud-h) + 190px); }
@media (max-width: 720px) { .rec-frame .rec-a { top: calc(var(--hud-h) + 140px); } }
.g-title { z-index: 5; }

/* =========================================================
   v3: the roll call, result takeovers, Hall of Fame, "when we're not gaming"
   ========================================================= */

/* ---------- The roll call (in the opening): 5 squares + trophy, then they become the dock ---------- */
.roll { position: absolute; z-index: 9; left: 0; right: 0; top: 50%; display: grid; justify-items: center; gap: 22px; pointer-events: none; }
.roll-row { display: flex; gap: clamp(10px, 2.6vw, 30px); align-items: center; }
.isq { width: clamp(44px, 9vw, 92px); height: clamp(44px, 9vw, 92px); display: grid; visibility: hidden; will-change: transform; }
.isq svg { width: 100%; height: 100%; overflow: visible; }
.isq svg.done { filter: drop-shadow(0 0 10px var(--c)); }
.itroph svg { filter: drop-shadow(0 0 12px rgba(244,198,78,.8)); }
.roll-name {
  margin: 0; min-height: 1.2em; font: 400 clamp(1.1rem, 4vw, 2.2rem)/1 "Silkscreen", monospace; text-transform: uppercase;
  letter-spacing: .04em; text-shadow: 0 0 18px currentColor; visibility: hidden;
}
.dock.measure { transform: translate(-50%, 0) !important; transition: none !important; }
@media (max-width: 520px) { .dock.measure { transform: none !important; } }
.dock.snap { transition: none !important; }

/* ---------- Result takeovers: "KIDS take it!" then the scoreboard flips ---------- */
.sub-result { height: 170vh; max-width: none; }
.res-frame {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100vw; margin-left: calc(50% - 50vw);
  display: grid; place-content: center; justify-items: center; gap: 2.4vh; text-align: center; padding: 120px 16px 90px;
  --tc: var(--red);
}
.res-frame.win-parents { --tc: var(--blue); }
.res-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--tc) 32%, #07080d) 0%, rgba(7,8,13,.94) 62%); opacity: 0; }
.res-flash { position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; pointer-events: none; }
.res-kicker { margin: 0; font: 700 .8rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: #111; background: var(--amber); padding: 6px 10px 5px; transform: skewX(-12deg); visibility: hidden; }
.res-slam { margin: 0; display: grid; justify-items: center; line-height: .82; }
.res-team {
  font: 900 clamp(5rem, 22vw, 14rem)/.82 var(--display); text-transform: uppercase; color: var(--tc);
  text-shadow: 0 0 40px color-mix(in srgb, var(--tc) 70%, transparent), 0 8px 50px rgba(0,0,0,.8); visibility: hidden;
}
.res-verb { font: 900 clamp(2rem, 7.5vw, 4.8rem)/.9 var(--display); text-transform: uppercase; color: var(--white); text-shadow: 0 6px 30px rgba(0,0,0,.8); visibility: hidden; }
.res-board {
  display: flex; gap: 4px; padding: 5px; margin-top: 1vh; background: #000; border: 2px solid #2a2c37; border-radius: 12px;
  box-shadow: 0 0 0 5px rgba(0,0,0,.5), 0 30px 70px -20px rgba(0,0,0,.9); visibility: hidden;
}
.rbx { display: grid; justify-items: center; gap: 6px; padding: 12px 26px 10px; border-radius: 8px; background: #0b0c12; min-width: 130px; }
.rbx span { font: 700 .8rem/1 var(--cond); letter-spacing: .24em; text-transform: uppercase; }
.rbx.t-kids span { color: var(--red); }
.rbx.t-parents span { color: var(--blue); }
.rbx .led { font-size: clamp(3.2rem, 11vw, 6rem); line-height: 1; display: inline-block; }
.rbx.win { box-shadow: inset 0 0 0 2px var(--tc), 0 0 30px color-mix(in srgb, var(--tc) 60%, transparent); }

/* ---------- The Hall of Fame ---------- */
.s-fame { max-width: 1180px; margin: 0 auto; padding: 16vh 18px 14vh; }
.fame-kicker { margin: 0 0 8px; font: 700 .78rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.fame-title { margin: 0 0 28px; font: 900 clamp(3rem, 11vw, 7rem)/.85 var(--display); text-transform: uppercase; }
.fame-title b { color: var(--amber); }
.fame-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 860px) { .fame-grid { grid-template-columns: 1fr; } }
.records { padding: 18px; border-radius: 10px; background: #000; border: 2px solid #2a2c37; box-shadow: 0 30px 70px -25px rgba(0,0,0,.9); }
.rec-head { margin: 0 0 12px; font: 400 .8rem/1 "Silkscreen", monospace; text-transform: uppercase; color: var(--amber); }
.records ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.records li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 6px; background: #0b0c12; }
.records li .sq { width: 24px; height: 24px; }
.records li b { font: 600 .95rem/1.1 var(--body); }
.records li em { font-style: normal; font-size: 1.7rem; }
.records li em.open { color: #6d6f7c; text-shadow: none; }
.rec-foot { margin: 12px 0 0; font-size: .85rem; color: var(--dim); }
.fame-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pol { margin: 0; padding: 10px 10px 12px; background: #f6f3ec; border-radius: 3px; transform: rotate(var(--tilt, 0deg)); box-shadow: 0 20px 40px -15px rgba(0,0,0,.8); }
.pol img, .pol-blank { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #1a1b22; }
.pol-blank { display: grid; place-items: center; text-align: center; font: 400 .9rem/1.3 "Silkscreen", monospace; color: #6d6f7c; text-transform: uppercase; }
.pol figcaption { margin-top: 8px; font: 400 1.05rem/1.1 "Permanent Marker", cursive; color: #222; text-align: center; }

/* ---------- When we're not gaming ---------- */
.s-more { max-width: 1180px; margin: 0 auto; padding: 12vh 18px 10vh; }
.more-title { margin: 0 0 22px; font: 900 clamp(2.4rem, 8vw, 4.6rem)/.9 var(--display); text-transform: uppercase; }
.more-title b { color: var(--amber); }
.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
/* The live tile's title and description stack up from the bottom, so a longer description (narrow tiles) can't
   slide under the title */
.more-grid .tease.live { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; }
.more-grid .tease.live h3, .more-grid .tease.live p { position: relative; left: auto; right: auto; bottom: auto; }
/* five tiles (Sprout to Spark + four coming soon): on smaller screens Sprout to Spark takes the whole first row */
@media (max-width: 900px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .more-grid .tease.live { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
.tease { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; color: var(--white); border: 1px solid var(--line); background: #000; }
.tease img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tease::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,8,13,.92), transparent 60%); }
.tease > :not(img) { position: relative; z-index: 2; }
.tease .t-tag { position: absolute; left: 12px; top: 12px; font: 700 .64rem/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 3px; background: rgba(7,8,13,.8); color: var(--dim); }
.tease.live .t-tag { background: var(--amber); color: #111; }
.tease h3 { position: absolute; left: 14px; right: 14px; bottom: 44px; margin: 0; font: 900 1.7rem/.9 var(--display); text-transform: uppercase; }
.tease p { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0; font-size: .82rem; line-height: 1.25; color: #d7d9e3; }
.tease.soon h3 { bottom: 16px; }
.tease.soon img { filter: grayscale(.5) brightness(.8); }
.tease.live:hover img { transform: scale(1.05); }

/* ---------- v3.1 tweaks ---------- */
/* Mobile top bar: hide the team names, color the digits instead */
@media (max-width: 720px) {
  .hud .team .tn { display: none; }
  .hud .t-kids .led { color: #ff5a62; text-shadow: 0 0 8px rgba(255,60,70,.6); }
  .hud .t-parents .led { color: #7fb0ff; text-shadow: 0 0 8px rgba(80,140,255,.6); }
  .board { margin-left: auto; }
}
/* Roll call: a dark scrim so the squares and names read clearly, and everything sits higher */
.roll-scrim { position: absolute; inset: 0; z-index: 6; background: radial-gradient(ellipse at 50% 45%, rgba(7,8,13,.78), rgba(7,8,13,.94)); opacity: 0; pointer-events: none; }
.roll { top: 40%; }
.roll-name { background: rgba(0,0,0,.55); padding: 10px 16px 8px; border-radius: 6px; }
/* Rubble's commentary on each result */
.res-call {
  margin: 0; display: flex; align-items: center; gap: 10px; max-width: min(640px, 92vw); text-align: left;
  font: 500 italic clamp(1rem, 2.6vw, 1.3rem)/1.25 var(--body); background: rgba(0,0,0,.6); padding: 6px 16px 6px 6px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); visibility: hidden;
}
.res-call svg { width: 40px; height: 40px; flex: none; }
.res-call b { font-style: normal; color: var(--amber); }
.res-frame { padding-top: 70px; }

/* Hoop Fever: players take turns; the one shooting is lit up */
.m-team { padding: 8px 6px; border-radius: 8px; transition: box-shadow .3s, background .3s; }
.m-team.up { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 2px currentColor; }
.m-team.t-parents.up { color: var(--blue); }
.m-team.t-kids.up { color: var(--red); }
.m-up { margin: 14px 0 0; font: 700 .9rem/1 var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.m-up b { color: var(--white); }
.machine .m-flash { font-size: clamp(1rem, 3.2vw, 1.7rem); line-height: 1.1; }

/* ---------- v3.2 ---------- */
/* LED numbers: the Doto font draws its digits .05em left of center, and letter-spacing adds space after the
   last digit. .14em of left padding cancels both, so the digits sit dead center. */
.led { padding-left: .14em; }
/* The navigation: the square you're in glows and gently pulses while its comet traces around it */
.dock .sq, .dock .troph { width: 30px; height: 30px; }
.dock button.on .sq svg { filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 7px var(--c)); animation: navPulse 1.4s ease-in-out infinite; }
.dock .sq svg.tracing { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px var(--c)); }
@keyframes navPulse { 50% { transform: scale(1.08); } }
@media (max-width: 720px) { .dock .sq, .dock .troph { width: 26px; height: 26px; } }

/* =========================================================
   v4: THE OPENING (stacked bands). The five games take turns, then the title plate.
   ========================================================= */
.s-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #050507; }
.bands { position: absolute; inset: -4% 0; display: flex; flex-direction: column; }
.bands > div {
  position: relative; flex: 1 1 0; min-height: 0; margin: -1.4% 0;
  background-size: cover; background-repeat: no-repeat;
  clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
}
@media (min-width: 900px) { .bands > div { clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); } }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(0deg, rgba(5,5,7,.9), transparent); pointer-events: none; }
.hero-name { position: absolute; z-index: 3; left: 0; right: 0; top: 70%; display: grid; justify-items: center; gap: 10px; text-align: center; }
.hero-name small { font: 700 .75rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: #111; background: var(--amber); padding: 5px 9px 4px; transform: skewX(-12deg); }
.hero-name b { font: 400 clamp(1.3rem, 5.6vw, 2.6rem)/1 "Silkscreen", monospace; text-transform: uppercase; text-shadow: 0 0 18px currentColor, 0 3px 12px #000; }
.hero-run { position: absolute; z-index: 3; left: 0; right: 0; top: 84%; display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); }
.rsq { width: clamp(28px, 7vw, 52px); height: clamp(28px, 7vw, 52px); display: grid; }
.rsq svg { width: 100%; height: 100%; overflow: visible; }
.rsq svg.done { filter: drop-shadow(0 0 6px var(--c)); }
.plate {
  position: absolute; z-index: 4; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; justify-items: center; gap: clamp(14px, 3vh, 28px); padding: 0 16px; text-align: center;
}
.plate-text { display: grid; justify-items: center; }
.plate .title { margin: 0; }
.plate .tag { margin-top: .45em; }
.plate .roll-row { gap: clamp(8px, 2.2vw, 22px); }
.plate .isq { visibility: visible; width: clamp(36px, 8vw, 64px); height: clamp(36px, 8vw, 64px); }
.s-hero .big-line.begin { top: 22%; }

/* =========================================================
   v5: THE ENDING. Hall of Fame (reel + polaroids + records), then the door, then Book.
   ========================================================= */
.reel-card { margin: 0 0 28px; }
.reel-screen {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(0,0,0,.9);
}
.reel-screen video { width: 100%; height: 100%; object-fit: cover; }
.reel-screen .bug { background: var(--amber); color: #111; }
@media (max-width: 720px) { .reel-screen { aspect-ratio: 4 / 5; } }
.fame-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .fame-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pol figcaption { font-size: .98rem; }
.ig { margin-top: 14px; padding: 12px 14px; border-radius: 8px; border: 1px dashed rgba(255,178,26,.5); }
.ig p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--dim); }
.ig b { color: var(--white); }
.ig .tagline { color: var(--amber); font-weight: 600; white-space: nowrap; }

/* Book: the review, the facts, and three ways to act */
.review { margin: 4px 0 0; max-width: 34rem; padding: 16px 20px; border-radius: 12px; background: rgba(7,8,13,.78); border: 1px solid var(--line); }
.review p { margin: 0; font: 600 italic clamp(1.1rem, 2.8vw, 1.35rem)/1.35 var(--body); color: var(--white); text-wrap: balance; }
.review footer { margin-top: 8px; font: 600 .8rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.review .stars { color: var(--amber); letter-spacing: .1em; margin-right: 6px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 40rem; }
.facts li { padding: 7px 12px; border-radius: 999px; background: rgba(7,8,13,.72); border: 1px solid var(--line); font: 600 .82rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: #dfe1ea; }
.facts b { color: var(--amber); font-weight: 700; }
.book-note { margin: -6px 0 0; font-size: .9rem; color: var(--dim); }
.book-alts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.alt-btn {
  display: inline-block; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  font: 800 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: rgba(7,8,13,.6);
  transition: border-color .3s, color .3s;
}
.alt-btn:hover, .alt-btn:focus-visible { border-color: var(--amber); color: var(--amber); outline: none; }
.share-status { margin: -4px 0 0; min-height: 1.2em; font-size: .9rem; color: var(--amber); word-break: break-all; }

/* ---------- v5.1: records with example scores, champions, rotating reviews ---------- */
.rec-list li { grid-template-columns: 26px minmax(0, 1fr) auto; row-gap: 4px; }
.rec-what, .rec-who { display: grid; gap: 2px; min-width: 0; }
.rec-what small, .rec-who small { font-size: .78rem; color: var(--dim); }
.rec-who { grid-column: 2 / -1; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,.1); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rec-who b { font: 400 .8rem/1 "Silkscreen", monospace; color: var(--white); }
/* Rubble holds the house scores: his face next to his name */
.rec-who b.rec-rubble { display: inline-flex; align-items: center; gap: 6px; align-self: center; color: var(--amber); }
.rec-rubble svg { width: 20px; height: 20px; flex: none; }
.champs-head { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.champs-head .troph { width: 22px; height: 22px; }
.champ-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.champ-list li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 6px; background: #0b0c12; }
.champ-list b { font: 800 1.05rem/1.1 var(--display); text-transform: uppercase; color: var(--gold); }
.champ-list small { font-size: .8rem; color: var(--dim); }
.rv-text { transition: opacity .4s; }
.rv-dots { display: flex; gap: 6px; margin-top: 10px; }
.rv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); }
.rv-dots i.on { background: var(--amber); }
.twist-quote { max-width: 38rem; margin: 26px auto 0; text-align: center; font: 600 italic clamp(1.05rem, 2.6vw, 1.3rem)/1.4 var(--body); color: #e6e7ee; }
.twist-quote span { display: block; margin-top: 8px; font: 600 .78rem/1 var(--cond); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* =========================================================
   v6: the navigation is a dock at the BOTTOM again. It's hidden (not moved) until the
   opening's squares fly down into it, so their landing spots can be measured exactly.
   ========================================================= */
.hud .board { margin-left: auto; }
.dock {
  position: fixed; z-index: 80; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  margin: 0; display: flex; align-items: flex-end; gap: 4px; padding: 8px 10px 7px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(22,23,31,.96), rgba(8,9,14,.96)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  visibility: hidden;
}
.dock.on { visibility: visible; }
.dock button { padding: 4px 7px 3px; }
.dock .dn { font-size: .44rem; }
.dock button.on::after { bottom: -4px; }
@media (max-width: 720px) {
  .dock { left: 8px; right: 8px; transform: none; justify-content: space-between; padding: 7px 8px 6px; }
  .dock .dn { display: none; }
  .dock button.on .dn { display: block; position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: .42rem; }
}
.foot { padding-bottom: 110px; }
.podium-call { margin-top: 6px; }

/* =========================================================
   v7: "MATCH SELECTED!" Landing on Parents vs Kids locks in like picking a game in an arcade.
   (app.js adds .selected to .s-teams, and GSAP plays the flash, punch, corners, stamp and pixel burst.)
   ========================================================= */
.sel-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.match-wrap { position: relative; padding: 16px 20px; }
.sel-frame { position: absolute; inset: 0; pointer-events: none; }
.sel-frame i { position: absolute; width: 24px; height: 24px; border: 0 solid var(--amber); opacity: 0; filter: drop-shadow(0 0 6px var(--amber-glow)); }
.sel-frame i:nth-child(1) { left: 0; top: 0; border-width: 5px 0 0 5px; --dx: -4px; --dy: -4px; }
.sel-frame i:nth-child(2) { right: 0; top: 0; border-width: 5px 5px 0 0; --dx: 4px; --dy: -4px; }
.sel-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 5px 5px; --dx: -4px; --dy: 4px; }
.sel-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 5px 5px 0; --dx: 4px; --dy: 4px; }
/* the corners bounce in and out in two hard steps, like an arcade cursor */
.s-teams.selected .sel-frame i { animation: cursorBounce .5s steps(1) .4s infinite; }
@keyframes cursorBounce { 50% { translate: var(--dx) var(--dy); } }
/* the tiles light up in team colors, one after another (--k is each tile's place in line) */
.s-teams.selected .side-a .ch {
  background: linear-gradient(180deg, #3d86ff 0 49.5%, #0b2150 49.5% 50.5%, #2c6fe6 50.5%);
  color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px rgba(190,215,255,.7), 0 0 24px rgba(59,134,255,.7);
}
.s-teams.selected .side-b .ch {
  background: linear-gradient(180deg, #f2414a 0 49.5%, #4a0b0f 49.5% 50.5%, #d82630 50.5%);
  color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px rgba(255,200,203,.7), 0 0 24px rgba(239,43,52,.7);
}
.s-teams.selected .flap .ch { animation: tileOn .36s calc(var(--k) * 40ms) both; }
@keyframes tileOn { 0% { filter: brightness(2.6); transform: scale(1.18); } 100% { filter: none; transform: none; } }
.s-teams.selected .vs { color: #fff; text-shadow: 0 0 10px var(--amber), 0 0 26px var(--amber); }
.px-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.px-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; opacity: 0; }
.sel-stamp {
  margin: -4px 0 0; padding: 9px 14px 8px; rotate: -3deg; visibility: hidden;
  font: 400 clamp(.85rem, 2.4vw, 1.2rem)/1 "Silkscreen", monospace; letter-spacing: .06em; text-transform: uppercase;
  color: #07080d; background: var(--amber); box-shadow: 4px 4px 0 #07080d, 0 0 26px var(--amber-glow);
}
.s-teams.selected .sel-stamp { animation: stampBlink .22s steps(1) .55s 4; }
@keyframes stampBlink { 50% { opacity: 0; } }
@media (max-width: 720px) { .match-wrap { padding: 14px 16px; } .sel-frame i { width: 18px; height: 18px; } }

/* =========================================================
   v8: real media, no shoot. Videos can sit in photo tiles, photos in the tall tile, and a real
   Hoop Fever game plays (dimmed) behind the scoreboard while the clock runs.
   ========================================================= */
.reel .still video, .reel .clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clock-bg {
  position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh;
  margin: 0 calc(50% - 50vw) -100vh; margin-bottom: -100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.clock-bg video { width: 100%; height: 100%; object-fit: cover; }
.clock-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(7,8,13,.45), rgba(7,8,13,.82)); }
.sub-clock .machine-wrap { z-index: 1; }

/* v8.1: "live" polaroids (short looping clips, like iPhone Live Photos) */
.pol { position: relative; }
.pol video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #1a1b22; }
.pol.live::after {
  content: "LIVE"; position: absolute; top: 16px; left: 16px; padding: 3px 5px 2px; border-radius: 3px;
  font: 700 .56rem/1 var(--cond); letter-spacing: .14em; color: #fff; background: rgba(0,0,0,.45);
}
/* The review's ★★★★★ shares a class name with v1's starry-sky background (.stars above). Keep them in the review line. */
.review .stars { position: static; inset: auto; background: none; opacity: 1; }
/* v8.2: the note under "Book your stay" sat as small gray text on the busy night photo. Give it a dark pill. */
.book-note {
  margin: -4px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(7,8,13,.82); border: 1px solid var(--line);
  font: 600 .95rem/1.2 var(--body); color: #f3f1ea; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
/* v8.3: "Book direct, skip the platform fees" lives inside the Book button as a second line, so it can't be
   mistaken for another button or crowd the button's glow ring. */
.book-btn { display: inline-grid; justify-items: center; gap: 7px; padding: 16px 34px 14px; }
.book-btn small { font: 700 .72rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: rgba(20,13,0,.72); }
.book-alts { margin-top: 10px; }

/* =========================================================
   v9: THE OPENING, room first. The whole garage, sliced into the five games, closing up into the garage with its
   door up (a tall photo on phones, a wide one on bigger screens). Replaces v4's slanted bands.
   ========================================================= */
.s-hero { --room: url(assets/photos/room-1367.jpg); --end: url(assets/photos/room-1369.jpg); } /* v9.1: William's new photos */
.s-hero .bands { inset: 0; row-gap: 0; }
.s-hero .bands > div { margin: 0; clip-path: none; overflow: hidden; }
.s-hero .bands i { position: absolute; left: 0; width: 100%; background-size: cover; background-repeat: no-repeat; }
.s-hero .bands .slice { height: 500%; background-image: var(--room); background-position: 0% 50%; }
.s-hero .bands .slice.end { background-image: var(--end); background-position: 50% 50%; opacity: 0; }
.s-hero .bands .gp { inset: 0; opacity: 0; }
.hero-end { position: absolute; inset: 0; background: var(--end) 50% 50% / cover no-repeat; visibility: hidden; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(5,5,7,.45), rgba(5,5,7,.8)); visibility: hidden; }
.plate .kick { margin: 0 0 14px; font: 700 .78rem/1 var(--cond); letter-spacing: .3em; text-transform: uppercase; color: #111; background: var(--amber); padding: 6px 12px 5px; transform: skewX(-12deg); }
.hero-name small { white-space: nowrap; }

/* v9.2: "Book your stay" and "Book on Airbnb" side by side (stacked, the big button's glow ran into the Airbnb one).
   On phones both shrink a little so they still fit in one row. */
.book-actions { display: flex; align-items: center; justify-content: center; gap: 14px; }
.book-actions .book-btn { margin-top: 0; }
.book-actions .alt-btn { flex: none; }
@media (max-width: 480px) {
  .book-actions { gap: 8px; }
  .book-actions .book-btn { padding: 13px 15px 11px; font-size: 1.1rem; gap: 5px; box-shadow: 0 0 0 4px rgba(255,178,26,.15), 0 14px 34px -10px rgba(255,178,26,.6); }
  .book-actions .book-btn small { font-size: .54rem; letter-spacing: .05em; }
  .book-actions .alt-btn { padding: 10px 12px; font-size: .8rem; }
}

/* ---------- "Next level": stop scrolling and an arcade prompt says what's next (tap it to go) ---------- */
/* It sits just above the dock. --c is the color of what's next (the next game's color, or gold for the ending). */
.next-cue {
  position: fixed; z-index: 79; left: 50%; bottom: calc(94px + env(safe-area-inset-bottom, 0px)); /* about 16px above the dock */
  display: grid; justify-items: center; gap: 7px; padding: 9px 14px 8px; cursor: pointer;
  font: 400 .8rem/1 "Silkscreen", monospace; color: var(--c, var(--amber)); white-space: nowrap;
  background: rgba(7,8,13,.88); border: 2px solid var(--c, var(--amber)); border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, 14px);
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.next-cue.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .3s var(--ease); animation: ncIn .5s steps(1); }
.next-cue:hover { background: rgba(22,23,31,.95); }
.nc-top { font-size: .62rem; color: var(--gold); letter-spacing: .04em; }
.nc-top:empty { display: none; }
.nc-go { display: flex; align-items: center; gap: 8px; }
.nc-go i { font-style: normal; font-size: .7em; }
.next-cue.on .nc-go { animation: ncBlink 1.1s steps(1) .5s infinite; }
.next-cue.on .nc-go i { animation: ncDrop .55s steps(2) infinite alternate; }
@keyframes ncIn { 0% { opacity: 0; } 20% { opacity: 1; } 40% { opacity: .15; } 60% { opacity: 1; } 80% { opacity: .35; } 100% { opacity: 1; } }
@keyframes ncBlink { 0%, 72% { opacity: 1; } 73%, 100% { opacity: .2; } }
@keyframes ncDrop { to { transform: translateY(3px); } }
@media (max-width: 720px) { .next-cue { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } } /* the phone dock is shorter */
@media (max-width: 480px) { .next-cue { font-size: .72rem; padding: 8px 12px 7px; } .nc-top { font-size: .56rem; } }
@media (prefers-reduced-motion: reduce) { .next-cue.on, .next-cue.on .nc-go, .next-cue.on .nc-go i { animation: none; } }

/* ---------- Reset: the scoreboard is a button (↺), and the screen blinks to black while the story jumps to the top ---------- */
.board { align-items: center; cursor: pointer; transition: border-color .2s; }
.board-reset { display: grid; place-items: center; width: 20px; padding-left: 2px; font: 700 1.05rem/1 var(--body); color: var(--dim); transition: transform .45s var(--ease), color .2s; }
.board:hover, .board:focus-visible { border-color: rgba(255,178,26,.7); }
.board:hover .board-reset, .board:focus-visible .board-reset { color: var(--amber); transform: rotate(-200deg); }
.board:active { transform: scale(.96); }
@media (max-width: 720px) { .board-reset { width: 17px; font-size: .95rem; } }
.reset-fx { position: fixed; inset: 0; z-index: 200; background: #000; pointer-events: none; opacity: 0; visibility: hidden; }
/* a thin line across the middle, like an old arcade screen switching off */
.reset-fx::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #fff; box-shadow: 0 0 18px 4px rgba(255,255,255,.55); transform: scaleX(var(--line, 0)); }
@media (max-width: 340px) { .brand small { display: none; } } /* the smallest phones: drop "The" to make room */

/* ---------- Level clear: the big button at the end of every result screen (drops in after the score flips) ---------- */
/* --c = the next game's color (gold before the medals). Same arcade look as the small cue, just bigger. */
.res-next {
  display: grid; justify-items: center; gap: 9px; margin-top: 4px; padding: 13px 22px 12px; cursor: pointer;
  font: 400 1.05rem/1 "Silkscreen", monospace; color: var(--c); white-space: nowrap; visibility: hidden;
  background: rgba(7,8,13,.9); border: 3px solid var(--c); border-radius: 3px; box-shadow: 5px 5px 0 rgba(0,0,0,.55), 0 0 26px -6px var(--c);
}
.res-next:hover, .res-next:focus-visible { background: rgba(22,23,31,.96); outline: none; }
.res-next .rn-top { font-size: .72rem; color: var(--gold); letter-spacing: .04em; }
.res-next .rn-go { display: flex; align-items: center; gap: 10px; }
.res-next .rn-go i { font-style: normal; font-size: .7em; }
.res-next.on .rn-go { animation: ncBlink 1.1s steps(1) infinite; }
.res-next.on .rn-go i { animation: ncDrop .55s steps(2) infinite alternate; }
@media (max-width: 720px) { .res-next { font-size: .82rem; padding: 10px 16px 9px; gap: 7px; } .res-next .rn-top { font-size: .6rem; } }
@media (prefers-reduced-motion: reduce) { .res-next.on .rn-go, .res-next.on .rn-go i { animation: none; } }
/* Wide but short screens (laptops): the result screen is sized by height too, so the headline, the scoreboard and the
   level-clear button all fit between the top bar and the dock. (Big desktops and phones look the same as before.) */
.res-team { font-size: clamp(4rem, min(22vw, 25vh), 14rem); }
.res-verb { font-size: clamp(1.8rem, min(7.5vw, 8vh), 4.8rem); }
.rbx .led { font-size: clamp(2.6rem, min(11vw, 10.5vh), 6rem); }
.res-frame { gap: min(2.4vh, 22px); padding-bottom: 96px; }
/* Very short windows (small laptops with toolbars): tighten the smaller parts of the result screen too */
@media (max-height: 700px) and (min-width: 721px) {
  .res-frame { gap: 1.3vh; padding-top: 62px; }
  .res-call { font-size: .95rem; padding: 4px 12px 4px 4px; }
  .res-call svg { width: 30px; height: 30px; }
  .rbx { padding: 7px 20px 6px; gap: 3px; }
  .res-next { padding: 9px 18px 8px; font-size: .92rem; gap: 7px; }
}

/* ---------- Site-wide navigation (2026-09-30, from the landing page project) ---------- */
/* Home pill: back to ourtahoecabin.com. The cabin's sand-gold pine is the same on every site. */
.home-pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 8px 12px 8px 10px; border-radius: 999px;
  border: 1px solid rgba(235, 218, 166, .5); background: rgba(7, 8, 13, .6);
  font: 700 .72rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #ebdaa6;
  text-decoration: none; transition: background .3s, color .3s, border-color .3s;
}
.home-pill svg { width: 11px; height: 16px; fill: currentColor; }
.home-pill:hover, .home-pill:focus-visible { background: #ebdaa6; border-color: #ebdaa6; color: var(--ink); outline: none; }
/* phones: a round pine button, and the small "THE" goes so everything fits */
@media (max-width: 720px) {
  .home-pill { padding: 7px 9px; } .home-pill span { display: none; }
  .hud .brand small { display: none; }
}

/* The cabin footer: the same layout and words on every site, in this story's colors */
.cabin-foot { text-align: left; padding-top: 44px; font-size: .95rem; line-height: 1.5; color: var(--dim); }
.cf-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px 44px; }
.cf-brand { display: grid; gap: .55rem; align-content: start; justify-items: start; }
.cf-brand p, .cabin-foot p { margin: 0; }
.cf-home { display: grid; gap: .55rem; justify-items: start; text-decoration: none; }
.cf-home svg { width: 20px; height: 28px; fill: #ebdaa6; }
.cf-name { font: 500 1.7rem/1 "Cormorant Garamond", Georgia, serif; color: var(--white); }
.cf-col { display: grid; gap: .65rem; align-content: start; }
.cf-h { margin: 0 0 .2rem; font: 700 .72rem/1 var(--cond); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.cabin-foot .cf-col a { color: var(--white); text-decoration: none; text-underline-offset: 3px; }
.cabin-foot .cf-col a:hover, .cf-home:hover .cf-name { color: var(--amber); }
.cabin-foot .cf-fine { max-width: 1180px; margin: 36px auto 0; font-size: .8rem; }
.cabin-foot > p:last-child { max-width: 1180px; margin: 6px auto 0; font-size: .8rem; }
@media (max-width: 760px) { .cf-grid { grid-template-columns: 1fr 1fr; } .cf-brand { grid-column: 1 / -1; } }
