/* TRENCHFIRM. The UseAgent shell (usepaid dark, pons cards), Geist throughout. */
:root {
  --bg: oklch(0.145 0 0);
  --rail: oklch(0.155 0 0);
  --surface: oklch(0.185 0.002 270);
  --surface-2: oklch(0.225 0.003 270);
  --surface-3: oklch(0.27 0.004 270);
  --line: oklch(1 0 0 / 0.08);
  --line-2: oklch(1 0 0 / 0.14);
  --ink: oklch(0.985 0 0);
  --ink-2: oklch(0.82 0 0);
  --ink-3: oklch(0.67 0 0);
  --cta: oklch(0.985 0 0);
  --cta-ink: oklch(0.145 0 0);
  --live: oklch(0.80 0.17 152);
  --soon: oklch(0.83 0.14 78);
  --up: oklch(0.78 0.17 152);
  --down: oklch(0.70 0.19 25);
  --gold: oklch(0.84 0.13 85);
  --silver: oklch(0.82 0.01 260);
  --bronze: oklch(0.72 0.11 55);
  --section: oklch(0.165 0.002 270);
  --shade: oklch(0 0 0 / 0.55);
  --r-card: 16px;
  --r-sec: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --z-sticky: 20; --z-rail: 30; --z-menu: 40; --z-modal: 50; --z-toast: 60;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: oklch(0.972 0 0);
  --rail: oklch(0.985 0 0);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.955 0 0);
  --surface-3: oklch(0.92 0 0);
  --line: oklch(0 0 0 / 0.08);
  --line-2: oklch(0 0 0 / 0.14);
  --ink: oklch(0.17 0 0);
  --ink-2: oklch(0.36 0 0);
  --ink-3: oklch(0.47 0 0);
  --cta: oklch(0.17 0 0);
  --cta-ink: oklch(0.985 0 0);
  --live: oklch(0.58 0.16 152);
  --soon: oklch(0.60 0.14 70);
  --up: oklch(0.55 0.16 152);
  --down: oklch(0.56 0.2 25);
  --gold: oklch(0.66 0.14 80);
  --silver: oklch(0.55 0.01 260);
  --bronze: oklch(0.56 0.11 50);
  --section: oklch(0.945 0 0);
  --shade: oklch(0 0 0 / 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--bg); }
.up { color: var(--up); } .down { color: var(--down); }

/* scrollbars, themed */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ------------------------------------------------------------ shell */
.rail { position: fixed; inset: 0 auto 0 0; width: 64px; background: var(--rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; z-index: var(--z-rail); }
/* the logo is the supplied artwork on its own black ground, so it stays a black tile in both themes */
.rail .logo { width: 40px; height: 40px; border-radius: 11px; background: #000; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 0 0 1px var(--line-2); transition: transform .2s var(--ease); }
.rail .logo img { width: 100%; height: 100%; }
.rail .logo:hover { transform: scale(1.05); }
.rail a.ri { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); position: relative;
  transition: background .18s var(--ease), color .18s var(--ease); }
.rail a.ri:hover { background: var(--surface-2); color: var(--ink); }
.rail a.ri.on { color: var(--ink); background: var(--surface-2); }
.rail a.ri svg { width: 20px; height: 20px; }
.rail a.ri .tip { position: absolute; left: 52px; background: var(--surface-3); color: var(--ink); font-size: 12.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateX(-4px); pointer-events: none;
  transition: opacity .15s, transform .15s var(--ease); }
.rail a.ri:hover .tip { opacity: 1; transform: none; }
.rail .grow { flex: 1; }
.rail .themebtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); }
.rail .themebtn:hover { color: var(--ink); background: var(--surface-2); }
.rail .themebtn svg { width: 17px; height: 17px; }

