@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-700.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/outfit-900.woff2") format("woff2");
}

:root {
  --scorebug-ticker-height: 36px;
  --scorebug-body-height: 420px;
  --scorebug-total-height: calc(var(--scorebug-body-height) + var(--scorebug-ticker-height));
  --bg: #0d0818;
  --bg-card: rgba(10, 5, 25, 0.88);
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --accent: #ff3d7f;
  --accent-soft: rgba(255, 61, 127, 0.15);
  --logo-blue: #00e5ff;
  --logo-blue-soft: rgba(0, 229, 255, 0.2);
  --sdv-cyan: #00e5ff;
  --sdv-pink: #ff3d7f;
  --sdv-purple: #a855f7;
  --sdv-green: #22c55e;
  --sdv-orange: #f97316;
  --sdv-yellow: #facc15;
  --border: rgba(0, 229, 255, 0.18);
  --radius: 8px;
  --transition: 0.2s ease;
  --font-sans: "Outfit", "Space Grotesk", system-ui, sans-serif;
  --home-rgb: 255, 61, 127;
  --away-rgb: 249, 115, 22;
  --home-primary: #ff3d7f;
  --home-glow: rgba(255, 61, 127, 0.6);
  --away-primary: #f97316;
  --away-glow: rgba(249, 115, 22, 0.6);
  --demo-content-max: min(1400px, calc(100vw - 4rem));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  margin: 0;
  padding: 0;
}

html:not(.is-embedded),
html:not(.is-embedded) body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

html.is-embedded,
html.is-embedded body {
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
}

html.is-embedded .stage {
  min-height: 0;
  height: auto;
  padding: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

html.is-embedded,
html.is-embedded body {
  width: 900px;
  height: var(--scorebug-total-height);
  min-height: 0;
  overflow: hidden;
}

html.is-embedded .hero-stack {
  width: 900px;
  gap: 0;
}

html.is-embedded .scorebug {
  animation: none;
}

html.is-embedded .goal-light,
html.is-embedded .panel-hover-controls {
  display: none !important;
}

html.is-embedded .demo-header,
html.is-embedded .variation-section,
html.is-embedded .arena-section,
html.is-embedded .controller-panel {
  display: none !important;
}

html.is-embedded .bg-overlay {
  display: none !important;
}

html.is-embedded .sport-examples-nav,
html.is-presentation .sport-examples-nav {
  display: none !important;
}

html.is-embedded .scorebug-demo-site-header {
  display: none !important;
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
  font-family: var(--font-sans);
  color: var(--text);
}

html:not(.is-embedded):not(.is-presentation) .stage {
  padding-top: calc(var(--site-header-h, 4.35rem) + 2rem);
}

html.is-embedded .stage {
  padding-top: 2rem;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 2rem 2rem 4rem;
}

.hero-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.25rem;
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto;
  padding-bottom: 3rem;
  background: transparent;
}

.sport-examples {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sport-examples-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sport-examples-nav-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.sport-examples-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.sport-examples-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f2f2f2;
}

.sport-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sport-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sport-tab:hover {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.sport-examples-nav[data-active-sport="NBA"] .sport-tab--active {
  color: var(--sdv-pink);
  border-color: rgba(255, 61, 127, 0.55);
  background: rgba(255, 61, 127, 0.08);
  box-shadow: 0 0 18px rgba(255, 61, 127, 0.18);
}

.sport-examples-nav[data-active-sport="NHL"] .sport-tab--active {
  color: var(--sdv-cyan);
  border-color: rgba(0, 229, 255, 0.55);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.sport-examples-nav[data-active-sport="NFL"] .sport-tab--active {
  color: var(--sdv-orange);
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.08);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.18);
}

.sport-tab-descriptor {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.48);
  min-height: 1.1rem;
}

.sport-examples-nav[data-active-sport="NBA"] .sport-tab-descriptor {
  color: rgba(255, 61, 127, 0.72);
}

.sport-examples-nav[data-active-sport="NHL"] .sport-tab-descriptor {
  color: rgba(0, 229, 255, 0.72);
}

.sport-examples-nav[data-active-sport="NFL"] .sport-tab-descriptor {
  color: rgba(249, 115, 22, 0.78);
}

.sport-examples-panels {
  width: 100%;
  position: relative;
}

.sport-examples-mobile-note {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sport-example-block {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.sport-example-block.sport-example-block--active {
  display: flex;
}

.sport-example-block[hidden] {
  display: none !important;
}

.sport-example-block[data-sport="NBA"] .controls-sport-extra--nhl,
.sport-example-block[data-sport="NBA"] .controls-sport-extra--nfl {
  display: none;
}

.sport-example-block[data-sport="NHL"] .controls-sport-extra--nfl {
  display: none;
}

.sport-example-block[data-sport="NFL"] .controls-sport-extra--nhl {
  display: none;
}

.controls-sport-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.35rem;
}

.center-sog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.15rem 0.35rem;
}

.sog-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.sog-val {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #00e5ff;
}

.sog-sep {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

/* Box score module */
.boxscore-stage,
.run-stage,
.team-stats-stage {
  position: relative;
  min-height: 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.boxscore-idle,
.run-idle,
.team-stats-idle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.boxscore-idle[hidden],
.run-idle[hidden],
.team-stats-idle[hidden] {
  display: none !important;
}

.boxscore-graphic,
.run-graphic,
.team-stats-graphic {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35));
}

.boxscore-graphic[hidden],
.run-graphic[hidden],
.team-stats-graphic[hidden] {
  display: none !important;
}

