/* ThisOver score overlay — a bottom-third strip on a transparent
   1920x1080 stage. Sizes are in stage pixels; overlay.js scales the stage to
   whatever size the browser source is. */

:root {
  --accent: #C8102E;          /* ThisOver red — the batting side's block */
  --accent-deep: #8E0B20;
  --bar: rgba(14, 14, 18, 0.93);
  --sub: rgba(14, 14, 18, 0.80);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --boundary: #22C55E;
  --wicket: #FF4D4D;
  --milestone: #F2B705;
  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* The dark turf variant: a pitch-green block instead of red. */
body.theme-turf {
  --accent: #0F6B3F;
  --accent-deep: #0A4A2B;
  --bar: rgba(6, 22, 14, 0.93);
  --sub: rgba(6, 22, 14, 0.82);
}

/* Midnight: a deep blue block on a navy bar. */
body.theme-midnight {
  --accent: #1D4ED8;
  --accent-deep: #1E3A8A;
  --bar: rgba(8, 12, 28, 0.93);
  --sub: rgba(8, 12, 28, 0.82);
}

/* Graphite: no team colour, a charcoal block on a near-black bar. */
body.theme-graphite {
  --accent: #52525B;
  --accent-deep: #27272A;
  --bar: rgba(10, 10, 12, 0.94);
  --sub: rgba(10, 10, 12, 0.84);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Transparent, or the encoder paints a black box over the video. */
  background: transparent;
}

body {
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
}

[hidden] { display: none !important; }

/* Shown only when the page is misconfigured or waiting — so whoever is
   setting up the stream can see why the strip is not there. */
#setup {
  position: absolute;
  left: 64px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px;
  background: var(--bar);
  border-left: 6px solid var(--accent);
  border-radius: 10px;
  font-size: 24px;
}
#setup b { font-size: 26px; letter-spacing: .02em; }
#setup span { color: var(--muted); }

/* ---- The strip ---------------------------------------------------------- */

#strip {
  position: absolute;
  left: 64px;
  right: 64px;
  /* Low, so it covers as little of the pitch as possible. Inside the 1080
     frame on every encoder; a TV "title safe" margin would be 54px, which
     streams do not need. */
  bottom: 16px;
}

