:root {
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6f6f6f;
  --faint: #a3a3a3;
  --hair: #e8e8e8;
  --hair-2: #f2f2f2;
  --bg: #ffffff;
  --soft: #fafafa;
  --red: #A90432;
  --yellow: #FDB912;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 40px -12px rgba(0, 0, 0, 0.10);
  --font: 'Geist', 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  max-width: 1440px; margin: 0 auto; padding: 22px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; justify-self: start; }
.logo img { width: 28px; height: 28px; object-fit: contain; filter: grayscale(1) contrast(1.4) brightness(0.55); }
.logo em { font-style: normal; font-weight: 300; color: var(--muted); }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; }
.nav-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pill {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #cfcfcf; border-radius: 999px; padding: 8px 18px 8px 14px; font-size: 14px; color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--ink); }
.pill:disabled { cursor: progress; }
.pill-ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pill.busy .pill-ico { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfcfcf; }
.pill-dot.on { background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.pill-dot.err { background: var(--yellow); }
@keyframes pulse { 50% { opacity: 0.25; } }

.banner {
  max-width: 1440px; margin: 0 auto 12px; padding: 12px var(--gutter);
  color: var(--red); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: 14px;
}

/* ---------- Hero ---------- */
.hero { max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 24px; text-align: center; position: relative; }
.eyebrow { margin: 0 0 18px; font-size: 13px; color: var(--muted); letter-spacing: 0.22em; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500;
  position: relative; z-index: 2;
}
.updated { margin: 28px 0 0; font-size: 11px; color: var(--faint); letter-spacing: 0.12em; }
.updated.stale { color: var(--red); }

.stage {
  position: relative; margin: -6px auto 0; max-width: 1240px;
  display: grid; grid-template-columns: 1fr minmax(0, 600px) 1fr; align-items: center; gap: 24px;
  min-height: 600px; padding-bottom: 40px;
}
.halftone {
  position: absolute; left: 22%; top: 2%; width: 300px; height: 190px; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, #9a9a9a 0.9px, transparent 1.3px);
  background-size: 6px 6px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
  opacity: 0.55;
}

/* Linke Liste (Wettbewerbsfilter) */
.rail { justify-self: end; display: flex; flex-direction: column; gap: 22px; text-align: left; position: relative; z-index: 2; }
.comp-list { display: flex; flex-direction: column; gap: 10px; }
.comp-list button {
  display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 8px 4px 22px; position: relative;
  color: #b3b3b3; font-size: 13.5px; font-weight: 500; text-align: left; transition: color 0.25s, transform 0.35s var(--ease);
}
.comp-list button:nth-child(2), .comp-list button:nth-child(4) { transform: translateX(-12px); }
.comp-list button:hover { color: var(--ink-2); }
.comp-list button[aria-pressed="true"] { color: var(--ink); }
.comp-list button[aria-pressed="true"]::before {
  content: ''; position: absolute; left: 4px; top: 50%; margin-top: -4px;
  border-left: 6px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.thumb {
  width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(145deg, #f4f4f4, #dcdcdc);
  display: grid; place-items: center; overflow: hidden; flex: none; opacity: 0.55; transition: opacity 0.25s;
}
.thumb img { width: 76%; height: 76%; object-fit: contain; filter: grayscale(1) contrast(1.15); }
.thumb b { font-size: 13px; color: var(--muted); }
.comp-list button[aria-pressed="true"] .thumb { opacity: 1; background: linear-gradient(145deg, #e9e9e9, #bdbdbd); }
.comp-list button[aria-pressed="true"] .thumb img { filter: grayscale(1) contrast(1.6) brightness(0.6); }
.season { display: flex; align-items: center; gap: 10px; padding-left: 22px; font-size: 11px; color: var(--faint); }
select {
  font: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink);
  background: #fff; border: 1px solid var(--hair); border-radius: 999px; padding: 5px 10px;
}

/* Mitte: Zifferblatt */
.dial { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; z-index: 1; }
.tick-ring { width: 100%; height: 100%; display: block; overflow: visible; }
.tick { stroke: #d4d4d4; stroke-width: 1.2; stroke-linecap: round; }
.tick.lit { stroke: var(--ink); stroke-width: 1.3; }
.tick.head { stroke: var(--red); stroke-width: 3; }
.tick-ring .tick { animation: tickIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 9ms); }
@keyframes tickIn { from { opacity: 0; } }
.crest {
  width: 72%; height: auto; position: relative; z-index: 1; margin-top: -4%;
  filter: url(#silhouette);
  animation: rise 1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.holo {
  position: absolute; left: -6%; top: 20%; z-index: 3; min-width: 210px; padding: 12px 18px 12px 16px; text-align: left; color: #140306;
  border-radius: 4px;
  background:
    radial-gradient(120% 140% at 85% 10%, rgba(255, 102, 196, 0.55), transparent 45%),
    radial-gradient(90% 120% at 15% 100%, rgba(255, 140, 20, 0.7), transparent 55%),
    linear-gradient(105deg, #A90432 0%, #e0262f 30%, #ff7a1a 58%, #FDB912 82%, #ffe36b 100%);
  background-size: 160% 160%;
  box-shadow: 0 18px 40px -18px rgba(169, 4, 50, 0.55);
  animation: shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 60%; } }
.holo-num { font-size: 76px; line-height: 0.95; font-weight: 400; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.holo-num small { font-size: 34px; margin-left: 2px; letter-spacing: -0.02em; }
.holo-lbl { font-size: 9.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.92); margin-top: 6px; }
.holo-sub { font-size: 9.5px; letter-spacing: 0.14em; color: rgba(20,3,6,0.75); margin-top: 2px; }

.dial-label { position: absolute; left: 11%; top: 47%; z-index: 3; text-align: left; font-size: 14px; line-height: 1.25; color: var(--ink); }
.dial-label .mono { display: block; font-size: 9.5px; color: var(--muted); margin-bottom: 4px; }
.dial-label b { display: block; font-weight: 400; font-size: 30px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dial-label b small { font-size: 13px; color: var(--faint); letter-spacing: 0; margin-left: 2px; }
.dial-label > span:last-child { font-size: 12.5px; color: var(--muted); }

/* Rechts: Info-Chip */
.aside { justify-self: start; max-width: 300px; text-align: left; position: relative; z-index: 2; }
.aside-head { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.chip-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--yellow); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04); }
.chip-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.aside-text { margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* Unten: schwebende Karte */
.float-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 4;
  width: min(540px, 92vw); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.96); border: 1px solid var(--hair); border-radius: 6px; padding: 16px 20px;
  box-shadow: var(--shadow); text-decoration: none; text-align: left; transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.float-card:hover { box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 50px -14px rgba(0,0,0,0.18); transform: translateX(-50%) translateY(-2px); }
.fc-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--hair-2); display: grid; place-items: center; overflow: hidden; }
.fc-ico img { width: 72%; height: 72%; object-fit: contain; }
.fc-text { display: flex; flex-direction: column; min-width: 0; }
.fc-title { font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-sub { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-right { display: flex; align-items: center; gap: 10px; }
.fc-arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; transition: transform 0.3s var(--ease); }
.fc-arrow svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fc-arrow.down { transform: rotate(180deg); }
.is-live .fc-arrow { background: var(--red); }
.fc-num { font-size: 42px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-num small { font-size: 17px; letter-spacing: -0.01em; margin-left: 6px; color: var(--ink-2); }

/* ---------- Grid & cards ---------- */
.grid {
  max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 40px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px;
  border-top: 1px solid var(--hair);
}
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1000px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}
.card {
  background: #fff; border: 1px solid var(--hair); border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px); min-width: 0; scroll-margin-top: 20px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.card-head h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 500; display: flex; align-items: baseline; gap: 12px; }
.card-head h2 .mono { font-size: 10.5px; color: var(--faint); letter-spacing: 0.16em; }
.sub { color: var(--faint); font-size: 10.5px; }

.skeleton { color: var(--faint); font-size: 13px; padding: 12px 0; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.4; } }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; margin: 0; }
.err { color: var(--red); font-size: 14px; }
.note { color: var(--faint); font-size: 11.5px; margin: 14px 0 0; }

/* ---------- Live card ---------- */
.live-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-size: 11px; }
.comp-pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border: 1px solid #cfcfcf; padding: 4px 12px; border-radius: 999px; }
.badge-live { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 500; letter-spacing: 0.18em; }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }

.scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 28px 0 14px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.side img { width: 60px; height: 60px; object-fit: contain; filter: grayscale(1) contrast(1.2); }
.side.focus img { filter: none; }
.side .name { font-size: 19px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.score { font-weight: 300; font-size: 76px; line-height: 1; text-align: center; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; min-width: 150px; }
.score .minute { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--red); margin-top: 8px; }
.score .kick { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 10px; }
.score.vs { font-size: 44px; color: var(--faint); }
.countdown { display: flex; gap: 0; justify-content: center; margin-top: 16px; border: 1px solid var(--hair); border-radius: 10px; }
.countdown div { padding: 8px 12px; min-width: 58px; }
.countdown div + div { border-left: 1px solid var(--hair); }
.countdown b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { font-family: var(--mono); font-size: 9px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.14em; }
.venue { text-align: center; color: var(--muted); font-size: 13px; }

.timeline { list-style: none; padding: 0; margin: 20px 0 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--hair-2); }
.timeline .min { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline .h { text-align: right; } .timeline .a { text-align: left; }
.timeline .assist { color: var(--faint); font-size: 12px; }
.ico { display: inline-block; width: 9px; height: 12px; border-radius: 1.5px; vertical-align: -1px; margin: 0 6px; }
.ico.yellow { background: var(--yellow); } .ico.red { background: var(--red); }
.ico.yellow-red { background: linear-gradient(135deg, var(--yellow) 50%, var(--red) 50%); }
.ico.goal { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.ico.own-goal { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--red); }
.ico.var, .ico.penalty-miss { width: auto; height: auto; font-family: var(--mono); font-size: 9.5px; padding: 1px 4px; background: var(--hair-2); color: var(--ink-2); }

.mini-stats { margin-top: 18px; display: grid; gap: 10px; }
.mstat { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.mstat .lbl { grid-column: 1 / -1; text-align: center; color: var(--muted); margin-bottom: -6px; font-size: 12px; }
.mstat .v { font-variant-numeric: tabular-nums; }
.mstat .v:last-child { text-align: right; }
.mstat .bars { display: flex; gap: 2px; height: 3px; }
.mstat .bars span { border-radius: 2px; }
.mstat .bars span:first-child { background: var(--ink); } .mstat .bars span:last-child { background: #d0d0d0; }

.last-match { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.last-match h3 { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.16em; font-weight: 400; margin-bottom: 6px; }
.last-match .ls { font-size: 22px; letter-spacing: -0.02em; }

/* ---------- Index ---------- */
.gauge-wrap { display: flex; flex-direction: column; }
.big-num { font-size: 96px; font-weight: 300; line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 22px; color: var(--faint); letter-spacing: -0.01em; margin-left: 4px; }
.gauge-verdict { font-size: 11px; color: var(--red); margin-top: 12px; }
.tick-bar { display: flex; justify-content: space-between; gap: 2px; height: 26px; margin: 18px 0 6px; }
.tick-bar i { width: 1.5px; background: #d6d6d6; border-radius: 1px; animation: tickIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 14ms); }
.tick-bar i:nth-child(10n + 1) { height: 100%; } .tick-bar i { height: 70%; align-self: end; }
.tick-bar i.lit { background: var(--ink); }
.breakdown { width: 100%; margin-top: 14px; display: grid; gap: 9px; font-size: 12.5px; }
.breakdown .row { display: grid; grid-template-columns: 1fr 90px 50px; gap: 10px; align-items: center; color: var(--muted); }
.breakdown .row b { color: var(--ink); text-align: right; font-weight: 400; font-family: var(--mono); font-size: 11px; }
.track { height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--ink); }

.info { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #cfcfcf; background: #fff; color: var(--ink); font-size: 12px; font-family: var(--mono); }
.info:hover { border-color: var(--ink); }
.info .tip {
  display: none; position: absolute; right: 0; top: 34px; width: min(320px, 80vw); z-index: 20; text-align: left;
  background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 14px 16px; color: var(--ink-2); font-family: var(--font); font-size: 12.5px; line-height: 1.6;
  box-shadow: var(--shadow);
}
.info .tip strong { color: var(--ink); font-weight: 500; }
.info:hover .tip, .info:focus .tip, .info:focus-within .tip { display: block; }

/* ---------- Form ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.res {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--mono); font-size: 12px; position: relative; cursor: default;
}
.res.W { background: var(--ink); color: #fff; }
.res.D { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #c8c8c8; }
.res.L { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.res[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: #fff; font-family: var(--font); font-size: 12px; padding: 5px 9px; border-radius: 6px; z-index: 10;
}
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; }
.legend i.dash { background: repeating-linear-gradient(90deg, #b5b5b5 0 3px, transparent 3px 6px); }

svg text { font-family: var(--font); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) 0.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); margin-bottom: 20px; }
.kpi { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 12px 14px; }
.kpi .k { font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.kpi .v { font-size: 30px; font-weight: 300; letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi .s { font-size: 11px; color: var(--faint); }

/* ---------- Table ---------- */
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { background: #fff; border: 1px solid var(--hair); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: var(--muted); transition: all 0.2s; }
.seg button:hover { color: var(--ink); border-color: #cfcfcf; }
.seg button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th { text-align: right; color: var(--faint); font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 8px; border-bottom: 1px solid var(--hair); }
td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
th.l, td.l { text-align: left; }
td.team { min-width: 140px; }
td.team img { width: 20px; height: 20px; object-fit: contain; filter: grayscale(1); opacity: 0.8; vertical-align: middle; margin-right: 10px; }
tr.focus td { background: var(--soft); font-weight: 600; }
tr.focus td:first-child { box-shadow: inset 2px 0 0 var(--red); }
tr.focus td.team img { filter: none; opacity: 1; }
tr.gap td { text-align: center; color: var(--faint); padding: 2px; }
td.pts { font-weight: 600; }
.gaps { display: flex; gap: 0; margin-bottom: 18px; flex-wrap: wrap; border: 1px solid var(--hair); border-radius: 10px; }
.gap-pill { padding: 10px 16px; font-size: 12px; color: var(--muted); flex: 1 1 140px; }
.gap-pill + .gap-pill { border-left: 1px solid var(--hair); }
.gap-pill b { display: block; font-size: 28px; font-weight: 300; letter-spacing: -0.04em; color: var(--ink); line-height: 1.1; }

/* ---------- Home / Away ---------- */
.ha { display: grid; gap: 14px; }
.ha-head { display: grid; grid-template-columns: 1fr 120px 1fr; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ha-head span:first-child { text-align: right; } .ha-head span:last-child { text-align: left; }
.ha-row { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.ha-row .lbl { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ha-row .lbl b { color: var(--ink); font-weight: 500; }
.ha-row .bar { display: flex; align-items: center; gap: 8px; }
.ha-row .bar.left { flex-direction: row-reverse; }
.ha-row .bar i { display: block; height: 4px; border-radius: 2px; min-width: 2px; transition: width 0.6s var(--ease); }
.ha-row .bar.left i { background: var(--ink); } .ha-row .bar.right i { background: #c4c4c4; }
.ha-row .bar b { font-variant-numeric: tabular-nums; font-weight: 400; min-width: 36px; font-family: var(--mono); font-size: 12px; }
.ha-row .bar.left b { text-align: right; }
.wdl { display: flex; gap: 2px; height: 6px; width: 100%; }
.wdl span { border-radius: 2px; }
.wdl span:nth-child(1) { background: var(--ink); } .wdl span:nth-child(2) { background: #cfcfcf; } .wdl span:nth-child(3) { background: var(--red); }

/* ---------- Fixtures ---------- */
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; }
.fixture { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair-2); }
.fixture:first-child { padding-top: 0; }
.fixture:last-child { border-bottom: 0; }
.fixture img { width: 34px; height: 34px; object-fit: contain; filter: grayscale(1) contrast(1.1); }
.fixture .opp { font-size: 15.5px; letter-spacing: -0.01em; }
.fixture .opp small { font-family: var(--mono); color: var(--faint); font-size: 10.5px; margin-left: 6px; }
.fixture .when { color: var(--muted); font-size: 12px; }
.fixture .cd { font-size: 18px; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fixture:first-child .cd { color: var(--red); }
.fixture .cd small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ---------- Derby ---------- */
.derbies { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border: 1px solid var(--hair); border-radius: 12px; }
.derby { padding: 18px; min-width: 0; }
.derby + .derby { border-left: 1px solid var(--hair); }
.derby-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.derby-top img { width: 30px; height: 30px; object-fit: contain; filter: grayscale(1) contrast(1.2); }
.derby-top .n { font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.derby-top .c { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.meter { position: relative; height: 14px; margin: 14px 0 6px; background: repeating-linear-gradient(90deg, #d4d4d4 0 1px, transparent 1px 8px); }
.meter::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink); opacity: 0.35; }
.meter .needle { position: absolute; top: -6px; width: 3px; height: 26px; background: var(--red); border-radius: 2px; transform: translateX(-50%); }
.meter-l { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.derby .rec { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 14px; }
.derby .rec b { color: var(--ink); font-size: 18px; font-weight: 400; letter-spacing: -0.02em; }
.derby .chips { margin: 14px 0 0; }
.derby .res { width: 24px; height: 24px; font-size: 10px; }

/* ---------- Streaks ---------- */
.streaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.streak { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 18px 20px; }
.streak .k { font-size: 9.5px; color: var(--muted); }
.streak .v { font-size: 52px; font-weight: 300; line-height: 1.05; letter-spacing: -0.05em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.streak .v small { font-size: 14px; color: var(--faint); letter-spacing: 0; margin-left: 6px; }
.streak .s { font-size: 12px; color: var(--muted); }

.foot { max-width: 1440px; margin: 0 auto; padding: 24px var(--gutter) 40px; color: var(--faint); font-size: 12px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--hair); }
.foot .mono { color: var(--ink); font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 22px; }
  .stage { grid-template-columns: 1fr minmax(0, 480px) 1fr; min-height: 520px; }
  .holo { left: -12%; }
  .holo-num { font-size: 60px; }
}
@media (max-width: 920px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding-bottom: 0; margin-top: 24px; }
  .rail { justify-self: stretch; order: 1; gap: 14px; }
  .comp-list { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .comp-list::-webkit-scrollbar { display: none; }
  .comp-list button, .comp-list button:nth-child(2), .comp-list button:nth-child(4) { transform: none; flex: none; padding: 5px 14px 5px 5px; border: 1px solid var(--hair); border-radius: 999px; gap: 8px; white-space: nowrap; }
  .comp-list button[aria-pressed="true"] { border-color: var(--ink); }
  .comp-list button[aria-pressed="true"]::before { display: none; }
  .thumb { width: 26px; height: 26px; border-radius: 50%; }
  .season { padding-left: 0; justify-content: center; }
  .dial { order: 2; width: min(100%, 460px); justify-self: center; margin-bottom: 96px; }
  .holo { left: 0; top: 2%; min-width: 0; max-width: 62%; }
  .crest { width: 62%; }
  .dial-label { left: 50%; top: auto; bottom: 0; transform: translateX(-50%); text-align: center; }
  .float-card { bottom: -84px; }
  .aside { order: 3; justify-self: center; max-width: 420px; }
  .halftone { left: 0; top: 8%; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .nav { padding-top: 16px; padding-bottom: 12px; }
  .nav-links { justify-content: flex-start; gap: 20px; font-size: 13.5px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .pill { padding: 7px 14px 7px 12px; font-size: 13px; }
  .hero { padding-top: 22px; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.16em; }
  .holo { padding: 8px 12px; }
  .holo-num { font-size: 44px; }
  .holo-num small { font-size: 22px; }
  .holo-lbl, .holo-sub { font-size: 8px; }
  .dial-label b { font-size: 24px; }
  .float-card { padding: 12px 14px; gap: 10px; bottom: -88px; }
  .fc-ico { width: 38px; height: 38px; }
  .fc-title { font-size: 16px; }
  .fc-sub { font-size: 9px; }
  .fc-arrow { width: 26px; height: 26px; }
  .fc-num { font-size: 30px; }
  .fc-num small { font-size: 12px; margin-left: 3px; }
  .grid { gap: 14px; padding-top: 28px; }
  .score { font-size: 54px; min-width: 96px; }
  .side img { width: 42px; height: 42px; }
  .side .name { font-size: 15px; }
  .ha-head, .ha-row { grid-template-columns: 1fr 90px 1fr; }
  .timeline li { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); font-size: 12.5px; }
  .scoreline { gap: 8px; }
  .countdown div { min-width: 0; padding: 6px 8px; }
  .countdown b { font-size: 20px; }
  .fixture { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; }
  .derby + .derby { border-left: 0; border-top: 1px solid var(--hair); }
  .big-num { font-size: 76px; }
  .streak .v { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart .draw { stroke-dashoffset: 0; }
}
