:root {
  --ink: #111827;
  --muted: #4b5563;
  --line: #d9dee8;
  --paper: #ffffff;
  --soft: #f4f6f9;
  --green: #16803c;
  --red: #d42f2f;
  --blue: #2563eb;
  --yellow: #f5b51b;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  color: #ffffff;
  background: rgba(17, 24, 39, 0.22);
  transition: background 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled, .site-header.nav-open {
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 43%, rgba(255,255,255,0.9) 44%, rgba(255,255,255,0.9) 56%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(255,255,255,0.9) 44%, rgba(255,255,255,0.9) 56%, transparent 57%),
    radial-gradient(circle at 50% 50%, var(--green) 0 54%, #ffffff 55% 64%, var(--red) 65%);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}
.site-nav a { text-decoration: none; opacity: 0.88; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--yellow); opacity: 1; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span:not(.sr-only) { width: 19px; height: 2px; background: currentColor; }

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
}
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(17,24,39,0.86), rgba(17,24,39,0.58) 42%, rgba(17,24,39,0.1)),
    linear-gradient(0deg, rgba(17,24,39,0.82), transparent 48%);
}
.hero-content { position: relative; z-index: 1; padding: 126px 0 48px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}
.hero .eyebrow, .lead-section .eyebrow { color: var(--yellow); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 760px; margin: 0; font-size: 4rem; line-height: 0.98; letter-spacing: 0; }
h2 { margin: 0; font-size: 2.35rem; line-height: 1.08; letter-spacing: 0; }
h3 { margin: 0; font-size: 1.12rem; line-height: 1.22; }
.hero-copy { max-width: 650px; margin: 22px 0 0; color: rgba(255,255,255,0.9); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button.primary { color: #ffffff; background: var(--red); box-shadow: 0 12px 28px rgba(212,47,47,0.3); }
.button.secondary { color: #ffffff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.46); }
.button.full { width: 100%; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 138px));
  gap: 12px;
  margin: 34px 0 0;
}
.hero-metrics div {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  background: rgba(17,24,39,0.36);
}
.hero-metrics dt { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.hero-metrics dd { margin: 6px 0 0; color: rgba(255,255,255,0.82); font-size: 0.88rem; }

.ticker-band { background: var(--ink); color: #ffffff; }
.ticker {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker span {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.86);
  font-size: 0.86rem;
  font-weight: 800;
}

.section { padding: 76px 0; }
.section:nth-of-type(odd) { background: var(--soft); }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: center;
}
.two-col p, .ranking-layout p, .data-card p, .player-card p, .feature-story p { color: var(--muted); }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.panel, .data-card, .player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(17,24,39,0.08);
}
.feature-story, .poll-panel, .results-panel, .quiz-box, .lead-form, .team-detail { padding: 28px; }
.kicker, .quiz-progress {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.data-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.data-card, .player-card { min-height: 210px; padding: 22px; }
.data-card span, .data-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.data-card strong { display: block; font-size: 1.18rem; line-height: 1.22; }

.video-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #000000; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.video-topics a, .favorites span {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 14px; font-weight: 900; }
.poll-form label { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--muted); cursor: pointer; }
.poll-form input { accent-color: var(--red); }
.poll-form .button { margin-top: 18px; }
.result-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) 52px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  margin-top: 14px;
}
.result-row span:first-child { font-weight: 900; }
.result-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e7ebf2; }
.result-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--yellow)); }

.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: stage; }
.timeline li {
  position: relative;
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  counter-increment: stage;
}
.timeline li::before {
  content: counter(stage);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-weight: 900;
}
.timeline span { font-weight: 900; }

.city-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.city-button, .ranking-item, .quiz-options button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}
.city-button { min-height: 42px; padding: 9px 13px; font-weight: 900; }
.city-button.active, .city-button:hover, .city-button:focus-visible { color: #ffffff; border-color: var(--green); background: var(--green); }
.city-panel { overflow: hidden; }
.city-panel img { width: 100%; height: 220px; object-fit: cover; }
.city-panel > div { padding: 24px; }
.city-panel dl { margin: 18px 0 0; }
.city-panel dl div { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.city-panel dt { color: var(--muted); font-weight: 900; }
.city-panel dd { margin: 0; }

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.98fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: start;
}
.ranking-list { display: grid; gap: 10px; }
.ranking-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 12px;
  text-align: left;
}
.ranking-item span {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
}
.ranking-item small { color: var(--muted); }
.ranking-item.active, .ranking-item:hover, .ranking-item:focus-visible { border-color: var(--green); transform: translateY(-1px); }

.player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.player-avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}
.player-avatar.alt { background: linear-gradient(135deg, var(--red), var(--yellow)); }
.player-avatar.third { background: linear-gradient(135deg, var(--blue), var(--green)); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.countdown div {
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
}
.countdown strong { font-size: 2.15rem; line-height: 1; }
.countdown span { color: rgba(255,255,255,0.72); font-weight: 900; }
.favorites { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.quiz-options { display: grid; gap: 10px; margin-top: 16px; }
.quiz-options button { min-height: 48px; padding: 12px 14px; text-align: left; font-weight: 900; }
.quiz-options button.correct { color: #ffffff; border-color: var(--green); background: var(--green); }
.quiz-options button.wrong { color: #ffffff; border-color: var(--red); background: var(--red); }
.quiz-feedback { min-height: 28px; margin-bottom: 0; color: var(--muted); font-weight: 900; }

.lead-section {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17,24,39,0.94), rgba(17,24,39,0.78)),
    url("assets/hero-stadium.png") center / cover;
}
.lead-section p { color: rgba(255,255,255,0.84); }
.lead-form { display: grid; gap: 14px; color: var(--ink); }
.lead-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 900; }
.lead-form input, .lead-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus { outline: 3px solid rgba(37,99,235,0.18); border-color: var(--blue); }
.checkbox-row { grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: var(--muted); }
.checkbox-row input { width: 18px; min-height: 18px; margin-top: 3px; accent-color: var(--red); }
.form-status { min-height: 24px; margin: 0; color: var(--muted); font-weight: 900; }

.site-footer { padding: 28px 0; color: rgba(255,255,255,0.78); background: var(--ink); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 14px; font-weight: 900; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--yellow); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 10px 16px 18px;
    background: rgba(17,24,39,0.96);
  }
  .site-nav.open { display: grid; }
  .site-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .two-col, .ranking-layout { grid-template-columns: 1fr; }
  .data-grid, .video-topics, .player-grid, .favorites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 24px, 1160px); }
  .site-header { height: 64px; }
  .site-nav { top: 64px; grid-template-columns: 1fr; }
  .hero { min-height: 78svh; }
  .hero-content { padding: 102px 0 34px; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.75rem; }
  .hero-copy { font-size: 1rem; }
  .hero-metrics, .data-grid, .video-topics, .player-grid, .favorites, .countdown, .timeline { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .result-row { grid-template-columns: 78px minmax(90px, 1fr) 44px; gap: 8px; font-size: 0.92rem; }
  .city-panel dl div { grid-template-columns: 1fr; gap: 4px; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; }
}
