/* Worms Armageddon — base shell. Everything derives from tokens.css. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink-0);
  background-image:
    radial-gradient(ellipse 130% 70% at 50% -15%, rgba(201, 163, 55, 0.07), transparent 55%),
    radial-gradient(ellipse 80% 60% at 15% 110%, rgba(46, 53, 64, 0.5), transparent 60%),
    radial-gradient(ellipse 80% 60% at 85% 110%, rgba(46, 53, 64, 0.4), transparent 60%),
    var(--brushed);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* film grain over everything — the single cheapest richness upgrade there is */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(201, 163, 55, 0.35); color: var(--paper); }

/* scroll-triggered reveal system */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  line-height: 1.05;
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel-5);
}

.gold-text {
  background: var(--glint);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel-3) 18%, var(--steel-3) 82%, transparent);
}

/* numeric tables everywhere on this site use tabular figures */
table { font-variant-numeric: tabular-nums; border-collapse: collapse; }

/* ---------- shell ---------- */

canvas.silk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(11, 13, 16, 0.78);
  transition: background 0.4s ease;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) clamp(var(--s3), 4vw, var(--s5));
  border-bottom: var(--hairline);
}

/* home: header floats transparent over the hero, turns to glass on scroll */
body.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.home .site-header .wordmark { opacity: 0; transition: opacity 0.4s ease; }

body.home.scrolled .site-header {
  background: rgba(11, 13, 16, 0.78);
  border-bottom-color: var(--steel-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home.scrolled .site-header .wordmark { opacity: 1; pointer-events: auto; }

.wordmark {
  font-size: 1.35rem;
  background: var(--glint);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark:hover { text-decoration: none; }

.site-nav { display: flex; gap: var(--s4); }
.site-nav a { color: var(--steel-5); }
.site-nav a:hover { color: var(--gold-hi); text-decoration: none; }
.site-nav a.active { color: var(--gold-hi); }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--s5) clamp(var(--s3), 4vw, var(--s5)) var(--s6);
}

.site-footer {
  text-align: center;
  padding: var(--s5) var(--s3);
  border-top: var(--hairline);
  color: var(--steel-4);
}

.page-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: var(--s4);
}

.page-title .thin { color: var(--steel-4); }

/* ---------- sections ---------- */

.section { margin-top: var(--s5); }
.sec-label { margin-bottom: var(--s2); color: var(--gold); }
.section .rule { margin-bottom: var(--s3); }

/* ---------- tables ---------- */

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

table.data { width: 100%; font-size: 0.92rem; }

table.data th {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel-4);
  text-align: left;
  padding: var(--s2) var(--s2);
  border-bottom: 1px solid var(--steel-3);
  white-space: nowrap;
}

table.data td {
  padding: var(--s2) var(--s2);
  border-bottom: 1px solid rgba(46, 53, 64, 0.45);
  white-space: nowrap;
}

table.data th.num, table.data td.num { text-align: right; }

table.data tbody tr:hover { background: rgba(201, 163, 55, 0.05); }

tr.champ-row td { color: var(--gold-hi); }
tr.champ-row td:first-child { position: relative; }

.gold-mark { color: var(--gold); }
.mgr { color: var(--steel-5); }

/* ---------- callout ---------- */

.callout {
  border: var(--hairline);
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(201, 163, 55, 0.05), transparent), var(--ink-1);
  padding: var(--s4);
  margin: var(--s4) 0;
}

.callout-name { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: var(--s1) 0; }
.callout-sub { color: var(--steel-5); }

/* ---------- week grids & score lines ---------- */

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: var(--s4) var(--s4);
}

.week-block .label { margin-bottom: var(--s2); }

.score-line {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: var(--s1) 0;
  border-bottom: 1px solid rgba(46, 53, 64, 0.35);
  font-size: 0.88rem;
}

