:root {
  --bg: #070a10;
  --panel: rgba(12, 15, 22, 0.9);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-elevated: rgba(21, 25, 35, 0.92);
  --text: #f5f2eb;
  --muted: #9ca8bb;
  --muted-strong: #c6cfdd;
  --accent: #ffab4d;
  --accent-soft: #ffd08f;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  --rail-width: clamp(300px, 23vw, 348px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
}

body.page-fields {
  overflow: auto;
}

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

.live-backdrop::before {
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), transparent 84%);
}

.live-backdrop::after {
  content: "";
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 156, 57, 0.16), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(88, 186, 255, 0.14), transparent 18%);
  filter: blur(26px);
}

.live-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100vw - 24px));
  height: 100dvh;
  margin: 0 auto;
  padding: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.live-event-shell {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.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, 171, 77, 0.34), rgba(255, 255, 255, 0.06), rgba(88, 186, 255, 0.24));
  pointer-events: none;
}

.board-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(8, 10, 16, 0.78);
}

.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 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.69rem;
  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, 171, 77, 0.2), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 171, 77, 0.38);
  box-shadow: 0 8px 22px rgba(255, 171, 77, 0.1);
}

.live-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));
}

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

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

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

.eyebrow,
.panel-label,
.summary-label,
.view-kicker,
.division-picker span,
.status-note,
.view-button,
.summary-chip-row,
.field-tag,
.match-meta,
.park-meta,
.social-link,
.quick-link,
.event-meta-label,
.league-card-label,
.countdown-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

.topbar-copy h1,
.board-head h2,
.summary-value,
.pulse-title {
  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;
}

.topbar-copy p,
.panel-label,
.summary-label,
.status-note,
.view-kicker,
.park-summary,
.park-meta,
.standing-meta,
.standing-stats,
.empty-state,
.match-empty,
.queue-empty,
.pulse-stats {
  color: var(--muted);
}

.topbar-copy p {
  display: none;
  margin: 0;
  font-size: 0.96rem;
  max-width: 860px;
  line-height: 1.35;
}

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

.view-button,
.quick-link,
.social-link,
.park-link,
.field-filter,
.guide-link {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.view-button,
.social-link,
.park-link,
.field-filter,
.quick-link,
.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.status-note {
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
}

.status-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6c7486;
  box-shadow: 0 0 0 4px rgba(108, 116, 134, 0.15);
}

body[data-feed-state="live"] .status-note::before {
  background: #75f0a6;
  box-shadow: 0 0 0 4px rgba(117, 240, 166, 0.16);
}

body[data-feed-state="stale"] .status-note::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 156, 57, 0.18);
}

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

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  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;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 10, 16, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.08);
}

.event-meta-label,
.league-card-label {
  font-size: 0.62rem;
  color: var(--muted);
}

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

.event-branding {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

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

.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;
  justify-items: start;
}

.event-branding .status-note {
  display: none;
}

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

.summary-ribbon {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(210px, 1.45fr) minmax(180px, 0.95fr) minmax(100px, 0.55fr) minmax(120px, 0.7fr);
  gap: 12px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(9, 11, 18, 0.78);
}

.fields-summary-ribbon {
  grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1.5fr) minmax(120px, 0.7fr) minmax(120px, 0.8fr);
}

.summary-item {
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(13, 16, 25, 0.62);
  display: grid;
  align-content: center;
  gap: 6px;
}

.summary-sync-item {
  justify-self: stretch;
}

.summary-label,
.panel-label,
.view-kicker,
.division-picker span,
.match-meta,
.park-meta,
.social-link,
.quick-link {
  font-size: 0.62rem;
}

.summary-value {
  font-size: clamp(1rem, 1.18vw, 1.38rem);
  line-height: 0.95;
}

.summary-chip-row,
.quick-links,
.field-filter-row,
.park-actions,
.park-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-tag {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.62rem;
}

.summary-sync {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.sync-orb {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 156, 57, 0.22), transparent 52%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sync-orb::before,
.sync-orb::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 156, 57, 0.18);
  opacity: 0.75;
}

.sync-orb::after {
  inset: -8px;
  border-color: rgba(88, 186, 255, 0.16);
  animation: sync-pulse 2200ms ease-in-out infinite;
}

.sync-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  animation: sync-spin 2200ms linear infinite;
  transform-style: preserve-3d;
}

.summary-sync-value {
  font-size: 1.12rem;
}

@keyframes sync-spin {
  0% {
    transform: rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: rotateY(180deg) rotateZ(180deg);
  }
  100% {
    transform: rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes sync-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.32;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.76;
  }
}

.state-guide {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 171, 77, 0.08), rgba(255, 255, 255, 0.02) 38%, rgba(88, 186, 255, 0.06)),
    rgba(10, 12, 18, 0.76);
}

.state-guide-copy {
  display: grid;
  gap: 6px;
}

.state-guide-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.28;
  max-width: 760px;
}

