/* THE CHEF - layout concept: full-bleed 3D scene, chamfered night-indigo controls with palm-oil gold accents.
   Single committed look (dark, game UI). Tokens first. */
:root {
  --ink: #0f1030; --ink2: #1a1c4a; --ink3: #272b66;
  --gold: #f4b72a; --gold2: #e08a12; --palm: #e5532c; --leaf: #22b36b;
  --cream: #fff4de; --mute: #a9a8d0; --line: rgba(255, 244, 222, .14);
  --bad: #ff5a5a; --good: #43d38b; --warn: #ffb020;
  --disp: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--cream); font-family: var(--body); font-size: 15px; overflow: hidden; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; }
body { padding: 0; }
#app { position: fixed; inset: 0; background: var(--ink); }
html.kbf #app { height: var(--H); bottom: auto; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.icw { display: inline-flex; }

/* ---------- chamfered buttons ---------- */
.cbtn { --c: 11px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 20px; font-weight: 800; letter-spacing: .01em;
  color: var(--cream); background: linear-gradient(180deg, #343a8c, #232766); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: transform .12s, filter .12s; }
.cbtn:active { transform: scale(.95); filter: brightness(1.2); }
.cbtn.gold { color: #2a1600; background: linear-gradient(180deg, #ffd45e, var(--gold2)); }
.cbtn.palm { background: linear-gradient(180deg, #ff7a4a, #c93a16); }
.cbtn.leaf { background: linear-gradient(180deg, #38d68a, #14864f); color: #04200f; }
.cbtn.ghost { background: rgba(255, 244, 222, .09); }
.cbtn.sm { min-height: 40px; padding: 0 12px; --c: 8px; font-size: 13px; }
.cbtn.sq { width: 46px; min-height: 46px; padding: 0; }
.cbtn.sq.sm { width: 40px; min-height: 40px; }
.cbtn[disabled], .cbtn.off { filter: grayscale(.85) brightness(.7); pointer-events: none; }
.cbtn.wide { width: 100%; }
.cbtn .ic { width: 1.3em; height: 1.3em; }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--st) + 18px) max(18px, var(--sr)) calc(var(--sb) + 22px) max(18px, var(--sl));
  background: linear-gradient(180deg, rgba(15, 16, 48, .55) 0%, rgba(15, 16, 48, 0) 38%, rgba(15, 16, 48, .78) 70%, rgba(15, 16, 48, .96) 100%); touch-action: none; }
.screen .stack { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.logo { font-family: var(--disp); font-weight: 800; font-size: clamp(40px, 13vw, 66px); line-height: .92; letter-spacing: -.02em; margin: 0; color: var(--cream); text-shadow: 0 4px 0 #0f1030, 0 0 40px rgba(244, 183, 42, .35); text-wrap: balance; }
.logo i { font-style: normal; color: var(--gold); }
.tag { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.4; max-width: 30ch; }
.screen h2 { font-family: var(--disp); font-weight: 800; font-size: 24px; margin: 0; line-height: 1.15; text-wrap: balance; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 13px; color: var(--mute); }
.field input { font: inherit; font-size: 18px; font-weight: 700; color: var(--cream); background: rgba(255, 244, 222, .08); border: 2px solid var(--line); border-radius: 0; padding: 12px 14px; outline: none; touch-action: manipulation; user-select: text; -webkit-user-select: text; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.field input:focus { border-color: var(--gold); background: rgba(255, 244, 222, .13); }
.hint { margin: 0; font-size: 13px; color: var(--mute); }
.err { color: var(--bad); font-weight: 700; font-size: 14px; min-height: 18px; margin: 0; }
.gcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gcard { --c: 16px; padding: 14px 10px; font-family: var(--disp); font-weight: 800; font-size: 17px; text-align: center; background: rgba(255, 244, 222, .09); color: var(--cream);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); border: 0; transition: transform .15s, background .15s; }
.gcard small { display: block; font-family: var(--body); font-weight: 600; color: var(--mute); font-size: 12px; margin-top: 3px; }
.gcard.on { background: linear-gradient(180deg, #ffd45e, var(--gold2)); color: #2a1600; transform: translateY(-4px); }
.gcard.on small { color: #5a3a08; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#hud > * { pointer-events: auto; }
.hud-top { position: absolute; left: max(10px, var(--sl)); right: max(10px, var(--sr)); top: calc(var(--st) + 10px); display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-l, .hud-r { display: flex; gap: 8px; align-items: flex-start; }
.hud-l { flex-direction: column; }
.pill { --c: 9px; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; font-weight: 800; background: rgba(15, 16, 48, .82); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.pill .ic { color: var(--gold); }
.pill.lvl { gap: 8px; font-size: 13px; }
.xpbar { width: 64px; height: 6px; background: rgba(255, 255, 255, .15); border-radius: 3px; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--palm)); }
#notes { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 196px); width: min(88vw, 380px); display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; pointer-events: none; z-index: 5; }
.note { --c: 8px; display: flex; align-items: center; gap: 8px; padding: 8px 14px; max-width: 100%; line-height: 1.35; font-weight: 700; font-size: 13px; background: rgba(15, 16, 48, .88); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); animation: noteIn .25s ease-out; }
.note.good .ic { color: var(--good); } .note.warn .ic { color: var(--warn); } .note.bad .ic { color: var(--bad); } .note.info .ic { color: var(--gold); }
.note b { color: var(--gold); }
@keyframes noteIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* cooking dashboard: one card per active pot */
#jobs { position: absolute; left: max(10px, var(--sl)); right: max(10px, var(--sr)); top: calc(var(--st) + 100px); display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; pointer-events: none; }
#jobs::-webkit-scrollbar { display: none; }
.jcard { --c: 10px; pointer-events: auto; flex: none; width: 138px; display: grid; grid-template-columns: 38px 1fr; gap: 8px; align-items: center; padding: 8px 10px 8px 8px; text-align: left; background: rgba(15, 16, 48, .86);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.jcard .ring { width: 38px; height: 38px; position: relative; }
.jcard .ring svg { width: 38px; height: 38px; transform: rotate(-90deg); }
.jcard .ring circle { fill: none; stroke-width: 4; }
.jcard .ring .bg { stroke: rgba(255, 255, 255, .15); } .jcard .ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.jcard .ring .ic { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; }
.jcard .nm { font-weight: 800; font-size: 12px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard .st { font-size: 11px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard .tm { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.jcard.ready .ring .fg { stroke: var(--good); } .jcard.ready { background: rgba(14, 70, 48, .9); }
.jcard.warn .ring .fg { stroke: var(--warn); } .jcard.warn { background: rgba(92, 60, 8, .92); }
.jcard.burnt .ring .fg { stroke: var(--bad); } .jcard.burnt { background: rgba(110, 18, 18, .92); animation: pulse .8s infinite alternate; }
@keyframes pulse { to { filter: brightness(1.35); } }

/* coach card */
#coach { --c: 12px; position: absolute; left: max(10px, var(--sl)); top: calc(var(--st) + 170px); width: min(70vw, 300px); padding: 10px 12px 12px; background: rgba(15, 16, 48, .9);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
#coach.nojobs { top: calc(var(--st) + 100px); }
#coach .ch { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--gold); }
#coach .ch .sp { flex: 1; }
#coach .ch button { background: none; color: var(--mute); padding: 4px; }
#coach .tx { margin: 6px 0 8px; font-weight: 600; font-size: 14px; line-height: 1.4; color: var(--cream); max-height: 6.2em; overflow: auto; touch-action: pan-y; }
#coach .dots { display: flex; gap: 3px; margin-bottom: 8px; flex-wrap: wrap; }
#coach .dots i { width: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); } #coach .dots i.done { background: var(--good); } #coach .dots i.act { background: var(--gold); }
#coach .row { display: flex; gap: 6px; flex-wrap: wrap; }
#coach.min .tx, #coach.min .dots, #coach.min .row { display: none; }

/* joystick + context button */
#joy { position: absolute; left: max(16px, var(--sl)); bottom: calc(var(--sb) + 24px); width: 136px; height: 136px; touch-action: none;
  background: radial-gradient(circle at 50% 40%, rgba(60, 66, 150, .55), rgba(15, 16, 48, .7)); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
#joy::before { content: ''; position: absolute; inset: 14px; clip-path: inherit; border: 0; background: rgba(255, 244, 222, .06); }
#joyknob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; background: linear-gradient(180deg, #ffd45e, var(--gold2)); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); will-change: transform; }
#ctx { --c: 14px; position: absolute; right: max(16px, var(--sr)); bottom: calc(var(--sb) + 34px); min-width: 120px; min-height: 64px; padding: 0 20px 0 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: #2a1600; text-align: left;
  background: linear-gradient(180deg, #ffd45e, var(--gold2)); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); animation: ctxIn .2s ease-out; }
#ctx:active { transform: scale(.94); }
#ctx .ic { width: 26px; height: 26px; }
#ctx small { display: block; font-weight: 600; font-size: 11px; opacity: .75; }
@keyframes ctxIn { from { transform: scale(.7); opacity: 0; } }
#stand { position: absolute; right: max(16px, var(--sr)); bottom: calc(var(--sb) + 34px); }

/* ---------- sheet (one modal at a time) ---------- */
#sheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
#sheet .scrim { position: absolute; inset: 0; background: rgba(8, 9, 30, .5); animation: fade .2s; }
#sheet .panel { --c: 18px; position: relative; width: min(100%, 560px); max-height: min(82%, 720px); display: flex; flex-direction: column; margin: 0 0 0 0; padding-bottom: var(--sb);
  background: linear-gradient(180deg, #23276a, #121338); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c)); animation: rise .22s ease-out; touch-action: pan-y; }
#sheet.mid { align-items: center; } #sheet.mid .panel { clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); width: min(94%, 520px); }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.ph { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 18px; background-image: radial-gradient(circle at 20% 30%, rgba(255, 244, 222, .08) 2px, transparent 3px), radial-gradient(circle at 70% 70%, rgba(255, 244, 222, .08) 2px, transparent 3px); background-size: 16px 16px; }
.ph .ti { flex: 1; min-width: 0; }
.ph h3 { margin: 0; font-family: var(--disp); font-size: 17px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.ph p { margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.pb { overflow: auto; padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.pf { display: flex; gap: 8px; padding: 6px 16px 14px; flex-wrap: wrap; }
.pf .cbtn { flex: 1 1 120px; }
.sec { font-weight: 800; font-size: 12px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 -2px; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 .cbtn { flex: 1 1 100px; }
.opt { --c: 10px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; background: rgba(255, 244, 222, .08); color: var(--cream); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.opt:active { background: rgba(255, 244, 222, .16); }
.opt .ic { width: 24px; height: 24px; color: var(--gold); }
.opt .m { flex: 1; min-width: 0; } .opt b { display: block; font-size: 15px; line-height: 1.25; } .opt small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.opt.lock { opacity: .5; } .opt.rdy { background: rgba(34, 179, 107, .22); } .opt.sel { background: rgba(244, 183, 42, .25); outline: 2px solid var(--gold); outline-offset: -2px; }
.opt .tr { font-weight: 800; font-size: 13px; color: var(--gold); white-space: nowrap; }
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; font-size: 12px; font-weight: 700; background: rgba(255, 244, 222, .1); border-radius: 0; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.chip.ok { background: rgba(34, 179, 107, .3); } .chip.no { background: rgba(255, 90, 90, .28); } .chip.gold { background: rgba(244, 183, 42, .3); }
.seg { display: flex; gap: 6px; } .seg .cbtn { flex: 1; min-height: 44px; padding: 0 6px; font-size: 14px; }
.seg .cbtn.on { background: linear-gradient(180deg, #ffd45e, var(--gold2)); color: #2a1600; }
.bar { height: 10px; background: rgba(255, 255, 255, .14); border-radius: 5px; overflow: hidden; } .bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--gold), var(--palm)); }
.bar.zones { position: relative; } .bar .z { position: absolute; top: 0; bottom: 0; background: rgba(67, 211, 139, .55); }
.bigtxt { font-weight: 700; font-size: 15px; line-height: 1.45; margin: 0; }
.recipecard ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; } .recipecard li { line-height: 1.4; font-size: 14px; } .recipecard li.dn { color: var(--good); } .recipecard li.ac { color: var(--gold); font-weight: 700; }
.recipecard ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); } .stars .ic { fill: currentColor; } .stars .e { color: rgba(255, 255, 255, .22); }
.slide { display: flex; flex-direction: column; gap: 4px; } .slide .lab { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.slide input[type=range] { width: 100%; height: 34px; accent-color: var(--gold); touch-action: pan-x; }
.tabs { display: flex; flex: none; flex-shrink: 0; min-height: 52px; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 6px; touch-action: pan-x; } .tabs::-webkit-scrollbar { display: none; }
.tabs .cbtn { flex: none; flex-shrink: 0; min-height: 40px; line-height: 1.2; white-space: nowrap; font-size: 13px; padding: 0 12px; }
.tabs .cbtn.on { background: linear-gradient(180deg, #ffd45e, var(--gold2)); color: #2a1600; }

/* ---------- mini interaction ---------- */
#mini { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; padding: 0 16px calc(var(--sb) + 20px); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
#mini > * { pointer-events: auto; }
#mini .mt { --c: 10px; padding: 8px 16px; font-weight: 800; background: rgba(15, 16, 48, .88); text-align: center; clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
#mini .bar { width: min(80vw, 320px); height: 14px; }
#mini .mb { position: relative; width: 112px; height: 112px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #2a1600; background: radial-gradient(circle at 50% 35%, #ffe08a, var(--gold2)); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
#mini .mb:active { transform: scale(.92); }
#mini .ring { position: absolute; inset: 0; margin: auto; pointer-events: none; width: 112px; height: 112px; }
#mini .ring i { position: absolute; inset: 0; margin: auto; width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--cream); opacity: .9; }
#mini .tgt { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; border: 3px dashed rgba(42, 22, 0, .6); pointer-events: none; }
#mini .mr { display: flex; gap: 8px; }

/* ---------- misc overlays ---------- */
#bubble { position: absolute; z-index: 8; width: 210px; text-align: center; padding: 8px 12px; font-weight: 700; font-size: 13px; line-height: 1.35; color: #2a1600; background: var(--cream); border-radius: 12px; pointer-events: none; transform: translate(-50%, -100%); will-change: transform; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
#bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--cream); border-bottom: 0; }
#mark { position: absolute; z-index: 7; pointer-events: none; width: 40px; height: 40px; margin: -20px 0 0 -20px; color: var(--gold); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
#mark .ic { width: 40px; height: 40px; fill: var(--gold); stroke: #2a1600; animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(8px); } }
#tvlayer { position: absolute; z-index: 20; background: #05060f; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#tvlayer iframe { width: 100%; height: 100%; border: 0; display: block; }
#tvcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px; text-align: center; background: radial-gradient(circle at 50% 40%, #28307a, #0a0b24); }
#tvcard b { font-family: var(--disp); font-size: clamp(11px, 3.4vw, 20px); line-height: 1.2; text-wrap: balance; }
#tvcard small { color: var(--mute); font-size: clamp(10px, 2.6vw, 13px); }
#tvcard a { text-decoration: none; }
#tvhud { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 16px calc(var(--sb) + 16px); }
#hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 168px); z-index: 4; padding: 7px 14px; font-weight: 700; font-size: 13px; background: rgba(15, 16, 48, .8); color: var(--cream); pointer-events: none; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
#loading { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: var(--ink); font-weight: 800; }
#loading .spin { width: 46px; height: 46px; border: 5px solid rgba(255, 244, 222, .15); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 700px) { #jobs { top: calc(var(--st) + 58px); } #coach { top: calc(var(--st) + 130px); } #coach.nojobs { top: calc(var(--st) + 58px); } #notes { bottom: calc(var(--sb) + 196px); } }
#hud.tvmode #joy, #hud.tvmode #ctx, #hud.tvmode #coach, #hud.tvmode #jobs, #hud.tvmode #hint { display: none; }
.mini-hit { animation: hitpop .18s; } @keyframes hitpop { 50% { transform: scale(.88); } }
.tvbtn { text-decoration: none; }
.bigstars { display: flex; justify-content: center; font-size: 34px; } .bigstars .stars { gap: 4px; }
.center { text-align: center; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--palm); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- city: driving HUD, trip arrow, map, swatches ---------- */
#drv { position: absolute; right: max(10px, var(--sr)); top: calc(var(--st) + 58px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#drv .spd { display: flex; align-items: baseline; gap: 5px; padding: 5px 12px; background: rgba(15, 16, 48, .78); color: var(--cream); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
#drv .spd b { font: 800 22px/1 Unbounded, Figtree, sans-serif; min-width: 2ch; text-align: right; } #drv .spd small { font-weight: 700; font-size: 11px; opacity: .7; }
#drv .cbtn { min-width: 112px; min-height: 38px; font-size: 13px; padding: 0 12px; }
/* driving controls: steering pad on the left, accelerator and back pedals on the right */
#hud.driving #joy { width: 196px; height: 88px; left: max(14px, var(--sl)); bottom: calc(var(--sb) + 30px); clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px); background: linear-gradient(180deg, rgba(60, 66, 150, .6), rgba(15, 16, 48, .78)); }
#hud.driving #joy::before { inset: 10px; background: linear-gradient(90deg, rgba(255, 244, 222, .14) 0 2px, transparent 2px calc(50% - 1px), rgba(255, 244, 222, .22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px) calc(100% - 2px), rgba(255, 244, 222, .14) calc(100% - 2px)), rgba(255, 244, 222, .05); }
#hud.driving #joyknob { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
#pedals { position: absolute; right: max(14px, var(--sr)); bottom: calc(var(--sb) + 26px); display: flex; align-items: flex-end; gap: 12px; touch-action: none; }
.pedal { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-weight: 800; letter-spacing: .08em; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .08s, filter .08s; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pedal b { font-size: 15px; } .pedal small { font-size: 10px; font-weight: 700; letter-spacing: .02em; opacity: .85; }
.pedal.gas { width: 92px; height: 158px; border-radius: 46px; background: linear-gradient(180deg, #28e0b8, #1a8fe8 60%, #1a63ff); }
.pedal.back { width: 88px; height: 88px; clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: linear-gradient(180deg, #ff4a78, #c4103a); box-shadow: none; }
.pedal.on { transform: scale(.93); filter: brightness(1.25); }
@media (max-height: 480px) { .pedal.gas { height: 118px; } #hud.driving #joy { height: 76px; } }
#trip { position: absolute; left: 50%; top: calc(var(--st, 0px) + 64px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; background: rgba(15, 16, 48, .8); color: var(--cream); font-weight: 700; pointer-events: none; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); max-width: 80vw; }
#trip .ar { width: 34px; height: 34px; display: grid; place-items: center; background: linear-gradient(180deg, #ffd45e, var(--gold2)); color: #2a1600; border-radius: 50%; }
#trip .ar .ic { width: 22px; height: 22px; stroke-width: 3; }
#trip b { display: block; font-size: 14px; line-height: 1.2; } #trip small { font-size: 12px; opacity: .8; }
#fade { position: absolute; inset: 0; z-index: 35; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.mapc { width: 100%; height: auto; display: block; border-radius: 10px; margin-bottom: 10px; background: #b9cfa0; }
.opt.dest { flex-wrap: wrap; } .opt.dest .acts { display: flex; gap: 6px; flex: 1 0 100%; flex-wrap: wrap; } .opt.dest .acts .cbtn { flex: 1 1 auto; min-width: 84px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0 10px; }
.swatches .sw { aspect-ratio: 1; border-radius: 12px; border: 3px solid rgba(255, 255, 255, .25); min-height: 44px; }
.swatches .sw.on { border-color: #fff; box-shadow: 0 0 0 3px var(--gold); }

/* ===== spawn gate button, shop shift ticket ===== */
#gatebtn { position: absolute; right: max(16px, var(--sr, 0px)); bottom: calc(var(--sb) + 28px); max-width: 52vw; min-height: 60px; padding: 0 24px 0 18px; justify-content: flex-start; text-align: left; font-size: 16px; z-index: 12; animation: gatep 1.6s ease-in-out infinite; }
#gatebtn .ic { width: 28px; height: 28px; } #gatebtn span { display: block; line-height: 1.15; } #gatebtn small { display: block; font-weight: 600; font-size: 11.5px; opacity: .75; }
@keyframes gatep { 50% { box-shadow: 0 0 0 7px rgba(244, 183, 42, .22); } }
#wk { position: absolute; left: 50%; top: calc(var(--st, 0px) + 98px); transform: translateX(-50%); width: min(92vw, 440px); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; background: rgba(15, 16, 48, .84); color: var(--cream); border-radius: 14px; border: 1px solid var(--line); }
#wk .wt { min-width: 0; } #wk b { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #wk small { display: block; font-size: 12px; opacity: .8; }
#wk .wm { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; } #wk .we { font-weight: 800; font-size: 12px; color: var(--gold); }
#wk .wp { display: block; width: 84px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; } #wk .wp i { display: block; height: 100%; background: linear-gradient(90deg, #43d38b, #f4b72a); transition: width .25s linear; } #wk .wp.lo i { background: #ff5a5a; }

/* ===== the phone ===== */
#phone { position: absolute; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; background: rgba(6, 7, 24, .66); animation: fade .2s; }
.ph-body { position: relative; height: min(calc(var(--HV, 1vh) * 84), 690px); aspect-ratio: 9 / 19.2; max-width: 94vw; padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #3c3f4a, #14151b 40%, #2a2c35); box-shadow: 0 0 0 2px #0a0a0e, 0 24px 70px rgba(0, 0, 0, .65), inset 0 0 0 2px rgba(255, 255, 255, .13); animation: phin .28s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes phin { from { transform: translateY(40px) scale(.94); opacity: 0; } }
.ph-btn { position: absolute; width: 3px; background: #23252d; border-radius: 2px; } .ph-btn.b1 { left: -3px; top: 17%; height: 5%; } .ph-btn.b2 { left: -3px; top: 25%; height: 9%; } .ph-btn.b3 { right: -3px; top: 27%; height: 13%; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; color: #fff; font-family: var(--body); touch-action: pan-y; }
.ph-wall { position: absolute; inset: 0; background: radial-gradient(120% 70% at 20% 0%, rgba(255, 150, 80, .55), transparent 60%), radial-gradient(90% 60% at 90% 100%, rgba(120, 60, 220, .6), transparent 60%), linear-gradient(165deg, #1b1a5e 0%, #5a2a8a 38%, #e5532c 78%, #ffb22a 100%); }
.ph-wall::before, .ph-wall::after { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(34px); opacity: .5; animation: blob 14s ease-in-out infinite alternate; }
.ph-wall::before { left: -20%; top: 10%; background: #ff7a4a; } .ph-wall::after { right: -25%; bottom: 8%; background: #6a4cff; animation-delay: -6s; }
@keyframes blob { to { transform: translate(18%, 12%) scale(1.2); } }
.ph-island { position: absolute; top: 10px; left: 50%; width: 31%; height: 28px; margin-left: -15.5%; border-radius: 16px; background: #000; z-index: 6; }
.ph-island::after { content: ''; position: absolute; right: 10px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #1d2a52, #05060c 70%); }
.ph-status { position: absolute; z-index: 5; left: 0; right: 0; top: 12px; height: 24px; padding: 0 28px 0 30px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; pointer-events: none; }
.ph-status b { font-weight: 800; font-size: 14px; } .ph-status .sig { display: flex; align-items: flex-end; gap: 2px; margin-left: auto; margin-right: 8px; } .ph-status .sig i { width: 3px; background: #fff; border-radius: 1px; } .ph-status .sig i:nth-child(1) { height: 4px; } .ph-status .sig i:nth-child(2) { height: 6px; } .ph-status .sig i:nth-child(3) { height: 8px; } .ph-status .sig i:nth-child(4) { height: 10px; }
.ph-status .bat { width: 24px; height: 11px; border-radius: 3.5px; border: 1.5px solid rgba(255, 255, 255, .6); padding: 1.5px; } .ph-status .bat em { display: block; height: 100%; width: 82%; background: #fff; border-radius: 1.5px; }
.ph-bar { position: absolute; z-index: 9; left: 50%; bottom: 0; width: 46%; height: 26px; margin-left: -23%; background: none; border: 0; padding: 0; } .ph-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); }
/* lock screen */
.ph-lock { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 56px 18px 46px; text-align: center; transition: transform .28s ease-in, opacity .28s; } .ph-lock.away { transform: translateY(-18%) scale(.96); opacity: 0; }
.lk-lock .ic { width: 18px; height: 18px; opacity: .85; } .lk-date { font-weight: 700; font-size: 16px; opacity: .92; margin-top: 4px; } .lk-time { font: 800 76px/1 'Unbounded', var(--body); letter-spacing: -.02em; margin-top: 2px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.lk-note { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; text-align: left; border-radius: 20px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ni { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(180deg, #5cf08a, #12a84f); } .ni .ic { width: 20px; height: 20px; } .lk-note b { display: block; font-size: 13px; } .lk-note small { display: block; font-size: 12.5px; opacity: .9; line-height: 1.3; }
.lk-bot { display: flex; flex-direction: column; align-items: center; gap: 12px; } .lk-hint { font-weight: 700; font-size: 14px; letter-spacing: .04em; animation: shimmer 2s ease-in-out infinite; }
@keyframes shimmer { 50% { opacity: .45; } }
.unlock { position: relative; width: 86px; height: 86px; border: 0; padding: 0; background: none; border-radius: 50%; } .unlock:active { transform: scale(.92); }
.unlock .core { position: absolute; inset: 10px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #fff, #ffe9a8 45%, #ffb42a); color: #3a2200; box-shadow: 0 0 30px 8px rgba(255, 190, 60, .65), 0 0 70px 20px rgba(255, 150, 40, .35); animation: ugl 1.8s ease-in-out infinite; } .unlock .core .ic { width: 30px; height: 30px; }
.unlock .ring { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(255, 224, 140, .9); animation: urg 2s ease-out infinite; } .unlock .ring.r2 { animation-delay: 1s; }
@keyframes urg { from { transform: scale(.75); opacity: .9; } to { transform: scale(1.6); opacity: 0; } } @keyframes ugl { 50% { box-shadow: 0 0 40px 14px rgba(255, 200, 70, .85), 0 0 90px 30px rgba(255, 150, 40, .45); } }
/* home screen */
.ph-home { position: absolute; inset: 0; z-index: 2; padding: 50px 0 22px; display: flex; flex-direction: column; gap: 12px; animation: hsin .3s ease-out; } @keyframes hsin { from { opacity: 0; transform: scale(1.06); } }
.hs-widget { display: flex; justify-content: space-between; gap: 10px; padding: 12px 15px; border-radius: 22px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } .hs-widget small { display: block; font-size: 11px; font-weight: 700; opacity: .8; } .hs-widget b { display: block; font-size: 17px; margin-top: 1px; } .hs-widget > div:last-child { text-align: right; }
.hs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 6px; } .hs-dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 8px 8px; border-radius: 28px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } .hs-dock .pi small { display: none; }
.pi { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; color: #fff; padding: 0; font-family: inherit; } .pi:active .pic { transform: scale(.9); filter: brightness(1.2); } .pi small { font-size: 11.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.pic { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .12s; } .pic .ic { width: 31px; height: 31px; color: #fff; stroke-width: 2; }
.pi-maps { background: linear-gradient(180deg, #5fd16e, #1f9a52); } .pi-car { background: linear-gradient(180deg, #ff6a4a, #c8301a); } .pi-work { background: linear-gradient(180deg, #ffb340, #e0780c); } .pi-order { background: linear-gradient(180deg, #5aa8ff, #2a62d8); }
.pi-wallet { background: linear-gradient(180deg, #343843, #14161c); } .pi-recipes { background: linear-gradient(180deg, #ff8ab0, #d83a78); } .pi-msg { background: linear-gradient(180deg, #5cf08a, #12a84f); } .pi-home { background: linear-gradient(180deg, #b48aff, #6a3ad8); }
.pi-taxi { background: linear-gradient(180deg, #ffd45e, #e08a12); } .pi-clock { background: linear-gradient(180deg, #4a4e5a, #1c1e26); } .pi-set { background: linear-gradient(180deg, #a0a6b2, #5c6270); } .pi-lock { background: linear-gradient(180deg, #7a7f8c, #3a3e48); }
/* apps */
.pa { position: absolute; inset: 0; z-index: 4; background: #f2f2f7; color: #14151c; display: flex; flex-direction: column; padding-top: 46px; animation: pain .28s cubic-bezier(.2, .9, .3, 1); } @keyframes pain { from { transform: translateY(22%); opacity: 0; } }
.pa-h { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; flex: none; border-bottom: 1px solid rgba(0, 0, 0, .1); background: rgba(250, 250, 252, .95); } .pa-h b { font-size: 17px; }
.pa-back { position: absolute; left: 8px; top: 0; height: 44px; display: flex; align-items: center; gap: 0; background: none; border: 0; color: #0a74ff; font: 600 16px var(--body); padding: 0 8px 0 0; } .pa-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pa-b { flex: 1; overflow-y: auto; padding: 12px 14px 38px; display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.pa-money { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: #14151c; color: #fff; } .pa-money small { opacity: .7; font-weight: 700; } .pa-money b { font: 800 22px var(--body); color: #ffd45e; }
.pa-sub { margin: 0; font-size: 13.5px; line-height: 1.4; color: #5c5f6b; }
.pcard { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); display: flex; flex-direction: column; gap: 9px; } .pcard.cur { outline: 2.5px solid #0a74ff; } .pcard p { margin: 0; font-size: 13.5px; line-height: 1.4; color: #4a4d58; }
.pcar { width: 100%; height: auto; background: linear-gradient(180deg, #e6e9f2, #cfd5e6); border-radius: 12px; display: block; }
.pc-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .pc-t b { font-size: 17px; } .pc-t .tag { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: #e8f0ff; color: #0a74ff; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pstats small { display: block; font-size: 11px; font-weight: 700; color: #6a6d78; margin-bottom: 3px; } .pstats .bar { display: block; height: 6px; border-radius: 3px; background: #e3e5ec; overflow: hidden; } .pstats .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a3a, #e5532c); }
.pbtn { min-height: 46px; flex: 1 1 auto; padding: 0 16px; border: 0; border-radius: 14px; background: #e8eaf1; color: #14151c; font: 800 15px var(--body); } .pbtn:active { filter: brightness(.9); transform: scale(.97); } .pbtn.gold { background: linear-gradient(180deg, #ffd45e, #f4a21a); color: #2a1600; } .pbtn.buy { background: linear-gradient(180deg, #2a8cff, #0a62d8); color: #fff; font-size: 16px; min-height: 52px; } .pbtn.buy.short { background: #c9ccd6; color: #5c5f6b; }
.prow { display: flex; gap: 8px; flex-wrap: wrap; } .pc-sec { font-size: 12px; font-weight: 800; color: #6a6d78; text-transform: uppercase; letter-spacing: .05em; } .pc-where { font-size: 13px; font-weight: 700; color: #1f8a5a; }
.pa .swatches { grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0; } .pa .swatches .sw { min-height: 0; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .18); padding: 0; } .pa .swatches .sw.on { border-color: #fff; box-shadow: 0 0 0 3px #0a74ff; }
.pstat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; } .pstat3 b { display: block; font-size: 16px; } .pstat3 small { font-size: 11.5px; color: #6a6d78; font-weight: 700; }
.pcard.wal { background: linear-gradient(160deg, #1b1a5e, #5a2a8a); color: #fff; align-items: flex-start; } .pcard.wal small { opacity: .75; font-weight: 700; } .pcard.wal .big { font: 800 32px var(--body); color: #ffd45e; }
.pmsg { display: flex; gap: 11px; padding: 12px; border-radius: 16px; background: #fff; } .pmsg .av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(180deg, #ff8a3a, #e5532c); } .pmsg b { display: block; font-size: 14px; } .pmsg p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #4a4d58; }
.ph-alert { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(0, 0, 0, .4); animation: fade .15s; } .ph-alert .al { width: 76%; border-radius: 18px; background: rgba(245, 245, 250, .97); color: #14151c; text-align: center; overflow: hidden; } .ph-alert b { display: block; padding: 18px 16px 4px; font-size: 17px; } .ph-alert p { margin: 0; padding: 0 16px 16px; font-size: 13.5px; line-height: 1.4; color: #4a4d58; }
.ph-alert .ar { display: flex; border-top: 1px solid rgba(0, 0, 0, .12); } .ph-alert .ar button { flex: 1; min-height: 48px; background: none; border: 0; font: 600 17px var(--body); color: #0a74ff; } .ph-alert .ar button + button { border-left: 1px solid rgba(0, 0, 0, .12); font-weight: 800; }
.ph-banner { position: absolute; z-index: 11; left: 12px; right: 12px; top: 46px; display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 20px; background: rgba(250, 250, 252, .96); color: #14151c; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); animation: bnin .4s cubic-bezier(.2, 1, .3, 1); transition: transform .4s, opacity .4s; } .ph-banner.out { transform: translateY(-140%); opacity: 0; } .ph-banner b { display: block; font-size: 14px; } .ph-banner small { display: block; font-size: 12.5px; color: #4a4d58; line-height: 1.3; } @keyframes bnin { from { transform: translateY(-140%); } }
/* a phone held sideways on a short screen */
@media (orientation: landscape) and (max-height: 560px) {
  .ph-body { height: min(calc(var(--HV, 1vh) * 96), 420px); width: min(94vw, 880px); aspect-ratio: auto; max-width: none; border-radius: 38px; padding: 7px; }
  .ph-screen { border-radius: 32px; } .ph-island { top: 50%; left: 11px; width: 26px; height: 30%; margin: -15% 0 0; } .ph-island::after { right: auto; left: 8px; top: 10px; }
  .ph-btn.b1, .ph-btn.b2 { display: none; } .ph-btn.b3 { right: auto; left: 20%; top: -3px; width: 13%; height: 3px; }
  .ph-status { padding: 0 24px 0 56px; top: 6px; } .ph-bar { width: 30%; margin-left: -15%; }
  .ph-lock { flex-direction: row; padding: 36px 24px 30px 58px; align-items: center; } .lk-top { text-align: left; flex: 1; } .lk-time { font-size: 60px; } .lk-note { width: 34%; } .lk-bot { flex: none; }
  .ph-home { padding: 34px 20px 24px 58px; gap: 8px; } .hs-widget { padding: 8px 14px; } .hs-grid { grid-template-columns: repeat(9, 1fr); gap: 4px; } .pic { width: 46px; height: 46px; border-radius: 12px; } .pic .ic { width: 25px; height: 25px; } .pi small { font-size: 10.5px; }
  .hs-dock { margin: 4px 0 0; padding: 6px 8px; width: 60%; align-self: center; border-radius: 22px; } .hs-dock .pic { width: 42px; height: 42px; }
  .pa { padding: 32px 0 0 52px; } .pa-b { padding: 8px 14px 28px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; } .pa-b > .pa-money, .pa-b > .pa-sub { grid-column: 1 / -1; } .pa-h { height: 38px; } .pa-back { height: 38px; } .pcar { max-height: 90px; }
  .ph-banner { top: 36px; left: 60px; } .lk-lock { display: none; }
}

.ph-screen.light .ph-status { color: #14151c; } .ph-screen.light .ph-status .sig i { background: #14151c; } .ph-screen.light .ph-status .bat { border-color: rgba(0,0,0,.45); } .ph-screen.light .ph-status .bat em { background: #14151c; } .ph-screen.light .ph-bar::after { background: #14151c; }
#gatebtn.top { left: 12px; right: auto; transform: none; bottom: auto; top: calc(var(--st, 0px) + 142px); min-height: 52px; font-size: 14px; }

/* ---------- a game sheet opened INSIDE the phone (Maps, Recipes, Settings) ---------- */
#sheet.inph { position: absolute; inset: 0; z-index: 4; display: block; animation: pain .28s cubic-bezier(.2, .9, .3, 1); background: #121338; }
#sheet.inph .scrim { display: none; }
#sheet.inph .panel { width: 100%; max-height: none; height: 100%; margin: 0; padding: 44px 0 26px; clip-path: none; animation: none; border-radius: 0; }
#sheet.inph .ph { padding: 8px 12px 8px 14px; } #sheet.inph .ph h3 { font-size: 15px; } #sheet.inph .pb { padding: 4px 12px 12px; }
#sheet.inph .pf { padding: 6px 12px 10px; }
@media (orientation: landscape) and (max-height: 560px) { #sheet.inph .panel { padding: 30px 0 14px 52px; } }
.pi-shop { background: linear-gradient(180deg, #ffd45e, #f08a10); }
/* Buy app */
.pseg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #e3e5ec; } .pseg button { flex: 1; min-height: 36px; border: 0; border-radius: 10px; background: none; font: 800 14px var(--body); color: #4a4d58; } .pseg button.on { background: #fff; color: #14151c; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.pitem { display: flex; flex-direction: column; gap: 8px; }
.pthumb { position: relative; height: 150px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #bfe3ff, #eaf6ff 70%, #cfe7b8); display: grid; place-items: center; } .pthumb img { max-width: 100%; max-height: 100%; object-fit: contain; } .pthumb .ic { width: 52px; height: 52px; color: #f4a21a; }
.pthumb .own { position: absolute; right: 8px; top: 8px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 10px; background: #14151c; color: #fff; }
.pfacts { display: flex; flex-wrap: wrap; gap: 6px; } .pfacts span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 9px; background: #eef0f6; color: #3a3d48; }
.pplaced { display: flex; align-items: center; gap: 10px; } .pplaced .m { flex: 1; min-width: 0; } .pplaced b { display: block; font-size: 15px; } .pplaced small { font-size: 12.5px; color: #6a6d78; font-weight: 700; }
.pplaced .pbtn { flex: none; min-height: 40px; padding: 0 14px; font-size: 14px; }
/* edit (placement) bar */
#edit { position: absolute; left: 50%; bottom: calc(var(--sb, 0px) + 12px); transform: translateX(-50%); z-index: 20; width: min(96vw, 560px); display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: rgba(15, 16, 48, .9); color: var(--cream); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
#edit[hidden] { display: none; } #edit .et { display: flex; align-items: center; gap: 10px; } #edit .et b { font-size: 15px; flex: 1; } #edit .et small { font-size: 12.5px; opacity: .8; display: block; font-weight: 600; }
#edit .er { display: flex; gap: 8px; flex-wrap: wrap; } #edit .er .cbtn { flex: 1 1 90px; min-height: 46px; }
#edit .bad { color: #ff9a8a; } #edit .good { color: #7dffae; }
#hud.editing #ctx, #hud.editing #trip, #hud.editing #gatebtn, #hud.editing #wk { display: none !important; }
.icard { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 6px; } .icard .big { font: 800 22px var(--disp); color: #ffd45e; } .icard p { margin: 0; font-size: 14px; line-height: 1.45; }
.pcard.pplaced { flex-direction: row; align-items: center; }
@media (orientation: landscape) and (max-height: 560px) { .pa-b > .pseg, .pa-b > .pc-where, .pa-b > .pc-sec, .pa-b > .pbtn { grid-column: 1 / -1; } .pthumb { height: 120px; } }

.pill.tod { min-height: 28px; font-size: 12px; font-weight: 700; color: #ffe9bd; background: rgba(15, 16, 48, .66); }

/* "Watch out!" bubble above a car that is dodging you */
.watchout { position: fixed; left: 0; top: 0; z-index: 7; pointer-events: none; opacity: 0; padding: 4px 9px 5px; font: 800 12px/1 Figtree, system-ui, sans-serif; letter-spacing: .02em; color: #fff; background: rgba(214, 62, 40, .94); border-radius: 9px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); will-change: transform, opacity; }
#drv.drifting .spd::after { content: 'DRIFT'; margin-left: 6px; font: 800 11px/1 Figtree, system-ui, sans-serif; color: #f4b72a; letter-spacing: .08em; }

/* ---- gear: placing things, carrying a can, the Music app ---- */
.pi-tv { background: linear-gradient(180deg, #5f8bff, #2a3fb8); } .pi-tv.off { filter: grayscale(.85) brightness(.8); }
.pi-music { background: linear-gradient(180deg, #ff6b8b, #c4123f); } .pi-music.off { filter: grayscale(.85) brightness(.8); }
#gplace { position: absolute; right: max(12px, var(--sr)); bottom: calc(var(--sb, 0px) + 18px); z-index: 20; width: min(236px, 52vw); display: flex; flex-direction: column; gap: 7px; padding: 10px 11px; background: rgba(15, 16, 48, .92); color: var(--cream); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
#gplace[hidden] { display: none; } #gplace b { font-size: 14px; display: block; } #gplace small { font-size: 12px; opacity: .85; font-weight: 600; display: block; line-height: 1.25; } #gplace small.bad { color: #ff9a8a; opacity: 1; } #gplace small.good { color: #7dffae; opacity: 1; }
#gplace .er { display: flex; gap: 6px; } #gplace .er .cbtn { flex: 1 1 0; min-height: 44px; min-width: 0; padding: 0 6px; font-size: 14px; }
#hud.placing #ctx, #hud.placing #trip, #hud.placing #gatebtn, #hud.placing #wk { display: none !important; }
#hold { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--st) + 56px); z-index: 6; display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; background: rgba(15, 16, 48, .86); color: var(--cream); font-weight: 700; font-size: 13px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
#hold[hidden] { display: none; } #hold .ic { width: 20px; height: 20px; } #hold small { opacity: .8; font-weight: 600; } #hold .cbtn { min-height: 36px; min-width: 0; padding: 0 12px; font-size: 13px; }
.fuelbar { height: 8px; background: rgba(255, 255, 255, .18); border-radius: 4px; overflow: hidden; margin: 6px 0 2px; } .fuelbar i { display: block; height: 100%; background: linear-gradient(90deg, #f0a020, #5ad07a); width: 0; transition: width .2s; } .fuelbar.low i { background: #ff5a4a; }
#drv .fuel { padding: 4px 12px; background: rgba(15, 16, 48, .78); color: var(--cream); font: 800 12px/1 Figtree, system-ui, sans-serif; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); min-width: 112px; } #drv .fuel .fuelbar { margin: 4px 0 0; } #drv .fuel.low { color: #ff9a8a; }
.mus-now { text-align: center; padding: 14px 10px; } .mus-now b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mus-now small { opacity: .7; font-weight: 600; }
.mus-ctl { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 8px 0 4px; } .mus-ctl button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); color: #222; display: grid; place-items: center; } .mus-ctl button.big { width: 62px; height: 62px; background: linear-gradient(180deg, #ff6b8b, #c4123f); color: #fff; } .mus-ctl .ic { width: 22px; height: 22px; } .mus-ctl .big .ic { width: 28px; height: 28px; }
.mus-seek { width: 100%; accent-color: #ff6b8b; } .mus-trk { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(0, 0, 0, .1); } .mus-trk.on b { color: #ff8aa6; } .mus-trk .m { flex: 1; min-width: 0; } .mus-trk b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mus-trk small { opacity: .65; font-size: 11.5px; } .mus-trk .x { background: none; border: 0; color: #444; opacity: .7; padding: 8px; } .mus-trk .x .ic, .mus-trk .x svg { width: 18px; height: 18px; }
.mus-lock { text-align: center; padding: 26px 16px; } .mus-lock .ic { width: 44px; height: 44px; opacity: .8; }
.pplaced .er { display: flex; flex-direction: column; gap: 6px; } .pplaced .er .pbtn { width: 100%; }

.pi-jobs { background: linear-gradient(180deg, #ff9a3c, #c8541e); }
.jobhead { display: flex; align-items: center; gap: 8px; } .jobhead svg { width: 22px; height: 22px; } .jobtag { font-style: normal; font-size: 11px; font-weight: 800; background: #f4b72a; color: #2a1600; border-radius: 99px; padding: 2px 8px; margin-left: auto; }
.jobcard p { margin: 6px 0; } .jobpay { font-weight: 700; } .jobrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
#drv-job { z-index: 5; } .jobinfo { background: rgba(20,22,30,.82); color: #fff4de; padding: 5px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; text-align: center; max-width: 132px; line-height: 1.25; }

.watchout.say { background: rgba(255, 255, 255, .96); color: #15171f; font-size: 13px; padding: 6px 11px 7px; border-radius: 11px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }

/* =====================================================================
   THEME v25: obsidian blue and white. Rounded glass, ice-blue accent, no chamfers.
   (Loaded last so it re-skins everything above; the layout rules stay where they were.)
   ===================================================================== */
:root {
  --ink: #060a14; --ink2: #0c1424; --ink3: #15233f; --obs: #0a1222; --obs2: #101c33;
  --gold: #7cc0ff; --gold2: #2a78ff; --ice: #9ed0ff; --elec: #2a78ff; --palm: #ff4d5e; --leaf: #1fc68a;
  --cream: #f3f7ff; --mute: #8ea3c6; --line: rgba(150, 195, 255, .18);
  --bad: #ff6070; --good: #3fdc9c; --warn: #ffc247;
  --glass: rgba(8, 13, 26, .78); --glass2: rgba(255, 255, 255, .07);
  --r: 16px; --r2: 12px;
}
html, body, #app { background: var(--ink); }
/* buttons */
.cbtn { clip-path: none; border-radius: var(--r2); min-height: 46px; color: var(--cream); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(60, 100, 170, .5), rgba(20, 38, 76, .78)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 10px rgba(0, 0, 0, .28); }
.cbtn.gold { color: #fff; border-color: rgba(190, 225, 255, .55); background: linear-gradient(180deg, #4b97ff, #1e5fe6 62%, #1a4fc4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(30, 95, 230, .45); text-shadow: 0 1px 2px rgba(0, 20, 80, .45); }
.cbtn.palm { color: #fff; border-color: rgba(255, 190, 190, .45); background: linear-gradient(180deg, #ff6a78, #d12a3d); }
.cbtn.leaf { color: #03231a; border-color: rgba(190, 255, 225, .5); background: linear-gradient(180deg, #4be8ae, #17a470); }
.cbtn.ghost { background: rgba(255, 255, 255, .07); box-shadow: none; }
.cbtn.sm { --c: 0; border-radius: 11px; }
.cbtn.sq { border-radius: 14px; }
.cbtn:active { transform: scale(.95); filter: brightness(1.15); }
.cbtn .ic { width: 1.25em; height: 1.25em; }
/* splash and account screens */
.screen { background: linear-gradient(180deg, rgba(6, 10, 20, .5) 0%, rgba(6, 10, 20, 0) 34%, rgba(6, 10, 20, .8) 68%, rgba(6, 10, 20, .97) 100%); }
.logo { font-weight: 800; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 0 #0a1630, 0 0 46px rgba(80, 150, 255, .5); }
.logo i { color: var(--ice); }
.crest { display: flex; gap: 5px; margin-bottom: -4px; } .crest i { width: 26px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #5aa5ff, #fff); } .crest i:nth-child(2) { width: 16px; opacity: .7; } .crest i:nth-child(3) { width: 8px; opacity: .45; }
.tag { color: #a9bcdc; }
.field input { clip-path: none; border-radius: var(--r2); background: rgba(255, 255, 255, .07); border: 1.5px solid var(--line); color: #fff; }
.field input:focus { border-color: var(--ice); background: rgba(120, 180, 255, .12); box-shadow: 0 0 0 3px rgba(80, 150, 255, .22); }
.gcard { clip-path: none; border-radius: var(--r); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.gcard.on { background: linear-gradient(180deg, #4b97ff, #1e5fe6); color: #fff; border-color: rgba(190, 225, 255, .6); box-shadow: 0 8px 24px rgba(30, 95, 230, .4); }
.gcard.on small { color: #d6e8ff; }
/* loading */
#loading { background: radial-gradient(120% 80% at 50% 30%, #112347 0%, #060a14 62%); gap: 18px; color: #fff; }
#loading .spin { display: none; }
.ld-mark { display: flex; gap: 6px; align-items: flex-end; height: 34px; } .ld-mark i { width: 8px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #fff, #4b97ff); animation: ldb 1s ease-in-out infinite; transform-origin: bottom; } .ld-mark i:nth-child(2) { animation-delay: .15s; } .ld-mark i:nth-child(3) { animation-delay: .3s; }
@keyframes ldb { 0%, 100% { transform: scaleY(.35); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
.ld-logo { font: 800 30px/1 var(--disp); letter-spacing: -.02em; } .ld-logo b { color: var(--ice); font-weight: 800; }
.ld-bar { width: min(62vw, 240px); height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; } .ld-bar i { display: block; height: 100%; width: 4%; border-radius: 3px; background: linear-gradient(90deg, #2a78ff, #bfe0ff); transition: width .2s; }
.ld-msg { font-weight: 600; font-size: 13px; color: var(--mute); letter-spacing: .02em; }
/* HUD glass */
.pill, .note, .jcard, #coach, #hint, #mini .mt, #drv .spd, #drv .fuel, #trip, #edit, #gplace, #hold { clip-path: none; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08); }
.pill { border-radius: 999px; min-height: 36px; } .pill .ic { color: var(--ice); }
.pill.tod { background: rgba(8, 13, 26, .6); color: #cfe3ff; }
.xpbar i { background: linear-gradient(90deg, #4b97ff, #bfe0ff); }
.note { border-radius: 14px; } .note.info .ic { color: var(--ice); } .note b { color: var(--ice); }
.jcard { border-radius: 14px; } .jcard .ring .fg { stroke: var(--ice); }
.jcard.ready { background: rgba(8, 58, 46, .88); } .jcard.warn { background: rgba(80, 56, 8, .9); } .jcard.burnt { background: rgba(100, 16, 28, .92); }
#coach { border-radius: 18px; } #coach .ch { color: var(--ice); } #coach .dots i.act { background: var(--ice); }
#hint { border-radius: 999px; }
#mini .mt { border-radius: 999px; } #mini .mb { color: #fff; background: radial-gradient(circle at 50% 30%, #6fb3ff, #1e5fe6 70%); clip-path: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); box-shadow: 0 10px 30px rgba(30, 95, 230, .5); } #mini .tgt { border-color: rgba(255, 255, 255, .6); } #mini .ring i { border-color: #fff; }
#drv .spd { border-radius: 14px; } #drv .spd b { color: #fff; } #drv .fuel { border-radius: 10px; }
#drv.drifting .spd::after { color: var(--ice); }
.fuelbar i { background: linear-gradient(90deg, #4b97ff, #5ae0b0); }
#trip { border-radius: 999px; } #trip .ar { background: linear-gradient(180deg, #4b97ff, #1e5fe6); color: #fff; }
#edit, #gplace { border-radius: 18px; } #hold { border-radius: 999px; }
#ctx { clip-path: none; border-radius: 20px; color: #fff; background: linear-gradient(180deg, #4b97ff, #1e5fe6 64%, #1a4fc4); border: 1px solid rgba(190, 225, 255, .55); box-shadow: 0 10px 26px rgba(30, 95, 230, .5), inset 0 1px 0 rgba(255, 255, 255, .4); }
#ctx small { opacity: .85; }
#gatebtn { border-radius: 20px; } @keyframes gatep { 50% { box-shadow: 0 0 0 8px rgba(80, 150, 255, .25); } }
#wk { background: var(--glass); border-radius: 16px; } #wk .we { color: var(--ice); } #wk .wp i { background: linear-gradient(90deg, #4b97ff, #5ae0b0); }
.badge { background: var(--palm); }
/* sheet */
#sheet .scrim { background: rgba(3, 6, 14, .6); }
#sheet .panel { clip-path: none; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, #14213d 0%, #0a1222 38%, #070d19 100%); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -12px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1); }
#sheet.mid .panel { clip-path: none; border-radius: 24px; border-bottom: 1px solid var(--line); }
.ph { background-image: none; } .ph h3 { letter-spacing: -.01em; } .ph .ic { color: var(--ice); width: 24px; height: 24px; }
.sec { color: var(--ice); }
.opt { clip-path: none; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(150, 195, 255, .1); } .opt:active { background: rgba(120, 180, 255, .18); }
.opt .ic { color: var(--ice); } .opt .tr { color: var(--ice); }
.opt.rdy { background: rgba(31, 198, 138, .16); border-color: rgba(31, 198, 138, .4); } .opt.sel { background: rgba(60, 130, 255, .22); outline-color: var(--ice); }
.chip { clip-path: none; border-radius: 999px; background: rgba(255, 255, 255, .09); } .chip.gold { background: rgba(80, 150, 255, .3); }
.seg { padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); } .seg .cbtn { border: 0; background: transparent; box-shadow: none; min-height: 40px; }
.seg .cbtn.on, .tabs .cbtn.on { color: #fff; background: linear-gradient(180deg, #4b97ff, #1e5fe6); box-shadow: 0 2px 10px rgba(30, 95, 230, .4); text-shadow: none; }
.tabs .cbtn { border-radius: 999px; }
.bar i { background: linear-gradient(90deg, #4b97ff, #bfe0ff); }
.stars { color: #ffd166; } .slide input[type=range] { accent-color: #4b97ff; }
.swatches .sw.on { box-shadow: 0 0 0 3px var(--ice); }
.recipecard li.ac { color: var(--ice); }
/* ---------- the stick: a plain translucent circle ---------- */
#joy { clip-path: none; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06) 0 38%, rgba(255, 255, 255, .13) 100%); border: 2px solid rgba(255, 255, 255, .32); box-shadow: 0 8px 26px rgba(0, 0, 0, .3), inset 0 0 22px rgba(120, 180, 255, .16); }
#joy::before { clip-path: none; inset: 30px; border-radius: 50%; background: none; border: 1.5px solid rgba(255, 255, 255, .18); }
#joy .jt { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); } #joy .jt.n { left: 50%; top: 8px; margin-left: -3px; } #joy .jt.s { left: 50%; bottom: 8px; margin-left: -3px; } #joy .jt.w { top: 50%; left: 8px; margin-top: -3px; } #joy .jt.e { top: 50%; right: 8px; margin-top: -3px; }
#joyknob { clip-path: none; border-radius: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .95), rgba(190, 220, 255, .55) 55%, rgba(110, 165, 255, .45)); border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 -4px 10px rgba(40, 90, 200, .35); }
#hud.driving #joy { width: 200px; height: 86px; border-radius: 999px; clip-path: none; background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); border: 2px solid rgba(255, 255, 255, .32); }
#hud.driving #joy::before { inset: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .28) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
#hud.driving #joy .jt.n, #hud.driving #joy .jt.s { display: none; } #hud.driving #joy .jt.w { left: 16px; } #hud.driving #joy .jt.e { right: 16px; }
#hud.driving #joyknob { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
/* ---------- pedals in gear colours: green drive, red brake / reverse, with a ribbed rubber pad ---------- */
#pedals { gap: 14px; }
.pedal { border: 1px solid rgba(255, 255, 255, .35); border-radius: 22px; clip-path: none; overflow: hidden; letter-spacing: 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -8px 16px rgba(0, 0, 0, .25); }
.pedal .pad { position: absolute; left: 12px; right: 12px; top: 12px; bottom: 12px; border-radius: 14px; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .32) 0 4px, rgba(255, 255, 255, .1) 4px 9px); opacity: .55; }
.pedal b { position: relative; font: 800 30px/1 var(--disp); text-shadow: 0 2px 6px rgba(0, 0, 0, .4); } .pedal small { position: relative; font-size: 10.5px; letter-spacing: .12em; font-weight: 800; opacity: .95; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.pedal.gas { width: 96px; height: 164px; border-radius: 26px; background: linear-gradient(180deg, #52e886 0%, #1fb857 58%, #0f7f3a 100%); }
.pedal.back { width: 92px; height: 104px; border-radius: 24px; clip-path: none; background: linear-gradient(180deg, #ff6b72 0%, #e0263a 58%, #a1111f 100%); box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -8px 16px rgba(0, 0, 0, .25); }
.pedal.on { transform: scale(.94) translateY(3px); filter: brightness(1.2); } .pedal.gas.on { box-shadow: 0 0 0 3px rgba(80, 255, 140, .4), 0 4px 14px rgba(0, 0, 0, .4); } .pedal.back.on { box-shadow: 0 0 0 3px rgba(255, 90, 100, .45), 0 4px 14px rgba(0, 0, 0, .4); }
@media (max-height: 480px) { .pedal.gas { height: 120px; } .pedal.back { height: 82px; } #hud.driving #joy { height: 76px; } }
/* ---------- the phone ---------- */
#phone { background: rgba(3, 6, 14, .72); }
.ph-body { background: linear-gradient(145deg, #2b3550, #0a0f1c 42%, #1b2640); }
.ph-wall { background: radial-gradient(120% 70% at 18% 0%, rgba(70, 150, 255, .6), transparent 60%), radial-gradient(90% 60% at 92% 100%, rgba(120, 90, 255, .5), transparent 60%), linear-gradient(165deg, #060a14 0%, #0b1a3a 42%, #11357a 80%, #3d8bff 100%); }
.ph-wall::before { background: #2a78ff; } .ph-wall::after { background: #6a5cff; }
.unlock .core { background: radial-gradient(circle at 50% 30%, #fff, #cfe6ff 45%, #4b97ff); color: #0a2150; box-shadow: 0 0 30px 8px rgba(90, 160, 255, .65), 0 0 70px 20px rgba(60, 130, 255, .35); }
.unlock .ring { border-color: rgba(190, 225, 255, .9); }
.ni { background: linear-gradient(180deg, #5aa5ff, #1e5fe6); }
.pic { border-radius: 16px; }
.pi-maps { background: linear-gradient(180deg, #3fe0b4, #0e9a78); } .pi-car { background: linear-gradient(180deg, #5aa5ff, #1e5fe6); } .pi-work { background: linear-gradient(180deg, #8ac4ff, #3a7ae0); } .pi-order { background: linear-gradient(180deg, #7aa0ff, #3a4fe0); }
.pi-wallet { background: linear-gradient(180deg, #2c3a5c, #0c1426); } .pi-recipes { background: linear-gradient(180deg, #ff8aa0, #d8365c); } .pi-msg { background: linear-gradient(180deg, #4be8ae, #12a070); } .pi-home { background: linear-gradient(180deg, #a48aff, #5a3ad8); }
.pi-taxi { background: linear-gradient(180deg, #ffe08a, #ee9a1c); } .pi-clock { background: linear-gradient(180deg, #46506a, #171d2e); } .pi-set { background: linear-gradient(180deg, #a6b4cc, #5a6882); } .pi-lock { background: linear-gradient(180deg, #7c89a2, #343e54); }
.pi-shop { background: linear-gradient(180deg, #6fb3ff, #2160e8); } .pi-jobs { background: linear-gradient(180deg, #ffb24a, #e0701a); } .pi-biz { background: linear-gradient(180deg, #2a3a66, #0a1226); box-shadow: 0 3px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(160, 200, 255, .5), inset 0 0 0 1.5px rgba(120, 180, 255, .4); }
.pa { background: #eef3fb; } .pa-h { background: rgba(250, 252, 255, .96); } .pa-back { color: #1e63e8; }
.pa-money { background: linear-gradient(160deg, #0a1226, #14274d); } .pa-money b { color: #9ed0ff; }
.pcard { border-radius: 20px; box-shadow: 0 2px 8px rgba(20, 50, 110, .1); } .pcard.cur { outline-color: #1e63e8; }
.pc-t .tag { background: #e3edff; color: #1e63e8; }
.pbtn { border-radius: 14px; background: #e2e9f6; } .pbtn.gold { background: linear-gradient(180deg, #4b97ff, #1e5fe6); color: #fff; box-shadow: 0 3px 10px rgba(30, 95, 230, .35); } .pbtn.buy { background: linear-gradient(180deg, #3b8aff, #0a52d8); }
.pcard.wal { background: linear-gradient(160deg, #0a1226, #16306a); } .pcard.wal .big { color: #9ed0ff; }
.pa .swatches .sw.on { box-shadow: 0 0 0 3px #1e63e8; } .pc-where { color: #14946a; }
.pmsg .av { background: linear-gradient(180deg, #4b97ff, #1e5fe6); }
#sheet.inph { background: #0a1222; }
/* Business app */
.bz-hero { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; border-radius: 22px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(80, 150, 255, .55), transparent 60%), linear-gradient(160deg, #0a1226, #12306b); box-shadow: 0 6px 20px rgba(10, 40, 110, .3); }
.bz-hero small { font-weight: 800; font-size: 11px; letter-spacing: .12em; color: #9ed0ff; } .bz-hero b { font: 800 30px/1.1 var(--body); letter-spacing: -.01em; } .bz-hero p { margin: 0; font-size: 13px; line-height: 1.4; color: #c8dcff; }
.bz-hero .cbtn { margin-top: 8px; } .bz-hero .cbtn.ghost { color: #c8dcff; }
.bz-v.bad { outline: 2px solid #e5584c; background: #fff6f5; }
.hpbar { height: 7px; border-radius: 4px; background: #e1e7f2; overflow: hidden; } .hpbar i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.bz-st { font-weight: 700; color: #1e63e8 !important; } .bz-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; color: #5c6a85; }
.bz-log { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.35; color: #2a3550; } .bz-log small { flex: none; font-weight: 800; color: #1e63e8; font-size: 11.5px; min-width: 56px; }
.pa .cbtn { color: #14151c; } .pa .cbtn.gold { color: #fff; } .pa .cbtn.ghost { background: #e2e9f6; color: #3a4a6a; border-color: transparent; box-shadow: none; } .pa .cbtn:not(.gold):not(.ghost):not(.palm):not(.leaf) { background: #e2e9f6; border-color: transparent; box-shadow: none; text-shadow: none; }
/* ---------- the city map ---------- */
#sheet.full { align-items: stretch; } #sheet.full .scrim { display: none; }
#sheet .panel.full { position: absolute; inset: 0; width: 100%; max-height: none; border-radius: 0; border: 0; background: #060a14; padding: 0; animation: fade .2s; }
.pb.bm { position: absolute; inset: 0; padding: 0; overflow: hidden; display: block; touch-action: none; }
.bm-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.bm-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bm-pins { position: absolute; inset: 0; pointer-events: none; }
.bm-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; background: none; border: 0; pointer-events: auto; will-change: transform; }
.bm-ico { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--pc) 70%, #fff), var(--pc) 75%); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .5), 0 0 0 4px rgba(6, 10, 20, .35); transition: transform .15s; }
.bm-ico .ic { width: 18px; height: 18px; stroke-width: 2.2; color: #07101f; }
.bm-ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--pc); opacity: 0; transform: scale(.6); }
.bm-pin.sel { z-index: 3; } .bm-pin.sel .bm-ico { transform: scale(1.25); } .bm-pin.sel .bm-ring { opacity: .9; animation: bmp 1.4s ease-out infinite; }
@keyframes bmp { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.bm-pin.dim { opacity: .22; } .bm-pin::after { content: ''; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; }
.bm-lab { position: absolute; left: 0; top: 22px; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; font: 800 11.5px/1.2 var(--body); font-style: normal; white-space: nowrap; color: #fff; background: rgba(6, 10, 20, .86); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .15s; }
.bm-pin.lab .bm-lab { opacity: 1; }
.bm-top { position: absolute; left: max(12px, var(--sl)); right: max(12px, var(--sr)); top: calc(var(--st) + 12px); display: flex; gap: 10px; align-items: center; pointer-events: none; } .bm-top > * { pointer-events: auto; }
.bm-title { min-width: 0; padding: 7px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); } .bm-title b { display: block; font: 800 15px/1.2 var(--disp); letter-spacing: -.01em; } .bm-title small { display: block; color: var(--mute); font-size: 12px; font-weight: 600; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-round { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); } .bm-round:active { transform: scale(.93); background: rgba(60, 120, 255, .5); } .bm-round .ic { width: 22px; height: 22px; }
.bm-chips { position: absolute; left: max(12px, var(--sl)); right: 70px; top: calc(var(--st) + 68px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; } .bm-chips::-webkit-scrollbar { display: none; }
.bm-chip { flex: none; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #cfe3ff; background: var(--glass); border: 1px solid var(--line); } .bm-chip.on { color: #fff; background: linear-gradient(180deg, #4b97ff, #1e5fe6); border-color: rgba(190, 225, 255, .55); }
.bm-tools { position: absolute; right: max(12px, var(--sr)); top: calc(var(--st) + 68px); display: flex; flex-direction: column; gap: 8px; } 
.bm-chips + .bm-tools { top: calc(var(--st) + 68px); }
.bm-card { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 16px); width: min(94vw, 460px); padding: 14px; border-radius: 24px; background: linear-gradient(180deg, rgba(20, 34, 62, .97), rgba(8, 13, 26, .98)); border: 1px solid var(--line); box-shadow: 0 -4px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .1); animation: rise .2s ease-out; display: flex; flex-direction: column; gap: 10px; }
.bm-ch { display: flex; align-items: center; gap: 12px; } .bm-badge { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 30%, #0a1222); border: 1px solid color-mix(in srgb, var(--pc) 60%, transparent); color: var(--pc); } .bm-badge .ic { width: 24px; height: 24px; }
.bm-ct { flex: 1; min-width: 0; } .bm-ct b { display: block; font: 800 16px/1.2 var(--disp); letter-spacing: -.01em; } .bm-ct small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 2px; line-height: 1.3; }
.bm-x { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #cfe3ff; display: grid; place-items: center; } .bm-x .ic { width: 18px; height: 18px; }
.bm-meta { display: flex; gap: 14px; font-size: 13px; font-weight: 700; color: #bcd3f5; } .bm-meta span:first-child { color: #fff; }
.bm-acts { display: flex; gap: 8px; } .bm-acts .cbtn { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 14px; } .bm-acts .cbtn.wide { flex: 1 1 100%; }
@media (orientation: landscape) and (max-height: 560px) { .bm-card { left: auto; right: max(12px, var(--sr)); transform: none; width: min(48vw, 420px); bottom: calc(var(--sb) + 10px); } .bm-tools { flex-direction: row; right: auto; left: max(12px, var(--sl)); top: calc(var(--st) + 64px); } .bm-chips { left: 220px; right: 12px; top: calc(var(--st) + 18px); } .bm-top .bm-title small { display: none; } }

.bz-v .prow .cbtn { flex: 1 1 auto; min-height: 40px; padding: 0 12px; font-size: 13px; }
@media (orientation: landscape) and (max-height: 560px) { #notes { bottom: calc(var(--sb) + 12px); width: min(46vw, 360px); } #hint { bottom: calc(var(--sb) + 12px); } }
/* ---------- v26: the three driving controls are smaller so they never touch each other ---------- */
#joy { width: 120px; height: 120px; }
#joy::before { inset: 26px; } #joyknob { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
#hud.driving #joy { width: 148px; height: 68px; bottom: calc(var(--sb) + 26px); }
#hud.driving #joyknob { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
#pedals { gap: 9px; bottom: calc(var(--sb) + 22px); }
.pedal.gas { width: 70px; height: 112px; border-radius: 20px; } .pedal.back { width: 62px; height: 72px; border-radius: 18px; }
.pedal .pad { left: 8px; right: 8px; top: 8px; bottom: 8px; border-radius: 11px; opacity: .5; }
.pedal b { font-size: 22px; } .pedal small { font-size: 8.5px; letter-spacing: .1em; }
@media (max-height: 480px) { .pedal.gas { height: 96px; } .pedal.back { height: 62px; } #hud.driving #joy { height: 62px; } }
/* in the car: the compact button and the passenger HUD */
#ctx.mini { width: 64px; height: 64px; min-width: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; animation: ctxpop .35s cubic-bezier(.2, 1.6, .4, 1) both, ctxglow 1.8s ease-in-out .4s infinite; }
#ctx.mini .ic { width: 30px; height: 30px; } #ctx.mini span { display: none; }
@keyframes ctxpop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ctxglow { 50% { box-shadow: 0 0 0 9px rgba(80, 150, 255, .22), 0 10px 26px rgba(30, 95, 230, .5); } }
#drv.pax .spd, #drv.pax .fuel { display: none; } #hud.pax #joy { display: none; }
#drv-music { }
.pill { white-space: nowrap; }

#mini .mb.pad { width: min(80vw, 320px); height: 112px; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); border-radius: 0; touch-action: none; }
#mini .mb { touch-action: none; user-select: none; -webkit-user-select: none; }
#mini .mb.mini-hit { filter: brightness(1.15); }
.slide .pinch { display: flex; gap: 6px; margin-top: 4px; }
.slide .pinch button { flex: 1; min-height: 40px; }
.tk { display: grid; gap: 4px; }
.tk .tkh { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tk .tkp { height: 6px; background: rgba(255, 255, 255, .12); }
.tk .tkp i { display: block; height: 100%; background: var(--gold2); }
.tk.lo .tkp i { background: #ff5a4a; }
.chip.vip { background: rgba(255, 176, 32, .25); color: #ffd36a; }
.mstars { letter-spacing: 2px; color: var(--gold2); }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plateview { display: block; margin: 6px auto; width: min(64vw, 240px); height: auto; border-radius: 50%; box-shadow: 0 6px 22px rgba(0, 0, 0, .5); }
.dayrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 6px 0; }
.dayrow span { text-align: center; padding: 8px 0; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .08); }
.dayrow span.on { background: var(--gold2); color: #2a1600; }
.dayrow span.now { outline: 2px solid var(--gold2); }

#cine { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
#cine .cb { position: absolute; left: 0; right: 0; background: #000; }
#cine .cb.top { top: 0; height: calc(env(safe-area-inset-top, 0px) + 54px); }
#cine .cb.bot { bottom: 0; height: calc(env(safe-area-inset-bottom, 0px) + 96px); }
#cine .cap { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 56px); color: #fff; display: grid; gap: 2px; text-shadow: 0 2px 8px #000; }
#cine .cap b { font-size: 17px; letter-spacing: .3px; }
#cine .cap span { font-size: 14px; opacity: .85; }
#cine .cbtns { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); display: flex; gap: 8px; pointer-events: auto; }
#cine .cbtns button { flex: 1; min-height: 40px; }
body.cine #notes, body.cine #bubble, body.cine #mark, body.cine #coach, body.cine #tvhud, body.cine #jobs { display: none !important; }

/* comic speech bubble over a character's head (market guide, delivery man) */
#cbub{position:fixed;left:0;top:0;z-index:30;width:max-content;max-width:min(250px,72vw);pointer-events:none;transform:translate(-50%,-100%);will-change:left,top}
#cbub[hidden]{display:none}
#cbub .cb-box{position:relative;background:#fffdf6;color:#1b1410;border:3px solid #1b1410;border-radius:20px;padding:10px 14px 12px;font:700 15px/1.3 Figtree,system-ui,sans-serif;box-shadow:0 4px 0 rgba(27,20,16,.28),0 10px 26px rgba(0,0,0,.28);pointer-events:auto}
#cbub .cb-box:after{content:"";position:absolute;left:50%;bottom:-17px;width:20px;height:20px;background:#fffdf6;border-right:3px solid #1b1410;border-bottom:3px solid #1b1410;transform:translateX(-50%) rotate(45deg) skew(8deg,8deg)}
#cbub .cb-who{font:800 11px/1 Unbounded,Figtree,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:#b6541c;margin-bottom:5px}
#cbub .cb-opts{display:flex;flex-direction:column;gap:6px;margin-top:9px}
#cbub .cb-opts button{border:2px solid #1b1410;background:#ffe08a;color:#1b1410;border-radius:999px;padding:9px 12px;font:800 14px/1.1 Figtree,system-ui,sans-serif;text-align:center;cursor:pointer;touch-action:manipulation}
#cbub .cb-opts button.alt{background:#fff;border-style:dashed}
#cbub .cb-opts button:active{transform:translateY(1px);background:#ffc94d}

/* =====================================================================
   COMIC DIALOGUE (v35): every person who talks in the game speaks in a comic bubble.
   Paper, thick ink outline, hard offset shadow, a name tag in the speaker's own colour, Baloo 2 lettering.
   Panels for other things (market, paint, orders) use the paper-card looks below so not everything is blue.
   ===================================================================== */
:root { --cx-paper: #fffdf6; --cx-ink: #1b1410; --cx-hi: #ffe08a; --cx-f: 'Baloo 2', Figtree, system-ui, sans-serif; --cx-h: 'Lilita One', 'Baloo 2', Figtree, sans-serif; }
#cbub .cb-box, #bubble { font-family: var(--cx-f); }
#cbub .cb-who, .cx-who { font-family: var(--cx-h); }
#bubble { width: 230px; text-align: left; padding: 9px 13px 11px; font: 700 15px/1.25 var(--cx-f); color: var(--cx-ink); background: var(--cx-paper); border: 3px solid var(--cx-ink); border-radius: 20px; box-shadow: 0 4px 0 rgba(27, 20, 16, .3), 0 10px 22px rgba(0, 0, 0, .28); }
#bubble::after { content: ''; position: absolute; left: 50%; bottom: -16px; margin: 0 0 0 -9px; width: 18px; height: 18px; border: 0; background: var(--cx-paper); border-right: 3px solid var(--cx-ink); border-bottom: 3px solid var(--cx-ink); transform: rotate(45deg) skew(8deg, 8deg); }
#bubble .cx-who { display: block; margin-bottom: 3px; }
.cx-who { font-size: 12px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; color: var(--cx-c, #b6541c); }
/* a bubble inside a sheet or card */
.cx { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 6px; }
.cx .face { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--cx-ink); background: var(--cx-c, #e5532c); color: #fff; display: grid; place-items: center; font: 400 22px/1 var(--cx-h); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.cx .say { position: relative; flex: 1; min-width: 0; background: var(--cx-paper); color: var(--cx-ink); border: 3px solid var(--cx-ink); border-radius: 18px; padding: 9px 13px 11px; font: 700 15.5px/1.3 var(--cx-f); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); background-image: radial-gradient(rgba(27, 20, 16, .07) 1px, transparent 1.4px); background-size: 7px 7px; }
.cx .say:before { content: ''; position: absolute; left: -10px; top: 16px; width: 16px; height: 16px; background: var(--cx-paper); border-left: 3px solid var(--cx-ink); border-bottom: 3px solid var(--cx-ink); transform: rotate(45deg); }
.cx .say .cx-who { display: block; margin-bottom: 3px; }
.cx .say p { margin: 0; } .cx .say p + p { margin-top: 5px; }
.cx.me { flex-direction: row-reverse; } .cx.me .say:before { left: auto; right: -10px; transform: rotate(-135deg); }
/* coach card: same paper */
#coach { background: var(--cx-paper) !important; color: var(--cx-ink); border: 3px solid var(--cx-ink) !important; border-radius: 20px !important; box-shadow: 0 4px 0 rgba(27, 20, 16, .3), 0 10px 22px rgba(0, 0, 0, .3) !important; background-image: radial-gradient(rgba(27, 20, 16, .07) 1px, transparent 1.4px) !important; background-size: 7px 7px !important; }
#coach .ch { font-family: var(--cx-h); color: #c93a16 !important; font-weight: 400; font-size: 14px; letter-spacing: .03em; }
#coach .ch button { color: var(--cx-ink); }
#coach .tx { font: 700 15px/1.3 var(--cx-f); color: var(--cx-ink); }
#coach .dots i { background: rgba(27, 20, 16, .15); } #coach .dots i.done { background: #22b36b; } #coach .dots i.act { background: #f4b72a !important; }
#coach .cbtn { clip-path: none; border: 2px solid var(--cx-ink); border-radius: 999px; background: #fff; color: var(--cx-ink); min-height: 36px; font-family: var(--cx-f); font-weight: 800; padding: 0 12px; box-shadow: 0 2px 0 rgba(27, 20, 16, .35); }
#coach .cbtn.gold { background: var(--cx-hi); } #coach .cbtn.leaf { background: #9be8b8; } #coach .cbtn.ghost { background: #f2ead4; }
/* toast from a person */
.note.say { background: var(--cx-paper) !important; color: var(--cx-ink); border: 3px solid var(--cx-ink) !important; border-radius: 18px !important; box-shadow: 0 3px 0 rgba(27, 20, 16, .3), 0 8px 18px rgba(0, 0, 0, .3) !important; font-family: var(--cx-f); font-size: 14.5px; font-weight: 700; align-items: flex-start; }
.note.say .cx-who { display: block; margin-bottom: 1px; font-size: 11px; }
.note.say .ic { display: none; }
/* paper cards: market, paint, orders (a warm look to sit beside the blue panels) */
.pp { background: #fff7e6; color: #2a1c10; border: 2.5px solid #2a1c10; border-radius: 18px; padding: 12px; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 8px; font-family: var(--cx-f); }
.pp h4 { margin: 0; font: 400 18px/1.1 var(--cx-h); letter-spacing: .02em; color: #c93a16; }
.pp p { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; }
.pp small { color: #7a6350; font-weight: 700; }
.pp .row { display: flex; gap: 8px; align-items: center; }
.pp .row .m { flex: 1; min-width: 0; }
.pbt { border: 2.5px solid #2a1c10; background: #ffd45e; color: #2a1c10; border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 800 14px/1 var(--cx-f); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); touch-action: manipulation; }
.pbt:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.pbt.alt { background: #fff; } .pbt.go { background: #8fe3ad; } .pbt.no { background: #ffb0a0; } .pbt.off { opacity: .5; pointer-events: none; }
.pbt.sm { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.chipx { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 2px solid #2a1c10; background: #fff; font: 800 12px/1.2 var(--cx-f); color: #2a1c10; }
.bar2 { height: 10px; border-radius: 6px; background: #e8d9bd; border: 2px solid #2a1c10; overflow: hidden; } .bar2 i { display: block; height: 100%; background: linear-gradient(90deg, #22b36b, #8fe3ad); }

.hcards { display: flex; flex-direction: column; gap: 10px; }
.hcard { text-align: left; padding: 13px 14px; border-radius: 18px; background: var(--cx-paper); color: var(--cx-ink); border: 3px solid var(--cx-ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .4); font-family: var(--cx-f); display: block; opacity: .82; }
.hcard b { display: block; font: 400 20px/1.1 var(--cx-h); color: #c93a16; margin-bottom: 4px; }
.hcard small { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #4a3a2a; }
.hcard i { display: block; margin-top: 6px; font: 800 12px/1 var(--cx-f); color: #7a6350; font-style: normal; }
.hcard.on { opacity: 1; background: #ffe9a8; transform: translateY(-3px); box-shadow: 0 7px 0 rgba(0, 0, 0, .45); }

.pi-kmk { background: linear-gradient(180deg, #ff8a5c, #d4421a); } .pi-paint { background: linear-gradient(180deg, #7be0c3, #1f9d82); }
.pa-pad { padding: 0 2px; display: flex; flex-direction: column; gap: 10px; }
.ptabs { display: flex; gap: 6px; padding: 8px 2px 4px; overflow-x: auto; }
.ptabs button { flex: none; padding: 8px 13px; border-radius: 999px; border: 2.5px solid #2a1c10; background: #fff; color: #2a1c10; font: 800 13px/1 var(--cx-f); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.ptabs button.on { background: #ffd45e; }
.pic.kmic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; } .pic.kmic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
#road { position: fixed; z-index: 14; right: max(10px, env(safe-area-inset-right)); top: calc(env(safe-area-inset-top, 0px) + 66px); width: min(44vw, 176px); padding: 8px 11px 9px; border-radius: 16px; background: var(--cx-paper); color: var(--cx-ink); border: 3px solid var(--cx-ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 8px 16px rgba(0, 0, 0, .25); font-family: var(--cx-f); cursor: pointer; touch-action: manipulation; }
#road .cx-who { display: block; font-size: 10.5px; color: #c93a16; } #road b { display: block; font-size: 14px; line-height: 1.15; font-weight: 800; } #road small { display: block; font-size: 11px; font-weight: 700; color: #7a6350; margin-top: 2px; }
#hud.driving ~ #road, body.cine #road { display: none; }
.ptabs { flex: none; min-height: 44px; }

.swg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sw { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; border-radius: 14px; background: #fff7e6; border: 2.5px solid #2a1c10; box-shadow: 0 3px 0 rgba(0, 0, 0, .35); text-align: left; font-family: var(--cx-f); color: #2a1c10; touch-action: manipulation; }
.sw i { display: block; height: 54px; border-radius: 9px; border: 2px solid #2a1c10; background-size: cover; }
.sw b { font: 800 12.5px/1.1 var(--cx-f); } .sw small { font: 700 11px/1 var(--cx-f); color: #7a6350; }
.sw.on { background: #ffe9a8; } .sw:active { transform: translateY(2px); }
.pi-ord { background: linear-gradient(180deg, #ffd45e, #e08a10); }

/* ---------- needs (v36) ---------- */
.pill.needs { display: flex; align-items: center; gap: 9px; padding: 5px 10px; min-height: 28px; background: rgba(8, 13, 26, .62); cursor: pointer; }
.pill.needs .nd { display: flex; align-items: center; gap: 4px; }
.pill.needs .nd i { display: inline-flex; width: 15px; height: 15px; color: var(--c); }
.pill.needs .nd i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill.needs .nd u { display: block; width: 38px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; text-decoration: none; }
.pill.needs .nd b { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.pill.needs .nd em { font: 700 11px/1 'Figtree', sans-serif; font-style: normal; color: #eaf2ff; min-width: 28px; }
.pill.needs .nd.low b { background: #ff5a4a; }
.pill.needs .nd.low { opacity: .9; }
@keyframes ndblink { 50% { opacity: .55; } }
#sleepfx { position: fixed; inset: 0; z-index: 60; background: #04060d; opacity: 0; pointer-events: none; transition: opacity 1.1s ease; display: flex; align-items: center; justify-content: center; color: #cfe0ff; text-align: center; }
#sleepfx { visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; } #sleepfx.on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
#sleepfx .zz b { display: block; font: 800 44px 'Baloo 2', sans-serif; letter-spacing: 2px; } #sleepfx.on .zz b { animation: zzf 2.2s ease-in-out infinite; }
#sleepfx .zz small { font: 600 15px 'Figtree', sans-serif; opacity: .8; }
@keyframes zzf { 50% { transform: translateY(-8px); opacity: .7; } }

.pi-pet { background: linear-gradient(180deg, #ffc46b, #d8801f); }
/* ---- the pet (comic menu, speech bubble, order card) ---- */
#dogmenu { position: fixed; z-index: 60; left: 0; top: 0; display: none; pointer-events: none; }
#dogmenu.on { display: block; }
#dogmenu .dm { position: absolute; pointer-events: auto; border: 4px solid #141414; font-family: 'Bangers', 'Lilita One', 'Comic Sans MS', cursive; font-size: 27px; letter-spacing: 1.5px; color: #141414; padding: 10px 20px 8px; border-radius: 50% / 38%; box-shadow: 5px 6px 0 #141414; cursor: pointer; white-space: nowrap; animation: dmpop .36s cubic-bezier(.3,1.6,.5,1) both; background-image: radial-gradient(rgba(0,0,0,.16) 1.4px, transparent 1.6px); background-size: 7px 7px; -webkit-tap-highlight-color: transparent; }
#dogmenu .dm:active { transform: translate(3px, 4px) !important; box-shadow: 2px 2px 0 #141414; }
#dogmenu .dm.sit { background-color: #ffd93b; left: -150px; top: -86px; transform: rotate(-5deg); }
#dogmenu .dm.stand { background-color: #4cc9ff; left: -20px; top: -128px; transform: rotate(4deg); animation-delay: .07s; }
#dogmenu .dm.off { filter: grayscale(.85); opacity: .6; }
#dogmenu .dm:after { content: ''; position: absolute; width: 16px; height: 16px; background: inherit; border-right: 4px solid #141414; border-bottom: 4px solid #141414; bottom: -11px; left: 54%; transform: rotate(45deg) skew(8deg, 8deg); }
@keyframes dmpop { 0% { opacity: 0; scale: .2; } 100% { opacity: 1; scale: 1; } }
#dogsay { position: fixed; z-index: 59; left: 0; top: 0; display: none; pointer-events: none; font-family: 'Bangers', 'Lilita One', cursive; font-size: 30px; letter-spacing: 2px; color: #141414; background: #fff; border: 4px solid #141414; border-radius: 22px 22px 22px 4px; padding: 6px 16px 3px; box-shadow: 4px 5px 0 #141414; transform-origin: 0 100%; }
#dogsay.on { display: block; animation: dmpop .28s cubic-bezier(.3,1.6,.5,1) both; }
.pet-card { text-align: center; }
.pet-card .pcn { width: 100%; box-sizing: border-box; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: inherit; font: 700 17px Figtree, sans-serif; border-radius: 12px; padding: 11px 14px; margin: 8px 0 12px; text-align: center; }
.pet-card .pcc { font: 800 38px Unbounded, Figtree, sans-serif; margin: 8px 0 2px; }
@media (max-width: 470px) { .pill.needs { gap: 8px; padding: 5px 9px; } .pill.needs .nd em { display: none; } .pill.needs .nd u { width: 34px; } }
.note .nx { pointer-events: auto; flex: none; margin-left: 6px; padding: 5px 11px; border-radius: 10px; border: 2px solid var(--cx-ink, rgba(255,255,255,.4)); background: rgba(0,0,0,.08); color: inherit; font: 800 12px 'Figtree', sans-serif; }
#coach .ch button.cx-x { border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font: 800 12px 'Figtree', sans-serif; color: var(--cream); }

/* needs bubble (v37) */
#needsay { position: fixed; z-index: 58; left: 0; top: 0; display: none; pointer-events: none; font-family: 'Bangers', 'Lilita One', cursive; font-size: 24px; letter-spacing: 1.5px; color: #141414; background: #fff; border: 3.5px solid #141414; border-radius: 20px 20px 20px 4px; padding: 5px 14px 2px; box-shadow: 3px 4px 0 #141414; white-space: nowrap; }
#needsay.on { display: block; animation: dmpop .26s cubic-bezier(.3,1.6,.5,1) both; }
#needsay.eat { background: #ffe9a8; } #needsay.wash { background: #c9ecff; } #needsay.rest { background: #e3dcff; }

/* cat picker (v37) */
.catbig { display: block; width: 132px; height: 132px; margin: 6px auto; border-radius: 18px; object-fit: cover; background: #9fb4c4; }
.catcoats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.catcoats .cc { border: 2px solid transparent; background: rgba(255,255,255,.06); border-radius: 12px; padding: 3px; color: inherit; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.catcoats .cc img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; }
.catcoats .cc small { font-size: 10px; opacity: .8; }
.catcoats .cc.on { border-color: #f2c14e; background: rgba(242,193,78,.16); }

/* home pager and Buy hub (v37) */
.ph-home .hs-widget, .ph-home .hs-dock { margin-left: 14px; margin-right: 14px; }
.hs-pager { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; overscroll-behavior-x: contain; touch-action: pan-x; }
.hs-pager::-webkit-scrollbar { display: none; }
.hs-page { flex: 0 0 100%; scroll-snap-align: start; padding: 4px 14px 0; box-sizing: border-box; }
.hs-grid { gap: 14px 4px; }
.hs-dots { display: flex; justify-content: center; gap: 7px; margin: -2px 0 -2px; }
.hs-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: background .2s, transform .2s; }
.hs-dots i.on { background: #fff; transform: scale(1.25); }
.pcard.bv-card { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; margin-bottom: 10px; }
.bv-img { flex: none; width: 64px; height: 64px; border-radius: 16px; background: #9fb4c4 center / cover; display: flex; overflow: hidden; align-items: center; justify-content: center; }
.bv-paint i { flex: 1; height: 100%; } .bv-ic { background: linear-gradient(135deg, #ffb347, #ff6a3d); color: #fff; } .bv-ic.kitchen { background: linear-gradient(135deg, #43d38b, #1b8f63); }
.bv-ic .ic, .bv-ic svg { width: 32px; height: 32px; }
.bv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .bv-t b { font-size: 15px; } .bv-t small { font-size: 12px; opacity: .7; line-height: 1.25; }
.bv-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; opacity: .5; }
.hubtabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .hubtabs button { flex: none; }
@media (orientation: landscape) and (max-height: 560px) { .ph-home { padding: 34px 0 24px; } .hs-page { padding-left: 58px; padding-right: 20px; } .hs-pager { flex: none; } }

/* v38: one Yes / No box, owned tags */
#yn { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(0, 0, 0, .5); }
#yn .ynb { width: min(82vw, 340px); border-radius: 20px; background: #fff7e6; border: 3px solid #2a1c10; box-shadow: 0 6px 0 rgba(0, 0, 0, .4); color: #2a1c10; text-align: center; overflow: hidden; font-family: var(--cx-f, Figtree, sans-serif); }
#yn b { display: block; padding: 18px 16px 4px; font: 800 19px/1.2 var(--cx-f, Figtree, sans-serif); }
#yn p { margin: 0; padding: 4px 18px 16px; font: 600 14.5px/1.35 var(--cx-f, Figtree, sans-serif); color: #5b4636; }
#yn .ynr { display: flex; border-top: 3px solid #2a1c10; }
#yn .ynr button { flex: 1; min-height: 54px; border: 0; background: none; font: 800 18px var(--cx-f, Figtree, sans-serif); color: #2a1c10; }
#yn .ynr button.yes { background: #ffcb3d; border-left: 3px solid #2a1c10; }
#yn .ynr button:active { filter: brightness(.9); }
.sw .ownb, .ownbadge { display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: #1f9d63; color: #fff; font: 800 11px/1.3 var(--cx-f, Figtree, sans-serif); }
.sw.owned { border-color: #1f9d63; }

/* v38 pets list */
.pc2 .prow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pc2 .pthb { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; flex: none; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.pc2 .pthb.dg svg { width: 34px; height: 34px; }
.pc2 .ptl { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pc2 .ptl b { font: 800 19px/1.1 Figtree, sans-serif; } .pc2 .ptl small { opacity: .75; font-weight: 700; }
.pc2 .pst.on { color: #35d08a; opacity: 1; }
.prb { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; } .prb > * { flex: 1; min-width: 0; }
#dogmenu .dmname { text-align: center; font: 800 13px/1 var(--cx-f, Figtree, sans-serif); color: #2a1c10; background: #fff7e6; border: 2px solid #2a1c10; border-radius: 10px; padding: 3px 8px; margin: 0 auto 4px; width: max-content; max-width: 100%; }

/* v38: redrawing a number must never replay an opening animation */
#sheet.rb .scrim, #sheet.rb .panel, #sheet.rb .panel * { animation: none !important; }
.pa.rf, .pa.rf * { animation: none !important; }
/* v38: the phone sits low while you edit paint, so the room or compound above it is the live preview */
#phone.docked { background: transparent; align-items: flex-end; animation: none; }
#phone.docked .ph-body { height: calc(var(--HV, 1vh) * 50); aspect-ratio: auto; width: min(96vw, 520px); max-width: none; border-radius: 30px 30px 0 0; padding: 8px 8px 0; animation: none; }
#phone.docked .ph-screen { border-radius: 24px 24px 0 0; }
#phone.docked .ph-island { display: none; } #phone.docked .ph-btn { display: none; }
#phone.docked .pa { padding-top: 28px; } #phone.docked .ph-status { display: none; }
#phone.docked .pa-b .cx, #phone.docked .pa-b .hubtabs { display: none; }
#phone.docked .pa-b { gap: 8px; padding-top: 8px; }
body.pvdock #hud *, body.pvdock #phone * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#phone.docked .ph-wall { display: none; }
/* v39: try before you buy */
.trybar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px; margin: 0 0 8px; border-radius: 18px; background: #fff3c9; border: 2px solid #2a1c10; color: #2a1c10; position: sticky; top: 0; z-index: 3; }
.trybar .m { min-width: 0; } .trybar b { display: block; font: 800 15px/1.15 Figtree, sans-serif; } .trybar small { font-weight: 700; opacity: .75; }
.sw.try { outline: 3px solid #ffb300; outline-offset: -2px; }
.bv-ic.sell { background: linear-gradient(135deg, #34c38f, #1f8f6a); }
.opt.tk.tap { cursor: pointer; } .opt.tk.tap:active { filter: brightness(.95); }

/* ---------- v40: profile, ladder, achievements ---------- */
#pill-lvl { pointer-events: auto; cursor: pointer; }
.pi-prof { background: linear-gradient(180deg, #7fd6c2, #1c8a7a); }
.prof-hero { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 4px 0 10px; border-radius: 18px; background: linear-gradient(135deg, rgba(47, 111, 184, .35), rgba(244, 183, 42, .18)); border: 1px solid var(--line); }
.prof-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; } .prof-av .ic { width: 28px; height: 28px; }
.prof-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .prof-id b { font-size: 17px; } .prof-id small { opacity: .78; }
.prof-bar, .lad-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; } .prof-bar i, .lad-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f4b72a, #ffd96a); }
.prof-lv { text-align: center; flex: none; } .prof-lv small { display: block; font-size: 10px; letter-spacing: .12em; opacity: .75; } .prof-lv b { font-size: 34px; line-height: 1; color: var(--gold); }
.pcard.lad { display: flex; flex-direction: column; gap: 8px; } .pcard.lad.later { opacity: .55; } .pcard.lad.now { border-color: rgba(244, 183, 42, .7); }
.lad-t { display: flex; align-items: center; gap: 10px; } .lad-t b { display: block; } .lad-t small { opacity: .75; }
.lad-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(255, 255, 255, .12); flex: none; } .pcard.lad.done .lad-n { background: #2fb06f; } .lad-n .ic { width: 18px; height: 18px; }
.lad-s { display: flex; flex-direction: column; gap: 5px; font-size: 13px; } .lad-s.ok span { color: #7df0b4; } .lad-st small { opacity: .8; font-size: 12px; }
.pcard.ach { display: flex; align-items: center; gap: 10px; } .pcard.ach.ok { border-color: rgba(47, 176, 111, .6); }
.ach-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; } .pcard.ach.ok .ach-ic { background: #2fb06f; }
.ach-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ach-b small { opacity: .75; }

/* ---------- v42 office PC: a bright agent desk ---------- */
#pc[hidden] { display: none !important; }
#pc { --a: #2f6fe8; --a2: #1b4fc2; --soft: #e6eeff; --ink: #14203c; --mut: #6a7491; position: absolute; inset: 0; z-index: 28; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #f6f9ff 0%, #e8eefb 100%); color: var(--ink); font-family: var(--body); padding: calc(var(--st, 0px) + 8px) max(12px, var(--sl, 0px)) calc(var(--sb, 0px) + 10px) max(12px, var(--sr, 0px)); }
#pc.pc-b { --a: #7a3fb0; --a2: #5b2c8a; --soft: #f0e7fa; background: linear-gradient(180deg, #fbf8ff 0%, #ece5f7 100%); }
#pc * { box-sizing: border-box; }
#pc .pc-top { display: flex; align-items: center; gap: 10px; padding: 2px 0; }
#pc .pc-logo { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font: 900 20px var(--body); color: #fff; background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: 0 6px 14px -6px var(--a); }
#pc .pc-tt { min-width: 0; flex: 1; } #pc .pc-co { display: block; font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #pc .pc-tt small { display: block; color: var(--mut); font-size: 12px; font-weight: 700; }
#pc .pc-up { flex: none; min-height: 42px; padding: 0 16px; border-radius: 13px; border: 1px solid #d5dcf0; background: #fff; color: var(--ink); font: 800 14px var(--body); box-shadow: 0 3px 8px -4px rgba(20, 32, 60, .25); }
#pc .pc-shift { flex: none; background: #fff; border-radius: 16px; padding: 10px 12px 11px; box-shadow: 0 6px 18px -10px rgba(20, 32, 60, .3); }
#pc .pc-shrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; } #pc .pc-shrow b { font-size: 14.5px; } #pc .pc-earn { font: 900 13px var(--body); color: #0e8a52; background: #e2f8ec; border-radius: 99px; padding: 4px 10px; }
#pc .pc-pips { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; } #pc .pc-pips i { height: 8px; border-radius: 4px; background: #dfe4f2; } #pc .pc-pips i.ok { background: #2bc27a; } #pc .pc-pips i.lost { background: #ef5350; } #pc .pc-pips i.dec { background: #a9b1c9; } #pc .pc-pips i.cur { background: var(--a); animation: pcpulse 1s ease-in-out infinite; }
@keyframes pcpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#pc .pc-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 2px 1px 6px; }
#pc .pc-main.st-pick { overflow: hidden; } #pc .pc-main.st-pick > * { flex: none; } #pc .pc-main.st-pick > .pc-lib { flex: 1 1 auto; min-height: 0; }
#pc .pc-foot { flex: none; display: flex; flex-direction: column; gap: 8px; } #pc .pc-foot:empty { display: none; } #pc .pc-row { display: flex; gap: 10px; }
#pc .pc-b { flex: 1 1 0; min-height: 56px; border: 0; border-radius: 16px; font: 900 17px var(--body); color: #fff; background: #98a2c0; box-shadow: 0 8px 16px -10px rgba(20, 32, 60, .55); } #pc .pc-b:active { transform: scale(.98); }
#pc .pc-b.go { background: linear-gradient(180deg, #34d286, #14a860); } #pc .pc-b.ghost { flex: 0 0 34%; background: #fff; color: var(--ink); border: 1px solid #d5dcf0; } #pc .pc-b.wide { flex: 1 1 100%; }
#pc .pc-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 10px 26px -14px rgba(20, 32, 60, .35); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
#pc .pc-card b { font-size: 19px; } #pc p { margin: 0; font-size: 14px; color: var(--mut); line-height: 1.4; } #pc .pc-sm { font-size: 12.5px; }
#pc .pc-ring { position: relative; width: 168px; height: 168px; } #pc .pc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } #pc .pc-ring circle { fill: none; stroke-width: 10; } #pc .pc-ring .bg { stroke: var(--soft); } #pc .pc-ring .fg { stroke: var(--a); stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
#pc .pc-rc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } #pc .pc-cd { font: 900 38px var(--body); color: var(--a); letter-spacing: .01em; } #pc .pc-rc small { color: var(--mut); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
#pc .pc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } #pc .pc-tiles.two { grid-template-columns: 1fr 1fr; }
#pc .pc-tile { background: #fff; border-radius: 15px; padding: 10px 8px; text-align: center; box-shadow: 0 6px 16px -12px rgba(20, 32, 60, .4); } #pc .pc-tile small { display: block; color: var(--mut); font-size: 11.5px; font-weight: 800; } #pc .pc-tile b { display: block; font-size: 15.5px; margin-top: 2px; word-break: break-word; } #pc .pc-tile.gold { background: #fff6dc; } #pc .pc-tile.gold b { color: #a86a00; }
#pc .pc-goal { align-items: stretch; text-align: left; gap: 6px; } #pc .pc-goal b { font-size: 15px; } #pc .pc-goal small { color: var(--mut); font-weight: 700; font-size: 12.5px; } #pc .pc-gb { height: 9px; border-radius: 5px; background: var(--soft); overflow: hidden; } #pc .pc-gb i { display: block; height: 100%; background: linear-gradient(90deg, var(--a), #f4b72a); }
#pc .pop { animation: pcpop .42s cubic-bezier(.2, 1.4, .4, 1); } @keyframes pcpop { from { transform: scale(.88) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
#pc .pc-av { border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); } #pc .pc-av.sm { width: 42px; height: 42px; } #pc .pc-av.mid { width: 58px; height: 58px; } #pc .pc-av.big { width: 78px; height: 78px; } #pc .pc-av.huge { width: 112px; height: 112px; }
#pc .pc-av.ring { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--a); } #pc .pc-av.ring.ok { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #2bc27a; } #pc .pc-av.ring.bad { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #ef5350; }
#pc .pc-badge { align-self: center; background: var(--a); color: #fff; font: 900 11.5px var(--body); letter-spacing: .1em; padding: 5px 12px; border-radius: 99px; animation: pcpulse 1.2s ease-in-out infinite; }
#pc .pc-who { display: flex; align-items: center; gap: 12px; text-align: left; } #pc .pc-ticket .pc-who { flex-direction: column; text-align: center; gap: 8px; } #pc .pc-who b { display: block; font-size: 20px; } #pc .pc-who small { color: var(--mut); font-weight: 800; font-size: 13px; }
#pc .pc-want { font-size: 15.5px; color: var(--ink); font-weight: 700; } #pc .pc-lab { color: var(--mut); font-weight: 800; font-size: 12px; }
#pc .pc-bubble { background: #fff; border-radius: 6px 20px 20px 20px; padding: 14px 16px; font-size: 16.5px; font-weight: 700; line-height: 1.35; box-shadow: 0 8px 20px -14px rgba(20, 32, 60, .45); border-left: 5px solid var(--a); } #pc .pc-bubble.sm { font-size: 14.5px; padding: 10px 12px; }
#pc .pc-hint { text-align: center; font-weight: 700; }
#pc .pc-bar { height: 9px; border-radius: 5px; background: var(--soft); overflow: hidden; width: 100%; } #pc .pc-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #34d286, #14a860); border-radius: 5px; } #pc .pc-bar.lo i { background: linear-gradient(90deg, #ff8a5c, #ef4444); }
#pc .pc-need { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } #pc .pc-nd { display: flex; flex-direction: column; align-items: center; gap: 5px; } #pc .pc-nd span { font: 800 12.5px var(--body); text-align: center; line-height: 1.15; }
#pc .pc-need .pc-cv { width: 100%; max-width: 104px; } #pc .pc-need.sm { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; } #pc .pc-need.sm .pc-nd { flex: 0 0 auto; width: 64px; } #pc .pc-need.sm .pc-nd span { font-size: 10.5px; }
#pc .pc-cv { display: block; border-radius: 9px; background: var(--soft); box-shadow: 0 8px 14px -8px rgba(20, 32, 60, .55); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
#pc .pc-pickhead { display: flex; align-items: center; gap: 10px; } #pc .pc-pt { flex: 1; min-width: 0; } #pc .pc-pt b { display: block; font-size: 16px; } #pc .pc-pt small { color: var(--mut); font-weight: 800; font-size: 12px; }
#pc .pc-clock { font: 900 24px var(--body); color: #fff; background: var(--a); border-radius: 14px; padding: 6px 12px; min-width: 66px; text-align: center; } #pc .pc-clock.lo { background: #ef4444; animation: pcpulse .6s ease-in-out infinite; }
#pc .pc-tabs { display: flex; gap: 6px; } #pc .pc-tab { flex: 1; min-height: 40px; border: 0; border-radius: 12px; background: #fff; color: var(--mut); font: 800 13px var(--body); box-shadow: 0 4px 10px -8px rgba(20, 32, 60, .5); } #pc .pc-tab.on { background: var(--a); color: #fff; }
#pc .pc-lib { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: rgba(255, 255, 255, .6); border-radius: 18px; padding: 10px; }
#pc .pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 9px; }
#pc .pc-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 5px 7px; border: 2px solid transparent; border-radius: 14px; background: #fff; color: var(--ink); font-family: var(--body); box-shadow: 0 6px 14px -10px rgba(20, 32, 60, .5); transition: transform .12s, border-color .12s; } #pc .pc-it:active { transform: scale(.96); }
#pc .pc-it .nm { font: 800 12px var(--body); line-height: 1.15; text-align: center; } #pc .pc-it .pr { font: 700 10.5px var(--body); color: var(--mut); } #pc .pc-it.rs { min-height: 54px; justify-content: center; } #pc .pc-it.rs .nm { font-size: 14px; }
#pc .pc-it .ck { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--a); border: 2px solid #fff; display: none; } #pc .pc-it .ck::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
#pc .pc-it.on { border-color: var(--a); background: var(--soft); transform: translateY(-2px); } #pc .pc-it.on .ck { display: block; } #pc .pc-it.bad { border-color: #ef4444; background: #ffe6e6; animation: pcshake .4s; } #pc .pc-it.bad .ck { display: block; background: #ef4444; }
#pc .pc-sec { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--mut); } #pc .pc-sec.wide { grid-column: 1 / -1; }
#pc .pc-msg { min-height: 18px; font-weight: 800; font-size: 13.5px; color: #e03131; text-align: center; } #pc .pc-msg:empty { min-height: 0; } #pc .pc-msg.shake { animation: pcshake .4s; }
#pc .pc-win { position: relative; overflow: hidden; padding: 20px 16px 16px; } #pc .pc-win b { font-size: 22px; } #pc .pc-count { font: 900 40px var(--body); color: #0e8a52; letter-spacing: .01em; } #pc .pc-win.bad b { color: #d83a3a; } #pc .pc-win.done .pc-trophy .ic { width: 64px; height: 64px; color: #f4b72a; }
#pc .pc-conf { position: absolute; inset: 0; pointer-events: none; } #pc .pc-conf i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: pcfall 1.9s ease-in forwards; } @keyframes pcfall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 360px) rotate(540deg); opacity: 0; } }
@keyframes pcshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
body.atpc #hud { visibility: hidden; }
@media (min-width: 700px) { #pc { padding-left: max(12vw, 24px); padding-right: max(12vw, 24px); } #pc .pc-grid { grid-template-columns: repeat(5, 1fr); } }
@media (orientation: landscape) and (max-height: 560px) { #pc .pc-grid { grid-template-columns: repeat(5, 1fr); } #pc .pc-ring { width: 120px; height: 120px; } #pc .pc-cd { font-size: 28px; } }
/* the profile cards carry their own dark colours so they read the same in the sheet and in the phone app */
.pcard.lad, .pcard.ach { background: #18233f; color: #eaf2ff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); } .pcard.lad p, .pcard.ach p { color: #c9d6f0; }
.pcard.lad.now { border-color: rgba(244, 183, 42, .8); background: #1d2c52; } .pcard.lad.later { opacity: .6; }
.prof-hero { background: linear-gradient(135deg, #1f3f78, #4a3a1c); color: #fff; border-color: rgba(255, 255, 255, .16); }
.pcard.car { background: #18233f; color: #eaf2ff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .14); } .pcard.car p { color: #c9d6f0; }
.prof-sec { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin: 12px 2px 4px; }

/* ======================================================================
   v43 GAME SKIN: coloured icon tiles, drawn banners, avatars, medals.
   One palette drives everything: tiles read their colours from --t1 / --t2.
   ====================================================================== */
.h-blue, .k-car, .k-route, .k-map, .k-pin, .k-locate, .k-layers, .k-phone, .k-tv { --t1: #74b8ff; --t2: #2a62e0; }
.h-amber, .k-gear, .k-fuel, .k-bolt, .k-sun { --t1: #ffc65f; --t2: #ef7a10; }
.h-gold, .k-coin, .k-wallet, .k-trophy, .k-star, .k-gift { --t1: #ffe27f; --t2: #f0a000; }
.h-orange, .k-flame, .k-fork, .k-pot, .k-pan, .k-hat, .k-plate, .k-bowl, .k-oven, .k-burner, .k-cooker, .k-knife { --t1: #ff9f6e; --t2: #e8452c; }
.h-green, .k-leaf, .k-check, .k-paw, .k-basket, .k-shop, .k-bag { --t1: #62e69f; --t2: #15a35a; }
.h-teal, .k-home, .k-sofa, .k-bed, .k-water, .k-snow, .k-shower, .k-sink, .k-fridge { --t1: #52e3cf; --t2: #0f9a98; }
.h-indigo, .k-monitor, .k-chart, .k-brief { --t1: #90a7ff; --t2: #4256e0; }
.h-violet, .k-book, .k-music, .k-brush, .k-moon { --t1: #c9a2ff; --t2: #7a3fd8; }
.h-pink, .k-heart, .k-bell, .k-chat { --t1: #ff93c4; --t2: #e0357f; }
.h-sky, .k-user, .k-clock, .k-alarm, .k-touch { --t1: #84dcff; --t2: #2a9ad8; }
.h-slate, .k-lock, .k-close, .k-trash, .k-minus, .k-plus, .k-door { --t1: #a2aec8; --t2: #5a6688; }
.ut { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--t1, #74b8ff), var(--t2, #2a62e0)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 7px 14px -8px var(--t2, #2a62e0); }
.ut .ic { width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .28)); }
.ut.sm { width: 32px; height: 32px; border-radius: 11px; } .ut.sm .ic { width: 17px; height: 17px; }
.ui-ban, .ui-face { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }

/* every list row in the dark sheets: a coloured tile instead of a bare icon */
.opt { border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(160, 200, 255, .18); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.opt > .icw { flex: none; display: grid; }
.opt > .icw .ic { width: 42px; height: 42px; padding: 10px; border-radius: 14px; color: #fff; background: linear-gradient(150deg, var(--t1, #74b8ff), var(--t2, #2a62e0)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 7px 14px -8px var(--t2, #2a62e0); }
.opt .tr { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d7e8ff; font-weight: 900; }
.opt.rdy { background: linear-gradient(180deg, rgba(40, 210, 140, .3), rgba(20, 140, 100, .16)); border-color: rgba(80, 230, 170, .55); box-shadow: 0 0 0 1px rgba(80, 230, 170, .2), 0 10px 22px -12px rgba(30, 200, 130, .6); }
.opt.rdy .tr { background: #22c27a; color: #fff; }
.opt b { font-weight: 800; }
.sec { position: relative; padding-left: 14px; color: #bfdcff; } .sec::before { content: ''; position: absolute; left: 0; top: 1px; bottom: 1px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, #74b8ff, #2a62e0); }
.chip { border: 1px solid rgba(160, 200, 255, .2); font-weight: 800; padding: 6px 12px; }
.chip.gold { background: linear-gradient(180deg, #ffd45e, #f09a10); color: #2a1600; border-color: #ffe9a8; }
.chip.ok { background: linear-gradient(180deg, #3fdc9c, #12a86a); color: #fff; border-color: #8ef0c4; }
#sheet .ph { background: linear-gradient(120deg, rgba(60, 130, 255, .38), rgba(140, 80, 255, .26) 55%, rgba(255, 140, 80, .1)); border-bottom: 1px solid rgba(160, 200, 255, .18); border-radius: 24px 24px 0 0; padding-top: 16px; padding-bottom: 14px; }
#sheet .ph > .icw .ic { width: 48px; height: 48px; padding: 11px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, var(--t1, #74b8ff), var(--t2, #2a62e0)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .15), 0 8px 18px -8px var(--t2, #2a62e0); }
#sheet .ph h3 { font-size: 18px; }
#sheet.inph .ph > .icw .ic { width: 38px; height: 38px; padding: 8px; border-radius: 13px; } #sheet.inph .ph { border-radius: 0; }
#sheet .pf .cbtn.gold { font-weight: 900; }
.seg .cbtn { font-weight: 900; border-radius: 12px; }

/* shared tile rows */
.wst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wst-c { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 18px; text-align: center; min-width: 0; background: #fff; box-shadow: 0 8px 18px -12px rgba(20, 32, 60, .4); border: 1px solid #e3e9f7; }
.wst-c b { font: 900 15.5px/1.15 var(--body); color: #14203c; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wst-c small { font-size: 11.5px; font-weight: 800; color: #6a7491; }
#sheet .wst-c, .pf-st .wst-c { background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); border-color: rgba(160, 200, 255, .2); box-shadow: none; }
#sheet .wst-c b, .pf-st .wst-c b { color: #fff; } #sheet .wst-c small, .pf-st .wst-c small { color: #a9c3ee; }
.bz-card .wst-c b { color: #14203c; }

/* ---------- phone apps ---------- */
.pa { background: linear-gradient(180deg, #f3f7ff, #e4ecfb); }
.pa-b { gap: 13px; }
.pcard { border-radius: 22px; box-shadow: 0 10px 22px -14px rgba(20, 32, 60, .5); border: 1px solid #e3e9f7; }
.pc-sec { display: flex; align-items: center; gap: 8px; color: #3a4668; font-weight: 900; letter-spacing: .06em; } .pc-sec::before { content: ''; width: 5px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #5aa5ff, #2a62e0); }
.pc-where { padding: 10px 14px; border-radius: 16px; background: linear-gradient(180deg, #e2f9ee, #d3f3e4); border: 1px solid #b9ebd2; color: #0e7a50; } .pc-where.no { background: linear-gradient(180deg, #fff0e2, #ffe5cf); border-color: #ffd0a8; color: #b4570a; }

/* wallet */
.wcard { container-type: inline-size; position: relative; overflow: hidden; border-radius: 26px; padding: 16px 18px 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(135deg, #1a2b86 0%, #5a2fb0 52%, #e5532c 118%); box-shadow: 0 18px 30px -16px rgba(60, 40, 160, .8), inset 0 1.5px 0 rgba(255, 255, 255, .3); }
.wc-wave { position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 65%); pointer-events: none; } .wc-wave.w2 { right: auto; left: -70px; top: auto; bottom: -110px; width: 260px; height: 260px; background: radial-gradient(circle at 60% 40%, rgba(255, 190, 90, .35), rgba(255, 190, 90, 0) 65%); }
.wc-top { position: relative; display: flex; justify-content: space-between; align-items: center; } .wc-brand { font: 900 12px var(--body); letter-spacing: .16em; opacity: .9; } .wc-tier { font: 900 11px var(--body); letter-spacing: .1em; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); }
.wc-mid { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 6px 0 2px; }
.wc-chip { width: 44px; height: 33px; border-radius: 8px; background: linear-gradient(135deg, #ffe9a0, #e0a020); box-shadow: inset 0 0 0 1px rgba(120, 70, 0, .35); background-image: linear-gradient(90deg, transparent 32%, rgba(120, 70, 0, .35) 33%, transparent 35%, transparent 65%, rgba(120, 70, 0, .35) 66%, transparent 68%), linear-gradient(0deg, transparent 46%, rgba(120, 70, 0, .35) 47%, transparent 50%), linear-gradient(135deg, #ffe9a0, #e0a020); }
.wc-nfc { display: flex; align-items: center; } .wc-nfc i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 90, 90, .9); } .wc-nfc i + i { margin-left: -12px; background: rgba(255, 200, 60, .88); mix-blend-mode: screen; } .wc-nfc i:nth-child(3) { display: none; }
.wc-lab { position: relative; font-weight: 800; opacity: .8; font-size: 12.5px; margin-top: 4px; }
.wc-bal { position: relative; font: 900 clamp(22px, 9.4cqw, 38px)/1.1 var(--body); color: #ffe27f; text-shadow: 0 2px 0 rgba(60, 30, 0, .35); letter-spacing: -.01em; white-space: nowrap; }
.wc-foot { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 8px; } .wc-av { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .9); object-fit: cover; } .wc-who { flex: 1; min-width: 0; } .wc-who b { display: block; font-size: 14.5px; } .wc-who small { opacity: .78; font-weight: 700; font-size: 12px; } .wc-no { font: 900 12px var(--body); letter-spacing: .18em; opacity: .75; }
.wq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .wq-b { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 8px; border: 1px solid #e3e9f7; border-radius: 18px; background: #fff; box-shadow: 0 8px 16px -12px rgba(20, 32, 60, .45); } .wq-b:active { transform: scale(.95); } .wq-b small { font: 800 11.5px var(--body); color: #3a4668; }
.wtot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: linear-gradient(135deg, #fff6d8, #ffe9a8); border: 1px solid #f3d36c; } .wtot small { display: block; font-weight: 800; color: #8a5a00; font-size: 12px; } .wtot b { font: 900 21px var(--body); color: #5a3800; }
.wgar { display: flex; gap: 10px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 8px; scrollbar-width: none; touch-action: pan-x; } .wgar::-webkit-scrollbar { display: none; }
.wgar-c { flex: none; width: 150px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 8px 18px -12px rgba(20, 32, 60, .45); } .wgar-c img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: linear-gradient(135deg, #dfe9ff, #f1f5ff); } .wgar-c b { font: 800 13px var(--body); color: #14203c; padding: 0 3px 2px; }

/* messages */
.pmsg { border-radius: 20px; border: 1px solid #e3e9f7; box-shadow: 0 8px 16px -12px rgba(20, 32, 60, .45); align-items: flex-start; } .pmsg .av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: 0 0 0 2px #5aa5ff, 0 6px 12px -6px rgba(30, 80, 200, .6); background: none; } .pm-role { display: inline-block; margin: 0 0 3px 8px; font: 800 11px var(--body); font-style: normal; color: #fff; background: linear-gradient(180deg, #5aa5ff, #2a62e0); padding: 2px 8px; border-radius: 99px; vertical-align: 1px; }

/* jobs */
.jhero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #1f3fb8, #6a3fd0 60%, #e5532c 130%); box-shadow: 0 16px 28px -16px rgba(60, 50, 180, .8), inset 0 1.5px 0 rgba(255, 255, 255, .3); }
.jh-av { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(255, 220, 120, .9), 0 8px 14px -6px rgba(0, 0, 0, .5); flex: none; }
.jh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .jh-t b { font: 900 17px var(--body); } .jh-t small { font-weight: 800; opacity: .8; font-size: 12.5px; } .jh-now { align-self: flex-start; margin-top: 2px; padding: 3px 10px; border-radius: 99px; font: 800 11.5px var(--body); background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jh-lv { flex: none; text-align: center; width: 56px; padding: 6px 0 7px; border-radius: 16px; background: linear-gradient(180deg, #ffe27f, #f0a000); color: #3a2200; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), 0 6px 12px -6px rgba(0, 0, 0, .5); } .jh-lv small { display: block; font: 900 9.5px var(--body); letter-spacing: .12em; } .jh-lv b { font: 900 26px/1 var(--body); }
.pcard.jobcard { padding: 0; gap: 0; overflow: hidden; }
.jc-ban { position: relative; height: 118px; background: #1c2c5a; } .jc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-lv { position: absolute; left: 12px; top: 12px; padding: 4px 11px; border-radius: 99px; font: 900 11.5px var(--body); color: #fff; background: rgba(10, 18, 40, .62); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px); }
.jc-ban .jobtag { position: absolute; right: 12px; top: 12px; padding: 4px 11px; font: 900 11.5px var(--body); background: linear-gradient(180deg, #ffe27f, #f0a000); color: #3a2200; border-radius: 99px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
.jc-lock { position: absolute; inset: 0; display: grid; place-items: center; } .jc-lock .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: rgba(10, 14, 30, .7); color: #fff; }
.jc-ico { position: absolute; left: 14px; bottom: -22px; }
.jc-ico .ic, .bz-ico .ic { width: 48px; height: 48px; padding: 11px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, var(--t1), var(--t2)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 0 0 3px #fff, 0 8px 14px -6px var(--t2); }
.jc-ico, .bz-ico { display: block; width: 48px; height: 48px; }
.jc-body { display: flex; flex-direction: column; gap: 9px; padding: 30px 14px 14px; } .jc-name { font: 900 20px var(--body); color: #14203c; } .jc-body p { margin: 0; }
.jc-pay { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 16px; background: linear-gradient(180deg, #e9fbf1, #d8f6e6); border: 1px solid #b9ebd2; } .jc-pay span:last-child { font: 800 13px/1.35 var(--body); color: #0e6a46; } .jc-pay .ut { width: 36px; height: 36px; border-radius: 12px; } .jc-pay .ut .ic { width: 19px; height: 19px; }
.jc-need { font-weight: 800; color: #b4570a !important; background: #fff0e2; border-radius: 12px; padding: 8px 11px !important; }
.pcard.jobcard.mine { outline: 3px solid #f0a000; outline-offset: -1px; }
.pcard.jobcard.locked .jc-name { color: #6a7491; }

/* business */
.bz-hero { position: relative; overflow: hidden; } .bz-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; mix-blend-mode: luminosity; pointer-events: none; } .bz-hero > *:not(.bz-bg) { position: relative; }
.pcard.bz-card { padding: 0; gap: 0; overflow: hidden; } .bz-ban { position: relative; height: 112px; background: #1c2c5a; } .bz-img { width: 100%; height: 100%; object-fit: cover; display: block; } .bz-ico { position: absolute; left: 14px; bottom: -22px; } .bz-ban .jc-lv { z-index: 1; }
.bz-body { display: flex; flex-direction: column; gap: 9px; padding: 30px 14px 14px; } .bz-body p { margin: 0; } .bz-h { font: 900 20px var(--body); color: #14203c; }
.bz-vh { align-items: center; gap: 10px; } .bz-vn { flex: 1; min-width: 0; } .bz-vn b { display: block; font: 900 16px var(--body); } .bz-vn small { font-weight: 800; color: #6a7491; font-size: 12px; }
.tag.ok { background: #d5f6e5; color: #0e7a50; } .tag.bad { background: #ffe0dd; color: #c0392b; }
.bz-lockban { width: 100%; border-radius: 20px; aspect-ratio: 480 / 180; object-fit: cover; box-shadow: 0 10px 20px -12px rgba(20, 32, 60, .6); }

/* ---------- profile (dark sheet and phone) ---------- */
.prof-hero { --lvc: #c98a52; position: relative; overflow: hidden; border-radius: 24px; padding: 16px 14px; gap: 14px; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--lvc) 55%, transparent), transparent 62%), linear-gradient(135deg, #1b3a86, #2a2470 60%, #35204a); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .8), inset 0 1.5px 0 rgba(255, 255, 255, .2); }
.prof-hero.lv1 { --lvc: #d6925a; } .prof-hero.lv2 { --lvc: #c4cfe6; } .prof-hero.lv3 { --lvc: #52e3cf; } .prof-hero.lv4 { --lvc: #90a7ff; } .prof-hero.lv5 { --lvc: #ffd45e; }
.prof-avw { position: relative; flex: none; width: 84px; height: 84px; border-radius: 50%; padding: 5px; background: conic-gradient(var(--lvc) var(--p, 0%), rgba(255, 255, 255, .18) 0); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .7); }
.prof-av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #14213d; display: block; background: #14213d; }
.prof-medal { position: absolute; right: -4px; bottom: -4px; min-width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--body); color: #2a1600; background: radial-gradient(circle at 35% 30%, #fff, var(--lvc) 62%); border: 2.5px solid #14213d; box-shadow: 0 4px 8px rgba(0, 0, 0, .5); }
.prof-id b { font: 900 20px var(--body); } .prof-bar { height: 11px; border-radius: 8px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); } .prof-bar i { background: linear-gradient(90deg, var(--lvc), #fff3b0); border-radius: 8px; box-shadow: 0 0 10px var(--lvc); }
.prof-lv b { color: var(--lvc); font-size: 38px; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.pstat3 { display: none; }
.pf-st { margin: 2px 0 6px; }
.pcard.lad { border-radius: 20px; } .lad-n { width: 40px; height: 40px; font: 900 17px var(--body); border: 2px solid rgba(255, 255, 255, .25); }
.lad-n.l1 { background: linear-gradient(150deg, #e9ad7a, #a8642c); } .lad-n.l2 { background: linear-gradient(150deg, #dde5f5, #8f9bb8); color: #1a2440; } .lad-n.l3 { background: linear-gradient(150deg, #7eeed9, #0f9a98); } .lad-n.l4 { background: linear-gradient(150deg, #a9bbff, #4256e0); } .lad-n.l5 { background: linear-gradient(150deg, #ffe27f, #f0a000); color: #3a2200; } .lad-n.l6 { background: rgba(255, 255, 255, .12); }
.pcard.lad.done .lad-n { box-shadow: 0 0 0 3px rgba(80, 230, 170, .5); } .pcard.lad.done .lad-n .ic { color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.pcard.lad.now { box-shadow: 0 0 0 1px rgba(255, 210, 100, .5), 0 12px 24px -14px rgba(255, 190, 60, .7); }
.lad-bar { height: 9px; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); } .lad-bar i { background: linear-gradient(90deg, #4b97ff, #7fe0ff); }
.ach-ic { width: 46px; height: 46px; border-radius: 15px; color: #fff; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .15); } .ach-ic .ic { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.ach-ic.g-kitchen { background: linear-gradient(150deg, #ff9f6e, #e8452c); } .ach-ic.g-office { background: linear-gradient(150deg, #90a7ff, #4256e0); } .ach-ic.g-home { background: linear-gradient(150deg, #52e3cf, #0f9a98); } .ach-ic.g-jobs { background: linear-gradient(150deg, #74b8ff, #2a62e0); } .ach-ic.g-levels { background: linear-gradient(150deg, #ffe27f, #f0a000); } .ach-ic.g-money { background: linear-gradient(150deg, #62e69f, #15a35a); }
.pcard.ach:not(.ok) .ach-ic { filter: saturate(.45) brightness(.8); } .pcard.ach.ok { background: linear-gradient(180deg, #1c3a40, #162a3a); border-color: rgba(80, 230, 170, .6); } .pcard.ach.ok .ach-ic { background: linear-gradient(150deg, #62e69f, #15a35a); }
.pcard.cr { flex-direction: row; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; }
.cr-ban { position: relative; flex: none; width: 96px; height: 74px; border-radius: 14px; overflow: hidden; } .cr-img { width: 100%; height: 100%; object-fit: cover; display: block; } .cr-ico { position: absolute; left: 6px; bottom: 6px; } .cr-ico .ic { width: 30px; height: 30px; padding: 7px; border-radius: 10px; color: #fff; background: linear-gradient(150deg, var(--t1), var(--t2)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.cr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .cr-t b { font: 900 16px var(--body); } .cr-t p { margin: 0; font-size: 12.5px; }

/* ---------- welcome back and the hub ---------- */
.wb-ban { position: relative; height: 112px; border-radius: 20px; overflow: hidden; margin-bottom: 8px; box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .8); } .wb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-av { position: absolute; right: 12px; bottom: 10px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .6); }
.wb-streak { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(8, 12, 28, .66); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(5px); } .wb-streak .ut { width: 34px; height: 34px; border-radius: 50%; } .wb-streak b { display: block; font: 900 15px/1.1 var(--body); color: #fff; } .wb-streak small { display: block; font: 700 11.5px var(--body); color: #cfe0ff; }
.dayrow.v43 { gap: 5px; margin: 8px 0; } .dayrow.v43 span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 8px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(160, 200, 255, .2); color: #cfe0ff; }
.dayrow.v43 em { font: 800 9.5px var(--body); font-style: normal; letter-spacing: .04em; opacity: .85; text-transform: uppercase; } .dayrow.v43 b { font: 900 12px var(--body); color: #fff; }
.dayrow.v43 i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); } .dayrow.v43 i .ic { width: 15px; height: 15px; color: #ffe27f; }
.dayrow.v43 span.on { background: linear-gradient(180deg, rgba(255, 210, 100, .3), rgba(240, 150, 20, .14)); border-color: rgba(255, 210, 100, .7); } .dayrow.v43 span.on i { background: linear-gradient(150deg, #ffe27f, #f0a000); } .dayrow.v43 span.on i .ic { color: #5a3800; }
.dayrow.v43 span.got { background: linear-gradient(180deg, rgba(60, 220, 150, .32), rgba(20, 150, 100, .16)); border-color: rgba(100, 240, 180, .8); } .dayrow.v43 span.got i { background: linear-gradient(150deg, #62e69f, #15a35a); } .dayrow.v43 span.got i .ic { color: #fff; }
.dayrow.v43 span.now { outline: 2px solid #fff; outline-offset: 1px; animation: dnow 1.4s ease-in-out infinite; } @keyframes dnow { 50% { box-shadow: 0 0 16px rgba(255, 220, 120, .8); } }
.dayrow.v43 span.big:not(.on) i { background: linear-gradient(150deg, #c9a2ff, #7a3fd8); } .dayrow.v43 span.big:not(.on) i .ic { color: #fff; }
.hub-ban { position: relative; height: 104px; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .8); } .hub-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-st { position: absolute; left: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 3px; padding: 7px 14px 8px; border-radius: 16px; background: rgba(8, 12, 28, .66); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(5px); } .hub-st .stars .ic { width: 17px; height: 17px; color: #ffd45e; } .hub-st b { font: 900 13.5px var(--body); color: #fff; }
.hub-av { position: absolute; right: 12px; bottom: 10px; width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .6); }
.opt.tk { display: flex; flex-direction: column; align-items: stretch; gap: 8px; } .opt.tk .tkh { display: flex; align-items: center; gap: 10px; } .opt.tk .tkh b { flex: 1; min-width: 0; font-size: 15.5px; } .opt.tk .tkh span { flex: none; padding: 5px 11px; border-radius: 99px; background: linear-gradient(180deg, #3fdc9c, #12a86a); color: #fff; font: 900 13px var(--body); }
.opt.tk .tkh .ut { width: 38px; height: 38px; }
.tk .tkp { height: 9px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35); } .tk .tkp i { border-radius: 6px; background: linear-gradient(90deg, #3fdc9c, #7fe8b8); } .tk.mid .tkp i { background: linear-gradient(90deg, #ffb020, #ffd36a); } .tk.lo .tkp i { background: linear-gradient(90deg, #ff4d5e, #ff8a8a); }
.opt.tk.vip { border-color: rgba(255, 210, 100, .8); background: linear-gradient(180deg, rgba(255, 210, 100, .2), rgba(255, 255, 255, .04)); }
.mstars { color: #ffd45e; text-shadow: 0 0 8px rgba(255, 200, 60, .6); }

/* ---------- the map: place cards under the map, and a banner on the open card ---------- */
.bm-strip { position: absolute; left: 0; right: 0; bottom: calc(var(--sb, 0px) + 10px); display: flex; gap: 10px; overflow-x: auto; padding: 8px max(14px, var(--sr)) 6px max(14px, var(--sl)); scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x; } .bm-strip::-webkit-scrollbar { display: none; } .bm-strip[hidden] { display: none; }
.bm-pc { --pc: #7cc0ff; flex: none; width: 156px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 7px 7px 9px; text-align: left; border-radius: 22px; color: #fff; background: linear-gradient(180deg, rgba(24, 40, 74, .94), rgba(8, 14, 30, .96)); border: 1px solid rgba(160, 200, 255, .26); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .9); } .bm-pc:active { transform: scale(.97); } .bm-pc.sel { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc), 0 14px 26px -14px rgba(0, 0, 0, .9); }
.bm-pcb { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 480 / 180; } .bm-pci { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-pck { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 8px rgba(0, 0, 0, .4); } .bm-pck .ic { width: 15px; height: 15px; color: #07101f; }
.bm-pc b { font: 900 13.5px/1.2 var(--body); padding: 3px 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bm-pc small { padding: 0 4px; font: 800 12px var(--body); color: #9ed0ff; }
.bm-card { overflow: hidden; padding-top: 0; }
.bm-ban { position: relative; margin: 0 -14px 4px; height: 96px; } .bm-img { width: 100%; height: 100%; object-fit: cover; display: block; } .bm-ban::after { content: ''; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(180deg, transparent, rgba(8, 13, 26, .92)); }
.bm-cat { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 12px; border-radius: 99px; font: 900 11.5px var(--body); color: #07101f; background: var(--pc, #7cc0ff); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); }
.bm-chip { font-weight: 900; } .bm-chip.on { box-shadow: 0 0 14px rgba(80, 150, 255, .6); }
@media (orientation: landscape) and (max-height: 560px) { .bm-strip { right: auto; width: 56vw; } .bm-ban { height: 64px; } .jc-ban { height: 88px; } }

.pa-b > * { flex-shrink: 0; }
#sheet .wst-c, .pf-st .wst-c { background: linear-gradient(180deg, #1f2f55, #162240); border-color: rgba(160, 200, 255, .22); }
.pf-st .wst-c b { color: #fff; } .pf-st .wst-c small { color: #a9c3ee; }
#sheet .pb > * { flex-shrink: 0; }
.hub-st .stars .ic.e { color: rgba(255, 255, 255, .3); }
.pcard.ach { flex-direction: row; align-items: center; gap: 12px; }

/* v44 dance button: floats under the left pills so the top-right buttons keep their room */
#b-dance { position: absolute; left: max(10px, var(--sl)); top: calc(var(--st) + 240px); z-index: 5; background: linear-gradient(160deg, #ff8fb8, #c0398a); border-color: rgba(255,255,255,.35); box-shadow: 0 6px 16px rgba(192,57,138,.45); }
#b-dance .ic { stroke: #fff; }
#b-dance.on { animation: dnc 0.9s ease-in-out infinite alternate; }
@keyframes dnc { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-3px) rotate(5deg); } }
#b-dance[hidden] { display: none; }

.pi-groc { background: linear-gradient(180deg, #ffd24a, #e8861a); }
.pi-msg { background: linear-gradient(180deg, #ff7a8a, #d3304f); }
.kmart { background-size: cover; background-position: center; border-radius: 10px; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 3px 10px rgba(0,0,0,.35); }
/* dance picker groups: pink = female set, blue = male set */
.dgh { margin: 14px 4px 6px; padding: 7px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.dgh.dpk { background: linear-gradient(90deg, #ff8fb8, #c0398a); }
.dgh.dbl { background: linear-gradient(90deg, #6bb8ff, #2a62c9); }
.opt.dpk { border-left: 4px solid #ff6fa8; }
.opt.dbl { border-left: 4px solid #4a8ff0; }
.opt.dpk.rdy { background: rgba(255,111,168,.16); }
.opt.dbl.rdy { background: rgba(74,143,240,.16); }
.opt.dpk { --t1: #ff9cc4; --t2: #d0428f; }
.opt.dbl { --t1: #74b8ff; --t2: #2a62e0; }
/* ---------- EDIT HOUSE (v47) ---------- */
body.hedit #hud > :not(#he) { display: none !important; }
#b-hedit { position: absolute; left: max(10px, var(--sl)); top: calc(var(--st) + 178px); z-index: 5; background: linear-gradient(160deg, #6fd3a2, #1f9a6a); border-color: rgba(255,255,255,.35); box-shadow: 0 6px 16px rgba(31,154,106,.42); }
#b-hedit .ic { stroke: #fff; }
#b-hedit[hidden] { display: none; }
#he { position: absolute; inset: 0; z-index: 21; pointer-events: none; }
#he[hidden] { display: none; }
#he > * { pointer-events: auto; }
.he-top { position: absolute; left: 0; right: 0; top: calc(var(--st, 0px) + 10px); display: flex; gap: 8px; padding: 0 max(10px, var(--sl, 0px)); align-items: stretch; pointer-events: none; }
.he-top > * { pointer-events: auto; }
.he-title { flex: 1; min-width: 0; padding: 9px 14px; border-radius: 16px; background: rgba(15,16,48,.88); color: #fff7e8; border: 1px solid rgba(255,255,255,.12); }
.he-title b { display: block; font: 800 16px var(--disp, inherit); } .he-title small { display: block; font: 600 11.5px var(--body, inherit); opacity: .78; margin-top: 1px; }
.he-done { flex: none; min-width: 92px; border: 0; border-radius: 16px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(180deg, #ffd45e, #f08a10); color: #2a1600; font: 800 15px var(--body, inherit); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.he-done .ic { width: 20px; height: 20px; stroke: #2a1600; }
.he-views { position: absolute; left: 0; right: 0; top: calc(var(--st, 0px) + 74px); display: flex; gap: 6px; overflow-x: auto; padding: 0 max(10px, var(--sl, 0px)); scrollbar-width: none; pointer-events: auto; }
.he-views::-webkit-scrollbar { display: none; }
.he-views button { flex: none; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(15,16,48,.82); color: #fff7e8; font: 700 13px var(--body, inherit); }
.he-views button.on { background: #ffd45e; color: #2a1600; border-color: #ffd45e; }
.he-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(var(--HV, 1vh) * 50); display: flex; flex-direction: column; background: #fbfbfd; color: #14151c; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 34px rgba(0,0,0,.38); padding-bottom: var(--sb, 0px); overflow: hidden; }
.he-grab { flex: none; border: 0; background: none; height: 22px; display: grid; place-items: center; } .he-grab i { width: 44px; height: 5px; border-radius: 3px; background: #c9ccd6; }
.he-sel { display: none; flex: none; padding: 0 12px 8px; } .he-sel.on { display: block; }
.he-st { padding: 2px 4px 8px; } .he-st b { display: block; font: 800 16px var(--body, inherit); } .he-st small { display: block; font: 600 12.5px var(--body, inherit); color: #5a5d68; margin-top: 1px; } .he-st small.bad { color: #d6402e; }
.he-btns { display: flex; gap: 8px; }
.he-ib { flex: 1; min-width: 0; min-height: 58px; border: 0; border-radius: 16px; background: #14151c; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 700 12px var(--body, inherit); }
.he-ib .ic { width: 24px; height: 24px; stroke: #fff; } .he-ib small { font-size: 11.5px; font-weight: 700; } .he-ib.off { opacity: .35; }
.he-tabs { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 10px; scrollbar-width: none; } .he-tabs::-webkit-scrollbar { display: none; }
.he-tabs button { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: #eef0f6; color: #3a3d48; font: 800 14.5px var(--body, inherit); }
.he-tabs button.on { background: #14151c; color: #fff; }
.he-panel.min .he-tabs { padding-bottom: 14px; }
.he-grid { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 2px 12px 18px; align-content: start; }
.he-grid .he-empty, .he-grid .he-bal { grid-column: 1 / -1; } .he-empty { margin: 14px 4px; color: #5a5d68; font-weight: 600; font-size: 14px; } .he-bal { text-align: center; font-weight: 700; font-size: 12.5px; color: #7a7d88; padding-top: 4px; }
.he-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; border-radius: 20px; border: 2px solid #e6e8f0; background: #fff; color: #14151c; text-align: left; min-width: 0; }
.he-card.bag { border-color: #43d38b; } .he-card.max { opacity: .8; }
.he-card b { font: 800 14px var(--body, inherit); line-height: 1.2; padding: 0 4px; min-height: 34px; display: block; }
.he-pr { font: 800 15px var(--body, inherit); padding: 0 4px; } .he-pr.fr { color: #14151c; }
.he-card small { padding: 0 4px; font: 700 11.5px var(--body, inherit); color: #1f9a6a; }
.he-tw { position: relative; border-radius: 15px; overflow: hidden; background: linear-gradient(180deg, #dcecff, #eef6ff); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.he-th { width: 100%; height: 100%; display: grid; place-items: center; background-size: contain; background-repeat: no-repeat; background-position: center; } .he-th img { width: 100%; height: 100%; object-fit: contain; } .he-th .ic { width: 38px; height: 38px; stroke: #3a5aa8; opacity: .8; }
.he-th.has { background-size: contain; }
.he-sz { position: absolute; left: 6px; top: 6px; font: 800 11px var(--body, inherit); padding: 2px 8px; border-radius: 9px; background: rgba(255,255,255,.92); color: #3a3d48; }
.he-own { position: absolute; right: 6px; top: 6px; min-width: 20px; text-align: center; font: 800 11px var(--body, inherit); padding: 2px 7px; border-radius: 9px; background: #14151c; color: #fff; }
.kmthumb { background-color: #e8efff; background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 12px; display: grid; place-items: center; }
.kmthumb.has { background-color: #e8efff; }
@media (min-width: 700px) { .he-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .he-panel { max-height: calc(var(--HV, 1vh) * 46); } }

/* CCTV viewer */
body.cctv #hud > :not(#cctv) { display: none !important; }
#cctv { position: absolute; inset: 0; z-index: 21; pointer-events: none; }
#cctv[hidden] { display: none; }
#cctv > * { pointer-events: auto; }
.cctv-title b { display: flex; align-items: center; gap: 8px; }
.cctv-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4a4a; display: inline-block; animation: cctvb 1.1s steps(2) infinite; }
@keyframes cctvb { 50% { opacity: .25; } }
.cctv-nav { position: absolute; left: 0; right: 0; top: 50%; display: flex; justify-content: space-between; padding: 0 max(8px, var(--sl, 0px)); pointer-events: none; transform: translateY(-50%); }
.cctv-nav > * { pointer-events: auto; }
.cctv-arr { width: 46px; height: 64px; border-radius: 16px; border: 1px solid rgba(255,255,255,.2); background: rgba(15,16,48,.7); color: #fff7e8; font: 800 24px var(--body, inherit); }
.cctv-views { top: auto; bottom: calc(var(--sb, 0px) + 16px); }

/* dance picker tabs */
.dtabs { display: flex; gap: 8px; margin: 2px 0 10px; }
.dtab { flex: 1; min-height: 42px; border-radius: 14px; border: 2px solid transparent; font: 800 15px var(--body, inherit); color: #fff; opacity: .6; }
.dtab.dpk { background: linear-gradient(160deg, #ff8fb8, #c0398a); } .dtab.dbl { background: linear-gradient(160deg, #6bb8ff, #2a62c9); }
.dtab.on { opacity: 1; border-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
#b-dance.blue { background: linear-gradient(160deg, #74b8ff, #2a62c9); box-shadow: 0 6px 16px rgba(42,98,201,.45); }

/* ringing card on the HUD */
.ringcard { position: absolute; left: 50%; top: calc(var(--st) + 128px); transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 10px; border-radius: 22px; border: 1px solid rgba(255,255,255,.25); background: rgba(14,18,44,.92); color: #fff; max-width: min(320px, calc(100% - 24px)); text-align: left; font-family: var(--body, inherit); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.ringcard[hidden] { display: none; }
.rc-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #4be37d, #14a64a); flex: none; }
.rc-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; }
.ringcard.ring .rc-ic { animation: rcshake .55s ease-in-out infinite; }
.ringcard.talk .rc-ic { animation: none; }
@keyframes rcshake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(8deg); } }
.rc-t { display: flex; flex-direction: column; } .rc-t b { font-size: 16px; } .rc-t small { opacity: .8; font-size: 12.5px; }
/* ringing / in-call screen inside the phone */
.pcall { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; padding: 78px 22px 40px; background: radial-gradient(120% 80% at 50% 10%, #2b3a8a 0%, #121a45 55%, #080b20 100%); color: #fff; }
.pc-top { text-align: center; display: flex; flex-direction: column; gap: 3px; } .pc-top small { opacity: .75; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; } .pc-top b { font-size: 30px; } .pc-top em { font-style: normal; opacity: .7; }
.pc-av { position: relative; width: 150px; height: 150px; margin: 30px 0 auto; display: grid; place-items: center; }
.pc-face { position: relative; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.85); z-index: 1; }
.pc-av i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(110,230,150,.5); opacity: 0; }
.pcall.ring .pc-av i { animation: pcring 1.8s ease-out infinite; } .pcall.ring .pc-av i.rg2 { animation-delay: .9s; }
@keyframes pcring { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.pc-sub { margin: 0 6px auto; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.12); font-size: 16px; line-height: 1.35; text-align: center; min-height: 3.2em; }
.pc-bot { width: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pc-track { position: relative; width: 100%; height: 64px; border-radius: 32px; background: rgba(255,255,255,.14); overflow: hidden; touch-action: none; user-select: none; }
.pc-track.go { background: rgba(40,190,95,.22); } .pc-track.no { background: rgba(230,60,60,.22); }
.pc-lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding-left: 52px; font-weight: 700; font-size: 15px; opacity: calc(1 - var(--p, 0) * 1.4); pointer-events: none; }
.pc-lbl i { font-style: normal; letter-spacing: -2px; animation: pcarrow 1.2s ease-in-out infinite; } @keyframes pcarrow { 50% { transform: translateX(6px); opacity: .4; } }
.pc-knob { position: absolute; left: 5px; top: 5px; width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; touch-action: none; transition: transform .22s; }
.pc-knob.drag { transition: none; }
.go .pc-knob { background: linear-gradient(160deg, #4be37d, #14a64a); } .no .pc-knob { background: linear-gradient(160deg, #ff6b6b, #d12a2a); }
.pc-knob svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; } .no .pc-knob svg { transform: rotate(135deg); }
.pc-end { width: 66px; height: 66px; border-radius: 50%; border: 0; background: linear-gradient(160deg, #ff6b6b, #d12a2a); display: grid; place-items: center; }
.pc-end svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; transform: rotate(135deg); }
.pc-bot small { opacity: .75; }
.pc-tm { font-variant-numeric: tabular-nums; }
/* chats */
.cht-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; margin-bottom: 8px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; text-align: left; font-family: inherit; color: #14151c; }
.cht-row .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.cht-mid { flex: 1; min-width: 0; } .cht-mid b { display: block; } .cht-mid p { margin: 2px 0 0; font-size: 13px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cht-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e8332a; color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.cht-h { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; } .cht-h .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; } .cht-h small { display: block; opacity: .6; }
.cht-back { border: 0; background: #e8eefc; color: #1e5fe6; font-weight: 800; border-radius: 12px; padding: 8px 10px; font-family: inherit; }
.cht-list { display: flex; flex-direction: column; gap: 7px; max-height: calc(var(--HV, 1vh) * 46); overflow-y: auto; padding: 4px 2px 8px; }
.cht-m { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; display: flex; flex-direction: column; }
.cht-m em { font-style: normal; font-size: 11px; font-weight: 800; opacity: .6; margin-bottom: 2px; }
.cht-m.them { align-self: flex-start; background: #fff; border: 1px solid #e3e9f7; color: #14151c; border-bottom-left-radius: 5px; }
.cht-m.me { align-self: flex-end; background: linear-gradient(160deg, #4b97ff, #1e5fe6); color: #fff; border-bottom-right-radius: 5px; }
.cht-bar { display: flex; gap: 8px; margin-top: 8px; } .cht-bar.new { margin-top: 12px; }
.cht-in { flex: 1; min-width: 0; height: 42px; border-radius: 14px; border: 1px solid #cdd6ee; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; color: #14151c; }
.cht-send { height: 42px; padding: 0 16px; border-radius: 14px; border: 0; background: linear-gradient(160deg, #4b97ff, #1e5fe6); color: #fff; font-weight: 800; font-family: inherit; }

#gplace.wide { width: min(292px, 62vw); }
#gplace .er .cbtn.sq { min-height: 44px; }
#gplace .er .cbtn span { font-size: 13px; }

#gplace.wide { width: min(292px, 62vw); }
#gplace .er .cbtn.sq { min-height: 44px; }
#gplace .er .cbtn span { font-size: 13px; }

.pill.pwr { gap: 6px; } .pill.pwr[hidden] { display: none; } .pill.pwr .ic { width: 14px; height: 14px; color: #ffd45e; } .pill.pwr.chg .ic { color: #7dffae; } .pill.pwr.low { color: #ffb4a8; } .pill.pwr.low .ic { color: #ff8a7a; }
.bbar { position: relative; height: 22px; border-radius: 11px; background: rgba(255,255,255,.12); overflow: hidden; margin: 4px 0 2px; } .bbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #f0b43c, #ffd45e); border-radius: 11px; transition: width .4s; } .bbar.chg i { background: linear-gradient(90deg, #2fbf71, #7dffae); } .bbar.low i { background: linear-gradient(90deg, #d8402e, #ff8a7a); } .bbar b { position: relative; display: block; text-align: center; font: 800 12px/22px var(--sans, system-ui); color: #10142e; mix-blend-mode: normal; text-shadow: 0 0 3px rgba(255,255,255,.5); }
.icard p.dim, .pcard p.dim { opacity: .78; font-size: 12.5px; }

/* v49 encounters */
#yn .ynr.enc-q { flex-direction: column; }
#yn .ynr.enc-q button { border-left: 0; border-top: 3px solid #2a1c10; }
#yn .ynr.enc-q button:first-child { border-top: 0; }
.cht-qr { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 34px; }
.cht-qb { min-height: 46px; border-radius: 14px; border: 2px solid #2f6fb8; background: #fff; color: #1c3f6e; font: 800 15px var(--cx-f, Figtree, sans-serif); }
.cht-qb.blk { border-color: #8a8f98; color: #4a4f58; }
.cht-qb.dis { opacity: .45; }
.cht-qb:active { filter: brightness(.92); }
.vipb { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #f6d57a, #c8932a); color: #2b1b05; font: 800 11px/1 var(--cx-f, Figtree, sans-serif); letter-spacing: .12em; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.pcard.vipc { border-color: #c8932a !important; box-shadow: 0 0 0 1px rgba(246,213,122,.35), 0 8px 22px rgba(200,147,42,.18); }

/* =====================================================================
   AwaChef v50: load screen, title screens, animated logo, social row, account UI
   ===================================================================== */
:root { --awa-gold: #f6c453; --awa-gold2: #e8962a; --awa-cream: #fff3dc; --awa-brown: #5a2d0c; --awa-ink: #2a1206; }
.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; z-index: 0; pointer-events: none; user-select: none; }
.screen.art { background: none; justify-content: flex-end; overflow: hidden; }
.screen.art::before, #loading::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(40, 18, 6, .38) 0%, rgba(40, 18, 6, 0) 24%, rgba(40, 18, 6, 0) 46%, rgba(32, 14, 5, .72) 74%, rgba(24, 10, 4, .94) 100%); }
.screen.art > *:not(.bgimg) { position: relative; z-index: 2; }
#loading { overflow: hidden; background: #2a1206; justify-content: flex-end; padding: 0 0 calc(var(--sb, 0px) + 20px); gap: 10px; color: var(--awa-cream); align-items: center; }
#loading > *:not(.bgimg) { position: relative; z-index: 2; }
#loading .ld-mark { display: none; }
#loading .ld-bar { background: rgba(255, 243, 220, .22); width: min(66vw, 260px); margin-bottom: 4px; }
#loading .ld-bar i { background: linear-gradient(90deg, var(--awa-gold2), #fff1b8); }
#loading .ld-msg { color: #f3dcb4; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); margin-bottom: 6px; }
.art-top { position: absolute !important; left: 0; right: 0; top: calc(var(--st, 0px) + calc(var(--HV, 1vh) * 7)); z-index: 3 !important; display: flex; justify-content: center; pointer-events: none; }
.art-top.sm { top: calc(var(--st, 0px) + calc(var(--HV, 1vh) * 3.5)); transform: scale(.62); transform-origin: 50% 0; }

/* the animated logo: letters drop in with a bounce, then ride a slow wave while a light sweeps across them; speed streaks race past behind */
.awl { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 10px; }
.awl-w { position: relative; display: inline-flex; transform: skewX(-9deg); filter: drop-shadow(0 4px 0 #4a2208) drop-shadow(0 8px 14px rgba(20, 8, 2, .5)); white-space: nowrap; }
.awl-w b { display: inline-block; font: 400 clamp(54px, 18vw, 86px)/1 "Lilita One", "Baloo 2", "Unbounded", system-ui, sans-serif; letter-spacing: -.01em; color: transparent; -webkit-text-stroke: 2px #4a2208; paint-order: stroke fill; background-size: 320% 100%; -webkit-background-clip: text; background-clip: text; will-change: transform;
  animation: awlIn .75s cubic-bezier(.2, 1.7, .4, 1) both, awlWave 3.4s ease-in-out infinite, awlShine 3.2s linear infinite; animation-delay: calc(var(--i) * 80ms), calc(1s + var(--i) * 140ms), calc(var(--i) * 170ms); }
.awl-w b.a { background-image: linear-gradient(100deg, #fff6e2 0%, #ffe2b0 36%, #fff 50%, #ffe2b0 64%, #ffd08a 100%); }
.awl-w b.c { background-image: linear-gradient(100deg, #ffd45e 0%, #f0a020 36%, #fff6c8 50%, #f0a020 64%, #e8800c 100%); margin-left: -.01em; }
.awl-w b.c:nth-of-type(4) { margin-left: .03em; }
@keyframes awlIn { 0% { opacity: 0; transform: translateY(-120%) rotate(-14deg) scale(.5); } 70% { opacity: 1; transform: translateY(8%) rotate(3deg) scale(1.05); } 100% { opacity: 1; transform: none; } }
@keyframes awlWave { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7%) rotate(-1.6deg); } }
@keyframes awlShine { 0% { background-position: 100% 0; } 55%, 100% { background-position: -120% 0; } }
.awl-st { position: absolute; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 226, 150, 0), rgba(255, 226, 150, .95)); opacity: 0; filter: blur(.4px); animation: awlStreak 1.9s cubic-bezier(.2, .7, .3, 1) infinite; }
.awl-st.s1 { width: 34%; left: -8%; top: 18%; animation-delay: .2s; }
.awl-st.s2 { width: 46%; left: -14%; top: 40%; height: 4px; animation-delay: .75s; }
.awl-st.s3 { width: 28%; left: -4%; top: 61%; height: 3px; animation-delay: 1.3s; }
@keyframes awlStreak { 0% { opacity: 0; transform: translateX(-30px) skewX(-30deg); } 25% { opacity: .95; } 100% { opacity: 0; transform: translateX(130px) skewX(-30deg); } }
.awl-tag { font: 800 11px/1 var(--body, system-ui); letter-spacing: .42em; color: #ffe9bd; margin-top: 10px; padding-left: .42em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); opacity: 0; animation: awlTag .8s ease-out 1.1s forwards; }
@keyframes awlTag { to { opacity: .95; } }

/* social symbols: line icons in the same warm cream as the lettering */
.soc { display: flex; justify-content: center; gap: 14px; padding: 6px 0 0; }
.soc button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0; color: #ffe6b8; background: rgba(42, 18, 6, .45); border: 1.5px solid rgba(255, 226, 170, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .12s, background .15s, color .15s; touch-action: manipulation; }
.soc button:active { transform: scale(.9); background: rgba(246, 196, 83, .9); color: #2a1206; }
.soc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#loading .soc { margin-bottom: 4px; }
#awa-toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); transform: translate(-50%, 12px); z-index: 999; background: rgba(42, 18, 6, .94); color: #ffe9bd; border: 1px solid rgba(255, 226, 170, .45); padding: 10px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#awa-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* title / account / gender screens */
.screen.art .stack .tag { color: #f6e2bd; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); font-weight: 700; max-width: 34ch; text-align: center; margin: 0 auto; }
.screen.art .stack .cbtn.gold, #scr-gender .cbtn.gold, #scr-house .cbtn.gold { background: linear-gradient(180deg, #ffd45e, #e8962a); color: #2a1206; border-color: rgba(255, 240, 190, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 16px rgba(232, 150, 42, .45); text-shadow: none; }
.screen.art .stack .cbtn:not(.gold) { background: rgba(42, 18, 6, .55); color: #ffe9bd; border: 1.5px solid rgba(255, 226, 170, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stack.glass { background: rgba(34, 15, 6, .66); border: 1px solid rgba(255, 226, 170, .28); border-radius: 24px; padding: 18px 16px 16px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); gap: 12px; }
.stack.glass.lite { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 12, 6, .82); }
.stack.glass h2 { color: #fff3dc; margin: 0; }
.stack .sub { margin: -4px 0 2px; color: #d9c3a0; font-size: 13.5px; line-height: 1.4; font-weight: 600; }
.stack.glass .field label { color: #e8cfa4; }
.stack.glass .field input { background: rgba(255, 243, 220, .09); border: 1.5px solid rgba(255, 226, 170, .28); color: #fff3dc; }
.stack.glass .field input:focus { border-color: var(--awa-gold); background: rgba(255, 243, 220, .15); box-shadow: 0 0 0 3px rgba(246, 196, 83, .22); }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 243, 220, .18); }
.steps i.on { background: linear-gradient(90deg, #ffd45e, #e8962a); }
.btnrow { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.btnrow .cbtn { width: 100%; }
#scr-account .btnrow .cbtn.ghost, #scr-pin .btnrow .cbtn.ghost, #scr-gender .btnrow .cbtn.ghost { background: rgba(255, 243, 220, .08); color: #ffe9bd; border: 1.5px solid rgba(255, 226, 170, .3); }
.unf { display: flex; align-items: center; background: rgba(255, 243, 220, .09); border: 1.5px solid rgba(255, 226, 170, .28); border-radius: var(--r2, 12px); transition: border-color .15s, box-shadow .15s; }
.unf .at { padding-left: 14px; font-weight: 800; font-size: 18px; color: var(--awa-gold); }
.stack.glass .unf input, .unf input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 4px; color: #fff3dc; font: inherit; font-weight: 800; font-size: 18px; outline: none; user-select: text; -webkit-user-select: text; }
.unf:focus-within { border-color: var(--awa-gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .22); }
.unf.ok { border-color: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .2); }
.unf.ok input, .unf.ok .at { color: #7dffb0; }
.unf.bad { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .18); }
.unf.wait { border-color: rgba(255, 226, 170, .55); }
.unst { width: 40px; height: 22px; display: grid; place-items: center; }
.unst svg { width: 20px; height: 20px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.unf.ok .unst svg { stroke: #3ddc84; } .unf.bad .unst svg { stroke: #ff6b6b; }
.unf.wait .unst::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid rgba(255, 226, 170, .3); border-top-color: var(--awa-gold); animation: spin .7s linear infinite; }
.unmsg { color: #bfa985; font-weight: 700; font-size: 12.5px; min-height: 16px; }
.unf.ok + .unmsg { color: #7dffb0; } .unf.bad + .unmsg { color: #ff9a9a; }
.who { display: flex; align-items: center; gap: 12px; } .who img { width: 54px; height: 54px; border-radius: 16px; border: 2px solid var(--awa-gold); object-fit: cover; }
.who small { display: block; color: #d9c3a0; font-weight: 700; font-size: 12px; } .who b { font: 800 20px/1.1 var(--disp); color: #fff3dc; }
#scr-gender .stack { max-width: 460px; }
.gcards { gap: 10px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 12px; border-radius: 18px !important; background: rgba(255, 243, 220, .07) !important; border: 1.5px solid rgba(255, 226, 170, .25) !important; color: #fff3dc; transition: transform .12s, background .15s; }
.gcard .gav { width: 78px; height: 78px; border-radius: 22px; object-fit: cover; border: 2px solid rgba(255, 226, 170, .4); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.gcard b { font: 800 17px/1.1 var(--disp); }
.gcard small { color: #cdb894 !important; text-align: center; }
.gcard.on { background: linear-gradient(180deg, #ffd45e, #e8962a) !important; border-color: rgba(255, 240, 190, .8) !important; color: #2a1206; box-shadow: 0 10px 26px rgba(232, 150, 42, .4) !important; transform: translateY(-3px); }
.gcard.on small { color: #5a3a08 !important; } .gcard.on .gav { border-color: #fff3dc; }
.gnote { text-align: center; margin: 0 !important; font-size: 12.5px !important; }
#scr-house .stack .steps { margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .awl-w b, .awl-st { animation: awlIn .01s both; } .awl-st { display: none; } }
@media (max-height: 640px) { .art-top { top: calc(var(--st, 0px) + calc(var(--HV, 1vh) * 3)); } .awl-w b { font-size: clamp(44px, 15vw, 66px); } }

/* =====================================================================
   v50 social: Chats (iMessage look), Posts, Bank, visit button
   ===================================================================== */
.pi-chat { background: linear-gradient(180deg, #5ee27a, #1fae45); } .pi-feed { background: linear-gradient(180deg, #ffb25c, #e8691c); }
.pi { position: relative; } .pic.dot::after, #b-phone.dot::after { content: ""; position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; }
#b-phone { position: relative; }
.pic { position: relative; }
.pa.nohdr > .pa-h { display: none; } .pa.nohdr > .pa-b { padding: 0 0 20px; gap: 0; overflow: hidden; background: #fff; min-height: 0; } .pa.nohdr > .pa-b > * { max-width: 100%; box-sizing: border-box; }
.imsg { --ib: #0a84ff; --ig: #e9e9eb; --it: #111; --is: #8a8a8e; --il: rgba(60, 60, 67, .14); }
.imsg .nav { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: #d9d9de; border: 0; }
.imsg .nav.sm { width: 34px; height: 34px; } .imsg .nav.big { width: 92px; height: 92px; }
.imsg .gav { display: grid; place-items: center; background: linear-gradient(180deg, #a5a9b4, #7d818e); color: #fff; } .imsg .gav svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.imsg svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.im-top { display: grid; grid-template-columns: 74px 1fr 74px; align-items: center; padding: 8px 10px 6px; min-height: 48px; flex: none; background: rgba(249, 249, 249, .96); border-bottom: .5px solid var(--il); }
.im-top .im-ttl { text-align: center; font: 700 17px/1 var(--body, system-ui); color: var(--it); }
.im-lb, .im-rb { background: none; border: 0; color: var(--ib); display: flex; align-items: center; gap: 2px; font: 500 16px/1 system-ui; height: 36px; padding: 0 4px; } .im-rb { justify-content: flex-end; } .im-lb svg { width: 22px; height: 22px; } .im-rb svg { width: 22px; height: 22px; }
.im-top.conv { grid-template-columns: 90px 1fr 40px; padding-bottom: 4px; }
.im-who { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--it); min-width: 0; } .im-who b { font: 700 13px/1.1 system-ui; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .im-who small { color: var(--is); font-size: 11px; font-weight: 600; }
.us-box { display: flex; align-items: center; gap: 8px; margin: 8px 12px; padding: 0 10px; height: 38px; border-radius: 10px; background: rgba(118, 118, 128, .12); color: var(--is); flex: none; } .us-box svg { width: 18px; height: 18px; }
.us-box input { flex: 1 1 0; width: 0; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; font: 500 16px/1 system-ui; color: var(--it); outline: none; user-select: text; -webkit-user-select: text; }
.im-list, .us-out { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; } .us-out { flex: none; max-height: calc(var(--HV, 1vh) * 52); }
.im-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px 9px 6px; background: #fff; border: 0; text-align: left; position: relative; color: var(--it); }
.im-row::after { content: ""; position: absolute; left: 76px; right: 0; bottom: 0; height: .5px; background: var(--il); }
.im-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-left: 4px; } .im-row.un .im-dot { background: var(--ib); }
.im-rt { flex: 1; min-width: 0; } .im-r1 { display: flex; justify-content: space-between; gap: 8px; } .im-r1 b { font: 700 16px/1.2 system-ui; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .im-r1 small { color: var(--is); font-size: 13px; flex: none; }
.im-r2 { color: var(--is); font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .im-row.un .im-r2 { color: var(--it); font-weight: 600; }
.im-empty { text-align: center; padding: 38px 24px; color: var(--is); display: flex; flex-direction: column; gap: 6px; } .im-empty b { color: var(--it); font-size: 17px; } .im-empty small { font-size: 13.5px; line-height: 1.4; }
.us-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; background: #fff; border: 0; text-align: left; color: var(--it); border-bottom: .5px solid var(--il); } .us-row b { font: 700 15px/1.2 system-ui; display: block; } .us-row small { color: var(--is); font-size: 12.5px; } .us-mk { margin-left: auto; color: var(--ib); width: 24px; height: 24px; } .us-mk svg { width: 24px; height: 24px; stroke-width: 3; }
.us-empty { padding: 18px 20px; color: var(--is); font-size: 13.5px; text-align: center; line-height: 1.4; }
.im-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; flex: none; } .im-chips:empty { display: none; } .im-chip { border: 0; background: rgba(10, 132, 255, .14); color: var(--ib); font: 700 13px/1 system-ui; padding: 7px 10px; border-radius: 999px; }
.imsg input[type=text]:not(.us-box input) { }
.im-start { padding: 10px 12px calc(14px + var(--sb, 0px)); flex: none; background: #fff; } .imsg > .pa-b > input[placeholder="Group name"], .pa-b > input[placeholder="Group name"] { margin: 8px 12px; height: 38px; border-radius: 10px; border: 0; background: rgba(118, 118, 128, .12); padding: 0 12px; font: 500 16px system-ui; color: #111; }
.im-msgs { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; background: #fff; }
.im-ts { text-align: center; color: var(--is); font: 600 11.5px/1 system-ui; margin: 10px 0 4px; } .im-sys { text-align: center; color: var(--is); font: 600 12px/1.3 system-ui; margin: 6px 14px; } .im-from { color: var(--is); font: 600 11.5px/1 system-ui; margin: 6px 0 1px 12px; }
.im-w { display: flex; flex-direction: column; max-width: 78%; } .im-w.me { align-self: flex-end; align-items: flex-end; } .im-w.them { align-self: flex-start; align-items: flex-start; }
.im-b { padding: 8px 13px; border-radius: 18px; font: 400 16px/1.28 system-ui; word-break: break-word; position: relative; user-select: text; -webkit-user-select: text; white-space: pre-wrap; }
.im-b.me { background: var(--ib); color: #fff; border-bottom-right-radius: 5px; } .im-b.them { background: var(--ig); color: var(--it); border-bottom-left-radius: 5px; }
.im-b.same.me { border-top-right-radius: 7px; } .im-b.same.them { border-top-left-radius: 7px; } .im-b.del { background: transparent !important; color: var(--is) !important; border: 1px dashed rgba(60, 60, 67, .3); font-style: italic; }
.im-rxs { display: flex; gap: 3px; margin-top: -8px; z-index: 1; padding: 0 6px; } .im-rxs span { background: #fff; border: 1.5px solid var(--il); border-radius: 999px; padding: 2px 6px; font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); } .im-ed { color: var(--is); font-size: 11px; margin: 2px 6px 0; }
.im-bar { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(10px + var(--sb, 0px)); background: rgba(249, 249, 249, .96); border-top: .5px solid var(--il); }
.im-sm { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(118, 118, 128, .14); color: var(--is); display: grid; place-items: center; flex: none; } .im-sm svg { width: 22px; height: 22px; }
.im-in { flex: 1; display: flex; align-items: center; border: 1px solid rgba(60, 60, 67, .25); border-radius: 19px; background: #fff; padding: 0 4px 0 12px; min-height: 36px; }
.im-in input { flex: 1 1 0; width: 0; min-width: 0; height: auto; border: 0; outline: none; background: transparent; font: 400 16px/1.2 system-ui; color: var(--it); user-select: text; -webkit-user-select: text; padding: 7px 0; }
.im-send { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ib); color: #fff; display: grid; place-items: center; flex: none; } .im-send svg { width: 18px; height: 18px; stroke-width: 3; } .im-send:disabled { opacity: .45; }
.im-edit { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; background: #f2f2f7; color: var(--is); font: 600 13px system-ui; } .im-edit.bad { background: #ffe9e7; color: #c0261b; } .im-ex { background: none; border: 0; color: var(--is); } .im-ex svg { width: 18px; height: 18px; }
.im-emo { flex: none; background: #f2f2f7; border-top: .5px solid var(--il); } .em-tabs { display: flex; gap: 4px; padding: 6px 8px 0; overflow-x: auto; } .em-tabs button { border: 0; background: none; color: var(--is); font: 700 12.5px system-ui; padding: 6px 9px; border-radius: 8px; } .em-tabs button.on { background: #fff; color: var(--it); }
.em-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 8px 8px; max-height: 150px; overflow-y: auto; } .em-grid button { border: 0; background: none; font-size: 24px; line-height: 1.3; padding: 2px 0; }
.im-menu { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; justify-content: center; padding: 12px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.im-mc { width: 100%; max-width: 360px; background: #fff; border-radius: 18px; overflow: hidden; margin-bottom: calc(10px + var(--sb, 0px)); } .im-rx { display: flex; justify-content: space-around; padding: 10px 6px; background: #f2f2f7; } .im-rx button { border: 0; background: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 23px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.im-mr { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; width: 100%; padding: 14px 18px; border: 0; border-top: .5px solid var(--il); background: #fff; font: 500 16px system-ui; color: var(--it); } .im-mr.red { color: #ff3b30; } .im-mr svg { width: 20px; height: 20px; }
.im-visit { align-self: stretch; margin: 6px 4px; padding: 12px 14px; border-radius: 14px; background: #f2f2f7; color: var(--it); display: flex; flex-direction: column; gap: 4px; } .im-visit small { color: var(--is); font-size: 13px; line-height: 1.35; } .im-visit.ok { background: #e4f8ea; } .im-visit.wait { background: #fff6dd; }
.im-visit .ynr { display: flex; gap: 8px; margin-top: 6px; } .im-visit .ynr button { flex: 1; padding: 10px; border-radius: 10px; border: 0; font: 700 14px system-ui; } .im-visit .ynr .yes { background: #34c759; color: #fff; } .im-visit .ynr .no { background: #e5e5ea; color: #111; }
.im-prof { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 16px 10px; color: var(--it); } .im-prof b { font: 700 20px system-ui; } .im-prof small { color: var(--is); font-size: 13px; }
.im-lst { margin: 10px 12px; background: #f2f2f7; border-radius: 12px; overflow: hidden; } .im-li { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; border-top: .5px solid var(--il); background: #f2f2f7; font: 500 16px system-ui; color: var(--ib); text-align: left; } .im-li:first-child { border-top: 0; } .im-li svg { width: 20px; height: 20px; } .im-li.red { color: #ff3b30; } .im-li.dis { opacity: .5; } .im-li.mem { color: #111; } .im-li.mem b { display: block; } .im-li.mem small { color: var(--is); } .im-li.solo { margin: 12px; width: calc(100% - 24px); border-radius: 12px; }
.imsg .pc-sec { margin: 8px 16px 0; }
/* posts */
.fd-comp { display: flex; gap: 10px; padding: 10px 12px; border-bottom: .5px solid var(--il); flex: none; background: #fff; } .fd-comp > div { flex: 1; min-width: 0; } .fd-comp textarea { width: 100%; border: 0; outline: none; resize: none; font: 400 16px/1.3 system-ui; color: var(--it); background: transparent; user-select: text; -webkit-user-select: text; }
.fd-cr { display: flex; align-items: center; gap: 8px; } .fd-cr small { color: var(--is); font-size: 12px; } .fd-cr .cbtn { margin-left: auto; padding: 8px 18px; min-height: 0; height: 34px; border-radius: 999px; font-size: 14px; } .fd-err { color: #d6291d !important; font-weight: 700; flex: 1; }
.imsg.feed .pseg { margin: 8px 12px; flex: none; } .fd-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.fd-c { padding: 11px 14px 6px; border-bottom: .5px solid var(--il); color: var(--it); } .fd-h { display: flex; align-items: center; gap: 10px; } .fd-av { border: 0; background: none; padding: 0; flex: none; } .fd-id { flex: 1; min-width: 0; } .fd-id b { font: 700 15px/1.2 system-ui; display: block; } .fd-id small { color: var(--is); font-size: 12.5px; }
.fd-more { background: none; border: 0; color: var(--is); width: 32px; height: 32px; } .fd-more svg { width: 18px; height: 18px; }
.fd-t { font: 400 16px/1.38 system-ui; padding: 6px 0 4px; word-break: break-word; white-space: pre-wrap; } .fd-men { color: var(--ib); font-weight: 700; } .fd-rs { margin: 6px 0 2px; padding: 8px 12px; border: 1px solid var(--il); border-radius: 12px; background: #fafafa; } .fd-rs small { color: var(--is); font-weight: 700; font-size: 12px; }
.fd-a { display: flex; gap: 6px; padding: 2px 0 4px; } .fd-ab { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--is); font: 700 13px system-ui; padding: 6px 12px 6px 2px; } .fd-ab svg { width: 21px; height: 21px; } .fd-ab.on { color: #f91880; } .fd-ab.on svg { fill: #f91880; }
.fd-cnt { display: flex; gap: 18px; margin-top: 4px; font-size: 14px; color: var(--is); } .fd-cnt b { color: var(--it); } .im-prof .ynr.pf { display: flex; gap: 8px; margin-top: 8px; } .im-prof .ynr.pf button { padding: 9px 22px; border-radius: 999px; border: 0; font: 700 14px system-ui; } .im-prof .ynr.pf .yes { background: var(--ib); color: #fff; } .im-prof .ynr.pf .no { background: #e5e5ea; color: #111; } .pf-acct { margin-top: 6px; }
.fd-cin { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: .5px solid var(--il); flex: none; } .fd-cin input { flex: 1; height: 36px; border-radius: 18px; border: 1px solid rgba(60, 60, 67, .25); padding: 0 12px; font: 400 16px system-ui; outline: none; color: #111; user-select: text; -webkit-user-select: text; } .imsg > .pa-b > .fd-err, .pa-b > .fd-err { padding: 0 14px; flex: none; }
.fd-cms { flex: 1; overflow-y: auto; } .fd-cm { display: flex; gap: 10px; padding: 10px 14px; border-bottom: .5px solid var(--il); } .fd-cm b { font: 700 14px system-ui; } .fd-cm small { color: var(--is); }
.nt-gate, .nt-ro { margin: 12px; } .nt-ro { background: #fff3d6; color: #6b4a00; border-radius: 10px; padding: 8px 12px; font: 600 12.5px/1.35 system-ui; flex: none; }
/* bank */
.bk-acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); } .bk-acct small, .bk-lim small, .wc-mini small { display: block; opacity: .7; font-size: 12px; } .bk-acct b { font: 800 19px system-ui; }
.bk-copy { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px; background: linear-gradient(180deg, #ffd45e, #e8962a); color: #2a1206; font: 800 13px system-ui; } .bk-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.bk-lim { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; } .bk-lim > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); } .bk-lim b { font: 800 15px system-ui; }
.wc-mini { padding: 4px 2px 8px; } .wc-mini b { font: 800 24px system-ui; }
.bk-form { display: flex; flex-direction: column; gap: 8px; } .bk-form label { font: 700 12px system-ui; opacity: .75; margin-top: 4px; }
.bk-form input { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: inherit; padding: 0 12px; font: 700 17px system-ui; outline: none; user-select: text; -webkit-user-select: text; } .bk-form input:focus { border-color: #ffd45e; }
.bk-form .unf { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); } .bk-form .unf input { border: 0; height: 44px; padding-left: 2px; background: transparent; } .bk-form .unf .at { color: #ffd45e; }
.unf.lt .unst { width: 28px; } .bk-paste { border: 0; background: rgba(255, 212, 94, .2); color: #ffd45e; font: 800 12px system-ui; padding: 7px 10px; border-radius: 8px; margin-right: 6px; }
.bk-amt { display: flex; align-items: center; gap: 6px; } .bk-amt span { font: 800 22px system-ui; opacity: .8; } .bk-chips { display: flex; gap: 6px; flex-wrap: wrap; } .bk-chips button { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: inherit; border-radius: 999px; padding: 7px 12px; font: 800 13px system-ui; }
.bk-res { min-height: 18px; font: 700 13px system-ui; } .bk-res.bad { color: #ff8f8f; } .bk-res.ok { color: #6dffa6; }
.bk-hist { display: flex; flex-direction: column; gap: 6px; } .bk-h { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .06); } .bk-h small { display: block; opacity: .65; font-size: 12px; } .bk-h .amt { font: 800 15px system-ui; } .bk-h.in .amt { color: #6dffa6; } .bk-h.out .amt { color: #ff9a9a; }
/* the green visit button */
#visitbtn { position: absolute; left: 50%; bottom: calc(var(--sb, 0px) + 178px); white-space: nowrap; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 2px solid #b7ffd0; background: linear-gradient(180deg, #3ddc7e, #12a84f); color: #fff; font: 800 15px system-ui; box-shadow: 0 6px 22px rgba(18, 168, 79, .55); animation: vbPulse 1.4s ease-in-out infinite; }
#visitbtn svg { width: 20px; height: 20px; } #visitbtn[hidden] { display: none; } @keyframes vbPulse { 50% { transform: translateX(-50%) scale(1.05); } }
#yn.unm .ynb { text-align: left; } #yn.unm .ynb p { color: #cdb894; font-size: 13.5px; } #yn.unm .unf { margin: 8px 0 2px; } #yn.unm .ynr { margin-top: 10px; }
/* bank on the light phone page */
.bk-acct, .bk-h, .bk-lim > div { background: #fff; border: 1px solid rgba(0, 0, 0, .08); color: #14151c; } .bk-acct { margin: 6px 0; } .wc-mini { color: #14151c; }
.bk-form { color: #14151c; } .bk-form label { opacity: .7; }
.bk-form input { border: 1.5px solid rgba(0, 0, 0, .16); background: #f4f6fb; color: #14151c; } .bk-form input:focus { border-color: #e8962a; }
.bk-form .unf { background: #f4f6fb; border-color: rgba(0, 0, 0, .16); } .bk-form .unf input { background: transparent; border: 0; color: #14151c; } .bk-form .unf .at { color: #c07a12; }
.bk-form .unf.ok { border-color: #12a84f; box-shadow: 0 0 0 3px rgba(18, 168, 79, .18); background: #effaf3; } .bk-form .unf.ok input, .bk-form .unf.ok .at { color: #0c8a3e; } .bk-form .unf.bad { border-color: #d6291d; background: #fff1ef; } .bk-form .unf.bad input { color: #b3211a; }
.bk-form .unmsg { color: #6b6f7b; } .bk-form .unf.ok + .unmsg { color: #0c8a3e; } .bk-form .unf.bad + .unmsg { color: #d6291d; }
.bk-paste { background: rgba(232, 150, 42, .16); color: #a35f00; } .bk-chips button { border: 1px solid rgba(0, 0, 0, .16); background: #f4f6fb; color: #14151c; }
.bk-res.bad { color: #d6291d; } .bk-res.ok { color: #0c8a3e; } .bk-h.in .amt { color: #0c8a3e; } .bk-h.out .amt { color: #d6291d; }
.bk-form .cbtn.gold { color: #2a1206; }

/* ---------- house chat ---------- */
#b-hchat { position: absolute; left: max(10px, var(--sl)); top: calc(var(--st) + 296px); z-index: 5; background: linear-gradient(160deg, #4fd8c0, #1b8f86); border-color: rgba(255,255,255,.35); box-shadow: 0 6px 16px rgba(27,143,134,.45); }
#b-hchat .ic { stroke: #fff; } #b-hchat[hidden] { display: none; } #b-hchat.on { filter: brightness(1.12); }
#b-hchat .bdg { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e8332a; color: #fff; font: 800 11px/19px system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
#b-hchat .bdg[hidden] { display: none; }
#hchat { position: absolute; z-index: 41; left: max(10px, var(--sl)); top: calc(var(--st) + 116px); width: min(318px, 84vw); display: flex; flex-direction: column; border-radius: 20px; background: rgba(14, 18, 30, .92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 40px rgba(0,0,0,.5); color: #f4f6ff; transition: translate .16s ease-out; touch-action: manipulation; user-select: text; -webkit-user-select: text; }
#hchat[hidden] { display: none; }
#hchat .hc-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
#hchat .hc-h b { display: block; font-size: 15px; } #hchat .hc-h small { display: block; opacity: .62; font-size: 12px; margin-top: 1px; }
#hchat .hc-x { width: 32px; height: 32px; border-radius: 16px; border: 0; background: rgba(255,255,255,.1); display: grid; place-items: center; } #hchat .hc-x svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; }
#hchat .hc-list { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; height: min(26vh, 220px); overflow-y: auto; overscroll-behavior: contain; }
#hchat .hc-m { max-width: 84%; padding: 7px 11px; border-radius: 16px; font-size: 14px; line-height: 1.3; display: flex; flex-direction: column; word-break: break-word; }
#hchat .hc-m em { font-style: normal; font-size: 11px; font-weight: 800; opacity: .62; margin-bottom: 1px; }
#hchat .hc-m.them { align-self: flex-start; background: rgba(255,255,255,.12); border-bottom-left-radius: 5px; }
#hchat .hc-m.me { align-self: flex-end; background: linear-gradient(160deg, #3fa0ff, #1e5fe6); border-bottom-right-radius: 5px; }
#hchat .hc-err { min-height: 0; padding: 0 14px; color: #ff9a8f; font-weight: 700; }
#hchat .hc-bar { display: flex; gap: 8px; padding: 8px 10px 10px; }
#hchat .hc-bar input { flex: 1; min-width: 0; height: 40px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; padding: 0 14px; font: inherit; font-size: 15px; outline: none; }
#hchat .hc-bar input::placeholder { color: rgba(255,255,255,.45); }
#hchat .hc-send { width: 40px; height: 40px; flex: none; border-radius: 20px; border: 0; background: linear-gradient(160deg, #4b97ff, #1e5fe6); display: grid; place-items: center; } #hchat .hc-send svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-body { transition: translate .16s ease-out; }
