/* Rate My Club — mobile-first. Dark by default, light via prefers-color-scheme.
   Layout plan for iPhone Duo: folded cover (~466pt) = one column with a bottom
   tab bar; unfolded inner (~951x669pt) = two panes. Nothing tappable sits in the
   top-right corner (the inner display's camera/status column). */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark light;
  --bg: #07090D;
  --bg-2: #0B0E14;
  --surface: #11151D;
  --surface-2: #171C26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F3F5F8;
  --muted: #8E98AA;
  --volt: #D4FF3A;
  --volt-ink: #0A0C11;
  --volt-text: #D4FF3A;
  --up: #5EE6A8;
  --down: #FF6B6B;
  --track: rgba(255, 255, 255, .1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
  --radius: 20px;
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4.2vw, 28px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar: 64px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3F4F6;
    --bg-2: #ECEEF1;
    --surface: #FFFFFF;
    --surface-2: #F6F7F9;
    --line: rgba(10, 12, 17, .08);
    --line-2: rgba(10, 12, 17, .16);
    --text: #0B0D12;
    --muted: #5B6474;
    --volt-text: #4A6400;
    --up: #0E9F6E;
    --down: #D92D3A;
    --track: rgba(10, 12, 17, .1);
    --shadow: 0 1px 2px rgba(10, 12, 17, .05), 0 12px 32px -20px rgba(10, 12, 17, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0; font-weight: 750; }
h1 { font-size: clamp(34px, 8.6vw, 64px); }
h2 { font-size: clamp(20px, 4.6vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.link { color: var(--volt-text); font-weight: 600; }
.link:hover { text-decoration: underline; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 99; top: 8px; left: 8px; background: var(--volt); color: var(--volt-ink); padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; border-radius: 8px; }

/* ── Chrome ─────────────────────────────────────────── */
.ribbon { font-size: 12px; text-align: center; padding: 6px var(--pad); background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: .01em; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 12px calc(var(--pad) + var(--safe-r)) 12px calc(var(--pad) + var(--safe-l)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--display); letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.nav-desk { display: none; gap: 4px; }
.nav-desk a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-desk a:hover { color: var(--text); background: var(--surface); }
.nav-desk a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px calc(8px + var(--safe-r)) calc(6px + var(--safe-b)) calc(8px + var(--safe-l)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; min-height: 52px; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 14px; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current] { color: var(--text); }
.tabbar a[aria-current] svg { stroke: var(--volt-text); }

main { padding: 0 calc(var(--pad) + var(--safe-r)) calc(var(--tabbar) + 32px + var(--safe-b)) calc(var(--pad) + var(--safe-l)); max-width: 1240px; margin: 0 auto; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 calc(var(--pad) + var(--safe-r)) calc(var(--tabbar) + 36px + var(--safe-b)) calc(var(--pad) + var(--safe-l)); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.page-share .foot, .page-rate .foot { padding-bottom: calc(var(--tabbar) + 120px + var(--safe-b)); }

/* ── Buttons, chips, pills ──────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--volt); color: var(--volt-ink); box-shadow: 0 10px 30px -12px rgba(212, 255, 58, .55); }
.btn-primary:hover { background: #E2FF70; }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-width: 34px; padding: 3px 8px; border-radius: 999px; font: 800 13px/1.2 var(--display); text-align: center; color: var(--mood); background: color-mix(in srgb, var(--mood) 16%, transparent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live { animation: none; } html { scroll-behavior: auto; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.card-head p { font-size: 13px; }
.swatch { width: 36px; height: 36px; flex: none; border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 14px -8px rgba(0, 0, 0, .6); }
.swatch.sm { width: 22px; height: 22px; border-radius: 7px; }

/* ── Home ───────────────────────────────────────────── */
.hero { padding: 40px 0 28px; display: grid; gap: 16px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--volt-text); }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 40ch; }
.block { padding: 22px 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.block-head p { font-size: 14px; }
.club-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.club-tile { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-height: 62px; transition: border-color .15s, transform .15s; }
.club-tile:hover { border-color: color-mix(in srgb, var(--club) 60%, var(--line)); transform: translateY(-1px); }
.club-name { flex: 1; min-width: 0; display: grid; gap: 3px; font-weight: 700; font-size: 15px; line-height: 1.15; }
.club-mood { font-size: 12px; font-weight: 700; color: var(--mood); white-space: nowrap; }
.stat-row { display: grid; gap: 10px; }
.stat { display: grid; gap: 6px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--club) 45%, transparent), transparent 70%); opacity: .5; pointer-events: none; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-club { display: flex; align-items: center; gap: 10px; font: 750 22px/1.1 var(--display); }
.stat-big { font: 800 40px/1 var(--display); letter-spacing: -.03em; }
.stat-small { font-size: 13px; color: var(--muted); }
.how h2 { margin-bottom: 16px; }
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--volt); color: var(--volt-ink); font: 800 16px/1 var(--display); }
.steps h3 { margin: 4px 0 4px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ── Club hero (rate + dashboard) ───────────────────── */
.club-hero { position: relative; overflow: hidden; margin: 16px 0 0; border-radius: 24px; color: #fff; background: linear-gradient(160deg, var(--deep), #090B10 72%); border: 1px solid rgba(255, 255, 255, .08); isolation: isolate; }
.kit-art { position: absolute; z-index: -1; top: -10px; right: -38%; width: 125%; height: 120px; transform: rotate(-20deg); transform-origin: center; opacity: .95; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.kit-art.plain { background: linear-gradient(180deg, var(--club) 0 62%, rgba(0, 0, 0, .35) 62% 64%, var(--club2) 64%); }
.kit-art.stripes { background: repeating-linear-gradient(90deg, var(--club) 0 34px, var(--club2) 34px 68px); }
.club-hero-inner { padding: 92px 20px 22px; display: grid; gap: 10px; }
.club-hero .eyebrow { color: rgba(255, 255, 255, .72); }
.club-hero h1 { font-size: clamp(32px, 8vw, 54px); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.badge-row { display: flex; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; }
.badge svg { width: 16px; height: 16px; fill: none; stroke: var(--volt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.club-hero .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* ── Rate ───────────────────────────────────────────── */
.split { display: grid; gap: 16px; padding-top: 16px; }
.pane { min-width: 0; }
.pane-form { display: grid; gap: 16px; align-content: start; }
.match { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 16px 18px; }
.match-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); font-weight: 600; }
.match-line { font-size: clamp(22px, 5.6vw, 30px); }
.result { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.result-W { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.result-D { background: var(--surface-2); color: var(--muted); }
.result-L { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.rate-form { display: grid; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sliders { display: grid; gap: 8px; }
.slider { --fill: hsl(70 85% 56%); --val: 50%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 10px; transition: border-color .2s; }
.slider.touched { border-color: color-mix(in srgb, var(--fill) 40%, var(--line)); }
.slider-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.slider-top label { display: grid; gap: 1px; }
.slider-label { font: 700 17px/1.2 var(--display); }
.slider-hint { font-size: 13px; color: var(--muted); }
.slider-val { min-width: 48px; text-align: right; font: 800 30px/1 var(--display); color: var(--fill); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.slider-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: -2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--fill) 0 var(--val), var(--track) var(--val) 100%); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: var(--track); }
input[type=range]::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--fill); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 0 6px color-mix(in srgb, var(--fill) 32%, transparent); transition: box-shadow .15s; }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 0 6px color-mix(in srgb, var(--fill) 32%, transparent); }
input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 2px 10px rgba(0, 0, 0, .35), 0 0 0 10px color-mix(in srgb, var(--fill) 32%, transparent); }
.verdicts legend { font: 700 17px/1.2 var(--display); margin-bottom: 10px; }
.verdicts legend .muted { font: 500 14px var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }
.submit-bar { position: sticky; bottom: calc(var(--tabbar) + 10px + var(--safe-b)); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.you { display: flex; align-items: center; gap: 10px; min-width: 0; }
.you-emoji { font-size: 28px; line-height: 1; }
.you-text { display: grid; line-height: 1.15; min-width: 0; }
.you-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.you-num { font: 800 18px/1.15 var(--display); white-space: nowrap; }
.form-error { color: var(--down); font-weight: 600; font-size: 14px; }
.form-error button { margin-left: 8px; }
.result-panel { display: grid; gap: 14px; }
.result-panel:focus { outline: none; }
.result-top { display: flex; align-items: center; gap: 16px; }
.result-emoji { font-size: 64px; line-height: 1; }
.result-num { font: 800 64px/1 var(--display); letter-spacing: -.04em; }
.result-num small { font-size: 22px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.result-mood { font: 750 22px/1.1 var(--display); }
.result-line { font-size: 17px; }
.pane-live { display: none; }
.live-head { margin-bottom: 14px; display: grid; gap: 2px; }
.live-head p { font-size: 13px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vs-col { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; }
.vs-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.vs-num { font: 800 46px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.compare { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.compare li { display: grid; grid-template-columns: 82px 1fr 64px; align-items: center; gap: 10px; font-size: 14px; }
.cmp-label { font-weight: 600; }
.cmp-track { position: relative; height: 10px; border-radius: 99px; background: var(--track); }
.cmp-you { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--fill, var(--volt)); transition: width .2s ease, background .2s; }
.cmp-fans { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.cmp-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ── Dashboard ──────────────────────────────────────── */
.dash .club-hero-inner { padding-top: 84px; gap: 12px; }
.index-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gauge { width: 168px; height: auto; color: #fff; flex: none; }
.gauge-num { font: 800 54px var(--display); fill: #fff; letter-spacing: -2px; }
.index-meta { display: grid; gap: 4px; font-size: 15px; }
.index-meta .muted { color: rgba(255, 255, 255, .7); }
.index-meta .link { color: var(--volt); }
.mood-word { font: 800 30px/1 var(--display); letter-spacing: -.02em; }
.delta { font-weight: 800; }
.delta.up, .t-delta.up { color: var(--up); }
.delta.down, .t-delta.down { color: var(--down); }
.club-hero .delta.up { color: #5EE6A8; }
.club-hero .delta.down { color: #FF8A8A; }
.dash-grid { display: grid; gap: 16px; padding-top: 16px; }
.chart { width: 100%; height: auto; max-height: 300px; overflow: visible; }
.chart .grid { stroke: var(--line-2); stroke-dasharray: 3 5; }
.chart .axis { font: 600 11px var(--body); fill: var(--muted); }
.chart .res { font: 800 11px var(--body); }
.chart .res-W { fill: var(--up); } .chart .res-D { fill: var(--muted); } .chart .res-L { fill: var(--down); }
.bars { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.bar-label { font-weight: 600; font-size: 15px; }
.bar-val { font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 99px; background: var(--track); }
.bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.bar-avg { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--text); opacity: .8; }
.is-worst .bar-label::after { content: "Angriest"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--down); background: color-mix(in srgb, var(--down) 15%, transparent); vertical-align: 1px; }
.callout { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.verdict-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.verdict-list li { display: grid; grid-template-columns: minmax(0, 120px) 1fr 44px; align-items: center; gap: 12px; }
.v-word { font: 700 16px/1.2 var(--display); }
.v-track { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.v-track span { display: block; height: 100%; border-radius: 99px; background: var(--volt); }
.v-pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.grades { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.grades li { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.grade { font: 800 28px/1 var(--display); color: var(--mood); }
.grade-label { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.facts div { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font: 800 22px/1.1 var(--display); }

/* ── Table ──────────────────────────────────────────── */
.page-head { padding: 32px 0 8px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(32px, 7.4vw, 54px); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 2px; margin: 4px -2px 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: 14px; color: var(--muted); }
.tabs a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs a:last-child { margin-right: 32px; }
.table-card { padding: 6px; }
.mood-table { list-style: none; margin: 0; padding: 0; }
.mood-table li + li { border-top: 1px solid var(--line); }
.mood-table a { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr) auto 50px; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 14px; }
.mood-table a:hover { background: var(--surface-2); }
.pos { font: 800 15px/1 var(--display); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.t-club { display: grid; grid-template-columns: minmax(0, 1fr); font-weight: 700; font-size: 15px; line-height: 1.2; min-width: 0; }
.t-club, .t-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.t-spark { display: none; }
.t-val { font: 800 20px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.t-delta { font-size: 12px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.side { display: grid; gap: 16px; align-content: start; }
.side h2 { margin-bottom: 8px; }
.movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.movers a { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; font-weight: 650; }
.movers a:hover { background: var(--surface-2); }
.movers .t-delta { display: block; font-size: 14px; }

/* ── Share ──────────────────────────────────────────── */
.share-stage { display: grid; gap: 14px; justify-items: center; }
.formats { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.formats button { border: 0; background: transparent; padding: 8px 16px; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.formats button[aria-selected=true] { background: var(--text); color: var(--bg); }
.card-frame { margin: 0; width: 100%; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); background: #0A0C11; }
.card-frame svg { width: 100%; height: auto; }
.frame-story { max-width: 340px; }
.frame-square { max-width: 440px; }
.frame-wide { max-width: 620px; }
.share-actions { display: grid; gap: 12px; align-content: start; }
.action-list { display: grid; gap: 10px; }

/* ── About ──────────────────────────────────────────── */
.prose-grid { display: grid; gap: 16px; padding-top: 16px; }
.prose { display: grid; gap: 10px; align-content: start; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose .btn { justify-self: start; white-space: normal; text-align: center; max-width: 100%; }

/* ── Forms, notices, progress ───────────────────────── */
.narrow { max-width: 560px; }
.stack { display: grid; gap: 14px; align-content: start; }
.spaced { margin-top: 18px; }
.notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--volt) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--volt) 30%, var(--line)); font-size: 15px; }
.notice-link { display: block; }
.notice-link:hover { border-color: var(--volt); }
.pane-form .notice, .rate-form .notice { margin: 0; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea, .input, .week-pick select, .fx-admin input, .fx-admin select { font: 500 16px/1.3 var(--body); color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; min-width: 0; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 3px solid color-mix(in srgb, var(--volt) 55%, transparent); outline-offset: 1px; }
.code-input { font: 800 28px/1 var(--display) !important; letter-spacing: .3em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--volt); }
.btn-auth { width: 100%; background: var(--text); color: var(--bg); }
.btn-auth svg { width: 20px; height: 20px; }
.btn-google { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.danger { color: var(--down) !important; }
.danger-fill { background: var(--down) !important; color: #fff !important; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.input-sm { min-height: 36px !important; padding: 6px 10px !important; width: 96px !important; font-size: 14px !important; }
.empty { display: grid; gap: 10px; }
.empty h3, .empty h2 { font-size: 22px; }
.table-card .empty { padding: 18px 14px; }
.empty-chart { padding: 20px 0; }
.muted-mood { color: var(--muted); font-weight: 600; }
.pbar { position: relative; display: block; height: 8px; min-width: 60px; border-radius: 99px; background: var(--track); overflow: hidden; }
.pbar > span { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--volt); }
.pbar-lg { height: 12px; margin: 8px 0; }
.pbar-on-dark { background: rgba(255, 255, 255, .16); max-width: 320px; }
.progress-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.progress-list li, .progress-list a { display: grid; grid-template-columns: 22px minmax(70px, 120px) 1fr auto; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.progress-list a { grid-column: 1 / -1; padding: 6px 4px; border-radius: 10px; }
.progress-list a:hover { background: var(--surface-2); }
.pending { padding: 10px 10px 12px; border-top: 1px solid var(--line); }
.pending summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 4px; }
.t-delta.new { color: var(--muted); font-weight: 600; }
.unlock { display: grid; gap: 4px; }
.countdown { font: 800 22px/1.2 var(--display); color: var(--volt-text); }
.countdown:empty { display: none; }
.week-pick { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.week-pick label { font-weight: 600; font-size: 14px; color: var(--muted); flex: none; }
.week-pick select { min-height: 42px; padding: 8px 12px; }
.swatch.inline { display: inline-block; vertical-align: -5px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border-bottom: 0; }
.facts-2 { grid-template-columns: minmax(0, 1fr); }
.facts-2 dd { font-size: 17px; }
.facts-2 dd .muted { font: 500 14px var(--body); }
.facts-3 dd { font-size: 20px; }

/* ── Fixtures, report ───────────────────────────────── */
.fx-head { font-size: 18px; padding: 16px 12px 6px; }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-list li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--line); font-size: 15px; }
.fx-list li:first-child { border-top: 0; }
.fx-list li.is-open { background: color-mix(in srgb, var(--volt) 8%, transparent); border-radius: 12px; }
.fx-md { display: none; font-weight: 700; color: var(--muted); font-size: 13px; }
.fx-date { font-size: 13px; font-weight: 600; }
.fx-line { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.fx-line a:hover { text-decoration: underline; }
.result.sm { padding: 3px 9px; font-size: 12px; }
.pill-link { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--volt); color: var(--volt-ink); font-weight: 800; font-size: 13px; white-space: nowrap; }
.report-form { display: grid; gap: 14px; }
.grade-pick legend { font: 700 16px/1.2 var(--display); margin-bottom: 8px; }
.grade-opts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.grade-opts input { position: absolute; opacity: 0; pointer-events: none; }
.grade-opts span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font: 800 17px/1 var(--display); cursor: pointer; }
.grade-opts input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.grade-opts input:focus-visible + span { outline: 3px solid var(--volt); outline-offset: 2px; }

/* ── Legal ──────────────────────────────────────────── */
.legal { padding-top: 8px; gap: 12px; }
.legal h2 { font-size: 20px; margin-top: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--text); font-weight: 700; }
.legal code { font-size: 13px; color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; font-weight: 600; }
.foot-links a { color: var(--text); padding: 6px 0; }
.foot-links a:hover { color: var(--volt-text); }
.foot .link { font-weight: 600; }

/* ── Admin ──────────────────────────────────────────── */
.admin-grid { display: grid; gap: 16px; padding-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.admin-table td.wrap { white-space: normal; max-width: 420px; overflow-wrap: anywhere; }
.fx-admin input[type=number] { width: 64px; min-height: 38px; padding: 6px 8px; }
.fx-admin input[type=datetime-local], .fx-admin select { min-height: 38px; padding: 6px 8px; width: auto; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.checks li::before { content: "○ "; color: var(--muted); }
.checks li.ok::before { content: "● "; color: var(--up); }
.hold, .msg { padding: 14px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 8px; }
.hold.open { box-shadow: inset 3px 0 0 var(--volt); }
.msg.mod-block { box-shadow: inset 3px 0 0 var(--down); }
.msg.mod-review { box-shadow: inset 3px 0 0 #F5A12D; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.tabs-sm a { padding: 6px 12px; font-size: 13px; }

/* ── Breakpoints ────────────────────────────────────── */
@media (min-width: 600px) {
  .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .club-hero-inner { padding: 104px 28px 26px; }
  .kit-art { height: 150px; right: -28%; }
  .t-spark { display: block; }
  .mood-table a { grid-template-columns: 30px 22px minmax(0, 1fr) 84px 56px 52px; padding: 12px 14px; }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-card { grid-column: 1 / -1; }
  .prose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-list li { grid-template-columns: 54px 110px minmax(0, 1fr) auto; }
  .fx-md { display: block; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  :root { --tabbar: 0px; }
  .tabbar { display: none; }
  .nav-desk { display: flex; }
  .club-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: start; gap: 20px; }
  .pane-live { display: block; position: sticky; top: 84px; }
  .split-table { grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr); }
  .split-share { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); }
  .share-actions { position: sticky; top: 84px; }
  .submit-bar { bottom: 16px; }
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-card { grid-column: span 2; }
  .club-hero-inner { padding: 64px 32px 28px; max-width: 70%; }
  .kit-art { right: -18%; width: 90%; height: 170px; top: 6px; }
  .foot { padding-bottom: 40px; }
  .page-share .foot, .page-rate .foot { padding-bottom: 40px; }
}

/* Short landscape screens (Duo unfolded, ~669pt tall): tighten vertical rhythm. */
@media (min-width: 900px) and (max-height: 760px) {
  .hero { padding: 28px 0 18px; }
  .club-hero-inner { padding-top: 48px; padding-bottom: 20px; }
  .page-head { padding-top: 22px; }
  .sliders { gap: 6px; }
  .slider { padding: 10px 14px 6px; }
  input[type=range] { height: 38px; }
  .frame-story { max-width: min(300px, calc((100dvh - 230px) * 9 / 16)); }
  .share-stage { gap: 10px; }
  .page-share .page-head { padding-top: 16px; gap: 6px; }
  .page-share .page-head h1 { font-size: 36px; }
}

@media (min-width: 1200px) {
  .club-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 600px) { .fx-all .fx-list li { grid-template-columns: 120px minmax(0, 1fr); } }
/* Inline links that wrap mid-name read badly (and overlap other links' boxes). */
.fx-line a, .page-head .link { white-space: nowrap; }
/* Match card: only the headline and the result badge share a row; anything else spans the card. */
.match > p:not(.match-meta), .match > .countdown { grid-column: 1 / -1; }

/* ── Breadcrumbs, SEO text, chip links ──────────────── */
.crumbs { padding: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; }
.crumbs li + li::before { content: "›"; opacity: .6; }
.crumbs a { padding: 4px 0; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }
.seo-text { display: grid; gap: 10px; max-width: 820px; }
.seo-text p { font-size: 15px; }
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.chip-link:hover { border-color: var(--volt-text); }
.club-index { padding-top: 16px; }
@media (max-width: 479px) { .club-index { grid-template-columns: minmax(0, 1fr); } }
/* Inline links that wrap mid-phrase read badly (same rule as .fx-line a). */
.seo-text .link { white-space: nowrap; }
