:root {
  --bg: #06080d;
  --panel: rgba(11, 14, 21, 0.86);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #f7f4ee;
  --muted: #97a3b8;
  --accent: #ff8a33;
  --accent-soft: #ffc168;
  --ice: #62d0ff;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --card-height: 74px;
  --row-density: 1;
  --logo-size: 50px;
  --logo-stage-width: 96px;
  --logo-stage-height: 56px;
  --stage-gap: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 51, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(98, 208, 255, 0.16), transparent 22%),
    linear-gradient(180deg, #05070b 0%, #090c12 46%, #07090d 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

body {
  overflow: hidden;
}

.backdrop,
.backdrop::before,
.backdrop::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop::before {
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 88%);
}

.backdrop::after {
  content: "";
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 138, 51, 0.18), transparent 18%),
    radial-gradient(circle at 72% 16%, rgba(98, 208, 255, 0.12), transparent 18%),
    radial-gradient(circle at 76% 72%, rgba(255, 193, 104, 0.12), transparent 18%);
  filter: blur(24px);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100vw - 24px));
  height: 100vh;
  margin: 0 auto;
  padding: 10px 0 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.topbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) minmax(260px, 420px);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 10px 14px;
  background:
    radial-gradient(circle at left center, rgba(255, 138, 51, 0.16), transparent 30%),
    radial-gradient(circle at right center, rgba(98, 208, 255, 0.16), transparent 30%),
    linear-gradient(100deg, rgba(52, 30, 18, 0.62), rgba(8, 10, 16, 0.9) 44%, rgba(22, 40, 54, 0.72));
}

.board-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}

.board-nav-separator {
  width: 1px;
  align-self: stretch;
  min-height: 34px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.8;
}

.board-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.board-link:hover {
  color: var(--text);
  border-color: rgba(255, 156, 57, 0.34);
  transform: translateY(-1px);
}

.board-link.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.18), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 156, 57, 0.38);
}

.topbar-copy,
.event-branding,
.topbar-actions {
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.site-mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-wordmark {
  display: block;
  width: 156px;
  height: auto;
}

.topbar-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
}

.topbar-copy h1,
.panel-head h2,
.metric-value,
.scoreline {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
}

.topbar-copy h1 {
  font-size: clamp(1.9rem, 2.35vw, 2.8rem);
  line-height: 0.94;
  max-width: none;
  text-wrap: balance;
}

.topbar-copy p,
.panel-label,
.frame-progress,
.match-context,
.team-meta,
.team-stats,
.metric-caption,
.impact-feature-team,
.impact-feature-stats,
.chip-confidence,
.impact-empty,
.sponsor-empty {
  color: var(--muted);
}

.eyebrow,
.panel-label,
.mode-pill,
.frame-chip,
.rank-pill,
.trend-pill,
.control-button,
select,
.slider-wrap span,
.speed-wrap span,
.impact-mini-label,
.chip-confidence {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 0;
  font-size: 0.68rem;
  color: var(--accent);
}

.event-strip-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.event-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.event-strip-item {
  display: inline-grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 10, 16, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.event-meta-label,
.league-card-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.event-inline-value,
.league-card-value {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.event-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.event-branding {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.topbar-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  max-width: 420px;
  width: min(420px, 100%);
}

.header-shortcuts {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
}

.header-shortcut {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.header-shortcut:hover {
  color: var(--text);
  border-color: rgba(255, 156, 57, 0.34);
  transform: translateY(-1px);
}

.header-shortcut.active {
  color: var(--text);
  background: rgba(255, 156, 57, 0.16);
  border-color: rgba(255, 156, 57, 0.42);
}

.event-branding-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mode-pill,
.frame-chip,
.rank-pill,
.trend-pill,
.control-button,
select,
.team-link,
.sponsor-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.mode-pill,
.frame-chip,
.rank-pill,
.trend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
}

.mode-pill {
  width: fit-content;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 51, 0.34), rgba(255, 255, 255, 0.08), rgba(98, 208, 255, 0.24));
  pointer-events: none;
}

