:root {
  color-scheme: dark;
  --red: #d71920;
  --red-deep: #8f1018;
  --navy: #07131f;
  --navy-2: #0c1f33;
  --paper: #f7f7f5;
  --muted: #aab5bf;
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(8, 21, 34, 0.82);
  --card-strong: rgba(13, 32, 52, 0.95);
  --green: #46d38a;
  --amber: #ffcf66;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 8% 6%, rgba(215, 25, 32, 0.68), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12), transparent 24rem),
    linear-gradient(135deg, #050b12 0%, #07131f 48%, #1d0810 100%);
}

body {
  min-height: 100vh;
  margin: 0;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 43%, rgba(255, 255, 255, 0.055) 43% 45%, transparent 45%),
    linear-gradient(110deg, transparent 0 54%, rgba(215, 25, 32, 0.28) 54% 56%, transparent 56%);
  opacity: 0.9;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 900;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  min-height: 420px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(30px, 7vw, 76px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffb7b9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.7rem, 9vw, 8.6rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.86;
  text-transform: uppercase;
}

.intro {
  max-width: 690px;
  color: #dce3ea;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.6;
}

.status,
.fine-print,
.section-note {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.hero-score div {
  min-height: 110px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.hero-score .wide {
  grid-column: span 2;
}

.hero-score span,
.chance span,
.game-round,
.game-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-score strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.panel {
  margin-top: 22px;
  padding: clamp(20px, 4vw, 34px);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-head.compact {
  display: block;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #ffb7b9;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

th button {
  all: unset;
  cursor: pointer;
  color: #ffb7b9;
  font: inherit;
}

th button::after {
  content: " ↕";
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
}

th button.is-active::after {
  content: " ↓";
  color: white;
}

.is-swans td {
  background: linear-gradient(90deg, rgba(215, 25, 32, 0.32), rgba(255, 255, 255, 0.04));
  color: white;
  font-weight: 800;
}

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

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-strong);
}

.game-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.game-card p:last-child {
  grid-column: 1 / -1;
  margin: 0;
  color: #dce3ea;
  line-height: 1.55;
}

.game-card .game-explainer {
  color: var(--muted);
  font-size: 0.9rem;
}

.next-game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: 22px;
  align-items: stretch;
}

.next-game-card h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.next-game-card p {
  color: #dce3ea;
  line-height: 1.55;
}

.next-game-card .game-explainer {
  margin-bottom: 0;
  color: var(--muted);
}

.next-game-stats {
  display: grid;
  gap: 12px;
}

.next-game-stats .chance {
  display: grid;
  min-height: 142px;
  align-content: center;
}

.next-game-stats dl,
.glossary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.next-game-stats dl div,
.glossary-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.next-game-stats dt,
.glossary-list dt {
  margin-bottom: 4px;
  color: #ffb7b9;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-game-stats dd,
.glossary-list dd {
  margin: 0;
  color: #e6edf3;
  line-height: 1.45;
}

.season-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}

.season-chip strong {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.76rem;
}

.season-chip.win strong {
  background: rgba(70, 211, 138, 0.22);
  color: var(--green);
}

.season-chip.loss strong {
  background: rgba(215, 25, 32, 0.24);
  color: #ff9da2;
}

.mini-list {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.mini-list p {
  margin: 0;
  color: #dce3ea;
  line-height: 1.5;
}

.mini-player {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.mini-player img {
  width: 52px;
  height: 62px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.mini-player strong,
.mini-player small {
  display: block;
}

.mini-player small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.game-round,
.game-meta {
  margin-bottom: 6px;
}

.chance {
  align-self: start;
  min-width: 92px;
  padding: 12px;
  border-radius: 18px;
  text-align: center;
}

.chance strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.chance.strong {
  background: rgba(70, 211, 138, 0.18);
  color: var(--green);
}

.chance.lean {
  background: rgba(255, 207, 102, 0.16);
  color: var(--amber);
}

.chance.danger {
  background: rgba(215, 25, 32, 0.18);
  color: #ff8f94;
}

.chance.neutral {
  background: rgba(255, 255, 255, 0.08);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.recent-list,
.source-list,
.news-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li,
.source-list li,
.news-list li {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.recent-list span,
.source-list span {
  color: var(--muted);
  line-height: 1.5;
}

.stats-table td {
  white-space: nowrap;
}

.table-player {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  outline: none;
}

.table-player[data-position]::after {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(215, 25, 32, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  color: white;
  content: attr(data-position);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.table-player[data-position]::before {
  position: absolute;
  left: 13px;
  bottom: calc(100% + 3px);
  z-index: 31;
  width: 9px;
  height: 9px;
  background: rgba(215, 25, 32, 0.94);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(45deg) translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.table-player[data-position]:hover::after,
.table-player[data-position]:focus-visible::after,
.table-player[data-position]:hover::before,
.table-player[data-position]:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.table-player[data-position]:hover::before,
.table-player[data-position]:focus-visible::before {
  transform: rotate(45deg) translateY(0);
}

.table-player-thumb {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
  object-position: bottom center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.045);
}

.table-player-thumb--empty {
  opacity: 0.38;
}

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

.person-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-strong);
}

.person-card img {
  display: block;
  width: 112px;
  height: 132px;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.04);
}

.coach-card img {
  object-fit: cover;
}

.person-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.person-card p {
  margin-bottom: 0;
  color: #dce3ea;
  line-height: 1.45;
}

.person-number,
.person-meta {
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.person-number {
  margin-bottom: 5px !important;
  font-weight: 800;
}

a {
  color: white;
  font-weight: 800;
}

@media (max-width: 920px) {
  .topbar,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .hero,
  .split,
  .games-grid,
  .feature-grid,
  .next-game-card,
  .person-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 18px;
  }

  .hero,
  .panel {
    border-radius: 22px;
  }

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

  .hero-score .wide {
    grid-column: auto;
  }

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

  .chance {
    width: 100%;
  }

  .person-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 142px;
    padding: 13px;
  }

  .person-card img {
    width: 86px;
    height: 108px;
  }
}
