:root {
  --bg: #04060c;
  --bg-2: #080c16;
  --panel: rgba(12, 18, 32, .72);
  --line: rgba(125, 249, 255, .12);
  --line-2: rgba(125, 249, 255, .24);
  --ice: #7df9ff;
  --ice-dim: #4fb8c4;
  --text: #dff7fb;
  --mute: #7d97a6;
  --mute-2: #4f6573;
  --amber: #ffb547;
  --coral: #ff5d73;
  --violet: #b7a6ff;
  --gold: #ffd36b;
  --ok: #6cf0b8;
  --head: "Chakra Petch", "Eurostile", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(12px, 2vw, 22px);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 13px/1.5 var(--mono); overflow-x: clip;
  background-image: radial-gradient(90% 60% at 50% 0%, rgba(40, 90, 120, .18), transparent 60%), radial-gradient(60% 50% at 50% 100%, rgba(255, 93, 115, .05), transparent 70%);
  -webkit-font-smoothing: antialiased;
}
body::after { /* scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
a { color: var(--ice); }
button { font: inherit; color: inherit; }
.k { font: 500 10px/1.2 var(--mono); letter-spacing: .18em; color: var(--mute); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.brandbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px var(--pad); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(255,181,71,.12), transparent 60%); font: 12px var(--mono); }
.bb-k { color: var(--amber); letter-spacing: .2em; }
.brandbar code { flex: 1 1 260px; min-width: 0; word-break: break-all; color: var(--text); }
.brandbar button, .brandbar a { border: 1px solid var(--line-2); background: none; padding: 3px 10px; cursor: pointer; text-decoration: none; font: 11px var(--mono); letter-spacing: .1em; color: var(--text); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.brandbar button:hover, .brandbar a:hover { border-color: var(--amber); color: var(--amber); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px var(--pad) 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ice); min-width: 0; }
.logo svg { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 0 8px rgba(125,249,255,.4)); }
.logo h1 { margin: 0; font: 700 24px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.logo p { margin: 3px 0 0; font: 12px var(--mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: flex; gap: 8px; flex-wrap: wrap; }
.st { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); font: 11px var(--mono); letter-spacing: .08em; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.st b { font-weight: 500; color: var(--text); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--mute-2); box-shadow: 0 0 0 0 transparent; }
.led.live { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s steps(2, end) infinite; }
.led.warn { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- deck ---------- */
.deck {
  position: relative; display: grid; gap: var(--pad); padding: 0 var(--pad) var(--pad);
  grid-template-columns: 250px minmax(0, 1fr) 360px; align-items: start;
}
.hud, .log { background: var(--panel); border: 1px solid var(--line); padding: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.hud { display: flex; flex-direction: column; gap: 14px; }
.read { display: flex; flex-direction: column; gap: 4px; }
.read b { font: 600 34px/1 var(--head); color: var(--ice); letter-spacing: .02em; text-shadow: 0 0 18px rgba(125,249,255,.35); font-variant-numeric: tabular-nums; }
.read.sm b { font-size: 20px; text-shadow: none; color: var(--text); }
#spark { width: 100%; height: 44px; display: block; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.filters .k { width: 100%; }
.filters button { border: 1px solid var(--line-2); background: transparent; padding: 5px 9px; cursor: pointer; font: 11px var(--mono); color: var(--mute); }
.filters button:hover { color: var(--text); border-color: var(--ice-dim); }
.filters button.on { color: var(--bg); background: var(--ice); border-color: var(--ice); }
.legend { padding-top: 12px; border-top: 1px solid var(--line); }
.legend ul { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 11.5px; color: var(--mute); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend p { margin: 0 0 8px; font-size: 11px; line-height: 1.55; color: var(--mute); }
.legend .lf { color: var(--amber); font-weight: 500; }
.legend .ln { color: var(--violet); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.c0 { background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.cn { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.c1 { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.c2 { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.cu { border: 1.5px solid var(--mute); }
.cg { background: var(--gold); transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 8px var(--gold); }

/* ---------- scope ---------- */
.scope-wrap { display: flex; justify-content: center; min-width: 0; }
.scope { position: relative; width: min(100%, calc(100svh - 120px)); aspect-ratio: 1; max-width: 920px; min-width: 0; }
#radar { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }
.scope-tip { position: absolute; left: 0; top: 0; pointer-events: none; padding: 8px 10px; background: rgba(4,6,12,.92); border: 1px solid var(--line-2); font: 11.5px/1.45 var(--mono); white-space: nowrap; z-index: 3; }
.scope-tip b { font: 600 14px var(--head); letter-spacing: .04em; }
.scope-empty { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); font: 12px var(--mono); letter-spacing: .16em; color: var(--mute); text-transform: uppercase; }
.toasts { position: absolute; left: 2%; top: 2%; display: flex; flex-direction: column; gap: 6px; z-index: 4; max-width: 70%; }
.toast { border: 1px solid rgba(255,211,107,.6); background: rgba(20,16,4,.88); color: var(--gold); font: 600 12px var(--head); letter-spacing: .14em; padding: 7px 12px; cursor: pointer; text-align: left; animation: slide .3s ease-out; box-shadow: 0 0 24px rgba(255,211,107,.18); }
.row:focus-visible { outline: 1px solid var(--ice); outline-offset: -1px; }
.pause { position: absolute; right: 2%; bottom: 2%; width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 11px; color: var(--mute); }
.pause[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }

/* ---------- log ---------- */
.log { display: flex; flex-direction: column; max-height: calc(100svh - 110px); min-height: 380px; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.log h2 { margin: 0; font: 600 15px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.log input { width: 50%; min-width: 0; background: rgba(4,6,12,.6); border: 1px solid var(--line-2); color: var(--text); font: 11.5px var(--mono); padding: 6px 8px; outline: none; }
.log input:focus { border-color: var(--ice); }
.rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid rgba(125,249,255,.06); cursor: pointer; transition: background .15s; }
.row:hover, .row.sel { background: rgba(125,249,255,.06); }
.row.sel { box-shadow: inset 2px 0 0 var(--ice); }
.row.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgba(125,249,255,.18); } to { background: transparent; } }
.row .age { font: 11px var(--mono); color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.row .id { min-width: 0; }
.row .sym { font: 600 14px/1.1 var(--head); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row .nm { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.row .pips { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.pip { min-width: 18px; padding: 1px 5px; font: 600 10px/1.5 var(--mono); text-align: center; border: 1px solid; }
.pip.f { color: var(--coral); border-color: rgba(255,93,115,.5); }
.pip.f1 { color: var(--amber); border-color: rgba(255,181,71,.5); }
.pip.o { color: var(--violet); border-color: rgba(183,166,255,.45); }
.pip.u { color: var(--mute); border-color: var(--line-2); }
.pip.g { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.row .bar { grid-column: 2 / -1; height: 3px; background: rgba(125,249,255,.08); position: relative; overflow: hidden; }
.row .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--ice-dim), var(--ice)); }
.row.dim { opacity: .35; }
.rows .empty { padding: 30px 8px; text-align: center; color: var(--mute); letter-spacing: .12em; font-size: 11px; text-transform: uppercase; }

/* ---------- dossier ---------- */
.dossier {
  position: absolute; right: var(--pad); top: 0; width: 400px; max-height: calc(100svh - 110px); overflow-y: auto; z-index: 8;
  background: #060a14; border: 1px solid var(--line-2); padding: 18px; scrollbar-width: thin;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: slide .28s ease-out;
}
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
.d-close { position: absolute; right: 12px; top: 12px; border: 1px solid var(--line-2); background: none; width: 30px; height: 30px; cursor: pointer; color: var(--mute); }
.d-close:hover { color: var(--text); border-color: var(--ice); }
.d-head h2 { margin: 6px 0 0; font: 700 30px/1.05 var(--head); letter-spacing: .03em; padding-right: 36px; word-break: break-word; }
.d-name { margin: 2px 0 10px; color: var(--mute); word-break: break-word; }
.d-mint { display: flex; gap: 8px; align-items: flex-start; }
.d-mint code { flex: 1; min-width: 0; word-break: break-all; font-size: 11.5px; color: var(--ice); }
.d-mint button, .d-actions button { border: 1px solid var(--line-2); background: none; cursor: pointer; padding: 3px 9px; font: 11px var(--mono); letter-spacing: .1em; color: var(--text); }
.d-mint button:hover, .d-actions button:hover:not(:disabled) { border-color: var(--ice); color: var(--ice); }
.d-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.d-links a { font-size: 11px; text-decoration: none; border: 1px solid var(--line); padding: 3px 9px; color: var(--text); }
.d-links a:hover { border-color: var(--ice); color: var(--ice); }
.d-disclaim { margin: 14px 0; padding: 9px 11px; border-left: 2px solid var(--amber); background: rgba(255,181,71,.06); font-size: 11.5px; color: #e9d9b8; }
.d-curve { margin-bottom: 12px; }
.d-curve .cv-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-bottom: 5px; }
.d-curve .cv-bar { height: 8px; background: rgba(125,249,255,.08); position: relative; overflow: hidden; }
.d-curve .cv-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--ice-dim), var(--ice)); box-shadow: 0 0 12px var(--ice); }
.d-curve .cv-bar i.g { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.sigs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sig { padding: 10px 11px; border: 1px solid var(--line); background: rgba(12,18,32,.6); }
.sig .s-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tone { font: 700 9.5px/1.6 var(--mono); letter-spacing: .14em; padding: 0 6px; border: 1px solid; flex: none; }
.tone.flag { color: var(--coral); border-color: rgba(255,93,115,.6); }
.tone.note { color: var(--violet); border-color: rgba(183,166,255,.5); }
.tone.ok { color: var(--ok); border-color: rgba(108,240,184,.45); }
.tone.info { color: var(--ice-dim); border-color: rgba(125,249,255,.3); }
.tone.unknown { color: var(--mute); border-color: var(--line-2); }
.sig .s-label { font: 600 13px var(--head); letter-spacing: .03em; }
.sig .s-val { margin-left: auto; font-size: 12px; color: var(--text); text-align: right; word-break: break-word; }
.sig.flag { border-color: rgba(255,93,115,.35); background: rgba(255,93,115,.05); }
.sig p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--mute); }
.sig .s-src { margin-top: 4px; font-size: 10px; color: var(--mute-2); letter-spacing: .04em; }
.d-holders { margin-top: 14px; }
.d-holders h3 { margin: 0 0 8px; font: 600 12px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.hbar { display: grid; grid-template-columns: 74px minmax(0, 1fr) 54px; gap: 8px; align-items: center; font-size: 10.5px; margin-bottom: 3px; }
.hbar .w { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .w.t { color: var(--amber); }
.hbar .b { height: 6px; background: rgba(125,249,255,.08); position: relative; }
.hbar .b i { position: absolute; inset: 0 auto 0 0; background: var(--ice-dim); }
.hbar .b i.curve { background: var(--mute-2); }
.hbar .b i.launcher { background: var(--amber); }
.hbar .p { text-align: right; font-variant-numeric: tabular-nums; }
.d-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.d-actions span { font-size: 11px; color: var(--mute); }
.d-actions button:disabled { opacity: .45; cursor: default; }

/* ---------- glossary / footer ---------- */
.glossary { padding: clamp(30px, 5vw, 60px) var(--pad); max-width: 1280px; margin: 0 auto; }
.glossary h2 { margin: 0; font: 700 clamp(24px, 3.4vw, 36px)/1.1 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.g-lead { color: var(--mute); max-width: 720px; margin: 10px 0 22px; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-grid article { padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.g-grid h3 { margin: 0 0 6px; font: 600 15px var(--head); letter-spacing: .05em; color: var(--ice); }
.g-grid p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--mute); }
.foot { max-width: 1280px; margin: 0 auto; padding: 22px var(--pad) 36px; border-top: 1px solid var(--line); color: var(--mute); font-size: 11.5px; }
.foot p { margin: 0 0 6px; }
.f-sm { color: var(--mute-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .deck { grid-template-columns: minmax(0, 1fr) 340px; }
  .hud { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .hud .grid2 { border-top: 0; padding-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hud .filters { grid-column: 1 / 3; }
  .scope-wrap { grid-column: 1; grid-row: 1; }
  .log { grid-column: 2; grid-row: 1; }
}
@media (max-width: 820px) {
  .deck { grid-template-columns: minmax(0, 1fr); }
  .scope-wrap, .log, .hud { grid-column: 1; grid-row: auto; }
  .scope-wrap { order: 1; } .hud { order: 2; } .log { order: 3; }
  .legend p { font-size: 10.5px; }
  .read b { font-size: 28px; }
  .scope { width: 100%; }
  .hud { display: flex; }
  .hud .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .log { max-height: 70svh; }
  .g-grid { grid-template-columns: minmax(0, 1fr); }
  .hide-s { display: none; }
  .dossier { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82svh; padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); clip-path: none; border-left: 0; border-right: 0; animation: up .28s ease-out; }
  @keyframes up { from { transform: translateY(30px); opacity: 0; } }
  .logo p { display: none; }
}
@media (max-width: 420px) {
  .read b { font-size: 28px; }
  .read.sm b { font-size: 17px; }
  .logo h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .led.live, .row.fresh, .dossier { animation: none; }
}

/* ---------- Custom Radar (burn-to-unlock) ---------- */
.filters button.pro { border-color: rgba(108,240,184,.45); color: var(--ok); }
.filters button.pro.on { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.filters button.locked::after { content: " ⌁"; opacity: .7; }
.custom { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.custom.on .k { color: var(--ok); }
.cr-state { margin: 0; font-size: 11px; line-height: 1.5; color: var(--mute); }
.cr-state b { font-weight: 600; letter-spacing: .12em; color: var(--text); margin-right: 4px; }
.cr-state b.ok { color: var(--ok); }
.cr-state b.soon { color: var(--amber); }
.cr-profiles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.cr-profiles li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 11.5px; padding: 3px 0; border-bottom: 1px solid rgba(125,249,255,.06); }
.cr-profiles li.off { opacity: .45; }
.cr-profiles .cr-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-profiles .cr-c { font: 600 13px var(--head); color: var(--ok); font-variant-numeric: tabular-nums; }
.cr-profiles i { font-style: normal; color: var(--amber); font-size: 9px; }
.cr-profiles .cr-empty { display: block; color: var(--mute); border: 0; }
.cr-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-row button, .cr-unlock { border: 1px solid var(--line-2); background: transparent; padding: 5px 9px; cursor: pointer; font: 11px var(--mono); letter-spacing: .08em; color: var(--mute); }
.cr-row button:hover { color: var(--text); border-color: var(--ok); }
.cr-row button[aria-pressed="true"] { color: var(--ok); border-color: rgba(108,240,184,.6); }
.cr-unlock { color: var(--ok); border-color: rgba(108,240,184,.5); background: rgba(108,240,184,.06); text-align: left; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); padding: 8px 12px; }
.cr-unlock:hover { background: rgba(108,240,184,.14); }
.pip.m { color: var(--bg); background: var(--ok); border-color: var(--ok); }
.toast.match { border-color: rgba(108,240,184,.6); background: rgba(4,20,14,.9); color: var(--ok); box-shadow: 0 0 24px rgba(108,240,184,.18); }
.d-mine { margin: 10px 0 0; padding: 6px 9px; border: 1px solid rgba(108,240,184,.45); color: var(--ok); font-size: 11px; letter-spacing: .08em; }

/* clearance + profile panels reuse the dossier frame */
.panel { width: 420px; }
.cl-lead { margin: 14px 0 10px; color: var(--mute); line-height: 1.6; }
.cl-lead b { color: var(--text); font-weight: 600; }
.cl-list { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cl-list li { padding: 8px 10px; border: 1px solid var(--line); background: rgba(12,18,32,.6); font-size: 11.5px; line-height: 1.5; color: var(--mute); }
.cl-list b { color: var(--ice); font-weight: 500; }
.cl-state { font-size: 11.5px; line-height: 1.6; color: var(--mute); margin-bottom: 10px; }
.cl-state .tone { margin-right: 6px; }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.cl-main { border: 1px solid var(--ice); background: rgba(125,249,255,.1); color: var(--ice); padding: 9px 14px; cursor: pointer; font: 600 12px var(--mono); letter-spacing: .1em; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.cl-main:hover { background: rgba(125,249,255,.2); }
.cl-main.burn { border-color: var(--amber); color: var(--amber); background: rgba(255,181,71,.1); }
.cl-main.burn:hover { background: rgba(255,181,71,.2); }
.cl-main:disabled { opacity: .45; cursor: progress; }
.cl-sub { border: 1px solid var(--line-2); background: none; color: var(--mute); padding: 8px 12px; cursor: pointer; font: 11px var(--mono); letter-spacing: .1em; }
.cl-sub:hover { color: var(--text); border-color: var(--ice-dim); }
.cl-wallets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cl-wallets button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: rgba(12,18,32,.8); padding: 6px 10px; cursor: pointer; font: 11px var(--mono); letter-spacing: .08em; color: var(--text); }
.cl-wallets button:hover { border-color: var(--ok); color: var(--ok); }
.cl-confirm { margin-top: 12px; padding: 12px; border: 1px solid rgba(255,181,71,.55); background: rgba(255,181,71,.06); }
.cl-confirm p { margin: 4px 0; }
.cc-amt b { font: 700 24px var(--head); color: var(--amber); letter-spacing: .03em; }
.cc-line { font-size: 11.5px; color: var(--mute); }
.cc-warn { font-weight: 700; color: var(--text); font-size: 12px; }
.cl-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--mute); word-break: break-word; }
.cl-msg.err { color: var(--coral); }
.cl-msg.warn { color: var(--amber); }
.cl-msg.ok { color: var(--ok); }
.cl-honest { margin-top: 12px; color: #f1e3c3; }
.cl-fine { font-size: 10.5px; line-height: 1.55; color: var(--mute-2); margin: 0; }
.cl-fine code, .lg-note code { font-size: 10.5px; color: var(--mute); word-break: break-all; }
.rg-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0 12px; }
.rg-tabs button { border: 1px solid var(--line-2); background: none; padding: 4px 9px; cursor: pointer; font: 11px var(--mono); color: var(--mute); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-tabs button.on { color: var(--bg); background: var(--ok); border-color: var(--ok); }
.rg-tabs button.add { color: var(--ok); border-style: dashed; }
.rg-form { display: flex; flex-direction: column; gap: 10px; }
.rg-form label { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--mute); }
.rg-form label.ck, .rg-tog label { display: flex; gap: 8px; align-items: center; color: var(--text); }
.rg-name { grid-template-columns: 60px minmax(0, 1fr) !important; }
.rg-name span { font-size: 10px; letter-spacing: .16em; }
.rg-tog { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; }
.rg-form fieldset { border: 1px solid var(--line); padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rg-form legend { font-size: 10px; letter-spacing: .18em; color: var(--ice-dim); padding: 0 4px; }
.rg-form input:not([type="checkbox"]), .rg-form select { width: 100%; min-width: 0; background: rgba(4,6,12,.7); border: 1px solid var(--line-2); color: var(--text); font: 12px var(--mono); padding: 5px 7px; outline: none; }
.rg-form input:focus, .rg-form select:focus { border-color: var(--ice); }
.rg-form input[type="checkbox"] { accent-color: var(--ok); width: 14px; height: 14px; margin: 0; }
.rg-note { margin: 0; font-size: 10.5px; line-height: 1.5; color: var(--mute-2); }

/* ---------- burn ledger ---------- */
.ledger { padding: 0 var(--pad) clamp(30px, 5vw, 60px); max-width: 1280px; margin: 0 auto; }
.ledger h2 { margin: 0; font: 700 clamp(24px, 3.4vw, 36px)/1.1 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.lg-wrap { border: 1px solid var(--line); background: var(--panel); padding: 16px; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.lg-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
.lg-cells small { font-size: 10.5px; color: var(--mute); }
.lg-cells b { word-break: break-word; }
.lg-rows { list-style: none; margin: 8px 0 10px; padding: 0; border-top: 1px solid var(--line); }
.lg-rows li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(125,249,255,.06); font-size: 11.5px; }
.lg-rows .a { color: var(--amber); font-variant-numeric: tabular-nums; }
.lg-rows .t { color: var(--mute); }
.lg-rows a { font-size: 10.5px; text-decoration: none; letter-spacing: .08em; }
.lg-rows .lg-empty { display: block; border: 0; }
.lg-empty { margin: 0; color: var(--mute); letter-spacing: .1em; font-size: 11px; text-transform: uppercase; padding: 8px 0; }
.lg-note { margin: 0 0 6px; font-size: 11px; line-height: 1.55; color: var(--mute); }
@media (max-width: 820px) {
  .panel { width: auto; }
  .lg-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .lg-rows .t { grid-column: 1; }
  .rg-form label { grid-template-columns: minmax(0, 1fr) 96px; }
}
@media (max-width: 1180px) and (min-width: 821px) {
  .hud .custom { grid-column: 3; grid-row: 1 / span 2; border-top: 0; padding-top: 0; }
}

/* =====================================================================
   Written content layer (below the live radar) — HUD briefing pages
   ===================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.brief, .ledger { scroll-margin-top: 56px; }
#live { scroll-margin-top: 0; }

.jump { position: sticky; top: 0; z-index: 20; margin-top: clamp(16px, 3vw, 34px); background: rgba(4,6,12,.88); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.jump-in { max-width: 1280px; margin: 0 auto; padding: 8px var(--pad); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump-in::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 11px var(--mono); letter-spacing: .14em; color: var(--mute);
  border: 1px solid var(--line); padding: 6px 12px; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); transition: color .15s, border-color .15s; }
.jump a:hover, .jump a:focus-visible { color: var(--ice); border-color: var(--ice-dim); outline: none; }
.jump a:first-child { color: var(--text); border-color: var(--line-2); }

.brief { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--pad) 0; }
.brief + .brief > .sec-k, .ledger + .brief > .sec-k { padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.sec-k { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font: 500 10.5px var(--mono); letter-spacing: .22em; color: var(--ice-dim); }
.sec-k b { color: var(--bg); background: var(--ice); padding: 1px 6px; font-weight: 700; letter-spacing: .06em; }
.sec-k::after { content: ""; flex: 0 1 140px; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.brief h2 { margin: 0; max-width: 24ch; font: 700 clamp(26px, 3.8vw, 44px)/1.08 var(--head); letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; }
.brief h2 .tk { color: var(--amber); }
.sec-lead { margin: 12px 0 0; max-width: 66ch; color: var(--mute); font-size: 13.5px; line-height: 1.65; }
.sec-note { margin: 16px 0 0; max-width: 92ch; color: var(--mute); font-size: 12px; line-height: 1.75; }
.sec-note .tone { display: inline-block; margin: 0 2px; }
.brief .lf { color: var(--amber); font-weight: 500; }
.brief .ln { color: var(--violet); font-weight: 500; }
.brief code { font: 11.5px var(--mono); color: var(--ice); background: rgba(125,249,255,.07); border: 1px solid var(--line); padding: 0 5px; overflow-wrap: anywhere; }
.brief a { color: var(--ice); }

.two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); margin-top: 24px; align-items: start; }
.lede { margin: 0; max-width: 64ch; font: 500 clamp(15px, 1.4vw, 17px)/1.7 var(--head); letter-spacing: .01em; color: var(--text); }
.body { margin: 14px 0 0; max-width: 66ch; color: var(--mute); font-size: 12.5px; line-height: 1.75; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 22px; color: var(--mute); font-size: 12.5px; line-height: 1.65; max-width: 64ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border: 1.5px solid var(--ice); transform: rotate(45deg); }
.ticks b { color: var(--text); font-weight: 500; }
.tier-pro .ticks li::before { border-color: var(--ok); }

/* 02 scope legend */
.enc { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.enc-item { padding: 16px; border: 1px solid var(--line); background: var(--panel); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.enc-ico { display: block; width: 48px; height: 48px; margin-bottom: 10px; }
.enc-ico svg { width: 48px; height: 48px; display: block; filter: drop-shadow(0 0 6px rgba(125,249,255,.25)); }
.enc-item h3 { margin: 0 0 6px; font: 600 14px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--ice); }
.enc-item p { margin: 0; color: var(--mute); font-size: 12px; line-height: 1.6; }
.enc-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.enc-sm .enc-item h3 { color: var(--text); font-size: 13px; }
.sub-h { margin: 34px 0 0; font: 600 15px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.swatches { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.swatches li { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); background: var(--panel); font-size: 11.5px; color: var(--mute); }
.swatches b { color: var(--text); font-weight: 500; }
.brief .g-grid { margin-top: 16px; }

/* 03 signal chain */
.chain { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.chain li { position: relative; padding: 18px 16px; border: 1px solid var(--line); background: var(--panel); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.chain li:not(:last-child)::after { /* pulse travelling to the next stage */
  content: ""; position: absolute; top: 26px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice);
  animation: chainpulse 2.4s ease-in-out infinite; }
@keyframes chainpulse { 0%, 100% { opacity: .15; transform: translateX(-10px); } 50% { opacity: 1; transform: translateX(0); } }
.ch-n { display: block; font: 600 10px var(--mono); letter-spacing: .2em; color: var(--ice-dim); }
.chain h3 { margin: 8px 0 8px; font: 600 16px/1.2 var(--head); letter-spacing: .04em; color: var(--text); }
.chain p { margin: 0; color: var(--mute); font-size: 12px; line-height: 1.7; }
.budget { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: rgba(8,12,22,.6); }
.budget > div { padding: 14px 16px; display: grid; gap: 4px; }
.budget > div + div { border-left: 1px solid var(--line); }
.budget b { font: 600 24px/1.1 var(--head); color: var(--ice); text-shadow: 0 0 14px rgba(125,249,255,.3); font-variant-numeric: tabular-nums; }
.budget small { color: var(--mute-2); font-size: 11px; }
.limits { margin-top: 14px; padding: 16px 18px; border: 1px dashed var(--line-2); }
.limits ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--mute); font-size: 12px; line-height: 1.65; }
.limits li::marker { color: var(--amber); }

/* 04 built with */
.kit { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kit li { padding: 16px; background: var(--bg-2); display: grid; gap: 6px; align-content: start; }
.kit b { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
.kit span { color: var(--mute); font-size: 12px; line-height: 1.65; }

/* 05 features */
.tiers { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tier { padding: clamp(18px, 2.6vw, 26px); border: 1px solid var(--line); background: var(--panel);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.tier-pro { border-color: rgba(108,240,184,.35); background: linear-gradient(160deg, rgba(108,240,184,.07), rgba(12,18,32,.72) 55%); }
.tier-k { display: block; }
.tier-pro .tier-k { color: var(--ok); }
.tier h3 { margin: 8px 0 16px; font: 700 clamp(19px, 2vw, 24px)/1.15 var(--head); letter-spacing: .05em; text-transform: uppercase; }
.tier-price { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; line-height: 1.65; }
.tier-price b { color: var(--text); font-weight: 700; }
.tier-link { display: inline-block; margin-top: 10px; font: 600 11px var(--mono); letter-spacing: .14em; color: var(--ok) !important; text-decoration: none; }
.tier-link:hover { text-decoration: underline; }

/* 06 coin */
.must { margin: 0; padding: 14px 16px; border-left: 2px solid var(--amber); background: rgba(255,181,71,.07); color: #f2e3c2; font: 500 14.5px/1.6 var(--head); letter-spacing: .02em; }
.coin-line { margin: 14px 0 0; color: var(--mute); font-size: 12.5px; line-height: 1.7; }
.coin-live { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel); }
.coin-live code { font: 12.5px var(--mono); color: var(--text); word-break: break-all; min-width: 0; }
.coin-act { display: flex; gap: 8px; flex-wrap: wrap; }
.coin-act button, .coin-act a { border: 1px solid var(--line-2); background: none; padding: 3px 10px; cursor: pointer; text-decoration: none; font: 11px var(--mono); letter-spacing: .1em; color: var(--text); }
.coin-act button:hover, .coin-act a:hover { border-color: var(--amber); color: var(--amber); }
.coin-open { margin-top: 18px; }
#coin + .ledger { padding-top: 26px; }

/* 07 privacy */
.facts { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts article { padding: 16px; border: 1px solid var(--line); background: var(--panel); }
.facts h3 { margin: 0 0 6px; font: 600 14px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--ice); }
.facts p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--mute); }

/* 08 FAQ */
.faq { margin-top: 22px; max-width: 920px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 2px;
  font: 600 clamp(14px, 1.4vw, 16px)/1.35 var(--head); letter-spacing: .04em; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 500 14px var(--mono); color: var(--ice); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover, .faq summary:focus-visible { color: var(--ice); outline: none; }
.faq details p { margin: 0 0 16px; max-width: 72ch; color: var(--mute); font-size: 12.5px; line-height: 1.75; }

/* footer */
.foot { margin-top: clamp(44px, 6vw, 80px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px 32px; margin-bottom: 12px; }
.foot-name { font: 700 18px var(--head) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.foot a { color: var(--ice-dim); }
.foot-coin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.foot-coin code { font: 11px var(--mono); color: var(--text); word-break: break-all; min-width: 0; }

@media (max-width: 1180px) {
  .enc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain, .budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget > div:nth-child(3) { border-left: 0; }
  .budget > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chain li:nth-child(2)::after { display: none; }
  .kit, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .two, .tiers, .chain, .enc, .enc-sm, .kit, .facts, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .chain li:not(:last-child)::after { display: none; }
  .brief h2 { max-width: none; }
}
@media (max-width: 420px) {
  .budget { grid-template-columns: minmax(0, 1fr); }
  .budget > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .chain li::after { animation: none !important; opacity: .6; }
  .faq summary::after { transition: none; }
}
