:root {
  --home-content-inset: var(--site-content-inset);
}

:root {
  --team-yankees: #4c76b0;
  --team-opponent: #c75c5c;
}

.site-footer {
  margin-top: 14px;
}

.hero-panel {
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
}

.hero-panel::after {
  display: none;
}

.recent-games-section,
.selected-recap-section,
.recap-selector-section,
.recap-section {
  padding-top: 14px;
}

.recap-visible-title {
  margin: 0;
}

.recap-selector-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 8px;
  background: var(--card-bg);
}

.recap-button-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.recap-selector-button {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: #121b22;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 7px;
  row-gap: 5px;
  padding: 10px 10px 8px;
  font-size: var(--text-normal);
  font-weight: 700;
  text-align: left;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.recap-selector-button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #70869a;
  opacity: 0.7;
}

.recap-selector-button > :not(.selector-opponent-logo) {
  position: relative;
  z-index: 1;
}

.selector-opponent-logo {
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 6px;
  width: 52px;
  height: calc(100% - 8px);
  object-fit: contain;
  object-position: center;
  opacity: 0.12;
  filter: grayscale(1) contrast(0.85);
  pointer-events: none;
}

.recap-selector-button.win::before {
  background: #67e8a2;
}

.recap-selector-button.loss::before {
  background: #ff858d;
}

.recap-selector-button.in-progress::before {
  background: #f6d365;
}