.score-line .winner { font-weight: 600; flex: 1 1 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-line .loser { color: var(--steel-5); flex: 1 1 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.score-line .score { font-variant-numeric: tabular-nums; color: var(--gold-hi); white-space: nowrap; }
.score-line.consolation .winner, .score-line.consolation .score { color: var(--steel-5); font-weight: 400; }
.score-line.title-game { border: 1px solid var(--gold-lo); padding: var(--s2); background: rgba(201, 163, 55, 0.06); flex-wrap: wrap; }
.score-line.title-game .game-tag { flex-basis: 100%; color: var(--gold); }

.footnote { color: var(--steel-4); font-size: 0.8rem; margin-top: var(--s3); }

.year-link { font-size: 1.1rem; }
td.champ-cell { color: var(--gold-hi); }

/* ---------- home: cinematic hero ---------- */

.hero {
  /* full-bleed breakout from the content column */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(-1 * var(--s5));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s4);
  position: relative;
  padding: var(--s5) var(--s3);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.88) 0%, rgba(11, 13, 16, 0.6) 45%, rgba(11, 13, 16, 0.45) 70%, rgba(11, 13, 16, 0.96) 96%, var(--ink-0) 100%),
    url("/img/turf.jpg") center bottom / cover no-repeat;
}

.hero::before {
  /* stadium light beams */
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    conic-gradient(from 168deg at 22% -8%, transparent 0deg, rgba(236, 210, 124, 0.05) 7deg, transparent 15deg),
    conic-gradient(from 178deg at 50% -10%, transparent 0deg, rgba(236, 210, 124, 0.065) 8deg, transparent 17deg),
    conic-gradient(from 190deg at 78% -8%, transparent 0deg, rgba(236, 210, 124, 0.05) 7deg, transparent 15deg);
  pointer-events: none;
}

.hero-kicker { color: var(--gold); }

.hero-title {
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 0.95;
  background: var(--glint);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.hero-sub { color: var(--steel-5); letter-spacing: 0.06em; }
.hero-champ { color: var(--paper); }
.hero-champ .gold-mark { margin: 0 var(--s2); }

.hero-scroll {
  position: absolute;
  bottom: var(--s4);
  color: var(--steel-4);
  animation: bob 2.4s ease-in-out infinite;
  font-size: 1.2rem;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------- the trophy wall: museum cases ---------- */

.trophy-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: var(--s4) var(--s3);
}

.trophy-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #262d37;
  border-top-color: #333c48;
  border-radius: 4px;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(201, 163, 55, 0.1), transparent 55%),
    linear-gradient(180deg, #171c23, #0e1116 70%),
    var(--brushed);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -18px 30px -18px rgba(201, 163, 55, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.trophy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(15rem circle at var(--mx, 50%) var(--my, 30%),
    rgba(236, 210, 124, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.trophy-card:hover::after, .trophy-card:focus-visible::after { opacity: 1; }

.trophy-card:hover, .trophy-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold-lo);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -20px 34px -18px rgba(201, 163, 55, 0.2),
    0 24px 50px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(201, 163, 55, 0.07);
  outline: none;
}

.trophy-img-wrap { padding: var(--s3) var(--s3) 0; }

.trophy-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.78) saturate(0.95);
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trophy-card:hover .trophy-img-wrap img,
.trophy-card:focus-visible .trophy-img-wrap img {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-3px) scale(1.03);
}

.plate {
  text-align: center;
  padding: var(--s2) var(--s2) calc(var(--s2) + 2px);
  border-top: 1px solid rgba(125, 100, 32, 0.8);
  background:
    linear-gradient(180deg, rgba(236, 210, 124, 0.16), rgba(201, 163, 55, 0.05) 45%, rgba(0, 0, 0, 0.25)),
    var(--ink-1);
  position: relative;
}

.plate::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
}

