:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121820;
  --panel-2: #18212b;
  --panel-3: #202a36;
  --ink: #f5f8fb;
  --muted: #98a6b3;
  --line: #283441;
  --teal: #00ceb8;
  --teal-2: #0d8f83;
  --gold: #ffb84d;
  --red: #ff5f57;
  --blue: #4f8cff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% -10%, rgba(0, 206, 184, 0.2), transparent 28rem),
    radial-gradient(circle at 100% 0%, rgba(79, 140, 255, 0.16), transparent 24rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body[data-theme="tnf"] {
  background:
    radial-gradient(circle at 15% -10%, rgba(255, 138, 31, 0.26), transparent 28rem),
    radial-gradient(circle at 100% 0%, rgba(255, 191, 95, 0.16), transparent 24rem),
    var(--bg);
}

body[data-theme="sunday"] {
  --teal: #31d158;
  --teal-2: #16a34a;
  --blue: #7dd3fc;
}

body[data-theme="midweek"] {
  --bg: #090d13;
  --panel: #111923;
  --panel-2: #172330;
  --panel-3: #1e2d3c;
  --line: #2a3c4f;
  --teal: #00ceb8;
  --teal-2: #0aa79a;
  --blue: #34a8ff;
}

body[data-theme="midweekend"] {
  --bg: #090d13;
  --panel: #111923;
  --panel-2: #172330;
  --panel-3: #1e2d3c;
  --line: #2a3c4f;
  --teal: #00ceb8;
  --teal-2: #0aa79a;
  --blue: #34a8ff;
}

body[data-theme="tnf"] {
  --bg: #100b06;
  --panel: #17110c;
  --panel-2: #21160e;
  --panel-3: #2d1d12;
  --line: #4b321f;
  --teal: #ff8a1f;
  --teal-2: #d95f00;
  --blue: #ffbf5f;
}

body[data-theme="snf"] {
  --bg: #14070b;
  --panel: #1d0d12;
  --panel-2: #2a1118;
  --panel-3: #3a1721;
  --line: #5a2732;
  --teal: #ff4d6d;
  --teal-2: #be123c;
  --blue: #ff9f8f;
}

body[data-theme="mnf"] {
  --bg: #06130d;
  --panel: #0d1d14;
  --panel-2: #12291b;
  --panel-3: #193924;
  --line: #28543a;
  --teal: #32f58a;
  --teal-2: #16a34a;
  --blue: #9cffcb;
}

body[data-theme="thanksgiving"] {
  --teal: #ffb84d;
  --teal-2: #c26a1b;
  --blue: #ef4444;
}

body[data-theme="playoffs"] {
  --teal: #facc15;
  --teal-2: #ca8a04;
  --blue: #a78bfa;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem clamp(0.8rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #51ffe9);
  color: #06100f;
  font-weight: 1000;
  box-shadow: 0 0 0 3px rgba(0, 206, 184, 0.18);
}

.brand-mark.has-image {
  background: var(--panel-2);
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow: visible;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

nav a:hover,
.nav-archives summary:hover {
  border-color: var(--line);
  color: var(--ink);
}

.nav-divider {
  align-self: center;
  color: rgba(152, 166, 179, 0.6);
  font-weight: 900;
  padding: 0 0.1rem;
}

.nav-archives {
  position: relative;
  flex: 0 0 auto;
}

.nav-archives summary {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
  padding: 0.45rem 0.7rem;
}

.nav-archives summary::-webkit-details-marker {
  display: none;
}

.nav-archives summary::after {
  content: "▾";
  display: inline-block;
  font-size: 0.65rem;
  margin-left: 0.3rem;
  transform: translateY(-0.05rem);
}

.nav-archives[open] summary {
  border-color: var(--line);
  color: var(--ink);
}

.nav-archives div {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  display: grid;
  gap: 0.25rem;
  min-width: 6.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 24, 32, 0.98);
  box-shadow: var(--shadow);
  padding: 0.35rem;
}

.nav-archives div a {
  padding: 0.5rem 0.65rem;
}

main {
  width: min(1180px, calc(100% - 1.4rem));
  margin: 0 auto;
}

.newsbar {
  position: sticky;
  top: 3.75rem;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 32, 0.92);
  padding: 0.55rem clamp(0.8rem, 4vw, 2rem);
  backdrop-filter: blur(16px);
}