.guide-link {
  min-height: 42px;
  padding: 0 18px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.guide-link.is-disabled,
.guide-link[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.guide-link:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-width);
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.match-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(308px, 24vw, 356px);
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.main-column,
.side-column {
  min-height: 0;
}

.side-column {
  display: grid;
  grid-auto-rows: min-content;
  gap: 14px;
  align-content: start;
  min-height: 0;
}

.board-panel {
  height: 100%;
  min-height: 0;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(9, 11, 18, 0.86);
}

.match-focus-panel {
  padding-bottom: 16px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.board-head h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 0.95;
}

.board-note {
  margin: 6px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.board-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.page-event-live .board-head,
.page-match-live .board-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.page-event-live .board-head > div:first-child,
.page-match-live .board-head > div:first-child {
  max-width: 760px;
}

.page-event-live .board-head h2,
.page-match-live .board-head h2 {
  max-width: none;
}

.page-event-live .board-note,
.page-match-live .board-note {
  max-width: 740px;
}

.page-event-live .board-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.72fr) max-content;
  align-items: end;
  width: 100%;
  min-width: 0;
}

.page-match-live .board-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.68fr) minmax(0, 1.38fr);
  align-items: end;
  width: 100%;
  min-width: 0;
}

.event-picker {
  min-width: 0;
}

.page-match-live .board-controls .division-picker {
  min-width: 0;
}

.page-match-live .board-controls .division-picker:first-child {
  flex: initial;
}

.page-match-live .board-controls .division-picker:last-child {
  flex: initial;
  min-width: 0;
}

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

.division-picker select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  padding: 11px 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-switcher {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.view-button {
  padding: 10px 15px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.view-button.active {
  color: var(--text);
  border-color: rgba(255, 156, 57, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 156, 57, 0.1) inset;
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.12), rgba(255, 156, 57, 0.04));
}

.view-button:hover,
.field-filter:hover,
.social-link:hover,
.park-link:hover,
.quick-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.board-stage {
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(255, 171, 77, 0.055), rgba(88, 186, 255, 0.038));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.view-panel {
  display: none;
  height: 100%;
  padding: 14px;
  overflow: auto;
}

.view-panel.active {
  display: block;
}

.standings-list,
.matches-list,
.field-directory,
.queue-list {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.queue-list {
  gap: 10px;
  overflow: hidden;
  align-content: start;
}

.standing-card,
.match-card,
.park-card,
.queue-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(100deg, var(--team-primary-soft, rgba(60, 79, 96, 0.24)), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 16, 0.56);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.standing-card.is-elite {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.standing-card {
  display: grid;
  grid-template-columns: 50px 76px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 14px;
}

.standing-rank {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  font-weight: 700;
  color: var(--text);
}

.standing-logo,
.queue-logo {
  width: 72px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.standing-logo img,
.queue-logo img {
  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%);
  object-fit: contain;
  transform: translate(var(--logo-shift-x, 0), var(--logo-shift-y, 0));
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08))
    brightness(1.12)
    contrast(1.18)
    saturate(1.08);
}

.standing-logo.logo-square,
.queue-logo.logo-square,
.team-mark.logo-square,
.page-match-live .team-hero-mark.logo-square {
  --logo-fit-max-width: 108%;
  --logo-fit-max-height: 108%;
}

.standing-logo.logo-wide,
.queue-logo.logo-wide,
.team-mark.logo-wide,
.page-match-live .team-hero-mark.logo-wide {
  --logo-fit-width: auto;
  --logo-fit-max-width: 118%;
  --logo-fit-max-height: 92%;
}

.standing-logo.logo-ultrawide,
.queue-logo.logo-ultrawide,
.team-mark.logo-ultrawide,
.page-match-live .team-hero-mark.logo-ultrawide {
  --logo-fit-width: auto;
  --logo-fit-max-width: 128%;
  --logo-fit-max-height: 88%;
}

.standing-logo.logo-tall,
.queue-logo.logo-tall,
.team-mark.logo-tall,
.page-match-live .team-hero-mark.logo-tall {
  --logo-fit-height: auto;
  --logo-fit-max-width: 88%;
  --logo-fit-max-height: 110%;
}

.logo-fallback {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.standing-copy,
.standing-metrics,
.match-main,
.park-copy {
  min-width: 0;
}

.standing-name,
.park-name,
.queue-title {
  margin: 0;
  font-size: 1.08rem;
}

.standing-meta,
.standing-stats,
.park-summary,
.park-meta,
.pulse-stats,
.queue-meta {
  font-size: 0.8rem;
}

.standing-stats,
.pulse-stats,
.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.standing-metrics {
  display: grid;
  justify-items: end;
  gap: 6px;
  font-size: 0.86rem;
}

.metric-strong,
.match-score strong,
.park-link,
.social-link,
.quick-link {
  color: var(--text);
  text-decoration: none;
}

.match-card,
.queue-card {
  padding: 12px 14px;
}

.match-card {
  display: grid;
  gap: 10px;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.match-state-pill,
.queue-state,
.pulse-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.match-state-started,
.queue-state-started,
.pulse-chip.is-live {
  color: #79efaa;
  border-color: rgba(121, 239, 170, 0.22);
  background: rgba(121, 239, 170, 0.08);
}

.match-state-finished,
.queue-state-finished {
  color: var(--accent-soft);
  border-color: rgba(255, 193, 104, 0.2);
  background: rgba(255, 193, 104, 0.08);
}

.match-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 1rem;
}

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

.team-mark {
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.team-mark img {
  width: var(--logo-fit-width, auto);
  height: var(--logo-fit-height, auto);
  max-width: var(--logo-fit-max-width, 100%);
  max-height: var(--logo-fit-max-height, 100%);
  object-fit: contain;
  transform: translate(var(--logo-shift-x, 0), var(--logo-shift-y, 0));
  filter:
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3))
    brightness(1.08)
    contrast(1.14);
}

