:root {
  --bg: #0b0807;
  --sauce: #c41e3a;
  --fire: #f05a1a;
  --gold: #f6b21b;
  --cream: #fff8f0;
  --basil: #7dcea0;
  --muted: rgba(255, 248, 240, 0.62);
  --line: rgba(246, 178, 27, 0.35);
  --display: "Bangers", Impact, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.45;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, .share { font: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--gold);
  color: var(--bg);
  padding: 0.35rem 0.6rem;
  z-index: 5;
}
.skip:focus { top: 0.6rem; }

.site-header {
  background: #070504;
  border-bottom: 1px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 4;
}

.header-inner,
.wrap {
  width: min(980px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
}

.nav { display: flex; gap: 0.9rem; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a[aria-current="page"] { color: var(--gold); }

.wrap { padding-bottom: 4rem; }

.hero { padding: 1.6rem 0 0.4rem; }
.hero-logo { width: min(420px, 100%); height: auto; margin: 0.4rem 0 0.2rem; }
.tagline, .eyebrow, .hero-title, .phase-title, .round-head h2, .knockout h2, .vs-mark, .footer-brand, .contender-hero h1, .champion h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.tagline {
  margin: 0.1rem 0 0.45rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--fire);
}
.hero-title, .phase-title {
  text-transform: uppercase;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 0.95;
  margin: 0.15rem 0;
  color: var(--cream);
}
.lede { margin: 0; max-width: 38rem; color: var(--cream); }

.cities { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.cities a {
  text-decoration: none;
  border-bottom: 1px solid var(--fire);
  font-weight: 700;
  color: var(--gold);
}

.clock-card, .notice, .champion {
  margin-top: 1.25rem;
}
.clock-card {
  padding-top: 0.2rem;
}
.kicker, .count-label, .fix-kicker, .round-head p, .shop-links, .tree-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.kicker { color: var(--gold); margin: 0; }
.count-value {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  margin: 0.15rem 0;
  letter-spacing: 0.04em;
}
.when, .fine { color: var(--muted); margin: 0.2rem 0 0; }
.when span { display: inline-block; margin-right: 0.8rem; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fire);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}
.live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--fire);
}
.notice {
  border-left: 3px solid var(--sauce);
  padding: 0.4rem 0 0.4rem 0.7rem;
}

.round-group { margin-top: 2.4rem; }
.round-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 3px solid var(--sauce);
  padding-bottom: 0.35rem;
  margin: 0;
}
.round-head h2 {
  text-transform: uppercase;
  font-size: 1.55rem;
  margin: 0;
  color: var(--cream);
}
.round-head p { margin: 0; color: var(--muted); }

.fixture {
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
.fix-kicker {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
}
.fix-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.45rem 0.6rem;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.team.away { flex-direction: row-reverse; text-align: right; }
.team-copy { min-width: 0; }
.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: cover;
}
.avatar.contain {
  object-fit: contain;
  padding: 0.28rem;
  background: #fff;
}
.avatar.mono {
  display: grid;
  place-items: center;
  font-family: Anton, Impact, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: var(--cream);
}
.side-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  font-family: "Source Sans 3", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
.side-name a { text-decoration: none; }
.side-name, .side-name a { color: var(--cream); }
.side-name a:hover { color: var(--fire); }
.team.winner .side-name a,
.team.winner .side-name { color: var(--gold); }
.shop-links {
  margin: 0.2rem 0 0;
  display: flex;
  gap: 0.55rem;
  color: var(--gold);
}
.team.away .shop-links { justify-content: flex-end; }
.shop-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 178, 27, 0.7);
}
.shop-links a:hover { color: var(--fire); }

