:root {
  color-scheme: dark;
  --bg: #070c13;
  --bg-2: #0b1724;
  --panel: rgba(14, 29, 45, 0.88);
  --panel-strong: rgba(17, 41, 63, 0.94);
  --line: rgba(185, 213, 247, 0.22);
  --line-strong: rgba(185, 213, 247, 0.38);
  --text: #f2f5f7;
  --muted: #a8bad0;
  --soft: #6f86a0;
  --sport-blue: #2f7dff;
  --sport-blue-strong: #79b6ff;
  --ice-blue: #d8eaff;
  --home: #4f86e8;
  --away: #f0a33a;
  --draw: #aeb7c4;
  --win: #37c871;
  --loss: #ee4f56;
  --warn: #d79424;
  --correct: #37c871;
  --correct-strong: #7de6a5;
  --incorrect: #ee4f56;
  --incorrect-strong: #ff858b;
  --draw-push: #d79424;
  --draw-push-strong: #ffbf63;
  --pending: #7fb7ff;
  --pending-strong: #d8eaff;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.compact-toolbar {
  gap: 10px;
  padding: 12px;
  border-color: rgba(127, 183, 255, 0.36);
  background: linear-gradient(180deg, rgba(216, 234, 255, 0.11), rgba(255, 255, 255, 0.045));
}

.toolbar-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-topline h2 {
  font-size: 1.24rem;
}

.toolbar-topline .panel-kicker {
  margin-bottom: 5px;
}

.toolbar-topline > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(216, 234, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ice-blue);
  background: rgba(7, 12, 19, 0.58);
  font-size: 0.82rem;
}

.compact-filter-band,
.compact-country-band {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(185, 213, 247, 0.18);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(7, 12, 19, 0.25);
}

.compact-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.compact-band-head span {
  color: var(--ice-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-band-head small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
}

.compact-view-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 7px;
}

.compact-view-row .filter-chip {
  min-width: 0;
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 9px;
}

.compact-view-row .filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-view-row .filter-chip small {
  display: none;
}

.active-filter-strip {
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(127, 183, 255, 0.25);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: rgba(216, 234, 255, 0.1);
}

