/* auction200 — one stylesheet for every page.
   Layout: a sticky scoreboard bar (wordmark, search, tabs) over one ledger column; tables are the product. */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/big-shoulders-display.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff") format("woff"); font-weight: 500 600; font-display: swap; }

:root {
  --bg: #f2f4ef;          /* outfield chalk */
  --surface: #ffffff;
  --ink: #14201a;
  --muted: #5d6b63;
  --line: #d8dfd9;
  --accent: #b3271f;      /* ball leather */
  --turf: #1d6942;
  --gold: #9a7210;
  --chip: #e8ede8;
  /* match-rating bands, worst to best */
  --r-bad: #c2321f; --r-poor: #e07b1a; --r-ok: #c9a316; --r-good: #3f9e4b; --r-great: #12989b; --r-elite: #3456d6;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1410; --surface: #141d18; --ink: #e5ede8; --muted: #93a39a; --line: #24312a;
    --accent: #ee5c50; --turf: #55b886; --gold: #d8ad44; --chip: #1c2721; color-scheme: dark;
    --r-bad: #e2523f; --r-poor: #ef9336; --r-ok: #d9b93a; --r-good: #4fb860; --r-great: #2ab6b8; --r-elite: #6b86f2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; }

/* ---- header */
header.bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-top { display: flex; align-items: center; gap: 16px; padding-block: 12px 8px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .01em; line-height: 1; text-decoration: none; }
.mark b { color: var(--accent); font-weight: 900; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search { margin-left: auto; position: relative; flex: 1 1 240px; max-width: 340px; }
.search input { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); list-style: none; margin: 0; padding: 4px; z-index: 6; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 4px; text-decoration: none; }
.results a:hover, .results a.on { background: var(--chip); }
.results span { color: var(--muted); font-size: 13px; }
nav.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { flex: none; padding: 8px 12px 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
nav.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---- type */
main { padding-block: 28px 56px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(34px, 6vw, 52px); }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
.lede { color: var(--muted); max-width: 64ch; margin: 8px 0 20px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.more { font-weight: 600; text-decoration: none; color: var(--accent); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---- controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.count { font-size: 13px; color: var(--muted); margin-left: auto; }

/* ---- tables */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--chip); }
.num { text-align: right; white-space: nowrap; }
.rk { font-family: var(--display); font-weight: 800; font-size: 20px; width: 48px; color: var(--muted); }
.pl a { font-weight: 600; text-decoration: none; }
.pl a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl small, .sub { display: block; color: var(--muted); font-size: 12.5px; }
.big { font-family: var(--display); font-weight: 800; font-size: 24px; }
.dim { color: var(--muted); }
.nowrap { white-space: nowrap; }
.role { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.mr { display: inline-block; min-width: 42px; text-align: center; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--chip); }
.mr.r-bad { background: var(--r-bad); } .mr.r-poor { background: var(--r-poor); } .mr.r-ok { background: var(--r-ok); }
.mr.r-good { background: var(--r-good); } .mr.r-great { background: var(--r-great); } .mr.r-elite { background: var(--r-elite); }
.mr[class*="r-"]:not(.r-none) { color: #fff; }
.neg { color: var(--accent); }
.psplit { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--chip); min-width: 120px; }
.split i { display: block; height: 100%; }
.c-bat { background: var(--turf); } .c-bowl { background: var(--accent); } .c-field { background: var(--gold); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* ---- performance lists */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.perf { list-style: none; margin: 12px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.perf li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.perf li:last-child { border-bottom: 0; }
.perf .fig { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; }
.perf .who { min-width: 0; }
.perf .who a { font-weight: 600; text-decoration: none; }
.perf .who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.perf .who small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf .val { text-align: right; font-variant-numeric: tabular-nums; }
.perf .val b { font-family: var(--display); font-size: 24px; font-weight: 800; display: block; line-height: 1; }
.perf .val small { color: var(--muted); font-size: 12px; }
.perf.club li { grid-template-columns: 46px minmax(0, 1fr) auto; }
.perf.club .val b { font-size: 18px; color: var(--muted); }
.badge { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--gold); border: 2px solid var(--gold); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; }

/* ---- home */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-block: 8px 12px; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); line-height: .95; }
.hero h1 b { color: var(--accent); font-weight: 900; }
.hero .lede { font-size: 17px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.two00 { font-family: var(--display); font-weight: 900; font-size: clamp(88px, 16vw, 150px); line-height: .8; color: var(--gold); letter-spacing: -.01em; }
.club-head { display: flex; gap: 24px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.teaser { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.teaser .two00 { font-size: 72px; }
.teaser p { margin: 0; flex: 1 1 260px; }

/* ---- waitlist */
.waitlist { background: var(--surface); border: 1px solid var(--ink); border-radius: 8px; padding: 18px; }
.waitlist h2 { font-size: 24px; }
.waitlist p { margin: 6px 0 12px; color: var(--muted); }
.wl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-row input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.btn { border: 0; border-radius: 6px; padding: 9px 16px; font-weight: 700; background: var(--accent); color: var(--surface); cursor: pointer; text-decoration: none; display: inline-block; }
.btn[disabled] { opacity: .6; cursor: default; }
.wl-msg { margin-top: 8px; font-size: 14px; min-height: 1.4em; }
.wl-msg.ok { color: var(--turf); }
.wl-msg.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- player */
.ph { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 20px; }
.ph .meta { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-width: 0; }
.tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; }
.tile .s { font-size: 13px; color: var(--muted); }
.tile.lead { grid-column: span 2; border-color: var(--ink); }
@media (max-width: 520px) { .tile.lead { grid-column: 1 / -1; } }
.tile.lead .v { font-size: 56px; }
.scale { position: relative; height: 26px; margin-top: 8px; }
.scale .track { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--chip) 45%, var(--chip) 55%, var(--turf)); opacity: .55; }
.scale .avg { position: absolute; top: 2px; width: 2px; height: 18px; background: var(--muted); }
.scale .pin { position: absolute; top: 2px; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--ink); }
.scale .lab { position: absolute; top: 22px; font-family: var(--mono); font-size: 10px; color: var(--muted); transform: translateX(-50%); }
.locked { margin-top: 24px; border: 1px dashed var(--muted); border-radius: 8px; padding: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); }
.locked p { margin: 0; flex: 1 1 280px; color: var(--muted); }
.locked strong { color: var(--ink); }