.newsbar span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--teal);
  color: #031211;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  padding: 0.33rem 0.48rem;
  text-transform: uppercase;
}

.ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.newsbar #news-ticker {
  display: flex;
  gap: 1.2rem;
  min-width: max-content;
  animation: ticker-scroll 36s linear infinite;
}

.newsbar strong,
.newsbar a {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: end;
  min-height: 520px;
  padding: clamp(2.6rem, 7vw, 5rem) 0 1.25rem;
}

body[data-theme="midweek"] .hero {
  min-height: 470px;
}

.archive-hero {
  grid-template-columns: 1fr;
  min-height: 360px;
}

.hero-main h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(3.75rem, 12vw, 8.5rem);
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-main p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 900;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: var(--teal);
  color: #031211;
}

.hero-team-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 900;
  padding: 0.35rem 0.45rem 0.35rem 0.9rem;
}

.hero-team-control {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.team-view-status {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-team-select span {
  white-space: nowrap;
}

.hero-team-select select {
  max-width: min(48vw, 16rem);
  min-height: 2rem;
  border: 0;
  background: rgba(0, 206, 184, 0.12);
  color: var(--teal);
  padding: 0.3rem 0.7rem;
}

.hero-card,
.panel,
.mobile-table-card,
.ticker,
.gameday-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(18, 24, 32, 0.9);
  box-shadow: var(--shadow);
}

body[data-theme="midweek"] .hero-card,
body[data-theme="midweek"] .mobile-table-card,
body[data-theme="midweek"] .matchup-focus-card,
body[data-theme="midweek"] .things-watch-panel {
  box-shadow: 0 18px 60px rgba(0, 206, 184, 0.08);
}

body[data-theme="snf"] {
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 77, 109, 0.3), transparent 30rem),
    radial-gradient(circle at 100% 8%, rgba(255, 159, 143, 0.18), transparent 26rem),
    linear-gradient(180deg, rgba(20, 7, 11, 0.96), var(--bg));
}

body[data-theme="snf"] .hero {
  min-height: 560px;
}

body[data-theme="snf"] .hero-main h1 {
  text-shadow: 0 0 34px rgba(255, 77, 109, 0.22);
}

body[data-theme="snf"] .hero-card,
body[data-theme="snf"] .mobile-table-card,
body[data-theme="snf"] .matchup-focus-card,
body[data-theme="snf"] .things-watch-panel,
body[data-theme="snf"] .matchup-card {
  box-shadow:
    0 18px 70px rgba(255, 77, 109, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-theme="mnf"] {
  background:
    radial-gradient(circle at 18% -12%, rgba(50, 245, 138, 0.26), transparent 30rem),
    radial-gradient(circle at 100% 8%, rgba(156, 255, 203, 0.16), transparent 26rem),
    linear-gradient(180deg, rgba(6, 19, 13, 0.96), var(--bg));
}

body[data-theme="mnf"] .hero {
  min-height: 540px;
}

body[data-theme="mnf"] .hero-main h1 {
  text-shadow: 0 0 34px rgba(50, 245, 138, 0.22);
}

body[data-theme="mnf"] .hero-card,
body[data-theme="mnf"] .mobile-table-card,
body[data-theme="mnf"] .matchup-focus-card,
body[data-theme="mnf"] .things-watch-panel,
body[data-theme="mnf"] .matchup-card {
  box-shadow:
    0 18px 70px rgba(50, 245, 138, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.archive-showpiece {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 206, 184, 0.18), transparent 42%),
    rgba(18, 24, 32, 0.94);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.archive-showpiece .status-row {
  margin-bottom: 1rem;
}

.showpiece-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.result-card {
  min-height: 13rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101721;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.result-card strong {
  display: block;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.92;
}

.result-card p {
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.champion-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 206, 184, 0.35), transparent 10rem),
    #101721;
}

.poop-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 184, 77, 0.26), transparent 10rem),
    #101721;
}

.result-card header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}

.result-card .avatar {
  width: 3.4rem;
  height: 3.4rem;
}

.final-score {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.final-score span {
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.11);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 950;
  padding: 0.36rem 0.55rem;
}

.prize-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.prize-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 23, 33, 0.82);
  padding: 0.85rem;
}

.prize-card .avatar {
  width: 2.8rem;
  height: 2.8rem;
}

.prize-card strong {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.05;
}

.prize-card p {
  margin: 0.2rem 0 0;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 1000;
}

