/* Go Fútbol PY
   One motif: the Albirroja stripe. It is the band on the cards, the bars of
   the comparator and the weights, and the ball in the mark. One red, one ink,
   one paper grey. Square corners everywhere except the ball. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #e3e3e3;
  --surface-3: #cdcdcd;
  --ink: #0a0a0a;
  --muted: #5e5e5e;
  --accent: #d92b21;
  --accent-press: #b8221a;
  --accent-ink: #ffffff;
  --accent-text: #b3211a;
  --field: #0a0a0a;
  --field-ink: #ffffff;
  --rule: rgba(10, 10, 10, .1);

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1.2rem + 5.6vw, 6rem);

  --gutter: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --section: clamp(96px, 12vw, 176px);
  --wide: 1376px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 160ms;
  --slow: 700ms;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); letter-spacing: -.005em; font-feature-settings: "tnum" 0; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code { font: inherit; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* The mark: a g and a ball cut into four stripes. */
.mark { display: block; height: 1em; width: auto; flex: none; overflow: visible; }
.mark-ball { fill: var(--accent); }
.mark-disc { fill: none; }

/* Buttons: flat, square, one fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: background var(--fast), transform var(--fast); }
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px); }

/* Position chip */
.pos { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 8px; background: var(--surface-2); color: var(--ink); font-size: var(--step-small); font-weight: 600; letter-spacing: .01em; }

/* ---------- Top bar ---------- */
.topbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; max-width: var(--wide); height: 72px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 600; text-decoration: none; }
.brand span { font-size: 20px; letter-spacing: -.035em; white-space: nowrap; transform: translateY(-2px); }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; color: var(--muted); font-weight: 500; text-decoration: none; transition: color var(--fast), background var(--fast); }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.account { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--accent); color: var(--accent-ink); font-size: var(--step-small); font-weight: 600; }
.account-name { max-width: 16ch; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.account form { margin: 0; }
.logout { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 0; background: var(--surface); color: var(--ink); font-weight: 500; text-decoration: none; transition: background var(--fast); }
.logout:hover { background: var(--surface-2); }

/* ---------- App screens ---------- */
.screen { max-width: var(--wide); margin: 0 auto; padding: 32px var(--gutter) 120px; }
.screen-head { display: grid; gap: 12px; padding: 24px 0 40px; }
.screen-head h1 { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); }
.finding { color: var(--ink); font-size: var(--step-lead); line-height: 1.3; }
.finding strong { font-weight: 600; color: var(--accent-text); }