.plate-year { font-size: 1.45rem; color: var(--gold-hi); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.plate-mgr { font-weight: 600; font-size: 0.85rem; margin-top: 2px; }
.plate-team {
  color: var(--steel-5);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trophy-card.current { border-color: var(--gold-lo); }

.trophy-card.current::before {
  content: "Reigning";
  position: absolute;
  top: 10px;
  right: -26px;
  z-index: 2;
  transform: rotate(38deg);
  padding: 2px 28px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0b0d10;
  background: var(--glint);
}

/* ---------- the founding ---------- */

.founding-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  border: 1px solid var(--gold-lo);
  border-radius: 999px;
  background: rgba(201, 163, 55, 0.07);
  color: var(--gold-hi);
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.founding-btn .label { color: var(--gold-hi); }

.founding-btn:hover {
  background: rgba(201, 163, 55, 0.14);
  box-shadow: 0 0 30px rgba(201, 163, 55, 0.15);
  transform: translateY(-1px);
}

.founding-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(201, 163, 55, 0.05), transparent 60%),
    #030405;
}

.founding-overlay.open { display: flex; animation: fade-in 0.6s ease; }

.founding-overlay .f-kicker { color: var(--gold); margin-bottom: var(--s3); }

.founding-overlay .f-title {
  font-size: clamp(2.8rem, 10vw, 7rem);
  line-height: 0.98;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.9));
}

.founding-overlay .f-year {
  font-size: clamp(4.5rem, 16vw, 11rem);
  line-height: 1;
  filter: drop-shadow(0 0 42px rgba(201, 163, 55, 0.3)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.9));
}

.f-ornament {
  display: flex;
  align-items: center;
  gap: var(--s2);
  width: min(19rem, 64vw);
  margin: var(--s3) auto var(--s2);
}

.f-ornament span:not(.orn-star) {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lo));
}

.f-ornament span:last-child { background: linear-gradient(90deg, var(--gold-lo), transparent); }

.orn-star { color: var(--gold); font-size: 0.7rem; }

.f-champ-label { font-size: 0.58rem; color: var(--steel-5); }

.founding-overlay .f-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--paper);
  text-shadow: 0 3px 2px rgba(0, 0, 0, 0.9), 0 0 24px rgba(234, 231, 224, 0.12);
  margin-top: var(--s2);
}

.founding-overlay .f-team {
  color: var(--steel-5);
  letter-spacing: 0.08em;
  margin-top: var(--s2);
}

/* the stamp: cards punch in hard and settle — nothing flies */
#founding-card { position: relative; }

#founding-card::before {
  content: "";
  position: absolute;
  inset: -35% -45%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(236, 210, 124, 0.22), transparent 55%);
}

#founding-card.swap { animation: card-hit 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
#founding-card.swap::before { animation: hit-flash 0.55s ease-out; }

@keyframes card-hit {
  0% { opacity: 0; transform: scale(1.45); filter: blur(7px); }
  45% { opacity: 1; transform: scale(0.965); filter: blur(0); }
  70% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes hit-flash {
  0% { opacity: 0; transform: scale(0.7); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}

/* ---------- doors ---------- */

.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--s3);
}

.door {
  display: block;
  padding: var(--s4);
  border: 1px solid #262d37;
  border-radius: 4px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(236, 210, 124, 0.05), transparent 55%),
    var(--ink-1);
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.door:hover {
  border-color: var(--gold-lo);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.door-name { font-size: 1.4rem; color: var(--paper); margin-top: var(--s1); }
.door:hover .door-name { color: var(--gold-hi); }

/* ---------- championship dossier ---------- */

.dossier-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
}

.dossier-backdrop.open { display: flex; animation: fade-in 0.3s ease; }

@keyframes fade-in { from { opacity: 0; } }

.dossier {
  width: min(46rem, 100%);
  max-height: 92vh;
  overflow-y: auto;
  margin-top: 8vh;
  border: 1px solid #333c48;
  border-bottom: 0;
  border-left: 3px solid var(--gold);
  border-radius: 6px 6px 0 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201, 163, 55, 0.08), transparent 55%),
    linear-gradient(180deg, #171c23, var(--ink-1) 40%),
    var(--brushed);
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.8);
  padding: var(--s5) clamp(var(--s3), 5vw, var(--s5));
  position: relative;
  animation: dossier-up 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dossier-up {
  from { transform: translateY(48px); opacity: 0; }
}

