/* plslend — PulseChain spectrum on a violet-biased near-black. One dark world, on purpose. */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0E0D13; --bg2: #14131B; --surface: #191822; --surface2: #211F2C; --line: #2C2A39; --line2: #3A374A;
  --ink: #F3F1F8; --ink2: #C5C1D3; --muted: #8E899F;
  --cyan: #00EAFF; --blue: #0080FF; --violet: #8000FF; --magenta: #E619E6; --red: #FF0000;
  --spectrum: linear-gradient(90deg, #FF0000, #E619E6 30%, #8000FF 50%, #0080FF 72%, #00EAFF);
  --ok: #3DDC97; --mid: #B7E36B; --warn: #FFB020; --bad: #FF5468;
  --hue: #8000FF;
  --r: 14px; --r-sm: 9px;
  --sans: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
  background-image: radial-gradient(900px 480px at 85% -10%, rgba(128,0,255,.16), transparent 60%), radial-gradient(700px 420px at -5% 5%, rgba(0,128,255,.10), transparent 60%); background-repeat: no-repeat; }
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; } h1, h2, h3, p, dl, dd, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; text-wrap: balance; line-height: 1.12; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: .875em; letter-spacing: -.01em; } .small { font-size: 13px; color: var(--ink2); } .wrap { overflow-wrap: anywhere; } .muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── top bar ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14,13,19,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mark { width: 30px; height: 30px; }
.word { font-size: 19px; font-weight: 700; letter-spacing: .06em; } .word b { font-weight: 600; background: linear-gradient(90deg, #E619E6, #8000FF 45%, #00C2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.on { color: var(--ink); background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue, var(--muted)); display: inline-block; flex: none; } .dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,151,.18); } .dot.bad { background: var(--bad); }
.top-right { display: flex; align-items: center; gap: 12px; flex: none; }
.net { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); } .net i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); } .net.busy i { animation: blink 1s infinite; } .net.bad { color: var(--bad); } .net.bad i { background: var(--bad); }
@keyframes blink { 50% { opacity: .25; } }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; transition: transform .12s, filter .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { color: #fff; background: linear-gradient(95deg, #C216D9, #7A10FF 48%, #0A84FF); box-shadow: 0 6px 22px -8px rgba(128,0,255,.7), inset 0 1px 0 rgba(255,255,255,.18); } .btn-primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn-ghost { border-color: var(--line2); background: transparent; color: var(--ink); } .btn-ghost:hover { background: var(--surface2); }
.btn-quiet { background: transparent; color: var(--ink2); border-color: transparent; } .btn-quiet:hover:not(:disabled) { color: var(--ink); background: var(--surface2); }
.btn-wallet { background: var(--surface2); border-color: var(--line2); padding: 9px 16px; font-size: 14px; } .btn-wallet:hover { border-color: var(--muted); } .btn-wallet.connected { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.btn-sm { padding: 6px 12px; font-size: 13px; } .wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 500; font-size: inherit; text-decoration: underline; text-decoration-color: rgba(0,234,255,.35); text-underline-offset: 3px; } .link:hover { text-decoration-color: currentColor; }

/* ── layout ── */
body { overflow-x: clip; } /* the page itself never pans sideways */
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px 72px; outline: none; }
.boot { padding: 120px 0; text-align: center; color: var(--muted); }
section + section { margin-top: 56px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 22px; } .sec-h h2 { font-size: 28px; } .sec-h p { color: var(--ink2); max-width: 62ch; } .sec-h.tight { margin-bottom: 14px; } .sec-h.tight h2 { font-size: 22px; }

/* ── hero ── */
.hero { position: relative; padding: 76px 0 120px; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); letter-spacing: -.035em; line-height: 1.02; margin: 16px 0 22px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); max-width: 60ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ecg { position: absolute; left: 50%; bottom: 8px; width: 100vw; max-width: 1600px; transform: translateX(-50%); height: 150px; opacity: .95; filter: drop-shadow(0 0 18px rgba(128,0,255,.45)); pointer-events: none; }
.ecg path { stroke-dasharray: 1000; stroke-dashoffset: 0; animation: draw 2.2s cubic-bezier(.6,.05,.2,1) both; }
@keyframes draw { from { stroke-dashoffset: 1000; } }