.bar {
  display: flex;
  align-items: stretch;
  /* 116 / 56 with the bigger small text (owner, 2026-10-21): the phone
     stream (broadcast_strip_renderer.dart) uses the same sizes. */
  height: 116px;
  background: var(--bar);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.bar > div { display: flex; }

.label {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Batting side and total, on the accent block. */
.team {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  /* Wider since the fielding side sits beside the batting one (2026-11-01). */
  min-width: 480px;
  max-width: 520px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.team-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-vs {
  margin-left: 12px;
  font-size: .78em;
  opacity: .8;
  letter-spacing: .04em;
}
.team-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
}
.team .total { font-size: 58px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.team .total .wk { font-size: 38px; font-weight: 800; opacity: .8; }
.team .overs { font-size: 34px; font-weight: 800; white-space: nowrap; }
.team .overs small {
  font-size: 21px;
  font-weight: 700;
  opacity: .75;
  margin-left: 2px;
}

/* The two batters, stacked. */
.batters {
  flex: 1.35;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 30px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.batters .batter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 31px;
  font-weight: 600;
  color: var(--muted);
  min-width: 0;
}
.batters .batter.striker { color: var(--text); font-weight: 800; }
.batters .batter .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.batters .batter .fig { font-weight: 800; white-space: nowrap; }
.batters .batter .fig small { font-size: 23px; font-weight: 600; opacity: .7; margin-left: 4px; }
.on-strike {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--accent);
  align-self: center;
  visibility: hidden;
  flex: none;
}
.batters .batter.striker .on-strike { visibility: visible; }
body.theme-turf .on-strike { border-left-color: var(--boundary); }

/* Current bowler. */
.bar .bowler {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 30px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.bar .bowler .name { font-size: 31px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .bowler .fig { font-size: 28px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* This over, as ball chips. */
.over {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
}
.balls { display: flex; gap: 8px; }
/* From a no-ball until the next legal ball. */
.over .label.free-hit {
  align-self: flex-start;
  padding: 4px 13px;
  border-radius: 8px;
  background: var(--milestone);
  color: #1A1A1F;
  letter-spacing: .1em;
}
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 9px;
  border-radius: 23px;
  background: rgba(255, 255, 255, .12);
  font-size: 23px;
  font-weight: 800;
  box-sizing: border-box;
}
.ball.b4, .ball.b6 { background: var(--boundary); color: #04210F; }
.ball.w { background: var(--wicket); color: #fff; }
.ball.x { background: transparent; border: 2px solid rgba(255, 255, 255, .35); color: var(--muted); }

/* The line under the bar: the chase, the break, or the result. */
.sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 28px;
  background: var(--sub);
  border-radius: 0 0 12px 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .01em;
}
.sub { position: relative; }
#chase-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: rgba(255, 255, 255, .18);
}
#chase-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--boundary); }
#chase-tick { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; background: #fff; }
#sub-main.fow { color: var(--text); }
.fow-tag {
  display: inline-block;
  margin-right: 14px;
  padding: 2px 11px;
  border-radius: 6px;
  background: var(--wicket);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .12em;
  vertical-align: 3px;
}
#sub-main b { color: var(--text); font-weight: 900; }
#sub-main { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-right { display: flex; align-items: center; gap: 22px; color: var(--muted); white-space: nowrap; }
.brand { color: var(--text); }
.brand > img { height: 34px; }
.brand .wm { font-size: 24px; }
#health {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(242, 183, 5, .18);
  color: var(--milestone);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- The moment: a four, a six, a wicket, a milestone ---------------------- */

#flash {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 12px;
  padding: 14px 30px;
  border-radius: 10px;
  background: var(--accent);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: flash-in 320ms cubic-bezier(.2, .9, .3, 1.2) both;
}
#flash.four, #flash.six { background: var(--boundary); color: #04210F; }
#flash.wicket, #flash.fiveFor { background: var(--wicket); }
#flash.fifty, #flash.hundred { background: var(--milestone); color: #231A00; }
#flash.overComplete { background: var(--bar); font-size: 28px; }
#flash.partnership { background: var(--milestone); color: #231A00; }
#flash.hatTrick, #flash.hatTrickBall { background: var(--wicket); }
#flash.maiden { background: rgba(11, 27, 54, .94); }
#flash .flash-row { display: flex; align-items: center; gap: 24px; }
#flash-chips { display: flex; gap: 8px; }
#flash-chips .ball { font-size: 21px; min-width: 40px; height: 40px; }
#flash small { display: block; }
/* "FIVE WICKETS · VENKATARAMANAN 5-23" ran under the out card. */
#flash { max-width: 980px; overflow: hidden; text-overflow: ellipsis; }
#flash.leaving { animation: flash-out 260ms ease-in both; }

/* ---- The duck: out for nought (owner, 2026-10-21; redone 2026-11-01) ---- */
/* After the TV duck of old, as on the phone stream: in helmet and pads it
   trudges in from the right, head down, dragging its bat (the toe scrapes a
   line behind it); stops, lifts its head to the camera, a tear rolls down;
   trudges off to the left. Golden: gold, and the ball bounces off its
   helmet as it comes in. 3.2 s, as the phone (DUCK_MS). */
#duck {
  --duck-body: #F7C948;
  --duck-shade: #E2AE2E;
  position: absolute;
  z-index: 2; /* in front of the out card it arrives with, as on the phone */
  right: -360px;
  bottom: 100%;
  width: 351px;
  margin-bottom: -2px;
  animation: duck-path 3.2s linear both;
}
/* Its kinds (2026-11-01): gold, silver, ice for a diamond, platinum. */
#duck.duck-golden { --duck-body: #F5C400; --duck-shade: #D9A400; --duck-tag: var(--milestone); }
#duck.duck-silver { --duck-body: #C9CED6; --duck-shade: #A3AAB4; --duck-tag: #C9CED6; }
#duck.duck-diamond { --duck-body: #BFE6F7; --duck-shade: #8CCDE8; --duck-tag: #8CD8F5; }
#duck.duck-platinum { --duck-body: #E8E6E1; --duck-shade: #C4C1BA; --duck-tag: #E8E6E1; }
#duck .duck-facets, #duck .duck-sparks, #duck .duck-brow-cross, #duck-board { display: none; }
#duck.duck-diamond .duck-facets, #duck.duck-diamond .duck-sparks { display: inline; }
#duck.duck-silver .duck-brow { display: none; }
#duck.duck-silver .duck-brow-cross { display: inline; }
#duck.duck-platinum #duck-board { display: block; }
#duck .duck-sparks path { animation: duck-twinkle .6s ease-in-out infinite alternate; }
#duck .duck-sparks .s2 { animation-delay: -.2s; }
#duck .duck-sparks .s3 { animation-delay: -.4s; }
#duck .duck-sparks .s4 { animation-delay: -.5s; }
@keyframes duck-twinkle { from { opacity: .1; } to { opacity: 1; } }
#duck-board {
  position: absolute;
  left: 50%;
  bottom: 258px;
  transform: translateX(calc(-60% + 220px));
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, .4);
  background: #14532D;
  font-size: 26px;
  font-weight: 900;
}
#duck svg { display: block; overflow: visible; position: relative; }
#duck .duck-fill, #duck .duck-belly { fill: var(--duck-body); }
#duck .duck-wing { fill: var(--duck-shade); }
#duck .duck-shine, #duck .duck-ball { display: none; }
#duck:not(.duck-duck) .duck-shine, #duck.first-ball .duck-ball { display: inline; }
#duck .duck-body { transform-origin: 0 0; animation: duck-waddle .29s ease-in-out infinite alternate; }
#duck .duck-leg-a { animation: duck-step .29s ease-in-out infinite alternate; }
#duck .duck-leg-b { animation: duck-step .29s ease-in-out infinite alternate-reverse; }
#duck .duck-head { transform: rotate(16deg); transition: transform 300ms ease; }
#duck .duck-tear { opacity: 0; animation: duck-tear-walk .8s linear infinite; }
#duck.standing .duck-body, #duck.standing .duck-leg { animation-play-state: paused; }
#duck.standing .duck-head { transform: translateY(-14px) rotate(-5deg); }
#duck.standing .duck-tear { animation: duck-tear-fall .7s ease-in both; }
#duck.first-ball .duck-ball-path { animation: duck-ball .77s linear both; }
#duck-scrape {
  position: absolute;
  left: 210px;
  bottom: 2px;
  width: 520px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}