@media (min-width: 640px) {
  .dossier-backdrop { align-items: center; padding: var(--s4); }
  .dossier { margin-top: 0; border-bottom: 1px solid #333c48; border-radius: 6px; }
}

/* dossier panel embedded in a season page (not a modal) */
.dossier.title-run-panel {
  width: auto;
  max-height: none;
  margin: 0;
  overflow: visible;
  animation: none;
  border-bottom: 1px solid #333c48;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.dossier-close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #333c48;
  border-radius: 50%;
  background: transparent;
  color: var(--steel-5);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.dossier-close:hover { color: var(--gold-hi); border-color: var(--gold-lo); }

.dossier-title { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: var(--s1) 0; }
.dossier-sub { color: var(--steel-5); margin-bottom: var(--s4); }

.dossier-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.dossier-stat {
  text-align: center;
  padding: var(--s3) var(--s2);
  border: 1px solid #262d37;
  border-radius: 4px;
  background: rgba(11, 13, 16, 0.55);
}

.dossier-stat .display { font-size: 1.5rem; color: var(--gold-hi); }
.dossier-stat .label { margin-top: 4px; font-size: 0.6rem; }

.dossier h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin: var(--s4) 0 var(--s2);
}

.run-game {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(46, 53, 64, 0.45);
}

.run-game .label { flex: 0 0 7.5rem; font-size: 0.62rem; }
.run-game .num { color: var(--gold-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.run-game .opp { color: var(--steel-5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-game.final { background: rgba(201, 163, 55, 0.07); border: 1px solid var(--gold-lo); padding: var(--s2); border-radius: 3px; }
.run-game.final .label { color: var(--gold); }

.weapon {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(46, 53, 64, 0.45);
}

.weapon-rank { color: var(--steel-4); flex: 0 0 1.2rem; font-variant-numeric: tabular-nums; }
.weapon-name { font-weight: 600; flex: 1; }
.weapon-pos { color: var(--steel-4); flex: 0 0 2.6rem; }
.weapon-pts { color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* ---------- record book: marquee ---------- */

.marquee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--s3);
}

.marquee-card {
  text-align: center;
  padding: var(--s4) var(--s2);
  border: 1px solid #262d37;
  border-top-color: #333c48;
  border-radius: 4px;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(236, 210, 124, 0.06), transparent 60%),
    var(--ink-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.35);
}

.marquee-card .label { margin-top: var(--s2); }

/* ---------- rivalries ---------- */

.feature {
  border: var(--hairline);
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(201, 163, 55, 0.06), transparent 60%), var(--ink-1);
  padding: var(--s5) var(--s4);
  margin: var(--s4) 0;
  text-align: center;
}

.feature-title { font-size: clamp(2rem, 6vw, 3.2rem); margin: var(--s2) 0; }

.feature-stats {
  display: flex;
  justify-content: center;
  gap: clamp(var(--s4), 6vw, var(--s6));
  margin: var(--s4) 0 var(--s3);
  flex-wrap: wrap;
}

.feature-num { font-size: clamp(2.4rem, 7vw, 4rem); }

.feature-copy { color: var(--steel-5); max-width: 34rem; margin: 0 auto; }

/* ---------- rivalry tiles: miniatures of the flagship .feature panel ---------- */

.rival-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--s3);
  margin: var(--s3) 0 var(--s2);
}

.rival-tile {
  padding: var(--s4) var(--s3);
  border: var(--hairline);
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(201, 163, 55, 0.06), transparent 60%), var(--ink-1);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.rival-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); }

.rival-tile .label { color: var(--gold); }
.rival-pair { font-size: 1.2rem; margin: var(--s2) 0 var(--s1); }
.rival-rec { font-size: 2.1rem; color: var(--gold-hi); }
.rival-sub { color: var(--steel-5); font-size: 0.8rem; margin-top: var(--s2); }

table.h2h-grid td.diag { color: var(--steel-3); }
table.h2h-grid td.pos { color: var(--gold-hi); }
table.h2h-grid td.neg { color: var(--steel-4); }
table.h2h-grid th:first-child { position: sticky; left: 0; background: var(--ink-0); }
table.h2h-grid td:first-child { position: sticky; left: 0; background: var(--ink-0); }