.team-mark .logo-fallback {
  font-size: 0.62rem;
}

.score-badge,
.field-filter,
.park-link,
.social-link,
.quick-link {
  padding: 8px 12px;
  font-size: 0.72rem;
}

.score-badge {
  min-width: 84px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.field-filter {
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.field-filter.active {
  color: var(--text);
  border-color: rgba(255, 156, 57, 0.28);
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.12), rgba(255, 156, 57, 0.04));
}

.park-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.park-actions,
.park-socials {
  margin-top: 4px;
}

.park-link.is-disabled,
.social-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.insight-panel {
  padding: 16px;
  display: grid;
  gap: 12px;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014)),
    rgba(10, 12, 18, 0.84);
}

.pulse-title {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  line-height: 0.94;
}

.pulse-countdown {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.55rem;
  color: var(--text);
}

.queue-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(16, 20, 29, 0.74);
}

.queue-title {
  font-size: 0.92rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.queue-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.queue-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.queue-field,
.queue-time {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-field {
  color: var(--text);
}

.queue-time {
  color: var(--muted);
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.queue-state {
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

.queue-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

#match-schedule-panel .queue-title {
  font-size: 0.8rem;
}

#match-schedule-panel .queue-card {
  padding: 9px 11px;
}

#match-schedule-panel .queue-meta {
  gap: 4px 8px;
}

#queue-list .queue-card {
  padding: 10px 12px;
}

#queue-list .queue-state {
  font-size: 0.58rem;
  padding: 5px 8px;
}

#queue-list .queue-meta {
  font-size: 0.7rem;
}

.fields-shell {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  height: auto;
  min-height: 100vh;
}

.fields-dashboard {
  grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 320px);
  flex: 1 1 auto;
}

.fields-board-panel {
  min-height: 0;
}

.fields-stage {
  min-height: 0;
}

.fields-view-panel {
  display: block;
  overflow: auto;
}

.fields-guide .state-guide-title {
  max-width: 740px;
}

.page-event-live .side-column {
  grid-template-rows: minmax(0, auto) minmax(0, 1fr);
}

.page-event-live .board-panel,
.page-match-live .board-panel {
  gap: 12px;
}

.page-event-live .board-stage {
  min-height: 0;
}

.page-event-live .view-panel {
  padding: 12px;
}

.page-event-live .standings-list {
  gap: 6px;
}

.page-event-live .standing-card {
  grid-template-columns: 42px 70px minmax(0, 1fr) 126px;
  min-height: 58px;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 16px;
}

.page-event-live .standing-rank {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.page-event-live .standing-logo {
  width: 68px;
  height: 42px;
}

.page-event-live .standing-name {
  font-size: 0.98rem;
  line-height: 1.04;
}

.page-event-live .standing-meta,
.page-event-live .standing-stats {
  font-size: 0.72rem;
  line-height: 1.15;
}

.page-event-live .standing-stats {
  gap: 6px;
}

.page-event-live .standing-metrics {
  gap: 3px;
  font-size: 0.75rem;
  line-height: 1.12;
}

.page-event-live .queue-panel {
  min-height: 0;
  padding: 14px;
}

.page-event-live .pulse-panel {
  padding: 14px;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(255, 171, 77, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014)),
    rgba(10, 12, 18, 0.84);
}

.page-event-live #queue-list {
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  gap: 8px;
}

.page-event-live .pulse-title {
  font-size: clamp(1.42rem, 1.85vw, 2rem);
}

.page-event-live .pulse-countdown {
  font-size: 1.32rem;
}

.page-event-live #queue-list .queue-card {
  padding: 9px 10px;
  gap: 10px;
}

.page-event-live #queue-list .queue-logo {
  width: 40px;
  height: 40px;
}

.page-event-live #queue-list .queue-title {
  font-size: 0.86rem;
  line-height: 1.08;
}

.page-event-live #queue-list .queue-meta {
  font-size: 0.68rem;
  gap: 4px 8px;
}

body[data-view-density="compact"] .page-event-live .pulse-panel,
body[data-view-density="compact"] .page-event-live .queue-panel {
  padding: 12px;
}

body[data-view-density="compact"] .page-event-live #queue-list {
  gap: 7px;
}

body[data-view-density="compact"] .page-event-live #queue-list .queue-card {
  padding: 8px 9px;
  gap: 9px;
}

body[data-view-density="compact"] .page-event-live #queue-list .queue-logo {
  width: 36px;
  height: 36px;
}

body[data-view-density="compact"] .page-event-live #queue-list .queue-title {
  font-size: 0.8rem;
  line-height: 1.04;
}

body[data-view-density="compact"] .page-event-live #queue-list .queue-meta {
  font-size: 0.64rem;
  gap: 3px 7px;
}

body[data-view-density="tight"] .page-event-live .pulse-panel,
body[data-view-density="tight"] .page-event-live .queue-panel {
  padding: 11px;
}