.team-lab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(18, 24, 32, 0.9);
  box-shadow: var(--shadow);
  margin: 1rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.selected-matchup-section {
  margin: 1rem 0 2rem;
}

.team-lab h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.team-lab-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 3rem);
}

.selector-row {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 13rem);
}

.selector-row label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.selector-row select {
  width: 100%;
}

.team-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 1rem;
  margin-top: 1rem;
}

.team-panel.league-command-panel {
  grid-template-columns: 1fr;
}

.team-panel-main,
.team-panel-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  padding: 0.85rem;
}

.team-panel-main header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.team-panel-main .avatar {
  width: 3rem;
  height: 3rem;
}

.league-command-copy {
  grid-column: 1 / -1;
}

.league-command-copy p {
  margin: 0.7rem 0 0;
}

.selected-row {
  background: rgba(0, 206, 184, 0.09);
  box-shadow: inset 3px 0 0 var(--teal);
}

.matchup-focus-card,
.things-watch-panel,
.roster-board {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  padding: clamp(0.75rem, 2.5vw, 1rem);
}

.matchup-focus-card,
.things-watch-panel {
  grid-column: 1 / -1;
}

.league-view-button {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 24rem);
}

.matchup-focus-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.matchup-focus-head h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.8vw, 2.15rem);
  line-height: 1.05;
}

.matchup-delta {
  min-width: 7rem;
  border-radius: 14px;
  background: rgba(0, 206, 184, 0.1);
  color: var(--teal);
  padding: 0.65rem;
  text-align: right;
}

.matchup-delta.behind {
  background: rgba(255, 95, 87, 0.1);
  color: var(--red);
}

.matchup-delta.neutral {
  background: rgba(152, 166, 179, 0.1);
  color: var(--ink);
}

.matchup-delta span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matchup-delta strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.has-selected-team #weekly-slate-section {
  display: none;
}

.matchup-rosters,
.watch-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.matchup-versus-showpiece {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 14, 22, 0.48);
  padding: clamp(0.75rem, 3vw, 1.1rem);
}

.matchup-versus-team {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-align: center;
}

.matchup-versus-team .avatar {
  width: clamp(4.3rem, 13vw, 7rem);
  height: clamp(4.3rem, 13vw, 7rem);
  font-size: clamp(1.2rem, 4vw, 2rem);
}

.matchup-versus-team strong {
  display: block;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  line-height: 1.05;
}

.big-versus {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(0, 206, 184, 0.2);
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.1);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.current-scoreline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.current-scoreline span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid rgba(0, 206, 184, 0.18);
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.08);
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 900;
}

.current-scoreline strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.watch-team-column {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 14, 22, 0.48);
  padding: 0.75rem;
}

.watch-team-column header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.watch-team-column .avatar {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
}

.watch-team-column header {
  margin-bottom: 0.6rem;
}

.watch-team-column strong {
  display: block;
}

.roster-board header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.roster-board details {
  margin-top: 0.65rem;
}

.roster-board summary {
  color: var(--teal);
  cursor: pointer;
  font-weight: 950;
}

.scoreboard-list span {
  min-width: 5.2rem;
}

.team-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gameday-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.gameday-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.gameday-copy-wide {
  grid-column: 1 / -1;
}

.watch-list {
  display: grid;
  gap: 0.65rem;
}

.watch-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  padding: 0.85rem;
}

.watch-card strong {
  display: block;
}

.news-card {
  text-decoration: none;
}

.watch-note {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin-top: 0.35rem;
}

.hero-card {
  padding: 1rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.9rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(255, 184, 77, 0.12);
}

.dot.ready {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 206, 184, 0.13);
}

.dot.error {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 95, 87, 0.13);
}

.snapshot-grid,
.stat-grid,
.winner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.snapshot-grid > div,
.stat-grid > div,
.winner-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 0.85rem;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

strong {
  overflow-wrap: anywhere;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 2rem;
  padding: 0.8rem 1rem;
}

.ticker span,
.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.12);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.38rem 0.55rem;
  text-transform: uppercase;
}

.ticker strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.static-ticker {
  display: flex;
  gap: 1.2rem;
  min-width: max-content;
  animation: ticker-scroll 34s linear infinite;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.static-ticker strong {
  white-space: nowrap;
}

.section-head,
.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-head {
  margin: 2.5rem 0 0.85rem;
}

.section-head h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 0.95;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  border: 1px solid rgba(0, 206, 184, 0.2);
}

