/* SUPERPOSITION · Stage · "MEASUREMENT BENCH": the live shard cloud full-bleed on black; around it a hairline instrument bezel
   (corner registration ticks, faceplate labels in Jura, numbers in Datatype's narrow mono). Teal / magenta are STATE only. */

@font-face { font-family: 'Jura'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/jura-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/jura-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Datatype'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/datatype-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Datatype'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/datatype-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --void: #020304;
  --bg: #0f151a; --bg-2: #121a20; --bg-3: #17212a;
  --panel: rgba(7, 11, 14, .84); --panel-2: rgba(7, 11, 14, .66); --panel-solid: #0b1115;
  --line: rgba(190, 220, 228, .12); --line-2: rgba(190, 220, 228, .22); --line-3: rgba(190, 220, 228, .42);
  --ink: #e2ebee; --ink-2: #a6b7be; --ink-3: #6b7d85;
  --teal: #19e3d0; --teal-2: rgba(25, 227, 208, .14); --teal-3: rgba(25, 227, 208, .42);
  --mag: #ff2e9a; --mag-2: rgba(255, 46, 154, .14); --mag-3: rgba(255, 46, 154, .42);
  --deco: #b9879f;
  --f-d: 'Jura', 'Segoe UI', system-ui, sans-serif;
  --f-n: 'Datatype', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 2px; --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: 20px; --top: 56px; --col-l: 316px; --col-r: 320px;
  --sb-thumb: rgba(190, 220, 228, .2); --sb-thumb-hover: rgba(190, 220, 228, .42);
}

