/* ==========================================================================
   Torus — prediction market UI
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-sunk: #eef0f4;
  --card: #ffffff;
  --ink: #0a0f1a;
  --ink-2: #333d4d;
  --muted: #79839a;
  --line: #e7eaf0;
  --line-2: #d9dde6;
  --brand: #0a0f1a;
  --accent: #00b874;
  --accent-2: #00d68f;
  --accent-ink: #00794b;
  --yes: #0e9f6e;
  --yes-bg: #e8f8f0;
  --no: #e0352b;
  --no-bg: #fdeceb;
  --shadow-s: 0 1px 2px rgba(10, 15, 26, .05);
  --shadow-m: 0 2px 4px rgba(10, 15, 26, .04), 0 14px 30px -18px rgba(10, 15, 26, .28);
  --shadow-l: 0 30px 70px -40px rgba(10, 15, 26, .45);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --nav-h: 66px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #080b11;
  --bg-soft: #0d1219;
  --bg-sunk: #131a24;
  --card: #0f151e;
  --ink: #eef2f8;
  --ink-2: #c2cada;
  --muted: #7e8aa2;
  --line: #1c2431;
  --line-2: #2a3444;
  --brand: #eef2f8;
  --yes: #23d18b;
  --yes-bg: #0c2a20;
  --no: #ff6b60;
  --no-bg: #2b1311;
  --accent-ink: #4ce0a5;
  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-m: 0 2px 6px rgba(0, 0, 0, .3), 0 20px 40px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 214, 143, .10), transparent 62%),
    radial-gradient(800px 460px at 88% -10%, rgba(72, 108, 255, .07), transparent 60%);
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 214, 143, .10), transparent 62%),
    radial-gradient(800px 460px at 88% -10%, rgba(72, 108, 255, .12), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tabnum, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- demo strip */

.demo-strip {
  background: var(--brand);
  color: #cfd6e4;
  font-size: 12.5px;
  position: relative;
  z-index: 40;
}
[data-theme="dark"] .demo-strip { background: #060910; border-bottom: 1px solid var(--line); }
.demo-strip-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 34px; justify-content: center; flex-wrap: wrap; padding: 5px 24px;
}
.demo-strip strong { color: #fff; font-weight: 600; }
.demo-strip a { color: #7df0c2; font-weight: 600; white-space: nowrap; }
.demo-strip a:hover { text-decoration: underline; }

.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: #19e08c; flex: none;
  box-shadow: 0 0 0 0 rgba(25, 224, 140, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(25, 224, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 224, 140, 0); }
}

/* ---------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand-mark { width: 27px; height: 27px; }
.brand-word {
  font-size: 21px; font-weight: 800; letter-spacing: -.045em;
  color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a.on { color: var(--ink); background: var(--bg-soft); font-weight: 600; }

.search {
  margin-left: auto; position: relative; display: flex; align-items: center;
  width: min(240px, 22vw); height: 38px;
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.search:focus-within { background: var(--card); border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(0, 184, 116, .12); }
.search svg { width: 17px; height: 17px; margin: 0 8px 0 11px; color: var(--muted); flex: none; }
.search input {
  border: 0; background: none; outline: none; width: 100%; font-size: 13.5px;
  padding-right: 6px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; margin-right: 8px;
  background: var(--card);
}

.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 9px; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

.balance-chip {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); line-height: 1.15; box-shadow: var(--shadow-s);
  transition: border-color .15s, transform .15s;
}
.balance-chip:hover { border-color: var(--line-2); transform: translateY(-1px); }
.balance-label { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.balance-value { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #00d68f, #0a9f6b); color: #04110c;
  font-weight: 800; font-size: 13px; letter-spacing: -.02em;
}

/* ------------------------------------------------------------------- ticker */

.ticker {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden; height: 35px; position: relative;
}
.ticker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg-soft), transparent 6%, transparent 94%, var(--bg-soft));
}
.ticker-track {
  display: flex; width: max-content; height: 100%; align-items: center;
  animation: marquee 62s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-item {
  display: inline-flex; align-items: center; gap: 9px; padding: 0 18px;
  font-size: 13px; white-space: nowrap; color: var(--ink);
  border-right: 1px solid var(--line);
}
.ticker-item:hover { background: var(--card); }
.ticker-name { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 500; }
.ticker-price { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.ticker-move { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.up { color: var(--yes); }
.down { color: var(--no); }
.flat { color: var(--muted); }

/* -------------------------------------------------------------------- hero */

main { position: relative; z-index: 1; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; padding: 58px 0 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--yes-bg); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--yes) 22%, transparent);
  margin-bottom: 18px;
}
.eyebrow .dot-live { background: var(--accent); }