.mobile-table-card {
  overflow: hidden;
}

.fit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fit-table th,
.fit-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.78rem 0.55rem;
  text-align: left;
  vertical-align: middle;
}

.fit-table th {
  background: #0f151d;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fit-table tr:last-child td {
  border-bottom: 0;
}

.fit-table th:nth-child(1),
.fit-table td:nth-child(1) {
  width: 2.1rem;
  text-align: center;
}

.fit-table th:nth-child(3),
.fit-table td:nth-child(3) {
  width: 4.6rem;
}

.fit-table th:nth-child(4),
.fit-table td:nth-child(4),
.fit-table th:nth-child(5),
.fit-table td:nth-child(5) {
  width: 4.2rem;
}

.archive-table th:nth-child(5),
.archive-table td:nth-child(5) {
  width: 5.5rem;
}

.rank {
  color: var(--teal);
  font-weight: 1000;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

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

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

.team-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.username {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 0.12rem;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #031211;
  font-size: 0.78rem;
  font-weight: 1000;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.two-col {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.panel {
  padding: clamp(0.9rem, 3vw, 1.15rem);
}

.panel-head {
  margin-bottom: 1rem;
}

select {
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 0.45rem 0.8rem;
}

.matchup-list,
.bracket-list,
.activity-list,
.team-grid {
  display: grid;
  gap: 0.75rem;
}

.matchup-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), #131b24);
  padding: 0.8rem;
}

.matchup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}

.matchup-team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.35rem;
  text-align: left;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.matchup-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.matchup-team:hover,
.matchup-team:focus-visible {
  background: rgba(0, 206, 184, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.score {
  min-width: 3.7rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 1000;
  text-align: center;
}

.score.leads {
  color: var(--teal);
}

.versus {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.winner-grid,
.stat-grid.compact {
  margin: 0.9rem 0;
}

.bracket-game,
.activity-item,
.team-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0.85rem;
}

.team-card:hover,
.team-card:focus-visible {
  border-color: var(--teal);
  outline: none;
}

.bracket-game {
  display: grid;
  gap: 0.45rem;
}

.bracket-section-title {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  margin-top: 0.55rem;
  text-transform: uppercase;
}

.bracket-meta,
.activity-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.activity-item strong,
.bracket-game strong {
  display: block;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.team-card header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.team-card h3 {
  margin: 0;
}

.team-card .avatar {
  width: 3rem;
  height: 3rem;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

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

.mini-stats div {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #101721;
  padding: 0.7rem;
}

.history-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.history-strip span {
  border-radius: 999px;
  background: rgba(0, 206, 184, 0.11);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.35rem 0.5rem;
}

.finish-move {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.finish-move.up {
  color: var(--teal);
}

.finish-move.down {
  color: var(--red);
}

.finish-move.same {
  color: var(--ink);
}

.player-list {
  display: grid;
  gap: 0.45rem;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.player-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.player-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.player-list span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.archive-profile-grid .wide-card {
  grid-column: 1 / -1;
}

.season-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.season-notes-grid article,
.article-archive-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 24, 32, 0.9);
  box-shadow: var(--shadow);
}

.season-notes-grid article {
  min-height: 10.5rem;
  padding: 1rem;
}

.season-notes-grid strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  line-height: 0.95;
}

.season-notes-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

body[data-page="archive-2024"] .result-card {
  min-height: 0;
}

body[data-page="archive-2024"] .result-card p {
  margin-bottom: 0;
}

body[data-page="archive-2024"] .season-notes-grid {
  gap: 0.65rem;
}

body[data-page="archive-2024"] .season-notes-grid article {
  min-height: 0;
  padding: 0.9rem;
}

body[data-page="archive-2024"] .season-notes-grid strong {
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1;
}

body[data-page="archive-2024"] .season-notes-grid p {
  margin-top: 0.55rem;
}

.article-archive-card {
  padding: clamp(0.8rem, 3vw, 1.1rem);
}

.latest-article-section,
.article-grid,
.article-empty-card {
  margin-top: 1rem;
}

.article-feature-shell .article-card {
  max-width: none;
}

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

.article-card,
.article-empty-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 24, 32, 0.9);
  box-shadow: var(--shadow);
}

.article-card a {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.featured-article-card a {
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1fr);
}

.article-thumb {
  display: grid;
  min-height: 11.5rem;
  place-items: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 206, 184, 0.24), transparent 11rem),
    linear-gradient(135deg, rgba(0, 206, 184, 0.16), rgba(79, 140, 255, 0.12)),
    var(--panel-2);
  color: var(--teal);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  min-height: 11.5rem;
  object-fit: cover;
}

