:root {
  --desk: #b9b9ad;
  --desk-dark: #8d8d84;
  --panel: #d8d8cc;
  --panel-light: #eeeedf;
  --ink: #101010;
  --muted: #3f463d;
  --line: #202020;
  --field: #1f6f3f;
  --field-2: #2f8a50;
  --cream: #f6f1ce;
  --red: #b52b25;
  --yellow: #d7b13f;
  --blue: #254e86;
  --shadow-light: #ffffff;
  --shadow-dark: #6f6f68;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  font-size: 15px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    var(--desk);
  background-size: 18px 18px;
}

body {
  overflow-x: hidden;
}

.site-header,
main {
  width: min(1160px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto;
}

main > *,
.site-header > *,
.score-grid > *,
.score-card,
.panel,
.brand-block,
.table-wrap,
.chart-wrap {
  min-width: 0;
  max-width: 100%;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  padding: 24px 0 16px;
}

.brand-block,
.score-card,
.method-card,
.panel {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 var(--shadow-light),
    inset -2px -2px 0 var(--shadow-dark),
    4px 4px 0 rgba(0, 0, 0, 0.28);
}

.brand-block {
  position: relative;
  padding: 16px 18px 18px;
  background:
    linear-gradient(90deg, rgba(31,111,63,0.92), rgba(47,138,80,0.94)),
    var(--field);
  color: #fff;
  overflow: hidden;
}

.brand-block::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255,255,255,0.62);
  pointer-events: none;
}

.brand-block::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid #1a1a1a;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: none;
  text-shadow: 2px 2px 0 #123820;
}

h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.02;
}

.lead,
.score-copy,
.method-card p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
}

.project-note {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 780px;
  margin: 0 0 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.72);
  color: #fff;
  background: rgba(16, 16, 16, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.header-actions {
  display: grid;
  gap: 10px;
  align-content: end;
  min-width: 190px;
}

button,
.state-pill {
  border: 2px solid var(--line);
  padding: 10px 13px;
  color: var(--ink);
  background: var(--panel-light);
  font: inherit;
  font-weight: 700;
  text-align: center;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #777;
}

button {
  cursor: pointer;
}

button:hover,
button.active {
  background: #fff7b0;
}

button:active {
  box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #777;
  transform: translate(1px, 1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.info-button {
  margin: 0;
  padding: 5px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.state-pill[data-tone="good"] {
  background: #b8dca9;
}

.state-pill[data-tone="bad"] {
  background: #d69a91;
}

main {
  display: grid;
  gap: 16px;
  padding-bottom: 40px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.score-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: clamp(16px, 3vw, 26px);
  background: var(--panel);
}

.score-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  max-width: 100%;
}

.score-card-head > div {
  min-width: 0;
}

.score-card-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  overflow-wrap: anywhere;
}

.score-origin {
  display: inline-block;
  margin: 0 0 7px;
  border: 2px solid var(--line);
  padding: 4px 7px;
  color: #fff;
  background: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.35), inset -2px -2px 0 rgba(0,0,0,0.25);
}

.score-card-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
  max-width: 100%;
}

.score-card-body > * {
  min-width: 0;
}

.score-meter {
  display: grid;
  gap: 12px;
  justify-items: start;
  align-content: start;
  min-width: 0;
  max-width: 100%;
}

.method-card,
.panel {
  padding: clamp(16px, 3vw, 24px);
}

.method-card {
  background: var(--cream);
}

.keeper-card {
  background: var(--cream);
}

.vote-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(37,78,134,0.08), rgba(31,111,63,0.08)),
    var(--panel);
}

.keeper-ring {
  background:
    radial-gradient(circle at center, var(--cream) 0 54%, transparent 55%),
    conic-gradient(var(--blue) 0 58%, var(--field) 58% 76%, var(--yellow) 76% 88%, var(--red) 88% 100%);
}

.community-ring {
  background:
    radial-gradient(circle at center, var(--cream) 0 54%, transparent 55%),
    conic-gradient(var(--blue) 0 16%, var(--field) 16% 36%, var(--yellow) 36% 58%, #c46d2f 58% 78%, var(--red) 78% 100%);
}

.keeper-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
  margin: 14px 0 0;
}