.totals { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--surface), var(--bg2)); margin-top: 0 !important; }
.totals .stat { padding: 22px 24px; border-left: 1px solid var(--line); } .totals .stat:first-child { border-left: 0; } .totals .v { font-size: clamp(24px, 2.6vw, 34px); }
.stat .k { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; } .stat.bad .v { color: var(--bad); }
.stat .s { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── protocol cards ── */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--hue) 22%, transparent), transparent 70%); pointer-events: none; }
.pcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--hue) 60%, var(--line)); box-shadow: 0 18px 40px -24px var(--hue); }
.pcard > * { position: relative; }
.pcard-h { display: flex; flex-direction: column; gap: 6px; } .pcard h3 { font-size: 21px; }
.pair { align-self: flex-start; font: 500 12px var(--mono); color: var(--hue); border: 1px solid color-mix(in srgb, var(--hue) 45%, transparent); padding: 3px 8px; border-radius: 999px; }
.blurb { color: var(--ink2); font-size: 14.5px; line-height: 1.45; min-height: 3.9em; }
.pcard-big span { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .pcard-big em { font-style: normal; font-size: 13px; color: var(--muted); }
.pcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard dt { font-size: 12px; color: var(--muted); } .pcard dd { font-weight: 500; font-variant-numeric: tabular-nums; font-size: 15px; } .pcard dd small { color: var(--muted); font-weight: 400; }
.mine { font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--hue); } .go svg { width: 16px; height: 16px; transition: transform .18s; } .pcard:hover .go svg { transform: translateX(4px); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; } .how article { border-top: 2px solid var(--line2); padding-top: 18px; } .how h3 { font-size: 19px; margin-bottom: 8px; } .how p { color: var(--ink2); font-size: 15.5px; }
.how article:nth-child(1) { border-image: linear-gradient(90deg, #FF0000, #E619E6) 1; } .how article:nth-child(2) { border-image: linear-gradient(90deg, #E619E6, #8000FF, #0080FF) 1; } .how article:nth-child(3) { border-image: linear-gradient(90deg, #0080FF, #00EAFF) 1; }

/* ── chips ── */
.chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface2); color: var(--ink2); border: 1px solid var(--line2); vertical-align: middle; }
.chip.ok { color: var(--ok); border-color: rgba(61,220,151,.35); background: rgba(61,220,151,.08); } .chip.mid { color: var(--mid); border-color: rgba(183,227,107,.35); background: rgba(183,227,107,.07); }
.chip.warn { color: var(--warn); border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.08); } .chip.bad { color: var(--bad); border-color: rgba(255,84,104,.45); background: rgba(255,84,104,.1); }