.recap-selector-button:hover,
.recap-selector-button:focus-visible {
  background: #18232c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.recap-selector-button.active {
  background: #192630;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.recap-selector-button .selector-date {
  grid-column: 1 / -1;
  color: #8293a1;
  padding-right: 34px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.recap-selector-button .selector-result {
  width: 21px;
  height: 21px;
  border-radius: 5px;
  background: rgba(196, 206, 212, 0.08);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.recap-selector-button .selector-score {
  overflow: hidden;
  color: #eef2f5;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0;
}

.recap-selector-button .selector-final-score {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 21px 22px auto auto auto auto auto 22px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.selector-final-score img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.selector-final-score b {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.selector-final-score strong {
  color: #eef2f5;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.selector-final-score i {
  color: #758590;
  font-style: normal;
}

.selector-matchup-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.recap-selector-button .selector-time {
  color: #9ba8b2;
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
}

.recap-selector-button.win .selector-result {
  color: #67e8a2;
  background: rgba(103, 232, 162, 0.1);
}

.recap-selector-button.loss .selector-result {
  color: #ff8f8f;
  background: rgba(255, 143, 143, 0.1);
}

.recap-selector-button.in-progress .selector-time {
  color: #f6d365;
  text-transform: uppercase;
}

.recent-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recent-game-button {
  min-width: 0;
  border: 1px solid rgba(196, 206, 212, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: var(--card-bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 208px;
  padding: 20px 16px 18px;
  text-align: center;
}

.recent-game-button:hover,
.recent-game-button:focus,
.recent-game-button.active {
  border-color: rgba(247, 248, 255, 0.72);
  background: rgba(3, 6, 20, 0.86);
}

.recent-game-date,
.recent-game-result {
  justify-self: center;
  color: #f7f8ff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recent-game-date {
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(196, 206, 212, 0.62);
}

.recent-game-matchup {
  min-width: 0;
  width: min(100%, 288px);
  display: grid;
  grid-template-columns: 62px minmax(54px, 1fr) 16px minmax(54px, 1fr) 62px;
  gap: 10px;
  align-items: center;
  align-self: center;
  justify-content: center;
  justify-self: center;
}

.recent-game-matchup img {
  width: clamp(44px, 5vw, 62px);
  height: clamp(44px, 5vw, 62px);
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.recent-game-matchup strong {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-game-matchup i {
  color: rgba(196, 206, 212, 0.72);
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.recent-game-result {
  min-width: 96px;
  border-radius: 4px;
  background: rgba(196, 206, 212, 0.08);
  padding: 7px 16px;
}

.recent-game-result.win {
  color: #67e8a2;
}

.recent-game-result.loss {
  color: #ff8f8f;
}

.last-game-card {
  --scoreboard-card-padding: var(--home-content-inset);
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: block;
  grid-template-columns: minmax(310px, 0.9fr) minmax(540px, 1.6fr) minmax(260px, 0.85fr);
  align-items: stretch;
  padding: 16px;
}

.last-game-card::before {
  content: none;
}

.game-linescore-box {
  min-width: 0;
  border-right: 1px solid rgba(96, 126, 166, 0.38);
  display: flex;
  align-items: center;
  padding: 18px;
}

.linescore-scroll {
  width: 100%;
  overflow-x: auto;
}

.linescore-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #f7f8ff;
}

.linescore-table th,
.linescore-table td {
  min-width: 30px;
  padding: 5px 7px;
  font-size: var(--text-small);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.linescore-table thead th {
  color: var(--muted);
}

.linescore-table tbody th {
  min-width: 62px;
  color: #fff;
  font-weight: 800;
  text-align: left;
}

.linescore-table .line-total {
  color: #f1b434;
  font-weight: 800;
}

.game-decisions {
  min-width: 0;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 22px;
  text-align: left;
}

.game-decisions p {
  margin: 0;
  overflow: hidden;
  color: #f7f8ff;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
}

.game-decisions :is(.win-label, .loss-label, .save-label) {
  color: #57f091;
}

.game-decisions .decision-pitcher {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
}

.game-decisions .loss-label {
  color: #ff7777;
}

.game-decisions .save-label {
  color: #4c76b0;
}

.game-live-status-row {
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px 14px;
  color: var(--ink);
  text-align: center;
}

.game-live-status-row strong {
  color: #f6d365;
}

.game-live-status-row i {
  color: var(--muted);
  font-style: normal;
}

.game-live-status-row + .game-scoreboard-top {
  padding-top: 14px;
}

.game-scoreboard-top {
  min-height: 64px;
  margin-inline: calc(var(--scoreboard-card-padding) * -1);
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(56px, 0.35fr) minmax(120px, 0.7fr) minmax(56px, 0.35fr) minmax(190px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 30px 14px;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--scoreboard-left-color, transparent) 34%, transparent) 0%,
      transparent 42%,
      transparent 58%,
      color-mix(in srgb, var(--scoreboard-right-color, transparent) 34%, transparent) 100%
    );
}

.home-score-team-colors {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

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

.scoreboard-team.away {
  justify-content: flex-end;
  text-align: right;
}

.scoreboard-team.home {
  justify-content: flex-start;
  text-align: left;
}

.scoreboard-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.scoreboard-team.is-yankees img {
  box-shadow: none;
}

.scoreboard-team-copy {
  min-width: 0;
  display: grid;
  line-height: 1.2;
}

.scoreboard-team-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: var(--text-normal);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scoreboard-team-copy small {
  color: #dfe4f4;
  font-size: var(--text-small);
  font-weight: 700;
}

.scoreboard-score {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.scoreboard-state {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.game-scoreboard-top.win .scoreboard-state {
  color: #9af0c8;
}

.game-scoreboard-top.loss .scoreboard-state {
  color: #ff8f8f;
}

.game-scoreboard-top.in-progress .scoreboard-state {
  color: #f6d365;
}

.scoreboard-mobile-score {
  display: none;
}

.game-scoreboard-lower {
  position: relative;
  display: grid;
  grid-template-columns: var(--game-detail-columns);
  align-items: stretch;
  margin-inline: calc(var(--scoreboard-card-padding) * -1);
  background: var(--card-bg);
  padding-inline: var(--scoreboard-card-padding);
}

.game-scoreboard-lower .game-linescore-box {
  border-right: 0;
  padding: 14px 18px 0 0;
}

.game-scoreboard-lower .game-decisions {
  gap: 10px;
  padding: 16px 0 0 18px;
}

.game-scoreboard-lower .game-decisions p {
  font-size: var(--text-normal);
  text-transform: none;
}

.game-scoreboard-lower .game-decisions.decision-cards {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  align-content: stretch;
  gap: 8px;
}

.game-scoreboard-lower .game-decisions.decision-cards::before {
  content: none;
}

.decision-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
  border: 0;
  border-radius: 7px;
  background: rgba(10, 15, 20, 0.34);
  color: inherit;
  text-decoration: none;
}

a.decision-card:hover,
a.decision-card:focus-visible {
  background: rgba(18, 26, 34, 0.58);
}

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

.decision-label {
  position: absolute;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  color: #57f091;
  font-size: clamp(1.35rem, 2.3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  opacity: 0.12;
  pointer-events: none;
}

.decision-label.loss-label {
  color: #ff7777;
}

.decision-label.save-label {
  color: #73a8ea;
}

.decision-label.potg-label {
  color: #f6d365;
  font-size: clamp(1rem, 1.7vw, 1.9rem);
}

.decision-player-portrait {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(196, 206, 211, 0.22);
  border-radius: 50%;
  background: var(--card-bg);
  object-fit: cover;
  object-position: center top;
}

.decision-player-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.decision-player-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
}

.decision-player-copy strong,
.decision-player-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-player-copy strong {
  color: #f7f8ff;
  font-size: var(--text-normal);
  line-height: 1.15;
}

.decision-player-copy small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.2;
  white-space: normal;
}

.pregame-info-row strong,
.game-scoreboard-top.upcoming .scoreboard-state {
  color: #9ac7ff;
}

.pregame-info-row,
.live-info-row {
  border-bottom: 0;
  gap: 14px;
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  font-weight: 600;
}

.pregame-info-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pregame-info-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #9ac7ff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-1px);
}

.pregame-details {
  border-right: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 0;
}

.pregame-scoreboard-lower {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr) minmax(0, 1fr);
  margin: 0;
  gap: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 24px;
}

.pregame-details h3,
.matchup-predictor h3,
.probable-pitchers-slot h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-normal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.probable-pitchers-slot h3 {
  width: 100%;
  text-align: center;
}

.pregame-details p {
  margin: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.pregame-details p strong {
  color: var(--ink);
  white-space: nowrap;
}

.game-decisions.probable-pitchers-slot {
  align-content: stretch;
  gap: 12px;
}

.matchup-predictor {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
}

.matchup-predictor h3 {
  width: 100%;
  text-align: center;
}

.matchup-predictor-chart {
  display: grid;
  grid-template-columns: 58px 150px 58px;
  align-items: center;
  gap: 14px;
}

.matchup-predictor-ring {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transform: rotate(-90deg);
}

@property --predictor-reveal {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

.matchup-predictor-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  --predictor-reveal: 100%;
  background: conic-gradient(var(--away-color) 0 calc(100% - var(--home-share)), var(--home-color) calc(100% - var(--home-share)) 100%);
  -webkit-mask: conic-gradient(#000 0 var(--predictor-reveal), transparent var(--predictor-reveal) 100%);
  mask: conic-gradient(#000 0 var(--predictor-reveal), transparent var(--predictor-reveal) 100%);
}

.matchup-predictor-ring.animate::before {
  animation: predictor-ring-reveal 850ms cubic-bezier(0.22, 0.7, 0.28, 1) forwards;
}

@keyframes predictor-ring-reveal {
  from { --predictor-reveal: 0%; }
  to { --predictor-reveal: 100%; }
}

.matchup-predictor-ring > span {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #111820;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  padding: 15px;
  transform: rotate(90deg);
  z-index: 1;
}

.matchup-predictor-ring img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  justify-self: center;
}

.matchup-predictor-ring i {
  width: 1px;
  height: 58px;
  background: rgba(196, 206, 211, 0.3);
}

.matchup-predictor-percent {
  color: var(--ink);
  font-size: clamp(0.82rem, 1.15vw, 1.15rem);
  white-space: nowrap;
}

.matchup-predictor-percent.away {
  justify-self: end;
}

.matchup-predictor-percent.home {
  justify-self: start;
}

@media (prefers-reduced-motion: reduce) {
  .matchup-predictor-ring.animate::before {
    --predictor-reveal: 100%;
    animation: none;
  }
}

.matchup-predictor-empty {
  margin: auto 0;
  color: var(--muted);
  font-size: var(--text-small);
  text-align: center;
}

.game-scoreboard-lower .game-decisions.probable-pitchers-slot {
  padding: 0;
}

.probable-pitchers-grid {
  display: grid;
  gap: 6px;
  width: 100%;
}

.probable-pitchers-headings,
.probable-pitcher {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px 64px repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  text-align: center;
}

.probable-pitchers-headings {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.probable-pitcher {
  min-height: 68px;
  border-left: 5px solid var(--probable-team-color, #607080);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 5px 10px;
}

a.probable-pitcher,
a.matchup-player {
  color: inherit;
  text-decoration: none;
}

a.probable-pitcher:hover strong,
a.probable-pitcher:focus-visible strong,
a.matchup-player:hover strong,
a.matchup-player:focus-visible strong {
  color: #fff;
}

.inline-player-profile-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.inline-player-profile-link:hover,
.inline-player-profile-link:focus-visible {
  color: #fff;
}

.probable-pitcher > img:not(.probable-team-logo),
.probable-pitcher-placeholder {
  width: 58px;
  height: 58px;
  object-fit: contain;
  object-position: center bottom;
}

.probable-pitcher-placeholder {
  border: 1px solid rgba(196, 206, 211, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.5rem;
}

.probable-pitcher-team {
  color: #9ac7ff;
  font-size: var(--text-small);
  font-weight: 800;
}

.probable-pitcher-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.probable-pitcher-copy strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.probable-pitcher-copy small {
  color: var(--muted);
  font-weight: 700;
}

.probable-pitcher-copy i {
  padding: 0 2px;
  color: rgba(196, 206, 211, 0.45);
  font-style: normal;
}

.probable-versus {
  color: #f6d365;
  font-size: var(--text-small);
  text-align: center;
}

.probable-team-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  justify-self: center;
}

.probable-pitcher > strong {
  color: var(--ink);
  font-size: var(--text-small);
  white-space: nowrap;
}

.pregame-lineups {
  padding: 20px 0 22px;
}

.pregame-lineups-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.pregame-lineups-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-normal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pregame-lineups-heading span {
  color: var(--muted);
  font-size: var(--text-small);
}

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

.pregame-lineup-team {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.pregame-lineup-team > header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
}

.pregame-lineup-team > header > img {
  object-fit: contain;
}

.pregame-lineup-team > header h4 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-normal);
}

.pregame-lineup-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pregame-lineup-player {
  min-width: 0;
  display: grid;
  grid-template-columns: 22px 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 5px 14px;
}

.pregame-lineup-player:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.pregame-lineup-order {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
  text-align: center;
}

.pregame-lineup-player > img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center bottom;
}

.pregame-lineup-player > a {
  min-width: 0;
  display: grid;
  color: inherit;
  text-decoration: none;
}

.pregame-lineup-player > a strong,
.pregame-lineup-player > a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pregame-lineup-player > a strong {
  color: var(--ink);
}

.pregame-lineup-player > a:hover strong,
.pregame-lineup-player > a:focus-visible strong {
  color: #fff;
}

.pregame-lineup-player > a small {
  color: var(--muted);
  font-size: var(--text-small);
}

.pregame-lineup-position {
  border-radius: 4px;
  background: rgba(154, 199, 255, 0.1);
  color: #9ac7ff;
  padding: 4px;
  font-size: var(--text-small);
  font-weight: 800;
  text-align: center;
}

.pregame-lineup-empty {
  padding: 26px 14px;
  color: var(--muted);
  text-align: center;
}

.pregame-bullpen {
  padding: 20px 0 22px;
}

.pregame-bullpen-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}

.pregame-bullpen-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pregame-bullpen-heading h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pregame-bullpen-heading h3 {
  font-size: var(--text-normal);
}

.pregame-bullpen-heading span,
.pregame-bullpen-heading p,
.pregame-bullpen-empty {
  color: var(--muted);
  font-size: var(--text-small);
}

.pregame-bullpen-heading p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 0 auto;
}

.pregame-bullpen-heading p i {
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5daeff, #17253a);
}

.pregame-bullpen-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.bullpen-team {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.bullpen-team > header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
}

.bullpen-team > header img {
  object-fit: contain;
}

.bullpen-team > header h4 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-normal);
}

.bullpen-pitcher-list {
  display: grid;
}

.bullpen-pitcher {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(125px, 0.8fr) minmax(120px, 1fr) 30px;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 5px 14px;
  color: inherit;
  text-decoration: none;
}

.bullpen-pitcher:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.bullpen-pitcher > img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #080d12;
  object-fit: contain;
  object-position: center bottom;
}

.bullpen-pitcher-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.bullpen-pitcher-copy strong,
.bullpen-pitcher-copy small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bullpen-pitcher-copy strong {
  color: var(--ink);
  font-size: var(--text-small);
}

.bullpen-pitcher:hover .bullpen-pitcher-copy strong,
.bullpen-pitcher:focus-visible .bullpen-pitcher-copy strong {
  color: #fff;
}

.bullpen-pitcher-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.bullpen-pitch-meter {
  position: relative;
  width: 100%;
  height: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(154, 199, 255, 0.07) 0 2px, transparent 2px 6px);
}

.bullpen-pitch-meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--bullpen-color, #4d91cf);
}