#duck-tag {
  position: absolute;
  left: 50%;
  bottom: 262px;
  transform: translateX(-60%);
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--wicket);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
#duck:not(.duck-duck) #duck-tag { background: var(--duck-tag); color: #1A1A1F; }
@keyframes duck-path {
  0%   { transform: translateX(0); animation-timing-function: ease-out; }
  38%  { transform: translateX(-992px); }
  62%  { transform: translateX(-992px); animation-timing-function: ease-in; }
  100% { transform: translateX(-2500px); }
}
@keyframes duck-waddle {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-5px) rotate(3deg); }
}
@keyframes duck-step {
  from { transform: translateX(-12px); }
  to   { transform: translateX(12px); }
}
@keyframes duck-tear-walk {
  0%, 60% { opacity: 0; transform: translateY(0); }
  70%     { opacity: 1; }
  100%    { opacity: 0; transform: translateY(20px); }
}
@keyframes duck-tear-fall {
  from { opacity: 1; transform: translateY(0) scale(.8); }
  to   { opacity: .5; transform: translateY(52px) scale(1.15); }
}
@keyframes duck-ball {
  0%   { transform: translate(240px, -260px); opacity: 1; }
  50%  { transform: translate(0, 0); }
  75%  { transform: translate(-100px, -170px); }
  99%  { transform: translate(-200px, 0); opacity: 1; }
  100% { transform: translate(-200px, 0); opacity: 0; }
}

/* ---- A fifty or a hundred: the bat raised (2026-11-01) --------------------- */
#raise {
  position: absolute;
  bottom: 100%;
  margin-bottom: 12px;
  width: 150px;
  pointer-events: none;
}
#raise svg { display: block; overflow: visible; }
#raise .raise-shirt { fill: var(--accent); }
#raise .raise-arm { transform-origin: 0 0; }
#raise .raise-arm-a { transform: rotate(149deg); animation: raise-bat 650ms cubic-bezier(.3, 1.5, .5, 1) 320ms both; }
#raise .raise-arm-b { transform: rotate(-149deg); }
#raise.hundred .raise-arm-b { animation: raise-other 650ms cubic-bezier(.3, 1.5, .5, 1) 320ms both; }
#raise .raise-spark { opacity: 0; }
#raise.hundred .raise-spark { animation: raise-spark 400ms ease-out 800ms both; }
@keyframes raise-bat { from { transform: rotate(149deg); } to { transform: rotate(-14deg); } }
@keyframes raise-other { from { transform: rotate(-149deg); } to { transform: rotate(14deg); } }
@keyframes raise-spark { from { opacity: 0; } to { opacity: 1; } }