/* ---- prose pages */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.how article, .prose { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.how p, .how li, .prose p, .prose li { max-width: 66ch; }
.how ul, .prose ul { padding-left: 18px; margin: 8px 0 0; }
.how li, .prose li { margin-bottom: 6px; }
.prose h2 { font-size: 22px; margin-top: 20px; }
.prose h2:first-child { margin-top: 0; }

footer { border-top: 1px solid var(--line); padding-block: 24px 36px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 680px) {
  .search { margin-left: 0; max-width: none; flex-basis: 100%; }
  .hide-s { display: none; }
  .bar-top .tag { display: none; }
  td, th { padding: 8px; }
}

/* ---- form: dropdown rows, hover card, player-page chart */
th.xp, td.xp { width: 44px; padding-left: 4px; padding-right: 8px; text-align: right; }
.xbtn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; color: var(--muted); }
.xbtn:hover { color: var(--ink); border-color: var(--muted); }
.xbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.xbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
tr.form-row:hover { background: none; }
tr.form-row > td { padding: 0 12px 14px; background: var(--bg); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.form-row .form-card { margin-top: 10px; }
.fc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.fc-head strong { font-family: var(--display); font-size: 22px; font-weight: 800; }
.fc-sum { font-size: 13px; color: var(--muted); }
.fc-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fc-scroll { overflow-x: auto; }
.fc-inner { min-width: calc((var(--n) + .55) * 70px); max-width: calc((var(--n) + .55) * 96px); }
.fc-chart { display: block; width: 100%; height: auto; overflow: visible; }
.fc-chart .grid { stroke: var(--line); stroke-dasharray: 2 4; }
.fc-chart .drift { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .7; }
.fc-chart .step { stroke-width: 4; stroke-linecap: round; }
.fc-chart line.dot-up { stroke: var(--turf); } .fc-chart line.dot-down { stroke: var(--accent); }
.fc-chart circle.dot-up { fill: var(--turf); } .fc-chart circle.dot-down { fill: var(--accent); }
.fc-chart circle.dot-flat { fill: var(--muted); }
.fc-chart text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.fc-chart text.val { fill: var(--ink); font-weight: 500; }
.fc-chart text.tick { font-size: 10px; }
.fc-grid .edge { color: var(--muted); }
.fc-grid .lbl { font-weight: 700; color: var(--ink); }
.fc-grid .eff { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.fc-grid .eff.up { color: var(--turf); } .fc-grid .eff.down { color: var(--accent); }
.fc-key { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.fc-key span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: 3px; border-radius: 2px; }
.fc-key .k-up::before { background: var(--turf); height: 4px; } .fc-key .k-down::before { background: var(--accent); height: 4px; }
.fc-key .k-drift::before { background: none; border-top: 2px dashed var(--muted); height: 0; }
.fc-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)) minmax(0, .55fr); column-gap: 0; row-gap: 4px; text-align: center; font-size: 12px; }
.fc-grid > div { display: grid; gap: 2px; justify-items: center; align-content: start; padding-top: 6px; margin: 0 2px; border-top: 1px solid var(--line); min-width: 0; }
.fc-grid .opp { font-weight: 700; }
.fc-grid .when, .fc-grid .fig { color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fc-grid .fig { font-variant-numeric: tabular-nums; color: var(--ink); }
.fc-grid .mr { min-width: 40px; font-size: 13px; }
.fc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.fc-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.fc-lock svg, .lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fc-msg { color: var(--muted); font-size: 13px; padding: 8px 0; }
.form-pop { position: fixed; z-index: 30; width: min(420px, calc(100vw - 24px)); box-shadow: 0 12px 32px rgba(0,0,0,.18); }

/* ---- Premium teasers */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.tcard { background: var(--surface); border: 1px dashed var(--muted); border-radius: 8px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.tcard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tcard h3 { font-size: 20px; }
.tcard .lock { width: 18px; height: 18px; color: var(--gold); }
.tcard p { margin: 0; color: var(--muted); font-size: 14px; }
.ghost { height: 64px; margin-top: 6px; filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.ghost-bars { display: flex; align-items: flex-end; gap: 3px; }
.ghost-bars i { flex: 1; background: var(--turf); border-radius: 2px 2px 0 0; }
.ghost-bars i:nth-child(3n) { background: var(--accent); }
.ghost-trio, .ghost-duel { display: grid; align-content: center; gap: 8px; }
.ghost-trio i, .ghost-duel i { display: block; height: 12px; border-radius: 6px; background: var(--turf); }
.ghost-trio i:nth-child(2), .ghost-duel i:nth-child(2) { background: var(--accent); }
.ghost-price { display: grid; place-items: center; }
.ghost-price b { font-family: var(--display); font-size: 40px; font-weight: 900; color: var(--gold); }