/* ── protocol page ── */
.phead { padding-top: 40px; }
.phead-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.phead h1 { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.03em; margin-top: 8px; } .phead h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: 14px; background: var(--hue); box-shadow: 0 0 18px var(--hue); }
.phead-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; } .phead-links a { color: var(--ink2); text-decoration: none; } .phead-links a:hover { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 28px; border-block: 1px solid var(--line); }
.stats .stat { padding: 18px 18px 18px 0; } .stats .stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); } .stats .v { font-size: 20px; }
/* horizontal strips: overflow-y must be hidden explicitly — "overflow-x:auto" alone turns the y axis scrollable too, which is what made the strip wobble vertically under a thumb */
.tabs { display: flex; gap: 4px; margin-top: 22px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--line); } .tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; box-shadow: inset 0 -2px 0 transparent; }
.tabs a:hover { color: var(--ink); } .tabs a[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--hue); }
.pbody { margin-top: 28px !important; display: flex; flex-direction: column; gap: 16px; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; min-width: 0; }
.panel h2 { font-size: 22px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.live { background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 7%, var(--surface)), var(--surface) 40%); display: flex; flex-direction: column; gap: 22px; }
.fgroup { display: flex; flex-direction: column; gap: 8px; } .fhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; font-weight: 500; color: var(--ink2); }
.field { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 0 16px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--hue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 22%, transparent); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 500 24px var(--sans); padding: 14px 0; font-variant-numeric: tabular-nums; letter-spacing: -.01em; } .field input::placeholder { color: #4B475C; }
.unit { font: 500 13px var(--mono); color: var(--muted); padding-left: 12px; }
.fsub { font-size: 13.5px; color: var(--muted); min-height: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; } .seg button { border: 0; background: none; padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); } .seg button[aria-selected="true"] { background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.note { font-size: 14.5px; color: var(--ink2); background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--line2); border-radius: var(--r-sm); padding: 12px 14px; } .note.warn { border-left-color: var(--warn); } .note.bad { border-left-color: var(--bad); color: #FFC4CB; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid rgba(61,220,151,.4); background: rgba(61,220,151,.07); font-size: 14.5px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.empty h3 { font-size: 20px; margin-bottom: 8px; } .empty p { color: var(--ink2); margin-bottom: 26px; }

.ratio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; } .ratio .k { width: 100%; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ratio .big { font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; } .ratio .was { color: var(--muted); }
.ratio.ok .big { color: var(--ok); } .ratio.mid .big { color: var(--mid); } .ratio.warn .big { color: var(--warn); } .ratio.bad .big { color: var(--bad); }
.gauge { position: relative; padding: 22px 0 0; margin-inline: 6px 18px; }
.gauge-bar { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--bad) 0, var(--bad) var(--mcr), var(--warn) var(--mcr), var(--warn) var(--ccr), #9BD96A calc(var(--ccr) + 1%), var(--ok) 60%, #22C9B8 100%); opacity: .9; }
.tick { position: absolute; top: 14px; width: 3px; height: 24px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); transition: left .25s cubic-bezier(.3,.7,.2,1); } .tick b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font: 500 10.5px var(--mono); color: var(--ink2); padding-bottom: 2px; white-space: nowrap; font-style: normal; }
.tick.now { background: var(--muted); } .tick.after { box-shadow: 0 0 10px rgba(255,255,255,.6); }
.gauge-scale { position: relative; height: 26px; } .gauge-scale span { position: absolute; top: 8px; transform: translateX(-50%); font: 500 11px var(--mono); color: var(--muted); text-align: center; white-space: nowrap; } .gauge-scale em { display: block; font-style: normal; font-size: 10px; opacity: .8; } .gauge-scale span:last-child { transform: translateX(-100%); }
.gauge-key { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--muted); margin-left: -6px; } .gauge-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; } .k-bad { background: var(--bad); } .k-warn { background: var(--warn); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; } .kv dt { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; } .kv dd { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .kv dd small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.kv.compact { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-sm); } .kv.compact > div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 12px; padding: 10px 14px; } .kv.compact > div + div { border-top: 1px solid var(--line); } .kv.compact dd { font-size: 14.5px; } .kv.compact dt { font-size: 13px; padding-top: 1px; }

/* ── table ── */
.table-wrap { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; margin-inline: -6px; } table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; min-width: 720px; }
th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; } .num { text-align: right; } tr.me td { background: color-mix(in srgb, var(--cyan) 7%, transparent); } tbody tr:hover td { background: var(--surface2); }
td a { text-decoration: none; color: var(--ink2); } td a:hover { color: var(--cyan); } td .chip { margin-left: 6px; }
table.addr { min-width: 560px; } table.addr td:first-child { color: var(--ink2); }

/* ── docs ── */
.doc { max-width: 820px; padding-top: 56px; } .doc h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.03em; margin: 12px 0 20px; } .doc h2 { font-size: 24px; margin: 44px 0 14px; } .prose, .doc li { color: var(--ink2); max-width: 68ch; } .doc a { color: var(--cyan); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; } .steps li { counter-increment: s; position: relative; padding-left: 46px; } .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--mono); border: 1px solid var(--line2); color: var(--ink); } .steps strong, .rules strong { color: var(--ink); }
.rules { display: flex; flex-direction: column; gap: 10px; } .rules li { padding-left: 22px; position: relative; } .rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--spectrum); }
.hue-h::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--hue); margin-right: 10px; }