.bullpen-pitch-count {
  color: #fff;
  font-size: var(--text-small);
  text-align: right;
}

.pregame-bullpen-empty {
  margin: 0;
  padding: 18px 0;
  text-align: center;
}

.game-decisions.live-matchup-slot {
  display: block;
  padding-top: 14px;
}

.live-matchup-slot .current-matchup-grid {
  width: 100%;
  height: 100%;
}

.game-situation {
  margin-top: 14px;
  margin-inline: calc(var(--scoreboard-card-padding) * -1);
  background: var(--card-bg);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.win-probability-panel {
  margin: 14px calc(var(--scoreboard-card-padding) * -1) 0;
  border-top: 0;
  background: var(--card-bg);
  padding: 14px 0 8px;
}

.win-probability-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  padding-inline: var(--home-content-inset);
}

.win-probability-header h3,
.win-probability-header p {
  margin: 0;
}

.win-probability-header h3 {
  color: var(--ink);
  font-size: var(--text-normal);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.win-probability-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-small);
}

.win-probability-header > strong {
  color: #8fbce6;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.win-probability-chart-scroll {
  position: relative;
  width: calc(100% - 2 * var(--home-content-inset));
  margin-inline: var(--home-content-inset);
  overflow-x: auto;
}

.win-probability-tooltip {
  position: fixed;
  z-index: 1000;
  width: max-content;
  max-width: min(360px, calc(100vw - 36px));
  transform: translate(-50%, -100%);
  border-radius: 5px;
  background: #05090d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  padding: 7px 9px;
  color: #f7f8ff;
  font-size: var(--text-small);
  line-height: 1.35;
  pointer-events: none;
}

