/* Launch Window — always dark. Chart series colours are the validated dark-surface steps. */
:root {
  color-scheme: dark;
  --page: #07080b;
  --surface: #0f1116;
  --surface-2: #151821;
  --surface-3: #1d212b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #f5f6f8;
  --ink-2: #b6bbc6;
  --ink-3: #7b818d;
  --grid: #20242d;
  --axis: #2c313b;
  --ring: var(--line);
  --brand-a: #38bdf8;
  --brand-b: #6366f1;
  --series-1: #3987e5;
  --series-2: #d95926;
  --muted-fill: #2e333e;
  --good: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --good-ink: #4ade80;
  --warn-ink: #fbbf24;
  --bad-ink: #f87171;
  --seq-1: #10264a; --seq-2: #163a72; --seq-3: #1f5bb0; --seq-4: #3987e5; --seq-5: #6da7ec; --seq-6: #9ec5f4; --seq-7: #d6e8fd;
  --status: #64748b;
  --status-ink: var(--ink);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --top-h: 68px;
}

* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; }
b, strong { font-weight: 650; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
a { color: inherit; }
.muted { color: var(--ink-3); }
.sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
.meta { margin: 14px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.mono { font-variant-numeric: tabular-nums; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(56, 189, 248, 0.13), transparent 60%),
    radial-gradient(800px 520px at 100% -5%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(56, 189, 248, 0.05), transparent 60%);
}

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 8, 11, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1200px; height: var(--top-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.logo { width: 34px; height: 34px; filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-tag { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: 10px; white-space: nowrap; transition: color .15s, background .15s; }
.tabs a:hover { color: var(--ink); background: var(--surface-3); }
.t-short { display: none; }
.tabs a[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.32)); box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.5), 0 6px 20px rgba(99, 102, 241, 0.25); }
.top-right { display: flex; align-items: center; gap: 14px; flex: none; }
.clock { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); }
.sync { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sync[data-state="ok"] .sync-dot { background: var(--good); animation: pulse 2s infinite; }
.sync[data-state="catching"] .sync-dot { background: var(--warn); }
.sync[data-state="error"] .sync-dot { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 26px 24px 40px; }
.panel { display: grid; gap: 18px; animation: fadein .25s ease; }
.panel[hidden] { display: none; }
@keyframes fadein { from { transform: translateY(6px); } to { transform: none; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.card-title { font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.card-title + .sub { margin-bottom: 12px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 2px; }
.panel-title { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
.row-title { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 10px 0 -4px; letter-spacing: -0.02em; }
.h-sub { color: var(--ink-3); font-family: var(--body); font-weight: 500; font-size: 13px; margin-left: 6px; letter-spacing: 0; }
.fineprint { color: var(--ink-3); font-size: 13px; margin: 0; text-align: center; }
.foot { max-width: 1200px; margin: 0 auto; padding: 8px 24px 40px; color: var(--ink-3); font-size: 12.5px; text-align: center; }

/* ---------- hero: launch score ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 34px 38px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--status) 9%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--status) 40%, transparent);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--status) 60%, transparent);
}
.hero[data-state="good"] { --status: var(--good); --status-ink: var(--good-ink); }
.hero[data-state="okay"] { --status: var(--warn); --status-ink: var(--warn-ink); }
.hero[data-state="wait"] { --status: var(--bad); --status-ink: var(--bad-ink); }
.hero-glow { position: absolute; width: 520px; height: 520px; left: -140px; top: -170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--status) 32%, transparent), transparent 65%); pointer-events: none; }
.score { position: relative; width: 250px; height: 250px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 14; }
.ring-fill { fill: none; stroke: var(--status); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 540.35; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1), stroke .4s; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--status) 70%, transparent)); }
.score-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-num { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: 1; letter-spacing: -0.04em; }
.score-num small { font-size: 26px; color: var(--ink-3); font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.score-label { margin-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--status-ink); }
.hero-body { position: relative; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 0 var(--status); animation: pulse-s 2s infinite; }
@keyframes pulse-s { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.verdict { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-top: 10px; color: var(--status-ink); }
.verdict-why { margin: 12px 0 0; font-size: 19px; color: var(--ink); max-width: 44ch; }
.segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 22px; max-width: 520px; }
.segs i { height: 12px; border-radius: 4px; background: var(--surface-3); }
.segs i.on { background: var(--status); }
.segs i.cur { box-shadow: 0 0 14px color-mix(in srgb, var(--status) 80%, transparent); }
.seg-scale { display: flex; justify-content: space-between; max-width: 520px; margin-top: 7px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.chip-strong { border-color: rgba(129, 140, 248, 0.45); background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.14)); }
.chip-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.chip-v { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- chances ---------- */
.chances { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.chance { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; min-width: 0; overflow: hidden; }
.chance-hero { border-color: rgba(129, 140, 248, 0.45); background: radial-gradient(420px 220px at 100% 0%, rgba(99, 102, 241, 0.2), transparent 70%), var(--surface); box-shadow: 0 24px 60px -36px rgba(99, 102, 241, 0.7); }
.chance-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chance-k { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 3px 8px; border-radius: 999px; background: var(--surface-3); white-space: nowrap; }
.chance-hero .badge { color: #c7d2fe; background: rgba(99, 102, 241, 0.25); }
.chance-v { font-family: var(--display); font-size: 54px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-top: 10px; }
.chance-hero .chance-v { background: linear-gradient(135deg, #7dd3fc, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chance-one { font-size: 15px; color: var(--ink-2); font-weight: 550; margin-top: 2px; }
.chance-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.mini-bars { display: grid; gap: 7px; margin-top: 16px; }
.mb-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 12.5px; }
.mb-k { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mb-track i { display: block; height: 100%; border-radius: 4px; background: var(--series-1); transition: width .6s ease; }
.mb-row[data-kind="now"] .mb-track i { background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.mb-row[data-kind="avg"] .mb-track i { background: var(--ink-3); }
.mb-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.mb-row[data-est="1"] .mb-v::after { content: "*"; color: var(--ink-3); }

/* ---------- recs + pulse ---------- */
.recs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.recs li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 11px; align-items: start; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.recs li.muted { display: block; }
.recs svg { width: 22px; height: 22px; margin-top: 0; }
.recs b { color: var(--ink); }
.ic-fill { fill: var(--ink-3); }
.ic-mark { fill: none; stroke: #0b0b0b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.recs [data-kind="good"] .ic-fill { fill: var(--good); }
.recs [data-kind="okay"] .ic-fill { fill: var(--warn); }
.recs [data-kind="wait"] .ic-fill { fill: var(--bad); }
.recs [data-kind="info"] .ic-fill { fill: var(--surface-3); }
.recs [data-kind="info"] .ic-mark { stroke: var(--ink-2); }
.pulse { display: grid; gap: 0; margin-top: 8px; }
.pulse-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k v" "s v"; column-gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.pulse-item:first-child { border-top: none; padding-top: 4px; }
.pulse-k { grid-area: k; font-size: 14.5px; font-weight: 600; }
.pulse-s { grid-area: s; font-size: 13px; color: var(--ink-3); }
.pulse-v { grid-area: v; align-self: center; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-align: right; white-space: nowrap; }

/* ---------- pills (tracker) ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; flex: none; font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.pill svg { width: 18px; height: 18px; }
.pill[data-state="good"] { color: var(--good-ink); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.pill[data-state="good"] .ic-fill { fill: var(--good); }
.pill[data-state="okay"] { color: var(--warn-ink); }
.pill[data-state="okay"] .ic-fill { fill: var(--warn); }
.pill[data-state="wait"] { color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.pill[data-state="wait"] .ic-fill { fill: var(--bad); }
.pill[data-state="learn"] .ic-fill, .pill[data-state="flat"] .ic-fill { fill: var(--surface-3); }
.pill[data-state="learn"] .ic-mark, .pill[data-state="flat"] .ic-mark { stroke: var(--ink-2); }

/* ---------- live coins ---------- */
.big-line { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; max-width: 60ch; }
.big-line .dim { color: var(--ink-2); font-family: var(--body); font-size: 16px; font-weight: 450; letter-spacing: 0; }
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.stat-label { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.stat-v { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 0; }
.stat-sub { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.coins { list-style: none; margin: 8px 0 0; padding: 0; }
.coins li { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.coins li:first-child { border-top: none; }
.coins li.muted { display: block; }
.coins a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15px; }
.coins a:hover { color: #a5b4fc; }
.c-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sym { color: var(--ink-3); font-weight: 500; font-size: 13.5px; }
.c-meta { color: var(--ink-3); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 1px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); letter-spacing: 0.02em; }
.tag.grad { color: var(--good-ink); background: color-mix(in srgb, var(--good) 16%, transparent); }
.tag.live { color: var(--bad-ink); background: color-mix(in srgb, var(--bad) 16%, transparent); }
.c-right { text-align: right; font-variant-numeric: tabular-nums; }
.c-mc { font-family: var(--display); font-weight: 700; font-size: 16px; }
.c-sub { color: var(--ink-3); font-size: 12px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); margin: 5px 0 3px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.meter.done i { background: var(--good); }
.empty-chart { color: var(--ink-3); font-size: 14px; padding: 14px 0; }

details.more > summary { cursor: pointer; font-weight: 650; font-size: 15px; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 9px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary:hover { color: var(--ink); }
details.more .sub { margin: 10px 0 8px; }

/* ---------- charts ---------- */
.chart { position: relative; width: 100%; margin-top: 8px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .base-line { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart .ref-line { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.chart .now-line { stroke: var(--ink); stroke-width: 1; shape-rendering: crispEdges; }
.chart text { fill: var(--ink-3); font-size: 12px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.chart text.lbl { fill: var(--ink-2); }
.chart text.strong { fill: var(--ink); font-weight: 650; }
.chart text.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.chart .bar { transition: opacity .12s; }
.chart .s1 { fill: var(--series-1); }
.chart .s2 { fill: var(--series-2); }
.chart .dim { fill: var(--muted-fill); }
.chart .bar.prov { opacity: .45; }
.chart .hit { fill: transparent; outline: none; }
.chart .hit:focus-visible { stroke: var(--ink); stroke-width: 1.5; }
.chart g.is-hover .bar { opacity: .75; }
.chart .bracket { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.chart .marker { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.chart .cell-now { fill: none; stroke: #fff; stroke-width: 2; }
.chart g.is-hover .cell { opacity: .8; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; margin: 6px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--series-1); display: inline-block; }
.lg-tick { width: 14px; height: 2px; border-radius: 1px; background: var(--ink); display: inline-block; }
.scale { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink-2); font-size: 13px; flex-wrap: wrap; }
.scale .sw { display: inline-flex; gap: 2px; }
.scale .sw i { display: block; width: 26px; height: 10px; border-radius: 2px; }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 30; pointer-events: none; min-width: 170px; max-width: 290px; background: #1b1f29; color: var(--ink); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); font-size: 13px; }
.tip .t-title { color: var(--ink-2); font-size: 12px; margin-bottom: 4px; }
.tip .t-row { display: flex; align-items: baseline; gap: 8px; }
.tip .t-val { font-weight: 700; font-size: 15px; }
.tip .t-key { width: 10px; height: 2px; border-radius: 1px; flex: none; align-self: center; }
.tip .t-sub { color: var(--ink-2); }

/* ---------- latest graduations ---------- */
.recent { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.recent li.muted { grid-column: 1 / -1; border-top: none; }
.recent a { color: var(--ink); text-decoration: none; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.recent a:hover { color: #a5b4fc; }
.recent .r-sym { color: var(--ink-3); font-weight: 500; }
.recent .r-meta { color: var(--ink-3); font-size: 13px; }
.recent .r-right { text-align: right; color: var(--ink-2); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-2); font-weight: 650; }
.num { text-align: right; }
tr.is-best td { font-weight: 700; color: var(--ink); }
tr.is-now td:first-child::after { content: " · now"; color: var(--ink-3); font-weight: 400; }

/* ---------- how it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.how h3 { font-family: var(--display); font-size: 18px; margin: 12px 0 6px; }
.how p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.how-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.6); }
.plain { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 8px; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; color: #fff;
  padding: 12px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 10px 28px -10px rgba(99, 102, 241, 0.7); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: var(--bad-ink); }

/* ---------- time zone + account ---------- */
.tz { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.tz button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 650; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.tz button:hover { color: var(--ink); }
.tz button[aria-pressed="true"] { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.45); }
.acct { display: inline-flex; align-items: center; gap: 8px; }
.acct-w { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- sign-in page ---------- */
.login-body { display: grid; min-height: 100vh; }
.login { display: grid; place-items: center; padding: 32px 16px; max-width: none; }
.login-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; padding: 36px 30px 28px; text-align: center; box-shadow: 0 40px 100px -50px rgba(99, 102, 241, 0.8); }
.login-logo { width: 58px; height: 58px; filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.55)); }
.login-title { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; }
.login-sub { color: var(--ink-2); margin: 8px 0 24px; }
.wallets { display: grid; gap: 10px; }
.wallet-btn { width: 100%; padding: 14px 18px; font-size: 16px; }
.login-open p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.open-links { display: grid; gap: 10px; }
.login-msg { min-height: 22px; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.login-msg[data-kind="err"] { color: var(--bad-ink); }
.login-msg[data-kind="ok"] { color: var(--good-ink); }
.denied { margin-top: 6px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); text-align: left; }
.denied p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.denied b { color: var(--warn-ink); }
.addr-row { display: flex; gap: 8px; align-items: center; }
.addr-row code, .access-list code { font-size: 12.5px; word-break: break-all; background: var(--surface-2); padding: 6px 8px; border-radius: 8px; color: var(--ink); flex: 1; }
.login-fine { margin: 22px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- access tab ---------- */
.add-form { display: grid; gap: 14px; margin-top: 12px; }
.add-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.add-form input { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; outline: none; }
.add-form input:focus { border-color: rgba(129, 140, 248, 0.7); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.add-form .btn { justify-self: start; }
.form-msg { margin: 0; font-size: 14px; color: var(--ink-2); min-height: 20px; }
.form-msg[data-kind="ok"] { color: var(--good-ink); }
.form-msg[data-kind="err"] { color: var(--bad-ink); }
.access-list { list-style: none; margin: 10px 0 0; padding: 0; }
.access-list li { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.access-list li:first-child { border-top: none; }
.access-list li > div { min-width: 0; flex: 1; display: grid; gap: 4px; }
.access-list code { display: block; }
.acc-meta { font-size: 12.5px; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1440px) {
  .acct-w, .clock { display: none; }
}
@media (max-width: 1220px) {
  #syncText { display: none; }
  .sync { padding: 7px; }
}
@media (max-width: 1080px) {
  .chances { grid-template-columns: 1fr 1fr; }
  .chance-hero { grid-column: 1 / -1; }
  .how-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  :root { --top-h: 112px; }
  .top-inner { flex-wrap: wrap; height: auto; padding: 12px 16px 10px; gap: 10px 12px; }
  .tabs { order: 3; flex-basis: 100%; margin: 0; flex: 1 1 100%; }
  .acct-w { display: inline; }
  #syncText { display: inline; }
}
@media (max-width: 860px) {
  .tabs a { flex: 1; text-align: center; padding: 8px 10px; }
  .top-right { margin-left: auto; }
  main { padding: 18px 16px 32px; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 20px; gap: 18px; }
  .score { width: 200px; height: 200px; }
  .score-num { font-size: 70px; }
  .hero-body { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { display: block; }
  .eyebrow .live-dot { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; }
  .verdict { font-size: 42px; }
  .verdict-why { font-size: 17px; }
  .segs, .seg-scale { width: 100%; }
  .chips { justify-content: center; }
  .duo, .mini { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 1fr 1fr; }
  .recent { grid-template-columns: 1fr; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .panel-title { font-size: 28px; }
}
@media (max-width: 560px) {
  :root { --top-h: 104px; }
  .brand-tag { display: none; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .brand-name { font-size: 16px; }
  .logo { width: 30px; height: 30px; }
  .sync { display: none; }
  .tz button { padding: 5px 8px; font-size: 12px; }
  .acct .btn-sm { padding: 5px 9px; font-size: 12px; }
  .sync-dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
  .eyebrow { font-size: 11.5px; }
  .tabs a { font-size: 13px; padding: 8px 6px; }
  .chances { grid-template-columns: 1fr; }
  .chance-v { font-size: 46px; }
  .card { padding: 18px 16px; }
  .chance { padding: 20px 16px 18px; }
  .verdict { font-size: 36px; }
  .how-grid { grid-template-columns: 1fr; }
  .coins li { grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; }
  .stat-v { font-size: 26px; }
  .big-line { font-size: 20px; }
  .pulse-v { font-size: 22px; }
}
