/* SerializedReports. Layout: a sticky red-ruled masthead over a single centered column; registry pages use a grid + side panel ("slab") layout. */
:root {
  --bg: #F4F4F6; --surface: #FFFFFF; --sunken: #EAEAEE; --fg: #121318; --muted: #5B5F69; --line: #D8D9DF;
  --red: #C70500; --red-fg: #FFFFFF; --gold: #8F6A0C; --hit: #D4A72C; --hit-fg: #1A1405; --pend: #F1DFA6;
  --blue: #1463C2; --ok: #17804A; --warn: #A33A00; --purple: #7A3FC4;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F12; --surface: #16171C; --sunken: #1E2026; --fg: #ECEDF0; --muted: #9A9EA8; --line: #2B2E36;
    --red: #FF3B30; --gold: #E4B948; --pend: #5C4A14; --blue: #5AA9FF; --ok: #3DD68C; --warn: #FF9F5A; --purple: #B48CFF;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
main.wrap { padding-block: 28px 64px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-wrap: balance; margin: 0 0 8px; }
h1 { font-size: clamp(32px, 5vw, 46px); }
h2 { font-size: 26px; margin-top: 32px; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 16px; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { font-size: 12px; color: var(--muted); max-width: 70ch; }
.center { text-align: center; }
.mono, .serial { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serial { font-weight: 700; color: var(--gold); }
.serial.big { font-size: 22px; }
.eyebrow { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Masthead */
header.site { background: var(--surface); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.logo { font: 700 25px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 2px; }
.logo b { color: var(--red); }
.logo-stamp { font: 700 10px var(--mono); color: var(--gold); border: 1.5px solid var(--gold); border-radius: 3px; padding: 0 4px; margin-left: 8px; transform: rotate(-6deg); }
header nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
header nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 6px; }
header nav a:hover { background: var(--sunken); }
header nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.acct { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.acct form { margin: 0; }
.acct .me { font-weight: 600; color: var(--fg); text-decoration: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--body); padding: 10px 16px; border-radius: 6px; border: 1px solid var(--red); background: var(--red); color: var(--red-fg); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); filter: none; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn[aria-pressed="true"] { background: var(--hit); border-color: var(--hit); color: var(--hit-fg); }
.form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.row.tight { grid-template-columns: repeat(auto-fit, minmax(160px, 220px)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--fg); font-weight: 500; }
input, select, textarea { font: 15px var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; width: 100%; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }
textarea { font-family: var(--mono); font-size: 14px; resize: vertical; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline select { width: auto; }
.flash { padding: 10px 14px; border-radius: var(--radius); border: 1px solid; margin: 16px 0 0; font-weight: 500; }
.flash.ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.flash.err { border-color: var(--warn); color: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel.note { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.actions form { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.actions input { width: auto; min-width: 180px; padding: 6px 9px; font-size: 13px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.count { font: 700 13px var(--mono); background: var(--sunken); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }

/* Chips & badges */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-width: 720px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 600 13px var(--body); padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
.cat { font: 700 10px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; border: 1px solid currentColor; }
.cat.sports { color: var(--blue); } .cat.tcg { color: var(--red); } .cat.pop { color: var(--purple); }
.conf { font: 600 11px var(--body); padding: 2px 8px; border-radius: 999px; display: inline-block; }
.conf.hi { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.conf.md { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.state { font: 700 11px var(--body); padding: 2px 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); }
.state.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.state.pend { color: var(--gold); background: color-mix(in srgb, var(--hit) 18%, transparent); }
.low { font: 700 10px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--red-fg); background: var(--red); padding: 2px 7px; border-radius: 3px; }
.new { font: 700 12px var(--body); color: var(--red); }
.grade { font: 700 12px var(--mono); padding: 2px 7px; border-radius: 3px; background: var(--fg); color: var(--bg); }
.raw { font: 600 12px var(--body); color: var(--muted); }
.vis { font: 600 11px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.vis.pub { color: var(--ok); border-color: var(--ok); }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding-block: 12px 28px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); text-transform: uppercase; line-height: .95; }
.hero h1 span { color: var(--red); display: block; }
.hero .cta-row { margin-top: 18px; }
.slab { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); max-width: 360px; margin-inline: auto; }
.slab-label { display: flex; justify-content: space-between; font: 700 11px var(--mono); background: var(--red); color: var(--red-fg); padding: 8px 10px; border-radius: 6px; }
.slab-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 12px 0; }
.slab-grid i { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 3px; }
.slab-grid i.h { background: var(--hit); border-color: var(--hit); }
.slab-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.stamp { font: 700 15px var(--mono); color: var(--gold); border: 2px solid var(--gold); border-radius: 4px; padding: 1px 7px; transform: rotate(-5deg); display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 12px; }
.stats div { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; }
.stats strong { font: 700 30px var(--mono); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }
.stats.small strong { font-size: 22px; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 28px; }
.sec-head h2 { margin: 0 0 10px; }
.steps { padding-left: 20px; display: grid; gap: 10px; margin: 0; }
.mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mini li { display: flex; flex-direction: column; }
.empty-card { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); }
.empty-card strong { color: var(--fg); }

/* Feed */
.feed { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feed-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.feed-row:first-child { border-top: 0; }
.feed-serial { font: 700 17px var(--mono); color: var(--gold); text-decoration: none; }
.feed-main { display: flex; flex-direction: column; min-width: 0; }
.feed-card { font-weight: 700; color: var(--fg); text-decoration: none; }
.feed-sub { font-size: 13px; color: var(--muted); display: block; }
.feed-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; text-align: right; }

/* Registry */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--fg); display: flex; flex-direction: column; gap: 8px; }
.set-card:hover { border-color: var(--fg); }
.set-top { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.set-card h3 { margin: 0; }
.set-nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.set-nums b { color: var(--fg); font-family: var(--mono); }
.ladder { display: flex; gap: 4px; flex-wrap: wrap; }
.ladder span { font: 600 11px var(--mono); color: var(--gold); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.track { margin-bottom: 18px; }
.track summary { cursor: pointer; font-weight: 700; }
.track[open] summary { margin-bottom: 14px; }
.par-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.par { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.par-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.par-head h3 { margin: 0; font-size: 17px; }
.run { font: 700 14px var(--mono); color: var(--gold); white-space: nowrap; }
.chase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.chase-list a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; border-radius: 6px; background: var(--sunken); color: var(--fg); text-decoration: none; font-weight: 500; font-size: 14px; }
.chase-list a:hover { outline: 1px solid var(--fg); }

/* Chase page */
.tally { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 12px; }
.tally div { display: flex; flex-direction: column; }
.tally strong { font: 700 28px var(--mono); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tally span { font-size: 12px; color: var(--muted); }
.tally .out strong { color: var(--ok); }
.progress { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; margin-bottom: 20px; display: flex; }
.progress i { display: block; height: 100%; background: var(--hit); }
.progress i.p { background: var(--pend); }
.chase-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; }
.chase-layout aside { position: sticky; top: 84px; display: grid; gap: 10px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; border: 1.5px solid var(--line); }
.legend i.h { background: var(--hit); border-color: var(--hit); }
.legend i.p { background: var(--pend); border-color: var(--hit); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell, 44px), 1fr)); gap: 4px; max-height: 560px; overflow: auto; padding: 3px; margin-bottom: 10px; }
.cell { aspect-ratio: 1; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 4px; font: 500 12px var(--mono); text-decoration: none; }
.cell:hover { border-color: var(--fg); color: var(--fg); }
.cell.hit { background: var(--hit); border-color: var(--hit); color: var(--hit-fg); font-weight: 700; }
.cell.pend { background: var(--pend); border-color: var(--hit); color: var(--fg); border-style: dashed; }
.cell[aria-current="true"] { outline: 3px solid var(--red); outline-offset: 1px; }
.cell.one { width: 150px; font-size: 26px; border-width: 2px; }
.record-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.proof { border-radius: 6px; border: 1px solid var(--line); margin: 8px 0; max-height: 320px; object-fit: contain; }
.proof.sm { max-height: 160px; }
.note-text { background: var(--sunken); border-radius: 6px; padding: 8px 10px; font-size: 14px; }
details.flag { margin-top: 12px; font-size: 13px; }
details.flag summary { cursor: pointer; color: var(--muted); }

/* Hunts, queue, library, low pop */
.hunts, .queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hunts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.hunt-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.q-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.lib-grid, .lp-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lib-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.lib-item img, .lib-ph { width: 88px; height: 120px; border-radius: 6px; object-fit: cover; }
.lib-ph { background: var(--sunken); display: grid; place-items: center; font: 700 13px var(--mono); color: var(--gold); border: 1px dashed var(--line); }
.lib-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lib-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.lp-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.lp-pop { border: 2px solid var(--fg); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 76px; }
.lp-pop span { font: 700 10px var(--body); letter-spacing: .12em; }
.lp-pop strong { font: 700 30px var(--mono); line-height: 1; }
.lp-pop.one { border-color: var(--red); color: var(--red); }
.lp-card { font-size: 16px; }

/* Tables, prose, auth, footer */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose { max-width: 720px; }
.prose li { margin-bottom: 8px; }
.rules { padding-left: 22px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 8px 0 0; color: var(--muted); }
.auth { max-width: 440px; margin: 20px auto; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); }
.foot { padding-block: 24px 32px; }

@media (max-width: 860px) {
  .hero, .two, .chase-layout { grid-template-columns: minmax(0, 1fr); }
  .chase-layout aside { position: static; }
  .feed-row { grid-template-columns: 74px minmax(0, 1fr); }
  .feed-meta { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; text-align: left; }
  header.site { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.lp-item.stale{opacity:.6}
.badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--red); color: var(--red-fg, #fff); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.quick-check { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 12px 0; }
.quick-check label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.quick-check input { width: 120px; }
.check-answer { flex-basis: 100%; margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.check-answer.yes { border-color: var(--hit); }
.check-answer.pend { border-color: var(--pend); }
details.explain { margin: 0 0 12px; font-size: 14px; }
details.explain summary { cursor: pointer; color: var(--muted); }
details.explain p { max-width: 70ch; }
.quick-check label input, .quick-check input[type=number] { width: 120px !important; max-width: 120px; }
.quick-check { flex-direction: row; }
#check, #serial { scroll-margin-top: 90px; }

/* ---------- Softer look: fewer outlines, rounder corners, soft shadows, more air ---------- */
:root {
  --radius: 16px; --shadow: 0 1px 2px rgba(16,17,22,.04), 0 6px 20px -8px rgba(16,17,22,.12);
  --shadow-hover: 0 2px 4px rgba(16,17,22,.06), 0 14px 32px -12px rgba(16,17,22,.22);
  --bg: #F6F5F3; --sunken: #EFEEEB;
}
@media (prefers-color-scheme: dark) {
  :root { --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px -12px rgba(0,0,0,.6); --shadow-hover: 0 1px 0 rgba(255,255,255,.05) inset, 0 16px 36px -14px rgba(0,0,0,.8); --bg: #0E0F12; --sunken: #1C1E24; }
}
main.wrap { padding-block: 36px 80px; }
h2 { margin-top: 44px; }
header.site { border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px var(--red); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
header nav a { border-radius: 999px; padding: 6px 10px; }
.btn { border-radius: 999px; padding: 10px 18px; }
.btn.sm { padding: 6px 13px; }
.btn.ghost { border-color: transparent; background: var(--sunken); }
.btn.ghost:hover { border-color: transparent; background: color-mix(in srgb, var(--fg) 10%, var(--sunken)); }
input, select, textarea { background: var(--sunken); border-color: transparent; border-radius: 12px; }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--line); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
fieldset { border: 0; background: var(--sunken); border-radius: var(--radius); }
.panel, .set-card, .par, .lib-item, .lp-item, .hunts li, details.faq, .table-wrap, .feed, .check-answer { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.set-card, .lib-item, .lp-item, .hunts li { transition: box-shadow .18s ease, transform .18s ease; }
.set-card:hover, .lib-item:hover, .lp-item:hover { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.panel { padding: 22px; }
.set-grid, .par-list { gap: 18px; }
.lib-grid, .lp-grid, .hunts, .queue { gap: 16px; }
.par { background: transparent; box-shadow: none; padding: 4px 0 0; border-top: 2px solid var(--line); border-radius: 0; }
.chase-list a { border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.chase-list a:hover { outline: 0; box-shadow: var(--shadow-hover); }
.stats { background: none; border: 0; gap: 12px; overflow: visible; }
.stats div { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.feed { box-shadow: none; background: transparent; }
.feed-row { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding-inline: 4px; }
.empty-card { border: 0; background: var(--sunken); border-radius: var(--radius); padding: 28px; }
.flash { border: 0; border-radius: 12px; }
.chip { border-color: transparent; background: var(--sunken); }
.chip[aria-pressed="true"] { background: var(--red); color: var(--red-fg); border-color: var(--red); }
.cat, .low, .grade { border-radius: 999px; }
.ladder span { border: 0; background: var(--sunken); border-radius: 999px; padding: 1px 7px; }
.vis { border: 0; background: var(--sunken); }
.vis.pub { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.lib-item img, .lib-ph { border-radius: 10px; }
.lib-ph { border: 0; }
.lp-pop { border: 0; background: var(--sunken); border-radius: 14px; }
.lp-pop.one { background: color-mix(in srgb, var(--red) 12%, transparent); }
.cell { border-radius: 8px; border-color: transparent; background: var(--sunken); }
.cell:hover { border-color: transparent; background: color-mix(in srgb, var(--fg) 12%, var(--sunken)); }
.cell.pend { border: 1.5px dashed var(--hit); }
.legend i { border-radius: 4px; border-color: transparent; background: var(--sunken); }
.slab { border: 0; border-radius: 22px; box-shadow: var(--shadow-hover); }
.slab-label { border-radius: 12px; }
.slab-grid i { border: 0; background: var(--sunken); border-radius: 4px; }
.proof, .note-text { border: 0; border-radius: 12px; }
footer.site { border-top: 0; background: var(--sunken); }
.progress { height: 10px; border-radius: 999px; }
details.faq { padding: 16px 20px; }

/* ---------- Market ---------- */
.mt { margin-top: 22px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.mk-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.mk-item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.mk-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.mk-item.closed { opacity: .7; }
.mk-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--sunken); color: var(--gold); font: 700 18px var(--mono); text-decoration: none; overflow: hidden; }
.mk-photo img { width: 100%; height: 100%; object-fit: contain; }
.mk-photo.big { border-radius: var(--radius); font-size: 34px; }
.mk-photo.sm { width: 64px; aspect-ratio: 4 / 5; border-radius: 10px; font-size: 12px; flex: none; }
.mk-flag { position: absolute; top: 10px; left: 10px; font: 700 11px var(--body); background: var(--fg); color: var(--bg); padding: 3px 10px; border-radius: 999px; }
.mk-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mk-card { font-weight: 700; color: var(--fg); text-decoration: none; font-size: 15px; }
.mk-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.mk-price { font: 700 19px var(--mono); color: var(--fg); }
.mk-price small { font: 500 12px var(--body); color: var(--muted); }
.mk-price.trade { font: 700 13px var(--body); color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, transparent); padding: 2px 10px; border-radius: 999px; }
.mk-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.mk-gallery { position: sticky; top: 84px; }
.mk-gallery img { border-radius: var(--radius); box-shadow: var(--shadow-hover); max-height: 640px; margin-inline: auto; object-fit: contain; background: var(--surface); }
.mk-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.mk-facts div { background: var(--sunken); border-radius: 12px; padding: 8px 14px; display: flex; flex-direction: column; min-width: 110px; }
.mk-facts span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.mk-buy { display: grid; gap: 10px; }
.mk-price-row { display: flex; align-items: baseline; gap: 12px; }
.mk-price-row .mk-price { font-size: 30px; }
.mk-buy form { margin: 0; }
details.deal { margin-top: 4px; }
details.deal summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
details.deal[open] summary { margin-bottom: 8px; }
.mk-seller { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.mk-seller > div { display: flex; flex-direction: column; }
.safety { padding-left: 18px; font-size: 14px; display: grid; gap: 6px; }
.safety-note { background: color-mix(in srgb, var(--hit) 14%, transparent); border-radius: 12px; padding: 10px 14px; margin: 14px 0; }
.inbox { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inbox a { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; text-decoration: none; color: var(--fg); }
.inbox a:hover { box-shadow: var(--shadow-hover); }
.inbox .unread a { box-shadow: var(--shadow), inset 3px 0 0 var(--red); }
.ib-who { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.thread-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.thread-head > div { display: flex; flex-direction: column; gap: 2px; }
.timeline { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ev { max-width: 640px; }
.ev.msg { background: var(--surface); box-shadow: var(--shadow); border-radius: 18px 18px 18px 6px; padding: 10px 14px; }
.ev.msg.mine { margin-left: auto; background: color-mix(in srgb, var(--blue) 10%, var(--surface)); border-radius: 18px 18px 6px 18px; }
.ev.msg p { margin: 0 0 4px; }
.ev.sys { justify-self: center; font-size: 13px; color: var(--muted); text-align: center; }
.ev.offer { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); padding: 14px 16px; border-left: 4px solid var(--hit); }
.ev.offer.declined, .ev.offer.withdrawn, .ev.offer.cancelled { border-left-color: var(--line); opacity: .75; }
.ev.offer.completed { border-left-color: var(--ok); }
.ev-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.next-step { background: var(--sunken); border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; }
.risk { color: var(--warn); font-size: 13px; font-weight: 600; margin: 4px 0; }
@media (max-width: 860px) {
  .mk-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mk-gallery { position: static; }
  .mk-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ---------- Homepage ---------- */
:root {
  --ink: #0A0C14; --ink-2: #141827; --ink-fg: #F3F1EC; --ink-muted: #A7ABBD;
  --foil: linear-gradient(100deg, #F7C948 0%, #FF7A45 24%, #F2458B 48%, #8B5CF6 72%, #38C6E0 100%);
}
body { overflow-x: clip; }
.hx { position: relative; margin: -36px calc(50% - 50vw) 0; background: var(--ink); color: var(--ink-fg); overflow: hidden; isolation: isolate; }
.hx-glow { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 82% 30%, rgba(139, 92, 246, .38), transparent 70%),
    radial-gradient(45% 60% at 70% 85%, rgba(242, 69, 139, .30), transparent 70%),
    radial-gradient(40% 55% at 8% 0%, rgba(199, 5, 0, .45), transparent 70%),
    radial-gradient(30% 40% at 40% 100%, rgba(247, 201, 72, .16), transparent 70%); }
.hx-glow::after { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hx-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 72px 56px; }
.hx-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--body); color: var(--ink-muted); background: rgba(255,255,255,.06); padding: 6px 14px 6px 10px; border-radius: 999px; margin-bottom: 22px; }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 4px rgba(61,214,140,.18); }
.hx h1 { font-size: clamp(44px, 7.2vw, 86px); line-height: .92; text-transform: uppercase; letter-spacing: .005em; margin-bottom: 20px; color: var(--ink-fg); }
.foil-text { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: foil 8s ease-in-out infinite alternate; }
@keyframes foil { to { background-position: 100% 0; } }
.hx-lede { font-size: 18px; line-height: 1.55; color: var(--ink-muted); max-width: 52ch; margin-bottom: 26px; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.hx-primary { background: var(--ink-fg); color: var(--ink); border-color: var(--ink-fg); padding: 13px 24px; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(247, 201, 72, .55); }
.btn.hx-primary:hover { filter: none; background: #fff; transform: translateY(-1px); }
.btn.hx-ghost { background: rgba(255,255,255,.08); color: var(--ink-fg); border-color: transparent; padding: 13px 22px; font-size: 15px; }
.btn.hx-ghost:hover { background: rgba(255,255,255,.16); }
.hx-stats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 40px 0 0; }
.hx-stats div { display: flex; flex-direction: column-reverse; }
.hx-stats dd { margin: 0; font: 700 34px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-fg); }
.hx-stats dt { font-size: 12px; color: var(--ink-muted); margin-top: 6px; letter-spacing: .02em; }

.hx-fan { position: relative; height: 420px; perspective: 1200px; }
.tc { position: absolute; top: 50%; left: 50%; width: 210px; aspect-ratio: 5 / 7; border-radius: 18px; padding: 10px; background: linear-gradient(160deg, #262B3F, #12152199); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tc-1 { transform: translate(-128%, -44%) rotate(-10deg); }
.tc-2 { transform: translate(-50%, -54%) rotate(0deg); z-index: 2; }
.tc-3 { transform: translate(28%, -44%) rotate(10deg); }
.hx-fan:hover .tc-1 { transform: translate(-136%, -46%) rotate(-13deg); }
.hx-fan:hover .tc-3 { transform: translate(36%, -46%) rotate(13deg); }
.hx-fan:hover .tc-2 { transform: translate(-50%, -58%); }
.tc-art { flex: 1; border-radius: 12px; position: relative; overflow: hidden; }
.tc-art::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); animation: sheen 5s ease-in-out infinite; }
.a1 { background: radial-gradient(circle at 30% 30%, #FFE7A1, #E0A92A 45%, #7A520B); }
.a2 { background: var(--foil); }
.a2::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255,255,255,.18) 0 6deg, transparent 6deg 18deg); }
.a3 { background: radial-gradient(circle at 70% 25%, #FFD7EC, #F2458B 40%, #4B1B6E); }
.tc-2 .tc-art::after { animation-delay: 1.2s; }
.tc-3 .tc-art::after { animation-delay: 2.4s; }
@keyframes sheen { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.tc-foot { display: flex; justify-content: space-between; align-items: center; font: 700 11px var(--mono); color: var(--ink-muted); letter-spacing: .06em; }
.tc-num { font-size: 15px; color: #F7C948; background: rgba(247,201,72,.12); padding: 3px 8px; border-radius: 8px; }
.tc-num.one { color: #fff; background: var(--foil); }
.tc-1 .tc-foot { flex-direction: row-reverse; }

.hx-ticker { border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hx-track { display: flex; gap: 44px; width: max-content; animation: ticker 40s linear infinite; }
.hx-track span { font: 700 15px var(--mono); color: rgba(243,241,236,.38); }
.hx-track span:nth-child(3n+1) { color: #F7C948; }
@keyframes ticker { to { transform: translateX(-50%); } }

.lanes { margin-top: 20px; }
.lane-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lane { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 24px 22px; min-height: 230px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 18px 40px -24px rgba(0,0,0,.5); }
.lane:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgba(0,0,0,.55); }
.lane h3 { font-size: 34px; text-transform: uppercase; margin: auto 0 4px; color: #fff; }
.lane p { color: rgba(255,255,255,.86); margin: 0; font-size: 14px; max-width: 34ch; }
.lane-n { font-weight: 700; font-size: 14px; margin-top: 10px; }
.lane-run { position: absolute; top: 8px; right: 16px; font: 700 76px/1 var(--mono); color: rgba(255,255,255,.16); letter-spacing: -.04em; }
.lane-sports { background: linear-gradient(140deg, #E2231A, #FF7A45 60%, #F7C948); }
.lane-tcg { background: linear-gradient(140deg, #1D4ED8, #2D8CF0 50%, #38C6E0); }
.lane-pop { background: linear-gradient(140deg, #6D28D9, #B04BE0 50%, #F2458B); }

.how { margin-top: 12px; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.how-steps li { position: relative; padding-top: 6px; }
.how-n { font: 700 54px/1 var(--display); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.how-steps h3 { font-size: 22px; margin-bottom: 6px; }
.how-steps p { color: var(--muted); margin: 0; }

.home-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.first-pull { display: flex; gap: 20px; align-items: center; padding: 26px; border-radius: 26px; background: linear-gradient(135deg, color-mix(in srgb, #F7C948 16%, var(--surface)), color-mix(in srgb, #8B5CF6 12%, var(--surface))); }
.fp-num { font: 700 64px/1 var(--display); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; flex: none; }
.first-pull p { margin-bottom: 8px; }
.home-side { display: flex; flex-direction: column; gap: 14px; }
.home-side .sec-head + .hot { margin-bottom: 8px; }
.hot { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hot li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; }
.hot-i { grid-row: span 2; font: 700 22px/1.2 var(--mono); color: var(--gold); }
.hot a { font-weight: 700; color: var(--fg); text-decoration: none; }
.promo { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 22px; text-decoration: none; color: var(--fg); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.promo:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.promo::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; }
.promo-market::before { background: linear-gradient(#3DD68C, #38C6E0); }
.promo-lowpop::before { background: linear-gradient(#F7C948, #F2458B); }
.promo-tag { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.promo strong { font-size: 17px; }
.promo span:last-child { color: var(--blue); font-weight: 600; font-size: 14px; }

.join-band { margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 32px; background: var(--ink); color: var(--ink-fg); position: relative; overflow: hidden; isolation: isolate; }
.join-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 100% 0%, rgba(139,92,246,.45), transparent 70%), radial-gradient(40% 100% at 0% 100%, rgba(199,5,0,.4), transparent 70%); }
.join-band h2 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; color: var(--ink-fg); }
.join-band p { color: var(--ink-muted); margin: 0; max-width: 52ch; }

@media (max-width: 900px) {
  .hx-inner { grid-template-columns: minmax(0, 1fr); padding-block: 48px 28px; gap: 8px; }
  .hx-fan { height: 300px; order: -1; margin-bottom: 8px; }
  .tc { width: 150px; border-radius: 14px; }
  .lane-row, .how-steps, .home-two { grid-template-columns: minmax(0, 1fr); }
  .lane { min-height: 0; }
  .how-steps { gap: 22px; }
  .join-band { padding: 30px 24px; border-radius: 26px; }
}
@media (max-width: 480px) {
  .hx-stats { gap: 16px 28px; }
  .hx-stats dd { font-size: 26px; }
  .hx-lede { font-size: 16px; }
  .tc { width: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  .foil-text, .tc-art::after, .hx-track { animation: none; }
  .tc, .lane, .promo { transition: none; }
}

/* Header on phones: logo and account on one row, nav as a swipeable row below. */
@media (max-width: 760px) {
  .bar { gap: 6px 12px; min-height: 0; }
  .logo { font-size: 22px; }
  .acct { margin-left: auto; }
  header nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { white-space: nowrap; flex: none; }
}
/* Hero card fan on phones */
@media (max-width: 900px) {
  .hx-fan { height: 250px; }
  .tc-1 { transform: translate(-128%, -44%) rotate(-12deg); }
  .tc-3 { transform: translate(28%, -44%) rotate(12deg); }
}
@media (max-width: 480px) {
  .hx-fan { height: 210px; }
  .tc { width: 112px; padding: 7px; gap: 7px; border-radius: 12px; }
  .tc-art { border-radius: 8px; }
  .tc-foot b { display: none; }
  .tc-foot { justify-content: center; }
  .tc-num { font-size: 12px; }
}

/* ---------- Site-wide look, matching the homepage ---------- */
/* Every page opens with a dark "vault" band like the homepage hero. The colour
   tokens are redefined inside it so links, chips, badges and buttons adapt. */
.page-head {
  --fg: var(--ink-fg); --muted: var(--ink-muted); --surface: #1A1E2E; --sunken: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.14); --blue: #9CC3FF; --gold: #F7C948; --purple: #C9A6FF; --ok: #5BE3A0; --warn: #FFB27A;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--fg);
  border-radius: 28px; padding: 34px 36px 30px; margin-bottom: 28px; align-items: center;
  box-shadow: 0 24px 50px -30px rgba(10,12,20,.55);
}
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 120% at 100% 0%, rgba(139,92,246,.40), transparent 70%),
    radial-gradient(45% 110% at 0% 100%, rgba(199,5,0,.38), transparent 70%),
    radial-gradient(30% 80% at 60% 120%, rgba(247,201,72,.14), transparent 70%); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-head h1 { text-transform: uppercase; font-size: clamp(34px, 5vw, 56px); line-height: .95; color: var(--fg); margin-bottom: 10px; }
.page-head .lede { color: var(--muted); }
.page-head .eyebrow { color: var(--muted); display: inline-flex; background: rgba(255,255,255,.07); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.page-head .btn { background: var(--ink-fg); color: var(--ink); border-color: var(--ink-fg); }
.page-head .btn:hover { background: #fff; filter: none; }
.page-head .btn.ghost { background: rgba(255,255,255,.1); color: var(--ink-fg); border-color: transparent; }
.page-head .btn.ghost:hover { background: rgba(255,255,255,.18); }
.page-head .btn[aria-pressed="true"] { background: var(--hit); color: var(--hit-fg); border-color: var(--hit); }
.page-head .panel { background: rgba(255,255,255,.06); box-shadow: none; color: var(--fg); }
.page-head a:not(.btn) { color: var(--blue); }
.page-head > div:first-child { max-width: 760px; }
/* The band carries a foil rule along its bottom edge */
.page-head .foil-rule, .page-head > div:first-child::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--foil); margin-top: 16px; }

.crumbs { margin-bottom: 12px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--fg); }

/* Section headings get a small foil tick, like the homepage numbers */
main h2 { position: relative; }
.sec-head h2::before, .prose h2::before, .panel > h2:first-child::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--foil); margin-right: 10px; transform: translateY(-3px) rotate(45deg); }

/* Primary buttons pick up a warm gradient */
.btn:not(.ghost):not(.hx-primary):not(.hx-ghost):not([aria-pressed="true"]) { background: linear-gradient(135deg, #D7140C, #FF5A36); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(215,20,12,.6); }
.page-head.page-head .btn:not(.ghost):not(.hx-primary):not(.hx-ghost):not([aria-pressed="true"]) { background: var(--ink-fg); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(247,201,72,.5); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }

/* Category colours from the homepage lanes */
.cat.sports { color: #E2231A; } .cat.tcg { color: #2D7BEA; } .cat.pop { color: #A33FD6; }
.page-head .cat.sports { color: #FF8A5C; } .page-head .cat.tcg { color: #6FB6FF; } .page-head .cat.pop { color: #E39BFF; }
.set-card, .mk-item { position: relative; overflow: hidden; border-radius: 22px; }
.set-card::before, .mk-item::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--foil); z-index: 1; }
.set-card.cat-sports::before, .mk-item.cat-sports::before { background: linear-gradient(90deg, #E2231A, #FF7A45, #F7C948); }
.set-card.cat-tcg::before, .mk-item.cat-tcg::before { background: linear-gradient(90deg, #1D4ED8, #2D8CF0, #38C6E0); }
.set-card.cat-pop::before, .mk-item.cat-pop::before { background: linear-gradient(90deg, #6D28D9, #B04BE0, #F2458B); }
.set-card { padding-top: 24px; }

/* Softer, rounder surfaces everywhere */
:root { --radius: 20px; }
.panel, .feed, .table-wrap, details.faq, .lib-item, .lp-item, .hunts li, .inbox a, .empty-card { border-radius: 22px; }
.empty-card { background: linear-gradient(135deg, color-mix(in srgb, #F7C948 14%, var(--surface)), color-mix(in srgb, #8B5CF6 10%, var(--surface))); }
.tally strong, .stats strong, .serial, .feed-serial { font-variant-numeric: tabular-nums; }
.progress i:first-child { background: linear-gradient(90deg, #F7C948, #FF7A45); }

/* Log in / Join: a dark card like the homepage join band */
.auth { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-hover); position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--foil); }
.auth h1 { text-transform: uppercase; }

/* Footer: dark band to close every page */
footer.site { background: var(--ink); color: var(--ink-muted); position: relative; overflow: hidden; isolation: isolate; }
footer.site::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 140% at 100% 100%, rgba(139,92,246,.28), transparent 70%), radial-gradient(30% 120% at 0% 0%, rgba(199,5,0,.22), transparent 70%); }
footer.site strong { color: var(--ink-fg); }
footer.site .fine { color: var(--ink-muted); }
footer.site a { color: #9CC3FF; }

/* Not-found page */
.empty-card h1 { text-transform: uppercase; }

@media (max-width: 760px) {
  .page-head { padding: 26px 20px 22px; border-radius: 22px; margin-inline: -4px; }
  .page-head h1 { font-size: clamp(30px, 9vw, 40px); }
}
