@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('vendor/fonts/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('vendor/fonts/nunito-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600 900; font-display: swap; src: url('vendor/fonts/nunito-var-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* RU (pb-tokens.css) */
@font-face { font-family: 'Nunito'; font-weight: 600 900; font-display: swap; src: url('vendor/fonts/nunito-var-latin-ext.woff2') format('woff2'); unicode-range: U+0104-0107, U+0118-0119, U+011E-011F, U+0130, U+0141-0144, U+015A-015B, U+015E-015F, U+0179-017C; } /* tr / pl letters (pb-tokens.css) */
:root { --ink: #2b2440; --pink: #ff4fd8; --hot: #ff5fa2; --teal: #2fd0c8; --sun: #ffe14f; --cream: #fff6ec; --safe-t: env(safe-area-inset-top, 0px); --safe-b: max(0px, calc(env(safe-area-inset-bottom, 0px) - var(--vp-gap, 0px))); /* --vp-gap: src/ui/viewport.js (iOS 26 short viewport) */ --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); }
/* Layer tiers (src/ui/layers.js TIERS, docs/NAVIGATION.md; test/layers.test.js keeps them equal). World / HUD use 0-19.
   screen / sheet / modal / reward = the navigation stack: layers.js sets each layer's exact z inside its band. */
:root { --z-hud: 20; --z-screen: 100; --z-sheet: 200; --z-cover: 290; --z-modal: 300; --z-reward: 400; --z-toast: 500; --z-system: 600; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* background (owner bug 10-17, iPhone 16 Home Screen app): iOS 26 leaves a status-bar-tall band below a black-translucent
   web app (WebKit 301108, src/ui/viewport.js) and paints it in this colour; was pink #e58a8c, now the loader's dark bottom */
html, body { margin: 0; height: 100%; overflow: hidden; background: #170b2b; font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: none; overscroll-behavior: none; }
/* iOS 26 Home Screen app (WebKit 301108): the viewport is short only while the page is shorter than the screen; a root as
   tall as screen + top inset asks for the full one (frappe-ui #1284, iOS 26.2 simulator). min() with 100lvh: never taller
   than the screen; a no-op where the inset is 0 (Android fullscreen, opaque status bar) and in a browser tab (no match) */
@media (display-mode: standalone), (display-mode: fullscreen) { html { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); } }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.hidden { display: none !important; }
#gl { position: fixed; inset: 0; display: block; }
#stick-zone { position: fixed; inset: 0; z-index: 2; touch-action: none; }
#stick { position: fixed; z-index: 3; width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0 55%, rgba(255,255,255,0.22) 56% 60%, rgba(255,255,255,0.06) 61%); border: 3px solid rgba(255,255,255,0.55); transition: opacity .2s; }
#stick.idle { opacity: 0.45; }
html.desk #stick.idle { opacity: 0; }
#stick-knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd6ef 45%, #ff8fd0); box-shadow: 0 4px 0 rgba(43,36,64,.35), 0 0 18px rgba(255,79,216,.55); }

#hud { position: fixed; z-index: 5; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-t)) 12px 0; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hud-l { display: flex; align-items: center; gap: 8px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(160deg, #ffd36e, #ff8fb1); border: 3px solid #fff; box-shadow: 0 3px 0 rgba(43,36,64,.35); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hpbar { position: relative; width: 132px; height: 20px; border-radius: 12px; background: rgba(43,36,64,.6); border: 2.5px solid #fff; overflow: hidden; box-shadow: 0 3px 0 rgba(43,36,64,.3); }
#hp-fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(180deg, #8dff8a, #2fbf71); transition: width .15s; }
#hp-fill.low { background: linear-gradient(180deg, #ff9a9a, #ff3e5e); }
#hp-txt { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 15px; color: #fff; font-weight: 900; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.hud-r { display: flex; gap: 8px; align-items: center; margin-right: 0; }
.cashpill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 4px; border-radius: 18px; background: rgba(43,36,64,.72); border: 2.5px solid #fff; color: #fff; font-weight: 900; font-size: 16px; box-shadow: 0 3px 0 rgba(43,36,64,.3); }
.cashpill i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #a6ff8f, #2fbf71); color: #fff; font-size: 15px; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
#btn-set { pointer-events: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(43,36,64,.72); border: 2.5px solid #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(43,36,64,.3); }
#btn-set svg { width: 22px; height: 22px; fill: #fff; }
#minimap { position: fixed; top: calc(56px + var(--safe-t)); right: 12px; width: 92px; height: 92px; border-radius: 50%; box-shadow: 0 3px 0 rgba(43,36,64,.35), 0 0 0 1px rgba(43,36,64,.3); }

#objective { position: fixed; z-index: 5; top: calc(64px + var(--safe-t)); left: 12px; display: flex; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 14px; background: rgba(43,36,64,.75); color: #fff; font-size: 14px; border: 2px solid rgba(255,255,255,.8); }
#objective b { color: var(--sun); font-weight: 900; }
#toast { position: fixed; z-index: 6; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(.9); padding: 10px 18px; border-radius: 16px; background: rgba(43,36,64,.8); color: #fff; font-size: 18px; font-weight: 900; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#waypoint { position: fixed; z-index: 4; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(43,36,64,.4)); will-change: transform; } /* lowcpu 10-23: moved by transform at 20 Hz, its own layer: no main-thread repaint per move */

#btn-act { position: fixed; z-index: 6; right: 18px; bottom: calc(26px + var(--safe-b)); width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 35% 28%, #fff7c2, #ffd23f 45%, #ff9a1f); border: 4px solid #fff; color: var(--ink); font-size: 16px; font-weight: 900; box-shadow: 0 6px 0 rgba(43,36,64,.45), 0 0 26px rgba(255,190,60,.7); animation: pop .25s ease-out; touch-action: none; }
#btn-act[data-kind="exit"] { background: radial-gradient(circle at 35% 28%, #d9fffb, #4fe3d6 45%, #1fa7b8); }
#btn-act[data-kind="mission"] { background: radial-gradient(circle at 35% 28%, #ffe0f4, #ff6fc8 45%, #d6359a); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
#btn-act svg { width: 38px; height: 38px; fill: currentColor; }
#btn-act:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(43,36,64,.45); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

#nums { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.num { will-change: transform; position: absolute; left: 0; top: 0; display: none; font-weight: 900; font-size: 20px; color: #fff; -webkit-text-stroke: 1px var(--ink); text-shadow: 0 2px 0 var(--ink); margin: -14px 0 0 -20px; width: 40px; text-align: center; }
.num.on { display: block; animation: numpop .8s ease-out forwards; }
.num.on.b { animation-name: numpop2; }
.num.crit { color: var(--sun); font-size: 26px; }
.num.txt { color: #7dff6a; font-size: 18px; width: 80px; margin-left: -40px; }
@keyframes numpop { 0% { opacity: 0; scale: .5; } 15% { opacity: 1; scale: 1.25; } 30% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes numpop2 { 0% { opacity: 0; scale: .5; } 15% { opacity: 1; scale: 1.25; } 30% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
#bars { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.ebar { will-change: transform; position: absolute; left: 0; top: 0; width: 40px; height: 7px; border-radius: 4px; background: rgba(43,36,64,.75); border: 1.5px solid #fff; overflow: hidden; display: none; }
.ebar i { display: block; height: 100%; width: 100%; background: linear-gradient(180deg, #ff8a9a, #ff3e5e); }
#vignette { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; box-shadow: inset 0 0 90px 30px rgba(255,40,80,.65); }
#vignette.on { animation: hurt .45s ease-out; }
#vignette.on.b { animation-name: hurt2; }
@keyframes hurt { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hurt2 { 0% { opacity: 1; } 100% { opacity: 0; } }

.modal { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; place-items: center; background: rgba(43,36,64,.45); padding: 20px; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.card { width: min(340px, 100%); background: var(--cream); border-radius: 26px; border: 4px solid #fff; box-shadow: 0 10px 0 rgba(43,36,64,.4), 0 20px 50px rgba(43,36,64,.35); padding: 18px 18px 16px; text-align: center; animation: cardin .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes cardin { from { transform: translateY(30px) scale(.9); opacity: 0; } }
.card h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 900; color: var(--ink); }
.card p { margin: 0 0 12px; font-size: 14px; color: #6a5a7a; font-weight: 800; }
.card-art { margin: -6px -6px 8px; border-radius: 18px; overflow: hidden; height: 110px; }
.card-art svg { width: 100%; height: 100%; display: block; }
.rows { display: flex; gap: 8px; margin: 8px 0 14px; }
.rows > div { flex: 1; background: #fff; border-radius: 14px; padding: 8px 4px; box-shadow: inset 0 -3px 0 rgba(43,36,64,.08); }
.rows small { display: block; font-size: 11px; color: #9a8aa8; text-transform: uppercase; letter-spacing: .06em; }
.rows b { font-size: 20px; font-weight: 900; }
.btns { display: flex; gap: 10px; }
.btns button { flex: 1; height: 52px; border-radius: 18px; font-size: 18px; font-weight: 900; }
.btns .go { background: linear-gradient(180deg, #ff8fd0, #ff4fa8); color: #fff; box-shadow: 0 5px 0 #b02a78; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btns .ghost { background: #fff; box-shadow: 0 5px 0 rgba(43,36,64,.18); }
.btns button:active { transform: translateY(3px); box-shadow: none; }
/* the engine's old results card only: the meta UI results (src/meta-ui/results.js) reuse #rs-stars for the medals */
#results:not(.mu-host) #rs-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 6px; }
#results:not(.mu-host) #rs-stars i { width: 54px; height: 54px; }
#results:not(.mu-host) #rs-stars i:nth-child(2) { transform: translateY(-10px); width: 62px; height: 62px; }
#results:not(.mu-host) #rs-stars svg { width: 100%; height: 100%; fill: #e5d8ec; stroke: #fff; stroke-width: 1.5; }
#results:not(.mu-host) #rs-stars i.on svg { fill: var(--sun); stroke: #ff9a1f; animation: starin .4s cubic-bezier(.2,1.6,.4,1) backwards; animation-delay: inherit; }
#results:not(.mu-host) #rs-stars i.on { animation: none; }
@keyframes starin { from { transform: scale(0) rotate(-40deg); } }
#rs-rules { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; color: #9a8aa8; }
#rs-rules li.ok { color: #2fbf71; }
#rs-rules li::before { content: '\2022  '; }
#results.lost h2 { color: #d6355a; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; font-size: 15px; }
.seg { display: flex; background: #fff; border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { padding: 7px 10px; border-radius: 9px; font-size: 13px; }
.seg button.on { background: var(--hot); color: #fff; }

#fps { position: fixed; z-index: calc(var(--z-system) + 50); left: 8px; bottom: calc(8px + var(--safe-b)); padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.6); color: #b9ffb0; font: 600 11px/1.35 ui-monospace, Menlo, monospace; pointer-events: none; }
#fps b { color: #fff; font-size: 14px; }
/* transition loader (src/ui/transload.js; owner bug 10-17: the old flat #2b2440 fade sat at z 9 UNDER #mu-root, so the hub rail /
   energy pill / offer bubble stayed on an empty purple screen). Boot splash look; tier 'cover' (layers.js): over HUD,
   screens and sheets, under the story scene (.dlg, modal) and the system tier. While it is up, body.layer-cover hides
   every HUD / meta layer: ONE rule, nothing per element (only the canvas, the cover, the boot splash, the story scene,
   modal / reward layers = a forced choice, and the system bits stay). */
#fade { position: fixed; inset: 0; z-index: var(--z-cover); overflow: hidden; background: var(--pb-night, #24133f); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease-out, visibility 0s linear .25s; }
#fade.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .15s ease-in, visibility 0s; }
#fade.instant { transition: none; }
#fade.lite > * { display: none; }
body.layer-cover > :not(#gl):not(#fade):not(#loading):not(.dlg):not([data-ltier=modal]):not([data-ltier=reward]):not(#gl-lost):not(.gb-net):not(.gb-offline):not(#gb-upd-req):not(#fps):not(script):not(style) { visibility: hidden !important; }
#fade .tl-art { position: absolute; inset: 0; overflow: hidden; }
#fade .tl-poster { transition: opacity .3s ease-out; }
#fade .tl-poster.now { transition: none; } /* a decoded poster on a fresh cover: there from its first frame (transload2) */
#fade .logo { position: absolute; z-index: 4; top: calc(6.5% + var(--safe-t, 0px)); left: 0; right: 0; }
#fade .tl-ui { position: absolute; z-index: 5; left: 0; right: 0; top: 66%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; }
.tl-kick { color: var(--pb-sunbeam, #ffe58a); font: 800 12px/1.2 var(--pb-font-body, sans-serif); letter-spacing: .16em; text-transform: uppercase; text-align: center; text-shadow: 0 2px 0 var(--pb-ink, #1c0f2e); }
.tl-kick:empty, .tl-title:empty { display: none; }
.tl-title { margin-bottom: 6px; max-width: calc(90 * var(--svw, 1vw)); color: #fff; font: 400 30px/1.05 var(--pb-font-display, Impact, sans-serif); letter-spacing: .02em; text-transform: uppercase; text-align: center;
  -webkit-text-stroke: 2px var(--pb-ink, #1c0f2e); paint-order: stroke fill; text-shadow: 0 4px 0 var(--pb-ink, #1c0f2e), 0 0 22px rgba(255,79,216,.55); overflow-wrap: anywhere; }
.tl-fill { height: 100%; width: 0; border-radius: 3px; transition: width .2s ease-out;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,.2) 9px 17px), var(--pb-grad-mango, linear-gradient(180deg, #ffe98f, #ffc53a 48%, #ff9f1c));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.14), 2px 0 0 var(--pb-ink, #1c0f2e); }
.tl-txt { margin-top: 4px; color: #fff; font: 900 13px/1.2 var(--pb-font-body, sans-serif); letter-spacing: .08em; text-transform: uppercase; text-align: center; max-width: calc(86 * var(--svw, 1vw));
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 var(--pb-ink, #1c0f2e), 0 0 8px rgba(28,15,46,.85); }
@media (max-width: 380px) { .tl-title { font-size: 26px; } .tl-txt { font-size: 12px; letter-spacing: .04em; } }
#loading { position: fixed; inset: 0; z-index: var(--z-system); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(circle at 50% 78%, #ffd27a 0, #ff9a6a 18%, #e85a8a 45%, #6a3a8a 100%); transition: opacity .4s; }
#loading.gone { opacity: 0; pointer-events: none; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: .9; transform: rotate(-4deg); }
.logo span { font-weight: 900; font-size: 54px; letter-spacing: .02em; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(255,79,216,.8); }
.logo span + span { font-size: 70px; color: var(--sun); }
@media (orientation: landscape) and (max-height: 500px) { #btn-act { width: 88px; height: 88px; } .logo span { font-size: 40px; } .logo span + span { font-size: 52px; } }

/* v2 HUD (concept screens): objective progress, boss bar, car HP, name card, FTUE prompt, jobs */
#obj-prog { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
#obj-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3df2ff, #ffe14f); transition: width .2s; }
#objective { padding-bottom: 11px; }
#bossbar { position: fixed; z-index: 6; top: calc(116px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(300px, calc(74 * var(--svw, 1vw))); text-align: center; pointer-events: none; }
#bossbar span { display: inline-block; padding: 2px 12px; margin-bottom: 3px; border-radius: 10px; background: rgba(43,36,64,.8); color: #ffe14f; font-weight: 900; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
#bossbar div { height: 14px; border-radius: 8px; background: rgba(43,36,64,.75); border: 2.5px solid #fff; overflow: hidden; box-shadow: 0 3px 0 rgba(43,36,64,.3); }
#bossbar i { display: block; height: 100%; width: 100%; background: linear-gradient(180deg, #ff9a6a, #e8304a); transition: width .15s; }
#namecard { position: fixed; z-index: 8; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; font-weight: 900; font-size: 34px; color: #ffe14f; -webkit-text-stroke: 2px #2b2440; paint-order: stroke fill; text-shadow: 0 4px 0 #2b2440; white-space: nowrap; }
#bossbar.intro span { visibility: hidden; }
#namecard.on { animation: namecard 2.4s ease-out forwards; }
@keyframes namecard { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.6) rotate(-6deg); } 12% { opacity: 1; transform: translate(-50%,-50%) scale(1.1) rotate(-3deg); } 22% { transform: translate(-50%,-50%) scale(1) rotate(-3deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-60%) scale(1) rotate(-3deg); } }
#prompt { position: fixed; z-index: 7; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%) translateY(10px); max-width: calc(86 * var(--svw, 1vw)); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px; background: rgba(255,246,236,.96); color: #2b2440; font-weight: 900; font-size: 16px; border: 3px solid #fff; box-shadow: 0 6px 0 rgba(43,36,64,.35), 0 0 24px rgba(255,79,216,.35); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; text-align: center; }
#prompt.on { opacity: 1; transform: translateX(-50%) translateY(0); }
#prompt .hand { width: 26px; height: 26px; flex: none; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd6ef 60%, #ff8fd0); box-shadow: 0 0 0 3px rgba(255,79,216,.35); animation: drag 1.2s ease-in-out infinite; }
@keyframes drag { 0%,100% { transform: translate(-6px, 4px); } 50% { transform: translate(8px, -6px); } }
.ebar.ally i { background: linear-gradient(180deg, #8af7ff, #2fbfd0); }
#btn-jobs { position: fixed; z-index: 6; left: 12px; top: calc(110px + var(--safe-t)); display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 8px; border-radius: 19px; background: linear-gradient(180deg, #ff8fd0, #ff4fa8); color: #fff; font-weight: 900; font-size: 14px; border: 2.5px solid #fff; box-shadow: 0 3px 0 rgba(43,36,64,.35); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
#btn-jobs svg { width: 20px; height: 20px; fill: #fff; }
body.in-mission #btn-jobs { display: none; }
.jobs-card { max-height: calc(80 * var(--svh, 1vh)); display: flex; flex-direction: column; }
#jobs-list { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; padding: 2px; }
.job { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; text-align: left; box-shadow: inset 0 -3px 0 rgba(43,36,64,.08); }
.job b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #ffe14f; font-weight: 900; flex: none; }
.job.done b { background: #7dff6a; }
.job span { flex: 1; font-weight: 900; font-size: 15px; display: flex; flex-direction: column; }
.job small { font-size: 11px; color: #9a8aa8; text-transform: uppercase; letter-spacing: .05em; }
.job em { display: flex; gap: 1px; } .job em i { width: 16px; height: 16px; } .job em svg { width: 100%; height: 100%; fill: #e5d8ec; } .job em i.on svg { fill: #ffcf2a; }
.job.locked { opacity: .45; }
.kind { display: inline-block; margin-top: 2px; padding: 2px 10px; border-radius: 9px; background: #2b2440; color: #ffe14f; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.mstars { display: flex; justify-content: center; gap: 3px; margin: -2px 0 6px; } .mstars i { width: 20px; height: 20px; } .mstars svg { width: 100%; height: 100%; fill: #e5d8ec; } .mstars i.on svg { fill: #ffcf2a; }
/* loading screen (owner 10-15): key-art slides with a slow Ken Burns move, logo, chunky squared bar at the bottom third
   with the status line under it, credits plate + version. One progress value drives bar + text (src/ui/loader.js). */
#loading { display: block; padding: 0; overflow: hidden; background: var(--pb-night, #24133f); }
#loading.ld-off { display: none; }
/* otaresume 10-31 (src/game-otaresume.js): the same splash as "Updating..." over a long-resume OTA switch: key art + logo + text only */
#loading.ld-ota { display: block; opacity: 1; pointer-events: auto; }
#loading.ld-ota .ld-bar, #loading.ld-ota #ld-sound, #loading.ld-ota #ld-note, #loading.ld-ota .ld-stores { display: none; }
#loading.ld-ota #ld-txt { font-size: 15px; animation: ldOta 1.2s ease-in-out infinite alternate; }
@keyframes ldOta { from { opacity: .55; } to { opacity: 1; } }
#loading .ld-slides { position: absolute; inset: 0; overflow: hidden; }
.ld-slide { position: absolute; inset: 0; background: center 30% / cover no-repeat; opacity: 0; transform-origin: 50% 42%; will-change: transform, opacity; backface-visibility: hidden; }
.ld-slide.on { opacity: 1; z-index: 2; }
.splash-art { background-image: url('assets/splash.jpg'); background-image: image-set(url('assets/img/splash.a085d233-640.webp') type('image/webp'), url('assets/splash.jpg') type('image/jpeg')); }
/* v3 camera (owner 10-15): one slow PUSH-IN per slide toward its subject (transform-origin set per slide by
   src/ui/loader.js from its focal point), one way, eased; restarted every time the slide comes up */
.ld-slide.push { animation: ldPush 9.6s cubic-bezier(.22,.08,.3,1) forwards; }
@keyframes ldPush { from { transform: translate3d(0, 0, 0) scale(1.02); } to { transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(var(--ps, 1.16)); } }
@media (prefers-reduced-motion: reduce) { .ld-slide.push { animation: none; transform: scale(1.03); } }
/* transition: a quick dip through ink (no 50/50 ghosting): down .24 s, the swap happens under full cover, up .36 s */
.ld-dip { position: absolute; inset: 0; z-index: 2; background: #12081f; opacity: 0; pointer-events: none; transition: opacity .36s ease-out; }
#loading.dip .ld-dip { opacity: 1; transition: opacity .24s ease-in; }
.ld-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(36,19,63,.28) 0%, rgba(36,19,63,0) 20%, rgba(36,19,63,0) 56%, rgba(36,19,63,.5) 70%, rgba(28,15,46,.8) 84%, rgba(23,11,43,.94) 100%); }
#loading .logo { position: absolute; z-index: 4; top: calc(6.5% + var(--safe-t, 0px)); left: 0; right: 0; }
#loading .ld-ui { position: absolute; z-index: 5; left: 0; right: 0; top: 73%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; }
#loading.has-card .ld-ui { top: auto; bottom: calc(40px + var(--safe-b)); }
.ld-bar { position: relative; width: min(300px, calc(74 * var(--svw, 1vw))); height: 22px; border-radius: 7px; border: 3px solid var(--pb-ink, #1c0f2e); background: rgba(28,15,46,.72);
  box-shadow: 0 0 0 2px rgba(255,244,226,.95), 0 6px 0 2px var(--pb-ink, #1c0f2e); overflow: hidden; }
#ld-fill { height: 100%; width: 0; border-radius: 3px; /* no width transition: it stalls while boot blocks the main thread and the bar would lag the % text */
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,.2) 9px 17px), var(--pb-grad-mango, linear-gradient(180deg, #ffe98f, #ffc53a 48%, #ff9f1c));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.14), 2px 0 0 var(--pb-ink, #1c0f2e); }
#ld-txt { margin-top: 4px; color: #fff; font: 900 13px/1.2 var(--pb-font-body, sans-serif); letter-spacing: .08em; text-transform: uppercase; text-align: center; max-width: calc(86 * var(--svw, 1vw));
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 var(--pb-ink, #1c0f2e), 0 0 8px rgba(28,15,46,.85); }
#ld-note { display: none; color: var(--pb-sunbeam, #ffe58a); font: 800 12px/1.3 var(--pb-font-body, sans-serif); text-align: center; max-width: calc(86 * var(--svw, 1vw)); text-shadow: 0 2px 0 var(--pb-ink, #1c0f2e); }
#ld-note.on { display: block; }
/* "tap for sound" (src/ui/loadmusic.js): small, under the status; pulses until the first tap */
#ld-sound { display: none; align-items: center; gap: 6px; margin-top: 2px; padding: 5px 11px 5px 9px; border-radius: 9px; border: 2px solid rgba(255,244,226,.35);
  background: rgba(18,8,31,.5); color: rgba(255,244,226,.85); font: 800 10px/1 var(--pb-font-body, sans-serif); letter-spacing: .12em; text-transform: uppercase; pointer-events: auto; }
#ld-sound.on { display: inline-flex; animation: ldPulse 1.6s ease-in-out infinite; }
#ld-sound.live { animation: none; border-color: rgba(255,197,58,.7); color: var(--pb-sunbeam, #ffe58a); }
#ld-sound svg { width: 14px; height: 14px; fill: currentColor; } #ld-sound svg .w { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; opacity: .35; }
#ld-sound.live svg .w { opacity: 1; }
/* over a new player's intro scene (loadmusic.js intro(), bootfast2): top-left, the scene's Skip is top-right */
#ld-sound.float { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px; z-index: calc(var(--z-modal) + 1); margin: 0; background: rgba(28,15,46,.72); }
@keyframes ldPulse { 50% { opacity: .55; } }
/* store badges (playlink 10-24 + appstore 11-08, src/ui/storebadge.js; WEB only, the apps never create them): Google's and Apple's official artwork, 40 px
   high (guideline min 28), clear space >= 10 px (1/4 height) all round = the padding below, under the bar / sound pill in the
   .ld-ui column, so they never cover the progress or the poster subject (faces sit in the top 45 %). Fades in once decoded. */
.ld-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px 10px 0; margin-top: -8px; }
.ld-store { display: block; line-height: 0; border-radius: 7px; pointer-events: auto; -webkit-tap-highlight-color: transparent; animation: ldIn .45s ease-out both; }
.ld-store img { display: block; height: 40px; width: auto; }
.ld-store:active { transform: scale(.97); }
.ld-store:focus-visible { outline: 2px solid var(--pb-sunbeam, #ffe58a); outline-offset: 3px; }
@keyframes ldIn { from { opacity: 0; } }
#loading.has-card .ld-stores { display: none; } /* a stall / error card owns the screen */
@media (max-height: 600px) and (orientation: portrait) { .ld-stores { display: none; } } /* no room under the bar */
@media (max-height: 700px) and (orientation: portrait) { #loading .ld-ui:has(.ld-stores) { top: 71%; } } /* 360x640: 10 px clear space above the credit */
/* appstore 11-08: + the slow-network note (one more line) the column no longer fits from 71 %: it sits on the bottom, 10 px above the credit */
@media (max-height: 700px) and (orientation: portrait) { #loading:not(.has-card) .ld-ui:has(.ld-stores):has(#ld-note.on) { top: auto; bottom: calc(32px + var(--safe-b, 0px)); } }
.ld-foot { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(12px + var(--safe-b)); display: flex; justify-content: center; pointer-events: none; }
.ld-credit { color: rgba(255,244,226,.5); font: 700 8px/1.2 var(--pb-font-body, sans-serif); letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(18,8,31,.8); }
.ld-credit b { font-weight: 800; color: rgba(255,244,226,.68); }
.ld-ver { position: absolute; right: calc(12px + var(--safe-r, 0px)); bottom: 4px; color: rgba(255,244,226,.32); font: 700 8px/1 var(--pb-font-body, sans-serif); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { #ld-txt { font-size: 12px; letter-spacing: .04em; } .ld-credit { font-size: 7.5px; letter-spacing: .16em; } .ld-ver { font-size: 7px; } }

#btn-skill { position: fixed; z-index: 6; right: 132px; bottom: calc(34px + var(--safe-b)); width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; border: 3.5px solid #fff; color: #fff;
  background: conic-gradient(#ffcf2a calc(var(--k, 1) * 360deg), rgba(43,36,64,.75) 0); box-shadow: 0 5px 0 rgba(43,36,64,.4); touch-action: none; opacity: .85; }
#btn-skill svg { width: 32px; height: 32px; fill: #fff; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
#btn-skill.ready { opacity: 1; box-shadow: 0 5px 0 rgba(43,36,64,.4), 0 0 22px rgba(255,207,42,.9); animation: pulse 1.2s ease-in-out infinite; }
#btn-skill.active { background: conic-gradient(#ff4fd8 calc(var(--k, 1) * 360deg), rgba(43,36,64,.75) 0); }
@keyframes pulse { 50% { transform: scale(1.08); } }
html.desk #btn-skill::after { content: 'Q'; position: absolute; bottom: -6px; right: -4px; font-size: 12px; background: #2b2440; border-radius: 6px; padding: 0 4px; }

/* fun pass (game-fun.js): loot coins flying to the cash pill, combo meter, multi-kill callouts */
#coinfly { position: fixed; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.fcoin { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: none; will-change: transform;
  background: radial-gradient(circle at 35% 30%, #fff8c8 0 18%, #ffe14f 40%, #ffb21f 75%, #d98a00); border: 2px solid #fff3b0; box-shadow: 0 2px 0 rgba(43,36,64,.45), 0 0 10px rgba(255,210,63,.9); }
.fcoin::after { content: '$'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #b06a00; }
.fcoin.on { display: block; }
.fcoin.gem { width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 4px; transform-origin: center; background: linear-gradient(135deg, #e6ffff, #6ff7ff 45%, #2fa8d0); border-color: #fff; box-shadow: 0 2px 0 rgba(43,36,64,.45), 0 0 12px rgba(111,247,255,.95); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.fcoin.gem::after { content: ''; }
.cashpill.bump { animation: cashbump .18s ease-out; }
.cashpill.bump-b { animation: cashbump-b .18s ease-out; } /* perf3: restart without a reflow (game-fun.js pop) */
@keyframes cashbump { 40% { transform: scale(1.14); box-shadow: 0 3px 0 rgba(43,36,64,.3), 0 0 16px rgba(255,225,79,.95); } }
@keyframes cashbump-b { 40% { transform: scale(1.14); box-shadow: 0 3px 0 rgba(43,36,64,.3), 0 0 16px rgba(255,225,79,.95); } }
/* killperf 10-24 (kpdom): every landing coin bumps the pill; the box-shadow keyframe restyled + repainted it on the main thread each
   frame of a fight. Scale only (compositor); the glow is a pre-painted layer that only fades (opacity). */
body.kpdom .cashpill.bump { animation-name: cashbumpc; } body.kpdom .cashpill.bump-b { animation-name: cashbumpc-b; }
body.kpdom .cashpill::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; box-shadow: 0 0 16px rgba(255,225,79,.95); opacity: 0; pointer-events: none; }
body.kpdom .cashpill.bump::after { animation: cashglow .18s ease-out; } body.kpdom .cashpill.bump-b::after { animation: cashglow-b .18s ease-out; }
@keyframes cashbumpc { 40% { transform: scale(1.14); } } @keyframes cashbumpc-b { 40% { transform: scale(1.14); } }
@keyframes cashglow { 40% { opacity: 1; } } @keyframes cashglow-b { 40% { opacity: 1; } }
#combo { position: fixed; z-index: 6; right: 14px; top: calc(152px + var(--safe-t)); min-width: 74px; text-align: center; pointer-events: none; color: #fff; }
#combo small { display: block; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 #2b2440; }
#combo b { display: block; font-size: 40px; line-height: .95; font-weight: 900; color: #ffe14f; -webkit-text-stroke: 2px #2b2440; paint-order: stroke fill; text-shadow: 0 3px 0 #2b2440, 0 0 16px rgba(255,79,216,.75); }
#combo[data-lv="1"] b { color: #ff8fd0; } #combo[data-lv="2"] b { color: #3df2ff; } #combo[data-lv="3"] b, #combo[data-lv="4"] b { color: #ff4fd8; }
#combo i { display: block; height: 6px; margin: 4px 6px 0; border-radius: 4px; background: rgba(43,36,64,.7); border: 1.5px solid #fff; overflow: hidden; }
#combo u { display: block; height: 100%; background: linear-gradient(90deg, #ff4fd8, #ffe14f); transform-origin: left; }
#combo.bump b { animation: combobump .28s cubic-bezier(.2,1.8,.4,1); }
#combo.bump-b b { animation: combobump-b .28s cubic-bezier(.2,1.8,.4,1); }
@keyframes combobump { from { transform: scale(1.7) rotate(-8deg); } }
@keyframes combobump-b { from { transform: scale(1.7) rotate(-8deg); } }
#callout { position: fixed; z-index: 8; left: 50%; top: 36%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; text-align: center; white-space: nowrap; }
#callout b { display: block; font-size: 40px; font-weight: 900; letter-spacing: .01em; color: #3df2ff; -webkit-text-stroke: 3px #2b2440; paint-order: stroke fill; text-shadow: 0 5px 0 #2b2440, 0 0 26px rgba(61,242,255,.75); transform: rotate(-4deg); }
#callout small { display: block; margin-top: 2px; font-size: 22px; font-weight: 900; color: #7dff6a; -webkit-text-stroke: 2px #2b2440; paint-order: stroke fill; text-shadow: 0 3px 0 #2b2440; transform: rotate(-4deg); }
#callout.c3 b { color: #ffe14f; text-shadow: 0 5px 0 #2b2440, 0 0 26px rgba(255,225,79,.8); font-size: 44px; }
#callout.c4 b { color: #ff4fd8; text-shadow: 0 5px 0 #2b2440, 0 0 30px rgba(255,79,216,.9); font-size: 37px; }
#callout.cb b, #callout.boom b { color: #ff8a3d; text-shadow: 0 5px 0 #2b2440, 0 0 30px rgba(255,138,61,.95); }
/* boss chest callout (game-victory.js): its own element, placed by script above the chest and under the top HUD
   (lane anchors), never over a control; the objective pill + boss bar fade out for the victory beat */
#chestcall { position: fixed; z-index: 8; left: 50%; top: 30%; width: min(360px, calc(calc(100 * var(--svw, 1vw)) - 32px)); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; text-align: center; }
#chestcall b { display: block; white-space: nowrap; font-size: min(44px, calc(10.5 * var(--svw, 1vw))); line-height: 1.05; font-weight: 900; letter-spacing: .01em; color: #ffe14f; -webkit-text-stroke: 3px #2b2440; paint-order: stroke fill; text-shadow: 0 5px 0 #2b2440, 0 0 26px rgba(255,225,79,.8); transform: rotate(-4deg); }
#chestcall small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: min(320px, calc(calc(100 * var(--svw, 1vw)) - 48px)); margin: 4px auto 0; padding: 0 3px 4px; font-size: 17px; line-height: 1.2; font-weight: 900; color: #fff3c9; text-wrap: balance; overflow-wrap: anywhere; -webkit-text-stroke: 2px #2b2440; paint-order: stroke fill; text-shadow: 0 3px 0 #2b2440; transform: rotate(-4deg); }
#chestcall.on { animation: callout 1.9s ease-out forwards; }
body.vic-beat #objective, body.vic-beat #bossbar { opacity: 0 !important; transition: opacity .25s ease; pointer-events: none; }
/* hub play: lying on a lounger fades the HUD (game-hubplay.js body.chill); the action button (Get up) stays */
body.chill #hud, body.chill #btn-jobs, body.chill #btn-skill, body.chill #btn-roll, body.chill .mu-hubui, body.chill .mu-rail, body.chill .mu-headpills, body.chill #waypoint, body.chill #stick { opacity: .25; transition: opacity 1.2s ease; }
body.vic-chest #namecard { visibility: hidden; }
#namecard small { display: block; margin-top: 4px; font: 800 19px/1.2 var(--pb-font-body, 'Nunito', system-ui, sans-serif); text-transform: none; letter-spacing: 0; color: var(--pb-sunbeam, #FFE58A); -webkit-text-stroke: 0; text-shadow: 0 2px 0 #2b2440, 2px 0 0 #2b2440, -2px 0 0 #2b2440, 0 -2px 0 #2b2440; text-align: center; white-space: nowrap; }
/* boss chest OPEN (game-victory.js): anchored over the chest (left/top = its bottom-centre point), big tap target when the
   hero is near; from afar after 10 s a smaller pulsing tag (not tappable) points at it */
#chest-open { position: fixed; z-index: 9; left: 50%; top: 50%; display: none; transform: translate(-50%, -100%); padding: 0; border: 0; background: none; touch-action: none; -webkit-tap-highlight-color: transparent; }
#chest-open.on { display: block; }
#chest-open b { display: block; padding: 12px 30px 11px; border-radius: 999px; background: linear-gradient(180deg, #ffe27a, var(--pb-mango, #ffc53a) 55%, #f29a17); border: 3px solid var(--pb-ink, #1c0f2e); box-shadow: 0 5px 0 var(--pb-ink, #1c0f2e), 0 0 26px rgba(255,197,58,.75); color: var(--pb-ink, #1c0f2e); font: 400 30px/1 var(--pb-font-display, Impact, sans-serif); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; animation: chestbtn .9s ease-in-out infinite; }
#chest-open i { display: block; width: 0; height: 0; margin: -1px auto 0; border: 11px solid transparent; border-top: 13px solid var(--pb-ink, #1c0f2e); }
#chest-open.hint { pointer-events: none; }
#chest-open.hint b { padding: 7px 18px 6px; font-size: 20px; animation: chestpulse .8s ease-in-out infinite; }
@keyframes chestbtn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes chestpulse { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.1); opacity: 1; } }
#callout.on { animation: callout 1.5s ease-out forwards; }
#callout.on-b { animation: callout-b 1.5s ease-out forwards; }
@keyframes callout { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(.92); } 18% { transform: translate(-50%, -50%) scale(1.06); } 26% { transform: translate(-50%, -50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(1); } }
@keyframes callout-b { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } 10% { opacity: 1; transform: translate(-50%, -50%) scale(.92); } 18% { transform: translate(-50%, -50%) scale(1.06); } 26% { transform: translate(-50%, -50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%) scale(1); } }

/* meta: mission card energy cost + power vs recommended */
.mc-en { display: inline-flex; align-items: center; gap: 1px; margin-left: 6px; padding: 1px 8px 1px 4px; border-radius: 10px; background: rgba(43,36,64,.28); font-size: 15px; vertical-align: 2px; }
.mc-en svg { width: 15px; height: 15px; fill: #fff36a; }
#mc-power small { font-size: 12px; color: #9a8aa8; }
#mc-power.under { color: #d6355a; }

/* ==============================================================================================================   Palmera Bay HUD (design/ui/UI-STYLE.md 9, tokens in pb-tokens.css). CSS over the engine's DOM + a few hooks in
   index.html (avatar tape + level sticker, name/power line, XP bar, district label, Jobs ticket). Context classes on
   <body>, set by src/game-meta.js hudContext(): in-mission (minimal), hud-moving (hub, moving 1.5 s: collapsed),
   hud-peek (Menu tapped while collapsed: everything back). Transitions 200 ms.
   ===================================================================================================================== */
html, body { font-family: var(--pb-font-body); color: var(--pb-ink); }
#hud { padding: calc(14px + var(--safe-t)) calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l)); }
#hud::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: calc(150px + var(--safe-t)); background: linear-gradient(180deg, rgba(28,15,46,.55), rgba(28,15,46,0)); pointer-events: none; z-index: -1; }
.hud-l { gap: 12px; align-items: flex-start; }
.avatar { position: relative; width: 62px; height: auto; padding: 4px 4px 11px; border-radius: 5px; background: #fff; border: 2px solid var(--pb-ink); box-shadow: 0 3px 0 var(--pb-ink); transform: rotate(-4deg); overflow: visible; }
.avatar img { width: 100%; height: 50px; object-fit: cover; border-radius: 2px; }
.avatar .pb-tape { top: -7px; left: 10px; }
.avatar .lvl { position: absolute; right: -12px; bottom: -9px; width: 30px; height: 30px; font-size: 16px; background: var(--pb-grad-mango); transform: rotate(8deg); }
.pinfo { padding-top: 1px; }
.pname { font: 400 19px/1 var(--pb-font-display); color: #fff; text-transform: uppercase; letter-spacing: .03em; transform: skewX(-7deg); text-shadow: var(--pb-text-outline); display: flex; align-items: baseline; gap: 7px; }
.pname small { font: 900 12px/1 var(--pb-font-body); color: var(--pb-sunbeam); letter-spacing: 0; display: inline-flex; align-items: center; gap: 3px; transform: skewX(7deg); }
.pname small svg { width: 15px; height: 15px; }
#hud-name { max-width: min(calc(46 * var(--svw, 1vw)), 170px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 2px; } /* a 16-letter player name (game-meta onMetaView) */
.hpbar { width: 128px; height: 17px; margin-top: 6px; border-radius: 5px; border: 2px solid var(--pb-ink); background: rgba(28,15,46,.65); transform: skewX(-12deg); box-shadow: 0 2px 0 var(--pb-ink); }
#hp-fill { background: var(--pb-grad-palm); box-shadow: inset 0 3px 0 rgba(255,255,255,.35); }
#hp-fill.low { background: var(--pb-grad-flamingo); }
#hp-txt { transform: skewX(12deg); font: 900 11px/13px var(--pb-font-body); text-shadow: 0 1px 0 var(--pb-ink), 1px 0 0 var(--pb-ink), -1px 0 0 var(--pb-ink), 0 -1px 0 var(--pb-ink); }
.xpbar { width: 116px; height: 7px; margin: 5px 0 0 6px; border-radius: 4px; background: rgba(28,15,46,.75); border: 1.5px solid var(--pb-ink); overflow: hidden; transform: skewX(-12deg); }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #A04BFF, #FF3E8E); transition: width var(--pb-t-slow) var(--pb-ease-out); }
/* right column (owner 10-15 b): the settings gear and the minimap's outer ring share one right edge, 14 px + inset from the
   screen (same margin as the portrait on the left); the gear sits on the cash pill's row centre */
.hud-r { gap: 10px; align-items: center; }
/* hudfit 10-28 (top player OPPO A77s 360 px, long name): the left group may shrink (name ellipsis) so the cash pill + gear stay on screen */
.hud-l, .pinfo, .pname { min-width: 0; } .hud-r { flex: none; }
/* streak1 10-29 (docs/features/streak.md): the day-streak flame + count as a badge on the portrait's top-right corner (opposite
   the level sticker; hidden at 0 / 1). Owner review 10-29: in the name row it squeezed a 16-char name to "M..." at 320 px; on the
   portrait it takes no row width, so the name keeps its room and cash + gear stay on screen (gb-hud-long-names). Art rule: no
   backplate, a soft glow behind the flame and an outlined number. */
/* phones <= 380 px (owner review 10-29): the left column is ~85 px next to a wide cash pill, so the power chip gets its own line
   under the name and the name font steps down: a 16-char name keeps 8+ letters visible (was "M..." with the chip in the row) */
@media (max-width: 380px) { .pname { flex-wrap: wrap; row-gap: 3px; font-size: 16px; } #hud-pow { flex-basis: 100%; } body.in-mission #hud-pow { display: none; } }
#hud-stk { position: absolute; top: -12px; right: -9px; z-index: 2; display: flex; align-items: center; pointer-events: none; transform: rotate(6deg); transition: opacity .3s ease-out; }
#hud-stk svg { width: 24px; height: 24px; filter: drop-shadow(0 0 4px rgba(255,138,26,.7)) drop-shadow(0 1.5px 0 rgba(28,15,46,.8)); }
#hud-stk b { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); font: 900 11.5px/1 var(--pb-font-body); color: #fff; letter-spacing: -.02em; text-shadow: -1px -1px 0 #1c0f2e, 1px -1px 0 #1c0f2e, -1px 1px 0 #1c0f2e, 1px 1px 0 #1c0f2e, 0 0 3px #1c0f2e; }
body.in-mission #hud-stk { opacity: 0; }
#hud-stk.pop { animation: stk-pop .9s var(--pb-ease-pop, cubic-bezier(.34,1.56,.64,1)) both; }
#hud-stk.pop svg { animation: stk-flare .9s ease-out both; }
@keyframes stk-pop { 0% { transform: rotate(6deg) scale(.4); opacity: 0; } 35% { transform: rotate(6deg) scale(1.6); opacity: 1; } 60% { transform: rotate(6deg) scale(.92); } 100% { transform: rotate(6deg) scale(1); } }
@keyframes stk-flare { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255,138,26,.55)); } 40% { filter: drop-shadow(0 0 10px rgba(255,170,40,.95)); } }
@media (prefers-reduced-motion: reduce) { #hud-stk.pop, #hud-stk.pop svg { animation: none; } }
/* hudfit smoke (scripts/hudfit-smoke.mjs) at 320 px: the squeezed name column let the fixed 128 px HP bar run under the cash pill;
   the bars now shrink with the column (full size whenever there is room), with a 10 px gap to the cash pill */
.hud-l { margin-right: 10px; } /* + the cash pill coin hangs 8 px left of the pill */
.hpbar { max-width: 100%; } .xpbar { max-width: calc(100% - 6px); }
.cashpill { position: relative; height: 36px; padding: 0 13px 0 38px; gap: 0; border-radius: var(--pb-rad-pill); background: rgba(28,15,46,.82); border: 2px solid var(--pb-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 3px 0 var(--pb-ink); font: 900 19px/1 var(--pb-font-body); font-variant-numeric: tabular-nums; color: #fff; }
.cashpill .pb-ico { position: absolute; left: -8px; top: 50%; width: 42px; height: 42px; transform: translateY(-50%); }
/* padding 0 + place-content (hubhud 10-19, owner iPhone shot: the gear sat right of its circle): iOS WebKit gives a <button>
   padding 0 1em; in a 42 px border-box that left a 4 px content box, the 22 px icon track started at its left edge = 9 px off */
#btn-set { width: 42px; height: 42px; padding: 0; place-content: center; background: var(--pb-grad-night); border: 3px solid var(--pb-ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 4px 0 var(--pb-ink); }
#btn-set svg { fill: var(--pb-sand); }
#minimap { top: calc(70px + var(--safe-t)); right: calc(21px + var(--safe-r)); /* +7 = the sand + ink ring */ width: 100px; height: 100px; border: 3px solid var(--pb-ink); box-shadow: 0 0 0 4px var(--pb-sand), 0 0 0 7px var(--pb-ink), 0 7px 0 4px var(--pb-ink); transform-origin: top right; }
/* hub: the minimap is a button (tap -> full district map, src/meta-ui/map.js); in a job it stays display-only */
body:not(.in-mission) #minimap { pointer-events: auto; cursor: pointer; }
body:not(.in-mission) #minimap:active { transform: scale(.96); }
/* district name: off the hub HUD (owner 10-15 b declutter: the promo icons sit under the minimap); the map screen shows it */
#hud-district { display: none; position: fixed; right: 8px; top: calc(178px + var(--safe-t)); width: 124px; text-align: center; pointer-events: none; transition: opacity .2s ease; }
#hud-district em { display: block; font: 400 11px/1 var(--pb-font-display); letter-spacing: .14em; font-style: normal; color: #fff; text-transform: uppercase; text-shadow: var(--pb-text-outline); }
#hud-district .pb-script { display: block; font-size: 24px; line-height: .95; transform: rotate(-5deg); color: var(--pb-sunbeam); text-shadow: 0 2px 0 var(--pb-ink), 2px 2px 0 var(--pb-ink), -1px 1px 0 var(--pb-ink); }

/* Jobs = the flamingo ticket (main CTA) */
#btn-jobs { left: calc(14px + var(--safe-l)); top: calc(100px + var(--safe-t)); height: 56px; padding: 0 15px 0 9px; gap: 9px; border: 3px solid var(--pb-ink); border-radius: 16px; background: var(--pb-grad-flamingo); box-shadow: var(--pb-bevel), 0 5px 0 var(--pb-ink); transform: skewX(-7deg); text-shadow: none; }
#btn-jobs > * { transform: skewX(7deg); }
#btn-jobs svg { width: 34px; height: 34px; fill: initial; }
#btn-jobs .t { display: flex; flex-direction: column; line-height: 1; text-align: left; }
#btn-jobs .t b { font: 400 23px/1 var(--pb-font-display); text-transform: uppercase; color: #fff; text-shadow: var(--pb-text-outline); letter-spacing: .02em; }
#btn-jobs .t small { font: 900 11px/1.2 var(--pb-font-body); color: #fff; margin-top: 3px; text-shadow: 0 1px 0 var(--pb-ink); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
#btn-jobs .t small:empty { display: none; }
/* ftue4 10-22 (game-ftue4.js, flag ftuenudge): the next-job nudge after the hub reveal: the ticket breathes with a gold ring
   and wears a NEXT tag (data-nudge, localised) until the job starts; still a plain button (one tap = that job's card) */
body.ftue-nudge:not(.in-mission):not(.hud-moving):not(.lane-on) #btn-jobs { animation: jobsNudge 1.15s ease-in-out infinite; }
body.ftue-nudge #btn-jobs::after { content: attr(data-nudge); position: absolute; top: -13px; right: -12px; padding: 3px 8px 2px; border: 2.5px solid var(--pb-ink); border-radius: 10px; background: var(--pb-grad-mango); color: var(--pb-ink); font: 400 15px/1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .03em; transform: skewX(7deg) rotate(6deg); box-shadow: 0 3px 0 var(--pb-ink); pointer-events: none; }
body.ftue-nudge #btn-jobs:not([data-nudge])::after { display: none; }
@keyframes jobsNudge { 0%, 100% { transform: skewX(-7deg) scale(1); box-shadow: var(--pb-bevel), 0 5px 0 var(--pb-ink), 0 0 0 0 rgba(255, 225, 79, .95); } 55% { transform: skewX(-7deg) scale(1.07); box-shadow: var(--pb-bevel), 0 5px 0 var(--pb-ink), 0 0 0 12px rgba(255, 225, 79, 0); } }
@media (prefers-reduced-motion: reduce) { body.ftue-nudge #btn-jobs { animation: none !important; outline: 3px solid #ffe14f; outline-offset: 2px; } }

/* objective = skewed ink ticket; toast / prompt = postcard bits */
#objective { top: calc(148px + var(--safe-t)); left: 14px; transform: skewX(-7deg); background: rgba(28,15,46,.88); border: 2px solid var(--pb-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--pb-ink); font: 900 14px/1.2 var(--pb-font-body); }
body.hubplay:not(.in-mission) #objective { top: calc(174px + var(--safe-t)); } /* hub play rep / chill chip: under the JOBS banner (game-hubplay.js) */
#objective > * { transform: skewX(7deg); }
#objective b { color: var(--pb-mango); font: 400 15px/1 var(--pb-font-display); letter-spacing: .04em; }
#toast { background: rgba(28,15,46,.92); border: 2px solid var(--pb-ink); box-shadow: 0 3px 0 var(--pb-ink); font: 400 20px/1.1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .03em; transform: translate(-50%, -50%) skewX(-7deg) scale(.9); }
#toast.on { transform: translate(-50%, -50%) skewX(-7deg) scale(1); }
#prompt { background: var(--pb-sand); border: 3px solid var(--pb-ink); box-shadow: 0 4px 0 var(--pb-ink); color: var(--pb-ink); }
#namecard { font-family: var(--pb-font-display); font-weight: 400; color: #fff; -webkit-text-stroke: 0; text-shadow: var(--pb-text-outline), 0 5px 0 var(--pb-ink), 3px 7px 0 var(--pb-flamingo); text-transform: uppercase; }
#bossbar span { font: 400 14px/1.2 var(--pb-font-display); color: var(--pb-sunbeam); background: var(--pb-ink); border: 2px solid var(--pb-ink); transform: skewX(-7deg); }
#bossbar div { border: 2px solid var(--pb-ink); border-radius: 5px; transform: skewX(-12deg); box-shadow: 0 2px 0 var(--pb-ink); }
#bossbar i { background: var(--pb-grad-flamingo); }
/* boss bar BELOW the objective pill (fresh-eyes 2 #4: it covered "Take down DJ Velour 15/16"); every boss + mini: pill top 148
   + ~46 tall (with its progress bar), the combo meter on the right ends ~205 */
#bossbar { top: calc(212px + var(--safe-t)); }
.ebar { border: 1.5px solid var(--pb-ink); border-radius: 3px; transform-origin: left; }
.ebar i { background: var(--pb-grad-flamingo); }
.ebar.ally i { background: var(--pb-grad-lagoon); }
.ebar.cop i { background: linear-gradient(180deg, #7fb4ff, #2a62e8); } /* copfix 10-25: police bar blue (rivals pink) */
.num { font-family: var(--pb-font-display); font-weight: 400; color: #fff; -webkit-text-stroke: 0; text-shadow: var(--pb-text-outline); }
.num.crit { color: var(--pb-mango); }

/* controls: mango action (Get in = lagoon, Start = mango, Exit = night), flamingo skill, stick */
#btn-act { width: 96px; height: 96px; right: 24px; bottom: calc(30px + var(--safe-b)); background: var(--pb-grad-mango); border: 3px solid var(--pb-ink); box-shadow: inset 0 4px 0 rgba(255,255,255,.55), inset 0 -6px 0 rgba(0,0,0,.15), 0 6px 0 var(--pb-ink); font: 400 17px/1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--pb-ink); }
#btn-act[data-kind="car"] { background: var(--pb-grad-lagoon); color: #fff; text-shadow: var(--pb-text-outline); }
#btn-act[data-kind="exit"] { background: var(--pb-grad-night); color: #fff; text-shadow: var(--pb-text-outline); }
#btn-act[data-kind="mission"] { background: var(--pb-grad-mango); color: var(--pb-ink); text-shadow: none; }
#btn-act[data-kind="ride"] { background: var(--pb-grad-flamingo); color: #fff; text-shadow: var(--pb-text-outline); } /* ride along in another player's car (game-pax.js) */
#btn-act:active { box-shadow: inset 0 4px 0 rgba(255,255,255,.55), 0 2px 0 var(--pb-ink); }
#btn-skill { right: 134px; bottom: calc(36px + var(--safe-b)); width: 62px; height: 62px; padding: 0; place-content: center; /* iOS button padding (see #btn-set) */ border: 3px solid var(--pb-ink); color: #fff; box-shadow: 0 5px 0 var(--pb-ink); background: conic-gradient(var(--pb-flamingo) calc(var(--k, 1) * 360deg), var(--pb-night) 0); }
#btn-skill.ready { box-shadow: 0 5px 0 var(--pb-ink), 0 0 20px rgba(255,62,142,.8); }
#btn-skill.active { background: conic-gradient(var(--pb-mango) calc(var(--k, 1) * 360deg), var(--pb-night) 0); }
#stick { border: 3px solid rgba(255,244,226,.55); background: rgba(28,15,46,.18); }
#stick-knob { background: radial-gradient(circle at 40% 35%, #fff, #FFD3E6 60%, #FF9CC6); border: 3px solid var(--pb-ink); box-shadow: 0 4px 0 var(--pb-ink); }

/* engine cards that are still the engine's (revive, settings): postcards */
.card { background: var(--pb-sand); border: 3px solid var(--pb-ink); border-radius: var(--pb-rad-xl); box-shadow: var(--pb-lip-lg); }
.card h2 { font: 400 32px/1 var(--pb-font-display); text-transform: uppercase; color: #fff; text-shadow: var(--pb-text-outline), 0 4px 0 var(--pb-ink), 3px 6px 0 var(--pb-flamingo); transform: skewX(-7deg); margin: 6px 0 10px; }
.card p { color: var(--pb-muted-ink); }
.btns button { border: 3px solid var(--pb-ink); border-radius: 16px; font: 400 22px/1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .02em; }
.btns .go { background: var(--pb-grad-mango); color: var(--pb-ink); box-shadow: var(--pb-bevel), var(--pb-lip); text-shadow: none; }
.btns .ghost { background: #fff; color: var(--pb-ink); box-shadow: var(--pb-lip); }
.modal { background: var(--pb-scrim); }
/* revive sheet (econ-ux 10-16, hud.js reviveCard): "Revive (ad)" + "Revive for N gems" side by side, the reason line of a
   failed try, Give up under them. The gem shop (meta-ui, #mu-root z 20) opens over it when gems are short. */
#revive .card { width: min(360px, 100%); padding: 16px 14px 14px; }
#revive .card p { margin-bottom: 10px; }
.rv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-opts.one { grid-template-columns: 1fr; }
.rv-opts.none { display: none; }
.rv-opts button { min-height: 66px; min-width: 0; border: 3px solid var(--pb-ink); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; box-shadow: var(--pb-bevel), var(--pb-lip); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rv-opts button b { font: 400 22px/1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.rv-opts button small { display: inline-flex; align-items: center; gap: 4px; font: 900 14px/1.1 var(--pb-font-body); white-space: nowrap; }
.rv-opts .rv-i { width: 18px; height: 18px; flex: none; }
.rv-opts .go.free { background: var(--pb-grad-mango); color: var(--pb-ink); }
.rv-opts .go.ad { background: var(--pb-grad-lagoon); color: #fff; text-shadow: var(--pb-text-outline); }
.rv-opts .gems { background: var(--pb-grad-night); color: #fff; }
.rv-opts .gems[data-short] .gprice { color: #FF8FA0; }
.rv-opts button:active { transform: translateY(3px); box-shadow: none; }
#revive .rv-hp { margin: 8px 0 0; font-size: 12px; }
#revive .rv-hp:empty { display: none; }
#revive .rv-msg { margin: 8px 0 0; color: #C0175D; font-size: 13px; line-height: 1.25; }
#revive .btns { margin-top: 12px; }
#revive .btns .ghost { height: 44px; font-size: 18px; }
/* ftue4 10-22 (hud.js reviveCard, flag revivefree): the one free revive reads FREE at a glance: palm sticker on the card's
   corner, one tall primary button, Give up stays (smaller, quieter) */
#revive .card { position: relative; }
#revive .card.rv-free { padding-top: 22px; }
#revive .rv-stamp { display: none; }
#revive .rv-free .rv-stamp { display: block; position: absolute; top: -16px; right: -6px; padding: 6px 14px 5px; border: 3px solid var(--pb-ink); border-radius: 14px; background: var(--pb-grad-palm); color: #fff; font: 400 34px/1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .03em; text-shadow: var(--pb-text-outline); box-shadow: var(--pb-bevel), 0 4px 0 var(--pb-ink); transform: rotate(8deg); animation: rvStamp .5s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; }
@keyframes rvStamp { from { transform: rotate(8deg) scale(2.2); opacity: 0; } to { transform: rotate(8deg) scale(1); opacity: 1; } }
#revive .rv-free p[data-i18n="rv.desc"] { color: var(--pb-ink); font-weight: 800; font-size: 16px; }
#revive .rv-free .rv-opts button.go.free { min-height: 84px; animation: rvGo 1.1s ease-in-out .6s infinite alternate; }
#revive .rv-free .rv-opts button.go.free b { font-size: 34px; }
#revive .rv-free .rv-opts button.go.free small { font-size: 15px; }
@keyframes rvGo { from { transform: scale(1); } to { transform: scale(1.04); } }
#revive .rv-free .rv-opts button.go.free:active { animation: none; }
#revive .rv-free .btns .ghost { height: 38px; font-size: 15px; opacity: .85; }
@media (prefers-reduced-motion: reduce) { #revive .rv-free .rv-stamp, #revive .rv-free .rv-opts button.go.free { animation: none; } }
/* Settings opens over the hub: above the meta HUD layer (#mu-root z 20, rail buttons / energy pill / crew bubble) */
#settings { z-index: var(--z-sheet); } /* the stack (layers.watch in settings.js) sets the exact value */
.seg { border: 2px solid var(--pb-ink); }
.seg button.on { background: var(--pb-grad-mango); color: var(--pb-ink); }
/* Settings full screen (settings2 10-18, owner: "open them full screen; simpler and clearer"): the .mu-screen look (dusk
   gradient + sunset glow, round back button, skewed Anton title), sections = a small heading + a cream card of rows; a centred
   column on tablets / desktop. The head stays put, the body scrolls. A section with no visible row hides itself. */
#settings.set-screen { display: flex; flex-direction: column; place-items: initial; padding: 0; overflow: hidden; background: var(--pb-grad-dusk); color: var(--pb-ink); font-family: var(--pb-font-body); }
#settings.set-screen.hidden { display: none !important; }
#settings.set-screen::before { content: ''; position: absolute; left: -80px; right: -80px; top: -260px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,62,142,.45), rgba(255,143,46,.14) 60%, transparent); pointer-events: none; }
.set-head { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 600px; align-self: center; box-sizing: border-box; padding: calc(14px + var(--safe-t)) calc(14px + var(--safe-r)) 8px calc(14px + var(--safe-l)); }
.set-head h1 { margin: 0; flex: 1; min-width: 0; font: 400 36px/1 var(--pb-font-display); text-transform: uppercase; color: #fff; transform: skewX(var(--pb-skew)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--pb-text-outline), 0 4px 0 var(--pb-ink), 3px 6px 0 var(--pb-flamingo); padding: 4px 8px 8px 2px; }
.set-x { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--pb-grad-night); border: 3px solid var(--pb-ink); color: var(--pb-sand); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 4px 0 var(--pb-ink); cursor: pointer; }
.set-x svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.set-x:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pb-ink); }
.set-body { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: none;
  width: 100%; max-width: 600px; align-self: center; box-sizing: border-box; padding: 4px calc(14px + var(--safe-r)) calc(20px + var(--safe-b)) calc(14px + var(--safe-l)); }
.set-body::-webkit-scrollbar { display: none; }
.set-sec { margin: 0 0 16px; }
.set-sec:not(:has(.opt:not(.hidden))) { display: none; }
.set-sec h3 { margin: 0 0 7px 4px; font: 400 19px/1.1 var(--pb-font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--pb-sunbeam); transform: skewX(var(--pb-skew)); text-shadow: 0 2px 0 var(--pb-ink); }
.set-box { background: var(--pb-sand); border: 3px solid var(--pb-ink); border-radius: 20px; box-shadow: 0 5px 0 var(--pb-ink); padding: 2px 14px; }
#settings .set-box .opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0; padding: 11px 0; min-height: 40px; font: 900 16px/1.2 var(--pb-font-body); color: var(--pb-ink); text-align: left; }
#settings .set-box .opt:not(.hidden) ~ .opt:not(.hidden) { border-top: 2px solid rgba(28,15,46,.09); }
#settings .opt > span, #settings .opt .set-lbl { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; }
#settings .opt .set-lbl > span { display: block; }
#settings .opt .set-lbl small { display: block; margin-top: 2px; font: 800 12.5px/1.25 var(--pb-font-body); color: var(--pb-muted-ink); }
#settings .opt .seg { flex: none; margin-left: auto; max-width: 100%; }
#settings .seg button { min-height: 34px; padding: 6px 12px; font: 900 14px/1.1 var(--pb-font-body); color: var(--pb-ink); white-space: nowrap; }
#settings .seg button.danger { color: var(--pb-danger); }
/* Help > Contact support: a mango link-button like the seg buttons; the no-mail-app fallback (address + Copy) under the row */
#settings .seg a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 9px; font: 900 14px/1.1 var(--pb-font-body); color: var(--pb-ink); text-decoration: none; white-space: nowrap; }
#settings .seg a.on { background: var(--pb-grad-mango); }
.set-sup-fb { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 10px; border-radius: 12px; background: #fff; border: 2px dashed var(--pb-sand-3); font: 800 13px/1.3 var(--pb-font-body); color: var(--pb-muted-ink); }
.set-sup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.set-sup-fb b { font: 900 15px/1.2 var(--pb-font-body); color: var(--pb-ink); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.set-sup-fb button { min-height: 32px; padding: 4px 12px; border-radius: 9px; border: 2px solid var(--pb-ink); background: var(--pb-grad-mango); color: var(--pb-ink); font: 900 13px/1 var(--pb-font-body); box-shadow: 0 2px 0 var(--pb-ink); cursor: pointer; }
/* gfxset 10-31: Settings > Graphics (src/ui/settings-gfx.js): the 3-4 choice rows take the full width under the label (320 px safe) */
#settings .opt.gfx .seg[data-key] { flex: 1 1 100%; margin-left: 0; }
#settings .opt.gfx .seg[data-key] button { flex: 1 1 auto; min-width: 0; padding: 6px 4px; white-space: normal; hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 360px) { #settings .opt.gfx .seg[data-key] button { font-size: 12.5px; padding: 6px 3px; } } /* 320 px: 'Balanced' / 'Высокое' fit, long locales wrap */
#settings #set-gfx-rs { flex: 1 1 100%; margin-left: 0; justify-content: center; }
#settings #set-gfx-rs button { flex: 1 1 0; }
#settings .opt .set-lbl small.warn { color: var(--pb-ink); }
#settings .opt.gfx-info { min-height: 0; padding: 8px 0; }
#settings .opt.gfx-info small + small { margin-top: 4px; }
#settings #set-gfx-now { color: var(--pb-ink); }
#set-pgs-row .seg { flex-wrap: wrap; justify-content: flex-end; } /* Google Play Games (Android app only, src/ui/settings.js pgsVis) */
/* Help > Something wrong? (bugreport 10-31, src/ui/bugreport.js): a mango button with a speech-bubble "!" icon; the sheet = screenshot
   preview (x = leave it out), 4 category chips (2 x 2), optional text, one line on what is sent. Fits 320 px with the longest language. */
#settings .seg .set-bug-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 9px; background: var(--pb-grad-mango); }
.set-bug-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--pb-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.set-bug-btn svg .b { fill: #fff; } .set-bug-btn svg .m { stroke-width: 2.6; } .set-bug-btn svg .d { fill: var(--pb-ink); stroke: none; }
.set-bug .card { width: min(360px, 100%); padding-top: 16px; }
.set-bug .card h2 { margin-bottom: 10px; font-size: 26px; }
.bug-shot { position: relative; display: flex; justify-content: center; align-items: center; margin: 0 auto 10px; width: fit-content; max-width: 100%; border: 3px solid var(--pb-ink); border-radius: 14px; overflow: hidden; background: #1c0f2e; box-shadow: 0 3px 0 var(--pb-ink); transform: rotate(-1.5deg); }
.bug-shot canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(26vh, 190px); }
.bug-shot.none { transform: none; width: 100%; min-height: 40px; background: #fff; border: 2px dashed var(--pb-sand-3); box-shadow: none; }
.bug-noshot { padding: 10px; font: 800 13px/1.2 var(--pb-font-body); color: var(--pb-muted-ink); }
.bug-rm { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--pb-ink); background: #fff; color: var(--pb-ink); box-shadow: 0 2px 0 var(--pb-ink); cursor: pointer; }
.bug-rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.bug-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 9px; }
.bug-cats button { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 44px; padding: 6px 7px; border-radius: 12px; border: 2px solid var(--pb-ink); background: #fff; color: var(--pb-ink); font: 900 13.5px/1.1 var(--pb-font-body); text-align: left; box-shadow: 0 2px 0 var(--pb-ink); cursor: pointer; }
.bug-cats button span { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.bug-cats button svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bug-cats button.on { background: var(--pb-grad-mango); }
.bug-cats button:active { transform: translateY(2px); box-shadow: none; }
.bug-text { display: block; width: 100%; box-sizing: border-box; min-height: 64px; max-height: 22vh; margin: 0 0 6px; padding: 9px 11px; resize: none; border: 2px solid var(--pb-ink); border-radius: 12px; background: #fff; color: var(--pb-ink); font: 700 15px/1.3 var(--pb-font-body); }
.bug-text::placeholder { color: var(--pb-muted-ink); opacity: 1; }
.bug-text:focus { outline: 3px solid var(--pb-lagoon); outline-offset: 0; }
.set-bug .card p.bug-note { margin: 0 0 6px; font: 700 11.5px/1.3 var(--pb-font-body); color: var(--pb-muted-ink); text-align: center; }
.set-bug .set-del-msg:empty { min-height: 0; margin: 0; }
.set-bug .set-del-msg { margin: 0 0 8px; font-weight: 900; }
/* volume rows: label + value on top, mute button + slider under them */
#settings .set-box .opt.vol { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: 'l l v' 'm r r'; align-items: center; gap: 4px 10px; }
.vol-l { grid-area: l; } .vol-v { grid-area: v; min-width: 3ch; text-align: right; font: 900 15px/1 var(--pb-font-body); color: var(--pb-ink); font-variant-numeric: tabular-nums; }
.vol-v.off { color: var(--pb-muted-ink); }
.vol-mute { grid-area: m; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: var(--pb-grad-mango); border: 2px solid var(--pb-ink); box-shadow: 0 3px 0 var(--pb-ink); color: var(--pb-ink); cursor: pointer; }
.vol-mute:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pb-ink); }
.vol-mute svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vol-mute svg .b { fill: currentColor; }
.vol-mute svg .x { display: none; }
.vol-mute.off { background: #fff; color: var(--pb-muted-ink); }
.vol-mute.off svg .w { display: none; } .vol-mute.off svg .x { display: inline; stroke: var(--pb-danger); }
.vol-r { grid-area: r; --p: 100%; -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.vol-r:focus { outline: none; }
.vol-r::-webkit-slider-runnable-track { height: 14px; border-radius: 8px; border: 2px solid var(--pb-ink); background: linear-gradient(90deg, #FFB627 0, #FFC53A var(--p), #fff var(--p)); }
.vol-r::-moz-range-track { height: 10px; border-radius: 8px; border: 2px solid var(--pb-ink); background: linear-gradient(90deg, #FFB627 0, #FFC53A var(--p), #fff var(--p)); }
.vol-r::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--pb-ink); box-shadow: 0 3px 0 var(--pb-ink), inset 0 -4px 0 var(--pb-sand-2); }
.vol-r::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--pb-ink); box-shadow: 0 3px 0 var(--pb-ink); }
.vol-r:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--pb-lagoon); outline-offset: 1px; }
#settings .set-links { margin: 2px 0 4px; }
/* About line (ota-owner 10-29): store build + OTA bundle id; long ids wrap, never push the sheet wider (320 px) */
.set-ver { margin: 0 0 12px; padding: 0 8px; text-align: center; font: 700 12px/1.3 var(--pb-font-body); color: var(--pb-sand); opacity: .7; overflow-wrap: anywhere; min-width: 0; }
.set-ver:empty { display: none; }
.set-links a { color: var(--pb-sand) !important; opacity: .82; }
#settings .set-body > .btns { margin: 0 0 4px; }
#settings .set-body > .btns .go { height: 56px; }
/* the status line (restore / reminders / measurement answers): a pill under the head (never over Done), tap to dismiss */
.set-msg { position: absolute; z-index: 3; left: 50%; top: calc(80px + var(--safe-t)); transform: translateX(-50%); width: max-content; max-width: min(92%, 520px); box-sizing: border-box; margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--pb-ink); border: 2px solid var(--pb-sand); color: #fff; font: 800 var(--pb-fs-small)/1.3 var(--pb-font-body); text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: fadein .2s; }
.seg button.danger { background: #fff; color: var(--pb-danger); font-weight: 900; }
.set-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; margin: 4px 0 8px; font: 800 var(--pb-fs-small)/1.2 var(--pb-font-body); }
.set-links a { color: var(--pb-muted-ink); text-decoration: underline; text-underline-offset: 2px; padding: 5px 2px; }
.set-del { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; padding: 20px; background: var(--pb-scrim); }
.set-del .card { width: min(340px, 100%); max-height: calc(calc(100 * var(--svh, 1svh)) - 24px); overflow-y: auto; }
.set-del .card h2 { font-size: 28px; }
.set-del .card p { font-size: 14px; line-height: 1.35; text-align: left; }
#set-rc .btns + .btns { margin-top: 10px; }
#set-rc-row .seg button { white-space: nowrap; }
.set-rc-code { display: block; width: 100%; box-sizing: border-box; margin: 4px 0 8px; padding: 10px 8px; border: 2px solid var(--pb-ink); border-radius: 10px; background: #fff; color: var(--pb-ink); font: 800 18px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 1px; text-align: center; text-transform: uppercase; user-select: all; -webkit-user-select: all; }
/* Settings > Language list (l10n wave 1): native names, two columns on a phone */
.set-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.set-langs button { min-height: 44px; padding: 8px 6px; border-radius: 12px; border: 2px solid var(--pb-ink); background: #fff; color: var(--pb-ink); font: 800 15px/1.1 'Nunito', system-ui, sans-serif; }
.set-langs button.on { background: var(--pb-grad-mango); }
#set-lang { white-space: nowrap; }
.set-del .set-del-msg { min-height: 1em; margin: 0 0 10px; color: var(--pb-ink); text-align: center; }
.btns .danger { background: linear-gradient(180deg, #FF7A86 0%, var(--pb-danger) 55%, #D11E33 100%); color: #fff; box-shadow: var(--pb-bevel), var(--pb-lip); text-shadow: 0 2px 0 var(--pb-ink); font-size: 17px; line-height: 1.05; padding: 0 6px; white-space: normal; }
.btns .danger.armed { background: #B0122A; animation: set-arm .6s ease-in-out infinite alternate; }
.btns .danger:disabled { opacity: .7; }
@keyframes set-arm { to { transform: scale(1.04); } }
.logo span { font-family: var(--pb-font-display); font-weight: 400; -webkit-text-stroke: 0; text-shadow: var(--pb-text-outline), 0 6px 0 var(--pb-ink), 4px 9px 0 var(--pb-flamingo); transform: skewX(-7deg); }

/* ---------- context-aware HUD (owner 10-15: less UI while playing) ---------- */
#hud .hud-l, .hud-r, #hud-district, #minimap { transition: opacity .2s ease, transform .2s ease; }
/* hub reveal after standing still (game-meta.js HUD_STILL): soft staggered fade, JOBS first; meta-ui continues the
   stagger (SHOP .15 s, MORE .3 s, fuel .4 s, promos .55 s). Hiding (moving) is quick and all at once. */
#btn-jobs { transition: opacity .5s ease-out, transform .5s cubic-bezier(.2,.8,.2,1); }
.xpbar, .pname small { transition: opacity .5s ease-out .1s; }
/* job: minimal. HP, objective, small minimap, controls; no currencies, no rail, no promos */
body.in-mission .cashpill, body.in-mission #hud-district, body.in-mission .xpbar, body.in-mission .pname small { opacity: 0; pointer-events: none; }
body.in-mission #minimap { transform: scale(.78); }
body.in-mission #hud::before { height: calc(110px + var(--safe-t)); }
/* hub, moving: collapse (cash stays as one compact pill; the meta rail becomes one Menu button: src/meta-ui) */
body.hud-moving:not(.hud-peek) #btn-jobs, body.hud-moving:not(.hud-peek) #hud-district { opacity: 0; pointer-events: none; transform: translateX(-12px) skewX(-7deg); transition-duration: .18s; }
body.hud-moving:not(.hud-peek) #hud-district { transform: none; }
body.hud-moving:not(.hud-peek) .cashpill { height: 30px; font-size: 16px; padding-left: 32px; }
body.hud-moving:not(.hud-peek) .cashpill .pb-ico { width: 34px; height: 34px; left: -6px; }
body.hud-moving:not(.hud-peek) .xpbar, body.hud-moving:not(.hud-peek) .pname small { opacity: 0; transition: opacity .18s; }
@media (max-width: 380px) { .hpbar { width: 108px; } .xpbar { width: 98px; } #carbar { width: 108px; } .hud-l.in-car .hpbar { width: 98px; } .cashpill { font-size: 17px; } }

/* loot coins in flight during a job: the (otherwise hidden) cash pill shows so they have somewhere to land */
body.in-mission.loot .cashpill { opacity: 1; }
/* story handoff (src/story): on-screen guide pin over walk-to targets; the off-screen arrow pulses after a scene */
#guidepin { position: fixed; z-index: 4; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
#guidepin i { position: absolute; left: -17px; top: -24px; width: 34px; height: 38px; background: #ffe14f; clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); filter: drop-shadow(0 3px 0 rgba(43,36,64,.5)); animation: pinBob 1.1s ease-in-out infinite alternate; }
@keyframes pinBob { from { transform: translateY(-4px); } to { transform: translateY(4px); } } /* citynav: calmer bob (was 6 px / .7 s) */
body.guide-pulse #waypoint svg { animation: wpPulse .55s ease-in-out infinite alternate; }
body.guide-pulse #guidepin i { animation-duration: .4s; scale: 1.25; }
@keyframes wpPulse { from { scale: 1; } to { scale: 1.45; } } /* citynav: scale, not transform (the svg's transform is its heading) */
/* citynav 11-03: the distance to the guidance target (ui/hud.js waypoint distText): beside the edge arrow (toward the centre) and
   under the on-screen pin; a calm ink chip, no animation */
#waypoint svg { display: block; width: 40px; height: 40px; }
.wp-d { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 1px 6px 2px; border-radius: 9px; background: rgba(28,15,46,.78); color: #fff; font: 800 11.5px/1.25 var(--pb-font-body, sans-serif); white-space: nowrap; letter-spacing: .01em; pointer-events: none; }
#guidepin .wp-d { top: 22px; translate: -50% 0; }

/* combat pass 10-15 (game-dodge.js): dodge-roll button above the action button (cooldown ring --k), low-HP edge pulse */
#btn-roll { position: fixed; z-index: 6; right: 38px; bottom: calc(146px + var(--safe-b)); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--pb-ink, #2b2440); color: #fff;
  background: conic-gradient(var(--pb-lagoon, #3df2ff) calc(var(--k, 1) * 360deg), var(--pb-night, #2b2440) 0); box-shadow: 0 5px 0 var(--pb-ink, #2b2440); touch-action: none; opacity: .8; padding: 0; }
#btn-roll.ready { opacity: 1; }
#btn-roll.hidden { display: none; }
#btn-roll svg { width: 44px; height: 44px; overflow: visible; filter: drop-shadow(0 1.5px 0 rgba(0,0,0,.35)); }
#btn-roll:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pb-ink, #2b2440); }
html.desk #btn-roll::after { content: 'Space'; position: absolute; bottom: -8px; right: -10px; font-size: 11px; background: #2b2440; border-radius: 6px; padding: 0 4px; }
#lowhp { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(255,0,40,0) 52%, rgba(255,0,40,.55) 100%); }
body.lowhp #lowhp { animation: lowhp .95s ease-in-out infinite; }
@keyframes lowhp { 0%, 100% { opacity: .35; } 18% { opacity: 1; } 40% { opacity: .55; } }

/* weapons (combat/weapons.js): swap button above Hot Streak, shows the current weapon (--wc colour) + crate ammo; R / E */
#btn-swap { position: fixed; z-index: 6; right: 140px; bottom: calc(112px + var(--safe-b)); width: 54px; height: 54px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0;
  border: 3px solid var(--pb-ink, #2b2440); background: radial-gradient(circle at 35% 30%, #fff 0, var(--wc, #3df2ff) 70%); color: var(--pb-ink, #2b2440); box-shadow: 0 4px 0 var(--pb-ink, #2b2440); touch-action: none; font: 800 12px/1 var(--pb-font-display, sans-serif); letter-spacing: .02em; }
#btn-swap.hidden { display: none; }
#btn-swap small { font-size: 11px; font-weight: 700; opacity: .85; }
#btn-swap:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pb-ink, #2b2440); }
html.desk #btn-swap::after { content: 'R'; position: absolute; bottom: -6px; right: -4px; font-size: 12px; color: #fff; background: #2b2440; border-radius: 6px; padding: 0 4px; }

/* boot card (stall / error + Retry) on the splash */
#ld-card, #fade .tl-card { position: relative; z-index: 2; width: min(340px, calc(86 * var(--svw, 1vw))); margin-top: 6px; padding: 14px 16px; border-radius: 22px; background: var(--pb-sand, #fff4e2); border: 3px solid var(--pb-ink, #1c0f2e); box-shadow: 0 5px 0 var(--pb-ink, #1c0f2e); text-align: center; color: var(--pb-ink, #1c0f2e); }
#ld-card p, #fade .tl-card p { margin: 0 0 10px; font: 800 14px/1.35 var(--pb-font-body, sans-serif); }
#ld-card button, #fade .tl-card button { min-width: 160px; height: 48px; border-radius: 14px; border: 3px solid var(--pb-ink, #1c0f2e); background: var(--pb-grad-mango, #ffc53a); box-shadow: 0 4px 0 var(--pb-ink, #1c0f2e); font: 400 22px/1 var(--pb-font-display, sans-serif); text-transform: uppercase; color: var(--pb-ink, #1c0f2e); pointer-events: auto; }
#ld-card.soft { background: rgba(255,244,226,.94); }
#fade.tl-has-card .tl-ui { top: auto; bottom: calc(3% + var(--safe-b, 0px)); }
#fade.tl-reward .tl-ui { top: auto; bottom: calc(4% + var(--safe-b, 0px)); } /* loadcard 11-03: the job chest row (meta-ui/jobchest.js row mode) sits in this column under NEXT JOB; the column anchors low so it never reaches the logo */
#fade .tl-note { color: #fff; font: 800 12px/1.3 var(--pb-font-body, sans-serif); text-align: center; opacity: .86; max-width: calc(86 * var(--svw, 1vw)); } /* loadstart: the job-load watchdog (game-loadguard.js) */

/* WebGL context loss overlay (src/engine/glguard.js): never a blank page. wait = restoring, tap = tap to continue,
   stuck = no restore after 3 s -> Reload button */
#gl-lost { position: fixed; inset: 0; z-index: calc(var(--z-system) + 30); display: none; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #3a2a5c, #1c142e 70%); color: #fff; text-align: center; touch-action: none; }
#gl-lost.on { display: grid; }
#gl-lost .gl-card { max-width: 320px; display: grid; gap: 12px; justify-items: center; }
#gl-lost b { font-size: 22px; font-weight: 900; line-height: 1.2; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
#gl-lost p { margin: 0; font-size: 15px; opacity: .85; min-height: 1em; }
#gl-lost.wait p::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: glspin .8s linear infinite; }
#gl-lost.tap b { animation: glpulse 1.4s ease-in-out infinite; }
#gl-lost .gl-reload { display: none; margin-top: 6px; padding: 12px 22px; border-radius: 18px; background: radial-gradient(circle at 35% 28%, #fff7c2, #ffd23f 45%, #ff9a1f); border: 3px solid #fff; color: var(--ink); font-weight: 900; font-size: 17px; box-shadow: 0 5px 0 rgba(0,0,0,.35); }
#gl-lost.stuck .gl-reload { display: block; }
#gl-lost .gl-reload:disabled { opacity: .6; }
@keyframes glspin { to { transform: rotate(360deg); } }
@keyframes glpulse { 50% { transform: scale(1.05); } }

/* ---------- Street Perks (FUN-REVIEW 10-15 #1; src/ui/perkcards.js) + Charged Super button (src/game-super.js) ---------- */
#perk-row { display: flex; gap: 5px; margin: 6px 0 0 3px; pointer-events: none; }
#perk-row.hidden { display: none; }
/* city buffs (hotdog 10-18, src/game-food.js): chips next to the job's perk chips, warm orange frame (job buffs keep their
   rarity ring); tap -> #buff-pop. The row lives in .pinfo (right of the portrait): never over the left column (leftcol.js). */
.chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 6px; margin: 4px 0 0 3px; max-width: 200px; }
body.in-mission .chip-row { margin-top: 6px; }
.chip-row #perk-row { margin: 0; }
#buff-row { display: flex; gap: 5px; pointer-events: auto; }
#buff-row.hidden { display: none; }
/* hudbuffs 10-19 (owner iPhone shot: the car bar sat on the hot dog chip): round icon chip like the perk icons (night disc), the
   ring drains with the time left (conic, --p 0..1 from ui/hudcard.js), m:ss as outlined text beside it, no backplate; the last
   10 s pulse red (.exp); a job-scoped buff (.job) = full ring, no clock */
.cb-chip { --rc: #ff9a1f; --rg: rgba(255,154,31,.55); position: relative; display: flex; align-items: center; gap: 4px; height: 26px; padding: 0; border: 0; background: none; color: #fff; font: 900 12.5px/1 var(--pb-font-body, sans-serif); font-variant-numeric: tabular-nums; cursor: pointer; animation: pk-popin .55s var(--pb-ease-pop, cubic-bezier(.34,1.56,.64,1)) both; -webkit-tap-highlight-color: transparent; }
.cb-chip::before { content: ''; position: absolute; inset: -6px -4px -3px; } /* a finger-sized hit area (not down onto the JOBS ticket) */
.cb-ring { position: relative; width: 26px; height: 26px; flex: none; padding: 2.5px; box-sizing: border-box; border-radius: 50%; background: conic-gradient(var(--rc) calc(var(--p, 1) * 360deg), rgba(28,15,46,.78) 0); box-shadow: 0 0 0 1.5px var(--pb-ink, #1c0f2e), 0 2px 0 var(--pb-ink, #1c0f2e), 0 0 9px var(--rg); transition: box-shadow .3s ease; }
.cb-ring > i { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #3a2160, var(--pb-night, #24133f) 72%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.cb-chip svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 0 rgba(28,15,46,.6)); }
.cb-chip b { min-width: 27px; text-align: left; letter-spacing: .01em; text-shadow: 0 1.5px 0 var(--pb-ink, #1c0f2e), 1.5px 0 0 var(--pb-ink, #1c0f2e), -1.5px 0 0 var(--pb-ink, #1c0f2e), 0 -1.5px 0 var(--pb-ink, #1c0f2e), 0 0 6px rgba(28,15,46,.6); }
.cb-chip.job b { display: none; }
.cb-chip.exp { --rc: #ff4d5e; --rg: rgba(255,77,94,.8); }
.cb-chip.exp .cb-ring { background: conic-gradient(var(--rc) calc(var(--p, 1) * 360deg), rgba(255,77,94,.42) 0); animation: cb-pulse .9s ease-in-out infinite; } /* the ring is nearly empty by now: the whole track goes red */
.cb-chip.exp b { color: #ffc2b8; }
@keyframes cb-pulse { 50% { transform: scale(1.14); box-shadow: 0 0 0 1.5px var(--pb-ink, #1c0f2e), 0 2px 0 var(--pb-ink, #1c0f2e), 0 0 14px var(--rg); } }
/* the car lane (hudbuffs 10-19): at the wheel the CAR takes the big bar slot under the name (lagoon, car icon, % left) and the
   person HP shrinks into the thin lane under it (the XP bar's slot; the XP bar steps aside, it hides while moving anyway).
   Same heights as on foot (17 + 6 / 7 + 5), so the card never grows and the chips below never reach the JOBS ticket (fixed at
   top 100). .hud-l.in-car from ui/hudcard.js setCarBar; < 30 % = coral + the icon pulses */
#carbar { position: relative; width: 128px; height: 17px; margin-top: 6px; border-radius: 5px; border: 2px solid var(--pb-ink, #1c0f2e); background: rgba(28,15,46,.65); transform: skewX(-12deg); transform-origin: 0 50%; box-shadow: 0 2px 0 var(--pb-ink, #1c0f2e), 0 0 10px rgba(22,209,193,.45); overflow: hidden; animation: cb-in .34s var(--pb-ease-pop, cubic-bezier(.34,1.56,.64,1)) both; }
#carbar.hidden { display: none; }
.cb-fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--pb-grad-lagoon, linear-gradient(180deg, #7cf5ea, #16d1c1 50%, #0ba597)); box-shadow: inset 0 3px 0 rgba(255,255,255,.35); transition: width .25s ease-out; }
.cb-car { position: absolute; left: 4px; top: 0; bottom: 0; display: grid; place-items: center; transform: skewX(12deg); }
.cb-car svg { width: 15px; height: 15px; fill: #fff; filter: drop-shadow(0 1px 0 var(--pb-ink, #1c0f2e)) drop-shadow(1px 0 0 var(--pb-ink, #1c0f2e)) drop-shadow(-1px 0 0 var(--pb-ink, #1c0f2e)); }
.cb-txt { position: absolute; inset: 0; text-align: center; color: #fff; transform: skewX(12deg); font: 900 11px/13px var(--pb-font-body, sans-serif); font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 var(--pb-ink), 1px 0 0 var(--pb-ink), -1px 0 0 var(--pb-ink), 0 -1px 0 var(--pb-ink); }
#carbar.low { box-shadow: 0 2px 0 var(--pb-ink, #1c0f2e), 0 0 10px rgba(255,107,91,.6); }
#carbar.low .cb-fill { background: linear-gradient(180deg, #ffb09e, #ff6b5b 55%, #e2423b); }
#carbar.low .cb-car { animation: cb-beat .9s ease-in-out infinite; }
.hpbar { transition: height .25s ease-out, width .25s ease-out, margin .25s ease-out, border-width .25s ease-out; }
.hud-l.in-car .hpbar { width: 116px; height: 7px; margin: 5px 0 0 6px; border-width: 1.5px; box-shadow: 0 1.5px 0 var(--pb-ink, #1c0f2e); }
.hud-l.in-car #hp-txt { opacity: 0; }
.hud-l.in-car #hp-fill { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.35); }
.hud-l.in-car .xpbar { display: none; }
.hud-l:not(.in-car) .xpbar { animation: cb-fade .3s ease-out backwards; transform-origin: 0 50%; }
@keyframes cb-in { 0% { opacity: 0; transform: translateX(-12px) skewX(-12deg) scaleX(.6); } 100% { opacity: 1; transform: skewX(-12deg); } }
@keyframes cb-beat { 50% { transform: skewX(12deg) scale(1.2); } }
@keyframes cb-fade { 0% { transform: translateX(-8px) skewX(-12deg) scaleX(.7); } 100% { transform: skewX(-12deg); } } /* transform only: no opacity fight with the in-mission / moving fades */
#buff-pop { position: fixed; z-index: calc(var(--z-screen) - 1); padding: 9px 12px 10px; color: var(--pb-ink, #2b2440); background: #fff6ec; border: 2.5px solid var(--pb-ink, #2b2440); border-radius: 14px; box-shadow: inset 0 0 0 2px #ffb04a, 0 4px 0 var(--pb-ink, #2b2440); font-family: var(--pb-font-body, sans-serif); opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: var(--ax, 20px) 0; pointer-events: none; transition: opacity .15s ease, transform .2s var(--pb-ease-pop, cubic-bezier(.34,1.56,.64,1)); }
#buff-pop.on { opacity: 1; transform: none; pointer-events: auto; }
#buff-pop::before { content: ''; position: absolute; top: -9px; left: calc(var(--ax, 20px) - 8px); border: 8px solid transparent; border-top: 0; border-bottom: 9px solid var(--pb-ink, #2b2440); }
#buff-pop small { display: block; font: 900 10px/1 var(--pb-font-body, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #e86a00; }
#buff-pop b { display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 400 19px/1.05 var(--pb-font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; }
#buff-pop b i { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffc061, #ff8a1f 70%); }
#buff-pop b svg { width: 19px; height: 19px; }
#buff-pop p { margin: 5px 0 7px; font: 700 13px/1.3 var(--pb-font-body, sans-serif); }
#buff-pop em { display: inline-block; padding: 3px 8px; border-radius: 8px; background: #ffe0b5; font: 900 12px/1.1 var(--pb-font-body, sans-serif); font-style: normal; font-variant-numeric: tabular-nums; }
.pk-mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pb-night, #2b2440); box-shadow: 0 0 0 2px var(--rc), 0 2px 0 var(--pb-ink, #2b2440); }
.pk-mini svg { width: 21px; height: 21px; }
.pk-mini.new { animation: pk-popin .55s var(--pb-ease-pop, cubic-bezier(.34,1.56,.64,1)) both; }
@keyframes pk-popin { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
#perk-pick { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, var(--safe-b)); touch-action: none; user-select: none; -webkit-user-select: none; font-family: var(--pb-font-body, sans-serif); }
#perk-pick .pk-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 38%, rgba(60,26,96,.55), rgba(18,8,32,.86)); opacity: 0; transition: opacity .25s ease; }
#perk-pick.pk-in .pk-dim { opacity: 1; }
#perk-pick.pk-out { opacity: 0; transition: opacity .2s ease; }
.pk-box { position: relative; width: min(100%, 420px); display: flex; flex-direction: column; gap: clamp(8px, calc(1.6 * var(--svh, 1svh)), 14px); }
.pk-head { text-align: center; color: #fff; }
.pk-kick { display: inline-block; font: 400 13px/1 var(--pb-font-display, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--pb-ink, #2b2440); background: #ffd23f; padding: 5px 10px 4px; border: 2px solid var(--pb-ink, #2b2440); border-radius: 8px; transform: rotate(-2deg); box-shadow: 0 3px 0 var(--pb-ink, #2b2440); }
.pk-title { display: block; margin-top: 7px; font: 400 clamp(30px, calc(8.5 * var(--svw, 1vw)), 42px)/1.02 var(--pb-font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; text-shadow: var(--pb-text-outline, 0 2px 0 #2b2440); }
.pk-sub { display: block; margin-top: 4px; font: 800 14px/1.25 var(--pb-font-body, sans-serif); opacity: .92; }
#perk-pick.guided .pk-sub { display: inline-block; margin-top: 8px; padding: 7px 12px; color: var(--pb-ink, #2b2440); background: #fff6ec; border: 2px solid var(--pb-ink, #2b2440); border-radius: 12px; opacity: 1; box-shadow: 0 3px 0 var(--pb-ink, #2b2440); }
.pk-cards { display: flex; flex-direction: column; gap: clamp(8px, calc(1.5 * var(--svh, 1svh)), 13px); }
.pk-card { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: clamp(76px, calc(12 * var(--svh, 1svh)), 96px); padding: 9px 14px 9px 10px; text-align: left; font: inherit; color: var(--pb-ink, #2b2440); cursor: pointer;
  background: #fff6ec; border: 3px solid var(--pb-ink, #2b2440); border-radius: 16px; box-shadow: inset 0 0 0 3px var(--rc), 0 6px 0 var(--pb-ink, #2b2440);
  opacity: 0; transform: translateY(28px) scale(.92); transition: transform .34s var(--pb-ease-pop, cubic-bezier(.34,1.56,.64,1)) calc(var(--i) * 80ms), opacity .2s ease calc(var(--i) * 80ms), box-shadow .15s ease; }
#perk-pick.pk-in .pk-card { opacity: 1; transform: none; }
.pk-card.r-rare { background: #eef2ff; }
.pk-card.r-epic { background: #fff0fb; }
.pk-ico { flex: none; width: clamp(56px, calc(16 * var(--svw, 1vw)), 66px); height: clamp(56px, calc(16 * var(--svw, 1vw)), 66px); display: grid; place-items: center; border-radius: 14px; background: var(--pb-night, #2b2440); box-shadow: 0 0 0 3px var(--rc), 0 0 18px var(--rc); }
.pk-ico svg { width: 78%; height: 78%; }
.pk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pk-rar { font: 900 10px/1 var(--pb-font-body, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--rc); border: 1.5px solid var(--pb-ink, #2b2440); border-radius: 6px; padding: 3px 6px 2px; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.pk-name { max-width: 100%; font: 400 clamp(18px, calc(5.2 * var(--svw, 1vw)), 23px)/1.05 var(--pb-font-display, sans-serif); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.pk-desc { max-width: 100%; font: 800 clamp(12px, calc(3.5 * var(--svw, 1vw)), 14px)/1.25 var(--pb-font-body, sans-serif); color: #4a3f63; overflow-wrap: anywhere; }
.pk-card.on { transform: scale(1.04); box-shadow: inset 0 0 0 3px var(--rc), 0 0 0 4px #fff, 0 0 30px var(--rc), 0 6px 0 var(--pb-ink, #2b2440); }
#perk-pick.picked .pk-card:not(.on) { opacity: .35; transform: scale(.96); }
#perk-pick.guided.pk-in:not(.picked) .pk-card { animation: pk-glow 1.3s ease-in-out .5s infinite; }
@keyframes pk-glow { 50% { box-shadow: inset 0 0 0 3px var(--rc), 0 0 0 3px #fff, 0 0 22px var(--rc), 0 6px 0 var(--pb-ink, #2b2440); } }
@media (orientation: landscape) and (max-height: 520px) {
  .pk-box { width: min(100%, 760px); }
  .pk-cards { flex-direction: row; }
  .pk-card { flex: 1; flex-direction: column; align-items: center; text-align: center; min-height: 0; }
  .pk-txt { align-items: center; }
}
/* Super button: dark disc + a fill ring (--k = meter), the leader's icon; gold ring + pulse when ready */
#btn-skill { --sc: #3df2ff; background: radial-gradient(circle, #2a1846 0 60%, transparent 61%), conic-gradient(var(--sc) calc(var(--k, 1) * 360deg), rgba(255,255,255,.18) 0); opacity: 1; }
#btn-skill[data-leader="dot"] { --sc: #6a9eff; }
#btn-skill[data-leader="big_tuna"] { --sc: #ffc63a; }
#btn-skill[data-leader="sly"] { --sc: #c58bff; }
#btn-skill svg { width: 40px; height: 40px; fill: initial; opacity: .55; filter: saturate(.5) drop-shadow(0 1px 0 rgba(0,0,0,.4)); transition: opacity .2s ease; }
#btn-skill.ready { background: radial-gradient(circle, #3a1f63 0 60%, transparent 61%), conic-gradient(#ffd23f 0 360deg); box-shadow: 0 5px 0 var(--pb-ink, #2b2440), 0 0 24px rgba(255,210,63,.95); animation: pulse 1s ease-in-out infinite; }
#btn-skill.ready svg, #btn-skill.active svg { opacity: 1; filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
#btn-skill.active { background: radial-gradient(circle, #3a1f63 0 60%, transparent 61%), conic-gradient(var(--sc) 0 360deg); box-shadow: 0 5px 0 var(--pb-ink, #2b2440), 0 0 26px var(--sc); }
#btn-skill.nope { animation: sup-nope .3s ease; }
@keyframes sup-nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* one cash ledger (meta/ledger.js): the job pickups under the bank pill, never added to it */
.cashpill .cashrun { position: absolute; right: 4px; top: calc(100% + 4px); padding: 2px 8px; border-radius: 10px; background: rgba(28,15,46,.82); border: 1.5px solid #3BD16F; color: #9BF5B6; font: 800 12px/1.2 var(--pb-font-body, sans-serif); white-space: nowrap; display: none; pointer-events: none; }
.cashpill .cashrun.on { display: block; }
/* Turf business proximity pill (game-biz.js #biz-near, turf-world 10-16): "Open <business>" near its site, on foot or in a slow car */
#biz-near { position: fixed; z-index: 7; left: 50%; bottom: calc(196px + var(--safe-b, 0px)); transform: translateX(-50%) skewX(-7deg); display: flex; align-items: center; gap: 8px; max-width: calc(78 * var(--svw, 1vw));
  padding: 7px 16px 7px 8px; border-radius: 16px; border: 3px solid var(--pb-ink, #2b2440); background: var(--pb-sand, #fff4e2); color: var(--pb-ink, #2b2440); box-shadow: 0 5px 0 var(--pb-ink, #2b2440);
  font: 400 17px/1.05 var(--pb-font-display, Anton, sans-serif); text-transform: uppercase; letter-spacing: .02em; white-space: normal; text-align: left; width: max-content; max-width: calc(86 * var(--svw, 1vw)); pointer-events: auto; }
#biz-near.hidden { display: none; }
#biz-near > * { transform: skewX(7deg); } #biz-near span { overflow: hidden; text-overflow: ellipsis; }
#biz-near i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pb-grad-mango, #ffc53a); border: 2.5px solid var(--pb-ink, #2b2440); color: var(--pb-ink, #2b2440); }
#biz-near.own i { background: #2fc7c0; color: #fff; } #biz-near i svg { width: 22px; height: 22px; }
#biz-near i { background: #fff4e2; } #biz-near.own i { background: #d9fbf6; border-color: #2fc7c0; } #biz-near i svg { width: 28px; height: 28px; } /* full-colour business sticker (turf-world2) */
#biz-near:active { transform: translateX(-50%) skewX(-7deg) translateY(3px); box-shadow: 0 2px 0 var(--pb-ink, #2b2440); }
#biz-near.pulse { animation: biz-pop .6s cubic-bezier(.2,1.6,.4,1) 2; }
@keyframes biz-pop { 50% { transform: translateX(-50%) skewX(-7deg) scale(1.12); } }
body.in-mission #biz-near { display: none; }
/* drive-in garage bay (game-garagebay.js, garage2 10-20): the showroom is the car + the bay panel: the street HUD steps out */
body.in-bay #hud, body.in-bay #stick-zone, body.in-bay #btn-act, body.in-bay #minimap, body.in-bay #btn-roll, body.in-bay #btn-skill, body.in-bay #btn-swap, body.in-bay #btn-jobs, body.in-bay #waypoint, body.in-bay #guidepin, body.in-bay #biz-near, body.in-bay #mu-root, body.in-bay #stick, body.in-bay #radio, body.in-bay #radio-toast { opacity: 0; pointer-events: none; --hud-tap: none; transition: opacity .25s; }
/* d3-m45 drawbridge: speed vs the jump speed (game-bridge.js bridgePill), under the objective, centred */
#bridge-spd { position: fixed; z-index: 6; left: 50%; top: calc(200px + var(--safe-t, 0px)); transform: translateX(-50%) skewX(-7deg); display: none; align-items: center; gap: 8px; padding: 6px 12px 9px; background: rgba(28,15,46,.9); border: 2px solid var(--pb-ink, #1c0f2e); border-radius: 10px; box-shadow: 0 3px 0 var(--pb-ink, #1c0f2e); pointer-events: none; white-space: nowrap; }
#bridge-spd.on { display: flex; }
#bridge-spd b { font: 400 22px/1 var(--pb-font-display, Impact, sans-serif); letter-spacing: .03em; color: #ff5a6a; transform: skewX(7deg); }
#bridge-spd span { font: 900 12px/1 var(--pb-font-body, sans-serif); color: #fff; opacity: .85; text-transform: uppercase; transform: skewX(7deg); }
#bridge-spd i { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
#bridge-spd em { display: block; height: 100%; width: 0; background: #ff5a6a; transition: width .1s linear; }
#bridge-spd.ok b { color: #7dff6a; } #bridge-spd.ok em { background: #7dff6a; }

/* Skills 10-17 (game-skills.js): two active-ability buttons in the right-thumb arc above the action button (the left-thumb
   joystick area stays free). Dark disc + a cooldown ring in the branch colour (--k 0..1), big icon, seconds left on top
   while cooling, one pulse when ready, grey when it cannot fire here (car / foot / swimming). */
.mu-ab { --bc: #3df2ff; position: fixed; z-index: 6; width: 60px; height: 60px; border-radius: 50%; padding: 0; display: grid; place-items: center; touch-action: none;
  border: 3px solid var(--pb-ink, #2b2440); box-shadow: 0 5px 0 var(--pb-ink, #2b2440); color: #fff;
  background: radial-gradient(circle, #2a1846 0 62%, transparent 63%), conic-gradient(var(--bc) calc(var(--k, 1) * 360deg), rgba(255,255,255,.16) 0); }
#btn-ab0 { right: 30px; bottom: calc(222px + var(--safe-b)); }
#btn-ab1 { right: 110px; bottom: calc(190px + var(--safe-b)); }
.mu-ab.hidden { display: none; }
.mu-ab[data-branch="brawl"] { --bc: #ff8a3d; } .mu-ab[data-branch="wheel"] { --bc: #c9ff3d; } .mu-ab[data-branch="duel"] { --bc: #ff3e8e; }
.mu-ab .ico { width: 40px; height: 40px; display: block; pointer-events: none; transition: opacity .15s ease, filter .15s ease; }
.mu-ab .ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mu-ab .sec { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 400 24px/1 var(--pb-font-display, Anton, Impact, sans-serif); color: #fff;
  text-shadow: 0 0 3px #2b2440, 0 2px 0 #2b2440, 2px 2px 0 #2b2440, -2px 2px 0 #2b2440; }
.mu-ab.cool .ico { opacity: .4; filter: saturate(.4); }
.mu-ab.off .ico { opacity: .3; filter: grayscale(1); } .mu-ab.off { box-shadow: 0 5px 0 var(--pb-ink, #2b2440); background: radial-gradient(circle, #3a3448 0 62%, transparent 63%), rgba(255,255,255,.16); }
.mu-ab.ready { animation: ab-ready .5s ease-out 1; box-shadow: 0 5px 0 var(--pb-ink, #2b2440), 0 0 16px color-mix(in srgb, var(--bc) 70%, transparent); }
.mu-ab:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pb-ink, #2b2440); }
.mu-ab.nope { animation: sup-nope .3s ease; }
@keyframes ab-ready { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
html.desk #btn-ab0::after, html.desk #btn-ab1::after { content: attr(data-slot); position: absolute; bottom: -6px; right: -4px; font-size: 12px; background: #2b2440; border-radius: 6px; padding: 0 4px; }
body.chill .mu-ab { opacity: .25; transition: opacity 1.2s ease; }
/* Bullet Time / Adrenaline: a light edge tint (one fixed layer like #lowhp, no blur, no filter on the canvas) */
#sk-tint { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
body.sk-bt #sk-tint { opacity: 1; background: radial-gradient(ellipse at center, rgba(61,242,255,0) 50%, rgba(61,242,255,.38) 100%); }
body.sk-ad #sk-tint { opacity: 1; background: radial-gradient(ellipse at center, rgba(255,62,90,0) 55%, rgba(255,62,90,.34) 100%); }

/* =====================================================================================================================
   Big screens (owner voice 10-17: tablets, iPad + Android, and desktop browsers). Classes on <html> from
   src/ui/viewport.js applyBig (+ the inline first-paint twin in index.html); NONE of them is set on a portrait phone, so
   every rule here is scoped and the phone layout is the old one. Live: resize / rotation / a foldable opening re-applies.
   vp-wide  (w / h > 0.85)  full-screen art = a 9:16 poster column over a blurred fill of the same picture (no cover crop of a
                            portrait painting across a landscape screen; the column's pixels come from src/ui/img.js at its
                            real drawn size: the 1440 / 1536 px painted-source variants on big screens)
   ui-z     (--ui > 1)      the phone-sized UI is ZOOMED by --ui (shorter fit vs 430 x 780, max 1.6): cards, sheets,
                            screens, HUD corners, buttons. Inside zoomed layers viewport units go through --svh / --svw
                            (Chrome's standard zoom multiplies 1svh too; a px custom property is zoomed like any px).
                            World-anchored DOM (HP bars, damage numbers, name tags, waypoint, chest button) is NOT zoomed.
   ui-wide  (w / --ui >= 640) the zoomed layout is still wider than a phone: screens / results / reveals become centred
                            columns instead of rows stretched across the screen.
   ===================================================================================================================== */
.ld-back { display: none; }
html.vp-wide .ld-back { display: block; position: absolute; inset: -6%; z-index: 0; background-position: 50% 40%; background-size: cover; background-repeat: no-repeat; filter: blur(28px) saturate(1.2) brightness(.58); pointer-events: none; }
html.vp-wide .ld-slide { left: 50%; right: auto; width: calc(var(--app-h, 100vh) * .5625); margin-left: calc(var(--app-h, 100vh) * -.28125); background-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
html.vp-wide #loading .ld-shade, html.vp-wide #fade .ld-shade { background: radial-gradient(70% 60% at 50% 42%, rgba(18,8,31,0), rgba(18,8,31,.35)), linear-gradient(180deg, rgba(36,19,63,.28) 0%, rgba(36,19,63,0) 20%, rgba(36,19,63,0) 56%, rgba(36,19,63,.5) 70%, rgba(28,15,46,.8) 84%, rgba(23,11,43,.94) 100%); }
/* Landscape loader (owner 10-18 on a 1280x791 desktop: "the 9:16 art as a centre column with blurred sides; I want a real
   desktop-width layout"). html.vp-land (src/ui/viewport.js: w / h >= 1.3, short side >= 500, the build has the wide art):
   the boot key art + the boss posters are 16:9 paintings (../art/loader/wide, web only) drawn full-bleed (cover; the push-in
   origin = the subject, src/ui/loader.js wideFocal), logo top-left, bar + status bottom-centre. Overrides the column above. */
html.vp-land .ld-back { display: none; }
html.vp-land .ld-slide { left: 0; right: 0; width: auto; margin-left: 0; background-position: 50% 30%; -webkit-mask-image: none; mask-image: none; }
html.vp-land #loading .ld-shade, html.vp-land #fade .ld-shade { background: radial-gradient(42% 46% at 0% 0%, rgba(18,8,31,.55), rgba(18,8,31,0) 100%), linear-gradient(180deg, rgba(36,19,63,0) 0%, rgba(36,19,63,0) 62%, rgba(28,15,46,.6) 80%, rgba(23,11,43,.9) 100%); }
html.vp-land #loading .logo, html.vp-land #fade .logo { left: calc(3.2% + var(--safe-l, 0px)); right: auto; top: calc(4.5% + var(--safe-t, 0px)); transform-origin: 0 0; }
html.vp-land #loading .logo span, html.vp-land #fade .logo span { font-size: 46px; } html.vp-land #loading .logo span + span, html.vp-land #fade .logo span + span { font-size: 60px; }
html.vp-land #loading .ld-ui { top: auto; bottom: calc(9% + var(--safe-b, 0px)); }
html.vp-land #fade .tl-ui { top: auto; bottom: calc(8% + var(--safe-b, 0px)); }

/* zoomed UI (one factor for everything the player reads or taps) */
html.ui-z :is(#hud, #objective, #bossbar, #prompt, #btn-jobs, #toast, #btn-roll, #btn-skill, #btn-ab0, #btn-ab1, #btn-swap, #btn-act, .modal, .mu-host, #mu-root, .mu-layer, .mu-toast,
  #btn-atk, #loading .logo, #loading .ld-ui, #loading .ld-foot, #fade .logo, #fade .tl-ui, #msg-lane, #tw-banner, #tw-chip, #perk-pick, #biz-near, #gb-update) { zoom: var(--ui); }
html.ui-z .mu-map { zoom: 1; } /* the full-screen district map lays its markers out from its own canvas size */
html.ui-z :is(.mu-layer, .modal, .mu-host, #mu-root) :is(.mu-layer, .modal, .mu-host) { zoom: 1; } /* never twice */

/* centred columns */
html.ui-wide .mu-screen > .mu-head, html.ui-wide .mu-screen > .mu-body { width: 100%; max-width: 820px; align-self: center; }
html.ui-wide .mu-screen > .mu-tabs { width: calc(100% - 28px); max-width: 792px; align-self: center; margin-left: 0; margin-right: 0; }
html.ui-wide .mu-res { max-width: 560px; margin: 0 auto; }
html.ui-wide .mu-reveal .rbtns { left: 50%; right: auto; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); }
html.ui-wide .mu-reveal .rclose { right: max(12px, calc(50% - 300px)); }

/* desktop pointer: hover states + a pointer cursor on everything tappable (touch screens never see them) */
@media (hover: hover) and (pointer: fine) {
  :is(.mu-btn, .mu-x, .mu-tabs button, .mu-tile, .go, .ghost, .seg button, #btn-jobs, #btn-set, #btn-act, #btn-roll, #btn-skill, #btn-swap, .mu-ab, [data-act], [data-buy], [data-tab], [data-go]):not(:disabled) { cursor: pointer; }
  :is(.mu-btn, .go, .ghost, #btn-jobs, #btn-act, #btn-roll, #btn-skill, #btn-swap, .mu-ab, .mu-tile, .mu-x):not(:disabled):hover { filter: brightness(1.1) saturate(1.06); }
  .mu-tabs button:not(.on):hover { background: #4A3680 !important; }
  .seg button:not(.on):hover { background: rgba(255,255,255,.55); }
  :is(.mu-job, .mu-quest, .mu-car, .mu-crew > *, .deal, .slide, .mu-biz):hover { filter: brightness(1.04); }
}
/* story scenes on big screens (src/story/dialogue.js): the painted 9:16 scene as a column over its blurred fill, the text box
   and the portraits gathered around a centre column instead of the screen edges; portraits grow with the UI zoom */
html.vp-wide .dlg-cam::before { content: ''; position: absolute; inset: -6%; background: var(--dlg-fill, none) center 40% / cover no-repeat; filter: blur(28px) saturate(1.2) brightness(.55); }
html.vp-wide .dlg-bg { left: 50%; right: auto; width: calc(var(--app-h, 100vh) * 1.14 * .5625); margin-left: calc(var(--app-h, 100vh) * 1.14 * -.28125);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
html.ui-z .dlg-por { width: min(74vw, 56vh, calc(440px * var(--ui))); }
html.ui-wide .dlg-box, html.ui-wide .dlg-intro { left: max(14px, calc(50% - 400px)); right: max(14px, calc(50% - 400px)); }
html.ui-wide .dlg-por.left { left: max(-1vw, calc(50% - 640px)); }
html.ui-wide .dlg-por.right { right: max(-1vw, calc(50% - 640px)); }
html.ui-z .dlg-text { font-size: calc(21px * var(--ui)); }
html.ui-z .dlg-intro p { font-size: calc(20px * var(--ui)); }
html.ui-z .dlg-intro b { font-size: calc(46px * var(--ui)); }
html.ui-z .dlg-intro small { font-size: calc(20px * var(--ui)); }
html.ui-z .dlg-intro i { font-size: calc(22px * var(--ui)); }
html.ui-z .dlg-name span { font-size: calc(25px * var(--ui)); }
html.ui-z .dlg-role { font-size: calc(20px * var(--ui)); }
/* Landscape story (owner 10-18 on a 1280x794 desktop: Dot's garage was a 9:16 column with blurred sides and letterbox bars;
   "story scenes full width on desktop too"). html.vp-land + .dlg.land (src/story/dialogue.js: the wide 16:9 painting of the
   scene loaded, ../art/story/wide, web only): the scene full-bleed (cover, the approved 9:16 scene is its middle strip), no
   blurred fill, no bars; the text box a centred column (--dlg-bw), each bust anchored over its end of the box (--dlg-pw).
   Without the wide file (.land off) the column layout above stays. Phones / portrait never get vp-land. */
html.vp-land .dlg.land { --dlg-bw: min(calc(820px * var(--ui, 1)), 66vw); --dlg-pw: min(56vh, calc(440px * var(--ui, 1)), 34vw); }
html.vp-land .dlg.land .dlg-cam::before { display: none; }
html.vp-land .dlg.land .dlg-bg { left: -7%; right: -7%; width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
html.vp-land .dlg.land .dlg-bg img { object-position: 50% 42%; }
html.vp-land .dlg.land .dlg-bar { display: none; }
html.vp-land .dlg.land .dlg-shade { background: linear-gradient(180deg, rgba(28,15,46,.28) 0%, rgba(28,15,46,0) 14%, rgba(28,15,46,0) 48%, rgba(28,15,46,.72) 100%); }
html.vp-land .dlg.land :is(.dlg-box, .dlg-intro) { left: calc(50% - var(--dlg-bw) / 2); right: calc(50% - var(--dlg-bw) / 2); }
html.vp-land .dlg.land .dlg-por { width: var(--dlg-pw); }
html.vp-land .dlg.land .dlg-por.left { left: max(1.5vw, calc(50% - var(--dlg-bw) / 2 - var(--dlg-pw) * .38)); }
html.vp-land .dlg.land .dlg-por.right { right: max(1.5vw, calc(50% - var(--dlg-bw) / 2 - var(--dlg-pw) * .38)); }

/* ---------- combat state (hubhud 10-19, src/game-combat.js + combat/combatstate.js) ----------
   body.sup-off: the Super cannot matter now (calm and not charged, or at the wheel): slide down + fade, no taps. Back with a
   short springy fade / slide (individual translate / scale: they compose with the .ready pulse / :active transforms).
   Skill buttons (.mu-ab) appear from display none with the same short pop (@starting-style). body.cb-on (a hub fight): heartbeat ring in the chip
   row (soft glow, no plate) + #cb-vig one soft red edge pulse when it starts. */
#btn-skill { transition: opacity .3s ease-out, translate .36s cubic-bezier(.2,.9,.25,1.2), scale .36s cubic-bezier(.2,.9,.25,1.2), box-shadow .2s ease; }
body.sup-off #btn-skill { opacity: 0; translate: 0 26px; scale: .7; pointer-events: none; transition-duration: .2s; transition-timing-function: ease-in; }
.mu-ab { transition: opacity .3s ease-out, translate .34s cubic-bezier(.2,.9,.25,1.2), scale .34s cubic-bezier(.2,.9,.25,1.2); }
@starting-style { .mu-ab:not(.hidden) { opacity: 0; translate: 0 18px; scale: .7; } } /* (older browsers: it just appears) */
#cmb-chip { display: none; position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; place-items: center; pointer-events: none;
  background: radial-gradient(circle, rgba(28,15,46,.9) 0 54%, rgba(28,15,46,0) 56%); box-shadow: 0 0 0 2px var(--pb-danger, #FF3B4E), 0 0 10px 1px rgba(255,59,78,.55); }
#cmb-chip svg { width: 15px; height: 15px; fill: none; stroke: #FF8A96; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.cb-on:not(.in-mission) #cmb-chip { display: grid; animation: cb-beat 1.05s ease-in-out infinite; }
@keyframes cb-beat { 0%, 100% { scale: 1; box-shadow: 0 0 0 2px var(--pb-danger, #FF3B4E), 0 0 8px 0 rgba(255,59,78,.4); } 14% { scale: 1.14; box-shadow: 0 0 0 2px var(--pb-danger, #FF3B4E), 0 0 14px 3px rgba(255,59,78,.7); } 28% { scale: 1; } 42% { scale: 1.08; } }
#cb-vig { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(255,40,70,0) 58%, rgba(255,40,70,.34) 100%); }
#cb-vig.hit { animation: cb-vig 1.1s ease-out 1; }
@keyframes cb-vig { 0% { opacity: 0; } 16% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.cb-on:not(.in-mission) #cmb-chip { animation: none; } #cb-vig.hit { animation-duration: .6s; } .mu-ab, #btn-skill { transition-duration: .01s; } }