.main { margin-left: 64px; min-height: 100vh; }
.top { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 10px 24px; height: 60px; }
.top .word { font-weight: 650; letter-spacing: -0.015em; font-size: 16px; display: inline-flex; align-items: center; gap: 9px; flex: none; }
.wmark { width: 30px; height: 30px; border-radius: 8px; background: #000; box-shadow: 0 0 0 1px var(--line-2); }
.top .word .wmark { display: none; }

.top .sp { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px;
  font-weight: 550; font-size: 14px; border: 1px solid var(--line-2); color: var(--ink); background: transparent; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s, transform .12s var(--ease), opacity .15s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.ink { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.btn.ink:hover { background: color-mix(in oklch, var(--cta) 88%, var(--bg)); }
.btn.big { height: 46px; padding: 0 24px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.xbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); flex: none;
  transition: background .18s var(--ease), color .18s; }
.xbtn:hover { background: var(--surface-2); color: var(--ink); }
.xbtn svg { width: 15px; height: 15px; }
.walwrap { position: relative; flex: none; }
.walmenu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
  min-width: 240px; display: none; z-index: var(--z-menu); box-shadow: 0 8px 8px -4px var(--shade); }
.walmenu.open { display: block; }
.walmenu .addr { padding: 8px 10px 4px; font-size: 12px; color: var(--ink-3); word-break: break-all; }
.walmenu .wstate { padding: 0 10px 10px; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.walmenu .wstate b { color: var(--live); font-weight: 550; }
.walmenu button, .walmenu .wm { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; font-size: 14px; }
.walmenu button:hover, .walmenu .wm:hover { background: var(--surface-2); }

.page { padding: 0 32px 80px; max-width: 1400px; margin: 0 auto; }
.page[hidden] { display: none; }

/* ------------------------------------------------------------ hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 560; max-width: 15ch; margin: 0 auto; }
.hero p.sub { color: var(--ink-3); font-size: 17px; line-height: 1.6; max-width: 58ch; margin: 22px auto 0; }
.hero .cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--live) 60%, transparent); } 50% { box-shadow: 0 0 0 4px transparent; } }

/* ------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; min-width: 0; }
.stat > span { font-size: 12.5px; color: var(--ink-3); }
.stat b { display: block; font-size: 22px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b.odo { display: flex; }
.stat small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* odometer */
.odo { display: inline-flex; overflow: hidden; line-height: 1.15; height: 1.15em; vertical-align: bottom; }
.odo .d { display: inline-block; height: 1.15em; overflow: hidden; }
.odo .d > span { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.odo .d > span > span { height: 1.15em; }


/* ------------------------------------------------------------ the band under the hero: coins drift past behind four slanted slices */
.band { position: relative; height: 104px; border-radius: var(--r-sec); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.bdrift { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; opacity: .32; filter: saturate(.7);
  transition: opacity .6s var(--ease), filter .6s var(--ease); }
.band:hover .bdrift { opacity: .5; filter: saturate(1); }
.brow { display: flex; gap: 10px; width: max-content; animation: bslide 110s linear infinite; }
.brow.r2 { animation-duration: 140s; animation-direction: reverse; margin-left: -60px; }
.brow.r3 { animation-duration: 125s; margin-left: -120px; }
.brow span { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 3px; border-radius: 999px; background: var(--surface-2);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.brow img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
@keyframes bslide { to { transform: translateX(-50%); } }
.btint { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 50% 130%, color-mix(in oklch, var(--live) 18%, transparent), transparent 70%),
              linear-gradient(180deg, color-mix(in oklch, var(--surface) 55%, transparent), color-mix(in oklch, var(--surface) 78%, transparent)); }
.bslices { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.bs { position: relative; padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; min-width: 0; transition: background .4s var(--ease); }
.bs:hover { background: color-mix(in oklch, var(--surface) 35%, transparent); }
.bs + .bs::before { content: ""; position: absolute; left: 0; top: -10px; bottom: -10px; width: 1px; background: var(--line-2); transform: skewX(-14deg); }
.bs > span { font-size: 12.5px; color: var(--ink-3); }
.bs > b { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.bs > b.odo { display: flex; }
.bs > small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .band { height: 196px; }
  .bslices { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; }
  .bs { padding: 12px 16px; }
  .bs + .bs::before { display: none; }
  .bs:nth-child(2n) { border-left: 1px solid var(--line-2); }
  .bs:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .bs > b { font-size: 20px; }
  .bdrift { justify-content: space-evenly; }
}


/* buyback and burn line on the home page */
.burn { display: flex; align-items: center; gap: 22px; margin-top: 40px; padding: 18px 22px; border-radius: var(--r-sec); border: 1px solid var(--line);
  background: radial-gradient(70% 140% at 0% 50%, color-mix(in oklch, var(--down) 14%, transparent), transparent 70%), var(--surface); }
.burn .bpct { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; flex: none; }
.burn h2 { font-size: 17px; letter-spacing: -0.01em; }
.burn p { color: var(--ink-3); font-size: 14.5px; margin-top: 2px; }
@media (max-width: 720px) { .burn { gap: 14px; padding: 14px 16px; } .burn .bpct { font-size: 30px; } }

/* ------------------------------------------------------------ sections */
.sec { background: var(--section); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 22px; margin-top: 40px; }
.sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-h h2 { font-size: 22px; letter-spacing: -0.015em; }
.count { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; font-weight: 600; }
.sec-p { color: var(--ink-3); font-size: 14px; margin-top: 6px; max-width: 80ch; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.filters .sp { flex: 1; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center;
  transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface-3); color: var(--ink); }
.minisearch { position: relative; }
.minisearch input { height: 38px; width: 220px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 14px 0 36px;
  font-size: 14px; outline: none; transition: border-color .15s; }
.minisearch input:focus { border-color: var(--ink-3); }
.minisearch input::placeholder { color: var(--ink-3); }
.minisearch svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--ink-3); }

/* ------------------------------------------------------------ challenge cards */
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 18px; }
.chcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s var(--ease), border-color .2s, background .2s; position: relative; }
.chcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.chcard .h { display: flex; align-items: center; gap: 8px; }
.chcard .h .sp { flex: 1; }
.chcard h3 { font-size: 19px; letter-spacing: -0.015em; }
.chcard .when { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { background: color-mix(in oklch, var(--live) 16%, transparent); color: var(--live); }
.pill.live i { animation: beat 1.6s var(--ease) infinite; }
.pill.soon { background: color-mix(in oklch, var(--soon) 18%, transparent); color: var(--soon); }
.pill.kind { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); font-weight: 550; }
.chcard .pool > span, .chcard .cd > span { font-size: 12px; color: var(--ink-3); display: block; }
.chcard .pool b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; display: block; }
.chcard .row { display: flex; gap: 14px; }
.chcard .row > div { flex: 1; min-width: 0; }
.chcard .row b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; display: block; white-space: nowrap; }
.chcard .row > div > span { font-size: 12px; color: var(--ink-3); }
.seatbar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.seatbar i { display: block; height: 100%; background: var(--ink-2); border-radius: inherit; transition: width .6s var(--ease); }
.chcard .acts { display: flex; gap: 8px; }
.chcard .acts .btn { flex: 1; }
.chcard .you { position: absolute; top: 18px; right: 18px; }

