:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --amber: #ffbf3f;
  --board: #101010;
  --board-2: #191919;
  --metal: #737373;
  --panel: #070707;
  --paint: #f5f5f0;
  --red: #ef4444;
  --green: #22c55e;
  background: #111;
  color: var(--paint);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, rgba(255, 191, 63, 0.16), transparent 34rem),
    #101010;
  background-size: 24px 24px, 24px 24px, auto;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  min-height: 178px;
  overflow: hidden;
  padding: 26px 24px 22px;
  border: 2px solid #5f5f5f;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.62) 62%, rgba(5, 5, 5, 0.92)),
    url("/assets/stadium-lights-crowd.jpeg") center 22% / cover no-repeat,
    var(--board);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 -54px 58px rgba(0, 0, 0, 0.74),
    0 18px 50px rgba(0, 0, 0, 0.38);
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.topbar::before {
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.5), transparent 6rem),
    radial-gradient(circle at 50% 0%, rgba(220, 235, 255, 0.42), transparent 8rem),
    radial-gradient(circle at 82% 11%, rgba(255, 255, 255, 0.38), transparent 6rem);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.topbar::after {
  inset: auto 0 0;
  height: 52%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 10px);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
  color: #fffef4;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.28),
    0 0 34px rgba(255, 191, 63, 0.16),
    0 3px 0 #000,
    0 10px 22px rgba(0, 0, 0, 0.72);
}

.status-pill {
  min-width: 100px;
  padding: 9px 12px;
  border: 1px solid #474747;
  border-radius: 4px;
  background: #050505;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.is-live {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.status-pill.is-loading {
  border-color: rgba(255, 191, 63, 0.7);
  background: rgba(255, 191, 63, 0.11);
  color: #ffe08a;
}

.status-pill.is-error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.league-ticker {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 2px solid #5f5f5f;
  border-radius: 8px;
  background: #050505;
  overflow: hidden;
}

.ticker-label {
  align-self: stretch;
  display: grid;
  min-width: 132px;
  place-items: center;
  background: var(--amber);
  color: #101010;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 48px;
  align-items: center;
  gap: 28px;
  animation: ticker-scroll 42s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #f5f5f0;
  font-size: 0.9rem;
}

.ticker-item strong {
  color: #fff;
  font-weight: 950;
}

.ticker-item span {
  color: var(--amber);
  font-weight: 950;
}

.ticker-item em {
  max-width: 340px;
  overflow: hidden;
  color: #c7c7c7;
  font-style: normal;
  text-overflow: ellipsis;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.controls {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(190px, 1.2fr) minmax(150px, 0.9fr) minmax(160px, 1fr) minmax(120px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 2px solid #5f5f5f;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    #181818;
  box-shadow: inset 0 0 0 3px #0a0a0a;
}

.controls label,
.segmented {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.controls span,
.segmented legend {
  color: #d3d3d3;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.controls select,
.controls input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  background: #050505;
  color: #fffef4;
  padding: 0 12px;
}

.segmented {
  grid-template-columns: repeat(3, 1fr);
  border: 0;
  padding: 0;
  margin: 0;
}

.layout-toggle {
  grid-template-columns: repeat(2, 1fr);
}

.segmented legend {
  grid-column: 1 / -1;
}

.segmented label {
  position: relative;
  min-height: 44px;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid #4d4d4d;
  background: #050505;
  color: #e8e8e8;
}

.segmented label:first-of-type span {
  border-radius: 6px 0 0 6px;
}

.segmented label:last-of-type span {
  border-radius: 0 6px 6px 0;
}

.segmented label:not(:first-of-type):not(:last-of-type) span {
  border-radius: 0;
}

.segmented input:checked + span {
  border-color: var(--amber);
  background: #3b2b0b;
  color: #fff8db;
}

.segmented input:disabled + span {
  opacity: 0.45;
  cursor: not-allowed;
}

.controls button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--amber);
  color: #111;
  padding: 0 20px;
  font-weight: 950;
  cursor: pointer;
  text-transform: uppercase;
}

.controls button:hover {
  background: #ffd36e;
}

.is-hidden {
  display: none;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #343434;
  border-radius: 6px;
  background: #050505;
  color: #c7c7c7;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.meta-row strong {
  color: var(--amber);
}

.source-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 16px;
}