.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -.042em;
  font-weight: 800;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #00b874, #0093ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
  max-width: 46ch;
}
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-m); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.hero-stats { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat b { font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.hstat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* featured market card */
.featured {
  position: relative; overflow: hidden;
  border-radius: var(--r-l);
  background: radial-gradient(120% 120% at 100% 0%, #123b30 0%, #0b1a18 45%, #070d12 100%);
  color: #fff; padding: 26px 26px 22px;
  box-shadow: var(--shadow-l);
  border: 1px solid rgba(255, 255, 255, .09);
  isolation: isolate;
}
.featured::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 20%, transparent 78%);
}
.featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.featured-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #7df0c2; display: inline-flex; align-items: center; gap: 7px;
}
.featured-vol { font-size: 11.5px; color: rgba(255, 255, 255, .55); font-family: var(--mono); }
.featured h3 { font-size: 21px; line-height: 1.28; letter-spacing: -.03em; font-weight: 650; }
.featured .ladder-live { margin-top: 18px; display: grid; gap: 11px; }
.fl-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.fl-label { font-size: 13px; color: rgba(255, 255, 255, .78); }
.fl-price { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.fl-bar { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #00d68f, #42e9b0); }
.fl-more { font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-top: 2px; }
.featured-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.featured-foot .mini { font-size: 11.5px; color: rgba(255, 255, 255, .55); }
.featured-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: #00d68f; color: #04110c; font-weight: 700; font-size: 13px;
  padding: 9px 15px; border-radius: 9px;
}
.featured-cta:hover { background: #2ae3a3; }

/* ------------------------------------------------------------- section tabs */

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin: 26px 0 18px; flex-wrap: wrap;
}
.section-head h2 { font-size: 22px; letter-spacing: -.035em; }
.section-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.section-head a.more { font-size: 13px; font-weight: 600; color: var(--accent-ink); }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: .6; }

/* ------------------------------------------------------------------ cards */