/* ------------------------------------------------------------ coin list (home) */
.coinlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; }
.crow .id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--ink-3); overflow: hidden; }
.cav img { width: 100%; height: 100%; object-fit: cover; }
.crow .id b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow .id a { font-size: 12px; color: var(--ink-3); }
.crow .id a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.crow .px { text-align: right; }
.crow .px b { display: block; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.crow .px span { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.crow .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.crow .bar i { display: block; height: 100%; background: var(--up); border-radius: inherit; }
.crow .bar i.neg { background: var(--down); }
.crow .liq { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.paused { display: inline-flex; height: 20px; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); }

/* ------------------------------------------------------------ flow / how */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flow .f { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.flow .f .n { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.flow .f b { display: block; margin: 10px 0 6px; font-size: 16px; }
.flow .f p { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.how { max-width: 860px; margin: 0 auto; }
.how .hero { padding-bottom: 36px; }
.h2 { font-size: 22px; letter-spacing: -0.015em; margin: 48px 0 6px; }
.h2p { color: var(--ink-3); margin-bottom: 16px; max-width: 70ch; }
.note { background: var(--surface-2); border-radius: var(--r-card); padding: 18px; margin-top: 14px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.note b { color: var(--ink); }
.note a { text-decoration: underline; text-underline-offset: 2px; }
.lhead { padding: 44px 0 26px; }
.lhead h1 { font-size: 34px; letter-spacing: -0.02em; }
.lhead p { color: var(--ink-3); margin-top: 8px; max-width: 70ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sec); padding: 20px; min-width: 0; }
.panel + .panel { margin-top: 12px; }
.panel h3 { font-size: 16px; }
.panel .ph { color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
.rules .rr { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rules .rr:last-child { border-bottom: 0; }
.rules .rr span { color: var(--ink-3); }
.rules .rr b { font-weight: 550; text-align: right; }

table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
table.t tr.me td { background: color-mix(in oklch, var(--live) 8%, transparent); }
table.t a.lnk { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-2); }
table.t a.lnk:hover { color: var(--ink); }
.twrap { overflow-x: auto; }
.place { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--surface-3); font-size: 12px; font-weight: 650; }
.place.p1 { background: color-mix(in oklch, var(--gold) 24%, transparent); color: var(--gold); }
.place.p2 { background: color-mix(in oklch, var(--silver) 22%, transparent); color: var(--silver); }
.place.p3 { background: color-mix(in oklch, var(--bronze) 24%, transparent); color: var(--bronze); }
.q { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); margin-right: 6px; vertical-align: 1px; }
.q.ok { background: var(--live); }
.empty { text-align: center; padding: 44px 20px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--ink-3); max-width: 50ch; margin: 8px auto 0; }
.empty .btn { margin-top: 18px; }
.skel { background: var(--surface); border-radius: var(--r-card); position: relative; overflow: hidden; border: 1px solid var(--line); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, oklch(1 0 0 / 0.04) 50%, transparent 80%);
  animation: sh 1.4s linear infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ------------------------------------------------------------ one challenge */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: 13.5px; margin: 22px 0 16px; }
.back:hover { color: var(--ink); }
.chead { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.chead h1 { font-size: 30px; letter-spacing: -0.02em; }
.chead .meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.chead .sp { flex: 1; }
.tgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.tgrid > .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.clist { padding: 8px; position: sticky; top: 72px; }
.clist .minisearch input { width: 100%; height: 36px; }
.clist .minisearch svg { top: 10px; }
.clist .items { max-height: calc(100vh - 170px); overflow: auto; margin-top: 8px; display: flex; flex-direction: column; gap: 1px; }
.citem { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; text-align: left; width: 100%; }
.citem:hover { background: var(--surface-2); }
.citem.on { background: var(--surface-3); }
.citem .cav { width: 28px; height: 28px; font-size: 10px; }
.citem .nm { flex: 1; min-width: 0; }
.citem .nm b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem .nm span { display: block; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.citem .ch { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.citem .held { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.cpanel { padding: 0; overflow: hidden; }
.cpanel .ctop { display: flex; align-items: center; gap: 12px; padding: 16px 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cpanel .ctop .cav { width: 40px; height: 40px; }
.cpanel .ctop b { font-size: 18px; font-weight: 600; }
.cpanel .ctop .pxl { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cpanel .ctop small { color: var(--ink-3); font-size: 12.5px; display: block; }
.cpanel .ctop .sp { flex: 1; }
.chart { height: 400px; position: relative; }
.chart .ce { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; text-align: center; padding: 20px; }
.chart-host { position: absolute; inset: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; }
.tabs button { height: 44px; padding: 0 12px; font-size: 14px; font-weight: 550; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .c { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.tabbody { padding: 6px 12px 10px; }
.tabbody .e { color: var(--ink-3); font-size: 14px; padding: 26px 8px; text-align: center; }

/* order panel */
.order .seg2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin: 14px 0; }
.order .seg2 button { height: 36px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-3); }
.order .seg2 button.on.buy { background: color-mix(in oklch, var(--up) 20%, transparent); color: var(--up); }
.order .seg2 button.on.sell { background: color-mix(in oklch, var(--down) 18%, transparent); color: var(--down); }
.order .which { display: flex; align-items: center; gap: 10px; }
.order .which .cav { width: 32px; height: 32px; }
.order .which b { font-size: 16px; }
.order .which small { display: block; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; }
.field label small { color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.inp { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 13px; font-size: 15px; outline: none;
  transition: border-color .15s; width: 100%; font-variant-numeric: tabular-nums; }
.inp:focus { border-color: var(--ink-3); }
.inp::placeholder { color: var(--ink-3); }
.pwrap { position: relative; }
.pwrap > span { position: absolute; left: 13px; top: 12px; color: var(--ink-3); font-size: 15px; }
.pwrap .inp { padding-left: 28px; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quick button:hover { background: var(--surface-2); color: var(--ink); }
.quick button.on { background: var(--surface-3); color: var(--ink); border-color: var(--surface-3); }
.est { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 14px; min-height: 1.2em; }
.msg { color: var(--down); font-size: 13.5px; margin-top: 10px; min-height: 1em; }
.msg.ok { color: var(--up); }
.steps { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.steps div i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.steps div.on { color: var(--ink); } .steps div.on i { border-color: var(--ink); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps div.ok { color: var(--ink-2); } .steps div.ok i { background: var(--up); border-color: var(--up); }
.steps div.bad { color: var(--down); } .steps div.bad i { background: var(--down); border-color: var(--down); }
@keyframes spin { to { transform: rotate(360deg); } }

/* account card */
.acct .eq { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 6px; }
.acct .ret { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.acct dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.acct dt { font-size: 12px; color: var(--ink-3); }
.acct dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qbar { display: flex; gap: 4px; margin-top: 14px; }
.qbar i { flex: 1; height: 5px; border-radius: 4px; background: var(--surface-3); }
.qbar i.on { background: var(--live); }
.qnote { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.prz .rr b { font-variant-numeric: tabular-nums; }
.join .fee { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.join .fee small { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.join ul { margin: 14px 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.join ul li { display: flex; gap: 9px; }
.join ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-top: 8px; flex: none; }
.done { margin-top: 14px; background: var(--surface-2); border-radius: 14px; padding: 14px; font-size: 13.5px; color: var(--ink-2); }
.done b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.lb { margin-top: 12px; }
.lb .sec-h { margin-bottom: 6px; }
.tape-list .tr { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tape-list .tr:last-child { border-bottom: 0; }
.tape-list .tr .sd { font-weight: 650; font-size: 11.5px; width: 34px; }
.tape-list .tr .w { color: var(--ink-3); }
.tape-list .tr .sp { flex: 1; }
.tape-list .tr .t { color: var(--ink-3); font-size: 12px; min-width: 52px; text-align: right; }
.banner { background: var(--surface-2); border-radius: var(--r-card); padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.banner b { color: var(--ink); }

/* results */
.res { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.res:last-child { border-bottom: 0; }
.res .nm { min-width: 180px; }
.res .nm b { display: block; font-weight: 600; }
.res .nm span { font-size: 12.5px; color: var(--ink-3); }
.res .ws { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.res .ws span { display: inline-flex; gap: 6px; align-items: center; }


/* ------------------------------------------------------------ plans, accounts, objectives, docs */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s; min-width: 0; }
.plan:hover { transform: translateY(-2px); border-color: var(--line-2); }
.plan .sz { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan > small { color: var(--ink-3); font-size: 12.5px; }
.plan .price { font-size: 20px; font-weight: 600; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.plan .price small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.plan .rules { flex: 1; margin-bottom: 16px; }
.plan .rules .rr { font-size: 13px; padding: 8px 0; }
.pill.bad { background: color-mix(in oklch, var(--down) 16%, transparent); color: var(--down); }
.pill.kind.funded { border-color: color-mix(in oklch, var(--gold) 50%, transparent); color: var(--gold); }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease), border-color .2s; }
.acard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.acard .h { display: flex; gap: 8px; align-items: center; }
.acard .h .sp { flex: 1; }
.acard .id { font-size: 12px; color: var(--ink-3); }
.acard .lbl { display: block; font-size: 12.5px; color: var(--ink-3); }
.acard .eq { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-right: 8px; font-variant-numeric: tabular-nums; }
.acard .meta { font-size: 13px; color: var(--ink-3); }
.obj { margin-top: 0; }
.ogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.oc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.oc.wide { grid-column: span 2; }
.oc > span { font-size: 12.5px; color: var(--ink-3); }
.oc > b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.oc > b small { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.oc > small { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.oc > small b { color: var(--ink-2); font-weight: 550; }
.oc.ok { border-color: color-mix(in oklch, var(--live) 40%, transparent); }
.oc.bad { border-color: color-mix(in oklch, var(--down) 45%, transparent); }
.oc .btn { align-self: flex-start; }
.obar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin: 4px 0; }
.obar i { display: block; height: 100%; border-radius: inherit; background: var(--live); transition: width .6s var(--ease); }
.oc:not(.ok) .obar i { background: var(--ink-2); }
.obar.bad i, .oc .obar.bad i { background: var(--down); }
.dots { display: flex; gap: 4px; margin: 4px 0; }
.dots i { flex: 1; height: 6px; border-radius: 4px; background: var(--surface-3); }
.dots i.on { background: var(--live); }
.banner.bad { background: color-mix(in oklch, var(--down) 12%, var(--surface)); }
.banner a { text-decoration: underline; text-underline-offset: 2px; }
.lim h3 { font-size: 14px; margin-bottom: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.toc a { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.toc a:hover { background: var(--surface); color: var(--ink); }
.dlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dlist li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.docs .rules { margin-top: 12px; }
.docs .h2 { scroll-margin-top: 80px; }


/* ------------------------------------------------------------ docs */
.docwrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; align-items: start; }
.dside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 100px); overflow: auto; }
.dside a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink-3); }
.dside a span { font-family: var(--mono); font-size: 12px; min-width: 18px; color: var(--ink-3); }
.dside a:hover { background: var(--surface); color: var(--ink); }
.dbody { max-width: 820px; min-width: 0; }
.dsec { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.dsec:last-child { border-bottom: 0; }
.dsec h2 { font-size: 24px; letter-spacing: -0.015em; margin-bottom: 18px; }
.dsec h2 span { color: var(--ink-3); font-weight: 500; }
.dsec .lead { color: var(--ink-2); margin-bottom: 18px; max-width: 70ch; }
.dsec .note { margin: 0 0 18px; }
.rule { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.rule:first-of-type { border-top: 0; }
.rule > div { min-width: 0; }
.rule .rn { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); padding-top: 3px; }
.rule h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }
.rule p { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; max-width: 72ch; }
.rule p + p, .rule ul + p, .rule p + ul { margin-top: 10px; }
.rule ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.rule .ex { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.rule .ex b { color: var(--ink); }
.rule .twrap { margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.rule a { text-decoration: underline; text-underline-offset: 2px; }
.defs { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14.5px; }
.defs dt { font-weight: 600; }
.defs dd { margin: 0; color: var(--ink-2); line-height: 1.6; word-break: break-word; }
@media (max-width: 960px) {
  .docwrap { grid-template-columns: 1fr; gap: 16px; }
  .dside { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
  .dside a { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; }
}
@media (max-width: 720px) {
  .rule { grid-template-columns: 1fr; }
  .defs { grid-template-columns: 1fr; gap: 2px; }
  .defs dd { margin-bottom: 8px; }
}

/* ------------------------------------------------------------ footer, wallet picker, toast */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 32px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot a:hover { color: var(--ink); }
.foot .sp { flex: 1; }
.wpick { position: fixed; inset: 0; background: oklch(0 0 0 / 0.6); display: grid; place-items: center; z-index: var(--z-modal); animation: fi .18s var(--ease); }
.wpick-in { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sec); padding: 22px; width: min(380px, calc(100vw - 32px)); animation: pop .22s var(--ease); }
.wpick h3 { font-size: 18px; }
.wpick p { color: var(--ink-3); font-size: 13.5px; margin: 4px 0 16px; }
.wpick .list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; font-weight: 550; }
.wpick .list button:hover { background: var(--surface-2); }
.wpick .list img { width: 30px; height: 30px; border-radius: 8px; }
.wpick .nw { color: var(--ink-3); font-size: 14px; }
.wpick .nw a { color: var(--ink); text-decoration: underline; }
@keyframes fi { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--cta); color: var(--cta-ink); padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550; z-index: var(--z-toast); animation: pop .2s var(--ease); max-width: calc(100vw - 32px); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .tgrid { grid-template-columns: minmax(0, 1fr) 340px; }
  .tgrid > .col.left { grid-column: 1 / -1; }
  .clist { position: static; }
  .clist .items { max-height: none; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .citem { width: auto; flex: none; border: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(3, 1fr); }
  .ogrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .tgrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rail { inset: auto 0 0 0; width: auto; height: 62px; flex-direction: row; justify-content: space-around; padding: 0 8px;
    border-right: 0; border-top: 1px solid var(--line); gap: 0; padding-bottom: env(safe-area-inset-bottom); }
  .rail .logo, .rail .grow, .rail .themebtn, .rail a.ri .tip { display: none; }
  .main { margin-left: 0; padding-bottom: 70px; }
  .top { padding: 10px 16px; gap: 10px; }
  .top .word > span:last-child { display: none; }
  .top .word .wmark { display: block; }
  .page { padding: 0 16px 40px; }
  .hero { padding: 40px 0 28px; }
  .hero p.sub { font-size: 15.5px; }
  .sec { padding: 14px; margin-top: 28px; }
  .stat b { font-size: 19px; }
  .minisearch input { width: 100%; }
  .filters .minisearch { flex: 1; }
  .chart { height: 320px; }
  .cpanel .ctop .lv { display: none; }
  .coinlist { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .ogrid { grid-template-columns: 1fr; }
  .oc.wide { grid-column: auto; }
  .foot { padding: 20px 16px 90px; }
  .lhead h1 { font-size: 28px; }
  .chead h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
