:root {
  color-scheme: light;
  --paper: #f4f5f0;
  --surface: #ffffff;
  --surface-soft: #eef1ec;
  --ink: #102019;
  --ink-soft: #506059;
  --line: #d9dfd8;
  --night: #071711;
  --night-soft: #10271e;
  --green: #0b7d52;
  --green-bright: #39d98a;
  --red: #df4b43;
  --amber: #e5a72b;
  --blue: #3878c5;
  --teal: #2f8e8a;
  --shadow: 0 18px 48px rgba(8, 30, 21, 0.1);
  --shadow-high: 0 24px 68px rgba(8, 30, 21, 0.18);
  --content: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(7, 23, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 23, 17, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  color: var(--ink);
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
}

button,
select,
input {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.page-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--green-bright);
  box-shadow: 0 0 18px rgba(57, 217, 138, 0.7);
}

.app-shell {
  width: min(100%, 1920px);
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
}

.site-header {
  position: relative;
  display: flex;
  min-height: min(700px, 82vh);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  background-image: url("assets/stadium-hero.webp");
  background-position: center;
  background-size: cover;
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 18, 12, 0.92) 0%, rgba(4, 18, 12, 0.68) 42%, rgba(4, 18, 12, 0.18) 74%),
    linear-gradient(180deg, rgba(2, 15, 9, 0.72) 0%, transparent 32%, rgba(2, 15, 9, 0.74) 100%);
}

.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 64px), var(--content));
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 950;
  backdrop-filter: blur(12px);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 70%;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  content: "";
}

.brand-mark::before {
  transform: rotate(45deg);
}

.brand-mark::after {
  transform: rotate(-45deg);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--night);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.67rem;
  font-weight: 750;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  padding: 34px 0 31px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--green-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.api-status,
.data-stamp,
.model-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.api-status {
  justify-self: end;
  gap: 9px;
  min-width: 132px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(7, 23, 17, 0.46);
  backdrop-filter: blur(14px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.api-status.is-online .status-dot {
  background: var(--green-bright);
  animation: status-pulse 2s ease infinite;
}

.api-status.is-offline .status-dot {
  background: #ff6c63;
}

.hero-content {
  width: min(calc(100% - 64px), var(--content));
  margin: auto;
  padding: 66px 0 74px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-eyebrow {
  color: var(--green-bright);
  animation: content-rise 520ms 100ms ease both;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(3.6rem, 8.2vw, 8.2rem);
  font-weight: 950;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
  animation: content-rise 600ms 160ms ease both;
}

h2 {
  max-width: 850px;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  font-weight: 950;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 550;
  line-height: 1.55;
  animation: content-rise 600ms 230ms ease both;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  max-width: 700px;
  animation: content-rise 600ms 300ms ease both;
}

.hero-facts div {
  display: grid;
  min-width: 170px;
  gap: 4px;
  padding: 15px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 23, 17, 0.38);
  backdrop-filter: blur(12px);
}

.hero-facts strong {
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--content));
  min-height: 58px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.jump-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  animation: arrow-drop 1.7s ease-in-out infinite;
}

.content-section {
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
  scroll-margin-top: 24px;
}

.final-summary-panel {
  padding: 108px 0 38px;
}

.final-summary-heading {
  align-items: end;
}

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

.champion-summary-card,
.model-verdict-card,
.tournament-honours-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.champion-summary-card,
.model-verdict-card {
  min-height: 470px;
  padding: 32px;
}

.champion-summary-card {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 84% 12%, rgba(57, 217, 138, 0.26), transparent 34%),
    linear-gradient(145deg, var(--night), #0d2c20);
  color: #ffffff;
}

.champion-summary-card::after {
  position: absolute;
  right: -26px;
  bottom: -64px;
  color: rgba(255, 255, 255, 0.035);
  content: "26";
  font-size: 17rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.summary-card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid currentColor;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.champion-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 34px 0 30px;
}

.champion-summary-code {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 18px 42px rgba(57, 217, 138, 0.2);
  color: var(--night);
  font-size: 1.15rem;
  font-weight: 950;
}

.champion-identity > div {
  display: grid;
  gap: 5px;
}

.champion-identity > div > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.champion-identity h3 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.86;
}

.final-scoreline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.final-scoreline > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.final-scoreline > div:last-child {
  flex-direction: row-reverse;
}

.final-scoreline span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-scoreline strong {
  font-size: 2.8rem;
  line-height: 1;
}

.final-scoreline .score-divider {
  display: grid;
  min-width: 42px;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--green-bright);
  font-size: 0.6rem;
}

.champion-summary-card > p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 20px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.65;
}

.summary-source-link {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin-top: auto;
  color: var(--green-bright);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.summary-source-link:hover,
.summary-source-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.model-verdict-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(11, 125, 82, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 125, 82, 0.025) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px;
}

.model-verdict-card .summary-card-topline {
  border-color: var(--line);
  color: var(--ink-soft);
}

.model-verdict-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 35px 0 20px;
}

