:root {
  --red: #e63a25;
  --ink: #16120f;
  --cream: #fefcf7;
  --gold: #f3c743;
  --green: #145f3a;
  --blue: #173f8f;
  --paper: #f7efe1;
  --muted: rgba(22, 18, 15, 0.62);
  --f-sans: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--green); }
body { color: var(--ink); font-family: var(--f-sans); overflow-x: hidden; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: wait; opacity: 0.72; }
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
h1, h2, p { margin: 0; }

.wc-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(254,252,247,0.07) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(254,252,247,0.07) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--green);
}

.wc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  padding: 52px clamp(16px, 4vw, 56px) 24px;
  border-bottom: 2px solid var(--cream);
}

.wc-kicker,
.wc-status span,
.wc-sport-tabs span,
.wc-intro-grid span,
.wc-match-tabs span,
.wc-panel-head span,
.wc-leader-card span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  margin-bottom: 20px;
  background: var(--cream);
  border: 2px solid var(--ink);
}

.wc-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--ink);
}

h1 {
  max-width: 980px;
  color: var(--cream);
  font-size: clamp(52px, 8vw, 126px);
  line-height: 0.84;
  letter-spacing: 0;
  font-weight: 900;
}

.wc-hero p {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(254, 252, 247, 0.78);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.35;
  font-weight: 700;
}

.wc-status {
  min-height: 320px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  background: var(--gold);
  border: 2px solid var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
}

.wc-status strong {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.82;
  font-weight: 900;
}

.wc-sport-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px clamp(16px, 4vw, 56px);
  background: var(--ink);
  border-bottom: 2px solid var(--cream);
}

.wc-sport-tabs a {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 14px;
  border: 2px solid rgba(254,252,247,0.42);
  color: var(--cream);
  text-decoration: none;
}

.wc-sport-tabs a.is-active {
  background: var(--cream);
  color: var(--ink);
}

.wc-sport-tabs strong {
  font-size: clamp(21px, 3vw, 34px);
  line-height: 0.95;
}

.wc-intro-grid,
.wc-score-stage,
.wc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px clamp(16px, 4vw, 56px) 0;
}

.wc-intro-grid article,
.wc-panel,
.wc-score-card,
.wc-watch-board {
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 18px;
}

.wc-intro-grid span,
.wc-panel-head span,
.wc-match-tabs span { color: var(--red); }

.wc-intro-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.95;
  font-weight: 900;
}

.wc-intro-grid p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.wc-watch-board {
  margin: 22px clamp(16px, 4vw, 56px) 0;
}

.wc-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.wc-panel-head h2 {
  margin-top: 3px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.95;
  font-weight: 900;
}

.wc-match-tabs {
  display: block;
}

.wc-match-tabs button {
  min-height: 100px;
  display: grid;
  gap: 5px;
  padding: 12px;
  text-align: left;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.wc-match-tabs button.is-active {
  background: var(--ink);
  color: var(--cream);
}

.wc-match-tabs button:not(.is-active):hover,
.wc-sport-tabs a:not(.is-active):hover {
  transform: translate(-1px, -1px);
}

.wc-match-tabs strong {
  font-size: 30px;
  line-height: 0.9;
  font-weight: 900;
}

.wc-match-tabs small {
  font-family: var(--f-mono);
  color: currentColor;
  opacity: 0.68;
}

.wc-score-stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.wc-score-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  min-height: 220px;
}

