/* Game Center: full-color team marks, a split-color seam, and an isolated score. */
.game-dialog .game-matchup {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 32px 22px;
  background: linear-gradient(180deg, #10121440, #101214b3 68%, #101214ed),
    linear-gradient(135deg, #ffffff0d, #00000033), var(--home-team-color, #34383c);
}
.game-matchup::before,
.game-matchup::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.game-matchup::before {
  background: linear-gradient(180deg, #10121440, #101214b3 68%, #101214ed),
    linear-gradient(135deg, #ffffff14, #0000001a), var(--away-team-color, #34383c);
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}
.game-matchup::after {
  background: linear-gradient(180deg, #a5b8cd40, #a5b8cd26 70%, transparent);
  clip-path: polygon(58% 0, calc(58% + 1px) 0, calc(42% + 1px) 100%, 42% 100%);
}
.game-matchup > .badge { position: relative; z-index: 3; }
.game-matchup .matchup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 20%) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin: 0 0 20px;
}
.game-matchup .game-hero-team {
  width: auto;
  min-width: 0;
  min-height: 224px;
  align-self: stretch;
  justify-content: flex-end;
  position: relative;
}
.game-matchup .game-hero-team .team-logo {
  position: absolute;
  top: -4px;
  width: min(110%, 284px);
  height: 189px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  filter: none;
  pointer-events: none;
}
.game-matchup .game-hero-away .team-logo { right: -12px; }
.game-matchup .game-hero-home .team-logo { left: -12px; }
.game-matchup .game-hero-team .team-logo-image {
  filter: drop-shadow(0 8px 12px #0006);
}
.game-matchup .game-team-identity {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
  text-shadow: 0 2px 14px #000b;
}
.game-matchup .game-hero-home .game-team-identity { text-align: right; }
.game-dialog .game-team-identity h3 {
  max-width: none;
  margin: 0 0 6px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.7px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.game-matchup .game-team-meta { display: flex; flex-wrap: wrap; gap: 3px 7px; }
.game-matchup .game-hero-home .game-team-meta { justify-content: flex-end; }
.game-matchup .game-team-meta span { color: #d7dce1; font-size: 12px; line-height: 1.5; }
.game-matchup .game-team-record { font-variant-numeric: tabular-nums; white-space: nowrap; }
.game-matchup .game-team-city + .game-team-record::before { content: "·"; margin-right: 7px; color: #a5b0ba; }
.game-matchup .hero-at {
  position: relative;
  z-index: 3;
  min-width: 0;
  width: 100%;
  margin-top: 58px;
  padding: 16px 10px 13px;
  border: 1px solid #596a7b70;
  border-radius: 10px;
  background: #0b111af2;
  box-shadow: 0 9px 28px #0004;
  gap: 9px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.game-matchup .hero-at.game-score-wide { font-size: clamp(27px, 3.5vw, 36px); }
.game-matchup .hero-at .time {
  max-width: 100%;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  letter-spacing: 0;
}
.game-matchup > p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #c3cbd3;
}
.game-matchup .game-hero-team .logo-fallback { font-size: 48px; font-weight: 850; color: #eef1f5; }
@media (max-width: 600px) {
  .game-dialog .game-matchup { padding: 22px 17px 20px; }
  .game-matchup .matchup-hero { grid-template-columns: minmax(0, 1fr) 106px minmax(0, 1fr); gap: 8px; margin: 0 0 20px; }
  .game-matchup .game-hero-team { min-height: 210px; }
  .game-matchup .game-hero-team .team-logo { top: 14px; width: 115%; max-width: 180px; height: 132px; }
  .game-matchup .game-hero-away .team-logo { right: -5px; }
  .game-matchup .game-hero-home .team-logo { left: -5px; }
  .game-matchup .game-hero-team .team-logo-image { filter: drop-shadow(0 6px 9px #0006); }
  .game-matchup .game-team-identity { width: calc(100% + 33px); align-self: flex-start; }
  .game-matchup .game-hero-home .game-team-identity { align-self: flex-end; }
  .game-dialog .game-team-identity h3 { font-size: 18px; letter-spacing: -.4px; line-height: 1.2; }
  .game-matchup .game-team-meta { flex-direction: column; gap: 2px; }
  .game-matchup .game-team-meta span { font-size: 11px; line-height: 1.45; }
  .game-matchup .game-team-city + .game-team-record::before { content: none; }
  .game-matchup .hero-at { margin-top: 49px; padding: 13px 6px 11px; font-size: 28px; letter-spacing: -1.3px; gap: 7px; border-radius: 8px; }
  .game-matchup .hero-at.game-score-wide { font-size: 24px; letter-spacing: -1px; }
  .game-matchup .hero-at .time { font-size: 10px; }
  .game-matchup > p { font-size: 10px; letter-spacing: .1px; }
  .game-matchup .game-hero-team .logo-fallback { font-size: 30px; }
}
@media (max-width: 350px) {
  .game-dialog .game-matchup { padding-left: 12px; padding-right: 12px; }
  .game-matchup .matchup-hero { grid-template-columns: minmax(0, 1fr) 98px minmax(0, 1fr); gap: 6px; }
  .game-dialog .game-team-identity h3 { font-size: 17px; }
  .game-matchup .hero-at { font-size: 25px; }
  .game-matchup .hero-at.game-score-wide { font-size: 22px; }
}
