:root {
  --bg: #070b1a;
  --bg-2: #0b1126;
  --panel: #10183a;
  --panel-2: #152049;
  --panel-3: #1b2858;
  --line: rgba(150, 165, 255, 0.14);
  --line-strong: rgba(150, 165, 255, 0.28);
  --text: #e9edff;
  --muted: #9aa6d4;
  --faint: #6b77a8;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --brand: linear-gradient(135deg, #7c5cff 0%, #4f7dff 50%, #22d3ee 100%);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.55 var(--font);
  color: var(--text);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 64%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 82%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(900px 500px at 85% -10%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(34, 211, 238, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-banner {
  background: repeating-linear-gradient(135deg, #2a1f00, #2a1f00 12px, #332600 12px, #332600 24px);
  color: #fde68a;
  font-size: 12.5px;
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(251, 191, 36, .3);
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1480px, 100% - 32px); margin-inline: auto; }
/* The Combo Sorter uses the whole window: more columns of cards and more room for the filters. */
.app-top.wide .wrap-wide, .page.wide .wrap-wide { width: min(2200px, 100% - 48px); }
.page.wide .sorter { grid-template-columns: 320px 1fr; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  color: var(--text);
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-3); border-color: rgba(150,165,255,.45); }
.btn:active { transform: translateY(1px); }
/* "border-box": paint the gradient under the transparent border too, or its far end repeats there as a stray edge pixel. */
.btn-primary { background: var(--brand) border-box; border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(79,125,255,.35); }
.btn-primary:hover { background: var(--brand) border-box; filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn.on { color: var(--gold); border-color: rgba(251,191,36,.5); }

/* ---------- public nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: rgba(7, 11, 26, .72); border-bottom: 1px solid var(--line); }
.nav .wrap, .nav .wrap-wide { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none !important; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font: 600 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-top: 3px; }
.nav-links { display: flex; gap: 18px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-spacer { flex: 1; }

/* ---------- landing ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: rgba(16,24,58,.7); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat b { display: block; font: 700 26px/1.1 var(--display); }
.stat span { font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; height: 470px; }
.hero-visual .card-float {
  position: absolute; width: 58%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-visual .card-float img { width: 100%; height: 330px; object-fit: cover; object-position: top; }
.hero-visual .f1 { left: 0; top: 40px; transform: rotate(-6deg); }
.hero-visual .f2 { right: 0; top: 0; transform: rotate(5deg); }
.hero-visual .f3 { left: 21%; top: 120px; z-index: 2; transform: rotate(-1deg); }
.lock-chip {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3;
  background: rgba(7,11,26,.9); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.blur { filter: blur(5px) saturate(.9); }

.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { color: var(--muted); font-size: 16.5px; }
.kicker { color: var(--cyan); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

.slate { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.game-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.game-chip b { font-family: var(--display); letter-spacing: .02em; }
.game-chip span { color: var(--muted); font-size: 13px; }
button.game-chip { cursor: pointer; text-align: left; width: 100%; }
button.game-chip:hover { border-color: var(--line-strong); background: var(--panel-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: rgba(16,24,58,.55); }
.feature h3 { font-size: 17px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.feature .ico { font-size: 22px; margin-bottom: 10px; }

.teaser { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.teaser .t { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.teaser .t img { height: 210px; width: 100%; object-fit: cover; object-position: top; }
.teaser-over {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, rgba(7,11,26,.1), rgba(7,11,26,.85));
  border-radius: 12px;
}
.teaser-over div { max-width: 420px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; }
.plan { position: relative; border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.plan.best { border-color: rgba(124,92,255,.7); box-shadow: 0 0 0 1px rgba(124,92,255,.4), var(--shadow); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; }
.plan .price { font: 700 44px/1 var(--display); margin: 10px 0 4px; }
.plan .price small { font: 500 15px var(--font); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }
.plan .btn { width: 100%; }
.fine { color: var(--faint); font-size: 12.5px; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--muted); font-size: 13px; margin-top: 30px; }
.footer .rg { display: flex; gap: 12px; align-items: flex-start; background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.2); border-radius: var(--radius-sm); padding: 12px 16px; color: #fde68a; margin-bottom: 18px; }
.badge-21 { flex: none; font-weight: 800; border: 2px solid #fde68a; border-radius: 8px; padding: 1px 6px; font-size: 12px; }

/* ---------- auth / signup ---------- */
.auth { padding: 48px 0 80px; }
.auth-card { width: min(560px, 100%); margin: 0 auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.auth-card.wide { width: min(760px, 100%); }
.stepper { display: flex; gap: 8px; margin-bottom: 26px; }
.stepper div { flex: 1; height: 5px; border-radius: 9px; background: var(--panel-3); }
.stepper div.on { background: var(--brand); }
.stepper-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin: -18px 0 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(7,11,26,.6); color: var(--text);
}
.input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.check input { margin-top: 4px; accent-color: var(--violet); }
.err { color: var(--red); font-size: 13.5px; min-height: 20px; margin-bottom: 8px; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.plan-opt { position: relative; border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; cursor: pointer; background: rgba(7,11,26,.4); }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt:has(input:checked) { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(124,92,255,.45); background: rgba(124,92,255,.08); }
.plan-opt b { font: 700 26px var(--display); display: block; margin: 4px 0; }
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.secure-box { border: 1px dashed rgba(34,211,238,.45); border-radius: 14px; padding: 20px; background: rgba(34,211,238,.05); }
.secure-box h3 { font-size: 17px; }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(7,11,26,.45); }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary .row:last-child { border-bottom: 0; font-weight: 700; }

/* ---------- member app ---------- */
.app-top { position: sticky; top: 0; z-index: 30; background: rgba(7,11,26,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-top .bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.sport-tabs { display: flex; gap: 6px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.sport-tab { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.sport-tab.on { background: var(--brand); color: #fff; }
.sport-tab[disabled] { cursor: not-allowed; opacity: .6; }
.sport-tab .n { font-size: 11.5px; background: rgba(255,255,255,.18); padding: 1px 7px; border-radius: 999px; }
.sport-tab .soon { font-size: 10.5px; color: var(--faint); font-weight: 600; letter-spacing: .04em; }
.edition-pill { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.member-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(251,191,36,.4); border-radius: 999px; padding: 2px 8px; text-transform: uppercase; }
.sub-tabs { display: flex; gap: 4px; border-top: 1px solid var(--line); overflow-x: auto; }
.sub-tab { padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.sub-tab:hover { color: var(--text); text-decoration: none; }
.sub-tab.on { color: var(--text); border-bottom-color: var(--cyan); }
.sub-tab .n { font-size: 12px; color: var(--faint); margin-left: 4px; }

.page { padding: 28px 0 70px; }
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.welcome h1 { font-size: 30px; margin: 0; }
.welcome p { color: var(--muted); margin: 4px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.kpi b { display: block; font: 700 26px/1.1 var(--display); }
.kpi span { color: var(--muted); font-size: 12.5px; }
.block-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
.block-title h2 { font-size: 20px; margin: 0; }
.block-title span { color: var(--muted); font-size: 13.5px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: 13.5px; }
.quick button:hover { border-color: var(--cyan); color: #fff; }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.collection { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden; display: flex; flex-direction: column; }
.collection .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: 128px; background: #000; }
.collection .thumbs img { width: 100%; height: 128px; object-fit: cover; object-position: top; }
.collection .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.collection h3 { font-size: 17px; margin: 0; display: flex; justify-content: space-between; gap: 10px; }
.collection h3 span { color: var(--cyan); font-size: 14px; }
.collection.start-here { border-color: rgba(251,191,36,.45); }
.collection.start-here h3 span { color: var(--gold); }
.collection p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; flex: 1; }

/* sorter */
.sorter { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.filters { position: sticky; top: 128px; max-height: calc(100vh - 140px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; scrollbar-width: thin; }
.filters h3 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup > .fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fgroup > .fhead b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fgroup .sub { font-size: 12px; color: var(--faint); margin: 8px 0 4px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line-strong); background: rgba(7,11,26,.5); color: var(--text);
  border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.chip i { font-style: normal; color: var(--faint); font-size: 11.5px; }
.chip:hover { border-color: var(--cyan); }
.chip[aria-pressed="true"] { background: rgba(34,211,238,.16); border-color: var(--cyan); color: #fff; }
.chip[aria-pressed="true"] i { color: var(--cyan); }
.chip.zero { opacity: .38; }
.mode { display: flex; gap: 2px; background: rgba(7,11,26,.6); border: 1px solid var(--line); border-radius: 8px; padding: 2px; margin-top: 8px; }
.mode button { flex: 1; border: 0; background: transparent; border-radius: 6px; padding: 4px 6px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.mode button.on { background: var(--panel-3); color: var(--text); }
.mode-help { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--cyan); }
.linkish { background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: 12.5px; padding: 0; }
.linkish:hover { text-decoration: underline; }

.results-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.results-head .count { font-size: 15px; }
.results-head .count b { font-family: var(--display); font-size: 20px; }
.rh-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--panel); }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 14px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--panel-3); color: var(--text); }
.active-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill { font-size: 12px; border-radius: 999px; padding: 3px 4px 3px 10px; background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.45); display: inline-flex; gap: 6px; align-items: center; }
.pill button { border: 0; background: rgba(255,255,255,.1); border-radius: 50%; width: 18px; height: 18px; cursor: pointer; line-height: 1; font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ccard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease, transform .15s ease; }
.ccard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ccard .shot { position: relative; height: 190px; background: #000; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.ccard .shot img { width: 100%; height: 190px; object-fit: cover; object-position: top; }
.ccard .shot .no { position: absolute; left: 8px; top: 8px; background: rgba(7,11,26,.85); border-radius: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; }
.ccard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard .strat { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.ccard h4 { font-size: 15px; margin: 0; font-family: var(--font); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { font-size: 11.5px; border-radius: 6px; padding: 2px 7px; background: var(--panel-3); color: var(--text); white-space: nowrap; }
.badge.legs { background: rgba(124,92,255,.25); }
.badge.sg { background: rgba(251,191,36,.18); color: #fde68a; }
.badge.time { background: rgba(34,211,238,.14); color: #a5f3fc; }
.badge.na { background: rgba(248,113,113,.12); color: #fecaca; }
.badge.odds { background: rgba(251,191,36,.18); color: #fde68a; font-weight: 600; }
.badge.late { background: rgba(248,113,113,.14); color: #fecaca; }
.legs-mini { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.legs-mini li { display: flex; justify-content: space-between; gap: 8px; }
.legs-mini li span:first-child { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legs-mini li span:last-child { flex: none; font-size: 12px; }
.legs-mini .more { color: var(--faint); font-size: 12px; }
.ccard .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; align-items: center; }
.ccard .actions .btn { flex: 1; }
.team { font-family: var(--display); font-weight: 600; font-size: 11px; padding: 0 5px; border-radius: 4px; margin-right: 6px; color: #fff; }

.slip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.slip { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.slip header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.slip header h4 { margin: 0; font-size: 14.5px; font-family: var(--font); }
.slip iframe { width: 100%; height: 640px; border: 0; background: #fff; display: block; }
.slip .noslip { height: 200px; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

.pager { display: flex; gap: 6px; justify-content: center; align-items: center; margin: 26px 0 8px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.pager button.on { background: var(--brand) border-box; border-color: transparent; color: #fff; font-weight: 700; }
.pager span { color: var(--faint); padding: 0 4px; }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 50px 20px; text-align: center; color: var(--muted); }
.filters-toggle { display: none; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(3,5,14,.78); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(1240px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(11,17,38,.96); border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; flex: 1; }
.modal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 18px; }
.shot-full { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); align-self: start; }
.watermark { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.watermark div {
  position: absolute; left: -20%; width: 140%; text-align: center; transform: rotate(-24deg);
  font-weight: 700; font-size: 15px; letter-spacing: .08em; color: rgba(255,255,255,.16); text-shadow: 0 0 2px rgba(0,0,0,.35); white-space: nowrap;
}
.legs-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.legs-table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 6px 6px; border-bottom: 1px solid var(--line); }
.legs-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.legs-table tr.game-row td { background: rgba(34,211,238,.06); color: #a5f3fc; font-weight: 600; font-size: 13px; }
.slip-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.slip-frame iframe { display: block; width: 100%; height: 660px; border: 0; }
.slip-placeholder { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); }
.note { font-size: 12.5px; color: var(--faint); margin-top: 10px; }

/* account */
.acct { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { font-size: 17px; }
.panel.results-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 22px; padding: 14px 18px; border-color: rgba(34, 211, 238, .35); }
.panel.results-in span { color: var(--muted); }
.panel.results-in .btn { margin-left: auto; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--panel-3); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); font-weight: 500; max-width: calc(100% - 32px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .teaser { grid-template-columns: repeat(3, 1fr); }
  .teaser .t:nth-child(n+4) { display: none; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .sorter, .page.wide .sorter { grid-template-columns: 1fr; }
  .app-top.wide .wrap-wide, .page.wide .wrap-wide { width: calc(100% - 32px); }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .modal-body { grid-template-columns: 1fr; }
  .checkout, .acct { grid-template-columns: 1fr; }
  .edition-pill { display: none; }
}
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan-pick { grid-template-columns: 1fr; }
  .app-top .bar { gap: 10px; }
  .app-top .brand > span { display: none; }
  .sport-tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .sport-tab { padding: 5px 10px; font-size: 12.5px; }
  .nav .brand > span { font-size: 15px; }
  .nav .wrap { gap: 10px; }
  .nav .fine { display: none; }
  .user-chip .member-badge, .user-chip .uname { display: none; }
  .sport-tab .soon { display: none; }
  .auth-card { padding: 22px; }
  .hero { padding-top: 40px; }
  .hero-visual { height: 300px; }
  .hero-visual .card-float img { height: 220px; }
  .slip iframe { height: 600px; }
  .modal-back { padding: 0; }
  .modal { max-height: 100vh; border-radius: 0; }
  .kv { grid-template-columns: 1fr; }
}

/* ---------- drawn combination cards (replace internal card images) ---------- */
/* The card's colors come from these variables. Deep Space is the default; the other styles below only
   change the variables, and the member picks one on the Account page (data-cards on <html>). */
.cv {
  --cv-bg: linear-gradient(180deg, #0f1a34, #0b1328); --cv-text: #e9edff; --cv-muted: #9aa6d4; --cv-accent: #5eead4;
  --cv-gh: #a5f3fc; --cv-game-bg: rgba(21,32,73,.55); --cv-game-line: rgba(150,165,255,.18); --cv-prop-bg: #1b2858;
  --cv-foot: #fbbf24; --cv-mark: rgba(255,255,255,.14);
  position: relative; background: var(--cv-bg); color: var(--cv-text); border-top: 4px solid var(--cv-accent); padding: 14px 14px 10px; font-size: 13px; text-align: left; height: 100%; overflow: hidden;
}
/* The member's email, faint and diagonal, on every drawn card. */
.cv-mark { position: absolute; inset: 0; display: grid; place-items: center; transform: rotate(-24deg); font: 600 11px/1 var(--font); letter-spacing: .1em; color: var(--cv-mark); white-space: nowrap; pointer-events: none; }
.cv-top { display: flex; justify-content: space-between; gap: 8px; font: 700 10.5px/1.2 var(--display); letter-spacing: .08em; color: var(--cv-accent); }
.cv-title { font: 800 20px/1.1 var(--display); margin: 6px 0 2px; letter-spacing: .01em; }
.cv-sub { color: var(--cv-muted); font-size: 11.5px; margin-bottom: 8px; }
.cv-game { border: 1px solid var(--cv-game-line); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; background: var(--cv-game-bg); }
.cv-gh { display: flex; justify-content: space-between; color: var(--cv-gh); font-size: 11.5px; margin-bottom: 3px; }
.cv-gh b { font-family: var(--display); color: var(--cv-accent); }
.cv-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 2px 0; }
.cv-p { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-t { color: var(--cv-muted); font-size: 11px; }
.cv-prop { background: var(--cv-prop-bg); border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.cv-foot { color: var(--cv-foot); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; margin-top: 6px; }
/* The five card styles. Previews on the Account page use the same rules (.cs-prev wins over the page's choice). */
:root[data-cards="deep-space"] .cv, .cs-prev.cs-prev[data-cards="deep-space"] .cv {
  --cv-bg: linear-gradient(180deg, #0f1a34, #0b1328); --cv-text: #e9edff; --cv-muted: #9aa6d4; --cv-accent: #5eead4; --cv-gh: #a5f3fc;
  --cv-game-bg: rgba(21,32,73,.55); --cv-game-line: rgba(150,165,255,.18); --cv-prop-bg: #1b2858; --cv-foot: #fbbf24; --cv-mark: rgba(255,255,255,.14); }
:root[data-cards="orbit"] .cv, .cs-prev.cs-prev[data-cards="orbit"] .cv {
  --cv-bg: linear-gradient(180deg, #1f2d62, #152049); --cv-text: #e9edff; --cv-muted: #b7c0e6; --cv-accent: #5eead4; --cv-gh: #a5f3fc;
  --cv-game-bg: rgba(255,255,255,.07); --cv-game-line: rgba(150,165,255,.25); --cv-prop-bg: #2a3a78; --cv-foot: #fbbf24; --cv-mark: rgba(255,255,255,.14); }
:root[data-cards="nebula"] .cv, .cs-prev.cs-prev[data-cards="nebula"] .cv {
  --cv-bg: linear-gradient(180deg, #e8edf9, #dfe6f6); --cv-text: #16203f; --cv-muted: #4b5679; --cv-accent: #0e7490; --cv-gh: #155e75;
  --cv-game-bg: rgba(255,255,255,.6); --cv-game-line: rgba(36,56,140,.14); --cv-prop-bg: #d6def3; --cv-foot: #0e7490; --cv-mark: rgba(22,32,63,.10); }
:root[data-cards="starlight"] .cv, .cs-prev.cs-prev[data-cards="starlight"] .cv {
  --cv-bg: linear-gradient(180deg, #ffffff, #f5f7fd); --cv-text: #16203f; --cv-muted: #4b5679; --cv-accent: #6246ea; --cv-gh: #155e75;
  --cv-game-bg: #f5f7fd; --cv-game-line: rgba(36,56,140,.12); --cv-prop-bg: #e8edf9; --cv-foot: #6246ea; --cv-mark: rgba(22,32,63,.10); }
:root[data-cards="galaxy"] .cv, .cs-prev.cs-prev[data-cards="galaxy"] .cv {
  --cv-bg: linear-gradient(160deg, #3b3f8f 0%, #2f4a94 55%, #26407f 100%); --cv-text: #e9edff; --cv-muted: #b7c0e6; --cv-accent: #5eead4; --cv-gh: #a5f3fc;
  --cv-game-bg: rgba(255,255,255,.09); --cv-game-line: rgba(255,255,255,.22); --cv-prop-bg: rgba(10,20,60,.38); --cv-foot: #fbbf24; --cv-mark: rgba(255,255,255,.15); }
/* The picker on the Account page */
.card-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card-style { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; text-align: left; color: var(--text); }
.card-style:hover { border-color: var(--line-strong); }
.card-style.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.card-style b { font-size: 14px; }
.card-style small { color: var(--muted); font-size: 12px; }
.cs-prev { height: 120px; border-radius: 8px; overflow: hidden; }
.cs-prev .cv { pointer-events: none; }
.cv-mini { font-size: 11px; padding: 10px; }
.cv-mini .cv-title { font-size: 15px; }
.cv-full { padding: 22px; font-size: 14.5px; min-height: 420px; }
.cv-full .cv-title { font-size: 28px; }
.cv-full .cv-t, .cv-full .cv-prop { font-size: 12.5px; }
.ccard .shot { overflow: hidden; }
.ccard .shot .cv { height: 190px; }
.hero-visual .card-float { height: 330px; overflow: hidden; }
.hero-visual .card-float > div, .hero-visual .card-float .cv { height: 100%; }
.teaser .t { height: 210px; overflow: hidden; }
.teaser .t > div, .teaser .t .cv { height: 100%; }
.collection .thumbs > div { height: 128px; overflow: hidden; }
.ccard .shot .cv-top { padding-left: 46px; }

/* pricing: three plans + founding ladder */
.plans { grid-template-columns: repeat(3, minmax(0, 330px)); }
.plan-pick { grid-template-columns: repeat(3, 1fr); }
.ladder { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 26px auto 0; max-width: 760px; }
.ladder > div { border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 14px; text-align: center; background: var(--panel); min-width: 96px; }
.ladder > div.on { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(124,92,255,.35); }
.ladder b { display: block; font: 700 20px var(--display); }
.ladder span { font-size: 12px; color: var(--muted); }
.ladder i { color: var(--faint); font-style: normal; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 420px); } .plan-pick { grid-template-columns: 1fr; } }

/* Due scorer tag on a card's leg list: his run without a goal is well past his usual gap */
.due-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #fbbf24; background: rgba(251, 191, 36, .16); border: 1px solid rgba(251, 191, 36, .35); }

/* Leg tags in the card view: HOT (recent form), CHALK / LONG (the leg's own price when the link was made) */
.leg-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 5px; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .06em; border: 1px solid transparent; }
.tag-hot { color: #fb923c; background: rgba(251, 146, 60, .14); border-color: rgba(251, 146, 60, .35); }
.tag-chalk { color: #67e8f9; background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .35); }
.tag-long { color: #c4b5fd; background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .4); }
/* "Create my link": keep boxes on the card's legs and the button under them */
.legs-pick .keep-col { width: 44px; text-align: center; }
.legs-pick input.keep { width: 16px; height: 16px; margin: 0; accent-color: var(--cyan); cursor: pointer; vertical-align: middle; }
.mylink { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 16px; }
.mylink .fine { flex: 1 1 220px; }
.mylink .regen-out { flex-basis: 100%; }

/* Brand mark from the kit: one file per theme */
.brand img.mark { width: 34px; height: 34px; flex: none; display: block; }
.brand img.mark-light { display: none; }
:root[data-theme="light"] .brand .mark-dark { display: none; }
:root[data-theme="light"] .brand .mark-light { display: block; }
.tag-legend { margin: -8px 0 14px; }
