/* Racelets IndyCar Podcast program output (built on the Freddie B Arena one). Everything is laid out on a fixed 1920x1080 stage that is scaled
   to fit the window, so it looks identical on a TV, a laptop, and an OBS browser source.
   Layouts: .layout-arena (content on the hanging jumbotron, the mascot on the riser, sponsor tower, ribbon,
   crawl), .layout-full (content edge to edge, the mascot as a corner cameo) and .layout-cam (added on top of
   .layout-arena: the live cameras take the jumbotron's place and the main screen shrinks to a corner box). */
:root {
  --night: #05070c;
  --steel: #232834;
  --carbon: #0e1117;
  --ink: #eef1f6;
  --muted: #8b94a7;
  --led-red: #ff3a35;
  --navy: #142a52;
  --cream: #f3e6cb;
  --gold: #d3a64f;
  --ice: #3d8bff;
  --amber: #ffbe3b;
  --live: #ff3b3b;
  --final: #9aa3b5;
  --pre: #3d8bff;
  --f-varsity: "Graduate", "Rockwell", "Courier New", serif;
  --f-ui: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --logo: url("/brand/logo");
  --logo-fit: 1;   /* set by logokit.js: how far a non-round logo shrinks to fit inside a coin */
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); overflow: hidden; }
body { font-family: var(--f-ui); -webkit-font-smoothing: antialiased; }
body.hide-cursor, body.hide-cursor * { cursor: none !important; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, .5));
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(61,139,255,.13), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255,58,53,.10), transparent 70%),
    linear-gradient(#0a0d15 0%, var(--night) 45%, #030409 100%);
}

/* every toggleable piece fades in/out */
[data-el] { transition: opacity .45s ease, transform .55s var(--ease), filter .45s; }
[data-el].off { opacity: 0 !important; pointer-events: none; }

/* ---------- atmosphere ---------- */
.arena-bg { position: absolute; inset: 0; pointer-events: none; }
.truss {
  position: absolute; left: 0; right: 0; top: 0; height: 26px;
  background:
    repeating-linear-gradient(60deg, transparent 0 14px, rgba(160,170,190,.16) 14px 16px, transparent 16px 30px),
    repeating-linear-gradient(-60deg, transparent 0 14px, rgba(160,170,190,.16) 14px 16px, transparent 16px 30px),
    linear-gradient(rgba(160,170,190,.22), rgba(160,170,190,.22)) top/100% 2px no-repeat,
    linear-gradient(rgba(160,170,190,.22), rgba(160,170,190,.22)) bottom/100% 2px no-repeat;
}
.beam {
  position: absolute; top: -40px; width: 420px; height: 1250px;
  background: linear-gradient(rgba(220,232,255,.16), rgba(220,232,255,.02) 75%, transparent);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0; mix-blend-mode: screen; pointer-events: none;
  animation: sweep 16s ease-in-out infinite alternate;
}
.beam.b1 { left: 40px; --a: -32deg; --b: 8deg; }
.beam.b2 { right: 40px; --a: 30deg; --b: -10deg; animation-duration: 19s; animation-delay: -6s; }
.beam.b3 { left: 760px; width: 300px; --a: -14deg; --b: 16deg; animation-duration: 23s; opacity: .55;
  background: linear-gradient(rgba(61,139,255,.22), rgba(61,139,255,.02) 75%, transparent); }
