/* Nerve / Terminal 01. Only redesigned.html loads this plate and palette. */
html[data-board-renderer="terminal"],html[data-board-renderer="terminal"] .app[data-theme]{
  /* Background lifted out of Plinko's graphite (#101315, relative luminance
     0.0063) to a slightly cooler slate (#151f27, luminance 0.0129) so the two
     games do not read as the same page; every derived surface moved with it by
     the same amount. Measured contrast on --bg: --text 14.10:1, --hint 7.46:1,
     --blue 8.39:1, --gold 10.85:1, --price-up 8.45:1, --price-down 6.56:1 (each clears 4.5:1 on
     --panel, --chip and --tile too). */
  --bg:#151f27;--header:#151f27;--panel:#1f2b35;--tile:#2b3843;--edge:#3f4d57;
  --tshadow:#0c141a;--text:#f2ebdf;--hint:#a5afb3;--line:#ffffff16;--chip:#26323d;
  --blue:#f3a67a;--navy:#1b2833;--navy-edge:#3d505b;--market-acid:#eedac0;
  /* PRICE DIRECTION is read like a stock chart: rising green, falling red.
     The chart line uses them for direction; the live TON quote uses them for
     profit/loss. --market-up stays persimmon because styles.css spends it as a
     general accent on the brand head, links and stat chips, and the terminal's
     porcelain/persimmon identity lives there. Neither green nor red can be
     confused with the gold of the cash-out slab. */
  --price-up:#2fd27a;--price-down:#ff7a6b;
  --market-up:#f3a67a;--market-down:#ff7a6b;
  --gold:#efcc83;--gold-edge:#c19d56;--gold-shadow:#826538;--gold-ink:#302617;--gold-text:#efcc83;
  --red:#ff7a6b;--red-text:#ff9a8d;--market-rgb:47,210,122;
}
html[data-board-renderer="terminal"] body{background:var(--bg)}
.app{max-width:686px;overflow:clip;background:var(--bg);border:0}
.app.market-up{--market-rgb:47,210,122}
.app.market-down{--market-rgb:255,122,107}
.app.quake{animation:none}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.brandhead{min-height:52px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.brandhead::before{display:none}
.brandhead .btitle{font:800 18px Manrope,system-ui;letter-spacing:-.06em;color:var(--text);text-transform:none}
.brandhead .btitle span{font-size:11px;letter-spacing:0;color:var(--hint);font-weight:500}
.gheader{gap:6px;box-shadow:none;background:var(--bg)}
.gheader .htitle{min-width:0;text-align:left}
.gheader .htitle b{font:800 12px Manrope,system-ui;letter-spacing:-.02em}
.gheader .htitle span{display:none}
#scr-game .gheader{height:calc(40px + max(env(safe-area-inset-top,0px),var(--tg-safe-top,0px)))}
.gheader :is(.tgh-pill,.step-back,.lobby-back){padding-inline:5px;font-size:9px;gap:3px;margin-right:0}
.gheader .tgw-chip{padding-inline:5px;gap:3px}
.gheader .tgw-addr{font-size:9px}.gheader .tgw-bal{font-size:10px}
.hbtn{border-radius:7px;background:var(--chip)}
.fairbtn{font-size:22px;color:var(--blue)}
.col{gap:8px;padding-top:10px}
#scr-home .col>*{flex-shrink:0}
.introcard{display:flex;align-items:center;min-height:102px;padding:6px 0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
.introcard .mtitle{font:800 25px/1.12 Manrope,system-ui;letter-spacing:-.06em;text-transform:none;color:var(--text);z-index:1}
html[data-board-renderer="terminal"] [data-theme] .introcard .mtitle{color:var(--text)}
.hero-terminal{display:block;width:79px;height:100px;margin-left:auto;background:url(art/redesigned/terminal.webp) center/contain no-repeat;transform:rotate(7deg)}
.namerow{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px}
.namerow .tgh-cta{width:auto;min-width:96px;margin:0;padding:10px 11px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:700 11px Manrope,system-ui}
.field{border-radius:9px;background:var(--panel);padding:10px 12px;font-size:16px;min-width:0}
.field:focus{border-color:var(--blue)}
.lsection{padding:11px 12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;gap:8px}
.flabel{font:700 10px Manrope,system-ui;letter-spacing:.04em;color:var(--hint);text-transform:uppercase}
.hint-line{font:500 10px/1.45 Manrope,system-ui;color:var(--hint)}
.lsection>.hint-line{text-align:left}
details.lsection{display:block}
details>summary{cursor:pointer;list-style:none}
details>summary::-webkit-details-marker{display:none}
details>summary::after{content:'+';float:right;color:var(--hint)}
details[open]>summary::after{content:'−'}
details.lsection[open]>:not(summary){margin-top:9px}
#terminal-test-label{float:none;margin-left:7px;color:var(--blue);font-size:9px}
.quick-tier-btn{display:flex;align-items:baseline;justify-content:center;gap:5px;padding:9px 4px;border:1px solid var(--edge);border-radius:8px;box-shadow:none;font:700 19px "IBM Plex Mono",monospace;background:var(--chip)}
.quick-tier-btn small{font:700 9px Manrope,system-ui;color:var(--hint)}
.stepper .sbtn{width:32px;height:32px;border:1px solid var(--edge);box-shadow:none;border-radius:8px;background:var(--chip)}
.stepper .sval{font:700 21px "IBM Plex Mono",monospace;letter-spacing:-.07em;color:var(--text)}
.stepper>.hint-line{margin-left:auto}
.prize-summary{padding-top:7px;border-top:1px solid var(--line)}
.prize-summary summary b{display:block;font:700 13px Manrope,system-ui;color:var(--gold-text)}
.prize-summary summary b span{font-weight:500;font-size:10px;color:var(--hint)}
.prize-summary summary small{display:block;margin-top:2px;font:500 10px Manrope,system-ui;color:var(--hint)}
.prize-summary summary::after{margin-top:-22px}
.prize-summary>div{padding-top:8px;font:500 10px/1.5 Manrope,system-ui;color:var(--hint)}
.chipbtn{padding:7px 10px;border-radius:7px;background:var(--chip);font-size:10px}
.chipbtn.on{background:#573b2c;border-color:var(--blue);color:#ffd5b9}
.gold-slab,.app.nerve-live #cash-btn:not(.dim){min-height:50px;padding:13px 8px;border:1px solid var(--gold-edge);border-radius:11px;background:linear-gradient(135deg,#f3d89b,#dfb765);box-shadow:inset 0 1px 0 #fff0c6,0 3px 0 var(--gold-shadow);color:var(--gold-ink);font:800 15px Manrope,system-ui;animation:none}
.gold-slab .sheen{opacity:.3;animation-duration:12s}
.gold-slab.dim{border-color:var(--edge);background:var(--chip);box-shadow:none;color:var(--hint)}
.ghost-slab{min-height:42px;padding:10px 12px;border:1px solid var(--edge);border-radius:9px;box-shadow:none;font:700 12px Manrope,system-ui;color:var(--text)}
.joinrow{display:flex;gap:8px}.joinrow .field{flex:1}.joinrow .ghost-slab{flex:none}
#code-input{letter-spacing:.08em;text-transform:uppercase}
.blue-link,.rdone{color:var(--blue)}
.gfooter{gap:8px;padding-top:10px;background:var(--bg)}
.desk-ticket{display:flex;justify-content:space-between;align-items:center;background:none;border:0;padding:16px 0;box-shadow:none}
.desk-ticket small{font:700 9px Manrope,system-ui;color:var(--hint)}
.desk-ticket .code{font:700 32px "IBM Plex Mono",monospace;color:var(--text);letter-spacing:.08em;text-shadow:none}
.invite-actions{display:flex;gap:5px}
body.group-entry .desk-ticket{display:none}
.prow{padding:12px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.prow.host{background:#2e3332;border-color:#8c7450}
.prow .pav{border:1px solid var(--edge);background:var(--tile);color:var(--text);border-radius:8px;box-shadow:none}
.prow .pname{font-size:12px}.prow .pmeta{font:500 9px Manrope,system-ui}
/* Image and screen share one box. No affine approximation or viewport JS. */
/* The plate is the game screen. The image has a transparent border, so its
   layout box can exceed the column by 13px while the visible bezel keeps
   about 10px of breathing room on a 375px phone. Other chrome keeps its inset. */
html[data-board-renderer="terminal"] #game-col{flex:1;justify-content:center;gap:0;padding-top:4px;padding-bottom:0;padding-inline:0;overflow-x:clip}
html[data-board-renderer="terminal"] #game-col>:not(#stage){margin-inline:14px}
#game-col.show-end-summary{justify-content:flex-start}
/* --terminal-chrome is everything the plate must share the column with:
   40px header + 66px footer + 26px for column breathing/safe-area reserve.
   The height cap uses the app's pre-zoom height, keeping the whole console
   and action visible at 320x568 and on scaled desktop screens.
   The artwork's alpha bounds (x=70..1326 on a 1372px plate) are slightly
   right of the image center, so -50.875% centers the visible bezel. */
#stage.nv-stage,.app.nerve-live #stage.nv-stage{width:min(calc(100% + 13px),calc((var(--tg-vh,100dvh) / var(--app-zoom,1) - var(--terminal-chrome,242px)) * .745652));max-width:699px;min-width:190px;aspect-ratio:1372/1840;position:relative;left:50%;transform:translateX(-50.875%);align-self:flex-start;flex:none;margin:0;padding:0!important;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;animation:none}
.terminal-plate{display:block;width:100%;height:100%;pointer-events:none;user-select:none}
#stage[data-renderer="fallback"] .terminal-plate{visibility:hidden}
#stage[data-renderer="fallback"] .terminal-screen{inset:4%;width:92%;height:92%;background:var(--panel);border:1px solid var(--edge)}
.terminal-screen{position:absolute;left:var(--screen-left);top:var(--screen-top);width:var(--screen-width);height:var(--screen-height);display:flex;flex-direction:column;gap:0;padding:5% 4% 3%;color:#f2ebdf;border-radius:8px;overflow:hidden;container-type:inline-size}
.terminal-topline{display:flex;justify-content:space-between;align-items:center;gap:6px;font:700 11px "IBM Plex Mono",monospace;flex:none}
.terminal-topline em{font:500 7px Manrope,system-ui;font-style:normal;color:#b3bcbf;white-space:nowrap}
.terminal-topline .open{color:#f3a67a}.terminal-topline .closed{color:#ff9a8d}
.terminal-quote{padding-top:6%;flex:none}
.terminal-quote>small{font:700 8px Manrope,system-ui;letter-spacing:.1em;color:#bbc1c0}
.terminal-quote .nv-mult{display:block;margin-top:2px;font:600 clamp(25px,14cqw,54px)/1.15 "IBM Plex Mono",monospace;letter-spacing:-.075em;color:#f6ebd8;text-shadow:none;animation:none;white-space:nowrap}
.terminal-quote .nv-mult.rising{color:var(--price-up)}
.terminal-quote .nv-mult.falling,.terminal-quote .nv-mult.crashed{color:var(--price-down)}
.terminal-quote .nv-market{display:flex;gap:8px;justify-content:flex-start;margin:4px 0 0;padding:0;background:none;border:0;font:500 9px "IBM Plex Mono",monospace;color:#b6bec0}
.terminal-quote .nv-market b{color:#d3dadc}.terminal-quote .nv-market em{color:#9da7aa;font-size:8px}
.terminal-quote .nv-market.rising b{color:var(--price-up)}
.terminal-quote .nv-market.falling b{color:var(--price-down)}
#stage .chart-shell{display:flex;flex:1;min-height:0;margin-top:10px;background:transparent;box-shadow:none;border:0;border-radius:0;overflow:hidden}
#stage #curve{display:block;width:100%;height:100%;max-height:none!important;margin:0!important;box-sizing:border-box}
.loss-scene{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:10px 5px 7px;text-align:center;cursor:pointer;background:linear-gradient(#180b0ad9,transparent 34%,transparent 54%,#190a0beb);color:#ffe4da}
.loss-scene[hidden]{display:none}
.loss-scene>b{font:800 clamp(12px,5cqw,22px)/1.1 "IBM Plex Mono",monospace;letter-spacing:.1em;text-shadow:0 0 12px #ff574f}
.loss-scene-bottom{display:flex;flex-direction:column;align-items:center;gap:3px;max-width:100%}
.loss-scene-bottom strong{font:800 clamp(10px,4.4cqw,20px)/1.1 "IBM Plex Mono",monospace;color:#ff9586}
.loss-scene-bottom span{font:600 clamp(7px,2.2cqw,10px)/1.25 Manrope,system-ui;color:#ffddd4}
.loss-scene-bottom button{min-height:32px;margin-top:2px;padding:4px 12px;border:1px solid #ff948b9e;border-radius:6px;background:#3a1518e8;color:#fff0e8;font:700 10px Manrope,system-ui;cursor:pointer}
.terminal-ticker{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:9px;margin-top:5px;border-top:1px solid #ffffff22;flex:none;font:500 7px "IBM Plex Mono",monospace;color:#b8bfc0}
.terminal-ticker :is(b,strong){color:#f2ebdf;font-weight:600}
.terminal-screen .live-strip,.terminal-screen .live-strip.entered{display:flex;flex-direction:column;gap:2px;flex:none;margin-top:5px;padding:4px 6px;background:#ffffff0a;border:1px solid #ffffff1f;border-radius:5px;overflow:visible}
.terminal-screen .live-strip .ls-head{padding:0;background:none;justify-content:space-between}
.terminal-screen .live-strip .ls-phase i{width:4px;height:4px}
.terminal-screen .live-strip .ls-phase b{font:700 7px "IBM Plex Mono",monospace;letter-spacing:.06em}
.terminal-screen .live-strip .ls-head em{font:700 9px "IBM Plex Mono",monospace;color:#f2ebdf}
.terminal-screen .live-strip .ls-grid{display:flex;flex-wrap:wrap;gap:2px 8px;padding:0}
.terminal-screen .live-strip .ls-grid span{flex-direction:row;align-items:baseline;gap:3px;padding:0;background:none}
.terminal-screen .live-strip .ls-grid small{font:600 6px Manrope,system-ui;letter-spacing:.05em;color:#9aa4a7}
.terminal-screen .live-strip .ls-grid b{font:600 7px "IBM Plex Mono",monospace;color:#e6ded2}
.terminal-screen .live-strip .ls-note{padding:0;font:500 6.5px/1.35 Manrope,system-ui;color:#b6bec0;background:none}
.terminal-screen .positions-head{display:flex;justify-content:space-between;gap:6px;padding:0;margin-top:3px;font:600 6.5px Manrope,system-ui;color:#9aa4a7}
.terminal-screen .positions-head b{color:#cfd6d8}
#stage .nv-poolmeta{font:500 7px/1.4 Manrope,system-ui;text-align:left;letter-spacing:0;color:#b8bfc0;margin-top:4px;max-width:none;flex:none}
#test-banner{display:none!important}
.positions-head{padding:0 1px;font:600 8px Manrope,system-ui;color:var(--hint)}
.positions-head b{font-weight:600;color:var(--hint)}
.scorerow{display:flex;gap:5px;flex:none}
.scard,.scard.on,.scard.banked,.scard.busted{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px;text-align:center;align-items:center;padding:8px 3px;border:1px solid var(--line);border-radius:8px;background:var(--panel);box-shadow:none;animation:none}
.scard.tappable{cursor:pointer;border-color:#987055;box-shadow:inset 0 -2px 0 #f3a67a50}
.scard.banked{border-color:#d1b67b66}.scard.busted{border-color:#a95c5066}
.scard .position-id,.scard .position-side,.scard .sstat small{display:none}
.scard .sname{padding:0;margin:0;max-width:100%;font:600 9px Manrope,system-ui;color:var(--text)}
.scard .sname i{display:none!important}
.scard .sstat{margin:0;min-height:0;font:600 10px "IBM Plex Mono",monospace;animation:none}
.scard .sstat b{font:600 11px "IBM Plex Mono",monospace;color:var(--hint)}
.scard .sstat.cash b{color:var(--gold-text)}.scard .sstat.bust b{font-size:8px;color:var(--red-text)}
#cash-btn{font:800 16px Manrope,system-ui;letter-spacing:0;text-transform:none;min-height:54px}
#cash-btn[data-live-countdown]::after{content:' · ' attr(data-live-countdown)}
.turnbar{justify-content:center;padding:0;background:none;border:0;border-radius:0;min-height:16px}
.turnbar .tb-wait{font:500 10px Manrope,system-ui;color:var(--hint)}
#tb-right{display:none}
#scr-game>.gfooter{gap:0;padding:4px 8px max(8px,env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px));background:var(--bg)}
#scr-game>.gfooter .turnbar{display:none}
/* The only .end-exit reveal rule is inherited from styles.css, gated on #end-summary. */
.live-strip,.live-strip.entered{background:var(--panel);border:1px solid var(--line);border-radius:8px}
.live-strip .ls-head{padding:5px 8px;background:none}
.live-strip .ls-phase b{font:700 9px Manrope,system-ui;color:var(--blue)}
.live-strip .ls-head em{font-size:11px}
.live-strip .ls-grid span{background:none;padding:3px 8px}.live-strip .ls-grid small{font:500 7px Manrope,system-ui}.live-strip .ls-grid b{font-size:8px}
.live-strip .ls-note{font:500 9px/1.4 Manrope,system-ui;padding:4px 8px;background:none}
.end-summary,.end-summary.all-busted{min-width:0;max-width:100%;background:var(--panel);border:1px solid var(--edge);box-shadow:none;padding:16px 10px;border-radius:12px}
.end-summary::before{display:none}
.end-kicker{font:700 9px Manrope,system-ui;color:var(--blue)}
.end-title{font:800 23px/1.12 Manrope,system-ui;letter-spacing:-.04em;text-transform:none;margin-top:9px}
.end-detail{font:500 11px/1.45 Manrope,system-ui;color:var(--hint);margin-top:7px}
.end-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.end-totals>span{padding:8px 5px;border-radius:8px;background:var(--chip)}
.end-totals small{font:600 8px Manrope,system-ui}.end-totals b{font-size:11px}
.end-ledger-title{display:none}.end-ledger{margin-top:12px;gap:6px}
.end-player{grid-template-columns:minmax(0,1fr) repeat(3,auto);gap:3px 6px;border:1px solid var(--line);background:var(--chip);padding:9px 6px}
.end-player.you{box-shadow:none;border-color:#b09260}.end-player.winner{background:var(--chip)}
.end-rank{display:none}.end-person b{font-size:11px}.end-person small{font-size:7px;line-height:1.45}
.end-cell small{font:500 7px Manrope,system-ui}.end-cell b{font-size:10px}
.end-summary .positive{color:var(--gold-text)}
.end-balance{display:none}
.end-receipt{border-color:var(--edge);background:var(--chip);color:var(--blue);font:600 11px Manrope,system-ui}
.sheet{background:var(--panel)}
.app :is(button,a,input,summary):focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:359px){.introcard .mtitle{font-size:22px}.terminal-topline{font-size:9px}.terminal-topline em{font-size:6px}.terminal-quote{padding-top:3%}.terminal-ticker{font-size:6px}.terminal-screen{padding-top:4%}.gheader .htitle b{font-size:10px}.end-summary,.end-summary.all-busted{padding-inline:8px}.end-title{font-size:20px}.end-totals>span{padding-inline:4px}.end-totals b{font-size:10px}.end-player{gap:3px 4px;padding-inline:5px}.end-cell b{font-size:9.5px}.terminal-topline em{letter-spacing:.08em;word-spacing:.3em}}
@media(prefers-reduced-motion:reduce){.app *,.app *::before,.app *::after{animation:none!important;transition:none!important}}

/* ── Tension FX (tools/nerve-3d/PASS3.md sheets, driven by terminal-fx.js) ──
   Pure decoration over the plate. Every placement, grid and file name comes
   from art/redesigned/fx/fx.json at runtime — the JS writes left/top/width/
   height as percentages of the plate box, so the FX scale with the plate and
   nothing here repeats those numbers. The frame stepping is CSS steps() on
   background-position; the only JS writes are the chase speed (--fx-blink),
   the crack stage and the pulse variant. The schedule is fixed per elapsed
   round second and identical in every round — see terminal-fx.js.
   Blend modes are PASS3's: SCREEN for the chase, the pulses and the scanline
   (authored as light only), NORMAL for the hairline, which draws last. */
#stage.nv-stage{isolation:isolate}
.nv-fx{position:absolute;inset:0;pointer-events:none}
.nv-fx-layer{position:absolute;pointer-events:none;background-repeat:no-repeat;background-position:0% 0%;mix-blend-mode:screen;opacity:1;display:none}
.nv-fx[data-fx="live"] .nv-fx-layer{display:block}
.nv-fx-buttons{--fx-x-end:116.6667%;--fx-y-end:200%}
:is(.nv-fx-pulse-soft,.nv-fx-pulse-strong){--fx-x-end:133.3333%;--fx-y-end:150%}
.nv-fx-scanline{--fx-x-end:133.3333%;--fx-y-end:200%}
@keyframes nv-fx-x{from{background-position-x:0%}to{background-position-x:var(--fx-x-end)}}
@keyframes nv-fx-y{from{background-position-y:0%}to{background-position-y:var(--fx-y-end)}}
/* One 1s envelope per period, then nothing: 1000/7000 and 1000/5000 of the
   cycle. The periods are FX_SOFT_EVERY_MS / FX_STRONG_EVERY_MS. */
@keyframes nv-fx-gate7{0%{opacity:1}14.2857%{opacity:0}100%{opacity:0}}
@keyframes nv-fx-gate5{0%{opacity:1}20%{opacity:0}100%{opacity:0}}
/* Chase: 7 lights across, 2 sample rows, one step every --fx-blink. */
.nv-fx[data-fx="live"] .nv-fx-buttons{
  animation-name:nv-fx-x,nv-fx-y;
  animation-duration:calc(var(--fx-blink,420ms)*7),calc(var(--fx-blink,420ms)*14);
  animation-timing-function:steps(7,end),steps(2,end);
  animation-iteration-count:infinite}
/* Scanline: 8 frames at the authored 8 fps, on for the whole live round. */
.nv-fx[data-fx="live"] .nv-fx-scanline{
  animation-name:nv-fx-x,nv-fx-y;
  animation-duration:500ms,1000ms;
  animation-timing-function:steps(4,end),steps(2,end);
  animation-iteration-count:infinite}
/* Pulses: 12 authored frames at 12 fps inside a gated cycle. Exactly one
   variant is ever mounted — they are never stacked (PASS3 integration note). */
.nv-fx .nv-fx-pulse-soft,.nv-fx .nv-fx-pulse-strong{display:none}
.nv-fx[data-fx="live"][data-pulse="soft"] .nv-fx-pulse-soft,
.nv-fx[data-fx="live"][data-pulse="strong"] .nv-fx-pulse-strong{
  display:block;
  animation-name:nv-fx-x,nv-fx-y,nv-fx-gate7;
  animation-duration:333.3333ms,1000ms,var(--fx-pulse-every,7000ms);
  animation-timing-function:steps(4,end),steps(3,end),step-end;
  animation-iteration-count:infinite}
.nv-fx[data-fx="live"][data-pulse="strong"] .nv-fx-pulse-strong{
  animation-name:nv-fx-x,nv-fx-y,nv-fx-gate5;
  animation-duration:333.3333ms,1000ms,var(--fx-pulse-every,5000ms)}
/* Hairline: cumulative stages 1..4, no animation, normal blend, drawn last.
   Stage 0 (and every non-live phase) means draw nothing at all. */
.nv-fx-crack{mix-blend-mode:normal;background-position-x:0%}
.nv-fx[data-fx="live"] .nv-fx-crack{display:none}
.nv-fx[data-fx="live"][data-stage="1"] .nv-fx-crack{display:block;background-position-x:0%}
.nv-fx[data-fx="live"][data-stage="2"] .nv-fx-crack{display:block;background-position-x:33.3333%}
.nv-fx[data-fx="live"][data-stage="3"] .nv-fx-crack{display:block;background-position-x:66.6667%}
.nv-fx[data-fx="live"][data-stage="4"] .nv-fx-crack{display:block;background-position-x:100%}
/* Reduced motion: no chase, no hairline, no pulses, no scanline — the plate is
   left exactly as the art shipped it. The driver also refuses to mount state. */
@media(prefers-reduced-motion:reduce){.nv-fx,.nv-fx .nv-fx-layer{display:none!important;animation:none!important}}

/* Legible positions outside the glass; colour + words identify every exit. */
.market-players{align-self:stretch;flex:none;margin-bottom:8px}
.market-players .positions-head{display:flex;justify-content:space-between;margin-bottom:6px;font-size:9px}
.market-players .scorerow{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:5px}
.market-players .scard{min-height:48px;padding:7px 4px;justify-content:center;border-top:2px solid var(--seat-color);gap:5px}
.market-players .scard .sname{width:100%;font-size:10px;line-height:1.15;min-height:23px;white-space:normal;overflow-wrap:anywhere}
.market-players .scard .sstat b{font:600 9px 'IBM Plex Mono',monospace}
.market-players .scard.on .sstat b{color:#9dcbb9}
.market-players .scard.banked{background:#302e24}
.market-players .scard.dc{opacity:.7}
.cash-estimate{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 4px 7px;text-align:left}
.cash-estimate[hidden]{display:none}
.cash-estimate span{display:flex;flex-direction:column;gap:2px}
.cash-estimate span:last-child{text-align:right}
.cash-estimate small{font:600 9px Manrope,system-ui;color:var(--hint)}
.cash-estimate b{font:600 15px 'IBM Plex Mono',monospace;color:var(--text);font-variant-numeric:tabular-nums}
.cash-estimate .profit{color:var(--price-up)}.cash-estimate .loss{color:var(--price-down)}
.cash-estimate-note{font:500 8px Manrope,system-ui;color:var(--hint)}
@media(max-width:359px){.market-players .scard .sname{font-size:9px}.market-players .scard .sstat b{font-size:8px}.cash-estimate b{font-size:13px}}

/* Use the actual free column height, including Telegram/dev phone frames. */
@supports(height:1cqh){
  html[data-board-renderer="terminal"] #game-col{container-type:size;justify-content:flex-start}
  #stage.nv-stage,.app.nerve-live #stage.nv-stage{width:min(calc(100% + 13px),calc((100cqh - 90px) * .745652))}
}