.fixture-forecast {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  min-width: 0;
}

.fixture-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(0, 1.35fr);
  gap: 8px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 8px;
  border: 2px solid var(--line);
  background: var(--panel-light);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
  overflow: hidden;
}

.fixture-row span,
.fixture-row small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.fixture-row strong {
  min-width: 48px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  text-align: center;
}

.keeper-metrics div {
  padding: 8px;
  border: 2px solid var(--line);
  background: var(--panel-light);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.keeper-metrics dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.keeper-metrics dd {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.method-strip {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--cream);
}

.score-ring {
  display: grid;
  width: 200px;
  height: 200px;
  justify-self: start;
  align-self: start;
  place-items: center;
  align-content: center;
  border: 3px solid var(--line);
  background:
    radial-gradient(circle at center, var(--cream) 0 54%, transparent 55%),
    conic-gradient(var(--field) 0 65%, var(--red) 65% 82%, var(--yellow) 82% 100%);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,0.75), inset -3px -3px 0 rgba(0,0,0,0.35);
}

.score-ring span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 0.9;
}

.score-ring small {
  color: var(--muted);
  font-weight: 700;
}

.likelihood {
  width: 200px;
  border: 2px solid var(--line);
  padding: 9px;
  background: var(--panel-light);
  --likelihood-color: var(--muted);
  --likelihood-value: 0%;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.likelihood[data-level="unlikely"] {
  --likelihood-color: var(--red);
}

.likelihood[data-level="rather-unlikely"] {
  --likelihood-color: #c46d2f;
}

.likelihood[data-level="open"] {
  --likelihood-color: var(--yellow);
}

.likelihood[data-level="likely"] {
  --likelihood-color: var(--field);
}

.likelihood[data-level="very-likely"],
.likelihood[data-level="almost-certain"] {
  --likelihood-color: var(--blue);
}

.likelihood-kicker,
.likelihood small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.likelihood strong {
  display: block;
  margin: 3px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.likelihood-track {
  height: 15px;
  margin-top: 8px;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px),
    #d0d0c4;
  background-size: 20% 100%;
}

.likelihood-track span {
  display: block;
  width: var(--likelihood-value);
  height: 100%;
  background: var(--likelihood-color);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.45), inset -2px -2px 0 rgba(0,0,0,0.2);
}

.keeper-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.keeper-choice button {
  display: grid;
  min-height: 118px;
  gap: 8px;
  align-content: center;
  padding: 14px;
  background: var(--panel-light);
  text-align: center;
}

.keeper-choice button[data-selected="true"] {
  background: #fff7b0;
  outline: 3px solid var(--line);
  outline-offset: 2px;
}

.keeper-choice span {
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.keeper-choice b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1;
}

.keeper-choice strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 0.95;
}

.keeper-choice small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.vote-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.vote-meta + .vote-meta {
  margin-top: 4px;
}

.matchday-card {
  background:
    linear-gradient(135deg, rgba(37,78,134,0.14), rgba(181,43,37,0.12)),
    var(--cream);
}

.matchday-body {
  display: grid;
  gap: 14px;
}

.matchday-topline {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 2px solid var(--line);
  background: var(--panel-light);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.matchday-topline p {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.battle-badge {
  display: inline-block;
  flex: 0 0 auto;
  min-width: 148px;
  border: 2px solid var(--line);
  padding: 7px 9px;
  background: var(--panel);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #777;
}

.battle-badge[data-state="conflict"] {
  color: #fff;
  background: var(--red);
}

.battle-badge[data-state="agreement"] {
  color: #fff;
  background: var(--field);
}

.battle-badge[data-state="open"] {
  background: #fff7b0;
}

.matchday-battle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.battle-side,
.battle-vs,
.matchday-vote-box {
  min-width: 0;
  border: 2px solid var(--line);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.55), inset -2px -2px 0 rgba(0,0,0,0.32);
}

.battle-side {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 245px;
  padding: 16px;
  color: #fff;
}

.ai-side {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.1)),
    var(--blue);
}