.win-probability-chart {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  aspect-ratio: 1400 / 220;
  overflow: visible;
}

.win-probability-mobile-summary {
  display: none;
}

.win-probability-grid-line,
.win-probability-inning-line {
  stroke: rgba(196, 206, 211, 0.1);
  stroke-width: 1;
}

.win-probability-grid-line.is-midline {
  stroke: rgba(196, 206, 211, 0.28);
  stroke-dasharray: 5 5;
}

.win-probability-area {
  fill: rgba(143, 188, 230, 0.14);
}

.win-probability-line {
  fill: none;
  stroke: #9ac7ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.win-probability-scoring-point {
  fill: #f6d365;
  stroke: #10181f;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  cursor: help;
}

.win-probability-scoring-point:focus-visible {
  outline: none;
  stroke: #fff;
  stroke-width: 3;
}

.win-probability-axis-label,
.win-probability-inning-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.win-probability-axis-label {
  text-anchor: start;
}

.win-probability-inning-label {
  text-anchor: middle;
}

.scoring-plays-panel {
  min-width: 0;
  padding: 14px var(--home-content-inset);
}

.scoring-plays-panel h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: var(--text-normal);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.current-matchup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.matchup-player {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.matchup-player.batter {
  text-align: center;
}

.matchup-player img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
  object-position: center bottom;
}

.matchup-player-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  justify-content: stretch;
  gap: 2px 6px;
  text-align: center;
}

.matchup-player.batter .matchup-player-copy {
  justify-content: stretch;
}