body[data-view-density="tight"] .page-event-live #queue-list {
  gap: 6px;
}

body[data-view-density="tight"] .page-event-live #queue-list .queue-card {
  padding: 7px 8px;
  gap: 8px;
}

body[data-view-density="tight"] .page-event-live #queue-list .queue-logo {
  width: 34px;
  height: 34px;
}

body[data-view-density="tight"] .page-event-live #queue-list .queue-title {
  font-size: 0.76rem;
  line-height: 1.02;
}

body[data-view-density="tight"] .page-event-live #queue-list .queue-meta {
  font-size: 0.6rem;
  gap: 3px 6px;
}

.page-match-replay .match-dashboard,
.page-match-replay .live-shell {
  min-height: 0;
}

.page-match-replay .match-dashboard {
  grid-template-columns: minmax(0, 1fr) clamp(276px, 21vw, 318px);
  gap: 8px;
}

.page-match-replay .side-column {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  overflow: hidden;
}

.page-match-replay .board-panel {
  padding: 12px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  background:
    radial-gradient(circle at 14% 16%, var(--replay-left-strong, rgba(255, 171, 77, 0.22)), transparent 30%),
    radial-gradient(circle at 86% 14%, var(--replay-right-strong, rgba(88, 186, 255, 0.2)), transparent 28%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014)),
    rgba(9, 11, 18, 0.9);
}

.page-match-replay .replay-board-head {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.page-match-replay .board-head h2 {
  font-size: clamp(1.12rem, 1.42vw, 1.42rem);
  max-width: 620px;
  text-wrap: balance;
}

.page-match-replay .board-head h2[data-size="headline-compact"] {
  font-size: clamp(1.04rem, 1.3vw, 1.26rem);
  max-width: 560px;
}

.page-match-replay .board-head h2[data-size="headline-tight"] {
  font-size: clamp(0.94rem, 1.12vw, 1.12rem);
  line-height: 0.94;
  max-width: 520px;
}

.page-match-replay .board-note {
  max-width: 540px;
  font-size: 0.72rem;
}

.page-match-replay .replay-board-controls {
  display: grid;
  grid-template-columns: minmax(136px, 0.72fr) minmax(112px, 0.54fr) minmax(320px, 2.12fr) auto;
  gap: 7px;
  align-items: end;
}

.page-match-replay .replay-board-controls .division-picker {
  min-width: 0;
}

.page-match-replay .replay-board-controls .division-picker select {
  width: 100%;
}

.page-match-replay .replay-frame-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  align-self: center;
  min-width: 110px;
}

.page-match-replay .frame-chip {
  min-width: 148px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 171, 77, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 171, 77, 0.24);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-match-replay .frame-progress {
  font-size: 0.76rem;
  text-align: right;
}

.page-match-replay .replay-match-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 7px;
}

.page-match-replay .replay-spot {
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(13, 16, 24, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 4px;
  align-content: start;
}

.page-match-replay .replay-spot .summary-value {
  font-size: clamp(0.9rem, 1.42vw, 1.14rem);
  line-height: 0.96;
  text-wrap: pretty;
}

.page-match-replay .replay-players-panel,
.page-match-replay .replay-gear-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.page-match-replay #replay-player-list,
.page-match-replay #replay-sponsor-stack {
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.page-match-replay .replay-stage-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(240px, 0.78fr) minmax(0, 1.04fr);
  gap: 8px;
  min-height: 0;
  align-items: stretch;
}

.page-match-replay .team-hero-card-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-content: stretch;
  min-height: 156px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at top left, var(--team-primary-soft), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(16, 19, 28, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.page-match-replay .team-hero-card-inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--team-accent), rgba(255, 255, 255, 0.08), var(--team-accent));
  opacity: 0.85;
}

.page-match-replay .team-hero-card-inner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 13, 0.82));
  pointer-events: none;
}

.page-match-replay .team-hero-copy,
.page-match-replay .team-hero-mark,
.page-match-replay .team-hero-live-score {
  position: relative;
  z-index: 1;
}

.page-match-replay .team-hero-mark {
  width: 204px;
  height: 144px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  align-self: center;
  justify-self: center;
  overflow: visible;
}

.page-match-replay .team-hero-copy h3 {
  font-size: clamp(1.56rem, 1.98vw, 2.1rem);
  max-width: 12.5ch;
  text-wrap: balance;
}

.page-match-replay .team-hero-copy h3.team-title-compact {
  font-size: clamp(1.3rem, 1.62vw, 1.64rem);
  max-width: 12.3ch;
}

.page-match-replay .team-hero-copy h3.team-title-tight {
  font-size: clamp(1.08rem, 1.26vw, 1.26rem);
  line-height: 0.95;
  max-width: 12ch;
}

.page-match-replay .team-hero-logo,
.page-match-replay .team-hero-fallback {
  width: 198px;
  height: 138px;
  max-width: 100%;
  max-height: 100%;
}

.page-match-replay .team-hero-logo {
  object-fit: contain;
  padding: 0;
  filter:
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.12))
    brightness(1.14)
    contrast(1.24)
    saturate(1.12);
}

.page-match-replay .team-hero-fallback {
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}