@keyframes sweep { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
.layout-full .arena-bg { opacity: 0; }

/* ---------- LED sign ---------- */
.sign {
  position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
  padding: 22px 54px 20px; border-radius: 10px; max-width: 1240px;
  background: linear-gradient(#17090b, #0c0405);
  box-shadow: 0 0 0 3px #2b2f3a, 0 0 0 6px #0b0d12, 0 18px 40px rgba(0,0,0,.6), 0 0 90px rgba(255,58,53,.18);
  z-index: 3; --neon: var(--led-red); --neon-text: #ffd9d6;
}
.sign::before, .sign::after {
  content: ""; position: absolute; left: 16px; right: 16px; height: 8px; pointer-events: none;
  background:
    radial-gradient(circle, #fff3d1 0 2.6px, transparent 3.4px) 0 50% / 48px 8px repeat-x,
    radial-gradient(circle, rgba(255,190,59,.32) 0 2.6px, transparent 3.4px) 0 50% / 16px 8px repeat-x;
  filter: drop-shadow(0 0 3px var(--amber));
  animation: chase .6s steps(3) infinite;
}
.sign::before { top: 6px; } .sign::after { bottom: 6px; animation-direction: reverse; }
@keyframes chase { to { background-position: 48px 50%, 0 50%; } }
.sign-text {
  font-family: var(--f-varsity); font-size: var(--sign-size, 60px); line-height: 1; letter-spacing: .06em;
  color: var(--neon-text); white-space: nowrap; text-transform: uppercase;
  text-shadow: 0 0 4px var(--neon), 0 0 12px var(--neon), 0 0 28px var(--neon), 0 0 60px color-mix(in srgb, var(--neon) 60%, transparent);
  animation: neon-on 2.4s steps(1) 1 both;
}
.sign-text.relight { animation: neon-on 1.2s steps(1) 1 both; }
.sign-text .star { color: var(--amber); font-size: .55em; vertical-align: .35em; text-shadow: 0 0 10px var(--amber); margin: 0 .3em; }
.sign-text small { display: block; margin-top: 10px; font-family: var(--f-ui); font-weight: 800; font-size: .5em; letter-spacing: .14em; }
@keyframes neon-on { 0%, 8%, 14%, 22% { opacity: .15; } 4%, 11%, 18%, 30%, 100% { opacity: 1; } }
.sign.flash .sign-text, .sign.st-breaking .sign-text { animation: neon-flash .35s steps(1) infinite; }
@keyframes neon-flash { 50% { color: #fff; text-shadow: 0 0 6px #fff, 0 0 30px var(--neon), 0 0 90px var(--neon); } }
.sign.st-hot { --neon: #ff5a1f; --neon-text: #ffe2c8; }
.sign.st-trade { --neon: #ffbe3b; --neon-text: #fff1cf; }
.sign.st-topic { --neon: #3d8bff; --neon-text: #dbe9ff; }
.sign.st-breaking { --neon: #ff2a2a; --neon-text: #fff; }
.layout-full .sign { opacity: 0; transform: translate(-50%, -160px); pointer-events: none; }

/* ---------- jumbotron ---------- */
.jumbo {
  position: absolute; left: 330px; top: 134px; width: 1260px; height: 664px;
  display: flex; flex-direction: column; gap: 6px; padding: 10px;
  border-radius: 14px;
  background: linear-gradient(#323846, var(--steel) 40%, #161a22);
  box-shadow: 0 40px 90px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.6);
  z-index: 2;
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease), padding .6s var(--ease), border-radius .6s, transform .6s var(--ease), opacity .45s;
}
.jumbo::before, .jumbo::after { content: ""; position: absolute; top: -134px; width: 3px; height: 134px; background: linear-gradient(#06070a, #4a5160); }
.jumbo::before { left: 150px; } .jumbo::after { right: 150px; }
/* The jumbotron's own box, as plain numbers, for anything that has to scale it (the side column below). */
body { --j-l: 330; --j-w: 1260; --j-h: 664; }
/* everything except the scoreboard gets an exact 16:9 screen (1177 x 662) */
body:not(.content-scoreboard) { --j-l: 361.5; --j-w: 1197; --j-h: 682; }
body:not(.content-scoreboard) .jumbo { left: 361.5px; width: 1197px; height: 682px; }
body:not(.content-scoreboard) .jhead, body:not(.content-scoreboard) .strip { display: none; }
/* The second screen's box. It deliberately does NOT carry the .jumbo class: every .jumbo rule for the
   shoulder box and for the first column would otherwise move it and switch it on as well. It is always the
   16:9 box, since the one main screen that needs the taller one (the scoreboard) can never be in here. */
.jumbo2 {
  position: absolute; left: 361.5px; top: 134px; width: 1197px; height: 682px;
  display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px;
  background: linear-gradient(#323846, var(--steel) 40%, #161a22);
  box-shadow: 0 40px 90px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.6);
  z-index: 9; opacity: 0; pointer-events: none; transform-origin: 0 0;
  transition: transform .6s var(--ease), opacity .45s;
}
.layout-full:not(.content-scoreboard) .jumbo { left: 0; top: 0; width: 1920px; height: 1080px; padding: 0; border-radius: 0; background: #000; box-shadow: none; }
.layout-full .jumbo::before, .layout-full .jumbo::after { display: none; }
.layout-full.content-scoreboard .jumbo { transform: translateY(74px) scale(1.45); }

.jhead {
  height: 56px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: linear-gradient(#0e1016, #07080c); border-radius: 6px 6px 2px 2px;
  border-bottom: 2px solid #2e3442;
}
.jhead .mini-nz { width: 40px; height: 40px; background: var(--logo) center/contain no-repeat; flex: none; border-radius: 50%; }
.jhead .ttl { font-weight: 800; font-style: italic; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.jhead .ttl small { font-size: 22px; color: var(--muted); font-weight: 700; margin-left: 10px; }
.jhead .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 4px;
  font-weight: 700; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip.ok { color: #6fe39a; } .chip.ok .dot { animation: blink 1.6s infinite; }
.chip.warn { color: var(--amber); }
@keyframes blink { 50% { opacity: .25; } }

.screen {
  position: relative; flex: 1; overflow: hidden; border-radius: 3px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(61,139,255,.10), transparent 75%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 5px, transparent 5px 10px),
    var(--carbon);
  box-shadow: inset 0 0 0 2px #05060a, inset 0 0 80px rgba(0,0,0,.7);
  --vs: .61302;
}
.layout-full .screen { border-radius: 0; box-shadow: none; --vs: 1; }
.screen::after { /* LED pixel grid (arena only) */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  transition: opacity .6s;
}
.layout-full .screen::after { opacity: 0; }

/* content views */
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; overflow: hidden; }
.view.on { opacity: 1; visibility: visible; transition: opacity .45s; }
.view.scaled .vs { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; transform: scale(var(--vs)); transition: transform .6s var(--ease); }
#ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.content-scoreboard #ink { display: none; }

/* ---------- scoreboard scenes (Race Center on the big screen) ---------- */
.sb-screen { position: absolute; inset: 0; }
.wipe { position: absolute; left: 0; right: 0; top: -40px; height: 40px; z-index: 6; pointer-events: none;
  background: linear-gradient(transparent, rgba(160,200,255,.55) 60%, #fff 62%, transparent); opacity: 0; }
.wipe.go { animation: wipe .7s ease-in both; }
@keyframes wipe { 0% { top: -40px; opacity: 1; } 100% { top: 100%; opacity: .6; } }
.progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; z-index: 6;
  background: linear-gradient(90deg, var(--ice), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.progress.run { animation: fill var(--dur, 10s) linear both; }
@keyframes fill { to { transform: scaleX(1); } }

.scene { position: absolute; inset: 0; padding: 26px 40px 30px; display: flex; flex-direction: column; }
.scene.in { animation: scene-in .55s .25s var(--ease) both; }
.scene.out { animation: scene-out .35s ease-in both; }
@keyframes scene-in { from { opacity: 0; transform: scale(1.04); filter: brightness(2.2); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scene-out { to { opacity: 0; transform: scale(.97); } }

.eyebrow { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 26px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px; border-radius: 4px; font-weight: 800; font-size: 22px; letter-spacing: .1em; color: #fff; }
.pill.in { background: var(--live); } .pill.in::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.pill.post { background: #3a4152; } .pill.pre { background: var(--pre); }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.sc-head h2 { margin: 0; font-family: var(--f-varsity); font-weight: 400; font-size: 40px; letter-spacing: .04em; color: var(--cream); text-transform: uppercase; text-wrap: balance; }
.sc-head span { font-weight: 700; font-size: 24px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

.tlogo { display: block; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.tbadge { display: grid; place-items: center; border-radius: 50%; font-weight: 900; color: #fff; letter-spacing: .02em; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); flex: none; }

.fx { flex: 1; display: grid; grid-template-columns: 250px 190px 1fr 190px 250px; align-items: center; }
.fx-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.fx-team .glow { position: relative; display: grid; place-items: center; width: 190px; height: 190px; }
.fx-team .glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--tc) 0%, transparent 68%); opacity: .55; }
.fx-team .glow > * { position: relative; }
.fx-abbr { font-weight: 900; font-size: 60px; line-height: 1; letter-spacing: .04em; }
.fx-name { font-weight: 700; font-size: 26px; color: var(--ink); opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.fx-rec { font-weight: 600; font-size: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-score { font-weight: 900; font-size: 210px; line-height: .9; text-align: center; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255,255,255,.35), 0 0 60px rgba(61,139,255,.35); }
.fx-score.dim { color: #3a4152; text-shadow: none; }
.fx-score.lead { color: #fff; } .fx-score.trail { color: #b9c0cf; text-shadow: none; }
.fx.away-in .fx-team.away, .fx.away-in .fx-score.away { animation: from-left .7s .35s var(--ease) both; }
.fx.away-in .fx-team.home, .fx.away-in .fx-score.home { animation: from-right .7s .35s var(--ease) both; }
@keyframes from-left { from { opacity: 0; transform: translateX(-120px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(120px); } }
.fx-mid { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nz { background: var(--logo) center/contain no-repeat; border-radius: 50%; }
/* A logo that isn't a round coin (logokit.js sets data-logo) keeps its own outline: no circle crop or rings, and the glow follows its shape. */
:root[data-logo="shaped"] :is(.nz, .jhead .mini-nz, .gate .gate-logo) { border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
:root[data-logo="shaped"] :is(.fx-mid .nz, .sl .nz, .v-title .nz, .gate .gate-logo) { filter: drop-shadow(0 0 30px rgba(61,139,255,.45)) drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.fx-mid .nz { width: 250px; height: 250px; animation: coin 1s .2s var(--ease) both, coin-idle 14s 2s ease-in-out infinite;
  box-shadow: 0 0 0 6px rgba(0,0,0,.35), 0 0 60px rgba(61,139,255,.35); }
@keyframes coin { from { transform: perspective(800px) rotateY(-540deg) scale(.4); opacity: 0; } }
@keyframes coin-idle { 0%, 88% { transform: perspective(800px) rotateY(0); } 100% { transform: perspective(800px) rotateY(360deg); } }
.fx-status { font-weight: 900; font-size: 46px; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-meta { text-align: center; font-weight: 600; font-size: 24px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.lg-grid { flex: 1; display: grid; gap: 10px 12px; align-content: center; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.lg-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; height: 86px; padding: 8px 12px 8px 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border-radius: 6px; overflow: hidden;
  animation: card-in .45s var(--ease) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.lg-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--final); }
.lg-card.st-in::before { background: var(--live); box-shadow: 0 0 14px var(--live); }
.lg-card.st-pre::before { background: var(--pre); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.lg-rows { display: grid; gap: 6px; min-width: 0; }
.lg-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; font-weight: 800; font-size: 30px; line-height: 1; }
.lg-row .sc { font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.lg-row.lose { color: #7f889b; }
.lg-st { display: grid; justify-items: center; min-width: 70px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.1);
  font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-card.st-in .lg-st { color: #ff8a84; }
.lg-card.st-pre .lg-st { color: #9cc2ff; }
.lg-grid.c5 .lg-card { padding: 8px 8px 8px 15px; gap: 6px; }
.lg-grid.c5 .lg-row { grid-template-columns: 30px 1fr auto; gap: 7px; font-size: 27px; }
.lg-grid.c5 .lg-st { min-width: 58px; padding-left: 7px; font-size: 18px; }
.lg-empty { flex: 1; display: grid; place-items: center; font-size: 34px; font-weight: 700; color: var(--muted); }

.nw { flex: 1; display: grid; grid-template-columns: 560px 1fr; gap: 40px; align-items: center; }
.nw-img { width: 560px; aspect-ratio: 16/9; max-width: 100%; border-radius: 6px; overflow: hidden; background: #000 var(--logo) center/40% no-repeat;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.6); animation: from-left .7s .3s var(--ease) both; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 12s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } }
.nw-copy { min-width: 0; display: grid; gap: 14px; animation: from-right .7s .4s var(--ease) both; }
.nw-tag { font-weight: 800; font-size: 22px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.nw-copy h3 { margin: 0; font-weight: 800; font-size: 46px; line-height: 1.08; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nw-copy p { margin: 0; font-weight: 500; font-size: 26px; line-height: 1.3; color: #c3c9d6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-dots { display: flex; gap: 10px; justify-content: center; }
.nw-dots i { width: 40px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.nw-dots i.on { background: var(--gold); }

.cr { flex: 1; display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; padding: 0 30px; }
.cr .nz { width: 300px; height: 300px; animation: coin 1s .2s var(--ease) both; }
.cr-label { font-weight: 900; font-size: 62px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.cr-num { font-weight: 900; font-size: 180px; line-height: .95; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255,255,255,.35); }
.cr-sub { font-weight: 700; font-size: 28px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.cr-sub b { color: var(--gold); }

.sp { flex: 1; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; }
.sp-k { font-weight: 800; font-size: 30px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; animation: rise .6s .3s both; }
.sp-url { font-family: var(--f-varsity); font-size: 86px; line-height: 1; letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(100deg, var(--cream) 0 40%, #fff 48%, var(--gold) 52%, var(--cream) 60% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 var(--navy)) drop-shadow(0 0 30px rgba(211,166,79,.35));
  animation: slam .7s .45s cubic-bezier(.2,1.4,.4,1) both, shine 3.5s 1.2s ease-in-out infinite; }
.sp-k2 { font-weight: 700; font-size: 30px; letter-spacing: .12em; color: var(--ice); text-transform: uppercase; animation: rise .6s .8s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes slam { from { opacity: 0; transform: scale(2.2); } }
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }

.goal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tc) 55%, #000), #000 75%); }
.goal::before { content: ""; position: absolute; inset: -60%; z-index: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--led-red) 50%, transparent) 0 12deg, transparent 12deg 30deg);
  animation: spin 3s linear infinite; }
.goal::after { content: ""; position: absolute; inset: 0; background: var(--led-red); mix-blend-mode: screen; animation: lamp .5s steps(1) infinite; }
.goal > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes lamp { 50% { opacity: 0; } 0% { opacity: .22; } }
.goal-word { font-family: var(--f-varsity); font-size: 230px; line-height: .9; color: #fff;
  text-shadow: 0 8px 0 var(--led-red), 0 0 40px rgba(255,255,255,.6); animation: slam .55s cubic-bezier(.2,1.4,.4,1) both; }
.goal-who { display: flex; align-items: center; gap: 20px; font-weight: 900; font-size: 56px; text-transform: uppercase; letter-spacing: .04em; animation: rise .5s .4s both; }
.goal-line { font-weight: 800; font-size: 34px; letter-spacing: .08em; color: #ffd9d6; text-transform: uppercase; font-variant-numeric: tabular-nums; animation: rise .5s .6s both; }

.strip { height: 74px; flex: none; display: grid; grid-template-columns: 1fr 110px 240px 110px 1fr; align-items: stretch;
  background: #07080c; border-radius: 2px 2px 6px 6px; overflow: hidden; border-top: 2px solid #2e3442; }
.strip > div { display: flex; align-items: center; justify-content: center; gap: 12px; }
.strip .side { position: relative; font-weight: 900; font-size: 32px; letter-spacing: .06em; padding: 0 16px; }
.strip .side::before { content: ""; position: absolute; inset: 8px 0; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 60%, #000)); opacity: .9; }
.strip .side.home::before { background: linear-gradient(270deg, var(--tc), color-mix(in srgb, var(--tc) 60%, #000)); }
.strip .side > * { position: relative; }
.strip .num { font-weight: 900; font-size: 50px; font-variant-numeric: tabular-nums; }
.strip .mid { flex-direction: column; gap: 0; line-height: 1.05; }
.strip .mid b { font-weight: 900; font-size: 30px; letter-spacing: .06em; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.strip .mid small { font-weight: 700; font-size: 17px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.strip.swap > * { animation: flip .5s var(--ease) both; }
.strip.swap > :nth-child(2), .strip.swap > :nth-child(4) { animation-delay: .08s; }
.strip.swap > :nth-child(3) { animation-delay: .04s; }
@keyframes flip { from { opacity: 0; transform: perspective(400px) rotateX(-90deg); } }

/* ---------- video ---------- */
#v-video { background: #000; }
#vid, #ytWrap { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
#ytWrap iframe { width: 100%; height: 100%; border: 0; pointer-events: none; }
#v-video:not(.src-file) #vid, #v-video:not(.src-yt) #ytWrap { display: none; }
.vid-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
  font-weight: 800; font-size: 34px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.vid-empty .nz { width: 200px; height: 200px; opacity: .5; animation: coin-idle 8s ease-in-out infinite; }
.layout-full .vid-empty { font-size: 54px; } .layout-full .vid-empty .nz { width: 320px; height: 320px; }
#v-video.src-file .vid-empty, #v-video.src-yt .vid-empty { display: none; }

/* ---------- image ---------- */
#v-image { background: #000; }
#imgEl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--fit, contain); }
.img-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 30px; font-weight: 800; font-size: 34px; letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(0,0,0,.8)); text-shadow: 0 2px 8px #000; }
.img-cap:empty { display: none; }

/* ---------- shared 1920x1080 view furniture ---------- */
.vs { font-family: var(--f-ui); color: var(--ink); }
.v-bg { position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--ice) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, color-mix(in srgb, var(--led-red) 14%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 6px, transparent 6px 12px),
    linear-gradient(#0d1424, #070a12); }
.v-title { position: absolute; left: 0; right: 0; top: 48px; display: flex; align-items: center; justify-content: center; gap: 26px; }
.v-title .nz { width: 92px; height: 92px; box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 40px rgba(61,139,255,.35); }
.v-title h1 { margin: 0; font-family: var(--f-varsity); font-weight: 400; font-size: 78px; letter-spacing: .04em; color: var(--cream); text-transform: uppercase;
  text-shadow: 0 5px 0 var(--navy), 0 0 30px rgba(0,0,0,.6); white-space: nowrap; }
.in-up { animation: rise .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms + .15s); }

/* ---------- rink ---------- */
#v-track .vs { background: radial-gradient(ellipse 80% 70% at 50% 55%, #18233a, #070a12); }
#rinkSvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rink-title { position: absolute; left: 60px; right: 60px; top: 50px; height: 120px; display: flex; align-items: center; gap: 24px;
  font-family: var(--f-varsity); font-size: 70px; color: var(--cream); text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 5px 0 var(--navy); }
.rink-title .nz { width: 96px; height: 96px; flex: none; }
.rink-title .key { margin-left: auto; display: flex; gap: 26px; font-family: var(--f-ui); font-size: 32px; font-weight: 800; letter-spacing: .08em; text-shadow: none; }
.rink-title .key i { display: inline-block; width: 26px; height: 26px; border-radius: 50%; margin-right: 10px; vertical-align: -3px; box-shadow: 0 0 0 3px #fff; }
.tok { transition: transform .12s linear; }

/* ---------- lineups ---------- */
.lu { position: absolute; inset: 0; }
.lu-cols { position: absolute; left: 50px; right: 50px; top: 175px; bottom: 40px; display: grid; gap: 40px; grid-template-columns: repeat(var(--n, 2), 1fr); }
.lu-team { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--tc) 38%, #0b1020), #0a0e18 60%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 60%, #000), 0 30px 60px rgba(0,0,0,.5); }
.lu-team::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 40% at 50% 0, rgba(255,255,255,.12), transparent 70%); pointer-events: none; }
.lu-head { position: relative; display: flex; align-items: center; gap: 22px; padding: 20px 28px; border-bottom: 3px solid rgba(255,255,255,.08); }
.lu-head img, .lu-head .tbadge { width: 104px; height: 104px; }
.lu-head .nm { font-weight: 900; font-size: 54px; line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.lu-head .tg { font-weight: 800; font-size: 24px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.lu-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 10px 20px 20px; }
.lu-row { display: flex; justify-content: center; gap: 22px; }
.pc { position: relative; width: 236px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pc .hs { position: relative; width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 70%, #fff 10%), color-mix(in srgb, var(--tc) 50%, #000));
  box-shadow: 0 0 0 5px rgba(255,255,255,.85), 0 12px 30px rgba(0,0,0,.5); display: grid; place-items: center; }
.pc .hs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.pc .hs .no { font-weight: 900; font-size: 74px; color: rgba(255,255,255,.92); }
.pc .num { position: absolute; top: 108px; right: 36px; min-width: 52px; padding: 2px 8px; border-radius: 8px; background: var(--cream); color: var(--navy); font-weight: 900; font-size: 30px; line-height: 1.1; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.pc .ln { margin-top: 12px; font-weight: 900; font-size: 36px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; max-width: 236px; overflow: hidden; text-overflow: ellipsis; }
.pc .fn { font-weight: 600; font-size: 22px; color: #c3c9d6; letter-spacing: .04em; white-space: nowrap; }
.pc .ps { position: absolute; top: -4px; left: 30px; padding: 0 10px; border-radius: 6px; background: var(--ice); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.pc.empty .hs { opacity: .35; } .pc.empty .ln { color: var(--muted); }
.lu-n1 .pc { width: 300px; } .lu-n1 .pc .hs { width: 190px; height: 190px; } .lu-n1 .pc .num { top: 140px; right: 50px; } .lu-n1 .pc .ln { font-size: 44px; max-width: 300px; }
.lu-n1 .lu-row { gap: 60px; }
/* lines view */
.ll { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px 26px 24px; flex: 1; align-content: space-evenly; }
.ll-row { display: grid; grid-template-columns: 74px repeat(3, 1fr); align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.ll-row.d { grid-template-columns: 74px repeat(2, 1fr); }
.ll-row.g { grid-template-columns: 74px repeat(2, 1fr); }
.ll-tag { font-weight: 900; font-size: 30px; color: var(--gold); text-align: center; letter-spacing: .04em; }
.ll-p { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 800; font-size: 30px; text-transform: uppercase; }
.ll-p img, .ll-p .dot { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; flex: none; background: color-mix(in srgb, var(--tc) 60%, #000); box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.ll-p span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-p small { color: var(--muted); font-size: 24px; margin-right: 4px; }
.lu-n2 .ll-p { font-size: 26px; } .lu-n2 .ll-p img, .lu-n2 .ll-p .dot { width: 46px; height: 46px; } .lu-n2 .ll-row { grid-template-columns: 60px repeat(3, 1fr); }
.lu-n2 .ll-row.d, .lu-n2 .ll-row.g { grid-template-columns: 60px repeat(2, 1fr); }

/* ---------- stats ---------- */
.st1 { position: absolute; left: 70px; right: 70px; top: 190px; bottom: 60px; display: grid; grid-template-columns: 640px 1fr; gap: 60px; align-items: center; }
.st-photo { position: relative; height: 760px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tc) 85%, #fff 8%), color-mix(in srgb, var(--tc) 45%, #000) 75%);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 40px 80px rgba(0,0,0,.6); animation: from-left .8s .1s var(--ease) both; }
.st-photo .bignum { position: absolute; right: -20px; bottom: -70px; font-weight: 900; font-size: 520px; line-height: 1; color: rgba(255,255,255,.12); letter-spacing: -.04em; }
.st-photo img.hs { position: absolute; left: 50%; bottom: 0; width: 120%; transform: translateX(-50%); }
.st-photo .tlogo, .st-photo .tbadge { position: absolute; left: 26px; top: 26px; width: 110px; height: 110px; }
.st-info { animation: from-right .8s .2s var(--ease) both; }
.st-kick { font-weight: 800; font-size: 30px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.st-name { margin: 6px 0 4px; font-family: var(--f-varsity); font-weight: 400; font-size: 110px; line-height: .95; color: #fff; text-transform: uppercase; text-shadow: 0 6px 0 var(--navy); }
.st-sub { font-weight: 700; font-size: 34px; color: #c3c9d6; letter-spacing: .06em; text-transform: uppercase; }
.st-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.st-cell { padding: 20px 24px; border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); animation: card-in .5s var(--ease) both; animation-delay: calc(.5s + var(--i) * 80ms); }
.st-cell b { display: block; font-weight: 900; font-size: 96px; line-height: 1; font-variant-numeric: tabular-nums; }
.st-cell span { font-weight: 800; font-size: 28px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.st-career { margin-top: 26px; font-weight: 700; font-size: 28px; color: var(--cream); letter-spacing: .04em; }
.st2 { position: absolute; left: 60px; right: 60px; top: 180px; bottom: 50px; display: grid; grid-template-columns: 1fr 380px 1fr; gap: 30px; }
.st2-p { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.st2-p .st-photo { width: 100%; height: 470px; }
.st2-p .st-photo .bignum { font-size: 360px; bottom: -50px; }
.st2-p .nm { margin-top: 8px; font-family: var(--f-varsity); font-size: 60px; line-height: 1; text-transform: uppercase; text-shadow: 0 4px 0 var(--navy); }
.st2-p .sb { font-weight: 700; font-size: 26px; color: #c3c9d6; letter-spacing: .08em; text-transform: uppercase; }
.st2-mid { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cmp { display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 10px; animation: card-in .5s var(--ease) both; animation-delay: calc(.4s + var(--i) * 90ms); }
.cmp b { font-weight: 900; font-size: 56px; font-variant-numeric: tabular-nums; color: #8b94a7; }
.cmp b.win { color: #fff; text-shadow: 0 0 20px rgba(255,255,255,.45); }
.cmp b:first-child { text-align: right; }
.cmp span { text-align: center; font-weight: 800; font-size: 26px; letter-spacing: .14em; color: var(--gold); }

/* ---------- slates ---------- */
.sl { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; gap: 22px; }
.sl .nz { width: 300px; height: 300px; animation: coin 1s .1s var(--ease) both, coin-idle 10s 2s ease-in-out infinite; box-shadow: 0 0 0 8px rgba(0,0,0,.35), 0 0 90px rgba(61,139,255,.45); }
.sl h1 { margin: 10px 0 0; font-family: var(--f-varsity); font-weight: 400; font-size: 150px; line-height: .95; letter-spacing: .03em; color: var(--cream); text-transform: uppercase;
  text-shadow: 0 8px 0 var(--navy), 0 0 60px rgba(0,0,0,.6); animation: slam .7s .3s cubic-bezier(.2,1.4,.4,1) both; }
.sl .sub { font-weight: 700; font-size: 42px; letter-spacing: .08em; color: #c3c9d6; text-transform: uppercase; animation: rise .6s .6s both; }
.sl .cd { font-weight: 900; font-size: 190px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 30px rgba(61,139,255,.6); animation: rise .6s .8s both; }
.sl .soc { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; margin-top: 10px; animation: rise .6s .9s both; }
.sl .soc span { padding: 12px 26px; border-radius: 12px; background: rgba(255,255,255,.08); font-weight: 800; font-size: 36px; letter-spacing: .04em; }
.sl .soc span em { font-style: normal; color: var(--gold); margin-right: 12px; font-size: .8em; letter-spacing: .14em; text-transform: uppercase; }
.sl .next { font-weight: 800; font-size: 36px; color: var(--ice); letter-spacing: .1em; text-transform: uppercase; animation: rise .6s 1s both; }
.sl-row { display: flex; align-items: center; gap: 70px; }
.sl-row .nz { width: 260px; height: 260px; }

/* ---------- poll ---------- */
.pl { position: absolute; left: 80px; right: 80px; top: 190px; bottom: 70px; display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: center; }
.pl-q { font-weight: 900; font-size: 76px; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; margin-bottom: 36px; }
.pl-kind { font-weight: 800; font-size: 30px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; display: flex; gap: 18px; align-items: center; }
.pl-kind .live { padding: 2px 14px; border-radius: 6px; background: var(--live); color: #fff; letter-spacing: .12em; font-size: 24px; }
.pl-kind .closed { padding: 2px 14px; border-radius: 6px; background: #3a4152; color: #fff; letter-spacing: .12em; font-size: 24px; }
.pl-opts { display: grid; gap: 18px; }
.po { position: relative; height: 92px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.06); display: flex; align-items: center; padding: 0 28px; gap: 20px; }
.po .bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: linear-gradient(90deg, color-mix(in srgb, var(--ice) 75%, #000), var(--ice)); transition: width .8s var(--ease); }
.po.lead .bar { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 70%, #000), var(--gold)); }
.po > :not(.bar) { position: relative; }
.po .n { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); font-weight: 900; font-size: 32px; flex: none; }
.po .t { flex: 1; font-weight: 800; font-size: 44px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po .pct { font-weight: 900; font-size: 48px; font-variant-numeric: tabular-nums; }
.pl-qr { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.pl-qr img { width: 400px; height: 400px; border-radius: 22px; background: #fff; padding: 18px; box-shadow: 0 0 0 6px var(--gold), 0 30px 60px rgba(0,0,0,.5); }
.pl-qr b { font-weight: 900; font-size: 40px; letter-spacing: .06em; text-transform: uppercase; }
.pl-qr span { font-weight: 700; font-size: 26px; color: #c3c9d6; letter-spacing: .04em; }
.pl-total { margin-top: 18px; font-weight: 700; font-size: 30px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- sponsor ad ---------- */
.spn { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 30px; text-align: center; }
.spn .k { font-weight: 800; font-size: 40px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; animation: rise .6s .2s both; }
.spn img { max-width: 1100px; max-height: 480px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); animation: slam .7s .35s cubic-bezier(.2,1.4,.4,1) both; }
.spn .nm { font-family: var(--f-varsity); font-size: 170px; line-height: .95; color: var(--cream); text-transform: uppercase; text-shadow: 0 9px 0 #b3262c, 0 18px 0 rgba(0,0,0,.4); animation: slam .7s .35s cubic-bezier(.2,1.4,.4,1) both; }
.spn .url { display: inline-block; padding: 12px 34px; border-radius: 12px; background: var(--cream); color: var(--navy); font-weight: 900; font-size: 64px; letter-spacing: .02em; animation: rise .6s .7s both; }
.spn .tag { font-weight: 700; font-size: 40px; letter-spacing: .1em; color: var(--ice); text-transform: uppercase; animation: rise .6s .9s both; }

/* ---------- mascot riser ---------- */
.riser { position: absolute; left: 40px; top: 186px; width: 270px; height: 612px; z-index: 8; transform-origin: 0 0; }
.bubble { position: absolute; left: 6px; right: 6px; top: 0; padding: 12px 16px; border-radius: 14px; z-index: 2;
  background: var(--cream); color: #16120c; font-weight: 800; font-size: 25px; line-height: 1.15; text-align: center; text-wrap: balance;
  box-shadow: 0 10px 24px rgba(0,0,0,.5); transform-origin: 60% 120%;
  opacity: 0; transform: scale(.6) translateY(10px); transition: opacity .3s, transform .45s cubic-bezier(.2,1.5,.4,1); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -14px; border: 14px solid transparent; border-bottom: 0; border-top-color: var(--cream); transform: translateX(-50%); }
.bubble.on { opacity: 1; transform: none; }
.fb { position: absolute; left: 20px; top: 92px; width: 230px; height: 422px; overflow: visible; }
.fb * { transform-box: view-box; }
.fb-bob { animation: bob .9s ease-in-out infinite; }
.fb-head { transform-origin: 120px 182px; animation: nod 1.8s ease-in-out infinite; }
.fb-eyes > g { transform-box: fill-box; transform-origin: center; animation: eyeblink 5.5s infinite; }
.fb-cap { animation: cap-glow 1.8s ease-in-out infinite; }
.fb-arm-l { transform-origin: 54px 198px; transition: transform .3s; }
.fb-arm-r { transform-origin: 186px 198px; transition: transform .4s; }
.riser.wave .fb-arm-r { animation: wave 2.4s ease-in-out 1; }
.riser.party .fb-bob, .riser[data-mood="hype"] .fb-bob { animation: jump .45s cubic-bezier(.3,0,.5,1) infinite alternate; }
.riser.party .fb-arm-l, .riser[data-mood="hype"] .fb-arm-l { transform: rotate(150deg); transition: transform .25s; }
.riser.party .fb-arm-r, .riser[data-mood="hype"] .fb-arm-r { transform: rotate(-150deg); animation: none; }
.riser.party .fb-shadow, .riser[data-mood="hype"] .fb-shadow { animation: shadow .45s cubic-bezier(.3,0,.5,1) infinite alternate; }
.riser[data-mood="mad"] .fb-head { animation: shake .5s ease-in-out infinite; }
.riser[data-mood="mad"] .fb-arm-l { transform: rotate(-28deg); } .riser[data-mood="mad"] .fb-arm-r { transform: rotate(28deg); }
.riser[data-mood="shocked"] .fb-arm-l { transform: rotate(160deg); } .riser[data-mood="shocked"] .fb-arm-r { transform: rotate(-160deg); }
.riser[data-mood="cool"] .fb-arm-r { transform: rotate(-110deg); }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes nod { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg) translateY(2px); } }
@keyframes shake { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes eyeblink { 0%, 94%, 100% { transform: none; } 96% { transform: scaleY(.1); } }
@keyframes cap-glow { 50% { filter: drop-shadow(0 0 7px var(--ice)) brightness(1.35); } }
@keyframes wave { 0%, 100% { transform: none; } 20%, 50%, 80% { transform: rotate(-148deg); } 35%, 65% { transform: rotate(-174deg); } }
@keyframes jump { from { transform: translateY(0); } to { transform: translateY(-42px); } }
@keyframes shadow { to { transform: scale(.7); opacity: .5; } }
.fb-shadow { transform-origin: 120px 424px; }
/* moods swap brows / mouth / shades */
.fb .mz { display: none; }
.fb .brow-def, .fb .mouth-def { display: inline; }
.riser[data-mood="mad"] .brow-def, .riser[data-mood="mad"] .mouth-def,
.riser[data-mood="shocked"] .brow-def, .riser[data-mood="shocked"] .mouth-def,
.riser[data-mood="hype"] .mouth-def { display: none; }
.riser[data-mood="mad"] .brow-mad, .riser[data-mood="mad"] .mouth-mad,
.riser[data-mood="shocked"] .brow-shock, .riser[data-mood="shocked"] .mouth-shock,
.riser[data-mood="hype"] .mouth-shock, .riser[data-mood="cool"] .shades { display: inline; }
.riser.talking .mouth-def { transform-box: fill-box; transform-origin: 50% 20%; animation: talk .18s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scaleY(.55); } }

.floor { position: absolute; left: 0; right: 0; top: 498px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20% 80%, transparent); box-shadow: 0 0 22px rgba(211,166,79,.6); }
.floor::after { content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 70px; background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(211,166,79,.28), transparent); }
.plate { position: absolute; left: 16px; right: 16px; top: 524px; padding: 12px 10px 10px; text-align: center; border-radius: 10px;
  background: linear-gradient(#141018, #0a080c); border: 2px solid var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.plate::before { content: ""; position: absolute; left: 10px; right: 10px; top: -8px; height: 8px; border-radius: 6px 6px 0 0; background: var(--ice); }
.plate b { display: block; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: .1em; color: var(--cream); }
.plate span { display: block; margin-top: 4px; font-weight: 600; font-size: 21px; color: #d9d0bd; letter-spacing: .02em; }
/* cameo: the mascot shrinks into the bottom-left corner in full layout */
.layout-full .riser { transform: translate(0, 300px) scale(.56); }
.layout-full.crawl-off .riser { transform: translate(0, 390px) scale(.56); }
.layout-full .riser .floor, .layout-full .riser .floor::after { opacity: 0; }
.layout-full .riser .plate { opacity: .95; }
.layout-full .bubble { font-size: 40px; right: -330px; padding: 16px 22px; border-radius: 20px; transform-origin: 20% 120%; }
.layout-full .bubble::after { left: 120px; }

/* ---------- live camera boxes ---------- */
/* Arena: a framed LED screen standing where the mascot (left) or the sponsor tower (right) would be. */
.camslot { position: absolute; top: 196px; width: 270px; z-index: 8; --cam-w: 520px; }
.camslot.left { left: 40px; } .camslot.right { right: 40px; }
.camslot.off { transform: translateY(20px); }
.cam-screen { position: relative; height: 470px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1a2335, #07090e);
  box-shadow: 0 0 0 3px #2b2f3a, 0 0 0 6px #0b0d12, 0 22px 50px rgba(0,0,0,.65), 0 0 50px rgba(61,139,255,.18); }
.cam-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.cam-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cam-screen video.mirror { transform: scaleX(-1); }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; padding: 16px; text-align: center;
  font-weight: 800; font-size: 24px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.cam-msg .nz { width: 120px; height: 120px; opacity: .55; animation: coin-idle 8s ease-in-out infinite; }
.cam-msg:empty { display: none; }
.cam-live { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 5px; background: var(--live);
  font-weight: 900; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.cam-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
.camslot:not(.has-video) .cam-live { display: none; }
.cam-plate { position: relative; margin: 14px 16px 0; padding: 12px 10px 10px; text-align: center; border-radius: 10px;
  background: linear-gradient(#141018, #0a080c); border: 2px solid var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.cam-plate::before { content: ""; position: absolute; left: 10px; right: 10px; top: -8px; height: 8px; border-radius: 6px 6px 0 0; background: var(--ice); }
.cam-plate b { display: block; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: .08em; color: var(--cream); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-plate span { display: block; margin-top: 4px; font-weight: 600; font-size: 20px; color: #d9d0bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-plate span:empty { display: none; }
.camslot.no-plate .cam-plate { display: none; }
.camslot.green .cam-screen { background: #00ff00; box-shadow: none; border-radius: 0; }
.camslot.green .cam-screen::after { display: none; }
/* Fullscreen: picture-in-picture boxes in the bottom corners, name strip across the bottom of the frame. */
.layout-full .camslot { top: auto; bottom: 110px; width: var(--cam-w); }
.layout-full.crawl-off .camslot { bottom: 40px; }
.layout-full .camslot.left { left: 40px; } .layout-full .camslot.right { right: 40px; }
.layout-full .cam-screen { height: calc(var(--cam-w) * 9 / 16); border-radius: 14px; box-shadow: 0 0 0 4px var(--gold), 0 24px 50px rgba(0,0,0,.6); }
:is(.layout-full, .layout-cam) .cam-plate { position: absolute; left: 0; right: auto; bottom: 0; margin: 0; max-width: 92%; padding: 6px 18px 7px 14px; text-align: left; border: 0;
  border-radius: 0 10px 0 14px; background: linear-gradient(90deg, var(--navy), rgba(10,21,48,.92)); border-top: 3px solid var(--gold); box-shadow: none; }
:is(.layout-full, .layout-cam) .cam-plate::before { display: none; }
.layout-full .cam-plate b { font-size: 28px; } .layout-full .cam-plate span { font-size: 17px; margin-top: 1px; }
.layout-full .camslot.green .cam-screen { border-radius: 0; box-shadow: none; }
.layout-full.cam1-on .lower { left: calc(var(--cam-w) + 80px); }
.cam-size-S { --cam-w: 400px; } .cam-size-M { --cam-w: 520px; } .cam-size-L { --cam-w: 680px; }
.cam-size-S .camslot { --cam-w: 400px; } .cam-size-M .camslot { --cam-w: 520px; } .cam-size-L .camslot { --cam-w: 680px; }
.overlay-only .camslot.green .cam-screen { background: #00ff00; }

/* Camera center: the cameras hang where the jumbotron does, with the mascot, the sign, the tower, the ribbon and
   the crawl around them. Two cameras split the frame. Any main screen except the scoreboard (the ribbon carries
   the scores) shrinks to a box over the host's shoulder. display.js only adds .layout-cam while a camera is on,
   so with every camera off this layout is simply the arena.

   The camera box is --cw wide (a plain number of stage px) and always sits dead centre, so --cam-gap is the
   space left over on each side of it. Full width leaves only 300px there, which is why a side column that
   clears the picture has to be narrow unless the box is set smaller: that is the whole trade. */
body { --cw: 1240; --cam-gap: calc((1920 - var(--cw)) / 2); }
.cam-w-full { --cw: 1240; } .cam-w-L { --cw: 1040; } .cam-w-M { --cw: 840; } .cam-w-S { --cw: 640; }
.layout-cam { --cwpx: calc(var(--cw) * 1px); --cam-x: calc(var(--cam-gap) * 1px); }
.layout-cam .camslot { top: 156px; left: var(--cam-x); right: auto; width: var(--cwpx);
  transition: opacity .45s ease, transform .55s var(--ease), left .55s var(--ease), width .55s var(--ease); }
.layout-cam.cam1-on.cam2-on .camslot.left  { width: calc((var(--cwpx) - 40px) / 2); }
.layout-cam.cam1-on.cam2-on .camslot.right { left: calc(var(--cam-x) + (var(--cwpx) + 40px) / 2); width: calc((var(--cwpx) - 40px) / 2); }
.layout-cam .cam-screen { height: 654px; border-radius: 6px;
  box-shadow: 0 0 0 10px #1c212b, 0 0 0 12px #0b0d12, 0 0 0 15px rgba(211,166,79,.55), 0 40px 90px rgba(0,0,0,.75), 0 0 120px rgba(61,139,255,.2); }
.layout-cam .cam-screen::after { display: none; }
.layout-cam .cam-live { left: 18px; top: 18px; font-size: 22px; }
.layout-cam .cam-plate b { font-size: 36px; } .layout-cam .cam-plate span { font-size: 21px; margin-top: 2px; }
.layout-cam .cam-plate { transition: opacity .35s; }
.layout-cam.lt-on .cam-plate { opacity: 0; }   /* the lower third names them instead */
.layout-cam .lower { left: calc(var(--cam-x) + 40px); bottom: 214px; }
.layout-cam .jumbo { z-index: 9; opacity: 0; pointer-events: none; transform-origin: 0 0; transform: translate(0, 42px) scale(.4); }
.layout-cam .jumbo::before, .layout-cam .jumbo::after { display: none; }
.layout-cam:is(.cam-box-left, .cam-box-right) .jumbo { opacity: 1; pointer-events: auto; box-shadow: 0 0 0 10px rgba(211,166,79,.75), 0 40px 90px rgba(0,0,0,.75); }
.layout-cam.cam-box-right .jumbo { transform: translate(718px, 42px) scale(.4); }

/* ---------- Camera center: the side column ----------
   A tall panel standing down one side of the frame, at close to full size, instead of the thumbnail over the
   host's shoulder. Race Center needs it (the whole running order is unreadable shrunk to a corner
   box) and any other main screen can use it too. Two ways to make space for it:
     .col-push  the cameras move over beside it and narrow, keeping their full height, so the host still
                fills the box (the video is cover-fit). the mascot gives up his column on the left, the sponsor
                tower gives up its column on the right.
     .col-over  the cameras don't move at all - they stay dead centre where they were - and the column floats
                over the edge of the picture, lifted off it by a gold edge and a deep shadow. Pick a smaller
                size to keep it clear of the host.
   --col-w is the panel's width on the 1920 stage and --col-x its left edge, both plain numbers; --col-s is
   the scale that gets the jumbotron box to that width (so the column comes out the width you asked for
   whichever box the content uses), --col-h its height there, and --col-end the stage y it ends at. */
/* Fit: exactly the space beside the camera box, so the column never covers a frame of it. How big that is
   depends on the camera box width - full width leaves 290px, the smallest box leaves 590px. */
.col-size-fit { --col-w: calc(var(--cam-gap) - 50); --col-wpx: calc((var(--cam-gap) - 50) * 1px); }
.col-size-XS { --col-w: 560;  --col-wpx: 560px; }
.col-size-S  { --col-w: 700;  --col-wpx: 700px; }
.col-size-M  { --col-w: 860;  --col-wpx: 860px; }
.col-size-L  { --col-w: 1020; --col-wpx: 1020px; }
.layout-cam.col-left  { --col-x: 40; --col2-x: calc(1880 - var(--col-w)); }
.layout-cam.col-right { --col-x: calc(1880 - var(--col-w)); --col2-x: 40; }
.layout-cam.col-on { --col-s: calc(var(--col-w) / var(--j-w));
  --col-h: calc(var(--j-h) * var(--col-s) * 1px); --col-end: calc(156px + var(--col-h)); }
.layout-cam.col-on .jumbo { opacity: 1; pointer-events: auto;
  transform: translate(calc((var(--col-x) - var(--j-l)) * 1px), 22px) scale(var(--col-s));
  box-shadow: 0 0 0 10px rgba(211,166,79,.75), 0 40px 90px rgba(0,0,0,.75); }
/* Make room: the cameras move into what's left of the frame. */
.layout-cam.col-on.col-push { --col-rest: calc(1510px - var(--col-wpx)); }
.layout-cam.col-on.col-push.col-left  { --cam-l: calc(70px + var(--col-wpx)); }
.layout-cam.col-on.col-push.col-right { --cam-l: 340px; }
.layout-cam.col-on.col-push { --push-w: min(var(--cwpx), var(--col-rest)); }
.layout-cam.col-on.col-push .camslot { left: calc(var(--cam-l) + (var(--col-rest) - var(--push-w)) / 2); width: var(--push-w); }
/* Two cameras stack rather than split: side by side in what's left of the frame each one would be a sliver.
   Capped at 16:9 and centred in the column so a stacked box never letterboxes a face into a strip. */
.layout-cam.col-on.col-push.cam1-on.cam2-on { --cam2-w: min(var(--push-w), 564px); --cam2-l: calc(var(--cam-l) + (var(--col-rest) - min(var(--push-w), 564px)) / 2); }
.layout-cam.col-on.col-push.cam1-on.cam2-on .cam-screen { height: 317px; }
.layout-cam.col-on.col-push.cam1-on.cam2-on .camslot.left  { top: 156px; left: var(--cam2-l); width: var(--cam2-w); }
.layout-cam.col-on.col-push.cam1-on.cam2-on .camslot.right { top: 493px; left: var(--cam2-l); width: var(--cam2-w); }
.layout-cam.col-on.col-push.col-left .lower { left: calc(var(--cam-l) + 10px); }
/* Over the camera: nothing else moves, so the column needs a harder edge to read against a face. */
.layout-cam.col-on.col-over .jumbo { box-shadow: 0 0 0 4px #0b0d12, 0 0 0 12px rgba(211,166,79,.9), 0 30px 120px rgba(0,0,0,.95); }
/* A second main screen stands in a matching column on the other side, so one screen can run scores while the
   other runs standings with the host between them. 1197 and 682 are the second box's own width and height. */
.layout-cam.col2-on .jumbo2 { opacity: 1; pointer-events: auto;
  transform: translate(calc((var(--col2-x) - 361.5) * 1px), 22px) scale(calc(var(--col-w) / 1197));
  box-shadow: 0 0 0 10px rgba(211,166,79,.75), 0 40px 90px rgba(0,0,0,.75); }
.layout-cam.col2-on.col-over .jumbo2 { box-shadow: 0 0 0 4px #0b0d12, 0 0 0 12px rgba(211,166,79,.9), 0 30px 120px rgba(0,0,0,.95); }
/* With two columns the frame is full, so the cameras always keep the box width they were given: there is no
   "move over" to make - the space between the columns is exactly what Camera box and Width: Fit set up. */
.layout-cam.col2-on.col-push .camslot { left: var(--cam-x); width: var(--cwpx); }
.layout-cam.col2-on.col-push.cam1-on.cam2-on .camslot.left  { top: 156px; left: var(--cam-x); width: calc((var(--cwpx) - 40px) / 2); }
.layout-cam.col2-on.col-push.cam1-on.cam2-on .camslot.right { top: 156px; left: calc(var(--cam-x) + (var(--cwpx) + 40px) / 2); width: calc((var(--cwpx) - 40px) / 2); }
.layout-cam.col2-on.col-push.cam1-on.cam2-on .cam-screen { height: 654px; }
.layout-cam.col2-on.col-push.col-left .lower { left: calc(var(--cam-x) + 40px); }
/* The second column stands in whichever of the mascot's or the tower's spot the first one did not take, and the
   pop-up stack keeps clear of it the same way. */
.layout-cam.col2-on.col-left:not(.pops-right):not(.pops-left) .right-stack { right: calc(var(--col-wpx) + 50px); }

/* Either way, the pop-up stack steps aside for a column on the right - unless it's been sent there itself. */
.layout-cam.col-on.col-right:not(.pops-right):not(.pops-left) .right-stack { right: calc(var(--col-wpx) + 50px); }

/* ---------- sponsor tower ---------- */
.tower { position: absolute; right: 40px; top: 186px; width: 270px; z-index: 2; display: grid; gap: 14px; }
.tw-board { position: relative; min-height: 236px; padding: 26px 18px 22px; border-radius: 12px; text-align: center; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), #0a1530 70%); box-shadow: 0 0 0 3px #2b3240, 0 20px 50px rgba(0,0,0,.6); }
.tw-board::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat;
  animation: sheen 5s ease-in-out infinite; }
.tw-board .tw-in { animation: flip .6s var(--ease) both; }
@keyframes sheen { 0%, 40% { background-position: -200% 0; } 80%, 100% { background-position: 300% 0; } }
.tw-k { font-weight: 800; font-size: 19px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.tw-name { margin: 12px 0 8px; font-family: var(--f-varsity); font-size: 50px; line-height: .98; color: var(--cream); text-shadow: 0 4px 0 #b3262c, 0 8px 0 rgba(0,0,0,.4); text-transform: uppercase; overflow-wrap: anywhere; }
.tw-logo { display: block; margin: 14px auto 10px; max-width: 220px; max-height: 110px; object-fit: contain; }
.tw-url { display: inline-block; padding: 6px 12px; border-radius: 4px; background: var(--cream); color: var(--navy); font-weight: 900; font-size: 27px; letter-spacing: .02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-stars { margin-top: 12px; color: var(--cream); letter-spacing: .5em; font-size: 18px; opacity: .8; }
/* The box under the sponsor board is exactly its size: both tower rows share the taller height. */
.tower { grid-auto-rows: 1fr; }
.pulse { display: flex; flex-direction: column; min-height: 236px; padding: 18px 18px 14px; border-radius: 12px; overflow: hidden;
  background: rgba(14,17,23,.92); box-shadow: 0 0 0 3px #2b3240, 0 20px 50px rgba(0,0,0,.6); }
.pulse .pl-in { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: flip .6s var(--ease) both; }
.pulse h4 { margin: 0 0 8px; font-weight: 800; font-size: 20px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase;
  display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pulse h4 small { margin-left: auto; font-size: 14px; letter-spacing: .1em; font-weight: 700; opacity: .8; }
.pulse dl { margin: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-content: space-evenly; }
.pulse dl > div { display: grid; }
/* score rows: AWY 3  HOM 2  Final */
.pl-list { flex: 1; display: grid; align-content: start; }
.pulse .pl-g { display: grid; grid-template-columns: 1fr 24px 1fr 24px 62px; align-items: center; gap: 4px; padding: 5px 0; line-height: 1.1;
  border-top: 1px solid rgba(255,255,255,.07); font-variant-numeric: tabular-nums; }
.pulse .pl-g:first-child { border-top: 0; }
.pl-t { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--cream); }
.pl-t i { flex: none; width: 6px; height: 18px; border-radius: 2px; background: var(--tc, var(--muted)); }
.pl-s { font-weight: 900; font-size: 21px; text-align: right; color: #fff; }
.pl-s + .pl-t { padding-left: 8px; }
.pl-g .lose { opacity: .5; }
.pl-st { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-align: right; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-g.in .pl-st { color: var(--live); }
.pl-g.pre .pl-st { color: #8fbcff; }
.pl-none { flex: 1; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 18px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.pulse dt { font-weight: 700; font-size: 17px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.pulse dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.pulse dd { margin: 0; font-weight: 900; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.layout-full .tower, .stack-on:not(.pops-left) .tower { opacity: 0 !important; transform: translateX(60px); pointer-events: none; }
/* ... and the mascot steps aside when the stack has been sent over to his side instead. */
.layout-cam.pops-left.stack-on .riser { opacity: 0 !important; transform: translateX(-60px); pointer-events: none; }

/* ---------- ribbon board ---------- */
.ribbon { position: absolute; left: 0; right: 0; top: 826px; height: 72px; z-index: 2; overflow: hidden;
  background: #030303; border-top: 3px solid #262b36; border-bottom: 3px solid #262b36; }
.ribbon::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 1.3px, rgba(0,0,0,.6) 1.9px) 0 0 / 4px 4px; }
.track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; white-space: nowrap; will-change: transform; animation: marquee var(--dur, 60s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.track > span { display: inline-flex; align-items: center; }
.rb { font-weight: 900; font-size: 44px; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.35); }
.rb .g { display: inline-flex; align-items: baseline; gap: 14px; padding: 0 34px; }
.rb .g em { font-style: normal; color: var(--amber); font-size: .72em; letter-spacing: .1em; }
.rb .g .lose { opacity: .55; }
.rb .sep { color: #9aa3b5; font-size: .7em; }
.rb .lbl { padding: 0 28px; color: var(--amber); text-shadow: 0 0 12px var(--amber); }
.rb .spon { padding: 0 40px; color: var(--led-red); text-shadow: 0 0 14px var(--led-red); }
.ribbon.goal-mode .track { animation-play-state: paused; opacity: 0; }
.rb-goal { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-around; font-weight: 900; font-size: 50px;
  color: #fff; text-transform: uppercase; letter-spacing: .1em; text-shadow: 0 0 14px var(--led-red); animation: neon-flash .35s steps(1) infinite; --neon: var(--led-red); }
.ribbon.goal-mode .rb-goal { display: flex; }
.layout-full .ribbon, .lt-on .ribbon { opacity: 0 !important; }

/* ---------- broadcast crawl ---------- */
.crawl { position: absolute; left: 48px; right: 48px; top: 934px; height: 82px; z-index: 9; display: flex; border-radius: 6px; overflow: hidden;
  background: linear-gradient(#11141b, #0a0c11); box-shadow: 0 0 0 2px #232a36, 0 14px 30px rgba(0,0,0,.6); }
.cw-tag { flex: none; display: flex; align-items: center; padding: 0 40px 0 26px; background: var(--led-red); font-weight: 900; font-style: italic; font-size: 34px; letter-spacing: .06em; color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); text-transform: uppercase; }
.cw-win { position: relative; flex: 1; overflow: hidden; min-width: 0; }
.cw { font-weight: 700; font-size: 32px; letter-spacing: .01em; color: var(--ink); }
.cw .h { padding: 0 28px; }
.cw .h b { color: var(--gold); margin-right: 10px; }
.cw .sep { color: var(--gold); }
.cw .spon { padding: 0 28px; color: var(--cream); font-weight: 900; letter-spacing: .06em; }
.cw-bug { flex: none; display: grid; align-content: center; justify-items: end; padding: 0 22px 0 30px; background: linear-gradient(90deg, transparent, var(--navy) 22px); clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
.cw-bug b { font-weight: 900; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.cw-bug span { font-weight: 700; font-size: 19px; letter-spacing: .1em; color: var(--cream); text-transform: uppercase; }
.layout-full .crawl { left: 0; right: 0; top: 998px; height: 82px; border-radius: 0; }

/* ---------- pop-ups ---------- */
.ov { position: absolute; z-index: 20; }
.ov.off { transform: translateY(14px); }

/* scorebug */
.scorebug { left: 48px; top: 40px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); }
.scorebug.off { transform: translateY(-30px); }
.sbg { display: flex; height: 70px; border-radius: 10px; overflow: hidden; background: #0b0d12; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.sbg-logo { width: 70px; flex: none; background: var(--navy) var(--logo) center/58px no-repeat; }
.sbg-t { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px; min-width: 210px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 92%, #000), color-mix(in srgb, var(--tc) 60%, #000)); }
.sbg-t img, .sbg-t .tbadge { width: 50px; height: 50px; }
.sbg-t .ab { flex: 1; font-weight: 900; font-size: 36px; letter-spacing: .05em; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.sbg-t .sc { width: 64px; align-self: stretch; display: grid; place-items: center; background: rgba(0,0,0,.35); font-weight: 900; font-size: 46px; font-variant-numeric: tabular-nums; }
.sbg-t .sc.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); color: var(--gold); } }
.sbg-t .pp { position: absolute; left: 12px; bottom: -1px; padding: 0 8px; border-radius: 4px 4px 0 0; background: var(--amber); color: #111; font-weight: 900; font-size: 15px; letter-spacing: .12em; }
.sbg-mid { display: grid; align-content: center; justify-items: center; min-width: 130px; padding: 0 16px; line-height: 1; }
.sbg-mid b { font-weight: 900; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.sbg-mid span { font-weight: 900; font-size: 34px; font-variant-numeric: tabular-nums; }
.sbg-sub { display: flex; justify-content: flex-start; margin-left: 70px; }
.sbg-sub span { padding: 3px 14px; border-radius: 0 0 8px 8px; background: rgba(11,13,18,.92); font-weight: 800; font-size: 19px; letter-spacing: .14em; color: #c3c9d6; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* lower third */
.lower { left: 330px; bottom: 150px; display: flex; align-items: stretch; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.layout-full .lower { left: 220px; bottom: 120px; }
.layout-full.crawl-off .lower { bottom: 70px; }
.lower .lt-coin { width: 132px; height: 132px; flex: none; border-radius: 50%; background: var(--navy) var(--logo) center/contain no-repeat content-box border-box;
  padding: calc((1 - var(--logo-fit)) * 66px); box-shadow: 0 0 0 5px var(--gold); z-index: 1; margin-right: -30px; align-self: center; }
.lower .lt-body { display: flex; flex-direction: column; min-width: 560px; max-width: 1300px; }
.lower .lt-name { padding: 12px 40px 8px 56px; background: linear-gradient(100deg, var(--navy), #0a1530); border-top: 4px solid var(--gold); border-radius: 0 12px 0 0;
  font-weight: 900; font-style: italic; font-size: 60px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.lower .lt-title { align-self: flex-start; padding: 7px 30px 8px 56px; background: var(--led-red); border-radius: 0 0 12px 0; font-weight: 800; font-size: 30px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lower:not(.off) .lt-coin { animation: coin .8s var(--ease) both; }
.lower:not(.off) .lt-name { animation: wipe-in .6s .15s var(--ease) both; }
.lower:not(.off) .lt-title { animation: wipe-in .6s .3s var(--ease) both; }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* topic chyron (full layout; in the arena the LED sign takes the topic instead) */
.chyron { left: 50%; top: 40px; transform: translateX(-50%); }
.chyron.off { transform: translate(-50%, -40px); }
.layout-arena .chyron { opacity: 0 !important; pointer-events: none; }
.chy { display: flex; align-items: center; gap: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.chy .tag { padding: 14px 30px; font-family: var(--f-varsity); font-size: 54px; line-height: 1; letter-spacing: .04em; color: #fff; text-transform: uppercase; white-space: nowrap; }
.chy .sub { padding: 14px 30px; background: rgba(11,13,18,.92); font-weight: 800; font-size: 34px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chy.st-hot .tag { background: linear-gradient(90deg, #ff2a2a, #ff7a1f); }
.chy.st-trade .tag { background: linear-gradient(90deg, #b8861f, #ffbe3b); color: #1a1205; }
.chy.st-topic .tag { background: linear-gradient(90deg, var(--navy), #24508f); color: var(--cream); }
.chy.st-breaking .tag { background: #e01616; animation: lamp-bg .7s steps(1) infinite; }
@keyframes lamp-bg { 50% { background: #8f0b0b; } }

/* right-hand pop-up stack: stat card, poll, featured chat */
.right-stack { position: absolute; right: 30px; top: 186px; width: 440px; z-index: 20; display: flex; flex-direction: column; gap: 18px; pointer-events: none; transform-origin: 100% 0; transition: transform .3s; }
.layout-full .right-stack { right: 60px; top: 140px; width: 480px; }
/* Camera center: the stack can be sent to either side of the frame, so one side can carry the whole show.
   On the side the main screen's column is already using it falls in underneath it, same width, one column
   top to bottom; fitStack() in display.js then shrinks it to stop short of the ribbon board. */
.layout-cam.pops-left  .right-stack { left: 40px; right: auto; transform-origin: 0 0; }
.layout-cam.pops-right .right-stack { left: auto; right: 40px; transform-origin: 100% 0; }
.layout-cam.pops-left  .right-stack .card { animation-name: pop-in-l; }
/* A card on the left would land on the name plate in the camera's bottom-left corner, so the plate moves to
   the other end of the box while one is up. */
.layout-cam.pops-left.stack-on .cam-plate { left: auto; right: 0; border-radius: 10px 0 14px 0;
  background: linear-gradient(270deg, var(--navy), rgba(10,21,48,.92)); }
.layout-cam.col-on.col-left.pops-left   .right-stack { top: calc(var(--col-end) + 16px); width: var(--col-wpx); }
.layout-cam.col-on.col-right.pops-right .right-stack { top: calc(var(--col-end) + 16px); width: var(--col-wpx); }
/* ... and under the second column, which is the 16:9 box, so its height is worked out from 682. */
.layout-cam.col2-on { --col2-end: calc(156px + 682px * (var(--col-w) / 1197)); }
.layout-cam.col2-on.col-left.pops-right .right-stack { top: calc(var(--col2-end) + 16px); width: var(--col-wpx); }
.layout-cam.col2-on.col-right.pops-left .right-stack { top: calc(var(--col2-end) + 16px); width: var(--col-wpx); }
.right-stack .ov { position: relative; }
.right-stack .ov.off { display: none; }
.card { border-radius: 16px; overflow: hidden; background: linear-gradient(165deg, #121a2c, #0a0e18); box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 24px 50px rgba(0,0,0,.6); animation: pop-in .55s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateX(60px) scale(.96); } }
@keyframes pop-in-l { from { opacity: 0; transform: translateX(-60px) scale(.96); } }
.card-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-weight: 800; font-size: 22px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); background: rgba(255,255,255,.04); }
.card-h .nz { width: 34px; height: 34px; flex: none; }
.sp-card { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 18px 6px; align-items: center; }
.sp-card .hs { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 80%, #fff 10%), color-mix(in srgb, var(--tc) 50%, #000)); box-shadow: 0 0 0 4px rgba(255,255,255,.8); }
.sp-card .hs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.sp-card .nm { font-weight: 900; font-size: 40px; line-height: .95; text-transform: uppercase; }
.sp-card .sb { margin-top: 6px; font-weight: 700; font-size: 21px; color: #c3c9d6; letter-spacing: .08em; text-transform: uppercase; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 18px 18px; }
.sp-grid div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); text-align: center; }
.sp-grid b { display: block; font-weight: 900; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.sp-grid span { font-weight: 800; font-size: 17px; letter-spacing: .16em; color: var(--muted); }
.pp-q { padding: 14px 18px 6px; font-weight: 900; font-size: 32px; line-height: 1.05; text-transform: uppercase; }
.pp-opts { display: grid; gap: 8px; padding: 6px 18px 12px; }
.pp-opts .po { height: 52px; border-radius: 10px; padding: 0 14px; gap: 10px; }
.pp-opts .po .n { width: 34px; height: 34px; font-size: 20px; }
.pp-opts .po .t { font-size: 26px; }
.pp-opts .po .pct { font-size: 28px; }
.pp-foot { display: flex; align-items: center; gap: 14px; padding: 0 18px 16px; }
.pp-foot img { width: 120px; height: 120px; border-radius: 10px; background: #fff; padding: 6px; flex: none; }
.pp-foot span { font-weight: 700; font-size: 22px; line-height: 1.2; color: #c3c9d6; }
.pp-foot b { display: block; color: #fff; font-size: 26px; letter-spacing: .04em; }
.ch-card { padding: 18px 22px 20px; }
.ch-user { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 28px; letter-spacing: .02em; }
.ch-user i { padding: 2px 10px; border-radius: 6px; font-style: normal; font-weight: 800; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; background: #3a4152; color: #fff; }
.ch-user i.twitch { background: #9146ff; } .ch-user i.youtube { background: #ff0033; }
.ch-text { margin-top: 10px; font-weight: 700; font-size: 34px; line-height: 1.18; overflow-wrap: anywhere; }

/* sponsor bug */
.sponsor-bug { right: 48px; top: 40px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 12px; background: rgba(10,14,24,.85); box-shadow: 0 0 0 2px rgba(211,166,79,.6), 0 14px 30px rgba(0,0,0,.5); }
.sponsor-bug.off { transform: translateY(-30px); }
.sponsor-bug small { display: block; font-weight: 800; font-size: 14px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.sponsor-bug b { display: block; font-family: var(--f-varsity); font-weight: 400; font-size: 30px; line-height: 1; color: var(--cream); text-transform: uppercase; }
.sponsor-bug img { height: 54px; max-width: 180px; object-fit: contain; }
.layout-arena .sponsor-bug { top: 40px; right: 40px; }

/* ---------- goal + bumper effects ---------- */
.fx-goal { position: absolute; inset: 0; z-index: 60; }
.fx-goal .goal { animation: rise .25s both; }
.fx-goal.out .goal { animation: scene-out .45s ease-in both; }
.fx-goal .goal-word { font-size: 330px; }
.fx-goal .goal-who { font-size: 80px; }
.fx-goal .goal-who img, .fx-goal .goal-who .tbadge { width: 150px; height: 150px; }
.fx-goal .goal-line { font-size: 46px; }
.fx-bumper { position: absolute; inset: 0; z-index: 55; overflow: hidden; pointer-events: none; }
.fx-rollin { position: absolute; inset: 0; z-index: 70; background: #000; opacity: 0; transition: opacity .35s; pointer-events: none; }
.fx-rollin.on { opacity: 1; }
.fx-rollin video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.fx-bumper .pan { position: absolute; top: -20%; bottom: -20%; width: 140%; left: -150%; transform: skewX(-18deg); }
.fx-bumper .p1 { background: var(--navy); animation: sweep-in 2.6s var(--ease) both; }
.fx-bumper .p2 { background: var(--led-red); animation: sweep-in 2.6s .08s var(--ease) both; width: 20%; }
.fx-bumper .p3 { background: var(--cream); animation: sweep-in 2.6s .14s var(--ease) both; width: 4%; }
@keyframes sweep-in { 0% { left: -150%; } 22%, 72% { left: -20%; } 100% { left: 130%; } }
.fx-bumper .ttl { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; animation: bump-t 2.6s both; }
.fx-bumper .ttl .nz { width: 170px; height: 170px; animation: coin 1s .25s var(--ease) both; }
.fx-bumper .ttl b { font-family: var(--f-varsity); font-weight: 400; font-size: 140px; line-height: 1; color: var(--cream); text-transform: uppercase; text-shadow: 0 8px 0 #000; }
.fx-bumper .ttl span { font-weight: 800; font-size: 40px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
@keyframes bump-t { 0%, 14% { opacity: 0; transform: scale(1.2); } 26%, 70% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: scale(.9); } }

/* ---------- start gate, safe area, connection ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; border: 0; cursor: pointer;
  background: radial-gradient(ellipse at 50% 40%, rgba(20,42,82,.92), rgba(5,7,12,.97)); color: var(--ink); font-family: var(--f-ui); }
.gate .gate-logo { width: min(34vmin, 300px); aspect-ratio: 1; background: var(--logo) center/contain no-repeat; border-radius: 50%; box-shadow: 0 0 80px rgba(61,139,255,.4); animation: coin-idle 6s ease-in-out infinite; }
.gate b { font-family: var(--f-varsity); font-weight: 400; font-size: clamp(32px, 6vmin, 72px); color: var(--cream); text-transform: uppercase; }
.gate span { font-weight: 700; font-size: clamp(16px, 2.6vmin, 28px); letter-spacing: .06em; }
.gate small { font-weight: 600; font-size: clamp(12px, 1.8vmin, 18px); color: var(--muted); letter-spacing: .08em; }
.safe { position: absolute; inset: 54px 96px; z-index: 99; border: 3px dashed rgba(255,212,0,.8); pointer-events: none; }
.safe::after { content: "Title safe"; position: absolute; left: 10px; top: 6px; font-weight: 800; font-size: 20px; color: rgba(255,212,0,.9); letter-spacing: .1em; text-transform: uppercase; }
.safe::before { content: ""; position: absolute; inset: -27px -48px; border: 2px dashed rgba(255,255,255,.4); }
.conn { position: fixed; right: 14px; bottom: 14px; z-index: 101; padding: 8px 14px; border-radius: 8px; background: rgba(255,58,53,.9); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .06em; }

/* preview inside the control room */
.preview .gate, .preview .conn { display: none !important; }

/* overlay-only output (OBS over a camera): just the pop-ups on a transparent background */
html.overlay-only, .overlay-only, .overlay-only #stage { background: transparent !important; }
.overlay-only .arena-bg, .overlay-only .sign, .overlay-only .jumbo, .overlay-only .jumbo2, .overlay-only .tower, .overlay-only .ribbon { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .beam, .fb-bob, .fb-head, .fb-cap, .sign::before, .tw-board::before, .fx-mid .nz, .goal::before, .goal::after, .sp-url { animation: none !important; }
  .scene.in, .lg-card, .nw-img, .nw-copy { animation-duration: .01s !important; }
}

/* Fullscreen: designed screens make room. With the crawl on they shrink a touch so nothing hides behind
   it; with the mascot's cameo on they also slide right so he stands beside the graphic, not on top of it.
   (The rink keeps its exact geometry so telestrator ink and dragged players stay lined up.) */
.layout-full :is(#v-grid, #v-stats, #v-standings, #v-slate, #v-poll, #v-sponsor) {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--ice) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, color-mix(in srgb, var(--led-red) 14%, transparent), transparent 70%),
    linear-gradient(#0d1424, #070a12);
}
.layout-full :is(#v-grid, #v-stats, #v-standings, #v-slate, #v-poll, #v-sponsor) .v-bg { display: none; }
.layout-full:not(.crawl-off) :is(#v-grid, #v-stats, #v-standings, #v-slate, #v-poll, #v-sponsor) .vs { transform: translateX(73px) scale(.924); }
.layout-full.fred-on :is(#v-grid, #v-stats, #v-standings, #v-slate, #v-poll, #v-sponsor) .vs { transform: translateX(225px) scale(.88); }
.st2-p .st-photo img.hs { width: auto; height: 112%; max-width: none; }