.boxscore-graphic--in,
.run-graphic--in,
.team-stats-graphic--in {
  animation: arenaGraphicIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boxscore-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.boxscore-team {
  flex: 1 1 8rem;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boxscore-player {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff3d7f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boxscore-line {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 1rem 0.75rem;
  gap: 0.35rem;
}

.boxscore-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  min-width: 0;
  padding: 0 0.1rem;
}

.boxscore-stat-lbl {
  font-size: clamp(0.62rem, 1.6vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  white-space: nowrap;
}

.boxscore-stat-val {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.replay-play-type {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #00e5ff;
  margin-bottom: 0.2rem;
}

.run-banner {
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #facc15;
  padding: 1.1rem 1.25rem 0.35rem;
}

.run-team {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff3d7f;
  padding: 0 1.25rem;
}

.run-meta {
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.45rem 1.25rem 1.1rem;
  text-transform: uppercase;
}

.team-stats-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-stats-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  white-space: nowrap;
}

.team-stats-abbr {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.team-stats-abbr--home { color: #ff3d7f; text-align: left; }
.team-stats-abbr--away { color: #f97316; text-align: right; }

.team-stats-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  width: 100%;
}

.team-stats-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
}

.team-stats-stat {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  white-space: nowrap;
  padding: 0 0.25rem;
}

.team-stats-val {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-stats-val--home { color: #ff3d7f; text-align: left; }
.team-stats-val--away { color: #f97316; text-align: right; }

.arena-card--boxscore { --arena-accent: #a855f7; overflow: visible; }
.arena-card--run-tracker { --arena-accent: #facc15; }
.arena-card--team-stats { --arena-accent: #22c55e; }

.arena-card--boxscore .arena-eyebrow { color: #a855f7; }
.arena-card--run-tracker .arena-eyebrow { color: #facc15; }
.arena-card--team-stats .arena-eyebrow { color: #22c55e; }

@media (max-width: 768px) {
  .sport-examples-mobile-note {
    display: block;
  }

  .sport-tab-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .sport-tab {
    padding: 0.5rem 0.35rem;
    font-size: 0.62rem;
    text-align: center;
  }

  html:not(.is-embedded) .sport-example-block .controller-panel .controls--gamepad {
    display: none;
  }

  html:not(.is-embedded) .sport-example-block .keyboard-hints {
    display: none;
  }

  html:not(.is-embedded) .sport-example-block .game-log-panel {
    display: none;
  }

  html:not(.is-embedded) .arena-controls .arena-btn {
    min-width: calc(50% - 0.25rem);
    flex: 1 1 calc(50% - 0.25rem);
  }
}

/* Scorebug */
.scorebug-wrapper {
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto;
}

.scorebug {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto;
  animation: unitFlicker 9s ease-in-out infinite;
}

@keyframes unitFlicker {
  0%, 100% { opacity: 1; }
  47% { opacity: 0.96; }
  48% { opacity: 1; }
  73% { opacity: 0.94; }
  74% { opacity: 1; }
}

.scorebug::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 4px);
  opacity: 0.45;
}

.scorebug-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(255, 61, 127, 0.08), 0 0 80px rgba(0, 229, 255, 0.06);
  overflow: hidden;
  min-height: var(--scorebug-total-height);
}

.corner { position: absolute; width: 14px; height: 14px; z-index: 6; pointer-events: none; }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--logo-blue); box-shadow: 0 0 8px var(--logo-blue-soft); }
.corner-tl { top: 0; left: 0; }
.corner-tl::before { top: 0; left: 0; width: 14px; height: 1.5px; }
.corner-tl::after { top: 0; left: 0; width: 1.5px; height: 14px; }
.corner-bl { bottom: 0; left: 0; }
.corner-bl::before { bottom: 0; left: 0; width: 14px; height: 1.5px; }
.corner-bl::after { bottom: 0; left: 0; width: 1.5px; height: 14px; }
.corner-tr { top: 0; right: 0; }
.corner-tr::before { top: 0; right: 0; width: 14px; height: 1.5px; }
.corner-tr::after { top: 0; right: 0; width: 1.5px; height: 14px; }
.corner-br { bottom: 0; right: 0; }
.corner-br::before { bottom: 0; right: 0; width: 14px; height: 1.5px; }
.corner-br::after { bottom: 0; right: 0; width: 1.5px; height: 14px; }

.scorebug-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 160px;
  flex: 0 0 auto;
}
.scorebug-main > .panel-center {
  min-height: auto;
}

.edge-glow-top, .edge-glow-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 49%, var(--logo-blue) 51%, var(--logo-blue) 100%);
}
.edge-glow-top { top: 0; box-shadow: -80px -2px 16px rgba(255, 61, 127, 0.35), 0 -2px 10px var(--logo-blue-soft), 80px -2px 16px var(--logo-blue-soft); }
.edge-glow-bottom { bottom: 0; box-shadow: -80px 2px 16px rgba(255, 61, 127, 0.35), 0 2px 10px var(--logo-blue-soft), 80px 2px 16px var(--logo-blue-soft); }

.panel {
  padding: 0.5rem 0.65rem;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 160px;
}
.panel-home,
.panel-away {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 0.65rem;
  isolation: isolate;
}
.panel-home .team-block,
.panel-away .team-block {
  flex: 1;
  align-self: stretch;
  position: relative;
  z-index: 1;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.panel-ghost-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-size: 14rem;
  font-weight: 900;
  line-height: 0.88;
  opacity: 0.04;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.panel-home .panel-ghost-score {
  color: var(--home-primary);
}
.panel-away .panel-ghost-score {
  color: var(--away-primary);
}
.panel-home .badge,
.panel-away .badge,
.panel-home .score-wrap,
.panel-away .score-wrap {
  position: relative;
  z-index: 1;
}
.panel-home {
  border-right: 1px solid rgba(var(--home-rgb), 0.15);
  padding-left: 28px;
  padding-right: 0.65rem;
}
.panel-away {
  border-left: 1px solid rgba(var(--away-rgb), 0.15);
  padding-right: 28px;
  padding-left: 0.65rem;
}
.panel-home::before,
.panel-away::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: 200% 200%;
  animation-duration: 10s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.panel-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  width: 180px;
  height: 180px;
  opacity: 0.03;
  pointer-events: none;
}
.panel-watermark img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: grayscale(30%) blur(1px);
}
.panel-home::before {
  background-image:
    radial-gradient(ellipse 55% 50% at 18% 22%, rgba(255, 61, 127, 0.08) 0%, transparent 68%),
    radial-gradient(ellipse 48% 42% at 82% 78%, rgba(255, 61, 127, 0.05) 0%, transparent 62%);
  animation-name: grad-drift-home;
}
.panel-away::before {
  background-image:
    radial-gradient(ellipse 55% 50% at 82% 22%, rgba(249, 115, 22, 0.08) 0%, transparent 68%),
    radial-gradient(ellipse 48% 42% at 18% 78%, rgba(249, 115, 22, 0.05) 0%, transparent 62%);
  animation-name: grad-drift-away;
}
@keyframes grad-drift-home {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@keyframes grad-drift-away {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.panel.panel-center {
  width: 280px;
  min-width: 280px;
  min-height: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  align-self: stretch;
  height: auto;
  background: rgba(255, 61, 127, 0.04);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.center-section {
  width: 100%;
  padding: 10px 0;
}
.center-section[hidden] { display: none !important; }

.panel-hover-controls {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 4;
}
.panel-team-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-align: center;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.05;
  pointer-events: none;
  margin-top: 0.35rem;
}
.team-name-line {
  display: block;
  white-space: nowrap;
}
.team-name-line:empty {
  display: none;
}
.panel-home:hover .panel-hover-controls,
.panel-away:hover .panel-hover-controls,
.panel-hover-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.panel-ctrl {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  background: transparent;
  color: #a3a3a3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.panel-home .panel-ctrl:hover {
  color: #fff;
  border-color: var(--home-primary);
  box-shadow: 0 0 8px rgba(255, 61, 127, 0.4);
}
.panel-away .panel-ctrl:hover {
  color: #fff;
  border-color: var(--away-primary);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}
.panel-ctrl[hidden] { display: none !important; }

.team-block {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
}

.team-spacer {
  display: none;
}

.badge { flex-shrink: 0; }
.badge img {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.panel-home .badge img { filter: drop-shadow(0 0 12px var(--home-glow)); }
.panel-away .badge img { filter: drop-shadow(0 0 12px var(--away-glow)); }

.panel-home .panel-team-name { color: var(--home-primary); text-shadow: 0 0 10px var(--home-glow); }
.panel-away .panel-team-name { color: var(--away-primary); text-shadow: 0 0 10px var(--away-glow); }

.team-score {
  font-weight: 900;
  font-size: 7rem;
  line-height: 0.88;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.panel-home .team-score { color: var(--home-primary); text-shadow: 0 0 14px var(--home-glow), 0 0 32px rgba(var(--home-rgb), 0.35); }
.panel-away .team-score { color: var(--away-primary); text-shadow: 0 0 14px var(--away-glow), 0 0 32px rgba(var(--away-rgb), 0.35); }

.score-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
  align-self: center;
  z-index: 2;
  width: 100%;
  text-align: center;
}
.panel-home .score-wrap,
.panel-away .score-wrap {
  margin: 0;
}

.timeout-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.timeout-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
}
.timeout-dots--home .timeout-dot { color: #ff3d7f; }
.timeout-dots--away .timeout-dot { color: #f97316; }
.timeout-dots--home .timeout-dot.filled { background: #ff3d7f; box-shadow: 0 0 5px var(--home-glow); }
.timeout-dots--away .timeout-dot.filled { background: #f97316; box-shadow: 0 0 5px var(--away-glow); }
.timeout-dots[hidden] { display: none !important; }

.sdv-bug {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  justify-content: center;
}
.sdv-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 8px var(--logo-blue-soft));
}
.sdv-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 61, 127, 0.6);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.center-divider {
  width: 100%;
  height: 1px;
  background: #2a2a2a;
  box-shadow: none;
  flex-shrink: 0;
}
.center-divider[hidden] { display: none !important; }

.center-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.period-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
}

.period-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.period-value {
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: #f2f2f2;
  text-shadow: 0 0 10px var(--logo-blue-soft);
}

.clock-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.clock-value {
  display: inline-block;
  min-width: 4ch;
  text-align: center;
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: #f2f2f2;
  text-shadow: 0 0 14px var(--logo-blue-soft);
}

.shot-row,
.sub-row {
  width: 100%;
}
.shot-row[hidden],
.sub-row[hidden] { display: none !important; }

.shot-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.shot-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shot-clock-value {
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: #f2f2f2;
}

.sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sub-row-label {
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sub-clock-value {
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-shadow: 0 0 8px var(--logo-blue-soft);
}

.fouls-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.75rem;
  width: 100%;
  text-align: center;
  align-items: center;
}

.fouls-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #f2f2f2;
  line-height: 1;
}

.fouls-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
}

.fouls-lbl--span {
  grid-column: 1 / -1;
}

.bonus-val {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}
#home-bonus.bonus-val--yes { color: #ff3d7f; }
#away-bonus.bonus-val--yes { color: #f97316; }
.bonus-val--muted { color: var(--text-muted); }

.center-tol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.tol-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  text-align: center;
}

.tol-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.timeout-dots--home,
.timeout-dots--away {
  justify-content: center;
}

.center-possession {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 12px 0 !important;
}

.possession-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  text-align: center;
}

.possession-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.poss-arrow {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  color: #444;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.poss-arrow.is-active { opacity: 1; }
.poss-arrow--left.is-active { color: #ff3d7f; }
.poss-arrow--right.is-active { color: #f97316; }

.poss-abbr {
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: color 0.2s ease, font-size 0.2s ease;
}
.poss-abbr--home.is-active { color: #ff3d7f; font-size: 1.4rem; }
.poss-abbr--away.is-active { color: #f97316; font-size: 1.4rem; }
.poss-abbr.is-muted { color: #444; font-size: 0.9rem; font-weight: 700; }

.scorebug-top {
  position: relative;
  z-index: 5;
  flex: 0 0 var(--scorebug-ticker-height);
  order: -1;
  isolation: isolate;
}

.ticker-strip {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 36px;
  background: #0d0d0d;
  border-top: none;
  border-bottom: 1px solid #2a2a2a;
  overflow: hidden;
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 97%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 97%, transparent 100%);
}

.ticker-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff3d7f, #00e5ff);
  z-index: 2;
  pointer-events: none;
}

.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  height: 36px;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
  animation-play-state: running;
  -webkit-animation: tickerScroll 35s linear infinite;
  will-change: transform;
}

.ticker-content {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 36px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 36px;
}

.ticker-content > .ticker-seg:first-child {
  margin-left: 0;
}

.ticker-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 14px;
}

.ticker-pill-bg {
  display: inline-block;
  background: rgba(255, 61, 127, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
}

.ticker-sep {
  margin: 0 8px;
  color: rgba(0, 229, 255, 0.5);
}

.ticker-team {
  margin-right: 10px;
}

.ticker-score {
  color: #fff;
  margin: 0 10px;
}

.ticker-meta {
  color: #a3a3a3;
  margin-left: 10px;
}

.ticker-team--green { color: #00c853; }
.ticker-team--ice { color: #00cfff; }
.ticker-team--yellow { color: #facc15; }
.ticker-team--orange { color: #f97316; }
.ticker-team--pink { color: #ff3d7f; }
.ticker-team--gold { color: #f97316; }

.ticker-pill--cyan { color: #00e5ff; }
.ticker-pill--pink { color: #ff3d7f; }
.ticker-pill--green { color: #00ff88; }
.ticker-pill--orange { color: #f97316; }

.ticker-brand {
  color: #f2f2f2;
  font-weight: 900;
}

.ticker-sport-icon {
  margin-right: 6px;
  font-size: 0.85rem;
}

.ticker-final-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #f97316;
  animation: bonusBadgeIn 0.8s ease-out;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lower-third {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 15;
  pointer-events: none;
}

.lower-third.visible {
  transform: translateY(0);
}

.lt-accent {
  width: 4px;
  background: linear-gradient(180deg, #ff3d7f, #00e5ff);
  flex-shrink: 0;
}

.lt-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid #2a2a2a;
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lt-team {
  flex: 0 1 auto;
  max-width: 32%;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--home-primary);
}

.lt-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 28%;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f2f2f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-name::before {
  content: "·";
  margin: 0 0.35em;
  color: #666;
  font-weight: 400;
}

.lt-stats {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8c8c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lt-logo {
  width: 36px;
  background: rgba(20, 20, 20, 0.97);
  border-bottom: 1px solid #2a2a2a;
  border-left: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
}

.lt-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

html.is-embedded .lower-third {
  display: none !important;
}

.quarter-break {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.quarter-break.visible {
  opacity: 1;
  pointer-events: none;
}

.qb-bg {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 14, 0.96);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.qb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qb-finals-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.qb-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #00e5ff;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
  animation: qb-label-pulse 1.5s ease-in-out infinite;
}

.qb-label--halftime {
  color: #ff3d7f;
  text-shadow: 0 0 20px rgba(255, 61, 127, 0.6);
}

.qb-subline {
  margin-top: -12px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #a3a3a3;
}

@keyframes qb-label-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.qb-scores {
  display: flex;
  align-items: center;
  gap: 40px;
}

.qb-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qb-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.qb-team-name {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a3a3a3;
  text-align: center;
}

.qb-score {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.qb-team.home .qb-score {
  color: #ff3d7f;
  text-shadow: 0 0 20px rgba(255, 61, 127, 0.5);
}

.qb-team.away .qb-score {
  color: #f97316;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.qb-team.home.qb-team--winner .qb-team-name {
  color: #ff3d7f;
  font-size: 0.75rem;
}

.qb-team.away.qb-team--winner .qb-team-name {
  color: #f97316;
  font-size: 0.75rem;
}

.qb-team--winner .qb-score {
  font-size: 4.5rem;
}

.qb-divider {
  font-size: 2rem;
  color: #2a2a2a;
  font-weight: 900;
}

.qb-sdv {
  margin-top: 8px;
}

.qb-sdv img {
  display: block;
}

/* Hockey penalties */
.center-penalties {
  width: 100%;
}

.penalties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  width: 100%;
  text-align: center;
  align-items: start;
}

.penalty-side-lbl {
  display: block;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.penalty-side--home .penalty-side-lbl { color: var(--home-primary); }
.penalty-side--away .penalty-side-lbl { color: var(--away-primary); }

.penalty-timers {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
}

.penalty-timer {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #ff3d7f;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.penalty-pp {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.penalty-pp-lbl {
  font-size: 0.6rem;
  color: #00e5ff;
}

.penalty-pp-val {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #f2f2f2;
  text-shadow: 0 0 8px var(--logo-blue-soft);
}

/* Baseball count dots */
.center-mlb {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.mlb-count-block {
  display: grid;
  grid-template-columns: 3.5rem 1fr 1.25rem;
  align-items: center;
  gap: 0.4rem;
}

.mlb-count-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mlb-count-val {
  font-size: 1.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #f2f2f2;
  text-align: right;
}

.mlb-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.mlb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #00e5ff;
  background: transparent;
  flex-shrink: 0;
}

.mlb-dot--square {
  border-radius: 2px;
}

.mlb-dot.filled {
  background: #00e5ff;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

.controls-mlb {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.25rem;
}

.controls-mlb[hidden] {
  display: none !important;
}

.controls-mlb .ctrl-btn {
  flex: 1;
}

/* Controller panel */
.controller-panel {
  position: relative;
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto;
  background: rgba(10, 5, 25, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 12px;
  padding: 0;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 229, 255, 0.08),
    0 0 32px rgba(255, 61, 127, 0.06);
  overflow: hidden;
}

.controller-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 0;
}

.controller-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(8, 4, 20, 0.95);
}

.controller-header-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00e5ff;
}

.controller-header-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #666;
}

.controller-body {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
}

.controller-body .sport-switcher,
.controller-body .controls--gamepad,
.controller-body .game-log-panel {
  padding-left: 1rem;
  padding-right: 1rem;
}

.keyboard-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  max-width: var(--demo-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0.65rem 1rem;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.58rem;
  color: #444;
}

.keyboard-hints kbd {
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #00e5ff;
  padding: 1px 5px;
  font-size: 0.55rem;
  margin-right: 3px;
  font-family: inherit;
}

html.is-embedded .keyboard-hints,
html.is-presentation .keyboard-hints {
  display: none;
}

.sport-switcher {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sport-btn {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #a3a3a3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sport-btn:hover {
  color: #fff;
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.sport-btn--active {
  color: #fff;
  background: #00e5ff;
  border-color: #00e5ff;
}

.controls--gamepad {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

.controls-side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.controls-side--home {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  padding: 0.75rem;
  border-radius: 8px;
}

.controls-side--away {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  padding: 0.75rem;
  border-radius: 8px;
}

.controls-side-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.controls-side-label--home { color: var(--home-primary); }
.controls-side-label--away { color: var(--away-primary); }

.controls-side-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.controls-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
  background: transparent;
  border-top: none;
  border-bottom: none;
  padding: 0.75rem;
  border-radius: 8px;
}

.ctrl-btn,
.arena-btn,
.trivia-answer {
  border-radius: 999px;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  background: transparent;
  color: #a3a3a3;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  box-shadow: none;
  transition: transform 80ms ease, box-shadow 80ms ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.ctrl-btn-label {
  flex: 1;
  text-align: left;
}

.ctrl-btn-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a1a1a;
  flex-shrink: 0;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ctrl-btn-led--amber {
  background: #f97316;
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.8);
}

.ctrl-btn-led--flash-green {
  animation: ledFlashGreen 0.4s ease-out;
}

@keyframes ledFlashGreen {
  0%, 100% { background: #1a1a1a; box-shadow: none; }
  40% { background: #00e676; box-shadow: 0 0 10px rgba(0, 230, 118, 0.9); }
}

.ctrl-led--live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  animation: liveLedPulse 2s ease-in-out infinite;
}

@keyframes liveLedPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 230, 118, 0.6); }
  50% { opacity: 0.45; box-shadow: 0 0 2px rgba(0, 230, 118, 0.3); }
}

.controls-side--home .ctrl-btn:hover {
  border-color: var(--home-primary);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 61, 127, 0.4);
}

.controls-side--home .ctrl-btn:active,
.controls-side--home .ctrl-btn.ctrl-btn--pressed {
  background: rgba(255, 61, 127, 0.1);
  transform: translateY(2px);
}

.controls-side--away .ctrl-btn:hover {
  border-color: var(--away-primary);
  color: #fff;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.controls-side--away .ctrl-btn:active,
.controls-side--away .ctrl-btn.ctrl-btn--pressed {
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(2px);
}

.controls-center .ctrl-btn:hover,
.arena-btn:hover {
  border-color: #00e5ff;
  color: #fff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.controls-center .ctrl-btn:active,
.controls-center .ctrl-btn.ctrl-btn--pressed,
.arena-btn:active {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(2px);
}

.ctrl-btn--hero:not(.ctrl-btn--danger) {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.85rem 1.5rem;
  min-height: 52px;
  min-width: 180px;
  border-color: #00e5ff;
  color: #00e5ff;
  background: transparent;
}

.ctrl-btn--hero:not(.ctrl-btn--danger):hover {
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.ctrl-btn--hero:not(.ctrl-btn--danger):active,
.ctrl-btn--hero:not(.ctrl-btn--danger).ctrl-btn--pressed {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(2px);
}

.ctrl-btn--danger {
  border-radius: 999px;
  background: rgba(255, 61, 127, 0.15);
  border-color: rgba(255, 61, 127, 0.5);
  color: #ff3d7f;
  box-shadow: 0 0 8px rgba(255, 61, 127, 0.2);
}

.ctrl-btn--danger:active,
.ctrl-btn--danger.ctrl-btn--pressed {
  background: rgba(255, 61, 127, 0.25);
  transform: translateY(2px);
  box-shadow: 0 0 12px rgba(255, 61, 127, 0.35);
}

.game-log-panel {
  margin-top: 1rem;
  padding-bottom: 0.25rem;
}

.game-log-header {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00e5ff;
  margin-bottom: 0.4rem;
}

.game-log {
  position: relative;
  height: 120px;
  overflow-y: auto;
  background: #000;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.55;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.game-log::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 136, 0.03) 2px,
    rgba(0, 255, 136, 0.03) 4px
  );
  border-radius: inherit;
}

.game-log-line {
  display: block;
  position: relative;
  z-index: 1;
}

.game-log-line--home {
  color: #00ff88;
}

.game-log-line--away {
  color: #f97316;
}

.game-log-line--system {
  color: #00e5ff;
}

.ctrl-btn--danger:hover {
  background: rgba(255, 61, 127, 0.25);
  border-color: #ff3d7f;
  color: #ff6699;
  box-shadow: 0 0 12px rgba(255, 61, 127, 0.4);
}

@keyframes ctrlGlowPulse {
  0% { box-shadow: 0 2px 0 #0a0a0a, 0 0 22px rgba(0, 229, 255, 0.7); }
  100% { box-shadow: 0 2px 0 #0a0a0a, 0 0 0 rgba(0, 229, 255, 0); }
}

/* ── Score celebration sequence ── */
.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.8);
}

.screen-flash--active {
  animation: screenFlashPop 150ms ease-out forwards;
}

.screen-flash--pink {
  background: rgba(255, 61, 127, 0.75);
}

.screen-flash--gold {
  background: rgba(249, 115, 22, 0.75);
}

@keyframes screenFlashPop {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

.goal-light {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  background: rgba(200, 0, 0, 0);
}

.goal-light--scored {
  background: rgba(180, 0, 0, 0.55);
  animation: goalLightScored 2s ease-out forwards;
}

@keyframes goalLightScored {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.panel-home .team-score.score-slam {
  animation: scoreSlamHome 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.panel-away .team-score.score-slam {
  animation: scoreSlamAway 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.team-score.score-flash {
  animation: scoreFlash 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scoreFlash {
  0% { transform: scale(1.25); color: #fff; filter: brightness(1.4); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); filter: brightness(1); }
}

.bonus-val--yes.bonus-val-pulse {
  animation: bonusValPulse 1.2s ease-in-out infinite;
}

@keyframes bonusValPulse {
  0%, 100% { text-shadow: 0 0 6px currentColor; }
  50% { text-shadow: 0 0 18px currentColor, 0 0 32px currentColor; }
}

.fouls-val.foul-flash {
  animation: foulFlash 0.4s ease-out;
}

@keyframes foulFlash {
  0% { transform: scale(1.4); color: #f97316; }
  60% { transform: scale(0.95); color: #f97316; }
  100% { transform: scale(1); color: #f2f2f2; }
}

.fouls-bonus-badge {
  position: absolute;
  font-size: 0.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f97316;
  background: rgba(255, 180, 0, 0.15);
  padding: 1px 4px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.fouls-bonus-badge--home {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  margin-top: -2px;
}

.fouls-bonus-badge--away {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  margin-top: -2px;
}

.fouls-bonus-badge.bonus-badge-in {
  animation: bonusBadgeIn 0.6s ease-out forwards;
}

@keyframes bonusBadgeIn {
  0% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 180, 0, 0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.center-fouls.bonus-active--home {
  box-shadow: inset 0 0 12px rgba(255, 61, 127, 0.3);
}

.center-fouls.bonus-active--away {
  box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.3);
}

.shot-clock-value.shot-clock--urgent {
  color: #ff3d7f;
  animation: shotClockUrgent 0.8s ease-in-out infinite;
}

.shot-clock-value.shot-clock--critical {
  animation: shotClockUrgent 0.35s ease-in-out infinite;
}

@keyframes shotClockUrgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

.scorebug-frame--final {
  animation: finalGoldPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.4);
}

@keyframes finalGoldPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
  50% { box-shadow: 0 0 50px rgba(249, 115, 22, 0.7); }
}

.panel--winner {
  filter: brightness(1.25);
}

.panel--winner .team-score {
  text-shadow: 0 0 30px currentColor;
}

.poss-arrow.poss-flip {
  display: inline-block;
  animation: possFlip 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes possFlip {
  0% { transform: rotateY(90deg); opacity: 0; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

/* Scorebug overlays */
.scorebug-overlay {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scorebug-overlay.visible {
  opacity: 1;
}

.scorebug-overlay--halftime {
  inset: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}

.overlay-halftime-text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #f2f2f2;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.scorebug-overlay--review {
  bottom: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 0, 0.92);
}

.scorebug-overlay--review.visible {
  animation: reviewPulse 1s ease-in-out infinite;
}

.overlay-review-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1a1a1a;
}

@keyframes reviewPulse {
  0%, 100% { background: rgba(255, 140, 0, 0.92); }
  50% { background: rgba(255, 200, 50, 1); }
}

/* Presentation mode */
html.is-presentation,
html.is-presentation body {
  background: #000 !important;
  overflow: hidden;
}

html.is-presentation .bg-overlay,
html.is-presentation .scorebug-demo-site-header,
html.is-presentation .demo-header,
html.is-presentation .controller-panel,
html.is-presentation .variation-section,
html.is-presentation .arena-section,
html.is-presentation .goal-light {
  display: none !important;
}

html.is-presentation .stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

html.is-presentation .hero-stack {
  width: 100%;
  max-width: var(--demo-content-max);
  gap: 0;
  padding-bottom: 0;
}

@keyframes scoreSlamHome {
  0% { transform: scale(1.2); color: #fff; text-shadow: 0 0 40px #fff, 0 0 72px var(--home-glow); }
  55% { transform: scale(0.95); color: #fff; }
  100% { transform: scale(1); color: var(--home-primary); text-shadow: 0 0 14px var(--home-glow), 0 0 32px rgba(var(--home-rgb), 0.35); }
}

@keyframes scoreSlamAway {
  0% { transform: scale(1.2); color: #fff; text-shadow: 0 0 40px #fff, 0 0 72px var(--away-glow); }
  55% { transform: scale(0.95); color: #fff; }
  100% { transform: scale(1); color: var(--away-primary); text-shadow: 0 0 14px var(--away-glow), 0 0 32px rgba(var(--away-rgb), 0.35); }
}

.scorebug.edge-spike-home .edge-glow-top {
  animation: edgeSpikeHomeTop 600ms ease-out;
}

.scorebug.edge-spike-home .edge-glow-bottom {
  animation: edgeSpikeHomeBottom 600ms ease-out;
}

.scorebug.edge-spike-away .edge-glow-top {
  animation: edgeSpikeAwayTop 600ms ease-out;
}

.scorebug.edge-spike-away .edge-glow-bottom {
  animation: edgeSpikeAwayBottom 600ms ease-out;
}

@keyframes edgeSpikeHomeTop {
  0% { height: 3px; filter: brightness(2.2); box-shadow: -100px -4px 30px 4px rgba(255, 61, 127, 0.95), 0 -4px 24px rgba(255, 61, 127, 0.7); }
  100% { height: 1px; filter: brightness(1); box-shadow: -80px -2px 16px rgba(255, 61, 127, 0.35), 0 -2px 10px var(--logo-blue-soft), 80px -2px 16px var(--logo-blue-soft); }
}

@keyframes edgeSpikeHomeBottom {
  0% { height: 3px; filter: brightness(2.2); box-shadow: -100px 4px 30px 4px rgba(255, 61, 127, 0.95), 0 4px 24px rgba(255, 61, 127, 0.7); }
  100% { height: 1px; filter: brightness(1); box-shadow: -80px 2px 16px rgba(255, 61, 127, 0.35), 0 2px 10px var(--logo-blue-soft), 80px 2px 16px var(--logo-blue-soft); }
}

@keyframes edgeSpikeAwayTop {
  0% { height: 3px; filter: brightness(2.2); box-shadow: 100px -4px 30px 4px rgba(249, 115, 22, 0.95), 0 -4px 24px rgba(249, 115, 22, 0.7); }
  100% { height: 1px; filter: brightness(1); box-shadow: -80px -2px 16px rgba(255, 61, 127, 0.35), 0 -2px 10px var(--logo-blue-soft), 80px -2px 16px var(--logo-blue-soft); }
}

@keyframes edgeSpikeAwayBottom {
  0% { height: 3px; filter: brightness(2.2); box-shadow: 100px 4px 30px 4px rgba(249, 115, 22, 0.95), 0 4px 24px rgba(249, 115, 22, 0.7); }
  100% { height: 1px; filter: brightness(1); box-shadow: -80px 2px 16px rgba(255, 61, 127, 0.35), 0 2px 10px var(--logo-blue-soft), 80px 2px 16px var(--logo-blue-soft); }
}

.score-ripple {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 3px solid currentColor;
  pointer-events: none;
  animation: scoreRipple 600ms ease-out forwards;
}

.score-ripple--mega {
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-width: 4px;
}

@keyframes scoreRipple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.score-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  margin: -2px 0 0 -2px;
  animation: particleBurst var(--dur, 600ms) ease-out forwards;
}

@keyframes particleBurst {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.2); opacity: 0; }
}

.scorebug.scorebug-shake {
  animation: scorebugShake 300ms ease-out;
}

@keyframes scorebugShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.panel-home .panel-team-name.name-flash {
  animation: nameFlashHome 400ms ease-out forwards;
}

.panel-away .panel-team-name.name-flash {
  animation: nameFlashAway 400ms ease-out forwards;
}

@keyframes nameFlashHome {
  0% { transform: scale(1.05); color: #fff; text-shadow: 0 0 20px #fff, 0 0 40px var(--home-glow); }
  100% { transform: scale(1); color: var(--home-primary); text-shadow: 0 0 10px var(--home-glow); }
}

@keyframes nameFlashAway {
  0% { transform: scale(1.05); color: #fff; text-shadow: 0 0 20px #fff, 0 0 40px var(--away-glow); }
  100% { transform: scale(1); color: var(--away-primary); text-shadow: 0 0 10px var(--away-glow); }
}

.sub-clock-value.clock-slam {
  display: inline-block;
  animation: clockSlam 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes clockSlam {
  0% { transform: translateY(-140%); opacity: 0; }
  65% { transform: translateY(10%); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-flash--active,
  .goal-light--scored,
  .panel-burst,
  .score-slam,
  .scorebug-shake,
  .name-flash,
  .clock-slam,
  .score-ripple,
  .score-particle,
  .ticker-track,
  .qb-label,
  .stat-update,
  .timeout-dot.tol-dot-flash,
  .poss-abbr.poss-slide-in--home,
  .poss-abbr.poss-slide-in--away,
  .scorebug-var--retro,
  .scorebug,
  .sdv-dot,
  .bonus-val-pulse,
  .poss-flip,
  .score-flash,
  .scorebug-overlay--review.visible,
  .ctrl-btn--pressed {
    animation: none !important;
  }

  html:not(.is-embedded) .lower-third {
    transition: none !important;
  }
}

/* Demo page header */
.demo-header {
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto 24px;
  text-align: center;
}

.demo-header-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #00e5ff;
  margin-bottom: 8px;
}

.demo-header-title {
  font-size: 2rem;
  font-weight: 900;
  color: #f2f2f2;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}

.demo-header-desc {
  font-size: 0.85rem;
  color: #a3a3a3;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Center stat update animations */
@keyframes stat-update {
  0% { transform: translateY(-4px); opacity: 0.4; }
  60% { transform: translateY(1px); }
  100% { transform: translateY(0); opacity: 1; }
}

.stat-update {
  animation: stat-update 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tol-dot-empty {
  0% { background: #fff; opacity: 1; box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); }
  100% { background: rgba(255, 255, 255, 0.15); opacity: 0.35; box-shadow: none; }
}

.timeout-dot.tol-dot-flash {
  animation: tol-dot-empty 0.45s ease forwards;
}

@keyframes poss-slide-left {
  from { transform: translateX(10px); opacity: 0.35; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes poss-slide-right {
  from { transform: translateX(-10px); opacity: 0.35; }
  to { transform: translateX(0); opacity: 1; }
}

.poss-abbr.poss-slide-in--home {
  display: inline-block;
  animation: poss-slide-left 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.poss-abbr.poss-slide-in--away {
  display: inline-block;
  animation: poss-slide-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Style variation sections */
.variation-section {
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 48px auto 0;
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  padding-top: 48px;
}

.variation-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.variation-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00e5ff;
}

.variation-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f2f2f2;
}

/* Arena production features */
.arena-section {
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 48px auto 0;
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  padding-top: 48px;
}

.arena-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.arena-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.arena-card {
  position: relative;
  background: rgba(10, 5, 25, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 8px;
  padding: 1.65rem;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.arena-card--oot {
  grid-column: span 2;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

.arena-card--team-stats {
  grid-column: span 1;
}

.arena-card--raffle,
.arena-card--trivia,
.arena-card--social {
  box-shadow: 0 0 12px rgba(255, 61, 127, 0.10);
}

.arena-card--sponsor,
.arena-card--spotlight,
.arena-card--sponsor-pack,
.arena-card--replay {
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.10);
}

.arena-card--sponsor-pack {
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.14);
}

.arena-card--replay {
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
}

.arena-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 2;
  pointer-events: none;
}

.arena-corner::before,
.arena-corner::after {
  content: "";
  position: absolute;
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

.arena-corner-tl { top: 0; left: 0; }
.arena-corner-tl::before { top: 0; left: 0; width: 10px; height: 1.5px; }
.arena-corner-tl::after { top: 0; left: 0; width: 1.5px; height: 10px; }
.arena-corner-tr { top: 0; right: 0; }
.arena-corner-tr::before { top: 0; right: 0; width: 10px; height: 1.5px; }
.arena-corner-tr::after { top: 0; right: 0; width: 1.5px; height: 10px; }
.arena-corner-bl { bottom: 0; left: 0; }
.arena-corner-bl::before { bottom: 0; left: 0; width: 10px; height: 1.5px; }
.arena-corner-bl::after { bottom: 0; left: 0; width: 1.5px; height: 10px; }
.arena-corner-br { bottom: 0; right: 0; }
.arena-corner-br::before { bottom: 0; right: 0; width: 10px; height: 1.5px; }
.arena-corner-br::after { bottom: 0; right: 0; width: 1.5px; height: 10px; }

.arena-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.arena-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00e5ff;
}

.arena-card--raffle .arena-eyebrow,
.arena-card--trivia .arena-eyebrow,
.arena-card--social .arena-eyebrow {
  color: #ff3d7f;
}

.arena-card--oot .arena-eyebrow {
  color: #00e5ff;
}

.arena-card--sponsor .arena-eyebrow,
.arena-card--spotlight .arena-eyebrow {
  color: #f97316;
}

.arena-card--sponsor-pack .arena-eyebrow {
  color: #a855f7;
}

.arena-card--replay .arena-eyebrow {
  color: #00e5ff;
}

.arena-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f2f2f2;
}

.arena-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.arena-controls--wrap .arena-btn {
  flex: 1 1 calc(50% - 0.2rem);
  min-width: 0;
}

.arena-btn {
  font-size: 0.82rem;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
}

.arena-module-caption {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

.arena-btn--active {
  border-color: #00e5ff;
  color: #00e5ff;
}

/* Raffle */
.raffle-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.raffle-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
}

.raffle-amount {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: #f97316;
  text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
  font-variant-numeric: tabular-nums;
}

.raffle-amount.raffle-amount--tick {
  animation: raffleTick 0.25s ease-out;
}

@keyframes raffleTick {
  0% { transform: scale(1.05); color: #facc15; }
  100% { transform: scale(1); color: #f97316; }
}

.raffle-winner {
  position: relative;
  text-align: center;
  padding: 1rem;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 6px;
  overflow: hidden;
}

.raffle-winner-text {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #facc15;
  text-shadow: 0 0 24px rgba(249, 115, 22, 0.6), 0 0 48px rgba(249, 115, 22, 0.3);
  animation: raffleWinnerIn 0.6s ease-out;
}

.raffle-ticket {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f2f2f2;
}

.raffle-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, #ff3d7f 2px, transparent 2px),
    radial-gradient(circle at 70% 20%, #00e5ff 2px, transparent 2px),
    radial-gradient(circle at 50% 70%, #f97316 2px, transparent 2px),
    radial-gradient(circle at 85% 60%, #00e676 2px, transparent 2px);
  background-size: 100% 100%;
  animation: raffleConfetti 1.2s ease-out forwards;
  opacity: 0;
}

.arena-card--raffle.raffle--revealed .raffle-amount {
  animation: raffleFlash 0.8s ease-in-out 3;
}

@keyframes raffleWinnerIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes raffleFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes raffleConfetti {
  0% { opacity: 0; transform: scale(0.8); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2) translateY(-20px); }
}

/* OOT scores */
.oot-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  min-height: 140px;
  flex: 1;
}

.oot-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.oot-row--live {
  border-left: 3px solid #00e5ff;
  color: #f2f2f2;
}

.oot-row--final {
  color: #666;
  opacity: 1;
}

.oot-row.oot-row--flash {
  animation: ootFlash 0.4s ease-out;
}

@keyframes ootFlash {
  0% { background: rgba(0, 229, 255, 0.35); }
  100% { background: transparent; }
}

.oot-away,
.oot-home {
  color: #f2f2f2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oot-away { text-align: right; }
.oot-home { text-align: left; }

.oot-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 1.5rem;
  text-align: center;
}

.oot-row--live .oot-score {
  color: #00e5ff;
}

.oot-row--final .oot-score {
  color: #a3a3a3;
}

.oot-at {
  color: #555;
  font-size: 0.72rem;
}

.oot-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: right;
  min-width: 5.5rem;
}

/* Social wall */
.social-display {
  position: relative;
  min-height: 48px;
  overflow: hidden;
}

.social-post {
  display: block;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
}

.social-post--twitter {
  border-left: 3px solid var(--accent);
}

.social-post--instagram {
  border-left: 3px solid #c084fc;
  background: rgba(0, 0, 0, 0.35);
}

.social-post.social-post--slide {
  animation: socialSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes socialSlideUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.social-avatar {
  display: none;
}

.social-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.4;
  min-width: 0;
}

.social-handle {
  display: inline;
  font-size: 0.68rem;
  font-weight: 700;
  color: #00e5ff;
}

.social-handle::after {
  content: " ·";
  color: #444;
}

.social-platform {
  display: inline;
  font-size: 0.68rem;
  margin: 0;
}

.social-platform::after {
  content: " ·";
  color: #444;
}

.social-message {
  display: inline;
  font-size: 0.68rem;
  font-weight: 600;
  color: #f2f2f2;
  line-height: 1.35;
}

.arena-btn--twitter.arena-btn--active {
  border-color: #1da1f2;
  color: #1da1f2;
}

.arena-btn--instagram.arena-btn--active {
  border-color: #e1306c;
  color: #e1306c;
}

/* Trivia */
.trivia-timer {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00e5ff;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.trivia-timer.trivia-timer--urgent {
  color: #ff3d7f;
  animation: triviaTimerUrgent 0.6s ease-in-out infinite;
}

@keyframes triviaTimerUrgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.trivia-question {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f2f2f2;
  line-height: 1.4;
  min-height: 2.5rem;
}

.trivia-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.trivia-answer {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  cursor: default;
  line-height: 1.3;
}

.trivia-answer--correct {
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

.trivia-answer--wrong {
  opacity: 0.3;
}

/* Sponsor timeout */
.arena-card--sponsor {
  min-height: 260px;
}

.sponsor-stage {
  position: relative;
  flex: 1;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 6px;
  padding: 1rem;
}

.sponsor-idle {
  font-size: 0.68rem;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sponsor-takeover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #080808;
  border: 2px solid rgba(249, 115, 22, 0.5);
  border-radius: 6px;
  animation: sponsorSweepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sponsorSweepIn {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

.sponsor-logo-placeholder {
  display: none;
}

.sponsor-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #f97316;
  text-align: center;
}

.sponsor-tagline {
  font-size: 0.65rem;
  color: #f2f2f2;
  letter-spacing: 0.08em;
}

.sponsor-countdown {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f2f2f2;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

/* Player spotlight */
.arena-card--spotlight {
  min-height: 260px;
}

.spotlight-stage {
  position: relative;
  flex: 1;
  min-height: 140px;
  overflow: hidden;
}

.spotlight-idle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.68rem;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotlight-graphic {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  background: #080808;
  border-radius: 6px;
  overflow: hidden;
  animation: spotlightSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightSlideIn {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

.spotlight-bar {
  width: 8px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--home-primary), rgba(var(--home-rgb), 0.2));
  position: relative;
  z-index: 1;
}

.spotlight-headshot {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 900;
  color: var(--home-primary);
  background: none !important;
  opacity: 0.1;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}

.spotlight-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  position: relative;
  z-index: 1;
}

.spotlight-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
}

.spotlight-meta {
  font-size: 0.62rem;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.1em;
}

.spotlight-stats {
  font-size: 0.65rem;
  color: #00e5ff;
}

.spotlight-team {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--home-primary);
  margin-top: 0.15rem;
}

/* In-game sponsor integration package */
.arena-card--sponsor-pack {
  border-color: rgba(168, 85, 247, 0.28);
}

.sponsor-pack-stage {
  position: relative;
  flex: 1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 6px;
  overflow: hidden;
}

.sponsor-pack-billboard {
  position: relative;
  width: 100%;
  padding: 1.35rem 1.45rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(10, 5, 25, 0.98) 0%, rgba(0, 0, 0, 0.92) 100%);
  opacity: 0;
  transform: translateY(12px);
}

.sponsor-pack-billboard--in {
  animation: sponsorPackReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sponsorPackReveal {
  0% { opacity: 0; transform: translateY(16px) scale(0.98); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.sponsor-pack-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

.sponsor-pack-lead {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0.45rem 0 0.95rem;
}

.sponsor-pack-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 46px;
  margin: 0 auto 0.7rem;
  padding: 0.45rem 0.95rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}

.sponsor-pack-name {
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.sponsor-pack-tagline {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a855f7;
}

/* Instant replay package */
.arena-card--replay {
  border-color: rgba(0, 229, 255, 0.24);
}

.replay-stage {
  position: relative;
  flex: 1;
  min-height: 180px;
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 6px;
  overflow: hidden;
}

.replay-graphic {
  display: flex;
  flex-direction: column;
  width: 100%;
  opacity: 0;
  transform: translateX(-24px);
}

.replay-graphic--in {
  animation: replayGraphicIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes replayGraphicIn {
  0% {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(3px);
  }
  35% {
    opacity: 1;
    transform: translateX(4px);
    filter: blur(0);
  }
  42% {
    transform: translateX(-2px);
  }
  48% {
    transform: translateX(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.replay-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18) 0%, rgba(255, 61, 127, 0.18) 100%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.35);
  overflow: hidden;
}

.replay-label {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

.replay-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.04) 2px,
    rgba(0, 229, 255, 0.04) 4px
  );
  pointer-events: none;
  animation: replayScan 1.2s linear infinite;
}

@keyframes replayScan {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

.replay-body {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.replay-jersey {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ff3d7f;
  border-radius: 6px;
  font-size: 1.32rem;
  font-weight: 900;
  color: #ff3d7f;
  background: rgba(255, 61, 127, 0.08);
}

.replay-player-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.replay-player-name {
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
}

.replay-play-desc {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00e5ff;
}

@media (max-width: 1199px) {
  .arena-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arena-card--oot {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .arena-grid {
    grid-template-columns: 1fr;
  }

  .arena-card--oot,
  .arena-card--team-stats {
    grid-column: span 1;
  }
}

/* Variation A — Stadium / Punk Flyer */
.scorebug-var--stadium {
  position: relative;
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.55rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 61, 127, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(0, 229, 255, 0.12) 0%, transparent 38%),
    linear-gradient(168deg, #120818 0%, #0a0612 52%, #050308 100%);
  border: none;
  border-radius: 2px;
  overflow: hidden;
  transform: rotate(-0.65deg);
  box-shadow:
    5px 7px 0 rgba(255, 61, 127, 0.42),
    -4px -3px 0 rgba(0, 229, 255, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.55);
  clip-path: polygon(0% 3%, 2% 0%, 97% 1%, 100% 5%, 99% 97%, 96% 100%, 2% 98%, 0% 94%);
}

.sv-stadium-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.sv-stadium-torn-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid rgba(249, 115, 22, 0.35);
  clip-path: polygon(1% 2%, 3% 0%, 98% 2%, 100% 4%, 98% 98%, 95% 100%, 2% 97%, 0% 93%);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.18);
}

.sv-stadium-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.92fr 1fr;
  align-items: end;
  gap: 0.35rem 1.1rem;
  min-height: 128px;
}

.sv-stadium-panel--home {
  text-align: left;
  padding-left: 0.35rem;
  transform: translateY(-10px) rotate(-1.75deg);
}

.sv-stadium-panel--away {
  text-align: right;
  padding-right: 0.35rem;
  transform: translateY(6px) rotate(1.25deg);
}

.sv-stadium-stamp {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.45rem;
  border: 1.5px solid currentColor;
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.sv-stadium-stamp--home {
  color: var(--sdv-cyan);
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 rgba(255, 61, 127, 0.55);
}

.sv-stadium-stamp--away {
  color: var(--sdv-orange);
  transform: rotate(3deg);
  box-shadow: -2px 2px 0 rgba(168, 85, 247, 0.45);
}

.sv-stadium-abbr {
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sdv-cyan);
  margin-bottom: 0.1rem;
  transform: rotate(-2.5deg);
  text-shadow: 1px 1px 0 rgba(255, 61, 127, 0.45);
}

.sv-stadium-panel--away .sv-stadium-abbr {
  color: var(--sdv-pink);
  transform: rotate(2deg);
  text-shadow: 1px 1px 0 rgba(249, 115, 22, 0.5);
}

.sv-stadium-score {
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 6vw, 3.85rem);
  font-weight: 900;
  line-height: 0.95;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 3px 3px 0 rgba(255, 61, 127, 0.35), -1px -1px 0 rgba(0, 229, 255, 0.25);
}

.sv-stadium-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  align-self: center;
  margin-top: -12px;
  padding: 0.7rem 1rem 0.85rem;
  min-width: 0;
  transform: rotate(2.25deg);
  background: rgba(10, 5, 25, 0.72);
  border: 2px solid var(--sdv-cyan);
  box-shadow: 4px 4px 0 var(--sdv-orange), inset 0 0 0 1px rgba(255, 61, 127, 0.25);
}

.sv-stadium-period {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.sv-stadium-period-label {
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sdv-orange);
  transform: rotate(-3deg);
}

.sv-stadium-period-value {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.sv-stadium-clock {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--sdv-cyan);
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.sv-stadium-fouls {
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  transform: rotate(-1.5deg);
}

.sv-stadium-fouls[hidden],
.sv-stadium-tol[hidden],
.sv-stadium-penalties[hidden],
.sv-stadium-mlb[hidden] {
  display: none !important;
}

.sv-stadium-tol,
.sv-stadium-penalties,
.sv-stadium-mlb {
  font-family: "Black Ops One", Impact, sans-serif;
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 204, 21, 0.85);
  white-space: nowrap;
  transform: rotate(1deg);
}

/* Variation B — Broadcast / Network Style (retro class names kept for JS) */
.scorebug-var--broadcast {
  position: relative;
  width: 100%;
  max-width: var(--demo-content-max);
  margin: 0 auto;
  min-height: 148px;
  padding: 1.65rem 2rem 1.75rem;
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.03) 0%, transparent 28%),
    linear-gradient(180deg, #0e1524 0%, #0a101a 52%, #070b12 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-family: var(--font-sans);
}

.scorebug-var--broadcast::before {
  content: none;
}

.sv-broadcast-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.22) 100%);
}

.sv-retro-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem 2rem;
  min-height: 108px;
  color: #fff;
}

.sv-retro-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
}

.sv-retro-panel--home {
  align-items: flex-start;
  padding-left: 0.25rem;
}

.sv-retro-panel--away {
  align-items: flex-end;
  padding-right: 0.25rem;
}

.sv-retro-abbr {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: none;
}

.sv-retro-score {
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 5.5vw, 3.65rem);
  font-weight: 800;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: none;
}

.sv-retro-tol {
  display: flex;
  gap: 5px;
  margin-top: 0.45rem;
}

.sv-retro-tol-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: transparent;
  flex-shrink: 0;
}

.sv-retro-tol-dot.filled {
  background: var(--sdv-cyan);
  border-color: var(--sdv-cyan);
  box-shadow: none;
}

.sv-retro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 2rem;
  width: auto;
  min-width: 168px;
  max-width: 280px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sv-retro-period-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.sv-retro-period-row::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(50% - 2.4rem);
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.45), transparent);
  pointer-events: none;
}

.sv-retro-center {
  position: relative;
}

.sv-retro-period-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.sv-retro-period-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.72);
}

.sv-retro-clock {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 3.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--sdv-cyan);
  text-shadow: none;
  line-height: 1;
}

.sv-retro-shot {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.sv-retro-shot[hidden] {
  display: none !important;
}

.sv-retro-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.sv-retro-sub[hidden],
.sv-retro-penalties[hidden],
.sv-retro-mlb[hidden] {
  display: none !important;
}

.sv-retro-penalties,
.sv-retro-mlb {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  text-align: center;
}

.variation-section--stadium .variation-eyebrow {
  color: var(--sdv-pink);
}

.variation-section--broadcast .variation-eyebrow {
  color: var(--sdv-cyan);
}

@media (max-width: 768px) {
  html:not(.is-embedded) body {
    display: block;
    min-height: 100vh;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  html:not(.is-embedded) .stage {
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 0 0 4rem;
    align-items: flex-start;
  }

  html:not(.is-embedded) .stage {
    padding-top: calc(var(--site-header-h, 4.35rem) + 1.25rem);
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  html:not(.is-embedded) .hero-stack {
    width: 100%;
    align-items: stretch;
    padding-bottom: 4rem;
    gap: 1.5rem;
  }

  .demo-header-title {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  /* ── Scorebug reflow: center strip on top, scores side-by-side below ── */
  html:not(.is-embedded) .scorebug-wrapper {
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-bottom: 0;
  }

  html:not(.is-embedded) .scorebug,
  html:not(.is-embedded) .scorebug-frame {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  html:not(.is-embedded) .scorebug-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "home away";
    align-items: stretch;
    min-height: auto;
    gap: 0;
  }

  html:not(.is-embedded) .panel-center {
    grid-area: center;
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.65rem;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  html:not(.is-embedded) .panel-home {
    grid-area: home;
    border-right: 1px solid rgba(var(--home-rgb), 0.15);
    padding: 0.5rem 0.35rem;
    min-height: auto;
  }

  html:not(.is-embedded) .panel-away {
    grid-area: away;
    border-left: 1px solid rgba(var(--away-rgb), 0.15);
    padding: 0.5rem 0.35rem;
    min-height: auto;
  }

  html:not(.is-embedded) .panel-home .team-block,
  html:not(.is-embedded) .panel-away .team-block {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 12px);
    min-height: auto;
  }

  html:not(.is-embedded) .panel-ghost-score,
  html:not(.is-embedded) .panel-watermark {
    display: none;
  }

  html:not(.is-embedded) .team-score {
    font-size: clamp(2.5rem, 11vw, 3.75rem);
    line-height: 0.9;
  }

  html:not(.is-embedded) .badge img {
    width: clamp(40px, 12vw, 56px);
    height: clamp(40px, 12vw, 56px);
  }

  html:not(.is-embedded) .panel-team-name {
    font-size: clamp(0.5rem, 2.4vw, 0.65rem);
    letter-spacing: 0.1em;
    margin-top: 0;
  }

  /* Compress center column — hide decorative brand */
  html:not(.is-embedded) .center-brand {
    display: none;
  }

  html:not(.is-embedded) .center-brand + .center-divider {
    display: none;
  }

  html:not(.is-embedded) .center-section {
    padding: 3px 0;
  }

  html:not(.is-embedded) .center-clock {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
  }

  html:not(.is-embedded) .period-value {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
  }

  html:not(.is-embedded) .clock-value {
    font-size: clamp(1.6rem, 6.5vw, 2.25rem);
  }

  html:not(.is-embedded) .period-label {
    font-size: clamp(0.55rem, 2.2vw, 0.65rem);
  }

  html:not(.is-embedded) .shot-clock-value {
    font-size: clamp(0.85rem, 3.5vw, 1.1rem);
  }

  html:not(.is-embedded) .fouls-val {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
  }

  html:not(.is-embedded) .bonus-val {
    font-size: clamp(0.7rem, 3vw, 0.85rem);
  }

  html:not(.is-embedded) .fouls-lbl,
  html:not(.is-embedded) .tol-label,
  html:not(.is-embedded) .possession-lbl {
    font-size: clamp(0.5rem, 2vw, 0.58rem);
  }

  html:not(.is-embedded) .center-possession {
    padding: 3px 0 !important;
    gap: 0.2rem;
  }

  html:not(.is-embedded) .poss-abbr--home.is-active,
  html:not(.is-embedded) .poss-abbr--away.is-active {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }

  html:not(.is-embedded) .center-tol {
    gap: 0.2rem;
  }

  html:not(.is-embedded) .fouls-grid {
    gap: 0.1rem 0.5rem;
  }

  html:not(.is-embedded) .mlb-count-block {
    grid-template-columns: 2.5rem 1fr 1rem;
    gap: 0.25rem;
  }

  html:not(.is-embedded) .mlb-count-val {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  html:not(.is-embedded) .penalty-timer {
    font-size: clamp(0.65rem, 2.8vw, 0.8rem);
  }

  /* Lower third — single line, tighter on narrow screens */
  html:not(.is-embedded) .lower-third {
    height: 40px;
  }

  html:not(.is-embedded) .lt-content {
    padding: 0 8px;
    gap: 6px;
  }

  html:not(.is-embedded) .lt-team {
    max-width: 26%;
    font-size: clamp(0.5rem, 2.4vw, 0.58rem);
  }

  html:not(.is-embedded) .lt-name {
    max-width: 30%;
    font-size: clamp(0.72rem, 3.4vw, 0.9rem);
  }

  html:not(.is-embedded) .lt-stats {
    font-size: clamp(0.58rem, 2.6vw, 0.68rem);
  }

  html:not(.is-embedded) .lt-logo {
    width: 32px;
  }

  html:not(.is-embedded) .lt-logo img {
    width: 24px;
    height: 24px;
  }

  /* Ticker — stay single-line, force scroll on mobile */
  html:not(.is-embedded) .ticker-strip {
    overflow: hidden;
    width: 100%;
    min-width: 0;
  }

  html:not(.is-embedded) .ticker-track {
    animation: tickerScroll 35s linear infinite !important;
    animation-play-state: running !important;
    -webkit-animation: tickerScroll 35s linear infinite !important;
    will-change: transform;
  }

  html:not(.is-embedded) .ticker-content {
    font-size: clamp(0.58rem, 2.6vw, 0.72rem);
    letter-spacing: 0.06em;
  }

  html:not(.is-embedded) .ticker-seg {
    margin: 0 8px;
  }

  html:not(.is-embedded) .ticker-sep {
    margin: 0 5px;
  }

  html:not(.is-embedded) .ticker-team {
    margin-right: 6px;
  }

  html:not(.is-embedded) .ticker-score {
    margin: 0 6px;
  }

  /* Controller — stack gamepad on mobile */
  html:not(.is-embedded) .controls--gamepad {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  html:not(.is-embedded) .controls-center {
    order: -1;
    width: 100%;
    min-width: 0;
  }

  html:not(.is-embedded) .ctrl-btn {
    min-height: 44px;
    font-size: clamp(0.62rem, 2.8vw, 0.72rem);
  }

  html:not(.is-embedded) .ctrl-btn--hero {
    width: 100%;
  }

  /* Style variations — fluid centers */
  .variation-section {
    margin-top: 2rem;
  }

  .variation-section:first-of-type {
    margin-top: 2.5rem;
  }

  /* Stadium variation — fluid on mobile */
  .scorebug-var--stadium {
    transform: rotate(-0.35deg);
    padding: 1rem 1rem 1.15rem;
  }

  .sv-stadium-row {
    grid-template-columns: 1fr minmax(6.75rem, 36%) 1fr;
    min-height: auto;
    align-items: end;
  }

  .sv-stadium-panel--home,
  .sv-stadium-panel--away,
  .sv-stadium-center {
    transform: none;
  }

  .sv-stadium-center {
    margin-top: 0;
    padding: 0.55rem 0.65rem;
  }

  .sv-stadium-score {
    font-size: clamp(2rem, 9vw, 3.75rem);
  }

  .sv-stadium-clock {
    font-size: clamp(1.1rem, 5vw, 1.85rem);
  }

  .sv-stadium-period-value {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }

  .scorebug-var--broadcast {
    padding: 1.15rem 1rem 1.25rem;
    min-height: 120px;
  }

  .sv-retro-row {
    min-height: auto;
    gap: 0.75rem 1rem;
  }

  .sv-retro-center {
    width: auto;
    min-width: 0;
    max-width: 42%;
    padding: 0.45rem 0.65rem;
  }

  .sv-retro-abbr {
    font-size: clamp(0.58rem, 2.8vw, 0.68rem);
  }

  .sv-retro-score {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }

  .sv-retro-clock {
    font-size: clamp(1.35rem, 6.5vw, 2.35rem);
  }

  .sv-retro-period-value {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }

  .sv-retro-sub {
    font-size: clamp(0.52rem, 2.4vw, 0.62rem);
  }

  html:not(.is-embedded) .keyboard-hints {
    display: none;
  }

  .panel-hover-controls {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 380px) {
  html:not(.is-embedded) .scorebug-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "home"
      "away";
  }

  html:not(.is-embedded) .panel-home {
    border-right: none;
    border-bottom: 1px solid rgba(var(--home-rgb), 0.15);
  }

  html:not(.is-embedded) .panel-away {
    border-left: none;
  }

  html:not(.is-embedded) .team-score {
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  html:not(.is-embedded) .sport-switcher {
    flex-direction: column;
  }

  html:not(.is-embedded) .sport-btn {
    width: 100%;
  }

  html:not(.is-embedded) .lt-team {
    max-width: 22%;
  }

  html:not(.is-embedded) .lt-name {
    max-width: 26%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .panel-hover-controls {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