.leaderboard-panel {
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.panel-tools {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: end;
}

.panel-label {
  font-size: 0.72rem;
}

.panel-head h2 {
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  line-height: 0.95;
}

.frame-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.division-picker {
  display: grid;
  gap: 6px;
  min-width: 188px;
}

.event-picker {
  min-width: min(330px, 28vw);
}

.division-picker span {
  font-size: 0.62rem;
  color: var(--muted);
}

.division-picker select {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  font-size: 0.68rem;
}

.frame-chip {
  padding: 8px 12px;
}

.frame-progress {
  font-size: 0.82rem;
}

.leaderboard-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(255, 138, 51, 0.06), rgba(98, 208, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.team-card {
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: var(--card-height);
  display: grid;
  grid-template-columns:
    calc(24px + 18px * var(--row-density))
    var(--logo-stage-width)
    minmax(0, 1fr)
    calc(66px + 42px * var(--row-density));
  grid-template-areas:
    "rank logo name metric"
    "rank logo meta metric";
  column-gap: calc(6px + 8px * var(--row-density));
  row-gap: calc(1px + 4px * var(--row-density));
  align-content: center;
  align-items: center;
  padding: calc(5px + 5px * var(--row-density)) calc(9px + 5px * var(--row-density));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(105deg, var(--team-primary-soft), rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.02) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  transition:
    top 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 320ms ease,
    border-color 280ms ease,
    opacity 280ms ease;
}

.team-card.preload {
  transition: none;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 13% 50%, var(--team-primary-strong), transparent 28%),
    linear-gradient(90deg, var(--team-primary-soft), transparent 42%);
  opacity: 1;
}

.team-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--team-primary), var(--team-accent));
}

.team-card.top-three {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.22);
}

.team-card.is-active {
  border-color: rgba(255, 193, 104, 0.34);
  box-shadow:
    0 24px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 193, 104, 0.12) inset;
}

.team-rank,
.metric-block {
  position: relative;
  z-index: 1;
}

.team-rank {
  grid-area: rank;
  display: grid;
  gap: calc(2px + 4px * var(--row-density));
  justify-items: center;
  align-self: center;
}

.rank-pill,
.trend-pill {
  min-width: calc(24px + 16px * var(--row-density));
  min-height: calc(16px + 8px * var(--row-density));
  padding: 0 calc(4px + 4px * var(--row-density));
  font-size: calc(0.54rem + 0.08rem * var(--row-density));
  line-height: 1;
}

.rank-pill {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 1px var(--team-primary-soft) inset;
}

.trend-pill {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.trend-up {
  color: #7ff0ab;
}

.trend-down {
  color: #ff9aa6;
}

.team-main {
  display: contents;
}

.team-logo-wrap {
  grid-area: logo;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-stage-width);
  height: var(--logo-stage-height);
  margin-inline: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
  align-self: center;
}

.team-logo-wrap::before {
  display: none;
}

.team-logo-wrap.logo-square,
.sponsor-team-logo.logo-square {
  --logo-fit-max-width: 108%;
  --logo-fit-max-height: 108%;
}

.team-logo-wrap.logo-wide,
.sponsor-team-logo.logo-wide {
  --logo-fit-width: auto;
  --logo-fit-max-width: 118%;
  --logo-fit-max-height: 92%;
}

.team-logo-wrap.logo-ultrawide,
.sponsor-team-logo.logo-ultrawide {
  --logo-fit-width: auto;
  --logo-fit-max-width: 128%;
  --logo-fit-max-height: 88%;
}

.team-logo-wrap.logo-tall,
.sponsor-team-logo.logo-tall {
  --logo-fit-height: auto;
  --logo-fit-max-width: 88%;
  --logo-fit-max-height: 110%;
}

.team-logo-wrap:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.team-logo-wrap img {
  display: block;
  width: var(--logo-fit-width, auto);
  height: var(--logo-fit-height, auto);
  max-width: var(--logo-fit-max-width, 92%);
  max-height: var(--logo-fit-max-height, 92%);
  padding: 0;
  transform: translate(var(--logo-shift-x, 0), var(--logo-shift-y, 0));
  filter:
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28))
    brightness(1.12)
    contrast(1.18)
    saturate(1.06);
}

