/* Shared card presentation for the populated and deferred games carousel. */
.games-carousel--unified {
  --carousel-tile-min: 300px;
  --carousel-mobile-slots: 2;
  --carousel-card-width-scale: 0.75;
  --carousel-card-height: 104px;
  --carousel-card-border: #dce2e9;
  --carousel-card-ink: #142238;
  --carousel-card-muted: #667386;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.games-carousel--unified .scorecards-container {
  --carousel-gap: 12px;
  --carousel-tile-min: 300px;
  --carousel-tile-width: calc(var(--carousel-tile-min) * var(--carousel-card-width-scale));
  gap: var(--carousel-gap);
  width: 100%;
  margin: 0;
  padding: 4px 0 6px;
  align-items: stretch;
  scroll-padding-inline: 0;
}

.games-carousel--unified .score-tile.score-tile--unified {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(18px, auto) minmax(0, 1fr) 20px;
  gap: 2px;
  flex: 0 0 var(--carousel-tile-width, var(--carousel-tile-min));
  width: var(--carousel-tile-width, var(--carousel-tile-min));
  min-width: var(--carousel-tile-width, var(--carousel-tile-min));
  max-width: var(--carousel-tile-width, var(--carousel-tile-min));
  height: var(--carousel-card-height);
  min-height: var(--carousel-card-height);
  padding: 6px 10px 0;
  overflow: hidden;
  border: 1px solid var(--carousel-card-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 5px rgb(21 36 57 / 5%);
  color: var(--carousel-card-ink);
  text-decoration: none;
  scroll-snap-align: start;
  transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.games-carousel--unified .score-tile--unified::before,
.games-carousel--unified .score-tile--unified::after,
.games-carousel--unified .score-header.fs-card__header::before,
.games-carousel--unified .score-header.fs-card__header::after {
  content: none;
  display: none;
}

.games-carousel--unified .score-tile.score-tile--unified:hover {
  border-color: #b8c6d7;
  background: #fff;
  box-shadow: 0 4px 12px rgb(21 36 57 / 9%);
  color: var(--carousel-card-ink);
  transform: none;
}

.games-carousel--unified .score-tile.score-tile--unified:focus-visible {
  outline: 2px solid #285c98;
  outline-offset: 2px;
  border-color: #285c98;
}

.games-carousel--unified .score-header.fs-card__header,
.games-carousel--unified .score-header.fs-card__header.is-live {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  line-height: 1.3;
}

.games-carousel--unified .fs-card__context {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 6px;
  min-width: 0;
  padding-top: 1px;
}

.games-carousel--unified .fs-card__round {
  min-width: 0;
  color: #36455b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: normal;
}

.games-carousel--unified .fs-card__date {
  color: var(--carousel-card-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.games-carousel--unified .fs-card__date::before {
  content: "·";
  margin-right: 4px;
  color: #98a1ad;
}

.games-carousel--unified .fs-card__state {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: none;
  text-align: right;
}

.games-carousel--unified .game-status.fs-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  margin: 0;
  padding: 2px 5px;
  border: 1px solid #e3e8ee;
  border-radius: 5px;
  background: #f1f4f7;
  color: #526073;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.games-carousel--unified .game-status.fs-card__badge--live {
  border-color: #c4263b;
  background: #c4263b;
  color: #fff;
}

.games-carousel--unified .game-status.fs-card__badge--complete {
  border-color: #344c69;
  background: #344c69;
  color: #fff;
}

.games-carousel--unified .game-status.fs-card__badge--terminal_pending {
  border-color: #dce1e7;
  background: #f2f3f5;
  color: #526073;
}

.games-carousel--unified .fs-card__badge .game-status-dot {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  animation: none;
}

.games-carousel--unified .fs-card__state .game-live-period,
.games-carousel--unified .fs-card__status-detail {
  display: block;
  max-width: 100%;
  padding: 0;
  color: #677486;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.games-carousel--unified .fs-card__matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.games-carousel--unified .fs-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  color: var(--carousel-card-ink);
  text-align: center;
}

.games-carousel--unified .score-tile--unified .fs-card__team .score-logo {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  object-fit: contain;
}

.games-carousel--unified .fs-card__team-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  max-width: 100%;
  min-height: 1.1em;
  max-height: 1.1em;
  overflow: hidden;
  color: var(--carousel-card-ink);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  white-space: nowrap;
  word-break: normal;
  text-decoration: none;
}

.games-carousel--unified a.fs-card__team-name:hover,
.games-carousel--unified a.fs-card__team-name:focus-visible {
  color: var(--carousel-card-ink);
  text-decoration: none;
}

.games-carousel--unified .fs-card__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding-bottom: 8px;
  text-align: center;
}

.games-carousel--unified .fs-card__points {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: #152b47;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.games-carousel--unified .fs-card__versus {
  color: #97a2b0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.games-carousel--unified .fs-card__score-divider {
  color: #9aa5b3;
  font-size: 18px;
  font-weight: 500;
}

.games-carousel--unified [data-carousel-match-state="complete"] .fs-card__points,
.games-carousel--unified [data-carousel-match-state="terminal_pending"] .fs-card__points {
  font-size: 19.2px;
}

.games-carousel--unified [data-carousel-match-state="complete"] .fs-card__score-divider,
.games-carousel--unified [data-carousel-match-state="terminal_pending"] .fs-card__score-divider {
  font-size: 14.4px;
}

.games-carousel--unified .fs-card__breakdown {
  color: var(--carousel-card-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.games-carousel--unified .fs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 20px;
  margin: 0 -10px;
  padding: 2px 10px;
  border-top: 1px solid #edf0f4;
  background: #f8f9fb;
  color: #657285;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

.games-carousel--unified .fs-card__venue,
.games-carousel--unified .fs-card__time {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.games-carousel--unified .fs-card__venue {
  flex: 1 1 auto;
}

.games-carousel--unified .fs-card__venue > span {
  min-width: 0;
  white-space: normal;
}

.games-carousel--unified .fs-card__time {
  flex: 0 0 auto;
  color: #46576c;
  font-weight: 600;
  white-space: nowrap;
}

.games-carousel--unified .fs-card__footer svg {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #8995a5;
}

.games-carousel--unified .score-tile.score-tile--skeleton,
.games-carousel--unified .score-tile.score-tile--skeleton:hover {
  cursor: default;
  pointer-events: none;
  border-color: var(--carousel-card-border);
  box-shadow: 0 2px 5px rgb(21 36 57 / 5%);
  transform: none;
}

.games-carousel--unified .score-tile--skeleton .fs-card__team .score-logo {
  border-radius: 50%;
  background-color: #e8edf2;
}

.games-carousel--unified .score-tile--skeleton .score-skeleton-line {
  max-width: 100%;
}

.games-carousel--unified .score-tile--skeleton .score-skeleton-line--round {
  width: 90px;
  height: 10px;
}

.games-carousel--unified .score-tile--skeleton .score-skeleton-line--status {
  width: 40px;
  height: 16px;
}

.games-carousel--unified .score-tile--skeleton .score-skeleton-line--team {
  width: 70px;
  height: 11px;
  margin-bottom: 0;
}

.games-carousel--unified .score-tile--skeleton .fs-card__context .score-skeleton-line--team {
  width: 90px;
  height: 10px;
  margin-bottom: 0;
}

.games-carousel--unified .score-tile--skeleton .fs-card__context .score-skeleton-line--team-short {
  width: 55px;
  height: 10px;
}

.games-carousel--unified .score-tile--skeleton .score-skeleton-line--score {
  width: 76px;
  height: 22px;
}

.games-carousel--unified .score-tile--skeleton .score-skeleton-line--meta {
  width: 120px;
  height: 10px;
  margin: 0;
}

@media (min-width: 640px) and (max-width: 820px) {
  .games-carousel--unified .scorecards-container {
    --carousel-tile-width: calc((100% - var(--carousel-gap)) / 2 * var(--carousel-card-width-scale));
  }

  .games-carousel--unified .fs-card__points {
    font-size: 24px;
  }
}

@media (max-width: 639px) {
  .games-carousel--unified {
    --carousel-mobile-slots: 1;
    --carousel-card-height: 102px;
  }

  .games-carousel--unified .scorecards-container {
    --carousel-tile-width: calc(100% * var(--carousel-card-width-scale));
    --carousel-gap: 10px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .games-carousel--unified .score-tile.score-tile--unified {
    transition: none;
  }

  .games-carousel--unified .score-tile.score-tile--skeleton .score-logo,
  .games-carousel--unified .score-tile.score-tile--skeleton .score-skeleton-line {
    animation: none;
  }

  .games-carousel--unified .scorecards-container {
    scroll-behavior: auto;
  }
}