.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.mcard {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 16px 17px 14px; box-shadow: var(--shadow-s);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  min-height: 196px;
}
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.pill-cat { background: var(--bg-sunk); color: var(--ink-2); }
.mcard-vol { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mcard-title {
  font-size: 15.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.018em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.mcard-prob { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.prob-big {
  font-family: var(--mono); font-size: 31px; font-weight: 600; letter-spacing: -.045em;
  line-height: 1; color: var(--ink);
}
.prob-big span { font-size: 17px; margin-left: 1px; color: var(--muted); }
.prob-cap { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; }
.mini-yes { font-weight: 700; color: var(--yes); text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.chg { font-family: var(--mono); font-weight: 600; }
.mcard-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 11px; border-top: 1px solid var(--line); margin-top: auto;
}
.go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.go svg { width: 14px; height: 14px; }
.spark { overflow: visible; }

.ladder-mini { display: grid; gap: 7px; }
.ladder-mini li {
  display: grid; grid-template-columns: 1fr 46px auto; align-items: center; gap: 9px;
  font-size: 12.5px;
}
.lm-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-bar { height: 4px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.lm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; opacity: .75; }
.lm-price { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); text-align: right; min-width: 34px; }
.lm-more { font-size: 11.5px; color: var(--muted); padding-left: 0; }

/* -------------------------------------------------------------- how it works */

.how { margin: 54px 0 12px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.how-card {
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px;
  background: var(--card); box-shadow: var(--shadow-s);
}
.how-num {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--yes-bg); color: var(--accent-ink); font-family: var(--mono); font-weight: 600;
  font-size: 13px; margin-bottom: 13px;
}
.how-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.how-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* activity */
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin: 44px 0; align-items: start; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-s); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.panel-head h3 { font-size: 14px; letter-spacing: -.01em; }
.panel-body { padding: 4px 0; }

.act-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.act-row:last-child { border-bottom: 0; }
.act-title { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-meta { display: flex; align-items: center; gap: 8px; justify-content: flex-end; white-space: nowrap; }
.tag-side { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.tag-yes { background: var(--yes-bg); color: var(--yes); }
.tag-no { background: var(--no-bg); color: var(--no); }
.act-qty { font-family: var(--mono); font-size: 12px; }
.act-time { color: var(--muted); font-size: 11.5px; font-family: var(--mono); }

.mover-grid { display: grid; gap: 2px; padding: 6px 0; }
.mover {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 10px 18px;
}
.mover:hover { background: var(--bg-soft); }
.mover-name { font-size: 12.8px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-r { display: flex; align-items: center; gap: 10px; }
.mover-price { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.mover-chg { font-family: var(--mono); font-size: 11.5px; font-weight: 600; min-width: 34px; text-align: right; }

/* ----------------------------------------------------------------- market */

.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 22px 0 12px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }

.mhead { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.mhead-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mhead h1 { font-size: clamp(23px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -.035em; max-width: 24ch; }
.mhead-meta { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.mm { display: flex; flex-direction: column; gap: 1px; }
.mm span { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mm b { font-size: 13.5px; font-weight: 600; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.mlayout { display: grid; grid-template-columns: minmax(0, 1fr) 374px; gap: 24px; padding: 22px 0 56px; align-items: start; }
.mside { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 16px; }

.chart-card { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-s); }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px 0; flex-wrap: wrap; }
.chart-quote { display: flex; align-items: baseline; gap: 9px; }
.chart-quote .big { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.chart-quote .lbl { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.range-tabs { display: inline-flex; gap: 2px; background: var(--bg-soft); border-radius: 8px; padding: 3px; }
.range-tabs button {
  border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 5px 10px; border-radius: 6px; cursor: pointer; font-family: var(--mono);
}
.range-tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }

.chart-wrap { padding: 8px 10px 6px; }
#chart { width: 100%; height: 268px; display: block; touch-action: pan-y; }
.chart-tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -112%);
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 11px;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap; z-index: 5; transition: opacity .1s;
}
.chart-holder { position: relative; }

/* outcome ladder */
.ladder { width: 100%; border-collapse: collapse; margin-top: 2px; }
.ladder th {
  text-align: left; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; padding: 11px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.ladder th.r, .ladder td.r { text-align: right; }
.ladder td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ladder tr:last-child td { border-bottom: 0; }
.ladder tbody tr { cursor: pointer; transition: background .12s; }
.ladder tbody tr:hover { background: var(--bg-soft); }
.ladder tbody tr.sel { background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.ladder .olabel { font-weight: 600; }
.ladder .osub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.ladder .oprice { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.bar-cell { width: 34%; }
.obar { height: 6px; border-radius: 99px; background: var(--bg-sunk); overflow: hidden; }
.obar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #4ce0a5); border-radius: 99px; }
.ochg { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }

/* ticket */
.ticket { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-m); overflow: hidden; }
.ticket-head { padding: 15px 17px 13px; border-bottom: 1px solid var(--line); }
.ticket-head h3 { font-size: 13.5px; }
.ticket-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-soft); border-radius: 10px; padding: 4px; margin: 14px 17px 0; }
.seg button {
  border: 0; background: none; border-radius: 7px; padding: 9px 0; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .14s;
}
.seg button.on[data-side="yes"] { background: var(--yes); color: #fff; box-shadow: 0 2px 8px -2px rgba(14, 159, 110, .6); }
.seg button.on[data-side="no"] { background: var(--no); color: #fff; box-shadow: 0 2px 8px -2px rgba(224, 53, 43, .5); }

.ticket-body { padding: 14px 17px 17px; }
.ticket-outcome {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin-bottom: 13px;
  background: var(--bg-soft);
}
.ticket-outcome .to-label { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-outcome .to-price { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
select.oc-select {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 10px 11px; font-size: 13px; margin-bottom: 13px; cursor: pointer;
}
.field-label { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button {
  width: 40px; height: 42px; border: 0; background: var(--bg-soft); color: var(--ink-2);
  font-size: 18px; cursor: pointer; display: grid; place-items: center;
}
.qty button:hover { background: var(--bg-sunk); }
.qty input {
  flex: 1; border: 0; outline: none; text-align: center; background: none;
  font-family: var(--mono); font-size: 15px; font-weight: 600; height: 42px; min-width: 0;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick { display: flex; gap: 5px; margin-top: 8px; }
.quick button {
  flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  padding: 5px 0; cursor: pointer;
}
.quick button:hover { border-color: var(--line-2); background: var(--bg-soft); }

.summary { margin: 15px 0 13px; display: grid; gap: 7px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.summary div b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .total { padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.summary .total b { font-size: 14.5px; }

.btn-trade {
  width: 100%; height: 46px; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--yes);
  transition: filter .15s, transform .1s;
}
.btn-trade.no { background: var(--no); }
.btn-trade:hover { filter: brightness(1.07); }
.btn-trade:active { transform: translateY(1px); }
.btn-trade:disabled { opacity: .55; cursor: not-allowed; }
.ticket-note { margin-top: 9px; font-size: 11px; color: var(--muted); text-align: center; }

.ticket-msg {
  display: none; margin: 0 17px 14px; padding: 9px 11px; border-radius: 8px; font-size: 12.5px;
}
.ticket-msg.show { display: block; }
.ticket-msg.ok { background: var(--yes-bg); color: var(--accent-ink); }
.ticket-msg.err { background: var(--no-bg); color: var(--no); }

.ob { padding: 0; }
.ob table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.ob th { text-align: right; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 9px 16px 7px; font-weight: 700; }
.ob th:first-child, .ob td:first-child { text-align: left; }
.ob td { padding: 4px 16px; position: relative; }
.ob td.px { font-weight: 600; }
.ob .depth { position: absolute; right: 0; top: 0; bottom: 0; opacity: .13; }
.ob .bid .depth { background: var(--yes); }
.ob .ask .depth { background: var(--no); }
.ob .ask td { color: var(--no); }
.ob .bid td.px { color: var(--yes); }
.ob .mid { text-align: center; padding: 7px 0; font-family: var(--mono); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.ob .sidelabel td { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px 16px 4px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }

.rules { margin-top: 24px; }
.rules h3 { font-size: 15px; margin-bottom: 8px; }
.rules p { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; margin-bottom: 10px; }
.rules ul { display: grid; gap: 7px; margin: 10px 0; }
.rules li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.rules li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rules .meta { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ portfolio */

.pf-head { padding: 34px 0 8px; }
.pf-head h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
.pf-head p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 26px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px;
  background: var(--card); box-shadow: var(--shadow-s);
}
.stat .k { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .v { font-family: var(--mono); font-size: 23px; font-weight: 600; letter-spacing: -.03em; margin-top: 5px; }
.stat .v.green { color: var(--yes); }
.stat .v.red { color: var(--no); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); overflow: hidden; box-shadow: var(--shadow-s); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
table.data th.num { text-align: right; }
table.data .side { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; }
.mcell-link { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcell-link:hover { text-decoration: underline; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty a { color: var(--accent-ink); font-weight: 600; }

.reset-note {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 22px 0 50px; padding-top: 18px; border-top: 1px solid var(--line);
}
.flash {
  margin-top: 20px; padding: 11px 14px; border-radius: 9px; font-size: 13.5px;
  background: var(--yes-bg); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--yes) 24%, transparent);
}

.btn-sm {
  border: 1px solid var(--line-2); background: var(--card); border-radius: 7px;
  padding: 5px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: var(--sans);
}
.btn-sm:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------- how page */

.doc { padding: 44px 0 70px; max-width: 700px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.doc .lede { font-size: 17px; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }
.doc ul { display: grid; gap: 8px; margin: 10px 0 16px; }
.doc li { font-size: 14.5px; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.6; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; padding: 44px 24px 30px; }
.brand-footer { color: var(--ink); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; max-width: 40ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px 26px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}

/* mobile trade bar */
.mbar { display: none; }

@media (max-width: 1080px) {
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .mbar .q { display: flex; flex-direction: column; line-height: 1.15; }
  .mbar .q span { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .mbar .q b { font-family: var(--mono); font-size: 16px; }
  .mbar-label { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbar a {
    margin-left: auto; background: var(--yes); color: #fff; font-weight: 700; font-size: 14px;
    padding: 11px 20px; border-radius: 10px; white-space: nowrap;
  }
  .mlayout { padding-bottom: 92px; }
}

/* ------------------------------------------------------------------ tablet */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .featured { max-width: 560px; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlayout { grid-template-columns: 1fr; }
  .mside { position: static; }
  .split { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .search { width: min(260px, 34vw); margin-left: 12px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .demo-strip-inner { justify-content: flex-start; font-size: 11.5px; padding: 6px 16px; }
  .demo-strip-inner span:nth-child(2) { line-height: 1.35; }
  .nav-inner { gap: 10px; height: 60px; }
  .brand-word { font-size: 19px; }
  .search { display: none; }
  .balance-chip { padding: 4px 9px; }
  .balance-value { font-size: 12px; }
  .nav-right { margin-left: auto; }
  .hero { padding: 30px 0 26px; }
  .hero h1 { max-width: 100%; }
  .hero-stats { gap: 18px; }
  .hstat b { font-size: 16px; }
  .mgrid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .mhead-meta { gap: 14px; }
  .chart-quote .big { font-size: 28px; }
  #chart { height: 210px; }
  .ladder th:nth-child(2), .ladder td:nth-child(2) { display: none; }
  .ladder th, .ladder td { padding: 11px 12px; }
  .pf-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat .v { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 32px 16px 22px; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 16px 22px; }
  .table-wrap { overflow-x: auto; }
  table.data { min-width: 620px; }

  /* stacked position cards on phones */
  table.data.resp { min-width: 0; }
  table.data.resp thead { display: none; }
  table.data.resp tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
  }
  table.data.resp tr:last-child { border-bottom: 0; }
  table.data.resp td { display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0; }
  table.data.resp td.mcell { grid-column: 1 / -1; display: block; font-size: 13.5px; }
  table.data.resp td.mcell::before { display: none; }
  table.data.resp td[data-label]::before {
    content: attr(data-label); color: var(--muted); font-size: 10.5px; letter-spacing: .07em;
    text-transform: uppercase; font-weight: 700; margin-right: 8px;
  }
  table.data.resp td.scell { grid-column: 1 / -1; margin-top: 4px; }
  table.data.resp td.scell .btn-sm { width: 100%; padding: 9px; }

  /* trade history: drop secondary columns rather than scroll */
  table.data.trades { min-width: 0; font-size: 12px; }
  table.data.trades th, table.data.trades td { padding: 10px 8px; }
  table.data.trades th:nth-child(3), table.data.trades td:nth-child(3),
  table.data.trades th:nth-child(6), table.data.trades td:nth-child(6) { display: none; }
  table.data.trades td:first-child { white-space: nowrap; }
}

/* ============================== sponsored leagues ============================== */

.sponsor-band {
  display: grid; grid-template-columns: 1fr auto auto; gap: 6px 24px; align-items: center;
  padding: 16px 22px 18px; margin: 10px 0 6px;
  border: 1px solid color-mix(in srgb, var(--accent, #00b874) 30%, var(--line));
  border-radius: var(--r-m);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--accent, #00b874) 13%, var(--card)) 0%, var(--card) 58%);
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.sponsor-band:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--accent, #00b874) 55%, var(--line)); }
.sb-label {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700;
  color: color-mix(in srgb, var(--accent, #00b874) 62%, var(--ink));
}
.sb-label .dot-live { background: var(--accent, #00b874); }
.sb-main { min-width: 0; }
.sb-brand {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent, #00b874) 62%, var(--ink)); margin-bottom: 3px;
}
.sb-main h3 { font-size: 17px; letter-spacing: -.025em; margin-bottom: 3px; }
.sb-main p {
  font-size: 12.5px; color: var(--muted); max-width: 62ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sb-prize { text-align: right; padding-right: 8px; border-right: 1px solid var(--line); }
.sb-prize span { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sb-prize b { font-family: var(--mono); font-size: 19px; letter-spacing: -.03em; }
.sb-cta {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700;
  padding: 10px 15px; border-radius: 10px;
}

/* leagues index */
.lg-head { padding: 40px 0 26px; max-width: 660px; }
.lg-head h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.04em; line-height: 1.05; }
.lg-head .lede { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.6; }

.lg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lg-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--card); box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.lg-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent, #00b874); opacity: .85; }
.lg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: var(--line-2); }
.lg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lg-sponsored { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.lg-brand { font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--accent, #00b874) 45%, var(--ink)); }
.lg-card h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.025em; }
.lg-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.lg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lg-prize { font-size: 12px; color: var(--muted); }
.lg-prize b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.lg-meta { font-size: 11px; color: var(--muted); }
.lg-go { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }

.lg-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 44px 0 24px; }
.lg-sponsor-note {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 18px 22px; margin: 10px 0 50px;
  border: 1px dashed var(--line-2); border-radius: var(--r-m);
  font-size: 13.5px; color: var(--ink-2);
}
.lg-sponsor-note a { color: var(--accent-ink); font-weight: 600; }

/* league detail */
.lg-hero {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  padding: 30px 32px; border-radius: var(--r-l); overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent, #00b874) 55%, #000) 0%, rgba(8, 12, 18, .96) 55%, #070b12 100%);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--shadow-l);
}
.lg-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(90% 90% at 80% 0%, #000 10%, transparent 70%);
}
.lg-hero-main { position: relative; z-index: 1; }
.lg-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-sponsored { color: #8ff3cb; font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.lg-hero-brand {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  padding: 4px 9px; border-radius: 6px;
}
.lg-hero h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.04em; line-height: 1.06; max-width: 20ch; }
.lg-hero p { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.72); max-width: 54ch; }
.lg-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lg-pill {
  font-size: 11.5px; color: rgba(255,255,255,.82); padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12);
  font-family: var(--sans); font-weight: 500;
}
.lg-pill-free { color: #04110c; background: #7df0c2; border-color: transparent; font-weight: 700; }
.lg-hero-prize {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; text-align: center;
  padding: 18px 24px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.lg-prize-label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; }
.lg-prize-value { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.04em; color: #fff; }
.lg-prize-by { font-size: 10.5px; color: rgba(255,255,255,.5); }

.lg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 24px 0 50px; }
.lg-main { min-width: 0; }
.lg-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); }

.lg-form-card { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-s); padding: 22px; }
.lg-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.lg-form-head h2 { font-size: 19px; letter-spacing: -.03em; }

.form-error { background: var(--no-bg); color: var(--no); border-radius: 9px; padding: 10px 13px; font-size: 13px; margin-bottom: 16px; }
.lg-closed { background: var(--bg-soft); border-radius: 9px; padding: 16px; color: var(--ink-2); font-size: 14px; }

.lg-form { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pick-list { display: grid; gap: 6px; }
.pick-group { border: 0; padding: 0; margin: 0 0 18px; }
.pick-group legend {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; margin-bottom: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
}
.pick-num {
  flex: none; width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent, #00b874) 16%, var(--card));
  color: color-mix(in srgb, var(--accent, #00b874) 70%, var(--ink));
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.pick-market { display: block; }
.pick-link { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.pick-link:hover { color: var(--accent-ink); }

.pick-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 12.8px; background: var(--card);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.pick-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-2); background: var(--card);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.pick:has(input:checked) .pick-dot { border-color: var(--accent, #00b874); background: var(--accent, #00b874); box-shadow: inset 0 0 0 3px var(--card); }
.pick:hover .pick-body { border-color: var(--line-2); background: var(--bg-soft); }
.pick:has(input:checked) .pick-body {
  border-color: color-mix(in srgb, var(--accent, #00b874) 60%, var(--line));
  background: color-mix(in srgb, var(--accent, #00b874) 9%, var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #00b874) 35%, transparent);
}
.pick input:focus-visible + .pick-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-label { color: var(--ink-2); flex: 1; }
.pick:has(input:checked) .pick-label { color: var(--ink); font-weight: 600; }
.pick-price { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink); }

.lg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field input {
  border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 10px 11px; font-size: 14px; outline: none; width: 100%;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #00b874) 15%, transparent); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--accent, #00b874); width: 15px; height: 15px; flex: none; }

.lg-success { border: 1px solid color-mix(in srgb, var(--accent, #00b874) 35%, var(--line)); border-radius: var(--r-m); background: color-mix(in srgb, var(--accent, #00b874) 6%, var(--card)); padding: 30px; }
.lg-success h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 8px; }
.lg-success p { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.lgs-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent, #00b874); color: #04110c; font-size: 18px; font-weight: 800; margin-bottom: 14px;
}
.lgs-note { margin-top: 16px; font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; }

.prize-card {
  border-radius: var(--r-m); padding: 20px; color: #fff;
  background: radial-gradient(130% 130% at 100% 0%, color-mix(in srgb, var(--accent, #00b874) 60%, #000) 0%, #0a0f1a 62%);
  border: 1px solid rgba(255,255,255,.12);
}
.prize-card .lg-prize-label { color: rgba(255,255,255,.55); }
.prize-card h3 { font-size: 20px; letter-spacing: -.03em; margin: 6px 0 6px; }
.prize-card p { font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.72); }
.prize-funded { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; }

.sponsor-body { display: flex; gap: 12px; align-items: center; padding: 16px 18px 10px; }
.sponsor-mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--accent, #00b874) 18%, var(--card));
  color: color-mix(in srgb, var(--accent, #00b874) 70%, var(--ink));
  font-weight: 800; font-size: 18px;
}
.sponsor-name { font-weight: 700; font-size: 14px; }
.sponsor-note { padding: 0 18px 16px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.checklist { display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 20px; font-size: 12.5px; color: var(--ink-2); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

.steps { counter-reset: step; display: grid; gap: 10px; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 26px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-sunk); color: var(--ink-2);
  font-family: var(--mono); font-size: 10px; font-weight: 600;
}

.lg-demo-note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }

.market-sponsor {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent, #00b874) 30%, var(--line));
  background: color-mix(in srgb, var(--accent, #00b874) 7%, var(--card));
  font-size: 12.5px; color: var(--ink-2);
}
.market-sponsor:hover { border-color: color-mix(in srgb, var(--accent, #00b874) 55%, var(--line)); }
.ms-brand { font-weight: 700; color: color-mix(in srgb, var(--accent, #00b874) 68%, var(--ink)); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ms-text strong { color: var(--ink); }
.ms-go { margin-left: auto; font-weight: 600; color: var(--accent-ink); }

/* confirmation */
.confirm-wrap { max-width: 620px; margin: 40px auto 60px; }
.confirm-card { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-m); padding: 32px; }
.confirm-card .lgs-icon { margin-bottom: 16px; }
.confirm-card h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; margin: 8px 0 10px; }
.confirm-lede { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.confirm-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.confirm-tag {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
}
.confirm-sub { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 24px 0 0; }
.confirm-picks { width: 100%; border-collapse: collapse; margin: 22px 0 14px; }
.confirm-picks td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }
.confirm-picks td:last-child { text-align: right; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.confirm-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.confirm-foot a { text-decoration: underline; }

@media (max-width: 1080px) {
  .lg-grid { grid-template-columns: 1fr 1fr; }
  .lg-layout { grid-template-columns: 1fr; }
  .lg-side { position: static; grid-template-columns: 1fr 1fr; }
  .lg-hero { grid-template-columns: 1fr; }
  .lg-hero-prize { text-align: left; width: max-content; }
}

@media (max-width: 720px) {
  .sponsor-band { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
  .sb-main p { white-space: normal; }
  .sb-prize { text-align: left; border-right: 0; padding-right: 0; }
  .sb-cta { justify-content: center; }
  .lg-grid, .lg-how { grid-template-columns: 1fr; }
  .lg-head { padding: 28px 0 18px; }
  .lg-hero { padding: 22px; }
  .lg-side { grid-template-columns: 1fr; }
  .lg-form-card, .lg-success { padding: 18px; }
  .lg-fields { grid-template-columns: 1fr; }
  .confirm-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
