/* self-hosted variable fonts (latin) */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-2.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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-0.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: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/geist-mono-1.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; }

:root {
  --bg: #0b0e11;
  --panel: #101418;
  --panel-2: #151a1f;
  --line: #1f262d;
  --line-2: #2a333c;
  --ink: #e7eaec;
  --muted: #8a96a0;
  --dim: #74808b;
  --loss: #ff4d6d;
  --loss-2: #c2304d;
  --loss-bg: rgba(255, 77, 109, .09);
  --jose: #ffd84a;
  --jose-ink: #14120a;
  --r: 6px;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --sans: 'Geist', system-ui, sans-serif;
  --disp: 'Unbounded', 'Geist', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top-h: 56px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
* { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--jose); outline-offset: 2px; }
b { font-weight: 600; }

/* CRT texture: fine scanlines + grain, above everything, never interactive */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(0,0,0,.45) 100%);
  mix-blend-mode: normal;
}
.crt::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 18px;
  background: rgba(11,14,17,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) translateY(2px); }
.wm { display: flex; align-items: baseline; gap: 7px; }
.wm-a { font: 900 19px/1 var(--disp); letter-spacing: -.02em; }
.wm-b { font: 500 10.5px/1 var(--mono); letter-spacing: .32em; color: var(--muted); }
.tabs { display: flex; gap: 4px; }
.tab {
  background: none; border: 0; padding: 7px 12px; border-radius: var(--r);
  color: var(--muted); font-weight: 500; transition: color .2s, background .2s;
}
.tab:hover { color: var(--ink); background: var(--panel-2); }
.tab.is-on { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--jose); }
.status { margin-left: auto; display: flex; align-items: center; gap: 14px; font: 500 12px var(--mono); color: var(--muted); }
.sol b { color: var(--ink); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 7px; min-width: 128px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 0 rgba(255,77,109,.6); }
.live.on i { background: var(--loss); animation: ping 1.8s var(--ease) infinite; }
.live.err i { background: var(--jose); }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(255,77,109,.55)} 80%,100%{box-shadow:0 0 0 7px rgba(255,77,109,0)} }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted);
  transition: color .2s, border-color .2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn .wave { display: none; }
