:root {
  --ink: #12263a;
  --muted: #5e6b78;
  --paper: #f4f2ec;
  --surface: #ffffff;
  --line: #d7d9d6;
  --green: #0a6b55;
  --green-light: #dff2eb;
  --navy: #173f5f;
  --azure: #0067b1;
  --orange: #e7812c;
  --red: #c43131;
  --red-light: #fdecec;
  --demo: #7b4a14;
  --demo-light: #fff0d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
  font-size: 10pt;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.compact-label { display: none; }
.search-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.club-country-label { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 10px clamp(20px, 5vw, 72px);
  background: rgba(244, 242, 236, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  object-fit: contain;
}
.brand-name > span {
  color: var(--azure);
}
nav { display: flex; min-width: 0; gap: 7px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a,
nav button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 9.5pt;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover, nav a:focus-visible, nav button:hover, nav button:focus-visible { color: #fff; background: var(--green); border-color: var(--green); }
main { overflow: hidden; }
[id] { scroll-margin-top: 104px; }
.primary-actions {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px auto 0;
}
.primary-action {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-items: center;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.primary-action > span { display: grid; width: 34px; height: 34px; grid-row: 1 / 3; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 700; }
.primary-action strong { align-self: end; color: var(--navy); }
.primary-action small { align-self: start; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.primary-action:hover, .primary-action:focus-visible { border-color: var(--green); box-shadow: 0 5px 16px rgba(18, 38, 58, .08); }
.primary-action.active { background: var(--green-light); border-color: #b7d9ca; }
.hero,
.ranking-section,
.next-round-section,
.matches-section,
.scorers-section,
.points-section,
.forecast-section,
.country-forecast-section,
.explainer,
.app-section,
.source-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  min-height: 560px;
  padding: 72px 0 88px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(32px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
h2 { margin-bottom: 10px; font-size: clamp(24px, 3.3vw, 40px); line-height: 1.1; }
h3 { margin-bottom: 8px; font-size: 13pt; }
.intro { max-width: 690px; color: var(--muted); font-size: 12pt; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.button.primary { color: #fff; background: var(--navy); }
.button.secondary { color: var(--navy); background: transparent; }
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.scoreboard {
  position: relative;
  padding: 30px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: 16px 16px 0 var(--green-light);
}
.scoreboard::after {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 54px;
  height: 54px;
  content: "";
  background: var(--orange);
  border-radius: 50%;
}
.scoreboard-label { display: block; color: #bfd8ea; text-transform: uppercase; letter-spacing: .08em; }
.scoreboard > strong { display: block; margin: 10px 0 20px; font-size: 30pt; }
.score-line { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.25); }
.scoreboard small { display: block; margin-top: 16px; color: #bfd8ea; }
.ranking-section {
  margin-top: 22px;
  padding: 30px 36px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 48px;
  align-items: end;
}
.section-heading > :last-child { justify-self: start; }
.ranking-section .section-heading { grid-template-columns: minmax(0, 1fr) auto; }
.ranking-section .section-heading > :last-child { justify-self: end; }
.mode-switch, .tabs { display: inline-flex; padding: 4px; background: #eceeea; border-radius: 5px; }
.mode-button, .tab {
  min-height: 42px;
  padding: 9px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
}
.mode-button.active, .tab.active { color: #fff; background: var(--green); }
.status-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 10px 13px;
  border-left: 4px solid var(--green);
  background: var(--green-light);
}
.status-card[hidden] { display: none; }
.status-card p { max-width: 720px; margin: 0; color: #31584d; }
.status-card.actual-status.status-warning { background: var(--red-light); border-left-color: var(--red); }
.status-card.actual-status.status-warning p { color: #713333; }
.demo-status { background: var(--red-light); border-left-color: var(--red); }
.demo-status p { color: #713333; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; background: var(--green); border-radius: 50%; }
.actual-status.status-warning .status-dot { background: var(--red); }
.demo-status .status-dot { background: var(--red); }
.demo-status { border-color: var(--orange); background: var(--demo-light); }
.demo-status p { color: var(--demo); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 12px; }
.ranking-tab-group { display: flex; align-items: center; gap: 8px; }
.ranking-state-indicator { display: grid; width: 30px; height: 30px; place-items: center; }
.ranking-state-indicator[hidden] { display: none; }
.ranking-state-indicator .status-dot { width: 12px; height: 12px; margin: 0; box-shadow: 0 0 0 4px rgba(10, 107, 85, .12); }
.ranking-state-indicator.status-warning .status-dot { box-shadow: 0 0 0 4px rgba(196, 49, 49, .12); }
.ranking-tools { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.simulation-view-control[hidden] { display: none; }
.simulation-view-control button {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--navy);
  background: #fff7e9;
  border: 1px solid #e7b66e;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.simulation-view-control button:hover, .simulation-view-control button:focus-visible { color: #fff; background: var(--navy); border-color: var(--navy); }
.search-label input {
  width: min(280px, 46vw);
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.preference-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  background: #f4f6f3;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.preference-controls[hidden] { display: none; }
.preference-controls { justify-content: space-between; }
.preference-field[hidden] { display: none; }
.preference-controls label { font-weight: 700; }
.preference-field { display: flex; align-items: center; gap: 8px; }
.preference-controls select,
.preference-controls button {
  min-height: 38px;
  padding: 7px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.preference-controls button { color: #fff; background: var(--green); border-color: var(--green); font-weight: 700; }
.table-scroll-hint { margin: 0 0 8px; color: var(--muted); font-size: 9pt; }
.table-wrap {
  max-height: min(68vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 5px;
  scrollbar-gutter: stable;
}
.table-wrap:focus-visible { outline: 3px solid rgba(231, 129, 44, .45); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; }
caption { position: absolute; overflow: hidden; width: 1px; height: 1px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { position: sticky; top: 0; z-index: 2; color: var(--muted); background: #f4f6f3; box-shadow: 0 1px 0 var(--line); font-size: 9pt; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf8; }
.country-summary-row.is-expanded-country > td {
  position: sticky;
  top: var(--ranking-header-height, 52px);
  z-index: 1;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 5px 12px rgba(18, 38, 58, .07);
}
.country-summary-row.is-expanded-country > td:first-child { box-shadow: inset 4px 0 0 var(--green), 0 1px 0 var(--line), 0 5px 12px rgba(18, 38, 58, .07); }
.preferred-row { background: #edf7f2; }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.simulated-total { color: var(--green); font-weight: 700; }
.simulated-total small { display: block; color: var(--muted); font-size: 7.5pt; font-weight: 400; text-transform: uppercase; }
.current-season-score { color: var(--azure); font-weight: 700; }
.country-places { min-width: 104px; color: var(--navy); font-weight: 700; }
.country-places-marker { margin-left: 2px; color: var(--orange); font-size: 8pt; }
.simulated-season { color: var(--green); }
.simulated-season small { display: block; color: var(--muted); font-size: 7.5pt; font-weight: 400; text-transform: uppercase; }
.rank { color: var(--green); font-weight: 700; }
.entity { font-weight: 700; }
.country-profile-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 0; color: var(--ink); background: transparent; border: 0; font: inherit; font-weight: 700; text-align: left; }
.country-profile-toggle:hover { color: var(--green); }
.country-profile-action { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--green); font-size: 11pt; }
.country-profile-action > span { display: inline-block; transition: transform .18s ease; }
.country-profile-toggle[aria-expanded="true"] .country-profile-action > span { transform: rotate(180deg); }
.country-profile-row td { padding: 0; background: #f4f8f6; }
.country-profile-panel { padding: 20px; border-left: 4px solid var(--green); }
.country-profile-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.country-profile-header p, .country-profile-scorers-heading p { margin: 3px 0 0; color: var(--muted); font-size: 8.5pt; font-weight: 400; }
.country-profile-header small { color: var(--muted); text-align: right; }
.country-profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.country-profile-stats article { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.country-profile-stats span, .country-profile-stats small { display: block; color: var(--muted); font-size: 8.5pt; }
.country-profile-stats strong { display: block; margin: 3px 0; color: var(--navy); font-size: 16pt; }
.country-profile-stats .movement { font-size: inherit; }
.country-participation-note { margin: 10px 0 0; color: var(--muted); font-size: 8.5pt; }
#movement-heading, .country-movement { width: 82px; white-space: nowrap; }
.country-profile-clubs, .country-profile-results { margin-top: 18px; }
.country-profile-subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.country-profile-subheading small { color: var(--muted); }
.country-club-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.country-club-grid article { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 9px; align-items: center; padding: 10px 11px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.country-club-grid .country-club-rank { grid-row: 1 / 3; color: var(--green); font-weight: 700; }
.country-club-grid article > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-club-grid article > small { color: var(--muted); font-size: 8pt; }
.country-club-grid article > b { grid-column: 3; grid-row: 1 / 3; color: var(--navy); font-size: 8.5pt; white-space: nowrap; }
.country-results-list { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.country-result-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 126px; gap: 12px; align-items: center; min-height: 52px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.country-result-row:last-child { border-bottom: 0; }
.country-result-meta { color: var(--muted); font-size: 8pt; text-transform: uppercase; }
.country-result-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.country-result-teams strong:first-child { text-align: right; }
.country-result-teams b { min-width: 44px; padding: 4px 5px; color: #fff; background: var(--ink); border-radius: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.country-result-no-video { color: var(--muted); font-size: 8pt; text-align: right; }
.country-result-video { width: 126px; }
.country-results-more { margin-top: 8px; }
.country-results-more summary { width: fit-content; color: var(--green); cursor: pointer; font-weight: 700; }
.country-results-more .country-results-list { margin-top: 8px; }
.country-history { margin-top: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.country-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.country-history-heading small { color: var(--muted); }
.country-history-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 0; }
.country-history-grid div { padding: 10px; background: #f4f6f3; border-radius: 3px; text-align: center; }
.country-history-grid .current-season { color: #fff; background: var(--green); }
.country-history-grid dt { color: var(--muted); font-size: 8.5pt; }
.country-history-grid .current-season dt { color: #d8eee5; }
.country-history-grid dd { margin: 3px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.country-simulator { margin-top: 18px; padding: 16px; background: #eef4f7; border: 1px solid #cbd9e1; border-radius: 4px; }
.country-simulator-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.country-simulator-heading p { margin: 3px 0 0; color: var(--muted); font-size: 8.5pt; }
.country-simulation-reset { flex: 0 0 auto; padding: 6px 9px; color: var(--green); background: #fff; border: 1px solid #b7d9ca; border-radius: 4px; font-weight: 700; }
.country-perfect-result { margin: 14px 0 0; padding: 12px 14px; color: #fff; background: var(--green); border-left: 5px solid var(--orange); border-radius: 4px; }
.country-simulation-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.country-simulation-summary div { padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.country-simulation-summary span, .country-simulation-summary small { display: block; color: var(--muted); font-size: 8pt; }
.country-simulation-summary strong { display: block; margin-top: 3px; color: var(--navy); font-size: 13pt; font-variant-numeric: tabular-nums; }
.country-simulation-summary .simulation-rank { color: #fff; background: var(--navy); border-color: var(--navy); }
.country-simulation-summary .simulation-rank span { color: #d9e5ec; }
.country-simulation-summary .simulation-rank strong { color: #fff; }
.country-fixture-groups { display: grid; gap: 8px; margin-top: 12px; }
.country-club-fixtures { background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.country-club-fixtures summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 12px; color: var(--green); cursor: pointer; }
.country-club-fixtures summary > span { display: flex; align-items: baseline; gap: 8px; }
.country-club-fixtures summary small { color: var(--muted); font-weight: 400; }
.country-fixture-list { border-top: 1px solid var(--line); }
.club-progression-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 12px; color: #244c3e; background: var(--green-light); border-bottom: 1px solid #b7d9ca; }
.club-progression-summary span { color: #31584d; font-size: 8pt; text-align: right; }
.country-fixture-row { display: grid; grid-template-columns: 120px 1fr 208px; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.country-fixture-row:last-child { border-bottom: 0; }
.country-fixture-row.key-rival-fixture { background: #fff8ec; box-shadow: inset 4px 0 0 var(--orange); }
.fixture-date { color: var(--muted); font-size: 8.5pt; text-transform: capitalize; }
.fixture-opponent strong, .fixture-opponent small { display: block; }
.fixture-opponent small { margin-top: 2px; color: var(--muted); font-size: 8pt; }
.fixture-opponent .fixture-model-probabilities { margin-top: 5px; color: var(--green); font-weight: 700; line-height: 1.35; }
.fixture-opponent .fixture-rival-badge { display: inline-block; margin-top: 5px; padding: 2px 6px; color: #7b4a14; background: #ffe8c6; border: 1px solid #efbf78; border-radius: 3px; font-size: 7.5pt; font-weight: 700; }
.fixture-prediction { min-height: 34px; padding: 5px 7px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; }
.country-simulation-note { margin: 12px 0 0; color: var(--muted); font-size: 8pt; }
.country-profile-scorers { margin-top: 18px; }
.country-profile-scorers-heading { margin-bottom: 10px; }
.country-scorers-list { display: grid; gap: 1px; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: 4px; list-style: none; }
.country-scorers-list li { display: grid; grid-template-columns: 38px minmax(150px, 1.25fr) minmax(130px, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; font-weight: 400; }
.country-scorers-rank { color: var(--green); font-weight: 700; }
.country-scorers-player { color: var(--ink); font-weight: 700; }
.country-scorers-club { color: var(--muted); }
.competition-tag { padding: 3px 6px; color: var(--navy); background: #e8eef3; border-radius: 3px; font-size: 8pt; white-space: nowrap; }
.country-scorers-goals { color: var(--green); font-weight: 700; white-space: nowrap; }
.country-scorers-empty { margin: 0; color: var(--muted); font-weight: 400; }
.country-scorers-ties { margin-top: 10px; }
.country-scorers-ties summary { width: fit-content; color: var(--green); cursor: pointer; font-weight: 700; }
.country-scorers-ties summary:hover, .country-scorers-ties summary:focus-visible { text-decoration: underline; }
.country-scorers-list-extra { margin-top: 10px; }
.club-select-button { padding: 0; color: var(--ink); background: transparent; border: 0; font-weight: 700; text-align: left; }
.club-select-button:hover, .club-select-button:focus-visible { color: var(--green); text-decoration: underline; }
.preferred-label { display: inline-block; margin-left: 7px; padding: 2px 5px; color: var(--green); background: #d9eee4; border-radius: 3px; font-size: 8pt; }
.movement { display: inline-block; min-width: 30px; font-weight: 700; }
.movement.up { color: #087647; }
.movement.down { color: #b5432f; }
.movement.equal { color: var(--muted); }
.table-footnote { margin: 10px 0 0; color: var(--muted); font-size: 8.5pt; line-height: 1.45; }
.table-footnote[hidden] { display: none; }
.table-footnote sup { color: var(--orange); font-weight: 700; }
.table-note { margin: 12px 0 0; color: var(--muted); font-size: 9pt; }
.next-round-section { padding: 92px 0 24px; }
.next-round-heading { align-items: end; }
.next-round-dutch { margin-top: 28px; overflow: hidden; background: var(--surface); border: 1px solid #abd3c3; border-radius: 7px; box-shadow: inset 5px 0 0 var(--green); }
.next-round-subheading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; background: var(--green-light); border-bottom: 1px solid #abd3c3; }
.next-round-subheading strong, .next-round-subheading span { display: block; }
.next-round-subheading > div > span { margin-top: 2px; color: var(--muted); font-size: 8.5pt; }
.nl-badge { display: inline-grid; min-width: 30px; min-height: 24px; place-items: center; padding: 3px 7px; color: #fff; background: var(--green); border-radius: 3px; font-size: 8pt; font-weight: 700; }
.next-round-dutch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 68px; }
.next-round-match { display: grid; height: 68px; min-height: 68px; grid-template-columns: 104px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 11px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-round-match:nth-child(even) { border-right: 0; }
.next-round-match:nth-last-child(-n + 2) { border-bottom: 0; }
.next-round-meta { display: grid; height: 40px; grid-template-rows: 17px 21px; align-content: center; }
.next-round-meta span, .next-round-meta strong { display: block; }
.next-round-meta span { color: var(--muted); font-size: 8pt; text-transform: capitalize; }
.next-round-meta strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.next-round-teams { display: grid; height: 28px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 7px; align-items: center; line-height: 1.25; }
.next-round-teams > :first-child { text-align: right; }
.next-round-teams b, .next-round-full-row b { color: var(--muted); font-weight: 400; }
.next-round-nl-team { color: var(--green); }
.next-round-competition { display: inline-grid; width: 40px; height: 24px; min-height: 24px; place-items: center; padding: 3px 5px; color: var(--navy); background: #e8eef3; border-radius: 3px; font-size: 8pt; font-weight: 700; line-height: 1; text-align: center; }
.next-round-all { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.next-round-all > summary { padding: 14px 17px; color: var(--green); cursor: pointer; font-weight: 700; }
.next-round-all > summary span { color: var(--muted); font-weight: 400; }
.next-round-all[open] > summary { border-bottom: 1px solid var(--line); }
.next-round-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.next-round-day { min-width: 0; border-right: 1px solid var(--line); }
.next-round-day:last-child { border-right: 0; }
.next-round-day > h3 { margin: 0; padding: 13px 14px; color: #fff; background: var(--navy); font-size: 11pt; text-transform: capitalize; }
.next-round-competition-group h4 { margin: 0; padding: 9px 12px; color: var(--green); background: #eef2f3; border-bottom: 1px solid var(--line); font-size: 9pt; }
.next-round-full-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 30px; gap: 8px; align-items: center; min-height: 48px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.next-round-full-row:last-child { border-bottom: 0; }
.next-round-full-row.is-dutch { background: var(--green-light); box-shadow: inset 4px 0 0 var(--green); }
.next-round-full-row time { color: var(--navy); font-size: 8.5pt; font-weight: 700; font-variant-numeric: tabular-nums; }
.next-round-full-row > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; align-items: center; font-size: 8.5pt; }
.next-round-full-row > div > :first-child { text-align: right; }
.next-round-marker { display: inline-grid; width: 30px; min-height: 24px; place-items: center; justify-self: end; }
.next-round-empty { margin: 0; padding: 18px; color: var(--muted); }
.next-round-note { margin: 10px 0 0; color: var(--muted); font-size: 8.5pt; }
.matches-section { padding: 100px 0 38px; }
.matches-heading { align-items: end; }
.matches-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 6px; }
.matches-summary div { min-height: 94px; padding: 18px 20px; background: var(--surface); }
.matches-summary strong, .matches-summary span { display: block; }
.matches-summary strong { color: var(--navy); font-size: 21pt; line-height: 1.1; font-variant-numeric: tabular-nums; }
.matches-summary span { margin-top: 6px; color: var(--muted); }
.matches-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.match-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.match-filter { min-height: 38px; padding: 7px 12px; color: var(--navy); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; font-weight: 700; }
.match-filter:hover, .match-filter:focus-visible { border-color: var(--green); }
.match-filter.active { color: #fff; background: var(--green); border-color: var(--green); }
.match-search-label input { width: min(260px, 42vw); min-height: 40px; padding: 8px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.matches-status { margin: 12px 0; color: var(--muted); }
.matches-list { display: grid; gap: 20px; }
.competition-match-group { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.competition-match-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: #fff; background: var(--navy); }
.competition-match-heading > div { display: flex; align-items: center; gap: 12px; }
.competition-match-heading span { display: inline-grid; min-width: 46px; height: 30px; place-items: center; color: var(--navy); background: #fff; border-radius: 3px; font-size: 8pt; font-weight: 700; }
.competition-match-heading h3 { margin: 0; font-size: 15pt; }
.competition-match-heading > strong { color: #bfd8ea; font-size: 9pt; }
.matchday-groups { display: grid; grid-template-columns: 1fr; gap: 0; }
.matchday-group { min-width: 0; border-bottom: 1px solid var(--line); }
.matchday-group:last-child { border-bottom: 0; }
.matchday-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: #eef2f3; border-bottom: 1px solid transparent; cursor: pointer; list-style: none; }
.matchday-heading::-webkit-details-marker { display: none; }
.matchday-heading:hover, .matchday-heading:focus-visible { background: #e4ebea; }
.matchday-group[open] > .matchday-heading { border-bottom-color: var(--line); }
.matchday-label { display: inline-flex; align-items: center; gap: 9px; }
.matchday-icon { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 12pt; font-weight: 700; line-height: 1; }
.matchday-icon::before { content: "+"; transform: translateY(-1px); }
.matchday-group[open] .matchday-icon::before { content: "−"; }
.matchday-heading strong { color: var(--green); }
.matchday-heading .matchday-date { color: var(--muted); font-size: 8pt; text-align: right; }
.match-row { display: grid; grid-template-columns: minmax(105px, 1fr) 62px minmax(105px, 1fr) 152px; gap: 9px; align-items: center; min-height: 62px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #f8faf8; }
.match-team { min-width: 0; overflow-wrap: anywhere; }
.home-team { text-align: right; }
.away-team { text-align: left; }
.match-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px; align-items: center; padding: 6px 7px; color: #fff; background: var(--ink); border-radius: 4px; font-size: 12pt; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.match-score span { color: #aebbc6; font-weight: 400; }
.match-video-cell { display: flex; justify-content: flex-end; }
.match-video-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 6px 9px; color: #fff; background: var(--azure); border: 0; border-radius: 4px; font-size: 8pt; font-weight: 700; text-align: center; }
.match-video-button:hover, .match-video-button:focus-visible { background: var(--navy); }
.match-video-button span { font-size: 7pt; }
.match-video-unavailable { color: #89939c; font-size: 8pt; text-align: right; }
.matches-empty { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.matches-empty p { margin: 5px 0 0; color: var(--muted); }
.matches-note { margin: 16px 0 0; padding: 14px 16px; color: #31584d; background: var(--green-light); border-left: 4px solid var(--green); }
.video-dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; color: var(--ink); background: var(--surface); border: 0; border-radius: 8px; box-shadow: 0 28px 70px rgba(18, 38, 58, .35); }
.video-dialog::backdrop { background: rgba(18, 38, 58, .72); }
.video-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.video-dialog-header h2 { margin: 2px 0 4px; font-size: 18pt; }
.video-dialog-header p { margin: 0; color: var(--muted); }
.video-dialog-kicker { color: var(--green); font-size: 8pt; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.video-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; padding: 0; color: var(--ink); background: #eef0ed; border: 1px solid var(--line); border-radius: 50%; font-size: 19pt; line-height: 1; }
.video-frame-wrap { position: relative; aspect-ratio: 16 / 9; background: #07131d; }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-privacy-note { margin: 0; padding: 12px 22px 16px; color: var(--muted); font-size: 8.5pt; }
.scorers-section { padding: 100px 0 48px; }
.scorers-heading { align-items: end; }
.scorers-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 18px; margin-top: 28px; }
.scorer-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 6px; }
.scorer-card:nth-child(2) { border-top-color: var(--orange); }
.scorer-card:nth-child(3) { border-top-color: var(--green); }
.scorer-card-header { display: flex; height: 96px; min-height: 96px; flex-direction: column; justify-content: center; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.scorer-card-header span { display: block; color: var(--muted); font-size: 9pt; }
.scorer-card-header h3 { margin: 4px 0 0; font-size: 16pt; }
.scorer-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.scorer-list li { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; min-height: 82px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.scorer-position { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-weight: 700; }
.scorer-name { display: block; color: var(--ink); }
.scorer-club { display: block; margin-top: 2px; color: var(--muted); font-size: 9pt; }
.scorer-goals { color: var(--green); font-size: 18pt; line-height: 1; text-align: right; }
.scorer-goals small { display: block; margin-top: 5px; color: var(--muted); font-size: 8pt; font-weight: 400; }
.scorer-card details { background: #f7f8f6; }
.scorer-card summary { padding: 16px 22px; color: var(--green); cursor: pointer; font-weight: 700; }
.scorer-card details[open] summary { border-bottom: 1px solid var(--line); }
.scorer-card .scorer-list-extra { background: #fff; }
.scorer-card .scorer-list-extra li:last-child { border-bottom: 0; }
.scorer-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; color: var(--muted); font-size: 8.5pt; border-top: 1px solid var(--line); }
.scorer-source a { color: var(--green); font-weight: 700; }
.scorers-note { margin: 16px 0 0; color: var(--muted); font-size: 9pt; }
@media (min-width: 761px) {
  .scorer-list li { height: 110px; min-height: 110px; }
}
.points-section { padding: 100px 0 54px; }
.section-intro { max-width: 520px; margin: 0; color: var(--muted); }
.points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.result-card { padding: 24px; background: var(--surface); border-top: 4px solid var(--green); }
.result-card > span { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.result-card > strong { display: block; margin: 12px 0; color: var(--green); font-size: 27pt; line-height: 1; }
.result-card p { margin: 0; color: var(--muted); }
.draw-card { border-color: var(--orange); }
.draw-card > strong { color: var(--orange); }
.loss-card { border-color: var(--muted); }
.loss-card > strong { color: var(--muted); }
.rule-note { margin: 16px 0 0; padding: 14px 16px; color: #5e4a27; background: #fff7e9; border-left: 4px solid var(--orange); }
.forecast-section { padding: 54px; background: var(--navy); border-radius: 8px; color: #fff; }
.forecast-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 32px; }
.forecast-heading h2 { max-width: 700px; }
.forecast-heading p:not(.eyebrow) { max-width: 720px; color: #bfd8ea; }
.forecast-badge { justify-self: end; padding: 7px 10px; color: #ffe8d5; background: rgba(231,129,44,.2); border: 1px solid rgba(231,129,44,.55); border-radius: 4px; font-weight: 700; }
.forecast-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(420px, 1.3fr); gap: 34px; align-items: start; margin-top: 30px; }
.forecast-controls { display: grid; align-content: start; gap: 8px; }
.forecast-controls label { margin-top: 7px; color: #bfd8ea; font-weight: 700; }
.forecast-controls select, .forecast-controls input { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #9eb3c2; border-radius: 4px; }
.forecast-output { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; }
.forecast-output > div { display: flex; min-height: 108px; flex-direction: column; justify-content: center; padding: 20px; background: rgba(18,38,58,.96); }
.forecast-output span { display: block; color: #bfd8ea; }
.forecast-output strong { display: block; margin-top: 8px; font-size: 24pt; line-height: 1; }
.forecast-output .forecast-highlight { background: var(--green); }
.forecast-output .forecast-highlight span { color: #dff2eb; }
.forecast-output > p { grid-column: 1 / -1; margin: 0; padding: 16px 20px; color: #d8e3eb; background: rgba(18,38,58,.96); }
.forecast-method { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); }
.forecast-method summary { cursor: pointer; font-weight: 700; }
.forecast-method p { max-width: 900px; margin: 10px 0 0; color: #bfd8ea; }
.country-forecast-section { margin-top: 24px; padding: 54px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: 8px; }
.country-forecast-heading p:not(.eyebrow) { max-width: 720px; color: var(--muted); }
.country-forecast-badge { justify-self: end; padding: 7px 10px; color: #176747; background: #e5f4ed; border: 1px solid #9acdb8; border-radius: 4px; font-weight: 700; }
.country-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.country-presets button { min-height: 40px; padding: 8px 14px; color: var(--green); background: #fff; border: 1px solid var(--green); border-radius: 4px; cursor: pointer; font-weight: 700; }
.country-presets button:hover, .country-presets button.is-active { color: #fff; background: var(--green); }
.country-presets .country-perfect-preset { color: #fff; background: var(--navy); border-color: var(--navy); }
.country-presets .country-perfect-preset:hover, .country-presets .country-perfect-preset:focus-visible { background: var(--orange); border-color: var(--orange); }
.country-forecast-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr); gap: 34px; align-items: start; margin-top: 20px; }
.country-forecast-controls { display: grid; align-content: start; gap: 9px; }
.country-forecast-controls > label, .country-fields label { color: var(--ink); font-weight: 700; }
.country-forecast-controls select, .country-forecast-controls input { width: 100%; min-height: 42px; margin-top: 6px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #9eb3c2; border-radius: 4px; }
.country-forecast-controls > select { margin-top: 0; }
.country-forecast-apply { min-height: 42px; padding: 9px 14px; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: 4px; font-weight: 700; }
.country-forecast-apply:hover, .country-forecast-apply:focus-visible { background: var(--navy); border-color: var(--navy); }
.country-forecast-apply-status { min-height: 20px; margin: 0; color: var(--green); font-size: 8.5pt; font-weight: 700; }
.country-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 9px; }
.country-losses { margin: 4px 0 0; color: var(--muted); }
.country-losses strong { color: var(--ink); }
.country-forecast-output { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 5px; }
.country-forecast-output > div { display: flex; min-height: 96px; flex-direction: column; justify-content: center; padding: 18px; background: var(--surface); }
.country-forecast-output span { display: block; color: var(--muted); }
.country-forecast-output strong { display: block; margin-top: 8px; color: var(--ink); font-size: 22pt; line-height: 1; }
.country-forecast-output .country-points-highlight { background: #e5f4ed; }
.country-forecast-output .country-points-highlight strong { color: var(--green); }
.country-forecast-output .country-rank-highlight { background: var(--green); }
.country-forecast-output .country-rank-highlight span { color: #dff2eb; }
.country-forecast-output .country-rank-highlight strong { color: #fff; }
.country-forecast-output .country-movement { background: #dcebe5; }
.country-forecast-output .country-movement strong { color: var(--green); }
.country-forecast-output > p { grid-column: 1 / -1; margin: 0; padding: 15px 18px; color: #d8e3eb; background: var(--navy); }
.country-forecast-note { margin: 18px 0 0; padding: 14px 16px; color: #305c49; background: #f1f8f5; border-left: 4px solid var(--green); }
.country-forecast-method { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.country-forecast-method summary { cursor: pointer; font-weight: 700; }
.country-forecast-method p { max-width: 900px; margin: 10px 0 0; color: var(--muted); }
.explainer { padding: 110px 0; }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.explain-grid article { display: flex; min-height: 210px; flex-direction: column; padding: 26px; background: var(--surface); border-top: 4px solid var(--navy); }
.explain-grid article > span { display: block; margin-bottom: 34px; color: var(--orange); font-weight: 700; }
.explain-grid p { margin-bottom: 0; color: var(--muted); }
.ticket-explainer, .points-explainer, .progression-explainer { margin-top: 26px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.ticket-explainer { border-top: 6px solid var(--orange); }
.ticket-explainer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ticket-explainer-heading > span { flex: 0 0 auto; padding: 5px 9px; color: #7b4a14; background: var(--demo-light); border-radius: 3px; font-weight: 700; }
.ticket-explainer > p, .points-explainer > p, .progression-explainer > p { max-width: 960px; color: var(--muted); }
.allocation-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.allocation-comparison article { padding: 20px; background: #f4f6f3; border: 1px solid var(--line); border-radius: 5px; }
.allocation-comparison .allocation-new { background: var(--green-light); border-color: #b7d9ca; }
.allocation-comparison article > span { display: block; margin-bottom: 5px; color: var(--green); font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.allocation-comparison article > strong { display: block; color: var(--navy); font-size: 12pt; }
.allocation-comparison ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.allocation-comparison li + li { margin-top: 6px; }
.timing-note, .points-threshold-note { margin: 0; padding: 13px 15px; color: #31584d !important; background: #f1f8f5; border-left: 4px solid var(--green); }
.points-explainer { border-top: 6px solid var(--navy); }
.points-rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.points-rule-grid article, .progression-grid article { padding: 16px; background: #f4f6f3; border-radius: 4px; }
.points-rule-grid strong, .points-rule-grid span, .progression-grid strong, .progression-grid span { display: block; }
.points-rule-grid strong, .progression-grid strong { color: var(--green); font-size: 13pt; }
.points-rule-grid span, .progression-grid span { margin-top: 5px; color: var(--muted); }
.progression-explainer { border-top: 6px solid var(--green); }
.progression-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.bonus-table-wrap { overflow-x: auto; margin: 22px 0 16px; border: 1px solid var(--line); border-radius: 5px; }
.bonus-table { min-width: 640px; background: #fff; }
.bonus-table th, .bonus-table td { padding: 10px 12px; text-align: right; }
.bonus-table th:first-child { text-align: left; }
.bonus-table thead th { position: static; color: #fff; background: var(--navy); }
.bonus-table tbody th { color: var(--green); background: #f4f6f3; }
.explanation-sources { margin-bottom: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 8.5pt; }
.explanation-sources a { color: var(--green); font-weight: 700; }
.app-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; margin-bottom: 92px; padding: 46px 52px; color: #fff; background: var(--navy); border-radius: 8px; }
.app-copy h2 { margin-bottom: 12px; }
.app-copy > p:not(.eyebrow):not(.app-status) { max-width: 620px; color: #d3e0e9; }
.app-status { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #bcd5e5; font-weight: 700; }
.app-status span { width: 9px; height: 9px; flex: 0 0 9px; background: #33c995; border-radius: 50%; box-shadow: 0 0 0 4px rgba(51, 201, 149, .14); }
.app-downloads { display: grid; align-content: center; gap: 10px; }
.app-downloads button { display: grid; gap: 2px; min-height: 64px; padding: 11px 16px; color: var(--navy); background: #fff; border: 1px solid rgba(255, 255, 255, .72); border-radius: 5px; cursor: pointer; text-align: left; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
.app-downloads button:hover { transform: translateY(-1px); background: #f4fbff; border-color: #8bd6c7; }
.app-downloads .app-share-button { color: #fff; background: #0879c9; border-color: #2091dc; }
.app-downloads .app-share-button:hover { background: #096eb2; border-color: #55ace5; }
.app-downloads button span { font-size: 8.5pt; }
.app-downloads button strong { font-size: 11pt; }
.app-downloads small { color: #bcd5e5; }
.pwa-action-status { min-height: 18px; margin: 0; color: #9ce4d0; font-weight: 700; }
.source-section { padding: 0 0 100px; }
.source-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.source-card:last-child { border-bottom: 1px solid var(--line); }
.source-card p { margin: 5px 0 0; color: var(--muted); }
.source-card a { color: var(--green); font-weight: 700; }
.status-badge { padding: 5px 9px; color: var(--demo); background: var(--demo-light); border-radius: 3px; font-weight: 700; }
footer { padding: 32px clamp(20px, 5vw, 72px); color: #d8e3eb; background: var(--ink); }
footer p { max-width: 1120px; margin: 0 auto 8px; }
footer p:last-child { margin-bottom: 0; color: #9fb0bd; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(231, 129, 44, .45); outline-offset: 2px; }

@media (max-width: 980px) {
  .site-header { gap: 20px; }
  nav { gap: 16px; }
  nav .nav-secondary { display: none; }
  .section-heading, .forecast-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading > :last-child,
  .ranking-section .section-heading > :last-child,
  .forecast-badge,
  .country-forecast-badge { justify-self: start; }
  .forecast-layout, .country-forecast-layout, .app-section { grid-template-columns: 1fr; }
  .points-rule-grid { grid-template-columns: repeat(2, 1fr); }
  .app-section { gap: 28px; }
  .next-round-list { grid-template-columns: 1fr; }
  .next-round-day { border-right: 0; border-bottom: 1px solid var(--line); }
  .next-round-day:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  :root { --mobile-header-height: 113px; }
  html { scroll-behavior: auto; }
  main { overflow: visible; }
  .primary-actions { width: calc(100% - 20px); gap: 6px; }
  .primary-action { display: flex; min-height: 54px; justify-content: center; gap: 7px; padding: 8px 6px; text-align: center; }
  .primary-action > span { width: 26px; height: 26px; flex: 0 0 26px; }
  .primary-action small { display: none; }
  .primary-action strong { font-size: 8.5pt; }
  [id] { scroll-margin-top: 126px; }
  .wide-label { display: none; }
  .compact-label { display: inline; }
  .site-header { min-height: 0; align-items: stretch; flex-direction: column; gap: 9px; padding: 10px 12px 9px; background: rgba(244, 242, 236, .98); }
  .brand { min-height: 44px; align-self: center; gap: 8px; font-size: clamp(15px, 4.4vw, 19px); }
  .brand-name { display: inline; }
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  nav { display: grid; width: 100%; grid-template-columns: repeat(5, minmax(0, 1fr)); flex: none; gap: 5px; overflow: visible; }
  nav a, nav button { min-width: 0; min-height: 40px; padding: 7px 2px; border-radius: 7px; font-size: clamp(10px, 2.9vw, 12px); }
  .hero, .next-round-section, .matches-section, .scorers-section, .points-section, .explainer, .source-section { width: calc(100% - 24px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: auto; padding: 38px 0 44px; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .button { width: 100%; }
  .scoreboard { max-width: 100%; padding: 22px; box-shadow: 6px 6px 0 var(--green-light); }
  .scoreboard::after { width: 32px; height: 32px; top: -6px; right: -6px; }
  .ranking-section { width: calc(100% - 24px); margin-top: 12px; padding: 14px 10px 16px; border: 1px solid var(--line); border-radius: 10px; }
  .section-heading, .forecast-heading, .status-card { grid-template-columns: 1fr; }
  .section-heading h2, .forecast-heading h2, .explainer > div > h2, .app-copy h2 { font-size: 26px; line-height: 1.18; letter-spacing: -.025em; }
  .section-intro { font-size: 13px; line-height: 1.6; }
  .source-card { align-items: flex-start; flex-direction: column; gap: 12px; }
  .toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 10px; }
  .ranking-tab-group { gap: 4px; }
  .tabs { padding: 2px; }
  .tab { min-height: 40px; padding: 8px 10px; font-size: 13px; }
  .ranking-state-indicator { width: 20px; height: 24px; }
  .ranking-state-indicator .status-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(10, 107, 85, .10); }
  .ranking-tools { min-width: 0; width: 100%; align-items: stretch; flex-direction: column; }
  .simulation-view-control button { width: 100%; }
  .simulation-view-control button { padding: 7px; font-size: 11px; white-space: normal; }
  .preference-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; padding: 0; background: none; border: 0; }
  .preference-controls.is-club-search { grid-template-columns: minmax(0, 1fr); }
  .preference-field { display: grid; min-width: 0; width: 100%; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 5px; }
  .preference-field label { color: var(--muted); font-size: 12px; font-weight: 400; }
  .preference-field select, .preference-controls button { min-width: 0; width: 100%; min-height: 42px; font-size: 16px; }
  .search-label, .search-label input { width: 100%; }
  .search-label { display: grid; min-width: 0; gap: 5px; }
  .search-caption { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); font-size: 0; line-height: 18.6px; }
  .search-caption::after { content: "Zoek land of club"; font-size: 12px; }
  .search-label input { min-width: 0; min-height: 44px; padding: 8px 9px; font-size: 16px; border-radius: 7px; }
  .table-scroll-hint { margin-bottom: 9px; font-size: 11px; line-height: 1.5; }
  .table-wrap { max-height: none; overflow: visible; overscroll-behavior: auto; touch-action: auto; scrollbar-gutter: auto; border-radius: 7px; }
  #ranking-table-wrap > table { table-layout: fixed; }
  #ranking-table-wrap thead th { top: var(--mobile-header-height); height: 43px; padding: 7px 6px; font-size: 10px; line-height: 1.2; letter-spacing: 0; }
  #ranking-table-wrap thead th:first-child { width: 26px; }
  #ranking-table-wrap #total-heading { width: 68px; }
  #ranking-table-wrap #detail-heading { width: 60px; }
  #ranking-table-wrap thead .compact-label small { display: block; margin-top: 3px; font-size: 9px; font-weight: 400; }
  #movement-heading, #places-heading, #country-heading, .country-movement, .country-places, .club-country { display: none; }
  .country-summary-row > td, .club-summary-row > td { height: 49px; padding: 5px 6px; font-size: 13px; }
  .club-summary-row .entity { overflow-wrap: anywhere; }
  .club-country-label { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
  .country-summary-row { scroll-margin-top: calc(var(--mobile-header-height) + 51px); }
  .country-summary-row.is-expanded-country > td { position: static; }
  .country-summary-row > .rank { font-size: 11px; }
  .country-summary-row > .number { white-space: nowrap; letter-spacing: -.025em; }
  .country-summary-row > .number small { margin-top: 3px; font-size: 9px; line-height: 1.35; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
  .country-summary-row .simulated-total small { font-size: 8px; }
  .country-profile-toggle { min-width: 0; min-height: 39px; align-items: center; gap: 5px; font-size: 13px; line-height: 1.35; }
  .country-profile-toggle > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .country-profile-action { font-size: 9px; }
  .country-profile-header { flex-direction: column; gap: 6px; }
  .country-profile-header small { text-align: left; }
  .country-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .country-profile-stats article { min-width: 0; padding: 10px; }
  .country-profile-stats strong { font-size: 18px; }
  .country-profile-stats span, .country-profile-stats small { font-size: 10px; }
  .country-profile-subheading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .country-club-grid { grid-template-columns: 1fr; }
  .country-result-row { grid-template-columns: 1fr auto; gap: 7px 10px; }
  .country-result-meta { grid-column: 1 / -1; }
  .country-result-teams { grid-column: 1 / -1; }
  .country-result-video { width: 100%; grid-column: 1 / -1; }
  .country-result-no-video { display: none; }
  .country-history-heading { align-items: flex-start; flex-direction: column; }
  .country-history { padding: 10px; }
  .country-history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .country-history-grid div { padding: 8px 4px; }
  .country-simulator-heading { flex-direction: column; }
  .country-simulation-summary { grid-template-columns: repeat(2, 1fr); }
  .country-simulation-summary .simulation-rank { grid-column: 1 / -1; }
  .country-club-fixtures summary { align-items: flex-start; }
  .country-club-fixtures summary > span { align-items: flex-start; flex-direction: column; gap: 2px; }
  .club-progression-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .club-progression-summary span { text-align: left; }
  .country-fixture-row { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 12px 10px; }
  .fixture-date { grid-column: 1 / -1; }
  .fixture-prediction { min-width: 0; width: 100%; min-height: 44px; font-size: 14px; }
  .country-simulator { padding: 10px; }
  .country-simulation-reset { min-height: 40px; }
  .country-scorers-list li { min-width: 0; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px 8px; padding: 10px 8px; }
  .country-scorers-player { min-width: 0; font-size: 12px; }
  .country-scorers-club { grid-column: 2 / -1; }
  .competition-tag { grid-column: 2 / -1; width: fit-content; max-width: 100%; white-space: normal; font-size: 10px; }
  .country-scorers-goals { grid-column: 3; grid-row: 1; }
  .country-profile-panel { position: static; width: 100%; max-width: 100%; padding: 12px 9px; border-left-width: 3px; }
  .country-profile-row { max-width: 100%; }
  .country-profile-row td { white-space: normal; overflow-wrap: anywhere; }
  .country-club-grid article { min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; padding: 9px 7px; }
  .country-club-grid article > strong { white-space: normal; font-size: 12px; }
  .country-club-fixtures summary { min-height: 44px; gap: 8px; padding: 10px; }
  .country-club-fixtures summary small { font-size: 10px; }
  .table-footnote { display: none; }
  .table-note { font-size: 10px; line-height: 1.55; }
  .points-grid, .scorers-grid, .forecast-layout, .country-forecast-layout, .matchday-groups { grid-template-columns: 1fr; }
  .next-round-section { padding: 36px 0 12px; }
  .next-round-dutch { margin-top: 18px; border-radius: 9px; }
  .next-round-subheading { padding: 12px; gap: 10px; }
  .next-round-subheading > div > span { font-size: 10px; }
  .next-round-dutch-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .next-round-match { height: auto; min-height: 100px; grid-template-columns: minmax(0, 1fr) 40px; gap: 10px; padding: 12px; border-right: 0; }
  .next-round-meta { display: flex; height: auto; align-items: center; gap: 9px; }
  .next-round-meta span { font-size: 11px; }
  .next-round-meta strong { font-size: 12px; }
  .next-round-teams { height: auto; min-height: 32px; grid-column: 1 / -1; grid-row: 2; gap: 9px; font-size: 13px; line-height: 1.35; }
  .next-round-competition { grid-column: 2; grid-row: 1; justify-self: end; }
  .next-round-match:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .next-round-match:last-child { border-bottom: 0; }
  .next-round-list { grid-template-columns: 1fr; }
  .next-round-day { border-right: 0; border-bottom: 1px solid var(--line); }
  .next-round-day:last-child { border-bottom: 0; }
  .matches-section { padding: 36px 0 24px; }
  .matches-summary { grid-template-columns: repeat(2, 1fr); }
  .matches-summary div { min-height: 78px; padding: 13px; }
  .matches-summary strong { font-size: 25px; }
  .matches-summary span { font-size: 11px; }
  .matches-toolbar { align-items: stretch; flex-direction: column; }
  .match-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .match-filter { min-height: 44px; padding: 8px 5px; font-size: 11px; }
  .match-search-label, .match-search-label input { width: 100%; }
  .match-search-label input { min-height: 44px; font-size: 16px; }
  .competition-match-heading { gap: 10px; padding: 14px 12px; }
  .competition-match-heading > div { gap: 8px; }
  .competition-match-heading h3 { font-size: 15px; }
  .competition-match-heading > strong { font-size: 10px; }
  .competition-match-heading span { min-width: 36px; }
  .matchday-heading { gap: 8px; padding: 11px 10px; }
  .matchday-heading .matchday-date { font-size: 9px; }
  .matchday-group { border-right: 0; }
  .match-row { grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 8px; padding: 12px 10px; }
  .match-team { font-size: 12px; }
  .match-video-cell { grid-column: 1 / -1; justify-content: center; padding-top: 2px; }
  .match-video-unavailable { display: none; }
  .match-video-button { width: 100%; min-height: 40px; }
  .scorers-section { padding: 36px 0 30px; }
  .scorer-card-header { height: auto; min-height: 82px; padding: 17px 14px; }
  .scorer-list li { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; min-height: 77px; padding: 12px 14px; }
  .scorer-position { width: 28px; height: 28px; font-size: 12px; }
  .scorer-name { font-size: 13px; }
  .scorer-club { font-size: 11px; }
  .scorer-source { padding: 12px 14px; font-size: 10px; }
  .points-section { padding: 36px 0; }
  .result-card { padding: 20px; }
  .forecast-section, .country-forecast-section { width: calc(100% - 24px); padding: 24px 16px; border-radius: 10px; }
  .forecast-controls select, .forecast-controls input, .country-forecast-controls select, .country-forecast-controls input { min-width: 0; min-height: 44px; font-size: 16px; }
  .forecast-layout, .country-forecast-layout { gap: 20px; }
  .forecast-output, .country-forecast-output { grid-template-columns: 1fr 1fr; }
  .forecast-output > div, .country-forecast-output > div { min-width: 0; min-height: 88px; padding: 12px; }
  .forecast-output span, .country-forecast-output span { font-size: 11px; }
  .forecast-output strong, .country-forecast-output strong { font-size: 25px; }
  .country-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .country-fields label { font-size: 11px; }
  .country-presets { gap: 7px; margin-top: 18px; }
  .country-presets button { min-height: 44px; font-size: 12px; }
  .country-perfect-preset { width: 100%; }
  .explain-grid { grid-template-columns: 1fr; }
  .ticket-explainer, .points-explainer, .progression-explainer { padding: 22px 18px; }
  .ticket-explainer-heading { flex-direction: column; }
  .allocation-comparison, .points-rule-grid, .progression-grid { grid-template-columns: 1fr; }
  .explainer { padding: 40px 0; }
  .app-section { width: calc(100% - 24px); grid-template-columns: 1fr; gap: 22px; margin-bottom: 36px; padding: 24px 16px; border-radius: 10px; }
  .source-section { padding-bottom: 36px; }
  footer { padding: 24px 16px; font-size: 11px; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