.source-spacer {
  display: none;
}

.conference-filter {
  display: grid;
  justify-self: start;
  min-width: min(280px, 100%);
  gap: 6px;
}

.conference-filter.is-hidden {
  display: none;
}

.conference-filter span {
  color: #d3d3d3;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conference-filter select {
  min-height: 38px;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  background: #050505;
  color: #fffef4;
  padding: 0 10px;
}

.league-source-logo {
  display: grid;
  width: fit-content;
  min-height: 42px;
  justify-self: start;
  margin: 12px 0;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 191, 63, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    #050505;
  box-shadow:
    inset 0 0 0 2px #171717,
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.league-source-logo.is-hidden {
  display: none;
}

.league-logo {
  display: block;
  width: 58px;
  max-height: 36px;
  object-fit: contain;
}

.feed-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 191, 63, 0.48);
  border-radius: 8px;
  background: rgba(255, 191, 63, 0.1);
  color: #ffe08a;
  font-weight: 800;
}

.feed-note.is-logo-only {
  display: grid;
  width: fit-content;
  min-height: 42px;
  justify-self: end;
  margin: 12px 0;
  place-items: center;
  padding: 8px 12px;
  border-color: #d5d5ce;
  background: #f7f7f2;
}

.espn-source-logo {
  display: block;
  width: 74px;
  height: auto;
}

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

.score-grid.is-golf-board {
  grid-template-columns: minmax(0, 1fr);
}

.score-grid.is-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compact-game {
  container-type: inline-size;
  display: grid;
  min-height: 132px;
  border: 2px solid #5f5f5f;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px),
    #050505;
  box-shadow:
    inset 0 0 0 2px #171717,
    0 10px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.compact-team {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 7px 9px;
  border-left: 4px solid var(--team-color);
}

.compact-team + .compact-team {
  border-top: 1px solid #343434;
}

.compact-identity {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 2px;
}

.compact-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 4px;
  background: #151515;
  color: #fffef4;
  font-size: 0.82rem;
  font-weight: 950;
}

.compact-mark img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.compact-location,
.compact-mascot {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fffef4;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.compact-location {
  color: #c7c7c7;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
}

.compact-mascot {
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.05;
}

.compact-score {
  display: grid;
  justify-items: end;
  min-width: 88px;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 191, 63, 0.2);
}

.compact-period {
  margin-bottom: 2px;
  color: #c7c7c7;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@container (max-width: 178px) {
  .compact-identity {
    display: none;
  }
}

.game-card,
.gamecast,
.empty-state {
  border: 2px solid #5f5f5f;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--board);
  box-shadow:
    inset 0 0 0 3px #0a0a0a,
    0 16px 45px rgba(0, 0, 0, 0.32);
}

.game-card {
  container: board-card / inline-size;
  position: relative;
  overflow: hidden;
}

.game-card-golf {
  grid-column: 1 / -1;
}

.game-card::before,
.gamecast::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 10px);
  mix-blend-mode: screen;
}

.gamecast {
  container: gamecast-card / inline-size;
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
}

.gamecast-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.54fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 220px;
}

.golf-gamecast-hero {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
}

.gamecast-team {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px;
  border-top: 5px solid var(--team-color);
}