.page-match-replay .match-focus-panel[data-match-density="long"] .replay-board-head {
  gap: 10px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .board-head h2 {
  font-size: clamp(1.42rem, 1.92vw, 1.9rem);
  max-width: 680px;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .board-head h2 {
  font-size: clamp(1.12rem, 1.42vw, 1.44rem);
  max-width: 600px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .board-note,
.page-match-replay .match-focus-panel[data-match-density="tight"] .board-note {
  font-size: 0.8rem;
  max-width: 560px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .replay-board-controls {
  grid-template-columns: minmax(158px, 0.92fr) minmax(136px, 0.72fr) minmax(260px, 1.48fr) auto;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .replay-board-controls {
  grid-template-columns: minmax(144px, 0.88fr) minmax(124px, 0.68fr) minmax(224px, 1.34fr) auto;
  gap: 6px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .replay-match-strip {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.96fr) minmax(0, 0.72fr) minmax(0, 0.78fr) minmax(0, 0.86fr);
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .replay-match-strip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 0.76fr) minmax(0, 0.82fr);
}

.page-match-replay .match-focus-panel[data-match-density="long"] .replay-stage-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(234px, 0.72fr) minmax(0, 1.14fr);
  gap: 8px;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .replay-stage-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(214px, 0.66fr) minmax(0, 1.18fr);
  gap: 8px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .team-hero-card-inner,
.page-match-replay .match-focus-panel[data-match-density="long"] .replay-score-core {
  min-height: 164px;
  padding: 15px 14px 13px;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .team-hero-card-inner,
.page-match-replay .match-focus-panel[data-match-density="tight"] .replay-score-core {
  min-height: 152px;
  padding: 14px 13px 12px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .team-hero-mark {
  width: 176px;
  height: 132px;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .team-hero-mark {
  width: 156px;
  height: 116px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .team-hero-logo,
.page-match-replay .match-focus-panel[data-match-density="long"] .team-hero-fallback {
  width: 154px;
  height: 108px;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .team-hero-logo,
.page-match-replay .match-focus-panel[data-match-density="tight"] .team-hero-fallback {
  width: 132px;
  height: 94px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .team-hero-copy {
  gap: 3px;
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .team-hero-copy {
  gap: 2px;
}

.page-match-replay .match-focus-panel[data-match-density="long"] .match-big-score {
  font-size: clamp(3rem, 4.35vw, 4rem);
}

.page-match-replay .match-focus-panel[data-match-density="tight"] .match-big-score {
  font-size: clamp(2.65rem, 3.9vw, 3.5rem);
}

.page-match-replay .match-focus-panel[data-match-density="long"] .match-score-caption,
.page-match-replay .match-focus-panel[data-match-density="tight"] .match-score-caption {
  font-size: 0.92rem;
  max-width: 250px;
}

.page-match-replay .team-hero-copy {
  align-self: end;
  justify-items: center;
  text-align: center;
}

.page-match-replay .team-hero-meta {
  font-size: 0.8rem;
  max-width: 24ch;
}

.page-match-replay .team-hero-live-score {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.66rem;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--team-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-match-replay .team-hero-logo,
.page-match-replay .team-hero-fallback {
  width: 188px;
  height: 128px;
}

.page-match-replay .team-hero-link {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.page-match-replay .team-hero-card.is-leading .team-hero-card-inner {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 40px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.page-match-replay .team-hero-card.is-point-winner .team-hero-card-inner {
  transform: translateY(-2px);
  border-color: rgba(255, 171, 77, 0.26);
}

.page-match-replay .team-hero-card.is-trailing .team-hero-card-inner {
  filter: saturate(0.9);
}

.page-match-replay .replay-score-core {
  position: relative;
  min-height: 156px;
  gap: 10px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 171, 77, 0.22), transparent 36%),
    linear-gradient(90deg, var(--replay-left-soft, rgba(255, 171, 77, 0.12)), rgba(255, 255, 255, 0.03) 48%, var(--replay-right-soft, rgba(88, 186, 255, 0.12))),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(18, 20, 30, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(0, 0, 0, 0.16);
}

.page-match-replay .replay-score-core::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.page-match-replay .replay-score-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 171, 77, 0.14), transparent 20%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  pointer-events: none;
}

.page-match-replay .match-big-score {
  font-size: clamp(3rem, 4.3vw, 4.2rem);
}

.page-match-replay .match-score-caption {
  max-width: 250px;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

body[data-view-density="compact"] .live-shell {
  width: min(1440px, calc(100vw - 20px));
  padding: 10px 0 14px;
  gap: 10px;
}

body[data-view-density="compact"] .page-match-live .board-head {
  align-items: start;
  gap: 10px;
}

body[data-view-density="compact"] .page-match-live .board-controls {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.64fr) minmax(0, 1.24fr);
  width: 100%;
}

body[data-view-density="compact"] .page-event-live .board-controls {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) max-content;
}

body[data-view-density="compact"] .page-match-live .division-picker select {
  padding: 10px 12px;
}

body[data-view-density="tight"] .page-match-live .board-head {
  align-items: start;
  gap: 8px;
}

body[data-view-density="tight"] .page-match-live .board-controls {
  grid-template-columns: 1fr;
  width: 100%;
  gap: 8px;
}

body[data-view-density="tight"] .page-match-live .division-picker select {
  padding: 9px 11px;
}

body[data-view-density="compact"] .page-match-replay .match-dashboard {
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 8px;
}

body[data-view-density="compact"] .page-match-replay .board-panel {
  padding: 11px;
  gap: 8px;
}

body[data-view-density="compact"] .page-match-replay .replay-board-controls {
  grid-template-columns: minmax(122px, 0.72fr) minmax(106px, 0.54fr) minmax(248px, 1.92fr) auto;
  gap: 7px;
}

body[data-view-density="compact"] .page-match-replay .replay-match-strip {
  gap: 7px;
}

body[data-view-density="compact"] .page-match-replay .replay-spot {
  min-height: 50px;
  padding: 7px 10px;
}

body[data-view-density="compact"] .page-match-replay .replay-stage-grid {
  gap: 8px;
}

body[data-view-density="compact"] .page-match-replay .team-hero-card-inner,
body[data-view-density="compact"] .page-match-replay .replay-score-core {
  min-height: 142px;
}

body[data-view-density="compact"] .page-match-replay .team-hero-mark {
  width: 154px;
  height: 110px;
}

body[data-view-density="compact"] .page-match-replay .team-hero-logo,
body[data-view-density="compact"] .page-match-replay .team-hero-fallback {
  width: 146px;
  height: 102px;
}

body[data-view-density="compact"] .page-match-replay .team-hero-copy h3 {
  font-size: clamp(1.36rem, 1.64vw, 1.7rem);
}

body[data-view-density="compact"] .page-match-replay .team-hero-copy h3.team-title-compact {
  font-size: clamp(1.14rem, 1.32vw, 1.36rem);
}

body[data-view-density="compact"] .page-match-replay .team-hero-copy h3.team-title-tight {
  font-size: clamp(0.98rem, 1.08vw, 1.12rem);
}

body[data-view-density="compact"] .page-match-replay .match-big-score {
  font-size: clamp(2.7rem, 4vw, 3.5rem);
}

body[data-view-density="compact"] .page-match-replay .insight-panel {
  padding: 11px;
  gap: 8px;
}

body[data-view-density="compact"] .page-match-replay .replay-choice,
body[data-view-density="compact"] .page-match-replay .point-row {
  padding: 9px 11px;
}

body[data-view-density="tight"] .live-shell {
  width: min(1380px, calc(100vw - 16px));
  padding: 8px 0 12px;
  gap: 8px;
}

body[data-view-density="tight"] .page-match-replay .topbar-copy {
  gap: 6px;
}

body[data-view-density="tight"] .page-match-replay .match-dashboard {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 8px;
}

body[data-view-density="tight"] .page-match-replay .board-panel {
  padding: 10px;
}

body[data-view-density="tight"] .page-match-replay .replay-board-controls {
  grid-template-columns: minmax(108px, 0.68fr) minmax(96px, 0.5fr) minmax(220px, 1.76fr) auto;
  gap: 6px;
}

body[data-view-density="tight"] .page-match-replay .frame-chip {
  min-width: 122px;
  min-height: 34px;
  padding: 0 12px;
}

body[data-view-density="tight"] .page-match-replay .frame-progress {
  font-size: 0.76rem;
}

body[data-view-density="tight"] .page-match-replay .replay-spot {
  min-height: 42px;
  padding: 6px 8px;
}

body[data-view-density="tight"] .page-match-replay .team-hero-card-inner,
body[data-view-density="tight"] .page-match-replay .replay-score-core {
  min-height: 128px;
}

body[data-view-density="tight"] .page-match-replay .team-hero-mark {
  width: 132px;
  height: 92px;
}

body[data-view-density="tight"] .page-match-replay .team-hero-logo,
body[data-view-density="tight"] .page-match-replay .team-hero-fallback {
  width: 122px;
  height: 86px;
}

body[data-view-density="tight"] .page-match-replay .team-hero-copy h3 {
  font-size: clamp(1.18rem, 1.44vw, 1.36rem);
}

body[data-view-density="tight"] .page-match-replay .team-hero-copy h3.team-title-compact {
  font-size: clamp(1rem, 1.12vw, 1.14rem);
}

body[data-view-density="tight"] .page-match-replay .team-hero-copy h3.team-title-tight {
  font-size: clamp(0.88rem, 0.98vw, 1rem);
}

body[data-view-density="tight"] .page-match-replay .match-big-score {
  font-size: clamp(2.28rem, 3.4vw, 3rem);
}

body[data-view-density="tight"] .page-match-replay .match-score-caption {
  font-size: 0.82rem;
  max-width: 220px;
}

body[data-view-density="tight"] .page-match-replay .insight-panel {
  padding: 10px;
  gap: 8px;
}

.page-match-replay .replay-controls {
  margin-top: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-match-replay .replay-players-panel .panel-label,
.page-match-replay .replay-gear-panel .panel-label {
  margin-bottom: 8px;
}

.page-fields .summary-ribbon,
.page-fields .state-guide {
  background:
    linear-gradient(90deg, rgba(255, 171, 77, 0.07), rgba(255, 255, 255, 0.018) 38%, rgba(88, 186, 255, 0.06)),
    rgba(10, 12, 18, 0.8);
}

.page-fields .field-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-fields .park-card {
  min-height: 260px;
}

.page-fields .park-name {
  font-size: 1.4rem;
}

.page-fields .park-summary {
  font-size: 0.96rem;
  line-height: 1.45;
}

.page-fields .park-link,
.page-fields .social-link {
  padding: 10px 14px;
}

.page-fields .fields-note-panel {
  position: sticky;
  top: 12px;
}

.match-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(248px, 0.78fr) minmax(0, 0.94fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}

.match-prelive-stage[hidden] {
  display: none !important;
}

#match-live-stage[hidden] {
  display: none !important;
}

.match-prelive-stage {
  min-height: clamp(320px, 42vh, 420px);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 156, 57, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.countdown-kicker {
  font-size: 0.72rem;
  color: var(--accent);
}

.countdown-big {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 7vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
}

.countdown-subtitle {
  max-width: 540px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.team-hero-card-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(110deg, var(--team-primary-soft), rgba(11, 14, 21, 0.18) 52%, rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 0;
}

.team-hero-mark {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-match-live .team-hero-mark {
  width: 82px;
  height: 82px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.team-hero-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.08))
    brightness(1.08)
    contrast(1.2)
    saturate(1.08);
}

.page-match-live .team-hero-logo {
  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%);
  transform: translate(var(--logo-shift-x, 0), var(--logo-shift-y, 0));
}

.team-hero-fallback {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(8, 10, 16, 0.55);
  color: var(--text);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
}

.team-hero-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.team-hero-label,
.team-hero-link {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.team-hero-copy h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.7rem, 2.35vw, 2.6rem);
  line-height: 0.92;
  text-wrap: balance;
}

.team-hero-meta {
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.team-hero-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
}

.team-hero-link.is-muted {
  color: var(--muted);
}

.match-score-core {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 156, 57, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.match-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--muted);
}

.match-big-score {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.8rem, 7vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
}

.match-big-score span {
  color: rgba(255, 255, 255, 0.3);
}

.match-score-caption,
.match-flow-copy {
  color: var(--muted);
  text-align: center;
  max-width: 320px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.match-point-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.point-track-empty {
  color: var(--muted);
  text-align: center;
}

.point-pill {
  display: grid;
  gap: 2px;
  min-width: 66px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.point-pill span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

.point-pill strong {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.14rem;
}

.point-pill.win-left {
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.16), rgba(255, 255, 255, 0.04));
}

.point-pill.win-right {
  background: linear-gradient(180deg, rgba(88, 186, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.point-pill.active {
  border-color: rgba(255, 156, 57, 0.36);
  transform: translateY(-2px);
}

.match-player-list,
.match-point-list,
.replay-choice-list {
  display: grid;
  gap: 8px;
}

.match-player-card,
.point-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-player-photo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 24%;
  transform: none;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(20, 24, 33, 0.92);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.match-player-photo.fallback {
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.match-player-copy h3,
.point-row h3 {
  margin: 0;
  font-size: 0.96rem;
}

.match-player-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.match-player-stats {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
}

.match-player-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(14, 17, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.match-player-card::before {
  content: "";
  width: 3px;
  border-radius: 999px;
  background: var(--player-accent, rgba(255, 171, 77, 0.6));
}

.match-player-card {
  grid-template-columns: 3px 66px minmax(0, 1fr);
}

.page-match-replay .match-player-card {
  grid-template-columns: 3px 58px minmax(0, 1fr);
}

.match-gear-stack {
  display: grid;
  gap: 8px;
}

.match-gear-team {
  display: grid;
  gap: 10px;
  padding: 11px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(14, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.match-gear-team::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gear-accent, rgba(255, 171, 77, 0.6)), rgba(255, 255, 255, 0.08));
}

.match-gear-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.match-gear-team-logo {
  width: 78px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
}

.match-gear-team-logo.logo-square {
  --logo-fit-max-width: 108%;
  --logo-fit-max-height: 108%;
}

.match-gear-team-logo.logo-wide {
  --logo-fit-width: auto;
  --logo-fit-max-width: 118%;
  --logo-fit-max-height: 92%;
}

.match-gear-team-logo.logo-ultrawide {
  --logo-fit-width: auto;
  --logo-fit-max-width: 128%;
  --logo-fit-max-height: 88%;
}

.match-gear-team-logo.logo-tall {
  --logo-fit-height: auto;
  --logo-fit-max-width: 88%;
  --logo-fit-max-height: 110%;
}

.match-gear-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);
}

.match-gear-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 12px rgba(255, 255, 255, 0.12))
    brightness(1.14)
    contrast(1.24)
    saturate(1.08);
}

.match-gear-team-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

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

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

.match-gear-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

.match-gear-row,
.match-gear-product-grid {
  display: grid;
  gap: 8px;
}

.match-gear-chip,
.match-gear-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
}

.match-gear-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.match-gear-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.065);
}

.match-gear-art {
  width: 76px;
  height: 76px;
  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);
}

.match-gear-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);
}

.match-gear-art-fallback {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
}

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

.match-gear-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;
}

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

.match-gear-label {
  min-width: 0;
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.14;
  text-wrap: balance;
}

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

.match-gear-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.match-gear-site:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.point-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.point-row.is-active {
  border-color: rgba(255, 156, 57, 0.34);
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.12), rgba(255, 255, 255, 0.04));
}