.human-side {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12)),
    var(--field);
}

.battle-side-kicker {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.battle-side h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 0.95;
}

.battle-side p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.38;
}

.battle-percent {
  display: flex;
  gap: 4px;
  align-items: baseline;
  margin-top: 4px;
}

.battle-percent strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 0.82;
}

.battle-percent span {
  font-size: 1.3rem;
  font-weight: 700;
}

.battle-track {
  height: 18px;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.12) 1px, transparent 1px),
    rgba(255,255,255,0.22);
  background-size: 20% 100%;
}

.battle-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--yellow);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.45), inset -2px -2px 0 rgba(0,0,0,0.22);
  transition: width 180ms ease;
}

.battle-vs {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px 8px;
  background:
    repeating-linear-gradient(-45deg, rgba(16,16,16,0.09) 0 8px, transparent 8px 16px),
    var(--panel-light);
  text-align: center;
}

.battle-vs strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 0.95;
}

.battle-vs span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.matchday-vote-box {
  display: grid;
  grid-template-columns: minmax(230px, 0.56fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255,247,176,0.62), rgba(238,238,223,0.94)),
    var(--panel-light);
}

.matchday-vote-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.matchday-vote-copy h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 0.98;
}

.matchday-vote-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.matchday-vote-box .keeper-choice {
  gap: 12px;
  margin-top: 0;
}

.matchday-vote-box .keeper-choice button {
  min-height: 150px;
  border-width: 3px;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #777,
    4px 4px 0 rgba(0,0,0,0.22);
}

.matchday-vote-box .keeper-choice button:hover,
.matchday-vote-box .keeper-choice button[data-selected="true"] {
  background: #fff7b0;
  outline: 3px solid var(--line);
  outline-offset: 2px;
}

.matchday-vote-box .keeper-choice b {
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.matchday-vote-box .keeper-choice strong {
  font-size: 1.8rem;
}

.matchday-vote-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--line);
  padding-top: 10px;
}

.matchday-vote-footer .vote-meta {
  margin: 0;
}

.duel-panel {
  background:
    linear-gradient(135deg, rgba(37,78,134,0.1), rgba(181,43,37,0.08)),
    var(--cream);
}

.duel-scoreboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 10px;
}

.duel-scoreboard div {
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--panel-light);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.duel-scoreboard span,
.duel-table-wrap small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.duel-scoreboard strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 0.95;
}

.duel-table-wrap {
  margin-top: 14px;
}

.duel-table-wrap td strong {
  display: block;
  margin-bottom: 3px;
}

.duel-verdict {
  display: inline-block;
  min-width: 120px;
  border: 1px solid var(--line);
  padding: 5px 7px;
  background: #ddd0a1;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.duel-verdict.ai {
  color: #fff;
  background: var(--blue);
}

.duel-verdict.human {
  color: #fff;
  background: var(--field);
}

.duel-verdict.both {
  background: #b8dca9;
}

.duel-verdict.none {
  background: #d69a91;
}

.duel-verdict.pending {
  background: var(--panel-light);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 18px 0 0;
}

.metrics div {
  padding: 10px;
  border: 2px solid var(--line);
  background: var(--panel-light);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.metrics dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metrics dd {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 900;
}

.stand-metric dd {
  overflow-wrap: anywhere;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
}

.modal-backdrop[hidden] {
  display: none;
}

.win95-modal {
  width: min(680px, 100%);
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #6f6f68,
    8px 8px 0 rgba(0, 0, 0, 0.35);
}

.win95-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 5px 4px 9px;
  color: #fff;
  background: var(--blue);
}

.win95-titlebar h2 {
  margin: 0;
  color: #fff;
  font-family: "MS Sans Serif", Tahoma, Verdana, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
}

.win95-titlebar button {
  width: 28px;
  height: 24px;
  padding: 0;
  background: var(--panel-light);
  font-size: 0.8rem;
  line-height: 1;
}

.win95-body {
  padding: 14px;
}