.active-filter-strip > span {
  color: var(--ice-blue);
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.25;
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.active-filter-none {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(216, 234, 255, 0.26);
  border-radius: 999px;
  padding: 5px 8px 5px 10px;
  color: var(--text);
  background: rgba(10, 16, 22, 0.62);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.active-filter-pill strong {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #07111e;
  background: rgba(216, 234, 255, 0.86);
  font-size: 0.68rem;
  line-height: 1;
}

.compact-filter-controls {
  grid-template-columns: minmax(160px, 0.75fr) minmax(280px, 1.45fr) minmax(260px, 0.95fr) minmax(132px, auto);
  gap: 10px;
}

.compact-filter-controls .field span,
.compact-filter-controls .toggle span {
  font-size: 0.74rem;
}

.compact-filter-controls select,
.compact-filter-controls .reset-country,
.compact-filter-controls .toggle {
  min-height: 38px;
}

.compact-filter-controls .toggle {
  padding: 0 11px;
}

.compact-country-band {
  padding-bottom: 8px;
}

.compact-country-band .country-chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.compact-country-band .filter-chip {
  min-height: 36px;
  min-width: max-content;
  padding: 6px 10px;
}

.compact-country-band .filter-chip small {
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(242, 248, 255, 0.08), transparent 18rem),
    radial-gradient(circle at 17% 8%, rgba(47, 125, 255, 0.25), transparent 33rem),
    radial-gradient(circle at 86% 13%, rgba(216, 234, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 84% 76%, rgba(238, 79, 86, 0.1), transparent 28rem),
    linear-gradient(135deg, #050912 0%, #071426 54%, #0b0f16 100%);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 96px clamp(16px, 4vw, 44px) 42px;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
  min-width: min(390px, 100%);
}

.summary-strip div {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.summary-strip span {
  display: block;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 800;
}

.summary-strip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.filter-guide {
  display: grid;
  gap: 10px;
}

.filter-shelf {
  min-width: 0;
  border: 1px solid rgba(185, 213, 247, 0.18);
  border-radius: var(--radius);
  padding: 11px;
  background: linear-gradient(180deg, rgba(216, 234, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.filter-shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.filter-shelf-head span {
  color: var(--ice-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-shelf-head strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  gap: 3px 8px;
  align-items: center;
  min-height: 44px;
  min-width: max-content;
  border: 1px solid rgba(216, 234, 255, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--text);
  background: rgba(10, 16, 22, 0.62);
  cursor: pointer;
  text-align: left;
}

.filter-chip span {
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.1;
}

.filter-chip strong {
  min-width: 1.65rem;
  border-radius: 999px;
  padding: 3px 6px;
  color: #07111e;
  background: rgba(216, 234, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.filter-chip small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(216, 234, 255, 0.64);
  background: rgba(216, 234, 255, 0.11);
  outline: none;
}

.filter-chip-active {
  border-color: rgba(127, 183, 255, 0.82);
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.34), rgba(55, 200, 113, 0.14));
  box-shadow: inset 0 0 0 1px rgba(216, 234, 255, 0.2);
}

.filter-chip-active strong {
  background: #f2f8ff;
}

.filter-chip-zero {
  border-color: rgba(168, 186, 208, 0.18);
  color: var(--muted);
  background: rgba(168, 186, 208, 0.055);
}

.filter-chip-zero strong {
  color: var(--muted);
  background: rgba(168, 186, 208, 0.18);
}

.country-chip-row .filter-chip {
  grid-template-columns: minmax(0, auto) auto;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(280px, 1.45fr) minmax(170px, 0.85fr) auto;
  align-items: end;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span,
.toggle span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: rgba(10, 16, 22, 0.9);
}

select:disabled {
  color: var(--soft);
  cursor: not-allowed;
  opacity: 0.78;
}

.country-filter-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.reset-country {
  min-height: 42px;
  border: 1px solid rgba(216, 234, 255, 0.28);
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ice-blue);
  background: rgba(216, 234, 255, 0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.reset-country:hover,
.reset-country:focus-visible {
  border-color: rgba(216, 234, 255, 0.58);
  background: rgba(216, 234, 255, 0.14);
  outline: none;
}

select:focus {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(10, 16, 22, 0.72);
  white-space: nowrap;
}

.toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--warn);
}

.section-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 8px;
  width: min(760px, calc(100% - 32px));
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(242, 248, 255, 0.68);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(242, 248, 255, 0.94), rgba(216, 234, 255, 0.86)),
    rgba(216, 234, 255, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.section-nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgba(10, 23, 38, 0.12);
  border-radius: 7px;
  padding: 0 10px;
  color: #0b1724;
  background: rgba(9, 24, 41, 0.06);
  text-decoration: none;
}

.section-nav-link:hover,
.section-nav-link:focus-visible,
.section-nav-active {
  border-color: rgba(9, 24, 41, 0.36);
  color: #f2f8ff;
  background: #0d2744;
  outline: none;
}

.section-nav-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.82rem;
  height: 1.82rem;
  border-radius: 999px;
  color: #08111d;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 950;
}

.section-nav-link strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-zone {
  --section-accent: var(--sport-blue-strong);
  --section-wash: rgba(47, 125, 255, 0.12);
  position: relative;
  isolation: isolate;
  scroll-margin-top: 104px;
}

.panel.section-zone {
  overflow: hidden;
}

.section-zone::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--section-accent), rgba(216, 234, 255, 0.28));
  box-shadow: 0 0 26px color-mix(in srgb, var(--section-accent) 38%, transparent);
}

.section-zone::after {
  content: attr(data-section);
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 1;
  min-width: 2rem;
  border: 1px solid color-mix(in srgb, var(--section-accent) 52%, transparent);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ice-blue);
  background: rgba(6, 16, 28, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.panel.section-zone > *,
.match-section > * {
  position: relative;
  z-index: 1;
}

.section-zone > .chart-head {
  padding-right: 58px;
}

.section-zone > .chart-head .panel-kicker {
  color: var(--section-accent);
}

.section-audit {
  --section-accent: #79b6ff;
  --section-wash: rgba(47, 125, 255, 0.13);
  border-color: rgba(121, 182, 255, 0.5);
  background:
    linear-gradient(90deg, rgba(47, 125, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    var(--panel);
}

.section-lineup {
  --section-accent: #d8eaff;
  --section-wash: rgba(216, 234, 255, 0.1);
  border-color: rgba(216, 234, 255, 0.44);
  background:
    linear-gradient(90deg, rgba(216, 234, 255, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    var(--panel);
}

.match-section {
  --section-accent: #d8eaff;
  margin-top: 20px;
  border: 1px solid rgba(242, 248, 255, 0.7);
  border-radius: var(--radius);
  padding: 22px 22px 24px 28px;
  background:
    linear-gradient(135deg, rgba(242, 248, 255, 0.32), rgba(216, 234, 255, 0.2) 38%, rgba(127, 183, 255, 0.13) 68%, rgba(6, 18, 31, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.match-section::after {
  top: 18px;
  right: 18px;
  color: #08111d;
  background: rgba(216, 234, 255, 0.88);
}

.match-section-head {
  margin-bottom: 16px;
  padding-right: 58px;
}

.match-section .panel {
  border-color: rgba(242, 248, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(242, 248, 255, 0.12), rgba(216, 234, 255, 0.045)),
    rgba(9, 24, 41, 0.92);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.4fr) minmax(270px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.audit-panel {
  margin-bottom: 18px;
  padding: 22px 22px 22px 28px;
}

.audit-head-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(460px, 100%);
}

.audit-view-toggle {
  min-height: 36px;
  border: 1px solid rgba(216, 234, 255, 0.36);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ice-blue);
  background: rgba(216, 234, 255, 0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.audit-view-toggle:hover,
.audit-view-toggle:focus-visible {
  border-color: rgba(216, 234, 255, 0.68);
  background: rgba(216, 234, 255, 0.15);
  outline: none;
}

.audit-visual[hidden],
.audit-grid[hidden] {
  display: none;
}

.audit-visual-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(260px, 1.2fr) minmax(220px, 0.86fr) minmax(230px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}

.audit-viz-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.audit-viz-kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-gauge {
  --score-angle: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: min(138px, 100%);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  margin: 0 auto 12px;
  color: var(--text);
  background: conic-gradient(var(--correct-strong) var(--score-angle), rgba(216, 234, 255, 0.12) 0deg);
  cursor: pointer;
  animation: audit-pop 0.5s ease-out both;
}

.audit-gauge::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: rgba(8, 19, 32, 0.96);
  box-shadow: inset 0 0 0 1px var(--line);
}

.audit-gauge span {
  position: relative;
  font-size: 1.35rem;
  font-weight: 950;
}

.audit-gauge-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.audit-gauge-card strong {
  color: var(--text);
}

.audit-stacked-bar {
  display: flex;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.audit-stack-segment {
  flex: 0 0 var(--segment-width);
  min-width: 38px;
  border: 0;
  border-right: 1px solid rgba(8, 14, 24, 0.35);
  color: var(--text);
  cursor: pointer;
  font-weight: 950;
  transform-origin: left center;
  animation: audit-grow 0.7s ease-out both;
}

.audit-stack-segment span {
  display: block;
  font-size: 0.82rem;
}

.audit-stack-empty {
  display: none;
}

.audit-stack-correct,
.audit-histogram-correct {
  background: linear-gradient(180deg, rgba(55, 200, 113, 0.9), rgba(55, 200, 113, 0.45));
}

.audit-stack-draw,
.audit-histogram-draw {
  background: linear-gradient(180deg, rgba(215, 148, 36, 0.9), rgba(215, 148, 36, 0.45));
}

.audit-stack-incorrect,
.audit-histogram-incorrect {
  background: linear-gradient(180deg, rgba(238, 79, 86, 0.9), rgba(238, 79, 86, 0.46));
}

.audit-stack-pending {
  background: linear-gradient(180deg, rgba(127, 183, 255, 0.85), rgba(127, 183, 255, 0.36));
}

.audit-stack-unresolved {
  background: linear-gradient(180deg, rgba(168, 186, 208, 0.55), rgba(168, 186, 208, 0.2));
}

.audit-viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.audit-viz-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-legend-dot {
  display: inline-block;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
}

.audit-dot-correct {
  background: var(--correct-strong);
}

.audit-dot-draw {
  background: var(--draw-push-strong);
}

.audit-dot-incorrect {
  background: var(--incorrect-strong);
}

.audit-dot-pending {
  background: var(--pending);
}

.audit-dot-unresolved {
  background: var(--muted);
}

.audit-histogram {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 10px;
  height: 170px;
}

.audit-histogram-bar {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  height: var(--bar-height);
  min-height: 72px;
  border: 0;
  border-radius: 8px 8px 5px 5px;
  padding: 8px 5px;
  color: #fff;
  cursor: pointer;
  transform-origin: bottom center;
  animation: audit-rise 0.7s ease-out both;
}

.audit-histogram-bar span {
  font-size: 1rem;
  font-weight: 950;
}

.audit-histogram-bar small {
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.audit-readiness-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.audit-readiness-row:last-child {
  margin-bottom: 0;
}

.audit-readiness-row strong {
  color: var(--text);
}

.audit-readiness-row i {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 234, 255, 0.1);
}

.audit-readiness-row b {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--correct-strong), #7fb7ff);
  transform-origin: left center;
  animation: audit-grow 0.75s ease-out both;
}

.audit-viz-detail {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  background: rgba(216, 234, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.audit-viz-active {
  outline: 2px solid rgba(216, 234, 255, 0.72);
  outline-offset: 2px;
}

.load-error-panel {
  margin-bottom: 18px;
  border-color: rgba(255, 191, 99, 0.48);
  background: linear-gradient(180deg, rgba(215, 148, 36, 0.16), rgba(216, 234, 255, 0.05)), var(--panel);
}

.load-error-panel h2,
.load-error-panel p {
  margin: 0;
}

.load-error-panel p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.load-error-panel code {
  color: var(--ice-blue);
}

.panel-empty-note {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--muted);
  background: rgba(216, 234, 255, 0.055);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

@keyframes audit-grow {
  from {
    opacity: 0.5;
    transform: scaleX(0.2);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes audit-rise {
  from {
    opacity: 0.45;
    transform: scaleY(0.55);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes audit-pop {
  from {
    opacity: 0.55;
    transform: scale(0.92);
  }

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

.audit-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.audit-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.audit-stat {
  min-height: 104px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.audit-stat strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.2rem, 2.4vw, 1.72rem);
  line-height: 1;
}

.audit-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.35;
}

.audit-state-list {
  display: grid;
  align-content: start;
  gap: 9px;
}

.audit-state-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 9px;
}

.audit-state-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.audit-state-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.audit-state-row strong {
  color: var(--text);
  font-size: 0.9rem;
}

.audit-timestamp {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.45;
}

.lineup-panel {
  margin-bottom: 18px;
  padding: 20px 20px 18px 28px;
}

.lineup-panel-collapsed .chart-head {
  margin-bottom: 0;
}

.lineup-head-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(460px, 100%);
}

.lineup-toggle {
  min-height: 36px;
  border: 1px solid rgba(216, 234, 255, 0.45);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ice-blue);
  background: rgba(216, 234, 255, 0.09);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.lineup-toggle::before {
  content: "+";
  display: inline-block;
  margin-right: 7px;
  font-weight: 950;
}

.lineup-toggle[aria-expanded="true"]::before {
  content: "-";
}

.lineup-toggle:hover,
.lineup-toggle:focus-visible {
  border-color: rgba(216, 234, 255, 0.75);
  background: rgba(216, 234, 255, 0.16);
  outline: none;
}

.lineup-body {
  display: block;
}

.lineup-body[hidden] {
  display: none;
}

.lineup-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 13px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.lineup-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot-correct {
  background: var(--correct-strong);
}

.dot-incorrect {
  background: var(--incorrect-strong);
}

.dot-draw-push {
  background: var(--draw-push-strong);
}

.dot-pending {
  background: var(--pending-strong);
}

.lineup-breakdown {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.lineup-breakdown-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.lineup-breakdown-card strong {
  display: block;
  font-size: 1.32rem;
  line-height: 1;
}

.lineup-breakdown-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.breakdown-correct {
  border-color: rgba(125, 230, 165, 0.5);
  background: rgba(55, 200, 113, 0.12);
}

.breakdown-incorrect {
  border-color: rgba(255, 133, 139, 0.5);
  background: rgba(238, 79, 86, 0.12);
}

.breakdown-draw-push {
  border-color: rgba(255, 191, 99, 0.5);
  background: rgba(215, 148, 36, 0.12);
}

.breakdown-pending {
  border-color: rgba(216, 234, 255, 0.52);
  background: linear-gradient(180deg, rgba(127, 183, 255, 0.16), rgba(216, 234, 255, 0.065));
}

.breakdown-unresolved {
  border-color: rgba(168, 186, 208, 0.32);
  background: rgba(168, 186, 208, 0.06);
}

.breakdown-accuracy {
  border-color: rgba(215, 148, 36, 0.42);
  background: rgba(215, 148, 36, 0.08);
}

.timeline-list {
  display: grid;
  gap: 12px;
  max-height: clamp(300px, 46vh, 500px);
  overflow: auto;
  padding-right: 5px;
  scrollbar-color: rgba(216, 234, 255, 0.34) rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
}

.timeline-day {
  display: grid;
  gap: 8px;
}

.timeline-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 9px;
  background: rgba(10, 14, 18, 0.96);
}

.timeline-day-head strong {
  color: var(--text);
  font-size: 0.82rem;
}

.timeline-day-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.timeline-day-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 8px;
}

.timeline-card {
  display: grid;
  gap: 6px;
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.timeline-card:hover,
.timeline-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  outline: none;
}

.timeline-card-correct {
  border-color: rgba(125, 230, 165, 0.46);
  background: linear-gradient(180deg, rgba(55, 200, 113, 0.2), rgba(55, 200, 113, 0.065));
}

.timeline-card-incorrect {
  border-color: rgba(255, 133, 139, 0.5);
  background: linear-gradient(180deg, rgba(238, 79, 86, 0.2), rgba(238, 79, 86, 0.065));
}

.timeline-card-draw-push {
  border-color: rgba(255, 191, 99, 0.5);
  background: linear-gradient(180deg, rgba(215, 148, 36, 0.18), rgba(215, 148, 36, 0.06));
}

.timeline-card-pending {
  border-color: rgba(216, 234, 255, 0.5);
  background: linear-gradient(180deg, rgba(127, 183, 255, 0.17), rgba(216, 234, 255, 0.055));
}

.timeline-card-selected {
  border-color: rgba(216, 234, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(216, 234, 255, 0.34), 0 18px 38px rgba(0, 0, 0, 0.22);
}

.timeline-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.timeline-card-top b {
  color: var(--text);
  font-size: 0.68rem;
}

.timeline-card strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.22;
}

.timeline-stage,
.timeline-forecast,
.timeline-result,
.timeline-tags {
  display: block;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.26;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-stage,
.timeline-result,
.timeline-tags {
  color: var(--soft);
}

.timeline-forecast {
  color: var(--text);
  font-weight: 800;
}

.lineup-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.lineup-empty[hidden] {
  display: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.7fr) minmax(250px, 0.75fr) minmax(250px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.match-panel,
.probability-panel,
.radar-panel,
.detail-grid .panel {
  padding: 22px;
}

.match-panel {
  display: flex;
  flex-direction: column;
  min-height: 474px;
}

.team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 14px;
}

.team-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.team-lockup-away {
  justify-content: flex-end;
}

.team-lockup strong {
  font-size: var(--team-name-size, clamp(1.25rem, 2vw, 1.85rem));
  line-height: 1.05;
  overflow-wrap: normal;
  text-wrap: balance;
}

.team-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
  font-size: 1.9rem;
  line-height: 1;
}

.mark-home {
  background: transparent;
}

.mark-away {
  background: transparent;
}

.team-mark-fallback {
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  filter: none;
}

.versus {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.match-meta span,
.status-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 700;
}

.divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 9px 13px;
  color: white;
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.archetype-badge-button {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  opacity: 0.66;
  filter: saturate(0.58) brightness(0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.archetype-badge-button::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.archetype-badge-button:hover {
  opacity: 0.92;
  filter: saturate(1.02) brightness(1.02);
  transform: translateY(-1px);
}

.archetype-badge-button:focus-visible {
  outline: 3px solid rgba(216, 234, 255, 0.72);
  outline-offset: 3px;
}

.archetype-badge-button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.78);
  opacity: 1;
  filter: saturate(1.35) brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 3px color-mix(in srgb, var(--badge-glow, #d8eaff) 34%, transparent),
    0 0 24px color-mix(in srgb, var(--badge-glow, #d8eaff) 42%, transparent),
    0 12px 24px rgba(4, 10, 18, 0.26);
}

.archetype-badge-button[aria-pressed="true"]::before {
  border-color: rgba(255, 255, 255, 0.92);
  background: color-mix(in srgb, var(--badge-glow, #d8eaff) 82%, white);
  box-shadow: 0 0 12px color-mix(in srgb, var(--badge-glow, #d8eaff) 80%, transparent);
}

.archetype-default-button {
  --badge-glow: #9cc9ff;
  color: var(--text);
  background: linear-gradient(135deg, rgba(216, 234, 255, 0.22), rgba(79, 131, 211, 0.34));
}

.archetype-default-button[aria-pressed="true"] {
  border-color: rgba(216, 234, 255, 0.86);
}

.archetype-none-button {
  --badge-glow: #d9e4f2;
  color: var(--text);
  background: linear-gradient(135deg, rgba(124, 143, 166, 0.22), rgba(58, 73, 94, 0.34));
}

.archetype-none-button[aria-pressed="true"] {
  border-color: rgba(235, 244, 255, 0.86);
}

.badge-heavyweight_clash {
  --badge-glow: #5f8dff;
  background: linear-gradient(135deg, #244d9b, #376bd7);
}

.badge-favorite_vs_underdog {
  --badge-glow: #ff6488;
  background: linear-gradient(135deg, #8f1734, #cb3154);
}

.badge-host_pressure {
  --badge-glow: #ffb846;
  background: linear-gradient(135deg, #9b5f0b, #e09a23);
}

.badge-generational_transition {
  --badge-glow: #4ee0b3;
  background: linear-gradient(135deg, #276c5e, #39b38e);
}

.badge-club_power_mismatch {
  --badge-glow: #a984ff;
  background: linear-gradient(135deg, #4d3a86, #8d67d8);
}

.badge-tactical_contrast {
  --badge-glow: #4ed4ee;
  background: linear-gradient(135deg, #174f66, #2ba7c8);
}

.badge-knockout_volatility {
  --badge-glow: #ff8a3d;
  background: linear-gradient(135deg, #a04610, #ef6b23);
}

.badge-upset_realized {
  --badge-glow: #ff6972;
  background: linear-gradient(135deg, #8f2631, #ef4f58);
}

.status-note {
  margin-top: auto;
  border-radius: 7px;
  line-height: 1.45;
}

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

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 0.83rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-home {
  background: var(--home);
}

.dot-away {
  background: var(--away);
}

#radar-canvas {
  display: block;
  width: 100%;
  height: 374px;
}

.probability-panel {
  display: flex;
  flex-direction: column;
  min-height: 474px;
}

.prob-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  align-items: end;
  gap: 15px;
  min-height: 248px;
  margin-top: 20px;
}

.prob-bar-cell {
  display: grid;
  align-content: end;
  gap: 9px;
  min-width: 0;
  height: 248px;
}

.prob-value {
  color: white;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.prob-track {
  position: relative;
  height: 162px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.prob-fill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 6px;
  border-radius: 7px 7px 0 0;
}

.prob-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.prob-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prob-table div {
  text-align: center;
}

.prob-table strong {
  display: block;
  font-size: 1.28rem;
}

.prob-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.upset-pill,
.prediction-call {
  border-radius: 7px;
  padding: 12px 13px;
  font-weight: 800;
}

.upset-pill {
  border: 1px solid rgba(236, 158, 43, 0.48);
  color: #ffbf63;
  background: rgba(124, 74, 12, 0.35);
}

.prediction-call {
  margin-top: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(216, 234, 255, 0.12), rgba(47, 125, 255, 0.055)),
    rgba(255, 255, 255, 0.045);
  line-height: 1.45;
}

.prediction-winner {
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 950;
  line-height: 1.15;
}

.prediction-confidence {
  margin-top: 5px;
  color: var(--ice-blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.prediction-path {
  margin-top: 10px;
  border-top: 1px solid rgba(216, 234, 255, 0.16);
  padding-top: 9px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 750;
}

.prediction-path span {
  display: block;
  margin-bottom: 3px;
  color: var(--sport-blue-strong);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prediction-audit-line {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.reasoning-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.reasoning-row {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

.reasoning-row span {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reasoning-row strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
}

.wide-panel {
  min-height: 272px;
}

.fine-print {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

.similar-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(242, 245, 247, 0.34) rgba(255, 255, 255, 0.055);
  scrollbar-width: thin;
}

.similar-grid::-webkit-scrollbar {
  height: 8px;
}

.similar-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.similar-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(242, 245, 247, 0.34);
}

.similar-card {
  min-width: 0;
  min-height: 136px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  scroll-snap-align: start;
}

.similar-card h3 {
  margin: 0 0 11px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.mini-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-team {
  display: block;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-result {
  grid-row: span 2;
  align-self: center;
  border-radius: 5px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

.similar-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.42;
}

.similar-chip {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  color: #ffcf86;
  background: rgba(215, 148, 36, 0.14);
  font-size: 0.7rem;
  font-weight: 800;
}

.metric-list,
.importance-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 10px;
}

.metric-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-row strong {
  color: var(--text);
  font-size: 0.93rem;
  text-align: right;
}

.importance-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 1.8fr auto;
  gap: 9px;
  align-items: center;
}

.importance-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.importance-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.importance-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #37c871, #4f86e8);
}

.importance-row strong {
  color: var(--text);
  font-size: 0.76rem;
}

.app-footer {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  line-height: 1.5;
}

.app-footer p {
  margin: 0;
}

.app-footer p + p {
  margin-top: 4px;
}

@media (max-width: 1120px) {
  .app-header {
    display: grid;
  }

  .filter-controls,
  .audit-grid,
  .main-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audit-visual-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audit-stat-grid,
  .lineup-breakdown,
  .timeline-day-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .field-wide,
  .lineup-panel,
  .wide-panel {
    grid-column: 1 / -1;
  }

  .probability-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .radar-panel {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .similar-grid {
    grid-auto-columns: minmax(185px, 215px);
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-top: 86px;
  }

  .summary-strip,
  .filter-controls,
  .audit-grid,
  .audit-visual-grid,
  .lineup-breakdown,
  .main-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .audit-head-actions {
    justify-items: start;
  }

  .filter-shelf-head {
    display: grid;
  }

  .filter-shelf-head strong {
    text-align: left;
  }

  .section-nav {
    top: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: calc(100% - 20px);
    padding: 6px;
  }

  .section-nav-link {
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 7px;
  }

  .section-nav-link span {
    flex-basis: 1.52rem;
    height: 1.52rem;
    font-size: 0.62rem;
  }

  .section-nav-link strong {
    font-size: 0.7rem;
  }

  .audit-stat-grid,
  .timeline-day-grid {
    grid-template-columns: 1fr;
  }

  .lineup-breakdown {
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 150px);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    scrollbar-color: rgba(216, 234, 255, 0.34) rgba(255, 255, 255, 0.055);
    scrollbar-width: thin;
  }

  .lineup-breakdown-card {
    min-height: 76px;
  }

  .probability-panel,
  .radar-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .team-line {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .match-section {
    padding: 18px 15px 20px 20px;
  }

  .team-lockup,
  .team-lockup-away {
    justify-content: space-between;
  }

  .timeline-list {
    max-height: min(360px, 50vh);
  }

  .timeline-card {
    min-height: 128px;
  }

  .versus {
    justify-self: center;
  }

  .match-panel,
  .probability-panel {
    min-height: auto;
  }

  #radar-canvas {
    height: 330px;
  }

  .similar-grid {
    grid-auto-columns: minmax(210px, 78vw);
  }

  .chart-head {
    display: grid;
  }

  .fine-print,
  .legend {
    text-align: left;
    justify-content: flex-start;
  }
}

.compact-toolbar {
  gap: 10px;
  padding: 12px;
  border-color: rgba(127, 183, 255, 0.36);
  background: linear-gradient(180deg, rgba(216, 234, 255, 0.11), rgba(255, 255, 255, 0.045));
}

.toolbar-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-topline h2 {
  font-size: 1.24rem;
}

.toolbar-topline .panel-kicker {
  margin-bottom: 5px;
}

.toolbar-topline > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(216, 234, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ice-blue);
  background: rgba(7, 12, 19, 0.58);
  font-size: 0.82rem;
}

.compact-filter-band,
.compact-country-band {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(185, 213, 247, 0.18);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(7, 12, 19, 0.25);
}

.compact-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.compact-band-head span {
  color: var(--ice-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-band-head small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
}

.compact-view-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 7px;
}

.compact-view-row .filter-chip {
  min-width: 0;
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 9px;
}

.compact-view-row .filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-view-row .filter-chip small {
  display: none;
}

.active-filter-strip {
  display: grid;
  grid-template-columns: minmax(230px, auto) 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid rgba(127, 183, 255, 0.25);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: rgba(216, 234, 255, 0.1);
}

.active-filter-strip > span {
  color: var(--ice-blue);
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.25;
}

.active-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.active-filter-none {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(216, 234, 255, 0.26);
  border-radius: 999px;
  padding: 5px 8px 5px 10px;
  color: var(--text);
  background: rgba(10, 16, 22, 0.62);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
}

.active-filter-pill strong {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #07111e;
  background: rgba(216, 234, 255, 0.86);
  font-size: 0.68rem;
  line-height: 1;
}

.compact-filter-controls {
  grid-template-columns: minmax(160px, 0.75fr) minmax(280px, 1.45fr) minmax(260px, 0.95fr) minmax(132px, auto);
  gap: 10px;
}

.compact-filter-controls .field span,
.compact-filter-controls .toggle span {
  font-size: 0.74rem;
}

.compact-filter-controls select,
.compact-filter-controls .reset-country,
.compact-filter-controls .toggle {
  min-height: 38px;
}

.compact-filter-controls .toggle {
  padding: 0 11px;
}

.compact-country-band {
  padding-bottom: 8px;
}

.compact-country-band .country-chip-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.compact-country-band .filter-chip {
  min-height: 36px;
  min-width: max-content;
  padding: 6px 10px;
}

.compact-country-band .filter-chip small {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .compact-view-row {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

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

@media (max-width: 760px) {
  .toolbar-topline,
  .active-filter-strip,
  .compact-filter-controls {
    grid-template-columns: 1fr;
  }

  .toolbar-topline {
    align-items: start;
  }

  .toolbar-topline > strong {
    width: max-content;
  }

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

  .active-filter-row {
    justify-content: flex-start;
  }

  .compact-band-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .compact-band-head small {
    text-align: left;
  }
}

.compact-view-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.compact-view-row .filter-chip {
  flex: 0 0 132px;
}

.compact-view-row .filter-chip:first-child {
  flex-basis: 112px;
}

.compact-view-row [data-filter-value="upcoming"] {
  flex-basis: 124px;
}

.compact-view-row [data-filter-value="stage_group:opening"],
.compact-view-row [data-filter-value="stage_group:knockout"] {
  flex-basis: 148px;
}

.compact-view-row .filter-chip span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .compact-band-head small {
    display: none;
  }

  .compact-toolbar {
    gap: 8px;
    padding: 10px;
  }

  .toolbar-topline h2 {
    font-size: 1.08rem;
  }

  .toolbar-topline > strong {
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .compact-filter-band,
  .compact-country-band {
    gap: 6px;
    padding: 8px;
  }

  .compact-band-head span {
    font-size: 0.68rem;
  }

  .active-filter-strip {
    min-height: 36px;
    gap: 6px;
    padding: 6px 8px;
  }

  .active-filter-strip > span {
    font-size: 0.76rem;
  }

  .active-filter-pill {
    min-height: 26px;
    padding: 4px 7px 4px 9px;
  }

  .compact-filter-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .compact-filter-controls .field {
    gap: 4px;
  }

  .compact-filter-controls .field-wide {
    grid-column: 1 / -1;
  }

  .compact-filter-controls select,
  .compact-filter-controls .reset-country,
  .compact-filter-controls .toggle {
    min-height: 34px;
  }

  .compact-filter-controls .toggle {
    justify-content: flex-start;
  }

  .compact-view-row {
    grid-template-columns: none;
  }

  .compact-view-row .filter-chip,
  .compact-country-band .filter-chip {
    min-height: 32px;
    padding: 5px 8px;
  }

  .compact-country-band .filter-chip small {
    display: none;
  }
}

.tournament-context {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  border: 1px solid rgba(127, 183, 255, 0.26);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(216, 234, 255, 0.075);
}

.tournament-context-copy {
  min-width: 0;
}

.tournament-context-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tournament-context-copy strong {
  display: block;
  color: var(--ice-blue);
  font-size: 0.93rem;
  line-height: 1.2;
}

.tournament-context-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.context-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.context-pill {
  display: grid;
  gap: 2px;
  max-width: min(100%, 270px);
  border: 1px solid rgba(216, 234, 255, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(10, 16, 22, 0.48);
}

.context-pill span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.context-pill strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .tournament-context {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .tournament-context-copy p {
    display: none;
  }

  .context-pill-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .context-pill {
    flex: 1 1 calc(50% - 8px);
    max-width: none;
  }

  .context-pill strong {
    white-space: normal;
  }
}

.match-panel .team-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 7px;
  margin-top: 14px;
}

.match-panel .team-lockup,
.match-panel .team-lockup-away {
  display: grid;
  grid-template-columns: auto minmax(0, max-content);
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(216, 234, 255, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(10, 16, 22, 0.32);
}

.match-panel .team-lockup strong {
  display: block;
  min-width: 0;
  max-width: min(100%, 26ch);
  overflow: hidden;
  color: var(--text);
  font-size: var(--team-name-size, 1.45rem);
  line-height: 1.04;
  text-align: center;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  white-space: nowrap;
}

.match-panel .team-mark {
  flex: 0 0 auto;
}

.match-panel .versus {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(216, 234, 255, 0.28);
  border-radius: 999px;
  color: var(--ice-blue);
  background: rgba(216, 234, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: lowercase;
}

@media (max-width: 760px) {
  .match-panel .team-lockup,
  .match-panel .team-lockup-away {
    padding: 8px;
  }

  .match-panel .team-lockup strong {
    max-width: 21ch;
  }
}

.archetype-playbook {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.archetype-pitch {
  min-height: 142px;
}

.pitch-animation {
  position: relative;
  height: 142px;
  overflow: hidden;
  border: 1px solid rgba(216, 234, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 120, 90, 0.28), rgba(12, 70, 118, 0.32)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, rgba(12, 40, 72, 0.92), rgba(12, 78, 96, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 34px rgba(4, 10, 18, 0.22);
  isolation: isolate;
}

.pitch-zone {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  z-index: 0;
}

.pitch-zone-home {
  background: radial-gradient(circle at 23% 50%, color-mix(in srgb, var(--home) 70%, transparent), transparent 32%);
}

.pitch-zone-away {
  background: radial-gradient(circle at 77% 50%, color-mix(in srgb, var(--away) 70%, transparent), transparent 32%);
}

.pitch-midline,
.pitch-circle,
.pitch-box,
.pitch-goal,
.pressure-lane,
.pitch-team,
.soccer-ball {
  position: absolute;
  z-index: 1;
}

.pitch-midline {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(236, 247, 255, 0.44);
}

.pitch-circle {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(236, 247, 255, 0.38);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.pitch-box {
  top: 29px;
  width: 38px;
  height: 84px;
  border: 1px solid rgba(236, 247, 255, 0.36);
}

.pitch-box-left {
  left: 0;
  border-left: 0;
}

.pitch-box-right {
  right: 0;
  border-right: 0;
}

.pitch-goal {
  top: 55px;
  width: 6px;
  height: 32px;
  border: 1px solid rgba(236, 247, 255, 0.42);
  background: rgba(236, 247, 255, 0.08);
}

.pitch-goal-left {
  left: 0;
  border-left: 0;
}

.pitch-goal-right {
  right: 0;
  border-right: 0;
}

.pressure-lane {
  top: 24px;
  height: 94px;
  border-radius: 999px;
  opacity: 0.22;
  filter: blur(2px);
}

.pressure-lane-home {
  left: 13%;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--home), transparent);
}

.pressure-lane-away {
  right: 13%;
  width: 34%;
  background: linear-gradient(90deg, transparent, var(--away), transparent);
}

.pitch-animation[data-predicted="home"] .pressure-lane-home,
.pitch-animation[data-predicted="away"] .pressure-lane-away,
.pitch-animation[data-pattern="host"] .pressure-lane-home {
  opacity: 0.46;
}

.pitch-animation[data-pattern="knockout"] .pressure-lane-home,
.pitch-animation[data-pattern="knockout"] .pressure-lane-away {
  opacity: 0.38;
}

.pitch-team {
  top: 10px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 24px;
  border: 1px solid rgba(236, 247, 255, 0.26);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--text);
  background: rgba(5, 14, 28, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.pitch-team-home {
  left: 12px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--home) 45%, transparent);
}

.pitch-team-away {
  right: 12px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--away) 45%, transparent);
}

.soccer-ball {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(5, 12, 20, 0.5);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, #111 0 16%, transparent 17%),
    conic-gradient(from 18deg, #f8fbff 0 14%, #111 14% 21%, #f8fbff 21% 37%, #111 37% 44%, #f8fbff 44% 65%, #111 65% 72%, #f8fbff 72% 100%);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.38), 0 0 24px rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
  animation: route-balanced 4.4s cubic-bezier(0.62, 0, 0.22, 1) infinite;
}

.pitch-animation[data-pattern="host"] .soccer-ball {
  animation-name: route-host;
}

.pitch-animation[data-pattern="knockout"] .soccer-ball {
  animation-name: route-knockout;
}

.pitch-animation[data-pattern="favorite"] .soccer-ball {
  animation-name: route-favorite;
}

.pitch-animation[data-pattern="heavyweight"] .soccer-ball {
  animation-name: route-heavyweight;
}

.pitch-animation[data-intensity="high"] .soccer-ball {
  animation-duration: 3.1s;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.4), 0 0 28px rgba(255, 190, 76, 0.55);
}

.pitch-animation[data-intensity="calm"] .soccer-ball {
  animation-duration: 5.2s;
}

.archetype-commentary {
  border: 1px solid rgba(216, 234, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(216, 234, 255, 0.07);
}

.archetype-commentary strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.archetype-commentary p,
.pitch-empty {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.46;
}

.pitch-empty {
  display: grid;
  min-height: 122px;
  place-items: center;
  border: 1px dashed rgba(216, 234, 255, 0.3);
  border-radius: 8px;
  background: rgba(216, 234, 255, 0.05);
}

@keyframes route-balanced {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(-36px, -10px) rotate(0deg);
  }
  45% {
    transform: translate(-50%, -50%) translate(34px, 8px) rotate(260deg);
  }
  70% {
    transform: translate(-50%, -50%) translate(8px, 20px) rotate(380deg);
  }
}

@keyframes route-host {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(-62px, 18px) rotate(0deg);
  }
  38% {
    transform: translate(-50%, -50%) translate(-16px, -22px) rotate(220deg);
  }
  74% {
    transform: translate(-50%, -50%) translate(58px, -4px) rotate(470deg);
  }
}

@keyframes route-knockout {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(-72px, -24px) rotate(0deg);
  }
  30% {
    transform: translate(-50%, -50%) translate(70px, 25px) rotate(300deg);
  }
  58% {
    transform: translate(-50%, -50%) translate(-18px, 0) rotate(520deg);
  }
  82% {
    transform: translate(-50%, -50%) translate(46px, -28px) rotate(720deg);
  }
}

@keyframes route-favorite {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(-48px, 20px) rotate(0deg);
  }
  48% {
    transform: translate(-50%, -50%) translate(62px, -16px) rotate(360deg);
  }
  74% {
    transform: translate(-50%, -50%) translate(26px, 20px) rotate(520deg);
  }
}

@keyframes route-heavyweight {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(-46px, 0) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) translate(0, -26px) rotate(180deg);
  }
  52% {
    transform: translate(-50%, -50%) translate(46px, 0) rotate(360deg);
  }
  78% {
    transform: translate(-50%, -50%) translate(0, 26px) rotate(540deg);
  }
}

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

@media (max-width: 760px) {
  .pitch-animation {
    height: 126px;
  }

  .archetype-pitch {
    min-height: 126px;
  }
}

.archetype-pitch {
  min-height: auto;
}

.match-animation-shell {
  --anim-home: var(--home);
  --anim-away: var(--away);
  overflow: hidden;
  border: 1px solid rgba(216, 234, 255, 0.26);
  border-radius: 8px;
  padding: 8px;
  background:
    radial-gradient(circle at 28% 50%, color-mix(in srgb, var(--anim-home) 24%, transparent), transparent 35%),
    radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--anim-away) 24%, transparent), transparent 35%),
    rgba(4, 12, 24, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 14px 28px rgba(4, 10, 18, 0.2);
}

.match-pitch {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0d2b18;
}

.match-pitch svg {
  display: block;
  width: 100%;
  height: auto;
}

.match-animation-labels {
  display: grid;
  grid-template-columns: minmax(32px, auto) 1fr minmax(32px, auto);
  align-items: center;
  gap: 8px;
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
}

.match-animation-labels span:first-child,
.match-animation-labels span:last-child {
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0;
}

.match-ball {
  transform-box: fill-box;
  transform-origin: center;
}

.match-pitch-stable .match-ball {
  animation: match-ball-stable 8s infinite ease-in-out;
}

.match-pitch-none .match-ball {
  animation: none;
  opacity: 0.42;
}

.match-pitch-chaotic .match-ball {
  animation: match-ball-chaotic 2.6s infinite linear;
}

.match-pitch-host .match-ball {
  animation: match-ball-host 5s infinite ease-in-out;
}

.match-pitch-favorite-home .match-ball {
  animation: match-ball-favorite-home 5.2s infinite cubic-bezier(0.54, 0, 0.28, 1);
}

.match-pitch-favorite-away .match-ball {
  animation: match-ball-favorite-away 5.2s infinite cubic-bezier(0.54, 0, 0.28, 1);
}

.match-pitch-tactical .match-ball {
  animation: match-ball-tactical 6.4s infinite ease-in-out;
}

.match-pitch-mix .match-ball {
  animation: match-ball-mix 5.8s infinite ease-in-out;
}

.match-pitch-heavyweight .match-ball {
  animation: match-ball-heavyweight 5.4s infinite ease-in-out;
}

.match-pitch-transition .match-ball {
  animation: match-ball-transition 5.6s infinite ease-in-out;
}

.match-pitch-mismatch .match-ball {
  animation: match-ball-mismatch 4.8s infinite ease-in-out;
}

.match-pitch-upset .match-ball {
  animation: match-ball-upset 3.2s infinite linear;
}

.anim-dot-home {
  color: var(--anim-home);
  animation: match-dot-home 4s infinite ease-in-out;
}

.anim-dot-away {
  color: var(--anim-away);
  animation: match-dot-away 3.7s infinite ease-in-out;
}

.match-animation-shell[data-predicted="home"] .anim-dot-home,
.match-animation-shell[data-predicted="away"] .anim-dot-away {
  filter: drop-shadow(0 0 4px currentColor);
}

.match-animation-shell[data-pattern="knockout"] .match-pitch,
.match-animation-shell[data-intensity="high"] .match-pitch {
  box-shadow: inset 0 0 0 1px rgba(255, 190, 76, 0.14), 0 0 22px rgba(255, 190, 76, 0.12);
}

.match-animation-shell[data-pattern="host"] .anim-dot-home,
.match-animation-shell[data-pattern="favorite"][data-predicted="home"] .anim-dot-home,
.match-animation-shell[data-pattern="favorite"][data-predicted="away"] .anim-dot-away {
  filter: drop-shadow(0 0 6px currentColor);
}

.match-animation-shell[data-pattern="tactical"] .match-pitch {
  box-shadow: inset 0 0 0 1px rgba(43, 167, 200, 0.18), 0 0 22px rgba(43, 167, 200, 0.1);
}

.match-animation-shell[data-pattern="mix"] .match-pitch {
  box-shadow: inset 0 0 0 1px rgba(127, 183, 255, 0.18), 0 0 24px rgba(127, 183, 255, 0.12);
}

.match-animation-shell[data-pattern="none"] {
  background: rgba(4, 12, 24, 0.2);
}

.match-animation-shell[data-pattern="none"] .match-pitch {
  filter: grayscale(0.42) brightness(0.82);
}

.match-animation-shell[data-pattern="none"] .anim-dot {
  opacity: 0.28;
  filter: none;
}

.match-animation-shell[data-pattern="upset"] .match-pitch {
  box-shadow: inset 0 0 0 1px rgba(239, 79, 88, 0.18), 0 0 24px rgba(239, 79, 88, 0.12);
}

@keyframes match-ball-stable {
  0% {
    transform: translate(0, 0);
  }
  12% {
    transform: translate(32px, -18px);
  }
  26% {
    transform: translate(58px, 8px);
  }
  40% {
    transform: translate(36px, 22px);
  }
  54% {
    transform: translate(-12px, 16px);
  }
  68% {
    transform: translate(-38px, -8px);
  }
  84% {
    transform: translate(-22px, -20px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes match-ball-chaotic {
  0% {
    transform: translate(0, 0);
  }
  9% {
    transform: translate(58px, -34px);
  }
  18% {
    transform: translate(-42px, 26px);
  }
  27% {
    transform: translate(70px, 14px);
  }
  36% {
    transform: translate(-30px, -32px);
  }
  45% {
    transform: translate(46px, 38px);
  }
  54% {
    transform: translate(-56px, -16px);
  }
  63% {
    transform: translate(34px, -42px);
  }
  72% {
    transform: translate(-46px, 28px);
  }
  81% {
    transform: translate(62px, -4px);
  }
  90% {
    transform: translate(-22px, -36px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes match-ball-host {
  0% {
    transform: translate(-64px, 16px);
  }
  24% {
    transform: translate(-34px, -24px);
  }
  50% {
    transform: translate(8px, -8px);
  }
  74% {
    transform: translate(62px, 6px);
  }
  100% {
    transform: translate(-64px, 16px);
  }
}

@keyframes match-ball-favorite-home {
  0% {
    transform: translate(-24px, 18px);
  }
  30% {
    transform: translate(26px, -18px);
  }
  58% {
    transform: translate(68px, 2px);
  }
  82% {
    transform: translate(36px, 24px);
  }
  100% {
    transform: translate(-24px, 18px);
  }
}

@keyframes match-ball-favorite-away {
  0% {
    transform: translate(24px, -18px);
  }
  30% {
    transform: translate(-26px, 18px);
  }
  58% {
    transform: translate(-68px, -2px);
  }
  82% {
    transform: translate(-36px, -24px);
  }
  100% {
    transform: translate(24px, -18px);
  }
}

@keyframes match-ball-tactical {
  0% {
    transform: translate(-10px, 0);
  }
  22% {
    transform: translate(14px, -14px);
  }
  46% {
    transform: translate(18px, 12px);
  }
  70% {
    transform: translate(-18px, 14px);
  }
  100% {
    transform: translate(-10px, 0);
  }
}

@keyframes match-ball-mix {
  0% {
    transform: translate(-44px, 16px);
  }
  18% {
    transform: translate(-12px, -24px);
  }
  36% {
    transform: translate(34px, -10px);
  }
  54% {
    transform: translate(62px, 18px);
  }
  74% {
    transform: translate(-24px, 28px);
  }
  100% {
    transform: translate(-44px, 16px);
  }
}

@keyframes match-ball-heavyweight {
  0% {
    transform: translate(-42px, 0);
  }
  25% {
    transform: translate(0, -28px);
  }
  50% {
    transform: translate(42px, 0);
  }
  75% {
    transform: translate(0, 28px);
  }
  100% {
    transform: translate(-42px, 0);
  }
}

@keyframes match-ball-transition {
  0% {
    transform: translate(-54px, 32px);
  }
  28% {
    transform: translate(-18px, -12px);
  }
  56% {
    transform: translate(28px, -30px);
  }
  78% {
    transform: translate(54px, 18px);
  }
  100% {
    transform: translate(-54px, 32px);
  }
}

@keyframes match-ball-mismatch {
  0% {
    transform: translate(-58px, -26px);
  }
  18% {
    transform: translate(-20px, -36px);
  }
  42% {
    transform: translate(54px, -28px);
  }
  66% {
    transform: translate(66px, 18px);
  }
  84% {
    transform: translate(10px, 30px);
  }
  100% {
    transform: translate(-58px, -26px);
  }
}

@keyframes match-ball-upset {
  0% {
    transform: translate(54px, -26px);
  }
  12% {
    transform: translate(-18px, 28px);
  }
  24% {
    transform: translate(70px, 12px);
  }
  38% {
    transform: translate(-62px, -16px);
  }
  56% {
    transform: translate(22px, -34px);
  }
  72% {
    transform: translate(-44px, 26px);
  }
  100% {
    transform: translate(54px, -26px);
  }
}

@keyframes match-dot-home {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2px, -3px);
  }
}

@keyframes match-dot-away {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-2px, 3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-ball,
  .anim-dot-home,
  .anim-dot-away {
    animation: none;
  }
}