.wc-team {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.wc-team img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.wc-team span {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 900;
}

.wc-team strong {
  font-size: clamp(26px, 4vw, 54px);
  line-height: 0.9;
  font-weight: 900;
}

.wc-team b {
  grid-column: 1 / -1;
  font-size: clamp(88px, 12vw, 164px);
  line-height: 0.78;
}

.wc-away {
  text-align: right;
  grid-template-columns: 1fr 58px;
}

.wc-away img { grid-column: 2; grid-row: 1; }
.wc-away span, .wc-away strong { grid-column: 1; }

.wc-clock {
  width: 130px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.wc-clock strong {
  color: var(--red);
  font-family: var(--f-mono);
  font-size: 28px;
  text-transform: uppercase;
}

.wc-clock span {
  max-width: 100px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.wc-angles,
.wc-leaders,
.wc-form,
.wc-source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wc-angles li,
.wc-leader-card,
.wc-form article,
.wc-source-list article {
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.wc-angles li {
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  line-height: 1.35;
}

.wc-leader-card strong,
.wc-form strong,
.wc-source-list strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.wc-leader-card small,
.wc-form small,
.wc-source-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
}

@media (max-width: 1060px) {
  .wc-hero,
  .wc-intro-grid,
  .wc-score-stage,
  .wc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wc-hero { padding-top: 34px; }
  h1 { font-size: clamp(46px, 15vw, 72px); }
  .wc-status { min-height: 220px; box-shadow: 5px 5px 0 var(--ink); }
  .wc-sport-tabs { grid-template-columns: 1fr; }
  .wc-score-card { grid-template-columns: 1fr; }
  .wc-clock {
    width: 100%;
    min-height: 74px;
    border: 2px solid var(--ink);
  }
  .wc-away,
  .wc-team {
    text-align: left;
    grid-template-columns: 58px 1fr;
  }
  .wc-away img { grid-column: 1; }
  .wc-away span, .wc-away strong { grid-column: 2; }
}

/* ───────────── stats wall + timeline + form (v2) ───────────── */

.wc-board-label {
  margin: 14px 0 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.wc-board-label:first-child { margin-top: 0; }

.wc-board-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.wc-match-tabs button.is-live span { color: var(--red); }

@keyframes wc-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.wc-match-tabs button.is-live span {
  animation: wc-live-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wc-match-tabs button.is-live span { animation: none; }
}


.wc-replay-strip {
  display: grid;
  gap: 12px;
  margin: 0 clamp(16px, 4vw, 56px) 18px;
  padding: 14px 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.wc-replay-strip[hidden] { display: none; }

.wc-replay-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wc-replay-copy span,
.wc-minute-control span {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.wc-replay-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

.wc-play-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wc-play-button {
  min-height: 38px;
  min-width: 88px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

.wc-play-button.is-playing { background: var(--red); }

.wc-speed-group { display: flex; gap: 6px; }

.wc-speed-group button {
  min-width: 36px;
  min-height: 34px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 800;
}

.wc-speed-group button.is-active {
  background: var(--ink);
  color: var(--cream);
}

.wc-minute-control { display: grid; gap: 7px; }

.wc-minute-control input {
  width: 100%;
  accent-color: var(--red);
}

.wc-stat-wall-section {
  padding: 0 clamp(16px, 4vw, 56px) 18px;
}

.wc-stat-wall-section .wc-panel-head { margin-bottom: 12px; }
.wc-stat-wall-section .wc-panel-head span { color: var(--gold); }
.wc-stat-wall-section h2 { color: var(--cream); font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; line-height: 0.95; }

.wc-scrub-note {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(254, 252, 247, 0.66);
  text-align: right;
  max-width: 260px;
  visibility: hidden;
}

body.is-scrubbed .wc-scrub-note { visibility: visible; }

.wc-stat-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wc-stat-tile,
.wc-wall-empty {
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px;
}

.wc-stat-tile {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
}

.wc-stat-tile > span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.wc-stat-pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.wc-stat-pair b {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 0.9;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.wc-stat-pair i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}

.wc-split-bar {
  position: relative;
  height: 12px;
  border: 2px solid var(--ink);
  background: var(--blue);
  overflow: hidden;
}

.wc-split-bar span {
  display: block;
  height: 100%;
  background: var(--red);
  border-right: 2px solid var(--ink);
  transition: width 220ms ease;
}

.wc-stat-tile small {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
}

.wc-wall-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.wc-wall-empty strong {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
  font-weight: 900;
}

.wc-wall-empty small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}

.wc-timeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 520px;
  overflow-y: auto;
}

.wc-moment {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.wc-moment span {
  flex: none;
  min-width: 42px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
}

.wc-moment.is-card span { color: var(--red); }

.wc-moment[data-minute] { cursor: pointer; }

.wc-moment.is-active {
  background: var(--ink);
  color: var(--cream);
}

.wc-moment.is-active span { color: var(--gold); }
.wc-moment.is-active small { color: rgba(254, 252, 247, 0.66); }

.wc-moment strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.wc-moment small {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
}

.wc-side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.wc-form-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.wc-pills { display: inline-flex; gap: 4px; }

.wc-pill {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

.wc-pill-w { background: var(--green); color: var(--cream); }
.wc-pill-l { background: var(--red); color: var(--cream); }
.wc-pill-d, .wc-pill- { background: var(--gold); color: var(--ink); }

@media (max-width: 1060px) {
  .wc-stat-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .wc-stat-wall { grid-template-columns: 1fr; }
  .wc-stat-wall-section { padding-left: 14px; padding-right: 14px; }
}

.wc-kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.wc-kicker a:hover {
  opacity: 0.75;
}

.wc-noscript {
  margin: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  background: #1a1410;
  color: #fefcf7;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