.vote-form { margin-top: 0.35rem; }
.vote-form button {
  appearance: none;
  border: 1px solid var(--fire);
  background: var(--sauce);
  color: var(--cream);
  border-radius: 2px;
  min-height: 1.7rem;
  padding: 0.05rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.vote-form button:hover { background: var(--fire); color: var(--bg); }
.vote-form button:disabled { opacity: 0.45; cursor: not-allowed; }
.vote-form button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.waiting { margin: 0.3rem 0 0; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.vs-box {
  min-width: 4.6rem;
  text-align: center;
  border: 1px solid var(--gold);
  background: #100c0a;
  padding: 0.35rem 0.4rem;
}
.vs-mark {
  letter-spacing: 0.12em;
  font-size: 1.15rem;
  color: var(--cream);
}
.score-nums {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.bar-pct { font-size: 1rem; }
.bar-count { display: none; }
.score-dash { color: var(--muted); }
.team.winner + .vs-box [data-bar="a"] .bar-pct,
.vs-box:has(+ .team.winner) [data-bar="b"] .bar-pct { color: var(--gold); }

.vote-note { margin: 0.45rem 0 0; font-size: 0.9rem; font-weight: 700; }
.share {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.share:hover { color: var(--fire); }

.share-panel {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem 0.75rem;
  border: 1px solid var(--gold);
  background: #140f0c;
}
.share-line {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  letter-spacing: 0.03em;
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1.2;
}
.share-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.share-actions a, .share-actions button {
  appearance: none;
  border: 1px solid var(--fire);
  background: transparent;
  color: var(--cream);
  text-decoration: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  cursor: pointer;
}
.share-actions a:hover, .share-actions button:hover { background: var(--fire); color: var(--bg); }

.knockout { margin-top: 2.8rem; }
.knockout h2 {
  text-transform: uppercase;
  font-size: 1.45rem;
  margin: 0 0 0.8rem;
  color: var(--cream);
}
.tree { display: grid; gap: 1rem; }
.tree-col h3 { margin: 0 0 0.35rem; color: var(--muted); }
.tree-col ol { list-style: none; margin: 0; padding: 0; }
.tree-col li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.tree-col li span { color: var(--muted); margin: 0 0.25rem; }
.tree-col strong { color: var(--gold); }

.champion {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.4rem;
}
.champion .seal, .champion .mark { width: 3rem; height: 3rem; }
.champion h2 {
  text-transform: uppercase;
  margin: 0.1rem 0;
  font-size: 1.8rem;
  line-height: 0.95;
}
.champion h2 a { text-decoration: none; }
.champion p { margin: 0.15rem 0; }

.crumbs { margin: 1rem 0 0; font-size: 0.9rem; }
.crumbs a { font-weight: 700; }

.contender-hero { display: grid; gap: 1rem; margin-top: 0.8rem; }
.contender-hero h1 {
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 0.9;
  margin: 0.15rem 0;
  color: var(--cream);
}
.pie-frame { background: #140f0c; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; display: grid; place-items: center; }
.pie-frame svg { width: min(240px, 70vw); }
.blurb { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; }
.seed {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.scores, .facts { display: grid; gap: 0.5rem; margin-top: 1rem; }
.score, .fact, .panel, .about-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.score span, .fact span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.score strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; color: var(--gold); }
.panel, .about-card { margin-top: 1rem; }
.panel h2, .about-card h2 { font-family: var(--display); letter-spacing: 0.04em; margin: 0 0 0.4rem; color: var(--cream); }
.receipt { margin: 0 0 0.7rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.receipt a { color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.actions a {
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.caveat { border-left: 3px solid var(--gold); padding-left: 0.7rem; }
.source-note { color: var(--muted); font-size: 0.92rem; }
.windows { list-style: none; padding: 0; }
.windows li { padding: 0.45rem 0; border-top: 1px solid var(--line); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}
.site-footer .wrap { padding-bottom: 0; }
.footer-brand {
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  font-size: 1.3rem;
}
.site-footer p { margin: 0.15rem 0; }

@media (min-width: 720px) {
  .scores { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .tree { grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.5rem; align-items: start; }
  .contender-hero { grid-template-columns: 220px 1fr; align-items: center; }
  .side-name { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .nav { gap: 0.6rem; }
  .avatar { width: 2.3rem; height: 2.3rem; }
  .side-name { font-size: 0.86rem; }
  .fix-kicker span:last-child { text-align: right; }
}

.avatar.mono { background: #2a211c; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