.block { margin-top: 56px; }
.block:first-of-type { margin-top: 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.block-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.more { color: var(--ink); font-weight: 500; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.more:hover { color: var(--accent); }

/* Leaders: four equal lanes, one per position. */
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.lane { position: relative; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 10px; min-height: 260px; padding: 28px 24px 24px; background: var(--surface); }
.lane::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--accent); }
.lane-pos { color: var(--muted); font-weight: 500; }
.lane-crest { width: 56px; height: 56px; object-fit: contain; }
.lane-name { align-self: end; font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lane-meta { color: var(--muted); font-size: var(--step-small); }
.lane-score { font-size: 2.5rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Awards */
.award-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.award { display: grid; align-content: start; gap: 18px; padding: 24px; background: var(--surface); }
.award-heading { display: grid; gap: 6px; }
.award-heading h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.award-status { color: var(--muted); font-size: var(--step-small); font-weight: 500; }
.award-status.projection { color: var(--accent-text); }
.award-ranking { display: grid; gap: 4px; }
.award-player { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; }
.award-rank { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.award-player:first-child .award-rank { color: var(--accent-text); }
.award-club-icon { width: 28px; height: 28px; object-fit: contain; }
.award-club-placeholder { width: 28px; height: 28px; background: var(--surface-2); }
.award-player-info { display: grid; min-width: 0; line-height: 1.25; }
.award-player-info strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.award-player-info small { overflow: hidden; color: var(--muted); font-size: var(--step-small); text-overflow: ellipsis; white-space: nowrap; }
.award-score { font-weight: 600; font-variant-numeric: tabular-nums; }
.award-empty { color: var(--muted); }

/* Filters */
.filters { position: relative; display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.field { display: grid; gap: 4px; color: var(--muted); font-size: var(--step-small); font-weight: 500; }
.field select { min-width: 180px; min-height: 48px; padding: 0 40px 0 14px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font-size: 1rem; -webkit-appearance: none; appearance: none; background-image: url("/assets/chevron.svg"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; transition: background-color var(--fast); }
.field select:hover { background-color: var(--surface-2); }
.filters .btn { min-height: 48px; }
.htmx-indicator { position: absolute; top: calc(100% + 6px); right: 0; color: var(--muted); font-size: var(--step-small); opacity: 0; transition: opacity var(--fast); }
.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { opacity: 1; }

/* Podium */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 24px; }
.pod { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "rank crest" "name name" "meta meta" "score score"; align-items: start; gap: 8px 16px; padding: 24px; background: var(--surface); }
.pod:first-child { background: var(--accent); color: var(--accent-ink); }
.pod:first-child .pos { background: rgba(255, 255, 255, .22); color: var(--accent-ink); }
.pod-rank { grid-area: rank; font-size: 2.5rem; font-weight: 500; line-height: .9; letter-spacing: -.04em; }
.pod-crest { grid-area: crest; justify-self: end; width: 48px; height: 48px; object-fit: contain; }
.pod-name { grid-area: name; margin-top: 16px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.pod-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--step-small); }
.pod-score { grid-area: score; margin-top: 8px; font-size: 2.5rem; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th { padding: 0 14px 12px; color: var(--muted); font-size: var(--step-small); font-weight: 500; text-align: left; white-space: nowrap; border-bottom: 2px solid var(--ink); }
td { height: 56px; padding: 0 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
tbody tr { transition: background var(--fast); }
tbody tr:hover { background: var(--surface); }
.rank { width: 56px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.player { font-weight: 600; }
.points { text-align: right; font-variant-numeric: tabular-nums; }
.score { font-weight: 600; }
.team { display: inline-flex; align-items: center; gap: 10px; }
.team-logo { width: 28px; height: 28px; object-fit: contain; }
.table-note { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.state { padding: 48px 32px; background: var(--surface); }
.state h3 { font-size: var(--step-lead); }
.state p { margin-top: 8px; }
.state.error h3 { color: var(--accent); }

/* ---------- The stripe band ---------- */
.stripe { display: flex; height: 64px; margin: 20px 20px 0; }
.stripe i { flex: 1; background: var(--bg); }
.stripe i:nth-child(even) { background: transparent; }

/* ---------- Cómo funciona ---------- */
.explainer { padding: 0 var(--gutter); }
.explainer > section { max-width: var(--wide); margin: 0 auto; }

.ex-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); min-height: calc(100svh - 72px - var(--gutter)); }
.ex-hero.solo { grid-template-columns: minmax(0, 1fr); }
.ex-card { display: grid; grid-template-rows: auto 1fr; background: var(--accent); color: var(--accent-ink); }
.ex-card-body { display: grid; align-content: center; justify-items: center; gap: 36px; padding: 64px clamp(24px, 5vw, 72px); text-align: center; }
.ex-card h1 { max-width: 11ch; font-size: var(--step-display); letter-spacing: -.05em; line-height: .92; }
.ex-card .lead { max-width: 30ch; text-wrap: balance; font-size: var(--step-lead); line-height: 1.3; }
.ex-card .btn { background: var(--ink); color: var(--field-ink); }
.ex-card .btn:hover { background: #2a2a2a; }

.comparator { display: grid; align-content: start; gap: 24px; padding: clamp(24px, 3vw, 40px); background: var(--surface); }
.comparator-title { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; }
.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch label { display: grid; place-items: center; min-height: 56px; padding: 0 12px; color: var(--muted); font-weight: 600; text-align: center; cursor: pointer; transition: background var(--fast), color var(--fast); }
.switch label:hover { color: var(--ink); }
.switch input:checked + label { background: var(--ink); color: var(--field-ink); }
.switch input#orden-gfpy:checked + label { background: var(--accent); color: var(--accent-ink); }
.switch input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: -3px; }

.mix { display: grid; gap: 10px; }
.mix-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 2.2em; align-items: center; gap: 14px; }
.mix-pos { font-weight: 500; }
.mix-track { position: relative; height: 32px; background: var(--surface-2); }
.mix-bar { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(calc(var(--n, 0) / 20)); transition: transform var(--slow) var(--ease); }
.mix-n { font-size: var(--step-lead); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.top { display: grid; counter-reset: top; }
/* The top 10 lives in the data-ui comparator: its rows keep a table rule. */
.top li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto 3.2em; align-items: center; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--rule); counter-increment: top; } /* taste-skill-ignore */
.top li::before { content: counter(top); color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.top-player { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.top-player img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.top-player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-value { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Each bar knows both counts; the checked radio decides which one it shows. */
.r-0 { --r: 0; } .r-1 { --r: 1; } .r-2 { --r: 2; } .r-3 { --r: 3; } .r-4 { --r: 4; } .r-5 { --r: 5; } .r-6 { --r: 6; }
.r-7 { --r: 7; } .r-8 { --r: 8; } .r-9 { --r: 9; } .r-10 { --r: 10; } .r-11 { --r: 11; } .r-12 { --r: 12; } .r-13 { --r: 13; }
.r-14 { --r: 14; } .r-15 { --r: 15; } .r-16 { --r: 16; } .r-17 { --r: 17; } .r-18 { --r: 18; } .r-19 { --r: 19; } .r-20 { --r: 20; }
.c-0 { --c: 0; } .c-1 { --c: 1; } .c-2 { --c: 2; } .c-3 { --c: 3; } .c-4 { --c: 4; } .c-5 { --c: 5; } .c-6 { --c: 6; }
.c-7 { --c: 7; } .c-8 { --c: 8; } .c-9 { --c: 9; } .c-10 { --c: 10; } .c-11 { --c: 11; } .c-12 { --c: 12; } .c-13 { --c: 13; }
.c-14 { --c: 14; } .c-15 { --c: 15; } .c-16 { --c: 16; } .c-17 { --c: 17; } .c-18 { --c: 18; } .c-19 { --c: 19; } .c-20 { --c: 20; }
.mix-bar { --n: var(--c); }
.top.when-ranked { display: none; }
.mix-n .when-ranked { display: none; }
@supports selector(:has(*)) {
  .comparator:has(#orden-gfpy:checked) .mix-bar { --n: var(--r); }
  .comparator:has(#orden-gfpy:checked) .when-counted { display: none; }
  .comparator:has(#orden-gfpy:checked) .mix-n .when-ranked { display: inline; }
  .comparator:has(#orden-gfpy:checked) .top.when-ranked { display: grid; animation: swap var(--slow) var(--ease); }
  .comparator:has(#orden-goles:checked) .top.when-counted { animation: swap var(--slow) var(--ease); }
}
@keyframes swap { from { opacity: 0; transform: translateY(12px); } }

.ex-cohorts, .ex-weights, .ex-minutes, .ex-cta, .ex-formulas { padding-top: var(--section); }
.explainer h2 { font-size: var(--step-head); }
.explainer .lead { font-size: var(--step-lead); line-height: 1.3; }

.poster { display: grid; margin-top: 40px; }
.poster li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 6px 0; transition: color var(--fast); }
.poster li:hover { color: var(--accent); }
.poster-word { font-size: var(--step-display); font-weight: 500; letter-spacing: -.05em; line-height: .92; }
.poster-fact { font-size: var(--step-lead); font-weight: 500; font-variant-numeric: tabular-nums; }

.weights { display: grid; gap: var(--gap); margin-top: 40px; }
.weight-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); align-items: center; gap: 24px; }
.weight-pos { font-size: var(--step-lead); font-weight: 500; letter-spacing: -.02em; }
.weight-bar { display: flex; gap: 4px; height: 76px; }
.seg { display: flex; align-items: flex-start; min-width: 0; padding: 12px; background: var(--surface-2); font-size: var(--step-small); font-weight: 600; overflow: hidden; white-space: nowrap; transition: transform var(--fast); }
.seg:nth-child(even) { background: var(--surface-3); }
.seg.lead { background: var(--accent); color: var(--accent-ink); }
.seg.w-5 .seg-label { display: none; }
.w-5 { flex-grow: 5; } .w-10 { flex-grow: 10; } .w-15 { flex-grow: 15; } .w-20 { flex-grow: 20; } .w-25 { flex-grow: 25; }
.w-30 { flex-grow: 30; } .w-35 { flex-grow: 35; } .w-40 { flex-grow: 40; } .w-45 { flex-grow: 45; } .w-50 { flex-grow: 50; }
.w-55 { flex-grow: 55; } .w-60 { flex-grow: 60; } .w-65 { flex-grow: 65; } .w-70 { flex-grow: 70; } .w-75 { flex-grow: 75; }
.seg { flex-basis: 0; }
.note { margin-top: 20px; color: var(--muted); font-size: var(--step-small); }

.ex-band { position: relative; max-width: var(--wide); margin: var(--section) auto 0; }
.ex-band img { width: 100%; height: clamp(320px, 56vw, 720px); object-fit: cover; object-position: 50% 62%; }
.ex-band figcaption, .cta-photo figcaption { margin-top: 10px; color: var(--muted); font-size: var(--step-small); }
.ex-cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px var(--gap); }
.cta-photo { grid-column: 2; grid-row: 1; }
.cta-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 22%; }
.ex-cta .cta-line { grid-column: 1; grid-row: 1; }
.ex-minutes .lead { margin-top: 16px; }
.curve { margin-top: 40px; }
.curve svg { display: block; width: 100%; height: auto; }
.curve-field { fill: var(--surface); }
.curve-area { fill: var(--accent); }
.curve-dot { fill: var(--ink); }
.curve-dot.current { fill: var(--bg); stroke: var(--ink); stroke-width: 6; }
.curve-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 24px; }
.curve-marks li { display: grid; gap: 2px; }
.curve-marks strong { font-size: var(--step-head); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.curve-marks span { color: var(--muted); font-size: var(--step-small); font-weight: 500; }
.curve-marks .current strong { color: var(--accent); }

.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.cta-line h2 { font-size: inherit; }
.cta-line select { min-height: 1.3em; padding: 0 1.2em 0 .4em; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font-size: inherit; font-weight: 500; letter-spacing: -.03em; -webkit-appearance: none; appearance: none; background-image: url("/assets/chevron-red.svg"); background-repeat: no-repeat; background-position: right .35em center; background-size: .4em; cursor: pointer; transition: background-color var(--fast); }
.cta-line select:hover { background-color: var(--surface-2); }
.cta-line .btn { min-height: 1.3em; padding: 0 .55em; font-size: inherit; font-weight: 500; letter-spacing: -.03em; }

.ex-formulas { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px var(--gap); padding-bottom: var(--section); }
.ex-formulas h2 { position: sticky; top: 24px; align-self: start; }
.tiles { display: grid; gap: 8px; }
.tiles details { background: var(--surface); transition: background var(--fast), color var(--fast); }
.tiles details[open] { background: var(--accent); color: var(--accent-ink); }
.tiles summary { position: relative; display: flex; align-items: center; min-height: 72px; padding: 0 64px 0 24px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.tiles summary::-webkit-details-marker { display: none; }
.tiles summary::before, .tiles summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform var(--fast); }
.tiles summary::after { transform: rotate(90deg); }
.tiles details[open] summary::after { transform: rotate(0deg); }
.tiles summary:hover { background: var(--surface-2); }
.tiles details[open] summary:hover { background: var(--accent-press); }
.tiles details > :not(summary) { max-width: 60ch; margin: 0 24px; }
.tiles details > :last-child { margin-bottom: 24px; }
.tiles details > * + * { margin-top: 12px; }
.formula { font-weight: 600; font-variant-numeric: tabular-nums; }
.tiles dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.tiles dt { font-weight: 600; }
.formula-table { width: auto; min-width: 0; }
.formula-table th, .formula-table td { height: 40px; padding: 0 12px 0 0; border-bottom: 1px solid rgba(255, 255, 255, .3); color: inherit; font-variant-numeric: tabular-nums; }
.formula-table thead th { border-bottom: 2px solid currentColor; }

/* ---------- Footer: the mark, built large ---------- */
.site-footer { display: grid; gap: 32px; padding: 72px var(--gutter) 40px; background: var(--field); color: var(--field-ink); }
.footer-mark { display: flex; align-items: center; gap: .16em; max-width: var(--wide); width: 100%; margin: 0 auto; font-size: clamp(64px, 20.5vw, 300px); font-weight: 600; text-decoration: none; }
.footer-mark span { font-size: .62em; letter-spacing: -.05em; line-height: 1; transform: translateY(-.06em); }
.footer-mark .mark-disc, .site-footer .mark-disc { fill: var(--field-ink); }
.credits { display: grid; gap: 4px; max-width: var(--wide); width: 100%; margin: 0 auto; color: #c4c4c4; font-size: var(--step-small); }
.credits a { color: inherit; }

/* ---------- Login and register ---------- */
.auth { background: var(--bg); }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); min-height: 100svh; padding: var(--gutter); }
.auth-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); }
.auth-card .stripe i:nth-child(odd) { background: var(--accent); }
.auth-body { display: grid; align-content: center; justify-items: center; gap: 20px; padding: 56px clamp(24px, 3.4vw, 48px); text-align: center; }
.brand-title { display: flex; align-items: center; gap: .16em; font-size: clamp(56px, 7vw, 104px); font-weight: 600; }
.brand-title > span[aria-hidden] { font-size: .6em; letter-spacing: -.05em; line-height: 1; transform: translateY(-.05em); }
.tagline { max-width: 12ch; font-size: var(--step-head); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.auth-what { color: var(--muted); font-size: var(--step-body); }
.auth-panel { display: grid; gap: 16px; width: min(100%, 400px); margin-top: 24px; text-align: left; }
.auth-panel h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.02em; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { margin-top: 8px; font-size: var(--step-small); font-weight: 600; }
.field-help { color: var(--muted); font-weight: 400; }
.auth-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: var(--bg); color: var(--ink); transition: box-shadow var(--fast); }
.auth-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.auth-form .btn { margin-top: 16px; }
.google-button { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; transition: background var(--fast); }
.google-button:hover { background: var(--surface-2); }
.auth-switch { color: var(--muted); font-size: var(--step-small); }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.form-error { padding: 14px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.auth-photos { position: sticky; top: var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 4.4fr) minmax(0, 1fr) auto; gap: var(--gap); height: calc(100svh - 2 * var(--gutter)); }
.ph { overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-main { grid-column: 1 / -1; }
.ph-main img { object-position: 40% 50%; }
.auth-credit { grid-column: 1 / -1; justify-self: end; max-width: 64ch; color: var(--muted); font-size: var(--step-small); text-align: right; }
.auth-credit a { color: inherit; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.ex-card-body > *, .auth-body > *, .screen-head > * { animation: rise var(--slow) var(--ease) both; }
.ex-card-body > :nth-child(2), .auth-body > :nth-child(2), .screen-head > :nth-child(2) { animation-delay: 80ms; }
.ex-card-body > :nth-child(3), .auth-body > :nth-child(3) { animation-delay: 160ms; }
.auth-body > :nth-child(4) { animation-delay: 240ms; }
.comparator, .lanes .lane { animation: rise var(--slow) var(--ease) both; animation-delay: 120ms; }
.lanes .lane:nth-child(2) { animation-delay: 190ms; }
.lanes .lane:nth-child(3) { animation-delay: 260ms; }
.lanes .lane:nth-child(4) { animation-delay: 330ms; }
@keyframes bar { from { transform: scaleY(0); } }
.stripe i { transform-origin: top; animation: bar 520ms var(--ease) both; }
.stripe i:nth-child(2) { animation-delay: 40ms; } .stripe i:nth-child(3) { animation-delay: 80ms; } .stripe i:nth-child(4) { animation-delay: 120ms; }
.stripe i:nth-child(5) { animation-delay: 160ms; } .stripe i:nth-child(6) { animation-delay: 200ms; } .stripe i:nth-child(7) { animation-delay: 240ms; }
.stripe i:nth-child(8) { animation-delay: 280ms; } .stripe i:nth-child(9) { animation-delay: 320ms; } .stripe i:nth-child(10) { animation-delay: 360ms; }
.stripe i:nth-child(11) { animation-delay: 400ms; } .stripe i:nth-child(12) { animation-delay: 440ms; } .stripe i:nth-child(13) { animation-delay: 480ms; }
.ph:not(.ph-main) { animation: rise var(--slow) var(--ease) both; animation-delay: 200ms; }
.ph:nth-child(3) { animation-delay: 270ms; } .ph:nth-child(4) { animation-delay: 340ms; }
.reveal-wait { opacity: 0; transform: translateY(24px); }
.reveal-in { opacity: 1; transform: none; transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .reveal-wait { opacity: 1; transform: none; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ex-hero, .auth-split { grid-template-columns: minmax(0, 1fr); }
  .ex-hero { min-height: 0; }
  .ex-card-body { padding: 56px 24px 64px; }
  .auth-photos { position: relative; top: 0; height: auto; grid-template-rows: 48svh 24svh auto; }
  .auth-credit { justify-self: start; text-align: left; }
  .ex-formulas, .ex-cta { grid-template-columns: minmax(0, 1fr); }
  .cta-photo, .ex-cta .cta-line { grid-column: 1; grid-row: auto; }
  .ex-formulas h2 { position: static; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .pod { grid-template-columns: auto auto 1fr auto; grid-template-areas: "rank crest name score" "rank crest meta score"; align-items: center; padding: 16px 20px; }
  .pod-name { margin-top: 0; }
  .pod-score { margin-top: 0; font-size: 1.5rem; }
  .pod-rank { font-size: 2rem; }
  .curve-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; grid-template-rows: 64px auto; height: auto; gap: 0 12px; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
  .nav a { flex: none; padding: 0 12px; }
}
@media (max-width: 720px) {
  .account-name { display: none; }
  .award-grid, .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; min-height: 0; padding: 24px 20px 20px; column-gap: 16px; }
  .lane-pos { grid-column: 1 / -1; }
  .lane-crest { grid-row: 2 / 4; }
  .lane-name { grid-column: 2; align-self: end; }
  .lane-meta { grid-column: 2; }
  .lane-score { grid-column: 3; grid-row: 2 / 4; align-self: center; font-size: 2.25rem; }
  .weight-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .weight-bar { height: 64px; }
  .seg.w-10 .seg-label { display: none; }
  .seg-name { display: none; }
  .poster li { display: grid; gap: 0; padding: 4px 0 14px; }
  .poster-fact { font-size: var(--step-body); }
  table { min-width: 0; }
  th, td { padding: 0 8px; }
  .col-pj, .col-min, .col-share, .team-name { display: none; }
  .player { white-space: normal; }
  .rank { width: 32px; }
  .mix-row { grid-template-columns: 8.2em minmax(0, 1fr) 1.8em; gap: 10px; }
  .screen { padding-top: 16px; }
  .block { margin-top: 48px; }
  .filters { width: 100%; }
  .field { flex: 1 1 140px; }
  .field select { min-width: 0; width: 100%; }
  .tiles dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tiles dd { margin-bottom: 10px; }
}
@media (max-width: 420px) {
  .brand span { font-size: 18px; }
  .top li { grid-template-columns: 1.6em minmax(0, 1fr) auto 2.8em; gap: 8px; }
  .top-player img { display: none; }
}