/* ---------- moments ---------- */

.moments-hero {
  text-align: center;
  padding: var(--s4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: center;
}

.moment-card {
  border: var(--hairline);
  border-left: 3px solid var(--gold);
  background: var(--ink-1);
  padding: var(--s4);
  margin-bottom: var(--s3);
}

.moment-rank { font-size: 1rem; letter-spacing: 0.12em; }
.moment-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: var(--s1) 0 var(--s2); }
.moment-body { color: var(--paper); max-width: 44rem; }
.moment-stat { margin-top: var(--s2); color: var(--gold); }

/* ---------- launch gate overlay ---------- */

body.gated { overflow: hidden; }
body.gated .site-header { display: none; }

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 85; /* above the nav — nothing is browsable until zero */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s4);
  padding: var(--s5) var(--s3);
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.9) 0%, rgba(11, 13, 16, 0.62) 50%, rgba(11, 13, 16, 0.94) 100%),
    url("/img/turf.jpg") center bottom / cover no-repeat var(--ink-0);
}

.gate-masthead { font-size: clamp(2.6rem, 9vw, 5.5rem); }
.gate-overlay .rule { width: min(28rem, 70vw); }

/* ---------- sound toggle ---------- */

#sound-toggle {
  position: fixed;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 70;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--steel-3);
  background: rgba(11, 13, 16, 0.8);
  color: var(--steel-4);
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

#sound-toggle:hover { color: var(--gold-hi); border-color: var(--gold-lo); }

#sound-toggle.on {
  color: var(--gold-hi);
  border-color: var(--gold-lo);
  box-shadow: 0 0 18px rgba(201, 163, 55, 0.25);
}

/* ---------- the montage ---------- */

.montage-panel {
  position: relative;
  border: 1px solid #262d37;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.montage-panel video { display: block; width: 100%; height: auto; }

.montage-panel::after {
  /* vignette so the video sits in the room instead of on top of it */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
}

/* montage control bar */

.montage-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: linear-gradient(180deg, transparent, rgba(4, 5, 7, 0.85) 40%);
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.montage-panel:hover .montage-bar, .montage-bar:focus-within { opacity: 1; }

.mb-btn {
  background: none;
  border: 0;
  color: var(--gold-hi);
  font-size: 0.95rem;
  cursor: pointer;
  padding: var(--s1) var(--s2);
  line-height: 1;
}

.mb-btn:hover { color: var(--gold); }

.mb-seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: rgba(153, 163, 176, 0.35);
  outline: none;
  cursor: pointer;
}

.mb-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-hi);
  border: 1px solid var(--gold-lo);
  box-shadow: 0 0 8px rgba(201, 163, 55, 0.5);
}

.mb-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-hi);
  border: 1px solid var(--gold-lo);
}

.mb-time { font-variant-numeric: tabular-nums; color: var(--steel-5); }

/* montage scroll-scrub: tall track, pinned panel */

.montage-scroll { height: 320vh; position: relative; }

.montage-scroll .montage-sticky {
  position: sticky;
  top: 9vh;
}

.montage-scroll .section { margin-top: var(--s5); }

/* montage as full-bleed pinned cinema — no frame */

.montage-scroll {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 300vh;
  position: relative;
}

.montage-scroll .montage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}

.montage-scroll .montage-panel {
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.montage-scroll .montage-panel::after { display: none; }

.montage-scroll video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
}

/* sealed moments: 99 locked tiles counting down */

.locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--s2);
}

.locked-tile {
  text-align: center;
  padding: var(--s3) var(--s2);
  border: 1px solid #232932;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #14181e, #0e1116),
    var(--brushed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.locked-tile:hover { border-color: var(--gold-lo); transform: translateY(-2px); }

.locked-num { font-size: 1.6rem; color: var(--steel-4); }

.locked-tile:hover .locked-num { color: var(--gold-hi); }

.locked-q {
  color: var(--gold-lo);
  letter-spacing: 0.35em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}