.model-verdict-score > strong {
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.model-verdict-score > div {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.model-verdict-score span {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-verdict-score b {
  color: var(--green);
  font-size: 1.5rem;
}

.model-verdict-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.model-verdict-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.model-verdict-copy {
  margin: 23px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.verdict-list {
  display: grid;
  gap: 9px;
}

.verdict-list > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
}

.verdict-list > div.is-correct {
  border-left-color: var(--green);
}

.verdict-list > div.is-missed {
  border-left-color: var(--red);
}

.verdict-list span {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.verdict-list strong {
  font-size: 0.75rem;
  line-height: 1.45;
}

.verdict-list b {
  color: var(--green);
}

.tournament-honours-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(360px, 1fr) minmax(500px, 1.5fr) auto;
  gap: 30px;
  align-items: center;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.podium-summary,
.honours-summary {
  display: grid;
  gap: 1px;
}

.podium-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.podium-summary > div {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border-left: 2px solid var(--line);
  background: var(--surface-soft);
}

.podium-summary > div:first-child {
  border-left-color: var(--green);
  background: rgba(11, 125, 82, 0.08);
}

.podium-summary span,
.podium-summary small,
.honours-summary span {
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 850;
  text-transform: uppercase;
}

.podium-summary strong {
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

.honours-summary > div {
  display: grid;
  gap: 3px;
  padding: 10px 14px;
  border-left: 1px solid var(--line);
}

.honours-summary strong {
  font-size: 0.72rem;
  line-height: 1.35;
}

.summary-source-link.dark-link {
  color: var(--green);
  white-space: nowrap;
}

.bracket-panel {
  padding: 94px 0 82px;
}

.section-heading,
.subsection-heading,
.probability-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-lead {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.data-stamp,
.model-pill {
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
}

.bracket-board {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  padding: 20px 2px 12px;
  scrollbar-color: var(--green) var(--surface-soft);
}

.visual-bracket {
  display: grid;
  grid-template-columns: 1.15fr 70px 0.9fr minmax(190px, 0.72fr) 0.9fr 70px 1.15fr;
  align-items: center;
  gap: 12px;
  min-width: 1180px;
  min-height: 430px;
}

.bracket-round {
  display: grid;
  align-content: center;
  gap: 28px;
  min-width: 0;
}

.bracket-round h3 {
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-align: center;
}

.bracket-match {
  position: relative;
  display: grid;
  min-height: 162px;
  align-content: start;
  gap: 8px;
  padding: 10px 0;
  transition: transform 180ms ease;
}

.bracket-match:hover {
  transform: translateY(-3px);
}

.bracket-left::after,
.bracket-right::after {
  position: absolute;
  top: 50%;
  width: 35px;
  height: 1px;
  background: #8b9890;
  content: "";
}

.bracket-left::after {
  right: -39px;
}

.bracket-right::after {
  left: -39px;
}

.bracket-connector {
  position: relative;
  min-height: 310px;
}

.bracket-connector::before,
.bracket-connector::after {
  position: absolute;
  background: #8b9890;
  content: "";
  animation: draw-line 700ms 300ms ease both;
}

.bracket-connector::before {
  top: 24%;
  bottom: 24%;
  width: 1px;
  transform-origin: center;
}

.bracket-connector::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  transform-origin: center;
}

.bracket-connector-left::before {
  right: 0;
}

.bracket-connector-right::before {
  left: 0;
}

.bracket-match-heading,
.bracket-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bracket-team-list {
  display: grid;
  gap: 10px;
}

.bracket-team {
  min-height: 68px;
}

.bracket-team.is-winner {
  color: var(--green);
}

.bracket-team-name {
  overflow: hidden;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-score {
  min-width: 24px;
  color: var(--ink);
  font-size: 1.05rem;
  text-align: right;
}

.flag-badge {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #e5e8e5;
  box-shadow: 0 8px 22px rgba(8, 30, 21, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.bracket-team:hover .flag-badge {
  box-shadow: 0 12px 30px rgba(8, 30, 21, 0.24);
  transform: scale(1.07) rotate(-2deg);
}

.flag-fra {
  background: linear-gradient(90deg, #18328d 0 33.33%, #ffffff 33.33% 66.66%, #e02d3e 66.66%);
}

.flag-mar {
  background: #c7212d;
}

.flag-mar::after,
.flag-tbd::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #087545;
  font-size: 1.5rem;
  font-weight: 900;
  content: "*";
}

.flag-esp {
  background: linear-gradient(180deg, #c71e2d 0 25%, #f0c43d 25% 75%, #c71e2d 75%);
}

.flag-bel {
  background: linear-gradient(90deg, #151515 0 33.33%, #eacb28 33.33% 66.66%, #cf2532 66.66%);
}

.flag-eng {
  background:
    linear-gradient(90deg, transparent 0 42%, #d51d2d 42% 58%, transparent 58%),
    linear-gradient(180deg, transparent 0 42%, #d51d2d 42% 58%, transparent 58%),
    #ffffff;
}

.flag-nor {
  background:
    linear-gradient(90deg, transparent 0 30%, #ffffff 30% 38%, #173773 38% 48%, #ffffff 48% 56%, transparent 56%),
    linear-gradient(180deg, transparent 0 36%, #ffffff 36% 44%, #173773 44% 54%, #ffffff 54% 62%, transparent 62%),
    #c92132;
}

.flag-arg {
  background: linear-gradient(180deg, #73afe0 0 33.33%, #ffffff 33.33% 66.66%, #73afe0 66.66%);
}

.flag-sui {
  background:
    linear-gradient(90deg, transparent 0 40%, #ffffff 40% 60%, transparent 60%),
    linear-gradient(180deg, transparent 0 40%, #ffffff 40% 60%, transparent 60%),
    #d71d2c;
}

.flag-tbd {
  background: linear-gradient(135deg, #e5e9e5, #ffffff);
}

.final-slot,
.third-place-slot {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.final-slot {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-top: 5px solid var(--amber);
}

.final-slot::before {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(229, 167, 43, 0.11);
  border-radius: 50%;
  content: "";
}

.third-place-slot {
  justify-self: center;
  width: min(100%, 420px);
  min-height: 96px;
  border-top: 4px solid var(--teal);
}

.final-venue {
  font-size: 1.05rem;
  line-height: 1.25;
}

.fixture-meta,
.fixture-detail {
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.35;
}

.ticker-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: var(--night);
  color: #ffffff;
}

.ticker-heading {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ticker-heading h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-bright);
  animation: status-pulse 2s ease infinite;
}

.live-label.is-complete span {
  background: rgba(255, 255, 255, 0.66);
  animation: none;
}

.fixture-rail {
  display: grid;
  grid-auto-columns: minmax(260px, 1fr);
  grid-auto-flow: column;
  gap: 0;
  overflow-x: auto;
}

.fixture-card {
  display: grid;
  min-height: 186px;
  align-content: start;
  gap: 9px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--night);
  transition: background-color 180ms ease;
}

.fixture-card:hover {
  background: var(--night-soft);
}

.fixture-card .fixture-meta,
.fixture-card .fixture-detail {
  color: rgba(255, 255, 255, 0.58);
}

.fixture-card.scheduled {
  box-shadow: inset 0 3px var(--blue);
}

.fixture-card.completed {
  box-shadow: inset 0 3px var(--green-bright);
}

.fixture-teams {
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.35;
}

.model-stats-panel {
  padding: 108px 0 104px;
}

.stats-heading {
  align-items: end;
}

#modelStatsMethod {
  max-width: 410px;
  min-height: 0;
  padding: 10px 12px;
  line-height: 1.35;
  text-align: center;
}

.stats-summary {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-tile,
.chart-panel,
.outcome-card,
.upcoming-card,
.backtest-row,
.control-panel,
.match-panel,
.context-panel,
.explanation-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(8, 30, 21, 0.06);
}

.stat-tile {
  display: grid;
  min-height: 148px;
  align-content: center;
  padding: 22px;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.stat-tile:hover,
.outcome-card:hover,
.upcoming-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.stat-tile > span,
.stat-tile small,
.primary-stat-copy span,
.primary-stat-copy small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}

.stat-tile > strong {
  margin: 9px 0 7px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.primary-stat {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  background: var(--night);
  color: #ffffff;
}

.primary-stat::after {
  position: absolute;
  top: -82px;
  right: -40px;
  width: 190px;
  height: 190px;
  border: 32px solid rgba(57, 217, 138, 0.08);
  border-radius: 50%;
  content: "";
}

.stat-ring {
  --stat-progress: 0%;
  position: relative;
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green-bright) var(--stat-progress), rgba(255, 255, 255, 0.11) 0);
  transition: --stat-progress 700ms ease;
}

.stat-ring::before {
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: var(--night);
  content: "";
}

.stat-ring strong {
  position: relative;
  font-size: 1.4rem;
}

.primary-stat-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.primary-stat-copy span,
.primary-stat-copy small {
  color: rgba(255, 255, 255, 0.58);
}

.primary-stat-copy > strong {
  font-size: 1.28rem;
  line-height: 1.15;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.chart-panel {
  min-height: 360px;
  padding: 24px;
}

.subsection-heading {
  align-items: center;
  margin-bottom: 20px;
}

.subsection-heading h3 {
  font-size: 1rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.chart-legend span {
  width: 18px;
  height: 3px;
  background: var(--green);
}

.calibration-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.calibration-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
}

.calibration-key span::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
  content: "";
}

.calibration-key .accuracy-key::before {
  background: var(--amber);
}

.trend-chart,
.calibration-chart {
  min-height: 270px;
}

.trend-chart {
  position: relative;
  display: grid;
}

.trend-svg {
  width: 100%;
  height: 270px;
  overflow: visible;
}

.trend-grid-line {
  stroke: #dfe4df;
  stroke-width: 1;
}

.trend-area {
  fill: url("#trendAreaFill");
}

.trend-path {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  animation: chart-draw 900ms ease both;
}

.trend-dot {
  fill: #ffffff;
  stroke: var(--green);
  stroke-width: 3;
}

.trend-label {
  fill: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.calibration-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  align-items: end;
  gap: 10px;
  padding-top: 18px;
}

.calibration-column {
  display: grid;
  grid-template-rows: 190px auto;
  gap: 10px;
  min-width: 0;
}

.calibration-bars {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to top, rgba(217, 223, 216, 0.55) 1px, transparent 1px);
  background-size: 100% 25%;
}

.calibration-bar {
  position: relative;
  width: min(16px, 42%);
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  animation: bar-grow 700ms ease both;
  transform-origin: bottom;
}

.calibration-bar.confidence {
  background: var(--teal);
}

.calibration-bar.accuracy {
  background: var(--amber);
}

.calibration-label {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.calibration-value {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 5px);
  font-size: 0.58rem;
  font-weight: 900;
  transform: translateX(50%);
}

.calibration-empty {
  align-self: center;
  color: #8b9690;
  font-size: 0.64rem;
  text-align: center;
}

.outcome-section {
  margin-bottom: 52px;
}

.outcome-performance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.benchmark-performance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.outcome-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.outcome-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
  content: "";
}

.outcome-card.outcome-draw::before {
  background: var(--amber);
}

.outcome-card.outcome-away::before {
  background: var(--red);
}

.outcome-card.benchmark-model::before {
  background: var(--green-bright);
}

.outcome-card.benchmark-rolling_elo::before {
  background: var(--teal);
}

.outcome-card.benchmark-historical_frequency::before {
  background: var(--amber);
}

.outcome-card.benchmark-uniform::before {
  background: var(--ink-soft);
}

.outcome-card-head,
.outcome-card-metrics {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.outcome-card-head strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.outcome-card-head span,
.outcome-card-metrics span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.outcome-card-metrics div {
  display: grid;
  gap: 5px;
}

.outcome-card-metrics strong {
  font-size: 1.55rem;
}

.mini-track {
  height: 7px;
  overflow: hidden;
  background: var(--surface-soft);
}

.mini-fill {
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(540px, 1.4fr);
  gap: 34px;
  align-items: start;
}

.upcoming-list,
.backtest-list,
.outcome-bars {
  display: grid;
  gap: 10px;
}

.upcoming-card {
  display: grid;
  gap: 9px;
  padding: 18px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.scoring-rule-card {
  min-height: 102px;
  align-content: center;
  border-left: 4px solid var(--green);
}

.scoring-rule-card p {
  margin: 0;
  line-height: 1.55;
}

.upcoming-teams,
.backtest-match {
  font-size: 0.94rem;
  line-height: 1.3;
}

.confidence-pill,
.backtest-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(11, 125, 82, 0.1);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.outcome-row {
  display: grid;
  grid-template-columns: minmax(68px, 0.75fr) minmax(100px, 1fr) 54px;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.outcome-name {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-track,
.probability-track {
  overflow: hidden;
  background: var(--surface-soft);
}

.outcome-track {
  height: 7px;
  border-radius: 4px;
}

.outcome-fill,
.probability-fill {
  width: 0;
  height: 100%;
  transition: width 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.outcome-value {
  font-size: 0.72rem;
  text-align: right;
}

.backtest-heading {
  align-items: flex-end;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 850;
}

.segmented-control button.is-active {
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(8, 30, 21, 0.1);
  color: var(--ink);
}

.backtest-row {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(160px, 1.2fr) minmax(240px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 13px 15px 13px 18px;
  overflow: hidden;
  box-shadow: none;
  transition: background-color 180ms ease;
}

.backtest-row:hover {
  background: #fafbf8;
}

.backtest-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  content: "";
}

.backtest-row.is-correct::before {
  background: var(--green);
}

.backtest-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.backtest-details span {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.backtest-status {
  background: rgba(223, 75, 67, 0.1);
  color: var(--red);
}

.backtest-row.is-correct .backtest-status {
  background: rgba(11, 125, 82, 0.1);
  color: var(--green);
}

.load-more-button {
  width: 100%;
  margin-top: 10px;
}

.predictor-section {
  padding: 108px 0;
  border-top: 1px solid var(--line);
}

.predictor-heading {
  align-items: end;
}

.tournament-forecast {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.55fr);
  gap: 14px;
  margin-bottom: 14px;
  perspective: 1200px;
}

.forecast-winner-panel,
.forecast-breakdown {
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.forecast-winner-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(57, 217, 138, 0.2), transparent 32%),
    var(--night);
  color: #ffffff;
  isolation: isolate;
}

.forecast-winner-panel::after {
  position: absolute;
  z-index: -1;
  top: -35%;
  bottom: -35%;
  left: -55%;
  width: 30%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  content: "";
  pointer-events: none;
  transform: rotate(14deg);
}

.forecast-panel-heading,
.contender-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forecast-panel-heading h3,
.forecast-subheading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.forecast-winner-panel .eyebrow {
  color: var(--green-bright);
}

.forecast-badge {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 950;
}

.champion-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 48px 0;
}

.champion-code {
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 15px 38px rgba(57, 217, 138, 0.2);
  color: var(--night);
  font-size: 1.3rem;
  font-weight: 950;
  will-change: transform;
}

.champion-callout > div {
  display: grid;
  gap: 3px;
}

.champion-callout span,
.champion-callout p,
.likely-final {
  color: rgba(255, 255, 255, 0.68);
}

.champion-callout > div > span {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.champion-callout strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.champion-callout p,
.likely-final {
  margin: 5px 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
}

.champion-callout b {
  color: #ffffff;
}

.likely-final {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.forecast-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.forecast-subheading {
  margin-bottom: 18px;
}

.forecast-route,
.contender-probabilities {
  display: grid;
  gap: 9px;
}

.forecast-match {
  display: grid;
  grid-template-columns: 72px minmax(140px, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.forecast-match:hover {
  border-color: rgba(11, 125, 82, 0.28);
  box-shadow: 0 10px 24px rgba(8, 30, 21, 0.09);
  transform: translateY(-2px);
}

.forecast-match.is-final {
  border-color: rgba(11, 125, 82, 0.32);
  background: rgba(11, 125, 82, 0.07);
}

.forecast-match-teams,
.forecast-match-pick {
  font-size: 0.76rem;
}

.forecast-match-pick {
  color: var(--green);
  font-weight: 900;
}

.forecast-match .fixture-detail {
  grid-column: 2 / -1;
}

.contender-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}

.contender-code {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 950;
  transition: transform 220ms ease;
}

.contender-row.is-favorite .contender-code {
  background: var(--green);
  color: #ffffff;
}

.contender-row:hover .contender-code {
  transform: rotate(-7deg) scale(1.08);
}

.contender-details {
  display: grid;
  flex: 1;
  gap: 7px;
}

.contender-label strong,
.contender-label span {
  font-size: 0.72rem;
}

.contender-label span {
  color: var(--ink-soft);
  font-weight: 900;
}

.contender-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.contender-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transform-origin: left;
}

.contender-row.is-favorite .contender-fill {
  background: var(--green);
}

.forecast-explanation {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.6;
}

.tournament-forecast.is-animation-ready:not(.is-revealed) .forecast-winner-panel,
.tournament-forecast.is-animation-ready:not(.is-revealed) .forecast-breakdown,
.tournament-forecast.is-animation-ready:not(.is-revealed) .forecast-match,
.tournament-forecast.is-animation-ready:not(.is-revealed) .contender-row,
.tournament-forecast.is-animation-ready:not(.is-revealed) .forecast-explanation {
  opacity: 0;
}

.tournament-forecast.is-revealed .forecast-winner-panel {
  animation: forecast-panel-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tournament-forecast.is-revealed .forecast-breakdown {
  animation: forecast-panel-enter 760ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tournament-forecast.is-revealed .forecast-winner-panel::after {
  animation: champion-shine 1100ms 420ms ease-out both;
}

.tournament-forecast.is-revealed .forecast-badge {
  animation: forecast-badge-enter 700ms 240ms cubic-bezier(0.2, 0.9, 0.2, 1.25) backwards;
}

.tournament-forecast.is-revealed .champion-code {
  animation:
    champion-medal-enter 820ms 260ms cubic-bezier(0.16, 1, 0.3, 1) backwards,
    champion-float 3.6s 1.2s ease-in-out infinite;
}

.tournament-forecast.is-revealed .champion-callout > div,
.tournament-forecast.is-revealed .likely-final {
  animation: forecast-copy-enter 620ms 410ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.tournament-forecast.is-revealed .likely-final {
  animation-delay: 560ms;
}

.tournament-forecast.is-revealed .forecast-match {
  animation: forecast-route-enter 580ms var(--animation-delay) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.tournament-forecast.is-revealed .forecast-match.is-final {
  animation:
    forecast-route-enter 580ms var(--animation-delay) cubic-bezier(0.22, 1, 0.36, 1) backwards,
    final-card-glow 2.8s 1.1s ease-in-out infinite;
}

.tournament-forecast.is-revealed .contender-row {
  animation: contender-enter 520ms var(--animation-delay) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.tournament-forecast.is-revealed .contender-fill {
  animation: contender-bar-grow 800ms var(--animation-delay) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.tournament-forecast.is-revealed .forecast-explanation {
  animation: forecast-copy-enter 600ms 760ms ease backwards;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(560px, 1.35fr);
  gap: 14px;
  align-items: stretch;
}

.control-panel,
.match-panel,
.context-panel,
.explanation-panel {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.panel-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #d6ddd7;
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.compact-heading {
  margin-bottom: 22px;
}

.prediction-form,
.context-list {
  display: grid;
  gap: 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(56, 120, 197, 0.3);
  outline-offset: 2px;
}

button {
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.primary-button,
.secondary-button,
.text-button,
.swap-button {
  min-height: 42px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  background: var(--green);
  color: #ffffff;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.text-button:hover:not(:disabled),
.swap-button:hover:not(:disabled) {
  box-shadow: 0 10px 26px rgba(8, 30, 21, 0.16);
  transform: translateY(-2px);
}

.primary-button span {
  font-size: 1.15rem;
}

.secondary-button {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.swap-button {
  display: grid;
  width: 42px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1.2rem;
}

.swap-button span {
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1.25);
}

.swap-button:hover:not(:disabled) span {
  transform: rotate(180deg);
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  margin-top: 4px;
  padding: 0 11px;
  background: rgba(56, 120, 197, 0.1);
  color: #285f9f;
  font-size: 0.72rem;
  text-decoration: none;
}

.fixture-card .text-button {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px minmax(0, 1fr);
  gap: 10px;
  min-height: 142px;
}

.team-block,
.score-block,
.metric-card,
.context-list div {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.team-block,
.score-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.team-block {
  gap: 12px;
  padding: 18px;
}

.home-accent {
  border-top: 4px solid var(--blue);
}

.away-accent {
  border-top: 4px solid var(--red);
}

.team-code {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
}

.team-block strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-block {
  position: relative;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border-color: var(--night);
  background: var(--night);
  color: #ffffff;
  overflow: hidden;
}

.score-block::after {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -70%;
  width: 36%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  content: "";
  pointer-events: none;
  transform: skewX(-16deg);
}

.score-block span {
  font-size: clamp(2.9rem, 5vw, 4.5rem);
  font-weight: 950;
  line-height: 1;
}

.score-block small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scoreboard.is-updating .score-block span {
  animation: score-pop 420ms ease both;
}

.scoreboard.is-updating .home-accent {
  animation: prediction-team-left 560ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.scoreboard.is-updating .away-accent {
  animation: prediction-team-right 560ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.scoreboard.is-updating .score-block::after {
  animation: score-shine 760ms 100ms ease-out both;
}

.probability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.probability-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.match-panel.is-updating .probability-row {
  animation: result-row-enter 460ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.match-panel.is-updating .probability-row:nth-child(2) {
  animation-delay: 80ms;
}

.match-panel.is-updating .probability-row:nth-child(3) {
  animation-delay: 160ms;
}

.match-panel.is-updating .probability-fill {
  animation: result-bar-grow 820ms 180ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transform-origin: left;
}

.match-panel.is-updating .probability-row:nth-child(2) .probability-fill {
  animation-delay: 260ms;
}

.match-panel.is-updating .probability-row:nth-child(3) .probability-fill {
  animation-delay: 340ms;
}

.probability-label {
  align-items: center;
  min-height: 24px;
  gap: 8px;
}

.probability-label span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-label strong {
  min-width: 52px;
  font-size: 0.82rem;
  text-align: right;
}

.probability-track {
  height: 11px;
  border-radius: 5px;
}

.home-fill {
  background: var(--blue);
}

.draw-fill {
  background: var(--amber);
}

.away-fill {
  background: var(--red);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metric-card,
.context-list div {
  min-height: 80px;
  padding: 14px;
}

.metric-card span,
.context-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong,
.context-list strong {
  display: block;
  margin-top: 8px;
  line-height: 1.2;
}

.metric-card strong {
  font-size: 1.45rem;
}

.match-panel.is-updating .metric-card {
  animation: metric-card-enter 520ms 280ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.match-panel.is-updating .metric-card:nth-child(2) {
  animation-delay: 360ms;
}

.match-panel.is-updating .metric-card:nth-child(3) {
  animation-delay: 440ms;
}

.workspace.is-focused .control-panel,
.workspace.is-focused .match-panel {
  animation: predictor-focus 1100ms ease-out;
}

.workspace.is-focused .match-panel {
  animation-delay: 80ms;
}

.context-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

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

.context-list div:last-child {
  grid-column: 1 / -1;
}

.context-list .referee-record-context {
  grid-column: 1 / -1;
  border-left: 4px solid var(--green);
}

.context-list strong {
  color: #26342d;
  font-size: 0.88rem;
}

.explanation-panel {
  background: #edf3ef;
}

.explanation-panel > p {
  margin: 0;
  color: #34473d;
  font-size: 0.94rem;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 130px;
  padding: 28px max(32px, calc((100% - var(--content)) / 2));
  background: var(--night);
  color: #ffffff;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.site-footer p,
.site-footer > a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 750;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a {
  justify-self: end;
  text-decoration: none;
  text-transform: uppercase;
}

.empty-state {
  align-self: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.is-loading .primary-button {
  background: linear-gradient(110deg, #52645b 24%, #718078 42%, #52645b 60%);
  background-size: 240% 100%;
  animation: loading-button-sweep 1.2s linear infinite;
}

.reveal-ready {
  opacity: 1;
  transform: none;
}

.reveal-ready.is-visible {
  animation: content-rise 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.next-match-page {
  background: var(--night);
}

.matchday-shell {
  width: min(100%, 1920px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(7, 23, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 23, 17, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
}

.matchday-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), 1280px);
  min-height: 92px;
  margin: 0 auto;
  color: #ffffff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
}

.back-link-label-short {
  display: none;
}

.matchday-header,
.matchday-hero,
.matchday-footer {
  position: relative;
  z-index: 1;
}

.matchday-header::before,
.matchday-hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, 1920px);
  background:
    radial-gradient(circle at 78% 28%, rgba(57, 217, 138, 0.2), transparent 26%),
    linear-gradient(115deg, #06140e 0%, #0b251a 58%, #071711 100%);
  content: "";
  transform: translateX(-50%);
}

.matchday-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 54px;
  width: min(calc(100% - 64px), 1280px);
  min-height: 455px;
  margin: 0 auto;
  padding: 72px 0 82px;
  color: #ffffff;
}

.matchday-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.light-eyebrow {
  color: var(--green-bright);
}

.matchday-hero h1 {
  display: grid;
  max-width: 1000px;
  animation: none;
  font-size: clamp(3.1rem, 7vw, 7.25rem);
  line-height: 0.8;
}

.matchday-hero h1 small {
  margin: 0.13em 0 0.08em;
  color: var(--green-bright);
  font-size: 0.2em;
  letter-spacing: 0.18em;
}

.matchday-intro > p:last-child {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.matchday-score-callout {
  display: grid;
  width: 235px;
  min-height: 235px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  text-align: center;
  backdrop-filter: blur(10px);
}

.matchday-score-callout span,
.matchday-score-callout small {
  max-width: 145px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.63rem;
  font-weight: 850;
  text-transform: uppercase;
}

.matchday-score-callout strong {
  font-size: 4.8rem;
  line-height: 1;
}

.matchday-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 18px;
  width: min(calc(100% - 64px), 1280px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.matchday-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.matchday-card[hidden],
.advance-callout[hidden],
.source-link[hidden] {
  display: none;
}

.prediction-feature,
.fixture-facts,
.referee-feature,
.previous-result {
  padding: 32px;
}

.matchday-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.matchday-card-heading > div,
.matchday-probability > div,
.advance-callout,
.fixture-facts dd,
.referee-record-copy {
  min-width: 0;
}

.prediction-lead,
.advance-callout small,
.fixture-facts dd,
.referee-record-copy p {
  overflow-wrap: anywhere;
}

.matchday-card h2 {
  max-width: 680px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
}

.prediction-lead {
  max-width: 760px;
  margin: 26px 0 30px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.matchday-probabilities {
  display: grid;
  gap: 19px;
}

.matchday-probability {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
}

.matchday-probability > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.matchday-probability span {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.matchday-probability strong {
  font-size: 1.05rem;
}

.matchday-probability-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.matchday-probability-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.advance-callout {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 6px 24px;
  margin-top: 32px;
  padding: 20px;
  border-left: 4px solid var(--green);
  background: rgba(11, 125, 82, 0.07);
}

.advance-callout span,
.advance-callout small {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.advance-callout span {
  text-transform: uppercase;
}

.advance-callout strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--green);
  font-size: 1.35rem;
}

.fixture-facts dl {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.fixture-facts dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.fixture-facts dt {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-facts dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.5;
}

.source-link {
  display: inline-flex;
  color: #285f9f;
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.source-link:hover,
.source-link:focus-visible {
  text-decoration: underline;
}

.referee-feature {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: 42px;
  background:
    radial-gradient(circle at 8% 50%, rgba(57, 217, 138, 0.15), transparent 25%),
    var(--night);
  color: #ffffff;
}

.referee-record-stat {
  display: grid;
  align-content: center;
  padding: 18px 32px 18px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.referee-record-stat span,
.referee-record-stat small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.referee-record-stat strong {
  margin: 8px 0;
  color: var(--green-bright);
  font-size: clamp(4.4rem, 9vw, 7.6rem);
  line-height: 0.9;
}

.referee-record-copy {
  align-self: center;
}

.referee-record-copy .eyebrow {
  color: var(--green-bright);
}

.referee-record-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.referee-record-copy .context-caution {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.75rem;
}

.referee-record-copy .source-link {
  margin-top: 22px;
  color: var(--green-bright);
}

.previous-result {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
}

.previous-result p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.previous-result > .source-link {
  grid-column: 1 / -1;
}

.result-score {
  display: flex;
  align-items: center;
  gap: 18px;
}

.result-score span {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-score strong {
  padding: 12px 16px;
  border-radius: 5px;
  background: var(--night);
  color: #ffffff;
  font-size: 1.65rem;
}

.matchday-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(223, 75, 67, 0.35);
  background: rgba(223, 75, 67, 0.08);
  color: #9d2e28;
  font-weight: 750;
}

.matchday-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 28px max(32px, calc((100% - 1280px) / 2));
  background: var(--night);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 750;
}

.matchday-footer p {
  margin: 0;
}

.matchday-footer a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

@keyframes hero-breathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.035);
  }
}

@keyframes content-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 217, 138, 0.42);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(57, 217, 138, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(57, 217, 138, 0);
  }
}

@keyframes arrow-drop {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes draw-line {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes chart-draw {
  from {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
  }

  to {
    stroke-dasharray: 1200;
    stroke-dashoffset: 0;
  }
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes score-pop {
  0% {
    opacity: 0.15;
    transform: scale(0.76);
  }

  65% {
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes forecast-panel-enter {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(3deg) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

@keyframes champion-shine {
  from {
    transform: translateX(0) rotate(14deg);
  }

  to {
    transform: translateX(620%) rotate(14deg);
  }
}

@keyframes forecast-badge-enter {
  from {
    opacity: 0;
    transform: rotate(-80deg) scale(0.55);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes champion-medal-enter {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scale(0.35);
  }

  62% {
    transform: rotate(5deg) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes champion-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes forecast-copy-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes forecast-route-enter {
  from {
    opacity: 0;
    transform: translateX(-18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes contender-enter {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes contender-bar-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes final-card-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(11, 125, 82, 0);
  }

  50% {
    box-shadow: 0 10px 28px rgba(11, 125, 82, 0.18);
  }
}

@keyframes prediction-team-left {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes prediction-team-right {
  from {
    opacity: 0;
    transform: translateX(22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes score-shine {
  from {
    transform: translateX(0) skewX(-16deg);
  }

  to {
    transform: translateX(520%) skewX(-16deg);
  }
}

@keyframes result-row-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes result-bar-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes metric-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes predictor-focus {
  0%,
  100% {
    box-shadow: 0 12px 36px rgba(8, 30, 21, 0.06);
  }

  40% {
    border-color: rgba(11, 125, 82, 0.45);
    box-shadow: 0 0 0 5px rgba(57, 217, 138, 0.14), var(--shadow-high);
  }
}

@keyframes loading-button-sweep {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@media (max-width: 1180px) {
  .top-bar,
  .hero-content,
  .hero-jump,
  .content-section {
    width: min(calc(100% - 40px), var(--content));
  }

  .stats-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tournament-honours-card {
    grid-template-columns: minmax(340px, 1fr) minmax(440px, 1.35fr);
  }

  .tournament-honours-card .summary-source-link {
    grid-column: 1 / -1;
  }

  .primary-stat {
    grid-column: 1 / -1;
  }

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

  .stats-detail-grid {
    grid-template-columns: 1fr;
  }

  .workspace,
  .context-grid {
    grid-template-columns: 1fr;
  }

  .visual-bracket {
    min-width: 1080px;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 680px;
  }

  .top-bar {
    grid-template-columns: 1fr auto;
  }

  .top-bar .brand {
    grid-column: 1;
  }

  .top-bar .api-status {
    grid-column: 2;
  }

  .site-nav {
    position: absolute;
    top: 92px;
    right: 20px;
    left: 20px;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .site-nav a {
    padding: 18px 0;
  }

  .hero-content {
    padding-top: 112px;
  }

  .bracket-panel,
  .final-summary-panel,
  .model-stats-panel,
  .predictor-section {
    padding-top: 78px;
    padding-bottom: 74px;
  }

  .ticker-panel {
    grid-template-columns: 1fr;
  }

  .ticker-heading {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .analytics-grid,
  .final-summary-grid,
  .outcome-performance,
  .tournament-forecast,
  .forecast-breakdown {
    grid-template-columns: 1fr;
  }

  .champion-summary-card,
  .model-verdict-card {
    min-height: 440px;
  }

  .tournament-honours-card {
    grid-template-columns: 1fr;
  }

  .tournament-honours-card .summary-source-link {
    grid-column: auto;
  }

  .champion-callout {
    margin: 30px 0;
  }

  .backtest-row {
    grid-template-columns: 86px minmax(150px, 1fr) auto;
  }

  .backtest-details {
    grid-column: 2 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }

  .matchday-header,
  .matchday-hero,
  .matchday-content {
    width: min(calc(100% - 40px), 1280px);
  }

  .matchday-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
  }

  .matchday-score-callout {
    width: 190px;
    min-height: 190px;
  }

  .matchday-score-callout strong {
    font-size: 3.8rem;
  }

  .matchday-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .referee-feature {
    grid-template-columns: 1fr;
  }

  .referee-record-stat {
    padding: 4px 0 26px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 620px) {
  .top-bar,
  .hero-content,
  .hero-jump,
  .content-section {
    width: min(calc(100% - 24px), var(--content));
  }

  .top-bar {
    min-height: 78px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .api-status {
    min-width: 120px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .site-nav {
    top: 78px;
    right: 12px;
    left: 12px;
    gap: 22px;
  }

  .site-nav a {
    font-size: 0.68rem;
  }

  .hero-content {
    padding-top: 118px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 14.5vw, 4rem);
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .hero-facts div {
    min-width: 0;
    padding: 13px 10px;
  }

  .hero-facts strong {
    font-size: 0.88rem;
  }

  .hero-facts span {
    font-size: 0.56rem;
    overflow-wrap: anywhere;
  }

  .section-heading,
  .final-summary-heading,
  .stats-heading,
  .predictor-heading,
  .backtest-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .champion-summary-card,
  .model-verdict-card,
  .tournament-honours-card {
    padding: 22px 16px;
  }

  .champion-summary-card,
  .model-verdict-card {
    min-height: 0;
  }

  .champion-identity {
    margin: 28px 0 24px;
  }

  .champion-summary-code {
    width: 68px;
    height: 68px;
  }

  .champion-identity h3 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .final-scoreline {
    gap: 9px;
  }

  .final-scoreline > div {
    align-items: center;
    gap: 7px;
  }

  .final-scoreline strong {
    font-size: 2.2rem;
  }

  .final-scoreline span {
    font-size: 0.65rem;
  }

  .model-verdict-score {
    align-items: start;
    flex-direction: column;
  }

  .model-verdict-score > strong {
    font-size: clamp(3.6rem, 20vw, 5rem);
  }

  .model-verdict-score > div {
    justify-items: start;
    text-align: left;
  }

  .verdict-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .podium-summary,
  .honours-summary {
    grid-template-columns: 1fr;
  }

  .data-stamp,
  .model-pill {
    max-width: 100%;
    white-space: normal;
  }

  .visual-bracket {
    min-width: 1010px;
  }

  .fixture-rail {
    grid-auto-columns: minmax(250px, 86vw);
  }

  .forecast-winner-panel,
  .forecast-breakdown {
    padding: 20px 14px;
  }

  .champion-callout {
    align-items: flex-start;
  }

  .champion-code {
    width: 72px;
    height: 72px;
  }

  .forecast-match {
    grid-template-columns: 1fr;
  }

  .forecast-match .fixture-detail {
    grid-column: auto;
  }

  .stats-summary {
    grid-template-columns: 1fr;
  }

  .benchmark-performance {
    grid-template-columns: 1fr;
  }

  .primary-stat {
    grid-column: auto;
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .stat-ring {
    width: 86px;
    height: 86px;
  }

  .chart-panel {
    min-height: 330px;
    padding: 18px 14px;
  }

  .calibration-chart {
    gap: 5px;
  }

  .backtest-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .backtest-match,
  .backtest-details {
    grid-column: 1 / -1;
  }

  .workspace,
  .context-grid {
    gap: 10px;
  }

  .control-panel,
  .match-panel,
  .context-panel,
  .explanation-panel {
    padding: 20px 14px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  }

  .swap-button {
    width: 40px;
  }

  .scoreboard {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    min-height: 126px;
  }

  .team-block {
    padding: 10px;
  }

  .team-code {
    width: 42px;
    height: 42px;
  }

  .team-block strong {
    font-size: 0.78rem;
    white-space: normal;
  }

  .score-block span {
    font-size: 2.35rem;
  }

  .probability-grid,
  .metric-grid,
  .context-list {
    grid-template-columns: 1fr;
  }

  .context-list div:last-child {
    grid-column: auto;
  }

  .site-footer {
    min-height: 100px;
    padding: 24px 14px;
  }

  .site-footer .brand-copy {
    display: grid;
  }

  .site-footer > a {
    font-size: 0.62rem;
  }

  .matchday-header,
  .matchday-hero,
  .matchday-content {
    width: min(calc(100% - 24px), 1280px);
  }

  .matchday-header {
    min-height: 78px;
  }

  .matchday-header .brand-copy {
    display: none;
  }

  .back-link {
    font-size: 0.62rem;
  }

  .back-link-label-full {
    display: none;
  }

  .back-link-label-short {
    display: inline;
  }

  .matchday-hero {
    min-height: 0;
    padding: 64px 0 58px;
  }

  .matchday-hero h1 {
    font-size: clamp(2.7rem, 13.5vw, 4.5rem);
  }

  .matchday-score-callout {
    width: 160px;
    min-height: 160px;
  }

  .matchday-score-callout strong {
    font-size: 3.1rem;
  }

  .matchday-content {
    padding: 42px 0 64px;
  }

  .prediction-feature,
  .fixture-facts,
  .referee-feature,
  .previous-result {
    padding: 22px 16px;
  }

  .matchday-card-heading,
  .previous-result {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .matchday-card-heading {
    flex-direction: column;
  }

  .matchday-probability {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .advance-callout {
    grid-template-columns: 1fr;
  }

  .advance-callout strong {
    grid-row: auto;
    grid-column: auto;
  }

  .fixture-facts dl div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .result-score {
    justify-content: space-between;
    gap: 10px;
  }

  .matchday-footer {
    gap: 18px;
    padding: 24px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