/* NO STOCK SCROLLBARS (owner rule; /root/tools/larpcheck/scrollbars.css) */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb, rgba(140, 140, 150, .35)); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover, rgba(160, 160, 170, .6)); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb, rgba(140, 140, 150, .35)) transparent; } }
.no-sb { scrollbar-width: none; } .no-sb::-webkit-scrollbar { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--void); color: var(--ink); font: 500 13px/1.45 var(--f-d); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
b { font-weight: 700; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal-3); color: #fff; }
:focus-visible { outline: 1px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }
.is-hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lbl { font: 600 10.5px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.up { color: var(--teal); } .dn { color: var(--mag); }

/* ---------- the stage ---------- */
body.stage { overflow: hidden; overscroll-behavior: none; }
.scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.poster { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: #020304 url(/scene/poster.jpg) center / cover no-repeat; transition: opacity .9s var(--ease); }
.poster.off { opacity: 0; }
@media (max-width: 760px) { .poster { background-image: url(/scene/poster-phone.jpg); } }
.ticks i { position: fixed; width: 16px; height: 16px; border: 0 solid var(--line-3); pointer-events: none; z-index: 4; }
.ticks i:nth-child(1) { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.ticks i:nth-child(2) { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.ticks i:nth-child(3) { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.ticks i:nth-child(4) { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- header (no panel: a gradient off the top edge; clicks fall through to the scene between its parts) ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 24px; padding: 0 30px; background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42) 60%, rgba(0, 0, 0, 0)); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.mark { width: 24px; height: 24px; color: var(--ink); flex: none; }
.brand-name { font: 700 15px/1 var(--f-d); letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; }
.brand-tk { font: 500 13px/1 var(--f-n); color: var(--ink-3); letter-spacing: .02em; }
.src { justify-self: start; display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; font: 600 10.5px/1 var(--f-d);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.src > * { flex: none; } .src #src-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.src-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal-3); }
.src.is-paused .src-dot { background: transparent; box-shadow: none; border: 1px solid var(--ink-3); }
.src-mode { color: var(--ink); border: 1px solid var(--line-2); padding: 3px 6px 2px; border-radius: var(--r); }
.src-b b { font: 500 12px/1 var(--f-n); letter-spacing: .02em; color: var(--ink-2); text-transform: none; }
.src-sep { color: var(--line-3); }
.acts { display: flex; align-items: center; gap: 8px; }
.tca { display: flex; align-items: center; gap: 6px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: rgba(0, 0, 0, .55); cursor: pointer; white-space: nowrap; }
.ca:disabled { cursor: default; }
.ca-l { font: 600 10px/1 var(--f-d); letter-spacing: .16em; color: var(--ink-3); }
.ca-t { font: 500 13px/1 var(--f-n); color: var(--ink); }
.tca.is-empty .ca-t { font: 600 11px/1 var(--f-d); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ca-copy { font: 600 10px/1 var(--f-d); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.tca.is-live .ca { border-color: var(--teal-3); }
.ca:not(:disabled):hover { border-color: var(--line-3); background: rgba(0, 0, 0, .75); }
.ca-link, .navlink { height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: rgba(0, 0, 0, .55); font: 600 10.5px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.ca-link:hover, .navlink:hover, .xbtn:hover { border-color: var(--line-3); color: var(--ink); }
.xbtn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(0, 0, 0, .55); color: var(--ink-2); }
.xbtn svg { width: 14px; height: 14px; }
.clock { font: 500 12px/1 var(--f-n); color: var(--ink-3); min-width: 86px; text-align: right; white-space: nowrap; }

/* ---------- panels ---------- */
.dock { display: contents; }
.panel { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 50px rgba(0, 0, 0, .35); }
.ph { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ph-r { font: 500 12px/1 var(--f-n); color: var(--ink-3); white-space: nowrap; }
.badge { font: 600 10px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; padding: 4px 6px 3px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink-2); }
.grip { display: none; }

/* ---------- the tape (left) ---------- */
.tape { position: fixed; z-index: 5; left: var(--gut); top: calc(var(--top) + 8px); width: var(--col-l); height: min(612px, calc(100vh - var(--top) - 290px));
  display: flex; flex-direction: column; overflow: hidden; }
.tape-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.tape-wait { display: none; padding: 14px 12px; color: var(--ink-3); font-size: 12px; }
.tape.is-empty .tape-wait { display: block; }
.m { height: 78px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-rows: 15px 19px 15px 15px; row-gap: 1px; cursor: pointer; position: relative; }
.m:hover { background: rgba(190, 220, 228, .035); }
.m > div { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.m1 .mn { font: 600 12px/1 var(--f-n); color: var(--ink-2); flex: none; }
.m1 .ket { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.m1 .mt { font: 500 11px/1 var(--f-n); color: var(--ink-3); flex: none; margin-left: auto; }
.m2 .sym { font: 700 13px/1 var(--f-d); letter-spacing: .02em; flex: 0 0 auto; max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
.m2 .pp { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.m2 .pp i { font-style: normal; color: var(--ink-2); margin-right: 5px; } .m2 .pp i.pb { color: var(--teal); } .m2 .pp i.ps { color: var(--mag); } .m2 .pp i.ph { color: var(--ink-2); }
.m2 .oc { margin-left: auto; flex: none; font: 700 11px/1 var(--f-d); letter-spacing: .16em; padding: 4px 0 3px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); width: 76px; text-align: center; white-space: nowrap; overflow: hidden; }
.m3, .m4 { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); }
.m3 .fl { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.m3 .fs { color: var(--ink); font-weight: 600; }
.m3 .paper { color: var(--ink-3); }
.m3 .tx { color: var(--teal); text-decoration: none; border-bottom: 1px solid var(--teal-3); }
.m4 .sr { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.m4 .en { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.m.is-buy .oc { color: #021412; background: var(--teal); border-color: var(--teal); }
.m.is-sell .oc { color: #1a0410; background: var(--mag); border-color: var(--mag); }
.m.is-deco .oc { color: var(--deco); border-color: rgba(185, 135, 159, .5); background: rgba(185, 135, 159, .08); }
.m.is-hold .oc { color: var(--ink-2); }
.m.is-buy::before, .m.is-sell::before, .m.is-measuring::before, .m.is-deco::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; }
.m.is-buy::before { background: var(--teal); } .m.is-sell::before { background: var(--mag); } .m.is-deco::before { background: var(--deco); }
/* unmeasured: both states at once until the collapse */
.m.is-measuring::before { background: linear-gradient(180deg, var(--teal), var(--mag), var(--teal)); background-size: 100% 200%; animation: shim 1.2s linear infinite; }
.m.is-measuring .oc { letter-spacing: .08em; border-color: transparent; color: transparent; background: linear-gradient(90deg, var(--teal), var(--mag), var(--teal)) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; animation: shimx 1.1s linear infinite; outline: 1px solid var(--line-2); outline-offset: -1px; }
.m.is-new { animation: rowin .5s var(--ease); }
.m.is-win { background: linear-gradient(90deg, rgba(25, 227, 208, .13), rgba(25, 227, 208, .02) 70%); }
.m.is-win::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--teal); box-shadow: 0 0 10px var(--teal-3); }
.m3 .win-t { color: var(--teal); font-weight: 700; }
.w-rows dd.up { color: var(--teal); } .w-rows dd small { color: var(--ink-3); font-size: 11px; }
/* THE BIG SHOW: a win takes the collapse slot for 3 s */
.win { position: fixed; z-index: 5; left: 50%; bottom: 146px; transform: translate(-50%, 10px) scale(.94); pointer-events: none; opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 30px 16px; border: 1px solid var(--teal-3); border-radius: var(--r); background: radial-gradient(120% 140% at 50% 50%, rgba(25, 227, 208, .22), rgba(4, 14, 16, .86) 70%);
  box-shadow: 0 0 60px rgba(25, 227, 208, .35), inset 0 0 24px rgba(25, 227, 208, .18); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.win.on { opacity: 1; transform: translate(-50%, 0) scale(1); transition-duration: .18s; animation: winpulse 1.2s var(--ease) 2; }
.win-l { font: 700 12px/1 var(--f-d); letter-spacing: .4em; padding-left: .4em; color: var(--teal); text-transform: uppercase; }
.win-a { font: 700 58px/1 var(--f-n); color: #eafffb; text-shadow: 0 0 30px var(--teal), 0 0 3px var(--teal); letter-spacing: .01em; }
.win-s { font: 500 12.5px/1 var(--f-n); color: var(--ink-2); }
@keyframes winpulse { 50% { box-shadow: 0 0 90px rgba(25, 227, 208, .55), inset 0 0 30px rgba(25, 227, 208, .25); } }
@media (max-height: 820px) and (min-width: 761px) { .win { bottom: 130px; } .win-a { font-size: 48px; } }
@media (max-width: 760px) { .win { bottom: calc(136px + 28px + env(safe-area-inset-bottom)); padding: 10px 20px 12px; } .win-a { font-size: 38px; } }
body.capture .win { bottom: 174px; } body.capture .win-a { font-size: 70px; }
.m.no-fill .fl { color: var(--ink-3); }
@keyframes rowin { from { background: rgba(190, 220, 228, .08); } to { background: transparent; } }
@keyframes shim { to { background-position: 0 200%; } }
@keyframes shimx { to { background-position: 200% 0; } }

/* the ket: |bits⟩ (the closer is drawn: none of the faces carries ⟩) */
.ket { font: 500 12px/1 var(--f-n); color: var(--ink-2); letter-spacing: .02em; white-space: nowrap; }
.ket::before { content: '|'; color: var(--ink-3); margin-right: 1px; }
.ket::after { content: ''; display: inline-block; width: .36em; height: .92em; margin-left: 2px; vertical-align: -.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 16' preserveAspectRatio='none'%3E%3Cpath d='M1 0.5 L5 8 L1 15.5' fill='none' stroke='%236b7d85' stroke-width='1.1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.ket.is-empty::before, .ket.is-empty::after { display: none; }
.ket .k-sep { color: var(--ink-3); }
.ket .k-side { color: var(--ink); }

/* ---------- right column: wallet + coin card ---------- */
.right { position: fixed; z-index: 5; right: var(--gut); top: calc(var(--top) + 8px); width: var(--col-r); display: flex; flex-direction: column; gap: 8px; }
.wallet { flex: none; }
.w-addr { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); text-decoration: none; margin-left: auto; }
.w-addr:hover { color: var(--ink); }
.w-eq { display: flex; align-items: baseline; gap: 8px; padding: 14px 12px 6px; }
.w-eq b { font: 600 40px/1 var(--f-n); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.w-eq small { font: 600 11px/1 var(--f-d); letter-spacing: .16em; color: var(--ink-3); }
.w-rows { margin: 0; padding: 2px 12px 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
.w-rows > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w-rows dt { font: 600 10px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.w-rows dd { margin: 0; font: 500 13.5px/1.1 var(--f-n); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { list-style: none; margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.chip { height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 5px; border: 1px solid var(--teal-3); border-radius: var(--r); background: var(--teal-2); min-width: 0; cursor: pointer; }
.chip.is-empty { border: 1px dashed var(--line); background: transparent; cursor: default; }
.chip .cs { font: 700 11px/1 var(--f-d); letter-spacing: .01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chip .cv { font: 500 11px/1 var(--f-n); flex: none; color: var(--ink-2); }
.chip .cv.up { color: var(--teal); } .chip .cv.dn { color: var(--mag); }

.logo { position: relative; flex: none; display: inline-block; border-radius: 50%; overflow: hidden; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.logo::before { content: attr(data-l); position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 var(--f-d); color: var(--ink-3); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the coin card */
.card { flex: none; }
.card:not(.is-pinned) { pointer-events: none; }
.card.is-pinned { border-color: var(--line-2); }
.card[data-state="held"] { border-color: var(--teal-3); }
.c-mint { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); margin-left: auto; }
.c-x { width: 22px; height: 22px; display: none; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; cursor: pointer; }
.card.is-pinned .c-x { display: grid; }
.c-x svg { width: 10px; height: 10px; stroke: var(--ink-2); stroke-width: 1.4; }
.c-id { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 12px 8px; }
.c-logo { width: 40px; height: 40px; }
.c-nm { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-nm b { font: 700 15px/1.1 var(--f-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-nm span { font: 500 12px/1 var(--f-n); color: var(--ink-3); }
.c-age { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); align-self: start; white-space: nowrap; }
.c-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.c-nums > div { background: var(--panel-solid); padding: 7px 8px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-nums small { font: 600 9.5px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.c-nums b { font: 600 15px/1 var(--f-n); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-chartbox { position: relative; height: 104px; margin: 8px 12px 0; }
.c-chart { width: 100%; height: 100%; display: block; }
.c-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; }
.c-chart-l { position: absolute; left: 0; bottom: -2px; font: 600 9.5px/1 var(--f-d); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transform: translateY(100%); padding-top: 4px; }
.c-amprow { padding: 22px 12px 6px; }
.c-why { padding: 0 12px 4px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-why b { color: var(--ink); font-weight: 600; } .c-why .up { color: var(--teal); } .c-why .dn { color: var(--mag); }
.c-ent { padding: 0 12px 10px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ent.is-none { color: var(--ink-3); }
.c-ent b { color: var(--ink); }
.c-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.btn { height: 34px; display: grid; place-items: center; background: var(--panel-solid); font: 600 10.5px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--bg-3); }

/* the amplitude bar: teal share = P(buy), magenta share = P(sell) */
.amp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.amp-l, .amp-r { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); white-space: nowrap; }
.amp-l b { color: var(--teal); font-weight: 600; } .amp-r > b { color: var(--mag); font-weight: 600; }
.amp-bar { --b: .5; --s: .5; --h: 0; position: relative; height: 6px; display: flex; gap: 2px; }
.amp-bar i { display: block; height: 100%; border-radius: 1px; transition: flex-grow .6s var(--ease); }
.amp-bar .amp-b { flex: var(--b) 1 0; background: var(--teal); box-shadow: 0 0 10px var(--teal-3); }
.amp-bar .amp-s { flex: var(--s) 1 0; background: var(--mag); box-shadow: 0 0 10px var(--mag-3); }
.amp-bar .amp-h { flex: var(--h) 1 0; background: rgba(190, 220, 228, .28); }
.amp-bar i[data-zero] { display: none; }
.amp-hl { margin-left: 8px; } .amp-hl b { color: var(--ink); font-weight: 600; }
.amp-bar.is-none i { background: var(--line-2); box-shadow: none; }

/* ---------- the meter (bottom centre): countdown ring, amplitude, the 32 bits ---------- */
.meter { position: fixed; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(640px, calc(100vw - var(--col-l) - var(--col-r) - 4 * var(--gut)));
  height: 102px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 0 16px 0 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035); }
.ring { position: relative; width: 56px; height: 56px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 1.5; }
.ring-bg { stroke: var(--line-2); }
.ring-arc { stroke: var(--ink); transition: stroke-dashoffset .1s linear; }
.meter.is-measuring .ring-arc { stroke: var(--teal); animation: ringshim 1s linear infinite; }
@keyframes ringshim { 50% { stroke: var(--mag); } }
.cd { position: absolute; inset: 0; display: grid; place-items: center; font: 600 17px/1 var(--f-n); }
.m-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-lean { font: 500 11.5px/1.15 var(--f-d); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 13px; display: block; max-width: 100%; }
.c-lean { padding: 0 12px 4px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.m-row { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.m-head .lbl { color: var(--ink-2); }
.m-n { font: 600 12px/1 var(--f-n); color: var(--ink-3); }
.m-coin { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.m-coin b { font: 700 12.5px/1 var(--f-d); overflow: hidden; text-overflow: ellipsis; }
.m-src { margin-left: auto; font: 500 11.5px/1 var(--f-n); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bits .ket { font-size: 14px; letter-spacing: .06em; }
.meter .amp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.m-coin { flex: none; } .m-coin b { display: inline-block; max-width: 150px; white-space: nowrap; }
.m-src { flex: 1 1 auto; text-align: right; }
.meter.is-measuring .m-head .lbl { background: linear-gradient(90deg, var(--teal), var(--mag), var(--teal)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimx 1.1s linear infinite; }
.meter.is-paused .m-head .lbl { color: var(--ink-3); }
.meter.is-paused .amp-bar i { background: var(--line-2); box-shadow: none; }

/* ---------- the collapse word ---------- */
.collapse { position: fixed; z-index: 4; left: 50%; bottom: 146px; transform: translate(-50%, 6px) scale(.985); text-align: center; pointer-events: none; opacity: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .45s var(--ease), transform .45s var(--ease); white-space: nowrap; }
.collapse.on { opacity: 1; transform: translate(-50%, 0) scale(1); transition-duration: .14s; }
.cw { font: 700 54px/1 var(--f-d); letter-spacing: .2em; padding-left: .2em; white-space: nowrap; text-shadow: 0 0 28px currentColor, 0 0 2px currentColor; }
.cs { font: 500 13px/1 var(--f-n); color: var(--ink-2); text-shadow: 0 1px 8px #000; }
.cf { font: 500 13px/1 var(--f-n); color: var(--ink); text-shadow: 0 1px 8px #000; min-height: 13px; }
.cf .paper { color: var(--ink-3); } .cf .up { color: var(--teal); } .cf .dn { color: var(--mag); }
.replay-tag { position: fixed; z-index: 6; top: 21px; right: 30px; font: 600 10.5px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  padding: 6px 9px 5px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(0, 0, 0, .55); white-space: nowrap; }
.replay-tag b { font: 500 12px/1 var(--f-n); letter-spacing: .02em; color: var(--ink); text-transform: none; }
@media (max-width: 760px) { .replay-tag { top: 64px; right: 16px; font-size: 9.5px; } }
.collapse.is-buy .cw { color: var(--teal); } .collapse.is-sell .cw { color: var(--mag); } .collapse.is-hold .cw { color: var(--ink-2); text-shadow: 0 1px 12px #000; }

/* ---------- how it works + footer (bottom left) ---------- */
.how { position: fixed; z-index: 5; left: var(--gut); bottom: 34px; width: var(--col-l); margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); }
.how p { margin: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; font: 500 12px/1.35 var(--f-d); color: var(--ink-2); }
.how b { font: 600 11px/1.5 var(--f-n); color: var(--ink-3); }
.how i { font: inherit; font-style: normal; }
.how a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-3); }
.foot { position: fixed; z-index: 5; left: calc(var(--gut) + 12px); bottom: 13px; text-shadow: 0 1px 6px #000; font: 600 10px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.nojs { position: fixed; inset: auto 0 0 0; padding: 16px 24px; background: var(--panel-solid); color: var(--ink-2); z-index: 9; }

/* the first paint: the frame fades in once the scene is up (the frame itself is never a skeleton) */
.stage .top, .stage .tape, .stage .right, .stage .meter, .stage .how, .stage .foot { transition: opacity .6s var(--ease); }

/* ---------- laptop: shorter tape, the how-to keeps its corner ---------- */
@media (max-height: 820px) and (min-width: 761px) {
  :root { --col-l: 290px; --col-r: 300px; }
  .tape { height: calc(100vh - var(--top) - 260px); }
  .m { height: 72px; padding-top: 6px; }
  .w-eq b { font-size: 34px; } .w-eq { padding-top: 10px; }
  .how p { font-size: 11.5px; } .how { bottom: 30px; gap: 4px; padding: 8px 10px; }
  .meter { height: 94px; bottom: 18px; }
  .collapse { bottom: 130px; } .cw { font-size: 46px; }
  .c-chartbox { height: 86px; }
}
@media (max-width: 1280px) and (min-width: 761px) { .src .src-b { display: none; } .clock { display: none; } }
@media (max-width: 1100px) and (min-width: 761px) { .src { display: none; } }

/* ---------- phone: the frame becomes a bottom sheet; nothing covers the dive ---------- */
@media (max-width: 760px) {
  :root { --top: 52px; --gut: 12px; }
  .top { padding: 0 16px; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; }
  .src, .navlink, .clock, .brand-tk { display: none; }
  .brand-name { font-size: 12px; letter-spacing: .18em; }
  .tca.is-empty .ca-l { display: none; }
  .ticks { display: none; }
  .mark { width: 20px; height: 20px; }
  .ca { height: 28px; padding: 0 8px; gap: 6px; } .tca.is-empty .ca-t { font-size: 9.5px; letter-spacing: .08em; } .ca-link { display: none !important; }
  .xbtn { width: 28px; height: 28px; }

  .dock { display: flex; flex-direction: column; position: fixed; z-index: 7; left: 0; right: 0; bottom: 0; height: min(78vh, 640px);
    transform: translateY(calc(100% - 136px - env(safe-area-inset-bottom))); transition: transform .38s var(--ease);
    background: linear-gradient(180deg, rgba(7, 11, 14, .9), rgba(7, 11, 14, .97)); border-top: 1px solid var(--line-2); border-radius: 10px 10px 0 0;
    padding-bottom: env(safe-area-inset-bottom); }
  .dock.open { transform: translateY(0); }
  .grip { display: grid; place-items: center; height: 22px; flex: none; border: 0; background: transparent; cursor: pointer; padding: 0; }
  .grip i { width: 38px; height: 4px; border-radius: 2px; background: var(--line-3); }
  .meter { position: static; transform: none; width: auto; height: 106px; margin: 0 10px; flex: none; background: transparent; border: 0; box-shadow: none; padding: 0 4px; gap: 12px; }
  .m-src { display: none; }
  .bits .ket { font-size: 12.5px; letter-spacing: .03em; }
  .dock > .right, .dock > .tape, .dock > .how, .dock > .foot { position: static; width: auto; transform: none; }
  .dock { overflow: hidden; }
  .dock.open { overflow-y: auto; overscroll-behavior: contain; }
  .right { margin: 8px 10px 0; order: 2; }
  .card { order: -1; }
  .tape { margin: 8px 10px 0; height: auto; min-height: 0; order: 3; flex: none; }
  .tape-list { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .how { margin: 14px 10px 0; order: 4; position: static; width: auto; }
  .foot { margin: 12px 12px 16px; order: 5; }
  .w-eq b { font-size: 32px; }
  .collapse { bottom: calc(136px + 28px + env(safe-area-inset-bottom)); max-width: 100vw; } .cw { font-size: 28px; letter-spacing: .12em; } .cs { font-size: 11px; white-space: nowrap; }
  body.card-open .collapse { opacity: 0 !important; }
}

/* ---------- capture mode (?capture=1): the launch clip. Scene, name, the measurement, the collapse ---------- */
body.capture .acts, body.capture .src, body.capture .tape, body.capture .right, body.capture .how, body.capture .foot, body.capture .grip { display: none !important; }
body.capture .top { background: none; }
body.capture .meter { bottom: 40px; }
body.capture .collapse { bottom: 174px; } body.capture .cw { font-size: 66px; }
@media (max-width: 760px) { body.capture .dock { transform: none; height: auto; background: transparent; border: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================================================================
   /log · the public ledger (same bench, a page that scrolls)
   ===================================================================================================================== */
body.logpage { background: var(--bg); overflow-x: hidden; }
.logpage .top { position: sticky; background: linear-gradient(180deg, var(--bg) 70%, rgba(15, 21, 26, 0)); }
.lg-wrap { max-width: 1440px; margin: 0 auto; padding: 14px 30px 40px; }
.lg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding: 18px 0 18px; border-bottom: 1px solid var(--line); }
.lg-head h1 { margin: 0; font: 700 30px/1.05 var(--f-d); letter-spacing: .06em; }
.lg-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 74ch; font-size: 13.5px; }
.lg-stats { display: grid; grid-template-columns: repeat(5, auto); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); }
.lg-stats > div { background: var(--bg-2); padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 96px; }
.lg-stats small { font: 600 9.5px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.lg-stats b { font: 600 18px/1 var(--f-n); white-space: nowrap; }
.lg-tabs { position: sticky; top: var(--top); z-index: 5; display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; }
.lg-tabs button { flex: none; height: 40px; padding: 0 16px; background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; cursor: pointer;
  font: 600 10.5px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.lg-tabs button b { font: 500 11.5px/1 var(--f-n); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.lg-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lg-sec { padding: 18px 0 6px; }
.lg-sec[hidden] { display: none; }
.lg-note { color: var(--ink-3); font-size: 12.5px; margin: 0 0 12px; max-width: 90ch; }
.lg-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.lg-table th { text-align: left; font: 600 9.5px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: calc(var(--top) + 40px); background: var(--bg); }
.lg-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font: 500 12.5px/1.3 var(--f-n); color: var(--ink-2); white-space: nowrap; vertical-align: middle; overflow-wrap: normal; word-break: normal; }
.lg-table td.t { font-family: var(--f-d); font-weight: 600; color: var(--ink); }
.lg-table td.w { white-space: normal; min-width: 18ch; }
.lg-table td.num, .lg-table th.num { text-align: right; }
.lg-table tr:hover td { background: rgba(190, 220, 228, .03); }
.lg-table a { color: var(--teal); text-decoration: none; border-bottom: 1px solid var(--teal-3); }
.lg-table .sym { display: inline-flex; align-items: center; gap: 7px; font: 700 12.5px/1 var(--f-d); color: var(--ink); }
.lg-table .ket { font-size: 12px; }
.lg-table .hash { color: var(--ink-3); }
.pill { display: inline-block; font: 700 10px/1 var(--f-d); letter-spacing: .14em; padding: 4px 6px 3px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink-2); }
.pill.buy { background: var(--teal); border-color: var(--teal); color: #021412; } .pill.sell { background: var(--mag); border-color: var(--mag); color: #1a0410; }
.pill.deco { color: var(--deco); border-color: rgba(185, 135, 159, .5); }
.lg-scroll { overflow-x: auto; }
.lg-empty { padding: 26px 0; color: var(--ink-3); font-size: 13px; }
.lg-verify { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; max-width: 110ch; }
.lg-verify code { font: 500 12px/1.4 var(--f-n); color: var(--ink); }
.lg-foot { padding: 30px 0 0; color: var(--ink-3); font: 600 10px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 760px) {
  .lg-wrap { padding: 10px 14px 30px; }
  .lg-head { grid-template-columns: minmax(0, 1fr); } .lg-head h1 { font-size: 22px; }
  .lg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logpage .acts .clock { display: none; }
}

/* the brand kit's set logo (lattice core) as the header mark, round like the tab icon (lead 11-24) */
.mark-img { display: inline-block; border-radius: 50%; overflow: hidden; background: #020304; box-shadow: 0 0 0 1px rgba(25,227,208,.28), 0 0 10px rgba(25,227,208,.18); }
.mark-img img { width: 100%; height: 100%; display: block; object-fit: cover; }