.win95-body p {
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.segmented {
  display: flex;
  gap: 6px;
}

.chart-wrap {
  position: relative;
  height: 320px;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(31,111,63,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,111,63,0.08) 1px, transparent 1px),
    var(--panel-light);
  background-size: 20px 20px;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.chart-wrap canvas {
  display: block;
  max-width: 100% !important;
  width: 100% !important;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 2px solid var(--line);
  background: var(--panel-light);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel-light);
}

th,
td {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #74746c;
  border-bottom: 1px solid #74746c;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

td a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

th {
  color: #fff;
  background: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: #e8e8d8;
}

tbody tr:hover {
  background: #fff7b0;
}

a {
  color: #082f73;
  font-weight: 700;
  text-decoration-thickness: 1px;
}

.site-footer {
  width: min(1160px, calc(100% - 28px));
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.site-footer a,
.footer-link-button,
.win95-link-button {
  display: inline-block;
  border: 2px solid var(--line);
  padding: 8px 12px;
  color: var(--ink);
  background: var(--panel-light);
  text-decoration: none;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #777;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-link-button {
  font-size: inherit;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  border: 2px solid var(--line);
  padding: 16px;
  background: var(--cream);
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #8a8a82,
    7px 7px 0 rgba(0, 0, 0, 0.35);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin-bottom: 8px;
}

.cookie-consent p {
  max-width: 720px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.cookie-actions {
  display: grid;
  gap: 8px;
  min-width: 230px;
}

.cookie-actions a {
  display: block;
  border: 2px solid var(--line);
  padding: 9px 12px;
  color: var(--ink);
  background: var(--panel-light);
  text-align: center;
  text-decoration: none;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #777;
}

.legal-header h1 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
}

.legal-panel {
  line-height: 1.55;
}

.legal-panel h3 {
  margin: 18px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.legal-warning {
  padding: 10px 12px;
  border: 2px solid var(--line);
  background: #fff7b0;
  box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #8a8a82;
}

.legal-panel table {
  margin-top: 12px;
}

.legal-panel th {
  width: 220px;
}

.tag {
  display: inline-block;
  min-width: 70px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.tag.pro {
  background: #b8dca9;
}

.tag.contra {
  background: #d69a91;
}

.tag.neutral {
  background: #ddd0a1;
}

@media (max-width: 860px) {
  .site-header,
  .score-grid,
  .score-card,
  .score-card-body,
  .method-strip,
  .matchday-battle-grid,
  .matchday-vote-box {
    grid-template-columns: 1fr;
  }

  .score-card-head {
    min-height: 0;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .section-head,
  .segmented {
    align-items: stretch;
    flex-direction: column;
  }

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

  .keeper-choice {
    grid-template-columns: 1fr;
  }

  .battle-vs {
    min-height: 94px;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-actions {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 18px);
  }

  .brand-block,
  .score-card,
  .method-card,
  .panel,
  .site-footer {
    box-shadow:
      inset 2px 2px 0 var(--shadow-light),
      inset -2px -2px 0 var(--shadow-dark),
      2px 2px 0 rgba(0, 0, 0, 0.22);
  }

  .score-card {
    padding: 14px;
    overflow: hidden;
  }

  .score-card-head {
    gap: 8px;
  }

  .matchday-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .battle-badge {
    width: 100%;
  }

  .battle-side {
    min-height: 210px;
    padding: 13px;
  }

  .score-card-head h2 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .info-button {
    padding: 5px 9px;
  }

  .score-meter {
    justify-items: center;
  }

  .score-ring,
  .likelihood {
    width: min(200px, 100%);
  }

  .score-ring {
    height: min(200px, calc(100vw - 82px));
    max-height: 200px;
  }

  .score-ring span {
    font-size: clamp(3.8rem, 18vw, 4.8rem);
  }

  .metrics,
  .keeper-metrics,
  .duel-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fixture-row {
    grid-template-columns: 1fr auto;
  }

  .fixture-row small {
    grid-column: 1 / -1;
  }

  .cookie-consent {
    right: 9px;
    bottom: 9px;
    left: 9px;
    width: calc(100% - 18px);
    padding: 12px;
  }
}
