/* Harlo Atlas tab (Match Room final build). Shared bar, tokens and base come from shell.css, tokens.css, base.css.
   Motion is transform and opacity only. Dynamic values arrive as CSS custom properties from atlas.js. */
:root{--ease:cubic-bezier(.2,.7,.2,1);--livew:clamp(340px,27vw,400px)}
html,body{height:100%;overflow:hidden;background:var(--ground);color:var(--text);font-family:var(--font-body);font-size:var(--fs-body);-webkit-text-size-adjust:100%}
body{position:fixed;inset:0}
h1,h2,h3,h4{font-family:var(--font-display);margin:0}
button{color:inherit}
a{color:var(--accent-text)}
:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.skip{position:fixed;left:8px;top:-60px;z-index:200;padding:8px 12px;background:var(--accent-fill);color:#fff;border-radius:var(--r-sm)}
.skip:focus{top:8px}
.sr-copy{position:fixed;left:-999px;top:0;opacity:0}
.mono,.kv b,.hv-grid b{font-family:var(--font-mono)}
/* ---------- buttons, chips ---------- */
.btn{min-height:40px;padding:0 var(--sp-4);border-radius:var(--r-sm);border:1px solid var(--accent-line);background:transparent;color:var(--text);font-weight:500;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.btn:hover{border-color:var(--accent);background:var(--accent-wash)}
.btn.primary{background:var(--accent-fill);border-color:var(--accent-fill);color:#fff}
.btn.primary:hover{background:var(--accent-fill-hover)}
.btn.lg{min-height:48px;padding:0 24px;font-size:15px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.mini{min-height:28px;padding:0 10px;border-radius:var(--r-sm);border:1px solid var(--line-strong);background:var(--surface-2);font-size:12px;font-weight:500}
.mini:hover{border-color:var(--accent)}
.ibtn{width:40px;height:40px;border-radius:var(--r-sm);border:1px solid transparent;background:transparent;display:inline-grid;place-items:center;font-size:18px;color:var(--text);flex:none}
.ibtn:hover{background:var(--surface-2);border-color:var(--line-strong)}
.ibtn.sm{width:32px;height:32px;font-size:14px}
.ibtn svg{width:20px;height:20px}
.chip{min-height:40px;padding:0 12px;border-radius:var(--r-md);border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;white-space:nowrap}
.chip:hover{border-color:var(--accent-line)}
.chip svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chip.spin{font-family:var(--font-mono)}
.chip.spin .dot{width:8px;height:8px;border-radius:50%;background:var(--gold)}
.chip.spin.ready{border-color:var(--gold-line);background:var(--gold-wash)}
.chip.spin.ready .dot{background:var(--success)}
.chip .t.short{display:none}
.udot{width:8px;height:8px;border-radius:50%;background:var(--accent-text);display:inline-block;margin-left:6px}
.av.sm{width:24px;height:24px;font-size:10px}.av.xl{width:72px;height:72px;font-size:22px;border:3px solid var(--surface-1)}
.note{margin:0;color:var(--text-muted);font-size:var(--fs-small);line-height:1.5}
.note.pad{padding:14px}
.err{margin:0;color:var(--danger);font-size:var(--fs-small);min-height:0}
.err:empty,.okmsg:empty{display:none}
.okmsg{margin:0;color:var(--success);font-size:var(--fs-small)}
/* ---------- the Atlas ---------- */
#atlas{position:fixed;inset:0;z-index:1;overflow:hidden}
.boot{position:absolute;inset:0;display:grid;place-items:center;color:var(--text-muted);font-family:var(--font-mono);font-size:13px}
#scene{display:block;width:100%;height:100%;touch-action:manipulation}
.dotp{fill:#1b1b1b}
.f-lab{font:600 13px var(--font-display);fill:var(--text);letter-spacing:.12em}
.f-rate{font:500 15px var(--font-mono);fill:var(--text)}
.f-sub{font:12px var(--font-body);fill:var(--text-muted)}
.f-one .f-lab{font-size:11px;letter-spacing:.08em}.f-one .f-rate{font-size:13px}
.fhead.sha .f-lab{fill:var(--accent-text)}.fhead.scr .f-lab{fill:var(--gold)}
.live-dot-s{fill:var(--success)}
.live-line{font:500 12px var(--font-mono);fill:var(--text-muted);letter-spacing:.1em}
.split{stroke:var(--line);stroke-width:1;stroke-dasharray:2 6}
/* miners */
.node{cursor:pointer;outline:none;transform:translate(var(--x,0px),var(--y,0px));transition:transform .8s var(--ease),opacity .3s}
.node .drift{animation:drift var(--dur,12s) ease-in-out var(--delay,0s) infinite}
@keyframes drift{0%,100%{transform:translate(0,0)}50%{transform:translate(var(--dx,0),var(--dy,0))}}
.node .hit{fill:transparent}
.node .sc{transform:scale(var(--s,1));transition:transform .8s var(--ease)}
.node .ring{fill:none;stroke-width:3}
.node.sha .ring{stroke:var(--accent)}.node.scr .ring{stroke:var(--gold)}
.node .ring2{fill:none;stroke-width:1.5;opacity:.9}
.node.sha .ring2{stroke:var(--gold)}.node.scr .ring2{stroke:var(--accent)}
.node .halo{fill:none;stroke:#fff;stroke-width:2;opacity:0;transition:opacity .15s}
.node:hover .halo,.node:focus-visible .halo{opacity:.7}
.node .ini{font:500 12px var(--font-body);fill:#fff;pointer-events:none}
.node image{pointer-events:none}
.node .lbl{font:500 11px var(--font-mono);fill:var(--text);pointer-events:none;paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round}
.node .lbl2{font:500 10.5px var(--font-mono);fill:var(--text-muted);pointer-events:none;paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round}
.focus .node:not(.hot){opacity:.2}
.node.hot .ring{stroke-width:4}
.node.picked .drift{animation:none}
.node.picked .halo{opacity:1;stroke-dasharray:5 4}
.node.talk .ring{stroke:#fff;stroke-width:5}
/* lanes */
.lane{cursor:pointer;outline:none;transition:opacity .3s}
.l-bg{fill:var(--surface-1);stroke:var(--line);stroke-width:1}
.lane:hover .l-bg{stroke:var(--line-strong)}
.lane:focus-visible .l-bg{stroke:var(--accent-text);stroke-width:2}
.lane.hot .l-bg{stroke:var(--cc);stroke-width:2}
.focus .lane:not(.hot){opacity:.4}
.l-name{font:600 15px var(--font-display);fill:var(--text)}
.l-algo{font:12px var(--font-body);fill:var(--text-muted)}
.l-rate{font:500 17px var(--font-mono);fill:var(--text)}
.l-sub{font:500 11px var(--font-mono);fill:var(--text-muted)}
.l-tick{font:600 13px var(--font-display);fill:var(--text)}
.l-plus{font:500 11px var(--font-mono);fill:var(--text-muted)}
.l-div{stroke:var(--line-strong);stroke-width:1;stroke-dasharray:3 4}
.spark{fill:none;stroke:var(--cc);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;opacity:.9}
.c-cap{font:500 11px var(--font-mono);fill:var(--text-muted)}
.c-cap.hunt{fill:var(--text)}
.cube polygon{stroke:#000;stroke-width:1;stroke-linejoin:round}
.cube .c-t{fill:var(--cc)}
.cube .c-l{fill:color-mix(in srgb,var(--cc) 62%,#000)}
.cube .c-r{fill:color-mix(in srgb,var(--cc) 38%,#000)}
.cube.hunt polygon{fill:var(--cc);fill-opacity:.3;stroke:var(--cc);stroke-width:1.5;stroke-dasharray:4 3}
.cube.hunt .cb{transform-box:fill-box;transform-origin:center;animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(.88);opacity:.45}50%{transform:scale(1.14);opacity:1}}
.cube.earlier polygon{fill:var(--cc,#555);fill-opacity:.1;stroke:var(--text-muted);stroke-dasharray:3 3}
.fcube{cursor:pointer}
.fcube:hover .cube polygon{stroke:#fff}
/* flows: hashrate running from each ring into the lane of the coin it hashes */
.flow{fill:none;stroke-width:var(--w,1px);stroke-linecap:round;opacity:.14;transition:opacity .25s}
.flow.sha{stroke:var(--accent-text)}.flow.scr{stroke:var(--gold)}
.flow.on,.flow.hov{opacity:.95;stroke-dasharray:6 8;animation:flowmove 1.2s linear infinite}
.focus .flow:not(.on):not(.hov){opacity:.04}
.flow.pulse{opacity:1;stroke-dasharray:14 10;animation:flowmove .7s linear 2,fpulse 1.6s ease-out}
@keyframes flowmove{to{stroke-dashoffset:-28}}
@keyframes fpulse{0%{opacity:1}100%{opacity:.14}}
/* links */
.link{fill:none;stroke-linecap:round}
.link.coin{stroke:var(--text-muted);stroke-width:1;stroke-dasharray:2 5;opacity:.8}
.link.panel{stroke:var(--accent-text);stroke-width:2;stroke-dasharray:6 5}
.link-dot{fill:var(--accent-text)}
/* chat bubbles + spotlight */
.bubble{position:absolute;left:0;top:0;transform:translate(var(--x),var(--y)) translate(-50%,-100%);max-width:230px;padding:6px 10px;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--accent-line);font-size:12px;line-height:1.35;pointer-events:none;animation:bub 6.5s ease both;z-index:5}
.bubble b{font-weight:600;margin-right:4px;color:var(--accent-text)}
@keyframes bub{0%{opacity:0}6%{opacity:1}88%{opacity:1}100%{opacity:0}}
.callout{position:absolute;left:0;top:0;transform:translate(var(--x,0px),var(--y,0px));width:272px;padding:12px;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--accent);display:grid;gap:10px;z-index:6;animation:rise .25s var(--ease) both}
.callout .row{display:flex;gap:8px;align-items:center}
@keyframes rise{from{opacity:0}to{opacity:1}}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--success);animation:blink 2s ease-in-out infinite}
@keyframes blink{50%{opacity:.35}}
#hud{position:fixed;z-index:20;left:50%;bottom:14px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 2*var(--dockw) - 360px - 340px);display:grid;gap:8px;justify-items:center}
.coinrow{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.coin{min-height:40px;padding:0 12px;border-radius:var(--r-md);border:1px solid var(--line-strong);background:var(--surface-1);display:inline-flex;align-items:center;gap:8px;font-size:13px}
.coin img{width:20px;height:20px}.coin b{font-family:var(--font-display);font-weight:600}.coin span{font:500 12px var(--font-mono);color:var(--text-muted)}
.coin:hover{border-color:var(--accent-line)}.coin[aria-pressed=true]{border-color:var(--accent);background:var(--accent-wash)}
.readout{margin:0;font:500 12px var(--font-mono);color:var(--text-muted);text-align:center}
/* ---------- hover card ---------- */
#hover{position:fixed;left:0;top:0;z-index:70;width:244px;padding:12px;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);pointer-events:none;display:grid;gap:10px;transform:translate(var(--hx,0px),var(--hy,0px))}
.hv-top{display:flex;align-items:center;gap:10px}.hv-top b{font:600 15px var(--font-display)}
.hv-rank{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted)}.hv-sub{margin-left:auto;font-size:12px;color:var(--text-muted)}
.hv-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.kv{display:grid;gap:1px;min-width:0}.kv span{font-size:11px;color:var(--text-muted);letter-spacing:.02em}.kv b{font-weight:500;font-size:13px;overflow-wrap:anywhere}
.hv-hint{font-size:12px;color:var(--accent-text)}
/* ---------- panel / bottom sheet ---------- */
#panel{position:fixed;z-index:45;top:76px;right:12px;bottom:12px;width:var(--pw);min-width:360px;display:flex;flex-direction:column;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);transform:translateX(calc(100% + 24px));visibility:hidden;transition:transform .38s var(--ease),visibility 0s .38s;outline:none;overflow:hidden}
#panel.open{transform:none;visibility:visible;transition:transform .38s var(--ease),visibility 0s}
.grab{display:none}
.ph{flex:none;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;border-bottom:1px solid var(--line);min-height:56px}
.ph-t{flex:1;min-width:0}.ph-t h2{font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ph-t small{display:block;color:var(--text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-a{display:flex;align-items:center;gap:6px;flex:none}
.pb{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;display:flex;flex-direction:column}
.pb.chatmode{overflow:hidden}
.pad{padding:14px 16px;display:grid;gap:14px;align-content:start}
.pad h4,.box h4,.p-sec h4{font:600 13px var(--font-display);letter-spacing:.04em;margin:0 0 8px;color:var(--text)}
.box{padding:14px;border-radius:var(--r-md);border:1px solid var(--line);background:var(--surface-1);display:grid;gap:10px;align-content:start}
.box h4,.box h3{margin:0}
.sub-tabs{flex:none;display:flex;gap:4px;padding:8px 12px;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}
.sub-tabs::-webkit-scrollbar{display:none}
.sub-tabs button{flex:none;min-height:40px;padding:0 14px;border-radius:var(--r-sm);border:1px solid transparent;background:transparent;color:var(--text-muted);font-weight:500;font-size:13px;white-space:nowrap;display:inline-flex;align-items:center}
.sub-tabs button:hover{color:var(--text);background:var(--surface-2)}
.sub-tabs button.on{color:var(--text);background:var(--accent-wash);border-color:var(--accent-line)}
.pad>.tabs,.range .sub-tabs{padding:0;border:0}
.range{display:flex;align-items:center;justify-content:space-between;gap:10px}.range h4{margin:0}
.chips{display:flex;gap:6px;flex-wrap:wrap}.chips.scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.chip.sel{min-height:40px;flex:none}.chip.sel img{width:18px;height:18px}.chip.sel.on{border-color:var(--accent);background:var(--accent-wash)}
.chip.static{min-height:32px}
.cc{color:var(--cc,var(--text))}
.kvs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.kvs.big .kv b{font-size:15px}
.wrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px;min-width:0}
.wrow:last-child{border-bottom:0}.wrow b{font-family:var(--font-mono);font-weight:500;display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.wrow span{color:var(--text-muted);text-align:right;font-size:12px;overflow-wrap:anywhere}
.on-dot,.off-dot{width:8px;height:8px;border-radius:50%;flex:none}.on-dot{background:var(--success)}.off-dot{background:var(--text-faint)}
.neg{color:var(--danger)!important}
.linkline{display:flex;justify-content:space-between;gap:10px;width:100%;min-height:40px;align-items:center;padding:0;border:0;background:transparent;text-align:left;color:var(--accent-text);font-size:13px}
.linkline:hover{text-decoration:underline}.linkline small{color:var(--text-muted)}
.linkrow{display:flex;gap:8px}.linkrow input{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text-muted);font:500 12px var(--font-mono)}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tiles>div{padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);display:grid;gap:2px;min-width:0}
.tiles span{font-size:11px;color:var(--text-muted)}.tiles b{font:500 17px var(--font-mono);overflow-wrap:anywhere}

/* rank + badges */
.rk-ico{display:inline-grid;place-items:center;width:20px;height:20px;color:var(--accent-text)}
.rk-ico.hi{color:var(--gold)}
.rk-ico svg{width:18px;height:18px}.rk-ico.big{width:34px;height:34px;border-radius:50%;border:1px solid currentColor}.rk-ico.big svg{width:20px;height:20px}
.bdg-row{display:flex;flex-wrap:wrap;gap:6px}
.bdg{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 9px 0 7px;border-radius:var(--r-round);border:1px solid color-mix(in srgb,var(--bc) 55%,transparent);background:color-mix(in srgb,var(--bc) 12%,transparent);color:var(--bc);font:500 12px var(--font-mono)}
.bdg svg{width:14px;height:14px}
.rk-list{display:grid;gap:8px}
.rk-row{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:var(--r-md)}
.rk-row.me{border-color:var(--accent)}
.rk-badge{display:grid;justify-items:center;gap:2px}.rk-badge small{font:500 11px var(--font-mono);color:var(--text-muted)}
.rk-main{flex:1;min-width:0}.rk-main b{font-family:var(--font-display);font-weight:600}.rk-main p{margin:2px 0;font-size:13px;color:var(--text-muted)}.rk-main small{font:500 11px var(--font-mono);color:var(--text-muted)}
.rk-count{text-align:center}.rk-count b{display:block;font:500 16px var(--font-mono)}.rk-count small{font-size:11px;color:var(--text-muted)}
.bdg-set{gap:8px}.bdg-set h4 em{font-style:normal;color:var(--text-muted);font-weight:400}
.bdg-level{display:flex;gap:10px;align-items:center;font-size:13px;color:var(--text-muted)}
/* coins panel */
.coin-card{margin:0 16px 14px;padding:14px;border:1px solid var(--line);border-radius:var(--r-md);display:grid;gap:12px;scroll-margin-top:8px}
.coin-card.sel{border-color:var(--cc)}
.pad+.coin-card{margin-top:0}
.ps-head{display:flex;align-items:center;gap:10px}.cic{width:28px;height:28px;margin-right:-14px}.cic:last-of-type{margin-right:0}
.ps-ht{flex:1;min-width:0}.ps-ht h3{font-size:16px}.ps-ht small{color:var(--text-muted);font-size:12px}
.ps-total{font:500 16px var(--font-mono);text-align:right}.ps-total small{display:block;color:var(--text-muted);font-size:11px}
.ps-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ps-side{padding:10px;border:1px solid var(--line);border-radius:var(--r-sm);display:grid;gap:8px;align-content:start;min-width:0}
.ps-side:last-child{grid-column:1/-1}
.ps-side-h{display:flex;flex-direction:column}.ps-side-h b{font-family:var(--font-display);font-weight:600;font-size:13px}.ps-side-h small{color:var(--text-muted);font-size:11px}
.ps-blocks{display:grid;gap:6px}.ps-blocks h4{margin:0}
.hc-head{margin-bottom:4px}.pc-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--text-muted)}
.pc-legend i{display:inline-block;width:18px;height:0;border-top:2px solid var(--c);margin-right:6px;vertical-align:middle}.pc-legend i.dash{border-top-style:dashed}.pc-legend b{font-family:var(--font-mono);font-weight:500;color:var(--text)}
.hc-plot{position:relative;width:100%}.hc-plot svg{display:block;max-width:100%}
.hc-grid{stroke:var(--line);stroke-width:1}.hc-ax{font:500 10px var(--font-mono);fill:var(--text-muted)}.pc-end{font:600 10px var(--font-display)}
.hc-cross{stroke:var(--text-muted);stroke-width:1;stroke-dasharray:3 3}
.hc-tip{position:absolute;left:0;top:0;transform:translate(var(--tx,0),var(--ty,0));z-index:3;pointer-events:none;padding:8px 10px;border-radius:var(--r-sm);background:var(--surface-2);border:1px solid var(--line-strong);font-size:11px;min-width:150px;display:grid;gap:3px}
.hc-tip>span{color:var(--text-muted)}.pc-row{display:flex;justify-content:space-between;gap:12px;color:var(--text-muted)}.pc-row b{font-family:var(--font-mono);font-weight:500;color:var(--text)}.pc-row.total{border-top:1px solid var(--line-strong);padding-top:3px}
.prof{display:grid;gap:14px;padding-bottom:20px}
.p-banner{height:96px;background:var(--surface-3);position:relative;overflow:hidden;flex:none}.p-banner img{width:100%;height:100%;object-fit:cover;display:block}
.p-id{display:flex;align-items:flex-end;gap:14px;padding:0 16px;margin-top:-38px;position:relative}
.p-id.nob{margin-top:16px}
.p-name{padding-bottom:4px;min-width:0}.p-name h3{font-size:22px;overflow-wrap:anywhere}
.p-sub{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--text-muted);font-size:13px}.p-sub .on{color:var(--success)}.sep{width:3px;height:3px;border-radius:50%;background:var(--text-faint)}
.prof>*:not(.p-banner):not(.p-id){margin:0 16px}
.p-actions{display:flex;gap:8px;flex-wrap:wrap}
.p-sec{display:grid;gap:6px}.p-stats{display:grid;gap:14px}.p-sec.private{padding:14px;border:1px dashed var(--line-strong);border-radius:var(--r-md)}.p-sec.private p{margin:0;color:var(--text-muted);font-size:13px}
.tbl{display:grid}
/* share dialog + toast */
.dlg{position:fixed;inset:0;z-index:400;background:#000d;display:grid;place-items:center;padding:16px;overflow:auto}
.dlg-card{width:min(680px,100%);padding:16px;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);display:grid;gap:12px}
.dlg-h{display:flex;align-items:center;justify-content:space-between}.dlg-h h3{font-size:17px}
.sc svg{display:block;width:100%;height:auto;border-radius:var(--r-sm);border:1px solid var(--line)}
.toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);z-index:500;padding:10px 16px;border-radius:var(--r-md);background:var(--surface-2);border:1px solid var(--accent-line);font-size:13px;max-width:calc(100vw - 32px);animation:rise .2s ease both}
.mem-h{padding:10px 14px 4px;font:600 12px var(--font-display);letter-spacing:.06em;color:var(--text-muted)}
.mem-list{list-style:none;margin:0;padding:4px 6px 12px;display:grid;gap:1px}
.mem{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:4px 8px;border:0;border-radius:var(--r-sm);background:transparent;text-align:left}
.mem:hover{background:var(--surface-2)}
.mem-n{flex:1;min-width:0;display:grid;gap:2px}.mem-n b{font:500 13px var(--font-mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mem-r{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted)}.mem-r .rk-ico{width:14px;height:14px}.mem-r .rk-ico svg{width:12px;height:12px}
.cico{width:14px;height:14px;margin-left:2px}
.mem-h2{flex:none;max-width:104px;text-align:right;font:600 12px var(--font-mono);color:var(--text);overflow-wrap:anywhere}
.pv{display:inline-block;padding:1px 6px;border-radius:4px;border:1px solid var(--gold-line);color:var(--gold);font:600 10px var(--font-display);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
#rcard{position:fixed;left:0;top:0;z-index:16;width:288px;transform:translate(var(--x,0px),var(--y,0px))}
.rl-halo circle{fill:none;stroke:var(--accent-text);stroke-width:2;transform-box:fill-box;transform-origin:center;animation:rlping 2.2s ease-out infinite;pointer-events:none}
.rl-halo .r2{animation-delay:1.1s}
@keyframes rlping{0%{transform:scale(.8);opacity:.95}100%{transform:scale(2.3);opacity:0}}

/* ---------- top bar extras: the small search field (desktop only) ---------- */
.topbar .search{position:relative;flex:0 1 260px;min-width:160px;display:flex;align-items:center}
.topbar .search>svg{position:absolute;left:12px;width:18px;height:18px;fill:none;stroke:var(--text-muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.topbar .search input{width:100%;height:40px;padding:0 12px 0 38px;border-radius:var(--r-sm);border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);font-size:14px;-webkit-appearance:none;appearance:none}
.topbar .search input::placeholder{color:var(--text-muted)}
.topbar .search input:focus{outline:none;border-color:var(--accent)}
.topbar .search input::-webkit-search-cancel-button{display:none}
.topbar .search{margin-left:0}
.qres{position:absolute;top:46px;left:0;width:340px;max-height:min(60vh,420px);overflow:auto;background:var(--surface-1);border:1px solid var(--line-strong);border-radius:var(--r-md);padding:6px;z-index:80}
.qh{padding:8px 8px 4px;font:600 11px var(--font-display);letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}
.qi{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:4px 8px;border:0;border-radius:var(--r-sm);background:transparent;text-align:left}
.qi:hover,.qi.on{background:var(--accent-wash)}
.qt{display:grid;min-width:0}.qt b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qt small{color:var(--text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qic{width:24px;height:24px;border-radius:50%;flex:none;object-fit:contain}.qic.th{display:grid;place-items:center;background:var(--surface-3);color:var(--text-muted)}
.qempty{padding:12px;color:var(--text-muted);font-size:13px}

/* ---------- Live now: the column in the right-hand slot ---------- */
#hud{position:fixed;z-index:20;left:var(--acx,50%);bottom:14px;transform:translateX(-50%);width:max-content;max-width:calc(100vw - var(--livew) - 80px);display:grid;gap:8px;justify-items:center}
#live,#panel{position:fixed;z-index:45;top:var(--topbar-h);right:10px;bottom:10px;width:var(--livew);display:flex;flex-direction:column;border-radius:var(--r-md);background:var(--surface-1);border:1px solid var(--line-strong);outline:none;overflow:hidden}
#live{z-index:30}
#panel{transform:translateX(calc(100% + 24px));visibility:hidden;transition:transform .38s var(--ease),visibility 0s .38s}
#panel.open{transform:none;visibility:visible;transition:transform .38s var(--ease),visibility 0s}
.lv-h{flex:none;padding:12px 16px 10px;border-bottom:1px solid var(--line);display:grid;gap:2px}
.lv-h h2{font-size:17px;font-weight:600}.lv-h small{color:var(--text-muted);font-size:12px}
.lv-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.lv-strip{border-bottom:1px solid var(--line)}
.lv-tabs{padding:8px 10px;border-bottom:1px solid var(--line)}
.lv-tabs button{padding:0 10px;min-height:38px}
.lv-body{height:330px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;border-bottom:1px solid var(--line)}
.lv-body .hashing{min-height:100%}
.pv{vertical-align:middle}
.sub-tabs button .pv{font-size:9px;padding:0 4px}
.mem-h{padding:10px 14px 4px;font:600 12px var(--font-display);letter-spacing:.06em;color:var(--text-muted)}
.chals{padding:12px 12px 16px;display:grid;gap:8px}
.chals-h{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.chals-h h3{font:600 14px var(--font-display)}
.chal{display:grid;gap:5px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface-1);color:var(--text);text-decoration:none}
a.chal:hover{border-color:var(--accent-line);background:var(--surface-2)}
.chal.live{border-color:var(--accent-line)}
.chal-t{display:flex;align-items:center;justify-content:space-between;gap:8px}.chal-t b{font:600 14px var(--font-display);min-width:0;overflow-wrap:anywhere}
.chal-m{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--text-muted)}
.chal-m .kind{padding:1px 7px;border-radius:var(--r-round);border:1px solid var(--line-strong);color:var(--text)}
.chal-tag{flex:1 1 100%;line-height:1.4}
.chal-n{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;color:var(--text-muted);min-height:18px}.chal-n b{font:500 13px var(--font-mono);color:var(--text)}
.chal-go{color:var(--accent-text);font-weight:500}
.readout.pad{padding:8px 16px 20px;text-align:left}

/* halo on the Bitcoin Cash lane's hunted block while a rally is live */
.rl-halo circle{fill:none;stroke:var(--accent-text);stroke-width:2;transform-box:fill-box;transform-origin:center;animation:rlping 2.2s ease-out infinite;pointer-events:none}
.rl-halo .r2{animation-delay:1.1s}
@keyframes rlping{0%{transform:scale(.8);opacity:.95}100%{transform:scale(2.3);opacity:0}}

/* ---------- narrower desktop ---------- */
@media (max-width:1100px){.topbar .search{flex:0 1 200px;min-width:120px}}
@media (max-width:1000px) and (min-width:821px){.topbar .search{display:none}}

/* ---------- phone: the scene on top, a bottom sheet with two heights holding Live now ---------- */
@media (max-width:820px){
  .topbar .search{display:none}
  .topbar .spin-cd{flex:1 0 100%;order:5}  /* the Atlas bar has no menu buttons, so the countdown takes the second row itself */
  #live{display:none!important}
  #hud{display:none!important}
  #panel{--peek:40dvh;--full:calc(100dvh - var(--topbar-h));left:0;right:0;top:auto;bottom:0;width:auto;height:var(--full);border-radius:14px 14px 0 0;border-width:1px 0 0;z-index:50;
    transform:translateY(calc(100% - var(--peek)));visibility:visible;transition:transform .34s var(--ease)}
  #panel.open[data-sheet=full]{transform:none}
  #panel.open[data-sheet=peek]{transform:translateY(calc(100% - var(--peek)))}
  #panel[data-sheet=peek] .pb{padding-bottom:calc(var(--full) - var(--peek))}
  #panel:not(.open){transform:translateY(100%);visibility:hidden}
  .grab{display:grid;place-items:center;flex:none;height:28px;width:100%;border:0;background:transparent;margin:0}.grab i{width:44px;height:5px;border-radius:3px;background:var(--line-strong)}
  .ph{min-height:48px;padding-top:0}
  .lv-body{height:300px}
  .p-banner{height:64px}.p-id{margin-top:-30px}.p-id.nob{margin-top:12px}.av.xl{width:64px;height:64px}
  .ps-grid{grid-template-columns:1fr}.ps-side:last-child{grid-column:auto}
  .toast{bottom:16px}
  .callout{width:calc(100vw - 16px);display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px}
  .callout .hv-grid{display:flex;gap:14px}.callout .note{flex-basis:100%}
  .dlg{padding:8px}
  .qres{position:fixed;top:60px;left:8px;right:8px;width:auto}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .node .drift{animation:none}
  .cube.hunt .cb{animation:none;opacity:.85}
  .flow.on,.flow.hov,.flow.pulse{animation:none;stroke-dasharray:none}
  .bubble{animation:none}
  .rl-halo .r2{display:none}.rl-halo .r1{animation:none;opacity:.7;transform:scale(1.4)}
}

/* ---------- Live now: Most active, Latest, and the Bitcoin Cash strip ---------- */
.mem-pos{flex:none;width:22px;text-align:right;font:500 12px var(--font-mono);color:var(--text-muted)}
.lt-list{list-style:none;margin:0;padding:4px 6px 12px;display:grid;gap:1px}
.lt{display:grid;gap:4px;padding:8px 10px;border-radius:var(--r-sm)}
.lt:hover{background:var(--surface-2)}
.lt-top{display:flex;align-items:center;gap:8px;min-width:0}
.lt-top small{color:var(--text-muted);font-size:11px;white-space:nowrap}
.lt-who{border:0;background:transparent;padding:0;color:var(--text);font:500 13px var(--font-mono);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.lt-who:hover{text-decoration:underline}
.lt-ch{margin-left:auto;flex:none;font:500 11px var(--font-mono);color:var(--accent-text);text-decoration:none}
.lt-ch:hover{text-decoration:underline}
.lt-k{font:600 10px var(--font-display);letter-spacing:.06em;text-transform:uppercase;color:var(--gold)}
.lt-body{margin:0;font-size:13px;line-height:1.4;color:var(--text);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
.lt-pool .lt-body{color:var(--text-muted)}
/* the strip in the Live now column: pace, then the pool figures, then the buttons on rows of their own
   (Rent and Point my miner share a row; a full-width button another add-on puts in .rl-acts gets its own row) */
.lv-strip .rl-sw{grid-template-columns:minmax(0,1fr);grid-template-areas:"sp" "ss" "acts";padding:16px;row-gap:10px}
.lv-strip .rl-sw .rl-acts{flex-direction:row;flex-wrap:wrap}
.lv-strip .rl-sw .rl-acts .rl-btn:not(.inv-btn){flex:1 1 0;min-width:0}
.lv-strip .rl-btn svg{margin-right:6px}