.gamecast-team + .gamecast-team {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.gamecast-logo {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

.gamecast-logo img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.gamecast-team strong {
  display: block;
  color: #fffef4;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.gamecast-team span {
  display: block;
  margin-top: 8px;
  color: #c7c7c7;
  font-size: 0.92rem;
}

.gamecast-score {
  display: grid;
  justify-items: end;
  color: var(--amber);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 950;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-shadow: 0 0 14px rgba(255, 191, 63, 0.24);
}

.gamecast-center {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 22px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: #050505;
  text-align: center;
}

.gamecast-center strong {
  color: #fffef4;
  font-size: 1.2rem;
  line-height: 1.25;
}

.gamecast-center span:last-child {
  color: #c7c7c7;
  font-size: 0.9rem;
}

.gamecast-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.football-situation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(112px, 0.7fr) minmax(210px, 1.6fr) minmax(126px, 0.8fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #343434;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(34, 197, 94, 0.045)),
    #080808;
}

.football-situation-gamecast {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.football-detail {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.football-detail span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.football-detail strong {
  overflow: hidden;
  color: #fffef4;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.football-detail em {
  overflow: hidden;
  color: #c7c7c7;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.football-field {
  position: relative;
  min-height: 74px;
  overflow: hidden;
  border: 2px solid rgba(245, 245, 240, 0.5);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(245, 245, 240, 0.45) 0 2px, transparent 2px calc(10% - 1px), rgba(245, 245, 240, 0.33) calc(10% - 1px) 10%),
    repeating-linear-gradient(90deg, rgba(245, 245, 240, 0.13) 0 1px, transparent 1px 10%),
    linear-gradient(180deg, rgba(34, 197, 94, 0.42), rgba(21, 128, 61, 0.32)),
    #0b3f20;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.32);
}

.football-field::before,
.football-field::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  background: rgba(5, 5, 5, 0.34);
}

.football-field::before {
  left: 0;
}

.football-field::after {
  right: 0;
}

.football-marker {
  position: absolute;
  top: 50%;
  left: var(--ball-position);
  z-index: 1;
  display: grid;
  width: 48px;
  min-height: 32px;
  place-items: center;
  color: #fffef4;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.football-marker::before {
  content: "";
  position: absolute;
  inset: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.65) 47% 53%, transparent 54%),
    #8b4513;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.42),
    0 0 16px color-mix(in srgb, var(--drive-color), transparent 40%);
}

.football-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: translateY(-50%);
}

.football-marker.is-right::after {
  right: -2px;
  border-left: 12px solid var(--drive-color);
}

.football-marker.is-left::after {
  left: -2px;
  border-right: 12px solid var(--drive-color);
}

.football-marker span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px #000;
}

.baseball-situation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #343434;
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.035)),
    #080808;
}

.volleyball-situation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #343434;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(34, 197, 94, 0.04)),
    #080808;
}

.golf-situation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(126px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #343434;
  background:
    linear-gradient(180deg, rgba(47, 133, 90, 0.16), rgba(245, 158, 11, 0.035)),
    #080808;
}