.article-card-copy,
.article-empty-card {
  padding: clamp(1rem, 3vw, 1.35rem);
}

.article-card-copy h3,
.article-empty-card strong {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.05;
}

.article-card-copy p:not(.eyebrow),
.article-empty-card p {
  color: var(--muted);
  line-height: 1.5;
}

.article-card-copy .button {
  margin-top: 0.7rem;
  width: fit-content;
}

.article-empty-card {
  border-style: dashed;
}

.article-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin: 0;
  padding-left: 1.35rem;
}

.article-link-list li {
  color: var(--teal);
  font-weight: 900;
  padding: 0.35rem 0;
}

.article-link-list a {
  color: var(--ink);
  text-decoration: none;
}

.article-link-list li:nth-child(even) a {
  color: var(--ink);
}

.article-link-list li:nth-child(n + 15),
.article-link-list li:nth-child(n + 15) a {
  color: var(--gold);
}

.article-link-list a:hover {
  color: var(--teal);
}

.old-team {
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red);
}

footer {
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.6rem;
  }

  nav {
    margin-inline: -0.2rem;
    padding-bottom: 0.1rem;
  }

  .newsbar {
    top: 5.95rem;
  }

  main {
    width: min(100% - 0.8rem, 1180px);
  }

  .hero,
  .two-col,
  .gameday-panel,
  .team-panel {
    grid-template-columns: 1fr;
  }

  .team-panel-grid {
    grid-template-columns: 1fr;
  }

  .matchup-focus-head,
  .matchup-rosters,
  .watch-columns,
  .matchup-versus-showpiece,
  .featured-article-card a,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .matchup-focus-head {
    display: grid;
  }

  .matchup-delta {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .matchup-focus-head h3 {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .watch-team-column {
    padding: 0.65rem;
  }

  .watch-team-column .avatar {
    width: 2.25rem;
    height: 2.25rem;
  }

  .matchup-versus-showpiece {
    gap: 0.5rem;
  }

  .big-versus {
    justify-self: center;
    width: 2.55rem;
    height: 2.55rem;
  }

  .hero {
    min-height: 0;
    padding-top: 1.6rem;
    gap: 0.9rem;
  }

  .hero-main h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-main p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .hero-actions,
  .section-head,
  .team-lab-head,
  .panel-head,
  .ticker {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .fit-table th,
  .fit-table td {
    padding: 0.64rem 0.35rem;
    font-size: 0.82rem;
  }

  .fit-table th {
    font-size: 0.6rem;
  }

  .fit-table th:nth-child(1),
  .fit-table td:nth-child(1) {
    width: 1.65rem;
  }

  .fit-table th:nth-child(3),
  .fit-table td:nth-child(3) {
    width: 3.8rem;
  }

  .fit-table th:nth-child(4),
  .fit-table td:nth-child(4),
  .fit-table th:nth-child(5),
  .fit-table td:nth-child(5) {
    width: 3.5rem;
  }

  .archive-table th:nth-child(5),
  .archive-table td:nth-child(5) {
    width: 4.4rem;
  }

  .team-cell {
    gap: 0.4rem;
  }

  .avatar {
    width: 2rem;
    height: 2rem;
  }

  .team-copy span {
    display: none;
  }

  .team-copy .username {
    display: block;
  }

  .team-copy strong {
    font-size: 0.82rem;
  }

  .matchup-row {
    grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr);
    gap: 0.35rem;
  }

  .matchup-team {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .matchup-team.away {
    flex-direction: column;
    text-align: center;
  }

  .score {
    min-width: 0;
    font-size: 1rem;
  }

  .player-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .player-list span {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .showpiece-grid,
  .season-notes-grid,
  .article-link-list,
  .article-grid,
  .prize-strip,
  .archive-mini-stats,
  .current-scoreline {
    grid-template-columns: 1fr;
  }

  .result-card {
    min-height: 10rem;
  }
}

@media (max-width: 380px) {
  .fit-table th,
  .fit-table td {
    padding-inline: 0.25rem;
    font-size: 0.76rem;
  }

  .avatar {
    width: 1.75rem;
    height: 1.75rem;
  }
}
