/* Racelets IndyCar Podcast: the racing look on top of the show output (display.css). Loaded after it, so the
   palette and the studio set here win, and the racing graphics (car numbers, lap counter, timing tower, flags,
   starting grid, track map, Race Center scenes) live here. Same 1920x1080 stage, same units. */
:root {
  --night: #060608;
  --steel: #24252b;
  --carbon: #0f1014;
  --navy: #17181d;
  --cream: #f4f1ea;
  --gold: #ffc83d;
  --led-red: #e3121b;
  --ice: #e3121b;
  --amber: #ffc83d;
  --live: #ff2a2a;
  --final: #a3a7b3;
  --pre: #8c919e;
  --muted: #9a9ca6;
  --f-varsity: "Russo One", "Graduate", "Rockwell", sans-serif;
  --flag-green: #1fbf4b; --flag-yellow: #ffd400; --flag-red: #ff2a2a;
  --checker: repeating-conic-gradient(#111 0 25%, #f4f4f4 0 50%) 0 0 / 40px 40px;
}

/* ---------- the studio set: black, red neon, checkered flags ---------- */
#stage {
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(227,18,27,.20), transparent 70%),
    radial-gradient(ellipse 45% 30% at 50% 100%, rgba(227,18,27,.16), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 6px, transparent 6px 12px),
    linear-gradient(#0d0d10 0%, #060608 50%, #030304 100%);
}
.beam { background: linear-gradient(rgba(255,70,70,.16), transparent 80%) !important; }
.arena-bg .neon { position: absolute; height: 6px; border-radius: 3px; background: #ff2a33;
  box-shadow: 0 0 10px #ff2a33, 0 0 30px rgba(255,42,51,.8), 0 0 70px rgba(255,42,51,.5); animation: neon-hum 7s ease-in-out infinite; }
.arena-bg .neon.n1 { left: 0; width: 330px; top: 160px; }
.arena-bg .neon.n2 { right: 0; width: 330px; top: 160px; animation-delay: -3s; }
@keyframes neon-hum { 0%, 100% { opacity: .95; } 46% { opacity: .75; } 48% { opacity: 1; } 50% { opacity: .7; } }
.arena-bg .flagwall { position: absolute; top: 0; bottom: 0; width: 22px; background: var(--checker); background-size: 22px 22px; opacity: .14; }
.arena-bg .flagwall.l { left: 0; } .arena-bg .flagwall.r { right: 0; }
.sign { --neon: #ff2a33; --neon-text: #ffe1e1; }
.jumbo { box-shadow: 0 0 0 3px #2c2d34, 0 0 0 6px #0a0a0c, 0 0 60px rgba(227,18,27,.25), 0 30px 80px rgba(0,0,0,.7) !important; }
.floor { background: linear-gradient(90deg, transparent, var(--led-red) 20% 80%, transparent); box-shadow: 0 0 22px rgba(227,18,27,.7); }
.floor::after { background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(227,18,27,.3), transparent); }
.plate::before, .cam-plate::before { background: var(--led-red); }
.plate b { color: #fff; }
.tw-board { background: linear-gradient(160deg, #1d1e24, #0b0b0e 70%); }
.tw-name { text-shadow: 0 4px 0 var(--led-red), 0 8px 0 rgba(0,0,0,.4); }
.tw-url { color: #111; }
.lower .lt-name { background: linear-gradient(100deg, #1b1c22, #0b0b0e); border-top-color: var(--led-red); }
.v-title .nz { box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 40px rgba(227,18,27,.35); }
:root[data-logo="shaped"] :is(.fx-mid .nz, .sl .nz, .v-title .nz, .gate .gate-logo) { filter: drop-shadow(0 0 30px rgba(227,18,27,.45)) drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.gate { background: radial-gradient(ellipse at 50% 40%, rgba(80,8,12,.92), rgba(5,5,7,.97)); }
.gate .gate-logo { box-shadow: 0 0 80px rgba(227,18,27,.4); }
.card { background: linear-gradient(165deg, #1a1b21, #0b0b0e); }
.v-bg { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(227,18,27,.18), transparent 70%), linear-gradient(#121216, #070709) !important; }
.layout-full :is(#v-grid, #v-stats, #v-standings, #v-slate, #v-poll, #v-sponsor) {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(227,18,27,.2), transparent 70%), linear-gradient(#121216, #070709);
}

/* ---------- car numbers and flags: the building blocks ---------- */
.carnum { --sz: 56px; display: inline-grid; place-items: center; flex: none; width: var(--sz); height: calc(var(--sz) * .78); padding: 0 .08em;
  border-radius: calc(var(--sz) * .14); background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 100%, #fff 0%), color-mix(in srgb, var(--tc) 72%, #000));
  box-shadow: inset 0 0 0 calc(var(--sz) * .045) rgba(255,255,255,.85), 0 calc(var(--sz) * .05) calc(var(--sz) * .14) rgba(0,0,0,.5);
  font-family: "Saira Condensed", sans-serif; font-weight: 900; font-style: italic; font-size: calc(var(--sz) * .64); line-height: 1; color: #fff; letter-spacing: -.02em;
  text-shadow: -.04em -.04em 0 #000, .04em -.04em 0 #000, -.04em .04em 0 #000, .04em .04em 0 #000, 0 .07em .1em rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }
.cflag { width: 1.15em; height: .8em; object-fit: cover; border-radius: .12em; vertical-align: .04em; margin-right: .35em; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- lap counter (the scorebug spot, top left) ---------- */
.lapbug { --flag: var(--flag-green); }
.lc { position: relative; display: flex; align-items: stretch; height: 78px; border-radius: 10px; overflow: hidden; background: linear-gradient(#18191e, #0b0b0e); box-shadow: 0 0 0 2px rgba(255,255,255,.1); }
.lc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--flag); }
.lc.fl-yellow { --flag: var(--flag-yellow); } .lc.fl-red { --flag: var(--flag-red); } .lc.fl-white { --flag: #fff; }
.lc.fl-checkered::after { background: var(--checker); background-size: 14px 14px; }
.lc-logo { width: 150px; flex: none; background: #000 var(--logo) center / 86% auto no-repeat; border-right: 2px solid rgba(255,255,255,.08); }
:root:not([data-logo="shaped"]) .lc-logo { background-size: 62px; }
.lc-race { display: grid; align-content: center; gap: 2px; padding: 0 22px 6px 18px; min-width: 220px; }
.lc-race b { font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.lc-race span { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: #c9cbd3; }
.lc-race span i { width: 14px; height: 14px; border-radius: 3px; background: var(--flag); box-shadow: 0 0 10px var(--flag); }
.lc.fl-checkered .lc-race span i { background: var(--checker); background-size: 7px 7px; box-shadow: none; }
.lc.fl-yellow .lc-race span, .lc.fl-red .lc-race span { color: var(--flag); }
.lc-lap { display: flex; align-items: baseline; gap: 8px; padding: 0 22px 6px; background: var(--led-red); font-variant-numeric: tabular-nums; align-self: stretch; }
.lc-lap { display: grid; grid-auto-flow: column; align-content: center; }
.lc-lap small { align-self: center; font-weight: 800; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); opacity: .85; }
.lc-lap b { font-weight: 900; font-size: 54px; line-height: 1; }
.lc-lap b.bump { animation: bump .6s var(--ease); }
.lc-lap em { font-style: normal; font-weight: 800; font-size: 30px; opacity: .9; align-self: end; padding-bottom: 6px; }
.lc-sub { display: inline-block; margin-left: 150px; padding: 4px 16px; border-radius: 0 0 8px 8px; background: var(--flag-yellow); color: #111; font-weight: 900; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- timing tower (left side, under the lap counter) ---------- */
.timing { left: 48px; top: 158px; width: 330px; filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); }
.timing.off { transform: translateX(-40px); }
.tt { --flag: var(--flag-green); border-radius: 10px; overflow: hidden; background: rgba(10,10,13,.94); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.tt.fl-yellow { --flag: var(--flag-yellow); } .tt.fl-red { --flag: var(--flag-red); } .tt.fl-white { --flag: #fff; }
.tt-h { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px 0 0; background: #000; border-bottom: 5px solid var(--flag); }
.tt.fl-checkered .tt-h { border-image: var(--checker) 5; border-image-slice: 5; }
.tt-logo { width: 96px; align-self: stretch; background: var(--logo) center / 80% auto no-repeat; }
.tt-h b { flex: 1; font-weight: 900; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.tt-h b em { font-style: normal; color: var(--muted); font-size: .8em; margin-left: 4px; }
.tt-r { display: grid; grid-template-columns: 38px 46px 1fr auto; align-items: center; gap: 8px; height: 44px; padding-right: 12px;
  border-top: 1px solid rgba(255,255,255,.06); animation: tt-in .4s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes tt-in { from { opacity: 0; transform: translateX(-24px); } }
.tt-p { align-self: stretch; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 900; font-size: 24px; }
.tt-r:first-of-type .tt-p { background: var(--led-red); }
.tt-n { justify-self: start; min-width: 40px; padding: 2px 6px; border-radius: 5px; background: var(--tc); text-align: center; font-weight: 900; font-style: italic; font-size: 22px; line-height: 1.1; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.tt-r b { font-weight: 800; font-size: 25px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-r em { font-style: normal; font-weight: 700; font-size: 20px; color: #c9cbd3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-r:first-of-type em { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 17px; }
.layout-cam.pops-left .timing { display: none; }

/* driver pop-up card: a car number where a headshot would be */
.sp-card .hs.dr { display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 70%, #fff 10%), color-mix(in srgb, var(--tc) 45%, #000)); }
.sp-card .hs.dr .carnum { box-shadow: none; background: none; }
.sp-card .nm .cflag { height: .62em; width: .9em; vertical-align: .12em; }

/* ---------- flag moments: full screen ---------- */
.flagfx { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; animation: rise .25s both; --flag: var(--flag-green); }
.fx-goal.out .flagfx { animation: scene-out .45s ease-in both; }
.flagfx.fl-yellow { --flag: var(--flag-yellow); } .flagfx.fl-red { --flag: var(--flag-red); } .flagfx.fl-white { --flag: #f4f4f4; }
.ff-cloth { position: absolute; inset: -12%; background: var(--flag); transform-origin: 0 50%; animation: wave-cloth 1.3s ease-in-out infinite alternate, cloth-in .6s var(--ease) both;
  -webkit-mask: linear-gradient(90deg, #000 0 100%); }
.flagfx.fl-checkered .ff-cloth { background: repeating-conic-gradient(#0d0d0d 0 25%, #f4f4f4 0 50%) 0 0 / 180px 180px; }
.ff-cloth::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, rgba(0,0,0,.28) 0 6%, rgba(255,255,255,.12) 12%, rgba(0,0,0,.28) 18%); background-size: 200% 100%; animation: cloth-ripple 1.6s linear infinite; }
@keyframes wave-cloth { from { transform: skewY(-3deg) scaleX(1.02); } to { transform: skewY(3deg) scaleX(.98); } }
@keyframes cloth-ripple { to { background-position: -200% 0; } }
@keyframes cloth-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ff-copy { position: relative; display: grid; justify-items: center; gap: 14px; padding: 46px 90px 50px; border-radius: 28px; background: rgba(6,6,8,.82); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.12); text-align: center; animation: slam .5s .2s var(--ease) both; }
.ff-word { font-family: var(--f-varsity); font-size: 170px; line-height: .95; color: #fff; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 8px 0 var(--led-red); }
.flagfx.fl-green .ff-word { text-shadow: 0 8px 0 #0d7a2c; } .flagfx.fl-yellow .ff-word { color: var(--flag-yellow); text-shadow: 0 8px 0 #7a6200; }
.ff-sub { font-weight: 800; font-size: 44px; letter-spacing: .14em; text-transform: uppercase; color: #e8e9ee; }
.ff-who { display: flex; align-items: center; gap: 30px; font-weight: 900; font-size: 110px; line-height: .9; text-transform: uppercase; }
.ff-who span { display: grid; text-align: left; }
.ff-who small { font-size: 40px; letter-spacing: .1em; color: var(--gold); }

/* new leader: a band across the screen */
.leadfx { position: absolute; left: 0; right: 0; top: 420px; display: flex; align-items: center; justify-content: center; gap: 30px; height: 150px;
  background: linear-gradient(90deg, transparent, rgba(6,6,8,.94) 12% 88%, transparent); border-top: 5px solid var(--gold); border-bottom: 5px solid var(--gold);
  animation: lead-in 5.2s var(--ease) both; }
.leadfx b { font-family: var(--f-varsity); font-weight: 400; font-size: 60px; color: var(--gold); text-transform: uppercase; }
.leadfx span { font-weight: 900; font-size: 74px; text-transform: uppercase; letter-spacing: .02em; }
.leadfx em { font-style: normal; font-weight: 800; font-size: 34px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
@keyframes lead-in { 0% { opacity: 0; transform: scaleX(.2); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(200px); } }

/* ---------- Race Center scenes (inside the big screen) ---------- */
.jhead .mini-nz { border-radius: 0; background-size: contain; width: 90px; }
.podium { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 30px; padding: 0 40px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; animation: rise .6s var(--ease) both; }
.pod.p1 { animation-delay: .5s; } .pod.p2 { animation-delay: .2s; } .pod.p3 { animation-delay: .35s; }
.pod-name { display: grid; line-height: .95; } .pod-name span { font-weight: 700; font-size: 26px; color: #c9cbd3; letter-spacing: .06em; text-transform: uppercase; }
.pod-name b { font-weight: 900; font-size: 54px; text-transform: uppercase; letter-spacing: .02em; }
.pod.p1 .pod-name b { font-size: 70px; }
.pod-name .cflag { justify-self: center; margin: 0 0 6px; width: 40px; height: 28px; }
.pod-team { font-weight: 700; font-size: 22px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.pod-step { position: relative; width: 100%; margin-top: 10px; display: grid; place-items: center; align-content: center; border-radius: 10px 10px 0 0;
  background: linear-gradient(#26272e, #141418); box-shadow: inset 0 4px 0 var(--tc); }
.pod-step i { font-style: normal; font-family: var(--f-varsity); font-size: 64px; line-height: 1; color: #fff; }
.pod-step small { font-weight: 800; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pod.p1 .pod-step { height: 150px; background: linear-gradient(#3a2d0a, #1a1407); box-shadow: inset 0 5px 0 var(--gold); }
.pod.p2 .pod-step { height: 110px; } .pod.p3 .pod-step { height: 80px; }
.podium.live .pod-step small { color: #fff; font-size: 24px; }

.nx { flex: 1; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; padding: 0 20px; }
.nx-name { font-family: var(--f-varsity); font-size: 92px; line-height: .95; text-transform: uppercase; color: #fff; text-shadow: 0 6px 0 var(--led-red); animation: from-left .7s .2s var(--ease) both; }
.nx-track { margin-top: 10px; font-weight: 800; font-size: 34px; letter-spacing: .06em; text-transform: uppercase; color: #d9dbe2; }
.nx-when { margin-top: 4px; font-weight: 700; font-size: 28px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.nx-facts { display: flex; gap: 14px; margin-top: 26px; }
.nx-facts span { display: grid; padding: 12px 18px; border-radius: 12px; background: rgba(255,255,255,.06); font-weight: 700; font-size: 18px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.nx-facts b { font-size: 40px; line-height: 1; color: #fff; letter-spacing: 0; }
.nx-pole { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--gold); }
.nx-pole b { color: #fff; }
.nx-count { display: grid; justify-items: center; gap: 6px; text-align: center; }
.nx-count .nz { width: 300px; height: 200px; border-radius: 0; background-size: contain; animation: coin 1s .2s var(--ease) both; }
.nx-count small { font-weight: 800; font-size: 22px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.nx-count b { font-weight: 900; font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }

.ro-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, 1fr); grid-auto-flow: column; gap: 10px 30px; align-content: center; }
.ro { display: grid; grid-template-columns: 52px 50px 1fr auto auto; align-items: center; gap: 14px; height: 66px; padding: 0 16px 0 0; border-radius: 10px;
  background: rgba(255,255,255,.05); box-shadow: inset 6px 0 0 var(--tc); animation: card-in .5s var(--ease) both; animation-delay: calc(.1s + var(--i) * 45ms); }
.ro i { font-style: normal; text-align: center; font-weight: 900; font-size: 32px; color: var(--muted); }
.ro:first-child i { color: var(--gold); }
.ro b { font-weight: 900; font-size: 34px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro span { font-weight: 700; font-size: 20px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.ro em { font-style: normal; font-weight: 800; font-size: 24px; color: #d9dbe2; font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; white-space: nowrap; }
.ro em b.up { color: #6fe39a; } .ro em b.dn { color: #ff6b66; }
.ro:first-child em { color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: 22px; }

.cp-list { flex: 1; display: grid; gap: 3px; align-content: center; }
.cp { display: grid; grid-template-columns: 46px 48px 260px 1fr 90px 80px; align-items: center; gap: 14px; height: 37px; animation: card-in .5s var(--ease) both; animation-delay: calc(.1s + var(--i) * 50ms); }
.cp i { font-style: normal; text-align: center; font-weight: 900; font-size: 28px; color: var(--muted); }
.cp b { font-weight: 900; font-size: 29px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-bar { height: 22px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.cp-bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, #000), var(--tc)); border-radius: 6px; transform-origin: 0 50%; animation: grow 1s .3s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.cp em { font-style: normal; text-align: right; font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; }
.cp small { font-weight: 700; font-size: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp:first-child em { color: var(--gold); }

.cr { grid-template-columns: 340px 1fr !important; }
.cr-car { display: grid; place-items: center; animation: coin 1s .2s var(--ease) both; }
.cr-label { color: var(--gold); font-size: 42px !important; letter-spacing: .14em; }
.cr-name { margin: 8px 0; font-family: var(--f-varsity); font-size: 84px; line-height: 1; text-transform: uppercase; }
.cr-name .cflag { height: 52px; width: 74px; vertical-align: 6px; }
.cr-sub { font-size: 26px !important; }
.cr-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cr-facts span { display: grid; padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,.06); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.cr-facts b { font-size: 40px; line-height: 1; color: #fff; }

.lead { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--tc) 45%, #000), #050506 70%); }
.lead::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%) 0 0 / 80px 80px; animation: cloth-ripple 3s linear infinite; }
.lead > * { position: relative; }
.lead-word { font-family: var(--f-varsity); font-size: 150px; line-height: .9; color: var(--gold); animation: slam .5s var(--ease) both; }
.lead-who { display: flex; align-items: center; gap: 26px; font-weight: 900; font-size: 74px; text-transform: uppercase; animation: rise .5s .3s both; }
.lead-line { font-weight: 800; font-size: 32px; letter-spacing: .12em; color: #d9dbe2; text-transform: uppercase; animation: rise .5s .5s both; }

/* the strip under the big screen: one championship contender at a time */
.strip { display: block; }
.strip .rs { height: 100%; display: flex; align-items: center; justify-content: center; gap: 22px; font-weight: 800; font-size: 30px; text-transform: uppercase; }
.strip .rs-pos { font-weight: 900; font-size: 40px; color: var(--gold); }
.strip .rs-name b { font-weight: 900; font-size: 38px; }
.strip .rs-team { font-size: 22px; letter-spacing: .1em; color: var(--muted); }
.strip .rs-pts b { font-size: 40px; color: #fff; }
.strip .rs-pts { color: var(--muted); font-size: 24px; letter-spacing: .1em; }
.strip .rs-gap { padding: 4px 14px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 22px; letter-spacing: .1em; color: #d9dbe2; }
.strip .rs-empty { height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 28px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.strip.swap .rs > * { animation: flip .5s var(--ease) both; }

/* ticker board: position, car number, name, gap */
.rb .g { align-items: center; }
.rb .g .p { color: var(--muted); font-size: .7em; }
.rb .g .n { display: inline-grid; place-items: center; min-width: 58px; height: 46px; padding: 0 6px; border-radius: 7px; font-style: italic; font-size: .8em; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }

/* the box under the sponsor tower */
.pulse dd small { font-size: .5em; color: var(--muted); }
.pulse .pl-lead { display: block; font-size: 26px; line-height: 1.1; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse .pl-d { display: grid; grid-template-columns: 22px 38px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.07); }
.pulse .pl-d:first-child { border-top: 0; }
.pulse .pl-d i { font-style: normal; font-weight: 900; font-size: 18px; color: var(--muted); }
.pulse .pl-d b { font-weight: 800; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse .pl-d em { font-style: normal; font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; }

/* ---------- starting grid ---------- */
.grid-bg { background:
  repeating-linear-gradient(90deg, transparent 0 140px, rgba(255,255,255,.025) 140px 142px),
  radial-gradient(ellipse 60% 50% at 50% 0%, rgba(227,18,27,.18), transparent 70%), linear-gradient(#18191d, #0a0a0c) !important; }
.g-race { position: absolute; left: 0; right: 0; top: 148px; text-align: center; font-weight: 800; font-size: 30px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.g-empty { position: absolute; inset: 300px 0 0; text-align: center; font-weight: 700; font-size: 40px; color: var(--muted); }
.g-lanes { position: absolute; left: 110px; right: 50px; top: 236px; bottom: 50px; display: grid; grid-template-rows: auto repeat(var(--per, 2), 1fr); gap: 16px; }
.g-lanes.per3 { --per: 3; }
.g-line { position: absolute; left: -46px; top: 40px; bottom: 0; width: 30px; background: var(--checker); background-size: 15px 15px; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,.6); }
.g-rows { display: grid; grid-template-columns: repeat(var(--rows), 1fr); gap: 18px; }
.g-rows span { text-align: center; font-weight: 800; font-size: 22px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.g-lane { display: grid; grid-template-columns: repeat(var(--rows), 1fr); gap: 18px; min-height: 0; }
.g-lanes.per2 .g-lane.l1 { transform: translateX(calc((100% / var(--rows)) * .45)); margin-right: calc((100% / var(--rows)) * .45); }
.g-lanes.per3 .g-lane.l1 { transform: translateX(calc((100% / var(--rows)) * .3)); margin-right: calc((100% / var(--rows)) * .3); }
.g-lanes.per3 .g-lane.l2 { transform: translateX(calc((100% / var(--rows)) * .6)); margin-right: calc((100% / var(--rows)) * .6); }
.gc { position: relative; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; align-content: start; gap: 10px; padding: 16px 10px 14px; min-width: 0;
  border: 3px solid rgba(255,255,255,.75); border-right: 0; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, #101014), #111115 70%);
  box-shadow: 0 16px 30px rgba(0,0,0,.5); }
.gc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tc); }
.gc-pos { display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.gc-pos b { font-family: var(--f-varsity); font-weight: 400; font-size: 46px; color: #fff; }
.gc-pos small { font-weight: 800; font-size: 20px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.gc-who { display: grid; justify-items: center; text-align: center; line-height: 1.02; min-width: 0; max-width: 100%; }
.gc-who span { font-weight: 700; font-size: 22px; color: #c9cbd3; letter-spacing: .04em; text-transform: uppercase; }
.gc-who b { font-weight: 900; font-size: 36px; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gc-who small { margin-top: 4px; font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gc-who .cflag { margin: 0 0 4px; width: 32px; height: 22px; }
.gc.pole { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(255,200,61,.35), 0 16px 30px rgba(0,0,0,.5); }
.gc.pole .gc-pos b, .gc.pole .gc-pos small { color: var(--gold); }
.g-lanes.per3 .gc-who b { font-size: 32px; }

.g-pole { position: absolute; left: 80px; right: 80px; top: 210px; bottom: 60px; display: grid; grid-template-columns: 560px 1fr; gap: 60px; align-items: center; }
.gp-car { display: grid; place-items: center; height: 100%; border-radius: 28px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tc) 50%, #000), #08080a 75%); box-shadow: inset 0 0 0 3px var(--gold), 0 0 60px rgba(255,200,61,.25); animation: rise .6s var(--ease) both; }
.gp-k { font-weight: 900; font-size: 40px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.gp-name { display: grid; margin: 4px 0 8px; line-height: .95; }
.gp-name span { font-weight: 700; font-size: 44px; color: #c9cbd3; text-transform: uppercase; letter-spacing: .06em; }
.gp-name b { font-family: var(--f-varsity); font-weight: 400; font-size: 120px; color: #fff; text-transform: uppercase; text-shadow: 0 6px 0 var(--led-red); }
.gp-name .cflag { width: 64px; height: 44px; margin-bottom: 10px; }
.gp-team { font-weight: 800; font-size: 34px; letter-spacing: .1em; color: #d9dbe2; text-transform: uppercase; }
.gp-hint { margin-top: 10px; font-weight: 600; font-size: 24px; color: var(--muted); letter-spacing: .04em; }
.gp-rest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.gp-rest .gc-who b { font-size: 30px; }

.g-list { position: absolute; left: 70px; right: 70px; top: 210px; bottom: 50px; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-flow: column;
  grid-template-rows: repeat(calc(var(--rows, 12)), 1fr); gap: 8px 30px; }
.g-list { grid-template-rows: none; grid-auto-flow: row; align-content: start; }
.gl { display: grid; grid-template-columns: 44px 52px auto 1fr auto auto; align-items: center; gap: 12px; height: 56px; padding: 0 14px 0 0; border-radius: 8px; background: rgba(255,255,255,.05); box-shadow: inset 6px 0 0 var(--tc); }
.gl i { font-style: normal; text-align: center; font-weight: 900; font-size: 28px; color: var(--muted); }
.gl.pole i { color: var(--gold); }
.gl b { font-weight: 900; font-size: 30px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl .cflag { margin: 0; }
.gl span { font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.gl em, .lv-t td.eng { font-style: normal; font-weight: 800; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.gl em.honda, .lv-t td.eng.honda { color: #ff6b6b; } .gl em.chevy, .lv-t td.eng.chevy { color: #f0c44c; }

/* ---------- track map ---------- */
#v-track .vs, #v2-track .vs { background: radial-gradient(ellipse 70% 70% at 35% 55%, #1b1c22, #070709); }
#trackSvg, #trackSvg2 { position: absolute; inset: 0; width: 100%; height: 100%; }
.trk-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; text-transform: uppercase; color: #fff; text-shadow: 0 5px 0 var(--led-red); }
.trk-title .nz { width: 150px; height: 100px; flex: none; border-radius: 0; background-size: contain; }
.trk-info { position: absolute; left: 1350px; right: 60px; top: 210px; bottom: 80px; display: flex; flex-direction: column; gap: 14px; }
.ti-name { font-weight: 900; font-size: 50px; line-height: 1; text-transform: uppercase; }
.ti-city { font-weight: 700; font-size: 26px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.ti-type { margin-top: 6px; padding: 16px 20px; border-radius: 14px; background: rgba(255,255,255,.05); border-left: 6px solid var(--led-red); }
.ti-type b { display: block; font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: .06em; }
.ti-type span { display: block; margin-top: 4px; font-weight: 600; font-size: 22px; line-height: 1.25; color: #c9cbd3; }
.ti-type.ty-oval { border-left-color: var(--gold); } .ti-type.ty-street { border-left-color: #6fb8ff; }
.ti-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.ti-fact { display: grid; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 2px rgba(255,255,255,.05); }
.ti-fact span { font-weight: 800; font-size: 20px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.ti-fact b { font-weight: 900; font-size: 64px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ti-fact small { font-weight: 700; font-size: 20px; color: #c9cbd3; letter-spacing: .08em; text-transform: uppercase; }
.ti-blurb { margin-top: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.04); font-weight: 600; font-size: 22px; line-height: 1.35; color: #c9cbd3; }
.ti-empty { font-weight: 700; font-size: 30px; color: var(--muted); }
.tok { transition: transform .12s linear; }

/* ---------- driver card ---------- */
.st-photo.dr { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tc) 60%, #000), #08080a 78%) !important; }
.st-photo.dr .st-car { position: relative; z-index: 1; }
.st-photo.dr .st-flag { position: absolute; left: 26px; top: 26px; width: 96px; height: 66px; margin: 0; border-radius: 8px; }
.st-name { text-shadow: 0 6px 0 var(--led-red) !important; }

@media (prefers-reduced-motion: reduce) {
  .ff-cloth, .ff-cloth::after, .arena-bg .neon, .lead::before { animation: none !important; }
}

/* In the studio layout the lap counter shares the top with the LED sign and the timing tower stands in the
   mascot's spot beside the big screen, so both come in a size that leaves those clear. */
.layout-arena:not(.layout-cam) .lc-logo { width: 96px; }
.layout-arena:not(.layout-cam) .lc-race { min-width: 0; padding: 0 16px 6px 14px; }
.layout-arena:not(.layout-cam) .lc-race b { font-size: 24px; }
.layout-arena:not(.layout-cam) .lc-lap b { font-size: 46px; }
.layout-arena:not(.layout-cam) .lc-sub { margin-left: 96px; }
.layout-arena:not(.layout-cam) .timing { left: 36px; width: 282px; }
.layout-arena:not(.layout-cam) .tt-r { grid-template-columns: 32px 44px 1fr auto; height: 40px; }
.layout-arena:not(.layout-cam) .tt-r b { font-size: 22px; }
.layout-arena:not(.layout-cam) .tt-r em { font-size: 17px; }
.layout-arena:not(.layout-cam) .tt-logo { width: 76px; }

/* three-wide (the Indy 500): three lanes have to fit the same height, so the cards get shorter */
.g-lanes.per3 { gap: 10px; }
.g-lanes.per3 .gc { gap: 4px 10px; padding: 8px 10px; grid-template-columns: auto auto 1fr; grid-template-rows: none; align-items: center; align-content: center; justify-items: start; }
.g-lanes.per3 .gc-pos b { font-size: 34px; }
.g-lanes.per3 .gc-who { justify-items: start; text-align: left; }
.g-lanes.per3 .gc-who .cflag { display: none; }
.g-lanes.per3 .gc-who b { font-size: 28px; }
.g-lanes.per3 .gc-who span { font-size: 18px; }
.gl { height: 62px; }