.matchup-player-copy strong {
  overflow: visible;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.matchup-player-copy span,
.matchup-player-copy small {
  color: var(--muted);
  font-weight: 700;
}

.matchup-player-copy small {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.matchup-player-copy .matchup-on-deck {
  margin-top: 2px;
  color: #c7d0dd;
}

.matchup-on-deck b {
  color: #9ac7ff;
}

.matchup-player-copy span {
  display: none;
}

.matchup-state {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.base-diamond {
  position: relative;
  width: 54px;
  height: 32px;
}

.base-diamond .base {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: 0;
  border: 2px solid #cbd1d5;
  background: transparent;
  transform: rotate(45deg);
}

.base.occupied {
  background: #f1b434;
  border-color: #f1b434;
  box-shadow: 0 0 8px rgba(241, 180, 52, 0.42);
}

.base.second {
  top: 0;
  left: 21px;
}

.base.third {
  top: 14px;
  left: 7px;
}

.base.first {
  top: 14px;
  right: 7px;
}

.matchup-state > strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.out-lights {
  display: flex;
  gap: 4px;
}

.out-lights span {
  width: 9px;
  height: 9px;
  margin: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.out-lights span.active {
  background: #d7dde1;
}

.scoring-plays-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-right: 0;
}

.scoring-play {
  min-width: 0;
  border-left: 4px solid var(--scoring-team-color, var(--team-opponent));
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(118px, 0.18fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 12px;
  background: #151e25;
  border-radius: 6px;
}

.scoring-play-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scoring-play-identity img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.28));
}

.scoring-play-identity > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.scoring-play-inning,
.scoring-play-probability {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.scoring-play-inning {
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
}

.scoring-play-team {
  color: color-mix(in srgb, var(--scoring-team-color) 76%, #fff);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.scoring-play-metrics {
  width: 10rem;
  min-width: 0;
  max-width: 100%;
  border-radius: 6px;
  background: color-mix(in srgb, var(--scoring-team-color) 14%, var(--card-bg));
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 10px;
  text-align: center;
}

.scoring-play-scoreline {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.scoring-play-scoreline b {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.scoring-play-scoreline strong {
  color: #f7f8ff;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.scoring-play-scoreline i {
  color: var(--muted);
  font-style: normal;
}

.scoring-play-probability {
  color: #9ac7ff;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.scoring-play p,
.scoring-play-empty {
  margin: 0;
  color: var(--ink);
}

.scoring-play p {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.game-notes-groups {
  display: grid;
  gap: 12px;
}

.game-notes-groups section {
  display: grid;
  gap: 3px;
}

.game-notes-groups h4,
.game-notes-groups p {
  margin: 0;
  font-size: var(--text-normal);
}

.game-notes-groups h4 {
  margin-bottom: 2px;
  color: var(--yankees-silver);
  font-weight: 800;
}

.game-notes-groups p {
  color: var(--muted);
  line-height: 1.45;
}

.game-notes-groups p strong {
  color: var(--ink);
}

.game-player-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
  margin-top: 14px;
}

.game-player-stats:empty {
  display: none;
}

.game-player-team-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  overflow: hidden;
}

.game-player-team-button {
  min-height: 38px;
  border: 0;
  color: var(--ink);
  background: var(--card-bg-strong);
  padding: 0 16px;
  font-size: var(--text-small);
  font-weight: 800;
}

.game-player-team-button + .game-player-team-button {
  border-left: 1px solid var(--line);
}

.game-player-team-button:hover,
.game-player-team-button:focus {
  color: #fff;
  background: rgba(196, 206, 211, 0.12);
}

.comparison-details-header .game-player-team-switcher .game-player-team-button.active {
  border-color: var(--control-active-border);
  color: var(--team-toggle-text, var(--control-active-ink)) !important;
  background: var(--team-toggle-color, var(--control-active-bg)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
}

.game-player-column {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  margin-top: 10px;
}

.comparison-details-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.comparison-details-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-normal);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-details-header .game-player-team-switcher {
  margin-left: auto;
}

.comparison-details {
  margin-top: 18px;
}

.comparison-details section {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(196, 206, 211, 0.12);
  border-radius: 7px;
  background: rgba(6, 12, 17, 0.28);
  align-content: start;
  overflow-wrap: anywhere;
}

.comparison-details :is(.game-notes-group-batting, .game-notes-group-baserunning, .game-notes-group-pitching) {
  padding-left: 0;
  border-left: 0;
}

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

.recap-grid-heading {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
  padding: 12px 16px;
}

.recap-grid-heading h2 {
  margin: 0;
  color: #f4f7ff;
  font-size: var(--text-normal);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recap-grid-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--text-small);
}

.game-player-column h3 {
  margin: 0;
  border-bottom: 1px solid rgba(96, 126, 166, 0.36);
  color: #f4f7ff;
  padding: 14px 16px;
  font-size: var(--text-normal);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-player-table-scroll {
  overflow-x: auto;
}

.game-player-mobile-list {
  display: none;
}

.game-player-table {
  width: 100%;
  min-width: 540px;
  table-layout: fixed;
  border-collapse: collapse;
}

.game-player-table th,
.game-player-table td {
  border-bottom: 1px solid rgba(196, 206, 212, 0.1);
  padding: 9px 5px;
  color: #dfe4f4;
  font-size: var(--text-small);
  text-align: center;
  white-space: nowrap;
}

.game-player-table thead th {
  color: var(--muted);
  background: rgba(2, 4, 16, 0.5);
  font-weight: 800;
}

.game-player-table th:first-child {
  width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.game-player-table tbody th {
  position: relative;
  color: #fff;
  font-size: var(--text-normal);
  font-weight: 800;
}

.game-player-table tbody tr.is-substitute th:first-child {
  padding-left: 28px;
}

.game-player-table tbody tr.is-substitute th:first-child::before {
  content: "↳";
  position: absolute;
  left: 10px;
  color: var(--muted);
  font-weight: 700;
}

.game-player-table tbody td {
  font-size: var(--stat-number-size);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.game-player-table tbody tr:last-child th,
.game-player-table tbody tr:last-child td {
  border-bottom: 0;
}

.game-player-table a {
  color: inherit;
  text-decoration: none;
}

.game-player-table a:hover,
.game-player-table a:focus {
  color: #fff;
}

.game-player-table small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

.game-player-empty,
.game-player-unavailable p {
  margin: 0;
  color: var(--muted);
  padding: 18px 16px;
}

.game-player-unavailable {
  grid-column: 1 / -1;
}

.recap-loading {
  color: var(--muted);
}

.recap-section {
  padding-top: 18px;
}

.recap-section:has(.recap-grid:empty) {
  display: none;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
}

.recap-column {
  min-width: 0;
  min-height: 600px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 18px 18px 22px;
}

.recap-column h3 {
  margin: 0;
  color: #f4f7ff;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.36);
}

.recap-column > .comparison-list {
  margin-top: 18px;
}

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

.comparison-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.comparison-legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.comparison-team {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comparison-team i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.comparison-team.yankees i,
.comparison-fill.yankees {
  background: var(--comparison-yankees-color, var(--team-yankees));
}

.comparison-team.opponent i,
.comparison-fill.opponent {
  background: var(--comparison-opponent-color, var(--team-opponent));
}

.comparison-stat {
  display: grid;
  gap: 5px;
  padding: 8px 0;
}

.comparison-stat-label {
  color: rgba(196, 206, 212, 0.88);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.comparison-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.25rem minmax(0, 1fr);
  align-items: center;
}

.comparison-track {
  position: relative;
  min-width: 0;
  height: 26px;
  overflow: hidden;
  background: rgba(196, 206, 212, 0.10);
}

.comparison-track.yankees {
  border-radius: 999px 0 0 999px;
  text-align: right;
}

.comparison-track.opponent {
  border-radius: 0 999px 999px 0;
  text-align: left;
}

.comparison-fill {
  position: absolute;
  top: 0;
  height: 100%;
}

.comparison-track.has-value .comparison-fill {
  min-width: min(32px, 100%);
}

.comparison-fill.yankees {
  transform-origin: right center;
  right: 0;
  border-radius: 999px 0 0 999px;
}

.comparison-fill.opponent {
  transform-origin: left center;
  left: 0;
  border-radius: 0 999px 999px 0;
}

.comparison-track strong {
  position: relative;
  display: inline-block;
  padding-inline: 6px;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 26px;
  text-shadow: none;
  white-space: nowrap;
}

.comparison-track.yankees.has-value strong {
  color: var(--comparison-yankees-text, #fff);
}

.comparison-track.opponent.has-value strong {
  color: var(--comparison-opponent-text, #fff);
}

.metrics-column .comparison-list {
  display: block;
}

.metric-feature-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-feature {
  display: grid;
  gap: 8px;
  padding: 18px 0;
}

.metrics-column .metric-feature:first-child {
  padding-top: 0;
}

.metric-feature strong {
  color: var(--yankees-silver);
  font-weight: 800;
  line-height: 1;
}

.metric-feature strong small {
  color: rgba(196, 206, 212, 0.78);
  font-weight: 800;
}

.metric-feature em {
  color: rgba(196, 206, 212, 0.78);
  font-size: var(--text-small);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-note-feature p {
  margin: 0;
  color: var(--yankees-silver);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.45;
}

.game-note-lines {
  display: grid;
  gap: 5px;
}

.game-note-lines p strong {
  color: #fff;
  line-height: inherit;
}

.game-note-lines .challenge-success {
  color: #9af0c8;
}

.game-note-lines .challenge-unsuccessful {
  color: #ffbec4;
}

.recap-error {
  min-height: 220px;
  grid-column: 1 / -1;
}

/* Compact tables fit side by side once each has at least 540px. */
@media (max-width: 1199.98px) {
  .game-player-stats {
    grid-template-columns: 1fr;
  }

  .recap-button-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .last-game-card {
    grid-template-columns: 1fr;
  }

  .game-linescore-box {
    border-right: 0;
    border-bottom: 1px solid rgba(96, 126, 166, 0.36);
  }

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

  .recap-column {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .win-probability-chart-scroll {
    display: none;
  }

  .win-probability-mobile-summary {
    display: grid;
    gap: 12px;
    padding: 10px 16px 14px;
  }

  .win-probability-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .win-probability-mobile-metrics > span {
    min-width: 0;
    border-radius: 6px;
    background: #172129;
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 66px;
    padding: 8px;
    text-align: center;
  }

  .win-probability-mobile-metrics small,
  .win-probability-mobile-metrics em {
    color: var(--muted);
    font-size: 0.64rem;
    font-style: normal;
    line-height: 1.2;
  }

  .win-probability-mobile-metrics strong {
    color: #9ac7ff;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
  }

  .win-probability-mobile-events {
    display: grid;
    gap: 5px;
  }

  .win-probability-mobile-events h4 {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .win-probability-mobile-events p {
    margin: 0;
    border-radius: 5px;
    background: #141d24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
  }

  .win-probability-mobile-events p span {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--muted);
    font-size: var(--text-small);
  }

  .win-probability-mobile-events p strong {
    color: var(--ink);
    white-space: nowrap;
  }

  .win-probability-mobile-events p b {
    color: #9ac7ff;
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .scoring-play {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 11px 12px;
  }

  .scoring-play p {
    grid-column: 1 / -1;
  }

  .scoring-play-metrics {
    grid-column: 2;
    grid-row: 1;
  }

  .recent-games-grid {
    grid-template-columns: 1fr;
  }

  .last-game-card {
    grid-template-columns: 1fr;
  }

  .game-linescore-box {
    border-right: 0;
    border-bottom: 1px solid rgba(96, 126, 166, 0.36);
  }

  .game-decisions {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .game-decisions p {
    white-space: normal;
  }

  .pregame-scoreboard-lower {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .pregame-details {
    border-right: 0;
    border-bottom: 0;
    padding: 0;
  }

  .game-scoreboard-lower .game-decisions.probable-pitchers-slot {
    padding: 0;
  }

  .pregame-lineups-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pregame-bullpen-groups {
    grid-template-columns: 1fr;
  }

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

  .comparison-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 575.98px) {
  .matchup-predictor-chart {
    grid-template-columns: 52px 132px 52px;
    gap: 10px;
  }

  .matchup-predictor-ring {
    width: 132px;
    height: 132px;
  }

  .matchup-predictor-ring > span {
    inset: 16px;
    padding: 12px;
  }

  .pregame-lineups {
    padding: 18px 0;
  }

  .pregame-lineups-heading {
    display: grid;
    gap: 3px;
  }

  .pregame-bullpen {
    padding: 18px 0;
  }

  .pregame-bullpen-heading {
    align-items: flex-start;
    display: grid;
    gap: 9px;
  }

  .bullpen-pitcher-grid {
    grid-template-columns: 1fr;
  }

  .bullpen-pitcher {
    grid-template-columns: 42px minmax(100px, 0.8fr) minmax(70px, 1fr) 26px;
    gap: 8px;
    padding-inline: 9px;
  }

  .bullpen-pitcher > img {
    width: 42px;
    height: 42px;
  }

  .pregame-lineup-player {
    grid-template-columns: 20px 42px minmax(0, 1fr) 32px;
    gap: 7px;
    padding-inline: 10px;
  }

  .pregame-lineup-player > img {
    width: 42px;
    height: 42px;
  }

  .game-decisions.live-matchup-slot {
    padding: 14px 12px 16px;
  }

  .live-matchup-slot .current-matchup-grid {
    height: auto;
  }

  .recap-button-row {
    grid-template-columns: 1fr;
  }

  .recap-selector-button {
    width: 100%;
    justify-content: stretch;
    text-align: left;
  }

  .recent-game-button {
    min-height: 178px;
    gap: 12px;
    padding: 16px 12px;
  }

  .last-game-card {
    min-height: 0;
  }

  .recent-game-matchup {
    width: min(100%, 210px);
    grid-template-columns: 38px minmax(44px, 1fr) 14px minmax(44px, 1fr) 38px;
    gap: 8px;
  }

  .recent-game-matchup img {
    width: 38px;
    height: 38px;
  }

  .recap-column {
    padding: 16px;
  }

}

@media (max-width: 899.98px) {
  .last-game-card {
    --scoreboard-card-padding: var(--home-content-inset);
    padding: 14px;
  }

  .game-scoreboard-top {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    gap: 8px;
    margin-inline: calc(var(--scoreboard-card-padding) * -1);
    padding-inline: 14px;
  }

  .game-scoreboard-top > .scoreboard-score {
    display: block;
    font-size: 1.5rem;
  }

  .scoreboard-mobile-score {
    display: none;
  }

  .scoreboard-team.away {
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: left;
  }

  .scoreboard-team.home {
    justify-content: flex-end;
    text-align: right;
  }

  .scoreboard-team-copy {
    flex: 0 1 auto;
  }

  .scoreboard-state {
    font-size: var(--text-normal);
  }

  .game-scoreboard-lower {
    grid-template-columns: 1fr;
  }

  .game-scoreboard-lower .game-linescore-box {
    border-right: 0;
    border-bottom: 1px solid rgba(196, 206, 211, 0.18);
    padding: 14px 0;
  }

  .game-scoreboard-lower .game-decisions {
    padding: 14px 0 0;
  }

  .game-scoreboard-lower .game-decisions.decision-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .game-scoreboard-lower .game-decisions.decision-cards::before {
    display: none;
  }

  .decision-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 6px;
    padding: 8px 6px;
  }

  .decision-player-portrait {
    width: 38px;
    height: 38px;
  }

  .decision-label {
    right: 5px;
    font-size: clamp(1.2rem, 5.5vw, 1.85rem);
  }

  .decision-label.potg-label {
    font-size: clamp(0.825rem, 3.75vw, 1.35rem);
  }

  .decision-player-copy strong {
    font-size: var(--text-small);
  }

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

}

@media (min-width: 900px) and (max-width: 1199.98px) {
  .game-scoreboard-lower .game-linescore-box {
    border-right: 0;
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .game-player-team-switcher {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoring-plays-panel {
    padding: 12px;
  }

  .scoring-plays-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .current-matchup-grid {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 10px;
  }

  .matchup-player,
  .matchup-player.batter {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .matchup-player img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .matchup-player-copy,
  .matchup-player.batter .matchup-player-copy {
    grid-template-columns: 1fr;
    justify-content: stretch;
    text-align: center;
  }

  .matchup-player-copy span {
    display: none;
  }

  .matchup-player-copy small {
    overflow-wrap: anywhere;
  }

  .linescore-scroll {
    overflow-x: visible;
  }

  .linescore-table {
    min-width: 0;
    table-layout: fixed;
  }

  .linescore-table th,
  .linescore-table td {
    min-width: 0;
    padding: 5px 1px;
    font-size: 0.62rem;
  }

  .linescore-table tbody th {
    width: 58px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .game-player-table-scroll {
    display: none;
  }

  .game-player-mobile-list {
    display: grid;
    padding: 0 10px;
  }

  .game-player-mobile-row {
    border-bottom: 1px solid rgba(196, 206, 212, 0.12);
  }

  .game-player-mobile-row:last-child {
    border-bottom: 0;
  }

  .game-player-mobile-row summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, minmax(32px, 42px));
    align-items: center;
    gap: 4px;
    min-height: 54px;
    padding: 7px 0;
    cursor: pointer;
    list-style: none;
  }

  .game-player-mobile-row summary::-webkit-details-marker {
    display: none;
  }

  .mobile-player-identity {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding-right: 4px;
  }

  .mobile-player-identity strong {
    overflow: hidden;
    color: #fff;
    font-size: var(--text-normal);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-player-identity small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
  }

  .game-player-mobile-row.is-substitute .mobile-player-identity {
    padding-left: 14px;
  }

  .game-player-mobile-row.is-substitute .mobile-player-identity::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: var(--muted);
  }

  .mobile-expand-icon::before {
    content: "+";
    color: var(--muted);
    font-weight: 800;
  }

  .game-player-mobile-row[open] .mobile-expand-icon::before {
    content: "−";
  }

  .mobile-game-stat {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 1px;
    font-variant-numeric: tabular-nums;
  }

  .mobile-game-stat small {
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 800;
  }

  .mobile-game-stat strong {
    color: var(--ink);
    font-size: var(--stat-number-size);
    font-weight: 800;
  }

  .mobile-game-stat-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 6px;
    margin: 0 0 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    padding: 10px;
  }

  .mobile-player-profile-link {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: var(--text-small);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
  }

  .mobile-player-profile-link:hover,
  .mobile-player-profile-link:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .scoreboard-team {
    gap: 7px;
  }

  .scoreboard-team img {
    width: 40px;
    height: 40px;
  }

  .scoreboard-team-copy strong {
    font-size: var(--text-small);
  }

  .scoreboard-team-copy small:last-child {
    display: none;
  }

  .scoreboard-mobile-score {
    font-size: 1.25rem;
  }
}
.breaking-news {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 14px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--card-bg-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
}

.page-intro-card + .breaking-news {
  margin-top: 0;
}

.breaking-news::before {
  content: none;
}

.breaking-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.breaking-news-header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.breaking-news-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
}

.breaking-news-card,
.breaking-news-alert {
  --alert-color: #c4ced4;
}

.breaking-news-card strong,
.breaking-news-alert strong {
  color: var(--alert-color, #c4ced4);
  font-size: var(--text-small);
  font-weight: 800;
  letter-spacing: normal;
}

.breaking-news-card.recalled {
  --alert-color: #4db38a;
}

.breaking-news-card.activated {
  --alert-color: #58a6ff;
}

.breaking-news-card.il {
  --alert-color: #d85c6a;
}

.breaking-news-card.optioned {
  --alert-color: #f1b434;
}

.breaking-news-alert.game {
  --alert-color: #ff9b7c;
}

.breaking-news-alert.weather {
  --alert-color: #9cc7ff;
}

.breaking-news-items {
  display: grid;
  gap: 14px;
}

.breaking-news-card time,
.breaking-news-alert time {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 600;
  white-space: nowrap;
}

.breaking-news-alerts {
  display: grid;
  gap: 8px;
}

.breaking-news-alert {
  border-left: 3px solid var(--alert-color);
  border-radius: 6px;
  background: color-mix(in srgb, var(--alert-color) 8%, transparent);
  padding: 14px 16px;
}

.breaking-news-alert-meta,
.breaking-news-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.breaking-news-alert p {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
}

.breaking-news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.breaking-news-card-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.breaking-news-card-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.breaking-news-card {
  position: relative;
  min-width: 0;
  min-height: 108px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.breaking-news-portrait {
  position: relative;
  align-self: stretch;
  min-height: 104px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: none;
}

.breaking-news-portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.breaking-news-portrait-fallback {
  color: rgba(196, 206, 211, 0.55);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.breaking-news-card-body {
  min-width: 0;
  padding: 14px;
}

.breaking-news-card p {
  margin: 0;
  margin-top: 8px;
  color: var(--yankees-silver);
  line-height: 1.4;
}

@media (max-width: 1050px) {
  .breaking-news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .breaking-news {
    padding-block: 18px;
  }

  .breaking-news-card-grid,
  .breaking-news-card-grid:has(> :only-child),
  .breaking-news-card-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }

  .breaking-news-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 108px;
  }

  .breaking-news-portrait {
    min-height: 104px;
  }

  .breaking-news-alert {
    padding: 12px;
  }
}

.breaking-news-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(241, 180, 52, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--yankees-silver);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  font-size: 1.35rem;
  line-height: 1;
}

.breaking-news-close:hover,
.breaking-news-close:focus-visible {
  border-color: #f1b434;
  color: #fff;
  background: rgba(241, 180, 52, 0.14);
}

#team-comparison-header {
  margin-top: 14px;
}

#team-comparison-header:empty,
.game-details-container:not(:has(.game-player-column, .recap-column)) {
  display: none;
}

.game-details-container {
  min-width: 0;
  margin-top: 14px;
  padding: 18px var(--home-content-inset);
  border: 0;
  border-radius: 10px;
  background: rgba(16, 25, 32, 0.6);
}

.game-details-container > .game-player-stats,
.game-details-container .game-player-column {
  margin-top: 0;
}

.game-details-container :is(.game-player-column, .recap-column) {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 24px;
}

.game-details-container .game-player-column > h3 {
  border-bottom: 0;
  padding: 0 0 14px;
}

/* Keep section content on one shared inset, including narrower layouts. */
.selected-recap-section > .page-intro-card,
.breaking-news,
.recap-grid-heading,
.recap-selector-section,
.last-game-card,
.game-scoreboard-top,
.scoring-plays-panel,
.win-probability-mobile-summary {
  padding-inline: var(--home-content-inset);
}

.linescore-table tr > :first-child {
  padding-left: 0;
}

.game-details-container .game-player-table tr > :first-child {
  padding-left: 0;
}

.game-details-container .game-player-table tbody tr.is-substitute th:first-child {
  padding-left: 20px;
}

.game-details-container .game-player-table tbody tr.is-substitute th:first-child::before {
  left: 2px;
}

.linescore-table tr > :last-child {
  padding-right: 0;
}

.game-details-container .game-player-table tr > :last-child {
  padding-right: 0;
}

.game-details-container .game-player-table :is(th, td) {
  border-bottom: 0;
}

.game-details-container .game-player-table thead th {
  background: rgba(255, 255, 255, 0.025);
}

.game-details-container .game-player-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.game-details-container .game-player-mobile-list {
  padding-inline: 0;
}

.game-details-container .game-player-mobile-row {
  border-bottom: 0;
}

.game-details-container .game-player-mobile-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

/* Consistent type scale for comparison bars, details, and game notes. */
#recap-grid {
  --recap-text-size: 0.8125rem;
  --recap-compact-size: 0.75rem;
}

#recap-grid :is(h3, h4, .comparison-team, .metric-feature-label) {
  font-size: var(--recap-text-size);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: none;
}

#recap-grid .game-notes-groups h4 {
  margin-bottom: 5px;
}

#recap-grid :is(.game-notes-groups p, .game-note-feature p, .metric-feature em, .metric-feature > strong, .metric-feature strong small) {
  font-size: var(--recap-text-size);
  line-height: 1.45;
}

#recap-grid :is(.game-notes-groups p, .game-note-feature p, .metric-feature em) {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

#recap-grid :is(.game-notes-groups p strong, .game-note-feature p strong, .metric-feature > strong) {
  font-weight: 700;
}

#recap-grid :is(.comparison-stat-label, .comparison-track strong) {
  font-size: var(--recap-compact-size);
  font-weight: 700;
  letter-spacing: normal;
}

#recap-grid .comparison-bars {
  grid-template-columns: minmax(0, 1fr) 6.75rem minmax(0, 1fr);
}

/* Color links related information without changing the borderless layout. */
.game-details-container .batting-column {
  --section-heading-color: #9fdac5;
}

.game-details-container .pitching-column {
  --section-heading-color: #a8caff;
}

.game-details-container .metrics-column {
  --section-heading-color: #e4c58e;
}

.game-details-container .game-player-column > h3,
#recap-grid .recap-column > h3 {
  color: var(--section-heading-color, var(--ink)) !important;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

#recap-grid .game-notes-groups h4 {
  color: var(--section-heading-color, var(--ink));
  text-transform: none;
  letter-spacing: normal;
}

#recap-grid .game-notes-group-baserunning h4 {
  color: #c5b5ec;
}

#recap-grid .game-notes-group-fielding h4 {
  color: #dfbaaa;
}

#recap-grid .metric-feature-label {
  color: var(--section-heading-color);
  text-transform: none;
  letter-spacing: normal;
}

#recap-grid .metric-feature > strong {
  color: #edf1f5;
}

#recap-grid .metric-feature em {
  color: #a2afb9;
}

@media (prefers-reduced-motion: no-preference) {
  .chart-awaiting-reveal .win-probability-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }

  .chart-awaiting-reveal .win-probability-area {
    opacity: 0;
  }

  .comparison-awaiting-reveal .comparison-fill {
    transform: scaleX(0);
  }
}