.volleyball-situation-gamecast {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.golf-situation-gamecast {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.volleyball-summary,
.golf-summary {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.volleyball-summary span,
.golf-summary span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.volleyball-summary strong,
.golf-summary strong {
  overflow: hidden;
  color: #fffef4;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.golf-tournament-logo {
  display: block;
  width: min(170px, 100%);
  max-height: 64px;
  margin-top: 6px;
  object-fit: contain;
  object-position: left center;
}

.golf-leaders {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.golf-leader {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.25fr) minmax(120px, 0.6fr) minmax(48px, auto);
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #343434;
  border-radius: 4px;
  background: #050505;
}

.golf-leader span {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.golf-leader strong,
.golf-leader em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.golf-leader strong {
  color: #fffef4;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.golf-leader em {
  color: #c7c7c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.golf-leader b {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  line-height: 1;
  text-align: right;
}

.volleyball-set-line {
  min-width: 0;
  overflow: hidden;
  padding: 10px 8px;
  border: 1px solid #343434;
  border-radius: 4px;
  background: #050505;
  color: #fffef4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--volleyball-set-font-size, clamp(0.68rem, 1.25vw, 0.98rem));
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volleyball-set-line.is-wrapped {
  line-height: 1.15;
  text-overflow: clip;
  white-space: normal;
}

.baseball-situation-gamecast {
  border-top-color: rgba(255, 255, 255, 0.09);
}

.baseball-player {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.baseball-player span,
.baseball-count span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.baseball-player strong {
  overflow: hidden;
  color: #fffef4;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.baseball-player em {
  overflow: hidden;
  color: #c7c7c7;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.baseball-diamond {
  position: relative;
  width: 78px;
  height: 78px;
  justify-self: center;
  border: 2px solid rgba(245, 245, 240, 0.44);
  background:
    linear-gradient(135deg, transparent 49%, rgba(245, 245, 240, 0.14) 50%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(245, 245, 240, 0.14) 50%, transparent 51%),
    rgba(34, 197, 94, 0.08);
  clip-path: polygon(50% 3%, 97% 50%, 50% 97%, 3% 50%);
}

.base {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #d5d5ce;
  background: #050505;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.38);
}

.base.is-occupied {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(255, 191, 63, 0.58);
}

.base-first {
  top: 33px;
  right: 10px;
}

.base-second {
  top: 9px;
  left: 32px;
}

.base-third {
  top: 33px;
  left: 10px;
}

.base-home {
  right: 32px;
  bottom: 9px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.baseball-count {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 5px;
  justify-content: end;
}

.baseball-count div {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid #343434;
  border-radius: 4px;
  background: #050505;
}

.baseball-count strong {
  color: #fffef4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.info-panel {
  min-height: 96px;
  padding: 16px;
}

.info-panel + .info-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.info-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-panel strong {
  display: block;
  color: #fffef4;
  font-size: 0.95rem;
  line-height: 1.35;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 12px 14px;
  border-bottom: 1px solid #343434;
  background: #050505;
  text-transform: uppercase;
}

.game-state {
  display: inline-flex;
  align-items: center;
  min-width: 74px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card[data-state="post"] .game-state {
  color: #d5dbe3;
}

.game-card[data-state="pre"] .game-state {
  color: var(--amber);
}

.game-detail {
  color: #fffef4;
  font-size: 0.9rem;
  font-weight: 760;
  text-align: right;
}

.teams {
  position: relative;
  display: grid;
}

.team-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(54px, auto);
  align-items: center;
  min-height: 76px;
  gap: 12px;
  padding: 13px 14px;
  border-left: 5px solid var(--team-color);
  background: var(--panel);
}

.game-card-golf .team-row {
  grid-template-columns: 70px minmax(0, 1fr) minmax(90px, auto);
  min-height: 104px;
  padding: 18px;
}

.team-row + .team-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-row.winner {
  background: #151505;
}

.team-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 8px;
  background: #151515;
  color: #fff;
  font-weight: 900;
}

.team-mark img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.game-card-golf .team-mark {
  width: 66px;
  height: 66px;
}

.game-card-golf .team-mark img {
  max-width: 52px;
  max-height: 52px;
}

.team-info {
  min-width: 0;
}

.team-info strong,
.team-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-info strong {
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fffef4;
  text-transform: uppercase;
}

.team-name,
.gamecast-team strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-info span {
  margin-top: 4px;
  color: #c7c7c7;
  font-size: 0.85rem;
}

.favorite-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #5f5f5f;
  border-radius: 4px;
  background: #080808;
  color: #8b8b8b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.favorite-toggle:hover,
.favorite-toggle.is-active {
  border-color: var(--amber);
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255, 191, 63, 0.36);
}

.score {
  display: grid;
  justify-items: end;
  color: var(--amber);
  font-size: 2.45rem;
  font-weight: 950;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-shadow: 0 0 12px rgba(255, 191, 63, 0.22);
}

.score-status {
  margin-bottom: 2px;
  color: #d5dbe3;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.gamecast-score .score-status {
  font-size: 0.84rem;
}

.game-card-golf .score {
  font-size: clamp(3rem, 7vw, 5.1rem);
}

.game-footer {
  display: grid;
  border-top: 1px solid #343434;
  color: #c7c7c7;
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.game-info-row,
.play-row {
  padding: 10px 14px;
  overflow-wrap: anywhere;
}

.game-info-row {
  color: #c7c7c7;
}

.play-row {
  min-height: 40px;
  border-top: 1px solid #242424;
  background: rgba(255, 191, 63, 0.06);
  color: #fffef4;
  font-weight: 850;
}

@container board-card (max-width: 620px) {
  .game-header {
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
  }

  .game-state {
    min-width: 58px;
    font-size: 0.7rem;
  }

  .game-detail {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .team-row {
    grid-template-columns: 46px minmax(0, 1fr) minmax(48px, auto);
    min-height: 68px;
    gap: 9px;
    padding: 11px 12px;
    border-left-width: 4px;
  }

  .team-mark {
    width: 44px;
    height: 44px;
    border-radius: 6px;
  }

  .team-mark img {
    max-width: 34px;
    max-height: 34px;
  }

  .team-info strong {
    font-size: 0.94rem;
  }

  .team-info span {
    font-size: 0.76rem;
  }

  .favorite-toggle {
    width: 24px;
    height: 24px;
    font-size: 0.86rem;
  }

  .score {
    font-size: 2.05rem;
  }

  .score-status {
    font-size: 0.58rem;
  }

  .football-situation,
  .volleyball-situation,
  .golf-situation {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .football-field {
    min-height: 56px;
  }

  .football-detail {
    gap: 3px;
  }

  .football-detail span,
  .baseball-player span,
  .baseball-count span,
  .volleyball-summary span,
  .golf-summary span {
    font-size: 0.62rem;
  }

  .football-detail strong {
    font-size: 0.9rem;
  }

  .football-detail em,
  .baseball-player em {
    font-size: 0.68rem;
  }

  .baseball-situation {
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px;
  }

  .baseball-diamond {
    width: 68px;
    height: 68px;
  }

  .baseball-count {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 30px);
    justify-content: center;
  }

  .baseball-count div {
    min-height: 36px;
  }

  .baseball-player strong,
  .volleyball-summary strong,
  .golf-summary strong {
    font-size: 0.82rem;
  }

  .volleyball-set-line {
    padding: 8px;
    font-size: var(--volleyball-set-font-size, 0.74rem);
  }

  .golf-leader {
    grid-template-columns: 38px minmax(0, 1fr) minmax(82px, auto) minmax(42px, auto);
    gap: 7px;
    min-height: 32px;
  }

  .golf-leader strong {
    font-size: 0.78rem;
  }

  .golf-leader em {
    font-size: 0.68rem;
  }

  .game-footer {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .game-info-row,
  .play-row {
    padding: 8px 12px;
  }

  .play-row {
    min-height: 34px;
  }
}

@container board-card (max-width: 420px) {
  .game-header {
    align-items: flex-start;
    min-height: 38px;
    padding: 8px 10px;
  }

  .game-state {
    min-width: 46px;
    font-size: 0.64rem;
  }

  .game-detail {
    font-size: 0.7rem;
  }

  .team-row {
    grid-template-columns: 38px minmax(0, 1fr) minmax(42px, auto);
    min-height: 60px;
    gap: 7px;
    padding: 9px 10px;
  }

  .team-mark {
    width: 36px;
    height: 36px;
  }

  .team-mark img {
    max-width: 28px;
    max-height: 28px;
  }

  .team-info strong {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .team-info span {
    margin-top: 2px;
    font-size: 0.68rem;
  }

  .team-name {
    gap: 5px;
  }

  .favorite-toggle {
    width: 21px;
    height: 21px;
    font-size: 0.75rem;
  }

  .score {
    font-size: 1.58rem;
  }

  .score-status {
    font-size: 0.52rem;
  }

  .football-situation,
  .baseball-situation,
  .volleyball-situation,
  .golf-situation {
    gap: 7px;
    padding: 8px 10px;
  }

  .football-field {
    min-height: 48px;
  }

  .football-marker {
    width: 42px;
    min-height: 28px;
    font-size: 0.58rem;
  }

  .baseball-situation {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .baseball-diamond {
    grid-row: span 3;
    width: 58px;
    height: 58px;
  }

  .baseball-count {
    grid-column: auto;
    justify-content: start;
  }

  .baseball-count div {
    min-height: 32px;
  }

  .baseball-player strong,
  .football-detail strong,
  .volleyball-summary strong,
  .golf-summary strong {
    font-size: 0.76rem;
  }

  .baseball-player em,
  .football-detail em {
    font-size: 0.62rem;
  }

  .volleyball-set-line {
    padding: 7px;
    font-size: var(--volleyball-set-font-size, 0.68rem);
  }

  .golf-leader {
    grid-template-columns: 34px minmax(0, 1fr) minmax(38px, auto);
    gap: 6px;
  }

  .golf-leader em {
    display: none;
  }

  .game-footer {
    font-size: 0.68rem;
  }

  .game-info-row,
  .play-row {
    padding: 7px 10px;
  }

  .play-row {
    min-height: 30px;
  }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  color: #ced8e1;
  text-align: center;
}

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

  .controls button {
    grid-column: 1 / -1;
  }

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

  .gamecast-hero {
    grid-template-columns: 1fr;
  }

  .gamecast-center {
    order: -1;
    min-height: 120px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .gamecast-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .football-situation {
    grid-template-columns: 1fr;
  }

  .volleyball-situation {
    grid-template-columns: 1fr;
  }

  .golf-situation {
    grid-template-columns: 1fr;
  }

  .baseball-situation {
    grid-template-columns: 82px repeat(3, minmax(0, 1fr));
  }

  .golf-leader {
    grid-template-columns: 38px minmax(0, 1fr) minmax(86px, auto) minmax(42px, auto);
    gap: 7px;
  }

  .golf-leader em {
    font-size: 0.68rem;
  }

  .baseball-diamond {
    grid-row: span 2;
  }

  .info-panel + .info-panel {
    border-left: 0;
  }

  .info-panel:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.09);
  }

  .info-panel:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .score-grid.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .compact-game {
    min-height: 108px;
  }

  .compact-team {
    grid-template-columns: minmax(30px, 0.42fr) minmax(0, 1fr);
    min-height: 52px;
    gap: 6px;
    padding: 6px;
    border-left-width: 3px;
  }

  .compact-identity {
    display: none;
  }

  .compact-mark {
    width: 34px;
    height: 34px;
  }

  .compact-mark img {
    max-width: 28px;
    max-height: 28px;
  }

  .compact-score {
    min-width: 0;
    justify-items: end;
    font-size: 1.28rem;
  }

  .compact-period {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.48rem;
    text-overflow: ellipsis;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 22px;
  }

  .topbar,
  .meta-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .league-ticker {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ticker-label {
    min-height: 32px;
  }

  .ticker-track {
    min-height: 46px;
  }

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

  .team-mark {
    width: 40px;
    height: 40px;
  }

  .score {
    font-size: 1.75rem;
  }

  .gamecast-team {
    padding: 18px;
  }

  .gamecast-panels {
    grid-template-columns: 1fr;
  }

  .baseball-situation {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .baseball-diamond {
    grid-row: span 3;
  }

  .baseball-count {
    justify-content: start;
  }

  .game-card-golf .team-row {
    grid-template-columns: 50px minmax(0, 1fr) minmax(54px, auto);
    min-height: 82px;
    padding: 13px 14px;
  }

  .game-card-golf .team-mark {
    width: 46px;
    height: 46px;
  }

  .game-card-golf .team-mark img {
    max-width: 38px;
    max-height: 38px;
  }

  .game-card-golf .score {
    font-size: 2.25rem;
  }

  .info-panel:nth-child(even),
  .info-panel + .info-panel {
    border-left: 0;
  }

  .info-panel + .info-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
}