.icon-btn[aria-pressed="true"] { color: var(--jose); }
.icon-btn[aria-pressed="true"] .wave { display: block; }
.icon-btn[aria-pressed="true"] .mute { display: none; }
.btn-wallet {
  height: 32px; padding: 0 14px; border-radius: var(--r);
  background: var(--jose); color: var(--jose-ink); border: 0;
  font: 600 12.5px var(--sans); letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-wallet:hover { box-shadow: 0 0 0 4px rgba(255,216,74,.14); }
.btn-wallet:active { transform: translateY(1px) scale(.98); }

/* ---------- tape ---------- */
.tape {
  display: flex; align-items: stretch; height: 30px;
  border-bottom: 1px solid var(--line); background: #0d0f12;
  font: 500 12px/30px var(--mono); overflow: hidden;
}
.tape-label {
  flex: none; padding: 0 12px; background: var(--loss); color: #1a0509;
  font: 700 10px/30px var(--disp); letter-spacing: .12em;
}
.tape-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape-run { display: inline-flex; white-space: nowrap; animation: tape 60s linear infinite; will-change: transform; }
.tape-track:hover .tape-run { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tape-item { padding: 0 18px; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); }
.tape-item b { color: var(--ink); font-weight: 500; margin-right: 8px; }
.tape-item em { color: var(--loss); font-style: normal; }
.tape-item:hover b { color: var(--jose); }
.muted { color: var(--dim); }

/* ---------- deck ---------- */
.deck {
  display: grid;
  grid-template-columns: minmax(380px, 1.25fr) minmax(320px, 1fr) minmax(300px, .9fr);
  border-bottom: 1px solid var(--line);
  min-height: 168px;
}
.deck > * { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.deck > *:last-child { border-right: 0; }
.jose { display: flex; gap: 16px; align-items: center; background: linear-gradient(90deg, rgba(255,216,74,.045), transparent 70%); }
.jose-face { width: 116px; height: 116px; flex: none; overflow: visible; }
.jose-face .hs, .jose-face .mic { stroke: var(--dim); }
.jose-face .hs-cup { fill: #222a32; stroke: var(--dim); stroke-width: 2; }
.jose-face .face { fill: #1b2026; stroke: var(--jose); stroke-width: 3; }
.jose-face .visor { fill: var(--jose); }
.jose-face .eye { fill: #e9e4d6; }
.jose-face .pupil { fill: #0b0e11; transition: transform .35s var(--ease); }
.jose-face .lid { fill: #1b2026; transform-box: fill-box; transform-origin: top; animation: blink 6.5s infinite; }
.jose-face .lidline { stroke: var(--jose); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.jose-face .brow { stroke: var(--jose); stroke-width: 4; stroke-linecap: round; fill: none; }
.jose-face .stache { fill: var(--jose); }
.jose-face .mouth { stroke: var(--jose); stroke-width: 3; stroke-linecap: round; }
.jose-face .mic-tip { fill: var(--loss); }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(2.1); } }
.bubble {
  position: relative; flex: 1; min-width: 0;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px 10px 10px 2px;
  padding: 12px 14px 14px;
}
.bubble::before {
  content: ''; position: absolute; left: -7px; bottom: 12px; width: 12px; height: 12px;
  background: var(--panel-2); border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}
.bubble-who { font: 700 10px var(--disp); letter-spacing: .14em; color: var(--jose); margin-bottom: 6px; }
.bubble-who span { font: 500 10.5px var(--mono); letter-spacing: .02em; color: var(--dim); }
.bubble-text { margin: 0; font: 400 15px/1.45 var(--sans); color: var(--ink); min-height: 2.9em; text-wrap: pretty; }
.bubble-text .caret { display: inline-block; width: 7px; height: 1em; background: var(--jose); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.index { position: relative; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; }
.index-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.kicker { font: 700 10.5px var(--disp); letter-spacing: .16em; color: var(--muted); }
.index-sub { font: 400 11px var(--mono); color: var(--dim); text-align: right; }
.index-num {
  position: relative; z-index: 1;
  font: 900 clamp(44px, 4.6vw, 68px)/1 var(--disp); letter-spacing: -.045em; color: var(--loss);
  margin-top: 8px; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(255,77,109,.35);
}
.index-num small { font-size: .42em; margin-left: 4px; letter-spacing: 0; opacity: .8; }
.ekg { position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 40%; opacity: .95; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 !important; }
.facts > div { padding: 14px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.facts > div:nth-child(2n) { border-right: 0; }
.facts > div:nth-child(n+3) { border-bottom: 0; }
.facts dt { font: 500 10.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts dd b { font: 700 19px/1.1 var(--disp); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts dd span { font: 400 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#f-worst-pc { color: var(--loss); }

/* ---------- pulse columns ---------- */
.seg { display: none; }
.pulse { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.col { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col-h {
  position: sticky; top: var(--top-h); z-index: 5;
  padding: 14px 16px 12px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.col-h h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 14px var(--disp); letter-spacing: -.01em; }
.col-h h2 i, .seg-b i {
  font: 500 11px/1 var(--mono); font-style: normal; color: var(--loss);
  background: var(--loss-bg); padding: 4px 7px; border-radius: 4px;
}
.col-h p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.rows { display: flex; flex-direction: column; }
.rows:has(.row)::after { content: "that is everything falling here right now"; padding: 18px 16px 26px; text-align: center; font: 400 11px var(--mono); color: var(--dim); letter-spacing: .04em; }

.row {
  position: relative;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  padding: 11px 14px 11px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer; outline-offset: -2px;
  transition: background .18s;
}
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--loss); opacity: .0; transition: opacity .2s; }
.row:hover { background: var(--panel); }
.row:hover::before { opacity: 1; }
.row.enter { animation: enter .7s var(--ease); }
@keyframes enter { 0% { background: rgba(255,77,109,.22); transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; transform: none; } 100% { background: transparent; } }
.row.tick .r-pc { animation: tick .9s var(--ease); }
@keyframes tick { 0% { color: #fff; text-shadow: 0 0 12px var(--loss); } 100% {} }
.row.leave { animation: leave .55s var(--ease) forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: translateX(24px); } }
.r-img { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2); }
.r-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.r-img img[hidden] { display: none; }
.r-glyph { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--disp); color: var(--muted); }
.r-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(255,77,109,.28)); }
.r-main { min-width: 0; }
.r-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.r-sym { font: 600 14px var(--sans); white-space: nowrap; max-width: 52%; overflow: hidden; text-overflow: ellipsis; }
.r-name { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-l2 { display: flex; gap: 10px; margin-top: 5px; font: 400 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.r-l2 span { flex: none; }
.r-l2 em { font-style: normal; color: var(--dim); margin-right: 3px; }
.r-age { color: var(--jose) !important; }
.r-tx .s { color: var(--loss); }
.r-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.r-pc { font: 600 15px/1 var(--mono); color: var(--loss); font-variant-numeric: tabular-nums; }
.r-pc small { font-size: 10px; color: var(--dim); font-weight: 400; margin-left: 4px; }
.r-spark { width: 84px; height: 26px; overflow: visible; }
.sp-l { fill: none; stroke: var(--loss); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sp-a { fill: url(#spg); fill: rgba(255,77,109,.12); }
.btn-buy {
  height: 28px; padding: 0 11px; border-radius: 5px;
  background: transparent; color: var(--jose); border: 1px solid rgba(255,216,74,.35);
  font: 600 12px var(--sans);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn-buy:hover { background: var(--jose); color: var(--jose-ink); }
.btn-buy:active { transform: scale(.96); }
.btn-buy.big { height: 40px; padding: 0 26px; font-size: 14px; background: var(--jose); color: var(--jose-ink); border: 0; }

.skel { height: 71px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent 0, rgba(255,255,255,.03) 40%, transparent 80%) 0 0/200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 40px 22px; text-align: center; color: var(--muted); }
.empty svg { width: 54px; height: 54px; color: var(--dim); margin-bottom: 10px; }
.empty b { display: block; font: 700 13px var(--disp); color: var(--ink); margin-bottom: 6px; }

.bar {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 9px 18px; border-top: 1px solid var(--line); background: #0d0f12;
  font: 400 11px var(--mono); color: var(--dim);
}

/* ---------- modal ---------- */
.modal {
  padding: 0; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--panel); color: var(--ink);
  width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4);
}
.modal::backdrop { background: rgba(5,6,8,.72); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.m-in { display: flex; flex-direction: column; }
.m-h { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.m-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-2); }
.m-id { min-width: 0; flex: 1; }
.m-id h3, .m-h h3 { margin: 0; font: 700 20px var(--disp); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-id p { margin: 4px 0 0; font: 400 12px var(--mono); color: var(--muted); }
.m-px { text-align: right; font-family: var(--mono); }
.m-px b { display: block; font-size: 20px; font-weight: 500; }
.m-px span { color: var(--loss); font-size: 13px; }
.m-x { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 20px; line-height: 1; color: var(--muted); margin-left: 6px; }
.m-x:hover { color: var(--ink); }
.m-chart { position: relative; padding: 12px 20px 6px; }
.m-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tf { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.tf button { border: 0; background: none; color: var(--muted); font: 500 12px var(--mono); padding: 5px 11px; border-radius: 5px; }
.tf button.is-on { background: var(--panel-2); color: var(--ink); }
.m-note { font: 400 11px var(--mono); color: var(--dim); text-align: right; }
#chart { width: 100%; height: 300px; display: block; }
.m-empty[hidden] { display: none; }
.m-empty { position: absolute; inset: 60px 20px 20px; display: grid; place-items: center; color: var(--muted); font: 400 13px var(--mono); }
.m-chg { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-chg div { padding: 10px 12px; border-right: 1px solid var(--line); font-family: var(--mono); }
.m-chg div:last-child { border-right: 0; }
.m-chg span { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; }
.m-chg b { font-weight: 500; font-size: 14px; }
.m-chg b.dn { color: var(--loss); }
.m-chg b.up { color: var(--muted); }
.m-stats { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.m-stats div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-stats div:nth-child(4n) { border-right: 0; }
.m-stats dt { font: 400 10.5px var(--mono); color: var(--dim); text-transform: uppercase; }
.m-stats dd { margin: 4px 0 0; font: 500 14px var(--mono); }
.m-foot { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.m-verdict { margin: 0; flex: 1; color: var(--ink); font-size: 14px; }
.m-verdict::before { content: 'JOSE'; font: 700 9.5px var(--disp); letter-spacing: .14em; color: var(--jose-ink); background: var(--jose); padding: 3px 6px; border-radius: 3px; margin-right: 10px; vertical-align: 1px; }
.m-act { display: flex; align-items: center; gap: 14px; }
.m-act a { color: var(--muted); font: 500 12px var(--mono); text-decoration: none; }
.m-act a:hover { color: var(--ink); }

.rules { width: min(620px, calc(100vw - 32px)); }
.rules-list { margin: 0; padding: 18px 22px 22px 44px; display: grid; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rules-list b { color: var(--ink); }
.rules-list li::marker { font: 700 11px var(--disp); color: var(--jose); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 46px; z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  max-width: 360px; display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--jose);
  border-radius: 8px; padding: 11px 14px; font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  animation: toast-in .45s var(--ease);
}
.toast.out { animation: toast-out .4s var(--ease) forwards; }
.toast svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- live column ---------- */
.chip-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 7px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line-2); }
.chip-live b { font: 600 10px var(--mono); letter-spacing: .08em; color: var(--muted); }
.chip-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.chip-live[data-s="live"] { border-color: rgba(255,216,74,.35); background: rgba(255,216,74,.07); }
.chip-live[data-s="live"] b { color: var(--jose); }
.chip-live[data-s="live"] i { background: var(--jose); animation: pingy 1.4s var(--ease) infinite; }
.chip-live[data-s="polling"] i { background: var(--jose); opacity: .6; }
.chip-live[data-s="reconnecting"] i { background: var(--loss); animation: caret 1s steps(1) infinite; }
@keyframes pingy { 0% { box-shadow: 0 0 0 0 rgba(255,216,74,.6); } 80%, 100% { box-shadow: 0 0 0 6px rgba(255,216,74,0); } }
#live-sub b { color: var(--loss); font-weight: 500; }
.live-row .r-img { overflow: visible; border-color: transparent; background: none; }
.live-row .r-img img, .live-row .r-glyph { border-radius: 7px; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); position: absolute; }
.live-row .r-glyph { background: var(--panel-2); }
.live-row .r-img img { z-index: 1; background: transparent; }
.live-row .r-img::after { inset: 3px; border-radius: 7px; z-index: 2; }
.ring { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); overflow: visible; pointer-events: none; }
.ring rect { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: var(--jose); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease); }
.ca { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: 400 11px var(--mono); transition: color .15s, border-color .15s; }
.ca svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ca:hover { color: var(--jose); border-color: rgba(255,216,74,.4); }
.ca.big { margin: 0; font-size: 13px; color: var(--ink); }
.ca.big small { color: var(--dim); margin-left: 4px; }
.live-row .r-l1 { min-width: 0; }
.live-row .r-dev { color: var(--muted); }
.live-row.is-up .r-pc { color: var(--muted); }
.live-row.is-up .sp-l { stroke: var(--dim); }
.live-row.is-up .sp-a { fill: rgba(138,150,160,.08); }
.live-row.is-up .r-img img { filter: saturate(.35) brightness(.8); }
.row.born { animation: born .9s var(--ease); }
@keyframes born {
  0% { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; background: rgba(255,216,74,.18); }
  45% { max-height: 90px; padding-top: 11px; padding-bottom: 11px; opacity: 1; }
  100% { max-height: 90px; background: transparent; }
}
.row.born::before { background: var(--jose); opacity: 1; animation: born-bar 1.6s var(--ease) forwards; }
@keyframes born-bar { to { opacity: 0; } }

/* desktop: a real terminal, the page stays put and each column scrolls */
@media (min-width: 861px) {
  body { height: 100vh; height: 100dvh; overflow: hidden; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  .pulse { grid-template-rows: minmax(0, 1fr); }
  .col { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .col-h { top: 0; }
}
/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .deck { grid-template-columns: 1.2fr 1fr; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
  .facts > div { border-bottom: 0; }
  .facts > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts > div:last-child { border-right: 0; }
  .deck > .index { border-right: 0; }
}
@media (max-width: 860px) {
  :root { --top-h: 52px; }
  .top { gap: 12px; padding: 0 12px; }
  .tabs, .sol, .bar-r { display: none; }
  .live { min-width: 0; }
  .wm-b { display: none; }
  .btn-wallet { padding: 0 11px; font-size: 12px; }
  .deck { grid-template-columns: 1fr; min-height: 0; }
  .deck > * { border-right: 0; }
  .jose { padding: 14px 14px 12px; gap: 12px; }
  .jose-face { width: 78px; height: 78px; }
  .bubble-text { font-size: 14px; }
  .index { border-top: 1px solid var(--line); padding: 12px 14px; min-height: 0; }
  .index-sub { display: none; }
  .index-num { font-size: 46px; margin-top: 6px; }
  .ekg { left: 52%; width: 48%; height: 74%; bottom: 6px; }
  .live { white-space: nowrap; font-size: 11px; }
  .live .ago { display: none; }
  .btn-wallet { white-space: nowrap; }
  .btn-wallet .long { display: none; }
  .facts { grid-template-columns: 1.1fr 1.3fr .9fr .7fr; }
  .facts > div { padding: 10px 10px 11px; border-bottom: 0; border-right: 1px solid var(--line) !important; }
  .facts > div:last-child { border-right: 0 !important; }
  .facts dt { font-size: 10px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .facts dd { margin-top: 4px; }
  .facts dd b { font-size: 14px; }
  .facts dd span { display: none; }
  .facts dd #f-worst-pc { display: block; font-size: 10px; }
  .bubble { padding: 10px 12px 11px; }
  .bubble-text { font-size: 13.5px; min-height: 4.35em; }
  .col-h p { font-size: 11.5px; }
  .seg {
    position: sticky; top: var(--top-h); z-index: 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    padding: 8px 10px; background: rgba(11,14,17,.96); border-bottom: 1px solid var(--line);
  }
  .seg-b { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 8px 4px; font-weight: 600; font-size: 12px; color: var(--muted); display: flex; gap: 6px; justify-content: center; align-items: center; white-space: nowrap; }
  .seg-b i { padding: 3px 5px; }
  .seg-b.is-on { color: var(--ink); border-color: var(--line-2); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--jose); }
  .pulse { grid-template-columns: 1fr; }
  .col { display: none; border-right: 0; }
  .col.is-on { display: flex; }
  .col-h { position: static; padding: 12px 14px 10px; }
  .col-h h2 i { display: none; }
  .row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .r-img { width: 44px; height: 44px; }
  .row .btn-buy { display: none; }
  .r-l2 { gap: 8px; font-size: 12px; }
  .r-l2 .r-v { display: none; }
  .r-spark { width: 70px; }
  .m-h { padding: 14px; gap: 10px; }
  .m-img { width: 44px; height: 44px; }
  .m-id h3 { font-size: 16px; }
  .m-px b { font-size: 15px; }
  .m-chart { padding: 10px 12px 4px; }
  .m-note { display: none; }
  #chart { height: 220px; }
  .m-chg { grid-template-columns: repeat(3, 1fr); }
  .m-chg div:nth-child(3) { border-right: 0; }
  .m-chg div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .m-stats { grid-template-columns: repeat(2, 1fr); }
  .m-stats div:nth-child(2n) { border-right: 0; }
  .m-foot { flex-direction: column; align-items: stretch; padding: 14px; }
  .m-act { justify-content: space-between; }
  .modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .toasts { left: 12px; right: 12px; bottom: 14px; align-items: stretch; }
  .toast { max-width: none; }
  .bar { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tape-run { animation: none; }
}

.m-chg:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.m-chg:has(> :nth-child(3):last-child) div:nth-child(3) { border-right: 0; }
@media (max-width: 860px) {
  .live-row .ca span { display: none; }
  .live-row .ca { padding: 3px 5px; }
  .live-row .r-dev { display: none; }
  .m-chg:has(> :nth-child(3):last-child) div { border-bottom: 0 !important; }
}