.team-logo-fallback {
  font-size: clamp(0.88rem, calc(0.62rem + 0.34rem * var(--row-density)), 1.08rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.team-copy {
  display: contents;
}

.team-name-row {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
  z-index: 1;
  align-self: end;
}

.team-name {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.96rem, calc(0.72rem + 0.34rem * var(--row-density)), 1.18rem);
  line-height: 0.94;
}

.team-meta,
.team-stats {
  font-size: clamp(0.69rem, calc(0.62rem + 0.13rem * var(--row-density)), 0.82rem);
  line-height: 1.2;
}

.team-meta {
  grid-area: meta;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: calc(4px + 4px * var(--row-density));
  flex-wrap: nowrap;
  overflow: hidden;
  align-self: start;
}

.team-meta span {
  white-space: nowrap;
}

.detail-sep {
  color: rgba(255, 255, 255, 0.22);
}

.stat-strong {
  color: var(--text);
  font-weight: 700;
}

.metric-block {
  grid-area: metric;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: calc(1px + 2px * var(--row-density));
  align-self: center;
  min-width: calc(72px + 48px * var(--row-density));
  height: 100%;
  padding-inline-end: calc(3px + 5px * var(--row-density));
  text-align: right;
}

.metric-block.is-opening {
  gap: 1px;
  align-content: center;
}

.metric-value {
  font-size: clamp(1.18rem, calc(0.92rem + 0.88rem * var(--row-density)), 1.82rem);
  line-height: 0.84;
}

.metric-caption {
  font-size: clamp(0.56rem, calc(0.52rem + 0.08rem * var(--row-density)), 0.68rem);
  line-height: 0.96;
}

.points-bar {
  display: none;
}

.points-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--team-primary), var(--team-accent));
  border-radius: inherit;
  transition: width 800ms ease;
}

.controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.control-group {
  display: flex;
  gap: 10px;
}

.control-button,
select {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.control-button.primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #0a0b10;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 138, 51, 0.16);
}

.control-button:hover,
select:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.slider-wrap,
.speed-wrap {
  display: grid;
  gap: 8px;
}

.slider-wrap input[type="range"] {
  width: 100%;
}

input[type="range"] {
  accent-color: var(--accent);
}

.insights {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.impact-panel,
.sponsors-panel {
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.impact-panel {
  background:
    radial-gradient(circle at top left, rgba(98, 208, 255, 0.08), transparent 24%),
    var(--panel);
}

.sponsors-panel {
  background:
    radial-gradient(circle at bottom right, rgba(255, 138, 51, 0.08), transparent 26%),
    var(--panel);
}

.match-time {
  margin-top: 6px;
  font-size: 1.04rem;
  font-weight: 700;
}

.scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  font-size: 1.35rem;
  line-height: 0.95;
}

.scoreline span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scoreline strong {
  font-size: 0.84rem;
  color: var(--accent-soft);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 193, 104, 0.08);
  border: 1px solid rgba(255, 193, 104, 0.12);
}

.match-context {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.impact-grid,
.sponsor-stack {
  margin-top: 8px;
  display: grid;
  gap: 8px;
  min-height: 0;
  align-content: start;
  overflow: hidden;
}

.impact-feature,
.sponsor-team {
  display: grid;
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.impact-feature {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.impact-feature:hover,
.sponsor-team:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.impact-feature-photo {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    #141821;
}

.impact-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1.02);
  filter: none;
}

.impact-feature-title,
.sponsor-team-name {
  font-weight: 700;
}

.impact-feature-team {
  margin-top: 2px;
  font-size: 0.82rem;
}

.impact-feature-stats {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.sponsor-team-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

.sponsor-team-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sponsor-team-logo {
  width: 72px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
}

.sponsor-team-logo::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 20px;
  background:
    radial-gradient(circle, rgba(7, 10, 16, 0.82) 0%, rgba(7, 10, 16, 0.34) 48%, transparent 80%);
  filter: blur(10px);
}

.sponsor-team-logo img {
  position: relative;
  z-index: 1;
  width: var(--logo-fit-width, auto);
  height: var(--logo-fit-height, auto);
  max-width: var(--logo-fit-max-width, 88%);
  max-height: var(--logo-fit-max-height, 88%);
  transform: translate(var(--logo-shift-x, 0), var(--logo-shift-y, 0));
  filter:
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.1))
    brightness(1.14)
    contrast(1.24)
    saturate(1.08);
}

.sponsor-team-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sponsor-team-kicker {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.sponsor-team-name {
  font-size: 1rem;
  line-height: 1.05;
  text-wrap: balance;
}

.team-link,
.sponsor-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.team-link:hover,
.sponsor-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.sponsor-chip-row {
  margin-top: 0;
  display: grid;
  gap: 8px;
}

.sponsor-product-grid {
  display: grid;
  gap: 9px;
}

.sponsor-product-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.sponsor-product-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.sponsor-product-art {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.26), transparent 48%),
    linear-gradient(180deg, rgba(66, 72, 86, 0.9), rgba(18, 21, 29, 0.98)),
    #151922;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -14px 24px rgba(0, 0, 0, 0.24);
}

.sponsor-product-art img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24))
    saturate(1.06)
    contrast(1.04);
}