/* ── modal ── */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(6,5,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 100px -30px #000; animation: pop .18s ease-out; max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.modal header h2 { font-size: 24px; margin-top: 6px; } .addr-h { font-size: 15px !important; overflow-wrap: anywhere; font-weight: 500; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.checks { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; } .checks li { display: flex; gap: 10px; color: var(--ink2); } .checks i { font-style: normal; font-weight: 700; flex: none; width: 16px; } .checks .ok i { color: var(--ok); } .checks .bad { color: #FFC4CB; } .checks .bad i { color: var(--bad); }
.calls h3 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.call { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg2); } .call + .call { margin-top: 8px; }
.call.done { border-color: rgba(61,220,151,.45); } .call.fail { border-color: rgba(255,84,104,.5); } .call.sim, .call.wallet, .call.pending { border-color: var(--violet); }
.call-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; } .ic { font-size: 14px; width: 16px; } .call.done .ic { color: var(--ok); } .call.fail .ic { color: var(--bad); } .call.sim .ic, .call.pending .ic, .call.wallet .ic { animation: blink 1s infinite; color: var(--cyan); }
.call a { color: var(--ink2); } .call details summary { font-size: 12.5px; color: var(--muted); cursor: pointer; } .call-msg { font-size: 14px; color: var(--ink); padding-top: 6px; border-top: 1px dashed var(--line2); } .call-msg.bad { color: #FFC4CB; } .call-msg a { color: var(--cyan); }
.ack { display: flex; gap: 10px; align-items: center; font-size: 14.5px; } .ack input { width: 18px; height: 18px; accent-color: var(--violet); }
.modal-loading { display: grid; place-items: center; gap: 16px; padding: 30px 0; color: var(--ink2); } .spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--cyan); animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.wallets { display: grid; gap: 8px; } .wallet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--bg2); font-weight: 500; text-align: left; } .wallet:hover { border-color: var(--violet); background: var(--surface2); } .wallet img, .wicon { width: 28px; height: 28px; border-radius: 7px; } .wicon { background: var(--spectrum); }
.watch { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; } .watch h3 { font-size: 16px; } .watch-f { display: flex; gap: 8px; } .watch-f .field { flex: 1; } .watch-f input { font: 400 14px var(--mono); padding: 11px 0; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--surface2); border: 1px solid var(--line2); border-left: 3px solid var(--violet); border-radius: 10px; padding: 12px 16px; font-size: 14.5px; box-shadow: 0 16px 40px -18px #000; animation: pop .2s ease-out; transition: opacity .4s, transform .4s; } .toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--bad); } .toast.out { opacity: 0; transform: translateY(6px); }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--bg2); } .foot-in { max-width: 1240px; margin: 0 auto; padding: 40px 20px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-size: 14px; color: var(--muted); line-height: 1.6; } .foot p + p { margin-top: 12px; } .foot strong { color: var(--ink2); }
.foot-word { font-size: 17px; margin-bottom: 10px; color: var(--ink); } .foot-links { display: flex; flex-wrap: wrap; gap: 18px; } .foot-links a { color: var(--ink2); }

/* ── responsive ── */
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(2, 1fr); } .stats { grid-template-columns: repeat(3, 1fr); } .stats .stat:nth-child(4) { border-left: 0; padding-left: 0; } .stats .stat:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) { .tabs, .nav { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); } .two { grid-template-columns: 1fr; } .live { order: -1; } .how-grid { grid-template-columns: 1fr; gap: 24px; } .totals { grid-template-columns: 1fr 1fr; } .totals .stat:nth-child(3) { border-left: 0; } .totals .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .foot-in { grid-template-columns: 1fr; gap: 24px; }
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; } .nav { order: 3; flex-basis: 100%; margin-inline: -4px; } .top-right { margin-left: auto; } .net span { display: none; } }
@media (max-width: 560px) { main { padding-inline: 16px; } .pgrid { grid-template-columns: 1fr; } .blurb { min-height: 0; } .hero { padding: 44px 0 96px; } .ecg { height: 96px; } .panel { padding: 20px 18px; } .kv { grid-template-columns: 1fr; gap: 16px; } .stats { grid-template-columns: 1fr 1fr; } .stats .stat { padding: 14px 12px 14px 0 !important; border-left: 0 !important; border-top: 1px solid var(--line); } .stats .stat:nth-child(-n+2) { border-top: 0; } .modal { padding: 20px 18px; } .field input { font-size: 21px; } .kv.compact > div { grid-template-columns: 1fr; gap: 2px; } .callout { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