.point-row-score {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.replay-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.replay-choice strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.replay-choice span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.replay-choice.active {
  border-color: rgba(255, 156, 57, 0.36);
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.12), rgba(255, 255, 255, 0.04));
}

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

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

.control-button,
.slider-wrap input,
.speed-wrap select {
  font: inherit;
}

.control-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  cursor: pointer;
}

.control-button.primary {
  background: linear-gradient(180deg, rgba(255, 156, 57, 0.24), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 156, 57, 0.38);
}

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

.slider-wrap span,
.speed-wrap span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.slider-wrap input {
  width: 100%;
}

.speed-wrap select {
  min-width: 132px;
}

.empty-state,
.match-empty,
.queue-empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.park-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.park-city-pill,
.park-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.park-city-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

.park-status-pill {
  background: rgba(255, 171, 77, 0.1);
  border: 1px solid rgba(255, 171, 77, 0.18);
  color: var(--accent-soft);
}

.park-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.park-info-item {
  display: grid;
  gap: 6px;
}

.park-info-label {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.park-info-value {
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.4;
}

body[data-match-mode="prelive"] #point-flow-panel,
body[data-match-mode="prelive"] #match-players-panel {
  display: none;
}

body[data-match-mode="prelive"] #match-schedule-panel {
  min-height: 0;
}

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

  .live-shell {
    height: auto;
    min-height: 100vh;
    padding-bottom: 18px;
  }

  .summary-ribbon,
  .dashboard,
  .match-dashboard {
    grid-template-columns: 1fr;
  }

  .page-event-live .side-column,
  .page-match-replay .side-column,
  .fields-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .page-match-replay .replay-match-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-match-replay .replay-board-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-event-live .board-controls,
  .page-match-live .board-controls {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  }

  .page-event-live .view-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .page-match-replay .replay-frame-meta {
    justify-items: start;
  }

  .live-topbar,
  .state-guide {
    grid-template-columns: 1fr;
  }

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

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

  .match-stage-grid {
    grid-template-columns: 1fr;
  }

  .standing-card {
    grid-template-columns: 44px 52px minmax(0, 1fr);
  }

  .standing-metrics {
    justify-items: start;
    grid-column: 2 / -1;
  }

  .park-info-grid {
    grid-template-columns: 1fr;
  }

  .page-fields .field-directory {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 900px) {
  .page-match-replay .match-dashboard {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 8px;
  }

  .page-match-replay .board-panel {
    padding: 14px;
  }

  .page-match-replay .replay-match-strip {
    gap: 7px;
  }

  .page-match-replay .replay-spot {
    min-height: 50px;
    padding: 7px 10px;
  }

  .page-match-replay .replay-stage-grid {
    gap: 8px;
  }

  .page-match-replay .team-hero-card-inner,
  .page-match-replay .replay-score-core {
    min-height: 174px;
  }

  .page-match-replay .team-hero-copy h3 {
    font-size: clamp(1.55rem, 2vw, 2.15rem);
  }

  .page-match-replay .team-hero-mark {
    width: 136px;
    height: 98px;
  }

  .page-match-replay .team-hero-logo,
  .page-match-replay .team-hero-fallback {
    width: 116px;
    height: 80px;
  }

  .page-match-replay .match-big-score {
    font-size: clamp(3.35rem, 4.8vw, 4.7rem);
  }

  .page-match-replay .insight-panel {
    padding: 13px;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .live-shell {
    width: min(100vw - 20px, 100%);
    gap: 12px;
  }

  .board-head,
  .board-controls {
    display: grid;
  }

  .main-column,
  .match-focus-panel,
  .page-event-live .board-head,
  .page-event-live .board-controls,
  .page-event-live .division-picker,
  .page-event-live .division-picker select,
  .page-match-live .board-head,
  .page-match-live .board-controls,
  .page-match-live .division-picker,
  .page-match-live .division-picker select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .page-event-live .board-controls {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .page-event-live .view-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .page-event-live .view-button {
    width: 100%;
  }

  .page-match-live .board-controls {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .event-picker {
    min-width: 0;
  }

  .board-nav {
    padding: 10px;
  }

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

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

  .summary-ribbon {
    padding: 14px;
  }

  .topbar-actions {
    width: 100%;
  }

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

  .summary-item {
    min-height: 0;
  }

  .summary-sync {
    justify-content: flex-start;
  }

  .standing-card {
    grid-template-columns: 40px 48px minmax(0, 1fr);
    padding: 10px 12px;
  }

  .view-switcher {
    flex-wrap: wrap;
  }

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

  .page-match-replay .replay-match-strip,
  .page-match-replay .replay-board-controls {
    grid-template-columns: 1fr;
  }

  .page-match-replay .team-hero-card-inner {
    padding: 16px 14px 14px;
  }

  .page-match-replay .team-hero-mark {
    width: 108px;
    height: 108px;
  }

  .page-match-replay .team-hero-logo,
  .page-match-replay .team-hero-fallback {
    width: 88px;
    height: 62px;
  }

  .page-match-replay .team-hero-live-score {
    top: 12px;
    right: 12px;
  }

  .page-event-live .queue-card,
  .page-match-replay .replay-choice,
  .page-match-replay .point-row {
    padding: 10px 12px;
  }
}