.sponsor-product-fallback {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sponsor-product-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sponsor-product-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--accent-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sponsor-product-brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-product-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.14;
  text-wrap: balance;
}

.sponsor-product-cta {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-soft);
}

.sponsor-chip {
  width: 100%;
  justify-content: space-between;
}

.sponsor-chip > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-confidence {
  font-size: 0.62rem;
}

.impact-empty,
.sponsor-empty {
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .site-mark {
    width: 48px;
    height: 48px;
  }

  .site-wordmark {
    width: 152px;
  }

  .topbar-copy h1 {
    font-size: clamp(1.9rem, 2.35vw, 2.8rem);
  }
}

@media (max-height: 840px) and (min-width: 981px) {
  .app-shell {
    width: min(1520px, calc(100vw - 24px));
    padding: 10px 0;
    gap: 10px;
  }

  .topbar {
    gap: 14px;
    padding: 10px 14px;
  }

  .site-mark {
    width: 44px;
    height: 44px;
  }

  .site-wordmark {
    width: 150px;
  }

  .topbar-copy {
    gap: 6px;
  }

  .topbar-copy h1 {
    font-size: clamp(1.9rem, 2.35vw, 2.8rem);
  }

  .eyebrow {
    font-size: 0.66rem;
  }

  .eyebrow-chip {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 0.56rem;
  }

  .event-strip-item {
    padding: 6px 9px;
  }

  .event-inline-value,
  .league-card-value {
    font-size: 0.8rem;
  }

  .event-logo {
    width: 48px;
    height: 48px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 10px;
  }

  .leaderboard-panel {
    padding: 14px;
    gap: 10px;
  }

  .panel-head h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  }

  .panel-tools {
    gap: 8px;
  }

  .division-picker {
    min-width: 160px;
  }

  .event-picker {
    min-width: 210px;
  }

  .division-picker select,
  .control-button,
  select {
    padding: 8px 11px;
    font-size: 0.66rem;
  }

  .frame-chip {
    padding: 6px 10px;
  }

  .frame-progress {
    font-size: 0.74rem;
  }

  .controls {
    gap: 8px;
  }

  .insights {
    gap: 8px;
  }

  .impact-panel,
  .sponsors-panel {
    padding: 12px;
  }

  .match-time {
    margin-top: 4px;
    font-size: 0.96rem;
  }

  .scoreline {
    margin-top: 8px;
    font-size: 1.08rem;
  }

  .match-context {
    margin-top: 8px;
    font-size: 0.82rem;
  }

  .impact-feature,
  .sponsor-team {
    padding: 10px;
  }

  .impact-feature {
    grid-template-columns: 46px 1fr;
    gap: 8px;
  }

  .impact-feature-photo {
    width: 46px;
    height: 46px;
  }

  .sponsor-product-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 9px;
  }

  .sponsor-product-art {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .app-shell {
    width: min(100vw - 24px, 1460px);
    height: auto;
    min-height: 100vh;
    padding: 14px 0 22px;
  }

  .topbar,
  .hero,
  .controls {
    grid-template-columns: 1fr;
  }

  .board-nav {
    padding: 10px;
  }

  .board-nav-separator {
    display: none;
  }

  .board-link {
    flex: 1 1 calc(50% - 8px);
  }

  .panel-tools {
    grid-auto-flow: row;
    justify-items: stretch;
  }

  .topbar {
    gap: 12px;
    padding: 16px;
  }

  .event-strip-item {
    width: 100%;
  }

  .event-branding {
    justify-content: flex-start;
    width: fit-content;
  }

  .topbar-actions {
    justify-items: start;
    width: 100%;
    max-width: 100%;
  }

  .header-shortcuts {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .leaderboard-panel {
    min-height: 760px;
  }

  .leaderboard-stage {
    min-height: 620px;
  }

  .insights {
    grid-template-rows: repeat(3, auto);
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100vw - 20px, 1520px);
  }

  .topbar {
    padding: 14px;
  }

  .topbar-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.9rem);
  }

  .site-brand {
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .event-branding {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-actions {
    width: 100%;
  }

  .header-shortcut {
    flex: 1 1 calc(50% - 6px);
  }

  .leaderboard-panel,
  .impact-panel,
  .sponsors-panel {
    padding: 14px;
  }

  .team-card {
    left: 8px;
    right: 8px;
    grid-template-columns: 42px minmax(0, 1fr) 66px;
    gap: 10px;
    padding: 9px 11px;
  }

  .team-stats {
    gap: 8px;
  }
}