/* ---- Player card: new batter, new bowler, a batter out --------------------- */

#card {
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 14px;
  width: 780px;
  background: rgba(14, 14, 18, 0.95);
  border-left: 8px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
  animation: flash-in 360ms cubic-bezier(.2, .9, .3, 1.2) both;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 26px;
  background: var(--accent);
}
#card.out .card-head { background: #9B1C1C; }
.card-head .lock > img { height: 26px; }
.card-head .wm { font-size: 22px; }
.card-head-r { font-size: 17px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .92; }
.card-top { display: flex; align-items: center; gap: 24px; padding: 20px 26px 16px 20px; }
.card-team { font-size: 23px; font-weight: 600; color: var(--muted); }
.card-tag {
  align-self: flex-start;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 7px;
  background: var(--milestone);
  color: #1A1300;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card-tag.new { background: var(--boundary); color: #04210F; }
.card-tag .wm { font-size: 17px; letter-spacing: .01em; text-transform: none; }
.card-grid {
  display: grid;
  grid-template-columns: 170px repeat(6, 1fr);
  border-top: 1px solid var(--line);
}
.card-grid > span { padding: 10px 6px; text-align: center; font-size: 26px; font-weight: 900; }
.card-grid > .h { padding: 10px 6px 0; font-size: 16px; font-weight: 900; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.card-grid > .l {
  display: flex; align-items: center; gap: 7px; text-align: left; padding-left: 26px;
  font-size: 18px; font-weight: 900; letter-spacing: .1em; color: rgba(255,255,255,.75); text-transform: uppercase;
}
.card-grid > .l .wm { font-size: 19px; letter-spacing: .01em; text-transform: none; color: var(--text); }
.card-grid > .r2 { background: rgba(255, 255, 255, .045); }
.card-form { display: flex; align-items: center; gap: 10px; padding: 14px 26px 18px; border-top: 1px solid var(--line); }
.card-form .k { font-size: 17px; font-weight: 900; letter-spacing: .14em; color: var(--muted); margin-right: 6px; text-transform: uppercase; }
.card-form .f {
  min-width: 58px; height: 40px; padding: 0 12px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); font-size: 23px; font-weight: 900; box-sizing: border-box;
}
.card-form .f.good { background: #1F6F3D; }
.card-form .f.notout { background: #8A6500; }
.card-form .f.dim { color: var(--muted); font-size: 18px; }
.card-form .extra { margin-left: auto; font-size: 18px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
#card.leaving { animation: flash-out 260ms ease-in both; }
#card.out { border-left-color: var(--wicket); }
body.theme-turf #card.batter, body.theme-turf #card.bowler { border-left-color: var(--boundary); }

.avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border: 4px solid var(--accent);
  box-sizing: border-box;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  font-size: 40px;
  font-weight: 900;
  letter-spacing: .02em;
}
#card.out .avatar { background: linear-gradient(135deg, #FF4D4D, #9B1C1C); }
.avatar { position: relative; overflow: hidden; }
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-line:empty { display: none; }
.card-kicker {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
body.theme-turf .card-kicker { color: var(--boundary); }
#card.out .card-kicker { color: var(--wicket); }
.card-name {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-line { font-size: 25px; font-weight: 800; white-space: nowrap; }
.card-line.muted { font-size: 23px; font-weight: 700; color: var(--muted); }
#card.out #card-line-0 { font-size: 34px; }

@keyframes flash-in {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes flash-out {
  to { opacity: 0; transform: translateY(16px); }
}

/* ---- The ThisOver brand: the wordmark (the ball is the O), the mark ------- */

.wm { font-weight: 900; white-space: nowrap; line-height: 1; letter-spacing: .005em; }
.wm .ob { height: .74em; width: .74em; vertical-align: baseline; margin: 0 .02em; }
.lock { display: inline-flex; align-items: center; gap: 10px; }

/* The badge, top right — navy, as the brand banner. */
/* ---- Instant replay: the badge, top left, while the replay scene is live --- */
#replay-tag {
  position: absolute;
  top: 36px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 20px;
  border-radius: 14px;
  background: #C8102E;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: replay-in .35s cubic-bezier(.2, 1.4, .4, 1);
}
#replay-tag[hidden] { display: none; }
#replay-tag i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  animation: replay-dot 1s ease-in-out infinite;
}
@keyframes replay-in { from { transform: translateX(-40px) scale(.8); opacity: 0; } }
@keyframes replay-dot { 50% { opacity: .25; } }

#bug {
  position: absolute;
  top: 36px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 12px 16px;
  border-radius: 14px;
  background: rgba(11, 27, 54, .94);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.bug-mark { height: 56px; }
.bug-text { display: flex; flex-direction: column; gap: 4px; }
#bug .wm { font-size: 40px; }

/* The mark at the start of the strip. */
.mark-block {
  flex: none;
  width: 96px;
  align-items: center;
  justify-content: center;
  background: #0E0E12;
  border-right: 1px solid var(--line);
}
.mark-block img { height: 64px; }

/* ---- Sponsors: full screen, and "Presented by" on the strip ------------- */

#sponsor {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: rgba(8, 8, 12, .9);
  animation: flash-in 360ms ease-out both;
}
#sponsor.leaving { animation: flash-out 300ms ease-in both; }
#stage.sponsoring #strip { display: none; }
.sp-cap {
  max-width: 1500px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-box {
  width: 1180px;
  height: 600px;
  border-radius: 22px;
  overflow: hidden;
  background: #111117;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-box img { width: 100%; height: 100%; object-fit: contain; }
.sp-bar { width: 1180px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
#sponsor.running .sp-bar i { width: 100%; transition: width linear; }
.sp-brand { display: flex; align-items: center; gap: 18px; }
.sp-brand .lock > img { height: 56px; }
.sp-brand .wm { font-size: 40px; }
.sp-by { font-size: 22px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

#presented { display: inline-flex; align-items: center; gap: 10px; }
.pb-k { font-size: 16px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pb-name {
  padding: 3px 12px;
  border-radius: 6px;
  background: #FFFFFF;
  color: #0E0E12;
  font-size: 19px;
  font-weight: 900;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A milestone banner's kicker and its second line. */
#flash-kicker { display: block; font-size: 19px; letter-spacing: .16em; margin-bottom: 4px; }
#flash-kicker .wm { font-size: 20px; letter-spacing: .01em; text-transform: none; }
#flash-text .wm { text-transform: none; }
#flash-sub { display: block; font-size: 22px; letter-spacing: .1em; opacity: .8; margin-top: 2px; }

/* A scorecard or the points table (2026-11-01): centred above the strip,
   the strip stays on. Names left, figures right-aligned. */
#board {
  position: absolute;
  left: 50%;
  bottom: 196px;
  transform: translateX(-50%);
  width: 1180px;
  box-sizing: border-box;
  padding: 26px 28px 22px;
  border-radius: 16px;
  background: rgba(14, 14, 18, 0.95);
  animation: flash-in 320ms cubic-bezier(.2, .9, .3, 1.2) both;
}
#board.leaving { animation: flash-out 300ms ease-in both; }
#board .bd-title {
  font-size: 36px;
  font-weight: 900;
  border-left: 6px solid var(--accent);
  padding-left: 12px;
}
#board .bd-sub {
  margin: 4px 0 10px 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
}
#board .bd-sub:empty { display: none; }
#board table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  table-layout: fixed;
}
#board th {
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
  padding: 4px 0 6px;
  border-bottom: 2px solid var(--line);
}
#board td {
  font-size: 22px;
  font-weight: 700;
  text-align: right;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
#board th.name, #board td.name { text-align: left; padding-right: 12px; }
#board td.name:first-child { font-weight: 800; }
#board td.note { font-size: 19px; color: var(--muted); }
#board col.fig { width: 86px; }
#board .bd-foot {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
}
#board .bd-foot:empty { display: none; }
