/* Needs widget, bottom nav, place cards, toasts, the Me sheet and the phone (src/ui/life.js). */
body:not(.mode-play) .life-ui { display: none !important; }
.life-ui { font-family: var(--ui); color: var(--ink); }
#needsW { position: fixed; left: 14px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 8px; cursor: pointer; }
#needsW .av { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); display: grid; place-items: center; font-size: 30px; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
#needsW .bars { background: #fff; border-radius: 999px; padding: 9px 16px; display: grid; grid-template-columns: repeat(3, 62px); gap: 6px 12px; box-shadow: 0 3px 12px rgba(0,0,0,.15); }
#needsW .nb { display: flex; align-items: center; gap: 5px; font-size: 12px; }
#needsW .nb i { flex: 1; height: 6px; border-radius: 4px; background: #e8ecea; overflow: hidden; }
#needsW .nb i b { display: block; height: 100%; border-radius: 4px; transition: width .4s; }
#lifeNav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: flex; gap: 4px; background: #fff; border-radius: 22px; padding: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
#lifeNav button { border: 0; background: transparent; border-radius: 16px; padding: 7px 18px; font: 700 12px var(--ui); color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
#lifeNav button b { font-size: 20px; line-height: 1; }
#lifeNav button:hover, #lifeNav button.on { background: var(--ink); color: #fff; }
#lifeNav kbd { font: 600 9px var(--ui); opacity: .55; }
.touch #lifeNav kbd { display: none; }
#locCard { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 86px; z-index: 3; width: min(640px, calc(100vw - 24px)); background: #fff; border-radius: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 12px 14px; display: none; }
#locCard.show { display: block; animation: rise .25s ease-out; }
#locCard .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
#locCard .hd .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 22px; }
#locCard .hd strong { font: 800 15px var(--ui); display: block; } #locCard .hd small { font: 500 12px var(--ui); color: var(--muted); }
#locCard .acts { display: flex; gap: 8px; flex-wrap: wrap; }
#locCard .acts button { border: 0; background: var(--soft); border-radius: 999px; padding: 9px 14px; font: 700 13px var(--ui); color: var(--ink); cursor: pointer; display: flex; gap: 6px; align-items: center; }
#locCard .acts button:hover { background: #e3ebe6; }
#locCard .acts button em { font-style: normal; font-weight: 600; color: var(--muted); }
#locCard .acts button kbd { font: 700 10px var(--ui); background: #fff; border-radius: 5px; padding: 1px 5px; color: var(--muted); }
#locCard .prog { display: none; height: 8px; border-radius: 6px; background: var(--soft); overflow: hidden; margin-top: 10px; }
#locCard .prog b { display: block; height: 100%; width: 0; background: var(--brand); }
#locCard.busy .prog { display: block; } #locCard.busy .acts { opacity: .45; pointer-events: none; }
#toasts { position: fixed; top: 110px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
#toasts div { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font: 700 13px var(--ui); box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: rise .25s ease-out; }
#toasts div.bad { background: #c0392b; }
#sleepFade { position: fixed; inset: 0; z-index: 7; background: #050912; color: #fff; display: none; place-items: center; font: 800 26px var(--ui); }
#sleepFade.on { display: grid; animation: fadein .6s; }
@keyframes fadein { from { opacity: 0; } }
.sheet-back { position: fixed; inset: 0; z-index: 8; background: rgba(8,20,14,.45); display: none; align-items: center; justify-content: center; }
.sheet-back.open { display: flex; }
.sheet { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: #fff; border-radius: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; animation: rise .25s ease-out; }
.sheet .hd { display: flex; align-items: center; gap: 12px; padding: 18px 20px 10px; }
.sheet .hd .av { width: 50px; height: 50px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 28px; }
.sheet .hd strong { font: 800 18px var(--ui); display: block; } .sheet .hd small { font: 600 13px var(--ui); color: var(--muted); }
.sheet .hd .x { margin-left: auto; border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; font: 700 16px var(--ui); cursor: pointer; }
.tabs { display: flex; gap: 6px; padding: 0 20px 10px; }
.tabs button { border: 0; background: var(--soft); border-radius: 999px; padding: 8px 16px; font: 700 13px var(--ui); color: var(--ink); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
.sheet .bd { overflow-y: auto; padding: 4px 20px 20px; }
.needrow { display: grid; grid-template-columns: 36px 1fr 46px; align-items: center; gap: 10px; margin: 10px 0; }
.needrow .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 17px; }
.needrow .nm { font: 700 14px var(--ui); } .needrow .pc { font: 700 13px var(--ui); color: var(--muted); text-align: right; }
.needrow .tr { grid-column: 2; height: 9px; border-radius: 6px; background: #edf1ef; overflow: hidden; margin-top: 4px; }
.needrow .tr b { display: block; height: 100%; border-radius: 6px; }
.sect { font: 700 12px var(--ui); letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 18px 0 8px; }
.feel { display: flex; align-items: center; gap: 12px; background: #f4f6f5; border-radius: 16px; padding: 11px 14px; margin-bottom: 8px; }
.feel b { font-size: 24px; } .feel div { flex: 1; } .feel strong { font: 800 14px var(--ui); display: block; } .feel span { font: 500 12px var(--ui); color: var(--muted); }
.feel em { font: 800 14px var(--ui); font-style: normal; color: var(--brand); } .feel em.neg { color: #c0392b; }
.pcard { background: linear-gradient(135deg, #ffe9a0, var(--gold)); border-radius: 20px; padding: 14px 16px; margin: 6px 0 4px; }
.pcard strong { font: 800 17px var(--ui); } .pcard span { display: block; font: 500 13px var(--ui); margin-top: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; } .pills span { background: var(--soft); border-radius: 999px; padding: 8px 14px; font: 700 13px var(--ui); }
#phoneBack { position: fixed; inset: 0; z-index: 8; background: rgba(8,20,14,.35); display: none; align-items: center; justify-content: center; }
#phoneBack.open { display: flex; }
#phoneClose { position: absolute; top: 14px; right: 18px; border: 0; background: #fff; border-radius: 999px; padding: 9px 16px; font: 700 14px var(--ui); cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
#phone { width: 372px; height: min(760px, calc(100vh - 30px)); border-radius: 48px; background: #0e0f12; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: rise .3s ease-out; }
#phone .scr { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #f5f7f6; display: flex; flex-direction: column; }
#phone .sb { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font: 700 13px var(--ui); position: relative; z-index: 2; }
#phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 16px; background: #0e0f12; z-index: 3; }
#phone .home { position: absolute; inset: 0; color: #fff; background: #0f2f6b url(../assets/ui/wallpaper.jpg) center / cover; display: flex; flex-direction: column; }
#phone .home .app { text-shadow: 0 1px 4px rgba(0,0,0,.6); }
#phone .home .sb { color: #fff; }
#phone .clock { padding: 28px 26px 18px; } #phone .clock b { font: 800 64px/1 var(--ui); display: block; letter-spacing: -2px; }
#phone .clock span { font: 600 14px var(--ui); opacity: .9; }
#phone .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; padding: 6px 18px; }
#phone .app { border: 0; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 11.5px var(--ui); cursor: pointer; position: relative; }
#phone .app img { width: 60px; height: 60px; border-radius: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.25); object-fit: cover; }
#phone .app sup { position: absolute; top: -6px; right: 2px; background: #e8433b; color: #fff; border-radius: 999px; font: 800 9px var(--ui); padding: 2px 6px; }
#phone .skyline { margin-top: auto; height: 90px; opacity: .9; }
#phone .view { position: absolute; inset: 0; background: #f5f7f6; display: flex; flex-direction: column; }
#phone .vh { display: flex; align-items: center; gap: 8px; padding: 4px 16px 10px; }
#phone .vh button { border: 0; background: none; font: 800 26px var(--ui); color: var(--brand); cursor: pointer; padding: 0 6px; }
#phone .vh strong { font: 800 19px var(--ui); }
#phone .vb { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
#phone .tile { background: #fff; border-radius: 18px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; font-family: var(--ui); color: var(--ink); }
#phone button.tile { cursor: pointer; }
#phone .tile b { font-size: 26px; } #phone .tile div { flex: 1; } #phone .tile strong { display: block; font: 800 14.5px var(--ui); }
#phone .tile span { font: 500 12px var(--ui); color: var(--muted); } #phone .tile em { font: 800 13px var(--ui); font-style: normal; }
#phone .tile.locked { opacity: .5; }
#phone .bigbal { background: linear-gradient(135deg, #ffd84d, #f5a800); border-radius: 22px; padding: 20px; margin-bottom: 14px; }
#phone .bigbal span { font: 700 13px var(--ui); } #phone .bigbal b { display: block; font: 800 32px var(--ui); margin-top: 4px; }
#phone .msgs { flex: 1; overflow-y: auto; padding: 4px 14px; display: flex; flex-direction: column; gap: 6px; }
#phone .msg { max-width: 76%; padding: 9px 13px; border-radius: 18px; font: 500 14px var(--ui); background: #fff; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
#phone .msg.me { align-self: flex-end; background: #2f6fd0; color: #fff; }
#phone .quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 4px; }
#phone .quick button { border: 0; background: #fff; border-radius: 999px; padding: 8px 12px; font: 700 12px var(--ui); white-space: nowrap; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#phone form { display: flex; gap: 8px; padding: 8px 12px 14px; }
#phone form input { flex: 1; border: 2px solid #cfe0f7; border-radius: 999px; padding: 10px 14px; font: 500 14px var(--ui); outline: none; }
#phone form button { border: 0; background: var(--brand); color: #fff; border-radius: 50%; width: 42px; font-size: 18px; cursor: pointer; }
#phone .primary { border: 0; width: 100%; background: var(--brand); color: #fff; border-radius: 999px; padding: 13px; font: 800 15px var(--ui); cursor: pointer; margin: 4px 0 12px; }
#phone .primary:disabled { opacity: .5; }
@media (max-width: 760px), (max-height: 560px) { #phone { width: min(372px, 100vw); height: 100vh; border-radius: 0; padding: 0; } #phone .scr { border-radius: 0; } }

/* Chat app: sender name above other players' messages */
#phone .msg small { display: block; font-size: 10px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }


/* ---------- dreams (ui/dreams-ui.js): Goals tab, Sabi app, chapter celebration ---------- */
.dreamhd { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #e8f0fd, #fff6d8); border-radius: 18px; padding: 12px 14px; }
.dreamhd b { font-size: 30px; } .dreamhd div { flex: 1; } .dreamhd strong { font: 800 15px var(--ui); display: block; } .dreamhd span { font: 500 12px var(--ui); color: var(--muted); }
.mini { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 7px 12px; font: 800 12px var(--ui); cursor: pointer; flex: none; }
.steps { display: flex; align-items: center; margin: 14px 4px 0; }
.steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #edf1ef; color: var(--muted); font: 800 13px var(--ui); flex: none; }
.steps span.ok { background: var(--brand); color: #fff; } .steps span.cur { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 4px rgba(240,180,0,.25); }
.steps i { flex: 1; height: 3px; background: #edf1ef; margin: 0 4px; border-radius: 2px; }
.goal { display: flex; align-items: center; gap: 12px; background: #f4f6f5; border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.goal > b { font-size: 22px; width: 28px; text-align: center; } .goal > div { flex: 1; min-width: 0; }
.goal strong { font: 700 13.5px var(--ui); display: block; } .goal span { font: 600 11.5px var(--ui); color: var(--muted); }
.goal i { display: block; height: 7px; border-radius: 5px; background: #e2e8e5; overflow: hidden; margin: 5px 0 3px; }
.goal i u { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.goal.done { opacity: .7; } .goal.done i u { background: #2fae66; }
.feel.pick { width: 100%; border: 2px solid transparent; text-align: left; cursor: pointer; font-family: var(--ui); color: var(--ink); }
.feel.pick.on { border-color: var(--brand); }
#phone .app .emo { width: 60px; height: 60px; border-radius: 17px; box-shadow: 0 4px 12px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 32px; font-style: normal;
  background: linear-gradient(135deg, #1f6fe5, #f5b301); text-shadow: none; }
#phone .bigbal.sabi { background: linear-gradient(135deg, #1554b8, #1f6fe5); color: #fff; }
#phone .lesson p { font: 500 14px/1.5 var(--ui); color: var(--ink); margin: 0 0 12px; }
#phone .lesson p.q { font: 800 16px/1.4 var(--ui); margin: 6px 0 14px; }
#phone .lesson p.why { background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; }
#phone .lesson .src { display: block; font: 500 11px var(--ui); color: var(--muted); margin: 0 0 12px; }
#phone .tile.ans b { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 15px; flex: none; }
#phone .tile.ans.right { background: #dff5e7; } #phone .tile.ans.wrong { background: #fbe1df; }
#phone .tile.ans:disabled { opacity: 1; cursor: default; }
#phone .primary.ghost { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
#dreamPop { position: fixed; inset: 0; z-index: 20; background: rgba(8,20,14,.55); display: none; align-items: center; justify-content: center; }
#dreamPop.open { display: flex; }
#dreamPop .card { width: min(380px, calc(100vw - 32px)); background: #fff; border-radius: 26px; padding: 24px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: rise .3s ease-out; font-family: var(--ui); }
#dreamPop .big { font-size: 56px; } #dreamPop small { font: 700 12px var(--ui); color: var(--muted); }
#dreamPop h3 { font: 800 22px var(--ui); margin: 6px 0 4px; } #dreamPop p { font: 500 13.5px/1.45 var(--ui); margin: 8px 0; }
#dreamPop .rw { background: #fff6d8; border-radius: 14px; padding: 10px; margin: 8px 0; font: 700 14px var(--ui); } #dreamPop .rw span { font: 500 12px var(--ui); color: var(--muted); }
#dreamPop button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 12px 26px; font: 800 15px var(--ui); cursor: pointer; margin-top: 10px; }
#dreamPop p b, #dreamPop .rw b { font: inherit; font-weight: 800; }

/* ---------- Fako Bank (ui/bank-ui.js) ---------- */
#phone .bigbal.bank { background: linear-gradient(135deg, #5b2bd6, #1f3fa8); color: #fff; }
#phone .bigbal.bank span:last-child { display: block; margin-top: 8px; opacity: .85; font-weight: 600; }
#phone .primary.topup { background: #22b573; box-shadow: 0 6px 16px rgba(34,181,115,.35); font-size: 16px; }
#phone .fako { border-radius: 22px; overflow: hidden; background: #fdf3e6; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
#phone .fk-hd { display: flex; gap: 12px; align-items: center; padding: 14px 14px 10px; background: linear-gradient(135deg, #b8640f, #3b2a6b); color: #fff; }
#phone .fk-hd b { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 22px; border: 2px solid #f5b301; }
#phone .fk-hd strong { display: block; font: 800 13px var(--ui); letter-spacing: 1.5px; } #phone .fk-hd span { font: 600 11.5px var(--ui); opacity: .9; }
#phone .fk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 12px; background: linear-gradient(135deg, #b8640f, #3b2a6b); }
#phone .fk-tiles div { background: rgba(255,255,255,.16); border-radius: 16px; padding: 10px 12px; color: #fff; }
#phone .fk-tiles span { display: block; font: 600 11px var(--ui); opacity: .85; } #phone .fk-tiles b { font: 800 18px var(--ui); }
#phone .fk-body { padding: 12px; }
#phone .btabs { display: flex; gap: 6px; background: #e9edf3; border-radius: 999px; padding: 4px; margin: 0 0 10px; }
#phone .btabs button { flex: 1; border: 0; background: none; border-radius: 999px; padding: 9px; font: 800 13px var(--ui); color: var(--muted); cursor: pointer; }
#phone .btabs button.on { background: var(--ink); color: #fff; }
#phone .bchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
#phone .bchips button { border: 1.5px solid #e2e6ee; background: #fff; border-radius: 999px; padding: 8px 12px; font: 800 12.5px var(--ui); color: var(--ink); cursor: pointer; }
#phone .amt { display: flex; gap: 8px; margin-bottom: 10px; }
#phone .amt input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 13px 16px; font: 700 15px var(--ui); box-shadow: inset 0 0 0 1.5px #d5dbe5; background: #fff; }
#phone .row2 { display: flex; gap: 8px; } #phone .row2 .primary { margin: 0; }
#phone .lvbar { display: block; height: 7px; border-radius: 5px; background: #e2e8e5; overflow: hidden; margin: 5px 0 3px; }
#phone .lvbar u { display: block; height: 100%; background: var(--gold); }
#phone .card, #phone .receipt { background: #fff; border-radius: 20px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-family: var(--ui); }
#phone .cd-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } #phone .cd-hd strong { font: 800 15px var(--ui); }
#phone .cd-hd em { font: 700 11.5px var(--ui); font-style: normal; background: var(--soft); border-radius: 999px; padding: 5px 10px; }
#phone .cd-row { display: flex; justify-content: space-between; gap: 8px; font: 600 13px var(--ui); padding: 6px 0; color: var(--muted); }
#phone .cd-row b { color: var(--ink); } #phone .cd-row b.ok { color: #22a35a; }
#phone .cd-row.tot { border-top: 1.5px dashed #e2e6ee; margin-top: 4px; padding-top: 10px; color: var(--ink); font-weight: 800; }
#phone .receipt { text-align: center; } #phone .receipt strong { display: block; font: 800 15px var(--ui); } #phone .receipt span { font: 500 12px var(--ui); color: var(--muted); }
#phone .packs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
#phone .pack { position: relative; border: 0; background: #fff; border-radius: 20px; padding: 16px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.08); font-family: var(--ui); color: var(--ink); }
#phone .pack:disabled { opacity: .5; }
#phone .pack b { font: 800 20px var(--ui); } #phone .pack span { font: 600 11px var(--ui); color: var(--muted); }
#phone .pack u { text-decoration: none; font: 800 11px var(--ui); color: #22a35a; min-height: 14px; }
#phone .pack em { font-style: normal; margin-top: 6px; background: #22b573; color: #fff; border-radius: 999px; padding: 6px 12px; font: 800 13px var(--ui); }
#phone .pack i { position: absolute; top: -8px; font: 800 10px var(--ui); font-style: normal; background: var(--gold); border-radius: 999px; padding: 3px 9px; }
#phone .lead.small { font-size: 11.5px; }
#phone .tile.wait { background: #fff6d8; }
#phone .tile.sel { box-shadow: inset 0 0 0 2px var(--brand); }
#phone .primary.danger { background: #2b2b2b; } #phone .tile.heat { background: #fff1ef; }
#phone .tile { box-sizing: border-box; }
#phone .tile > div { min-width: 0; } #phone .tile span { overflow-wrap: anywhere; }

/* ---------- UB Courses (ui/courses-ui.js) ---------- */
#phone .crs-hero { background: linear-gradient(135deg, #1f3fa8, #1f6fe5); color: #fff; border-radius: 22px; padding: 16px; margin-bottom: 6px; font-family: var(--ui); }
#phone .crs-hero .tag { background: #fbe38a; color: var(--ink); border-radius: 999px; padding: 4px 10px; font: 800 12px var(--ui); margin-right: 8px; }
#phone .crs-hero > span:not(.tag) { font: 700 12px var(--ui); opacity: .85; }
#phone .crs-hero h3 { font: 800 21px/1.2 var(--ui); margin: 10px 0 6px; } #phone .crs-hero p { font: 500 13px/1.45 var(--ui); margin: 0 0 10px; opacity: .92; }
#phone .crs-hero em { font-style: normal; display: inline-block; background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font: 700 12px var(--ui); margin-right: 6px; }
#phone .crs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#phone .crs { border: 0; background: #fff; border-radius: 20px; padding: 12px; text-align: left; cursor: pointer; font-family: var(--ui); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 2px; }
#phone .crs-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#phone .crs-top b { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 22px; }
#phone .crs-top i { font: 800 11px var(--ui); font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(#fff 58%, transparent 60%), conic-gradient(var(--brand) calc(var(--k) * 1turn), #e6eaf0 0); }
#phone .crs span { font: 600 11px var(--ui); color: var(--muted); } #phone .crs strong { font: 800 15px var(--ui); } #phone .crs small { font: 600 10.5px var(--ui); color: var(--muted); }
#phone .crs-bar { display: flex; gap: 5px; margin: 6px 0 12px; } #phone .crs-bar i { flex: 1; height: 6px; border-radius: 4px; background: #e2e6ee; } #phone .crs-bar i.on { background: #5b3bd6; }
#phone .lesson .kick { font: 800 11px var(--ui); letter-spacing: 1px; color: #5b3bd6; } #phone .lesson .l-title { font: 800 20px/1.25 var(--ui); margin: 4px 0 10px; }
#phone .primary.go { background: #22b573; }

/* ---------- La Cave (ui/club-ui.js) ---------- */
#phone .bigbal.club { background: linear-gradient(135deg, #2a0f3d, #8a1f6b); color: #fff; }
#phone .btabs.sm button { padding: 7px; font-size: 12px; }
#phone .tile.vip em { background: #2a0f3d; color: #fbe38a; border-radius: 999px; padding: 6px 11px; }
#phone .tile.vip:disabled { opacity: .45; }
#phone .tile.spender b { width: 32px; text-align: center; font-size: 20px; } #phone .tile.spender em { color: #1f8a4c; font-size: 15px; }
#phone .tile.king { background: #fff7dc; box-shadow: inset 0 0 0 2px #f0c94d; }
#clubFx { position: fixed; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; display: none; }
#clubFx.on { display: block; }
#clubFx .fx-msg { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: min(92vw, 720px); text-align: center; animation: fxIn .5s ease-out; }
#clubFx .fx-msg b { display: block; font: 900 clamp(30px, 7vw, 64px)/1.05 var(--ui); color: #ffd84d; text-shadow: 0 3px 0 #9a6b00, 0 8px 24px rgba(0,0,0,.6); letter-spacing: .5px; }
#clubFx .fx-msg span { display: inline-block; margin-top: 10px; background: rgba(10,10,20,.72); color: #ffe9a3; border-radius: 18px; padding: 8px 16px; font: 800 clamp(14px, 3.4vw, 20px)/1.3 var(--ui); }
#clubFx.hype .fx-msg { background: rgba(20,6,30,.85); border: 3px solid #ff2d8f; border-radius: 26px; padding: 16px 12px 18px; }
#clubFx.hype .fx-msg small { display: block; color: #ff6fb5; font: 900 13px var(--ui); letter-spacing: 3px; margin-bottom: 6px; }
#clubFx.hype .fx-msg b { color: #fff; text-shadow: 0 4px 18px rgba(255,45,143,.6); font-size: clamp(26px, 6vw, 52px); }
#clubFx.hype .fx-msg span { background: none; color: #fff; }
#clubFx i { position: absolute; top: -60px; font-style: normal; animation: fxFall linear forwards; will-change: transform; }
@keyframes fxFall { to { transform: translateY(115vh) rotate(260deg); } }
@keyframes fxIn { from { transform: translateX(-50%) scale(.6); opacity: 0; } }

/* ---------- music promotion (ui/promo-ui.js) ---------- */
#phone .pr-hero { background: linear-gradient(160deg, #3b1466, #7a1b4f 55%, #241016); color: #fff; border-radius: 24px; padding: 18px; margin-bottom: 8px; font-family: var(--ui); }
#phone .pr-hero small { color: #f5c542; font: 800 12px var(--ui); letter-spacing: 2px; } #phone .pr-hero h3 { font: 800 22px/1.2 var(--ui); margin: 8px 0 10px; }
#phone .pr-hero p { font: 500 13px/1.4 var(--ui); margin: 0 0 8px; opacity: .92; } #phone .pr-hero b { display: block; color: #f5c542; font: 900 30px var(--ui); margin-top: 6px; } #phone .pr-hero span { font: 600 12px var(--ui); opacity: .8; }
#phone .pr-choose { width: 100%; display: flex; gap: 12px; align-items: center; border: 2px dashed #c9d0dc; background: #fff; border-radius: 20px; padding: 14px; cursor: pointer; text-align: left; font-family: var(--ui); color: var(--ink); margin-bottom: 8px; box-sizing: border-box; }
#phone .pr-choose b { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 22px; } #phone .pr-choose strong { display: block; font: 800 15px var(--ui); } #phone .pr-choose span { font: 600 12px var(--ui); color: var(--muted); }
#phone .pr-up { display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 20px; padding: 12px; margin-bottom: 8px; }
#phone .pr-up input { border: 0; border-radius: 12px; padding: 11px 12px; font: 600 13.5px var(--ui); box-shadow: inset 0 0 0 1.5px #d5dbe5; } #phone .pr-up .primary { margin: 0; }
#phone .pr-free { float: right; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
#phone .pr-spread { display: flex; align-items: center; gap: 8px; background: #eef1f6; border-radius: 999px; padding: 6px 6px 6px 16px; margin-bottom: 10px; font: 700 14px var(--ui); }
#phone .pr-spread button { border: 0; width: 34px; height: 34px; border-radius: 50%; background: #fff; font: 800 16px var(--ui); cursor: pointer; } #phone .pr-spread b { min-width: 22px; text-align: center; }
#phone .pr-spread .go { margin-left: auto; width: auto; height: auto; border-radius: 999px; padding: 9px 14px; background: #6a2bd6; color: #fff; font-size: 13px; }
#phone .pr-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 11.5px var(--ui); color: var(--muted); margin-bottom: 8px; }
#phone .pr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; border: 1.5px solid #d5dbe5; }
#phone .pr-legend i.mine { background: #6a2bd6; border-color: #6a2bd6; } #phone .pr-legend i.taken { background: #eef1f6; } #phone .pr-legend i.close { background: #e6dcfb; border-color: #e6dcfb; }
#phone .pr-grid { background: #fff; border-radius: 20px; padding: 8px 10px; max-height: 300px; overflow-y: auto; margin-bottom: 10px; }
#phone .pr-hour { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f2f6; } #phone .pr-hour > b { width: 44px; flex: none; font: 700 12px var(--ui); color: var(--muted); padding-top: 8px; }
#phone .pr-hour > div { display: flex; flex-wrap: wrap; gap: 6px; }
#phone .pr-slot { border: 0; border-radius: 999px; padding: 7px 10px; font: 700 12px var(--ui); background: #eef1f6; color: var(--ink); cursor: pointer; }
#phone .pr-slot.sel { background: #22b573; color: #fff; } #phone .pr-slot.yours { background: #6a2bd6; color: #fff; }
#phone .pr-slot.taken { text-decoration: line-through; color: #a7afbd; background: #f6f7fa; } #phone .pr-slot.close { background: #e6dcfb; color: #8a7bb0; }
#phone .pr-agree { display: flex; gap: 10px; background: #fff; border-radius: 18px; padding: 12px; font: 600 12.5px/1.4 var(--ui); margin-bottom: 10px; }
#phone .pr-agree input { width: 20px; height: 20px; flex: none; }
#phone .tile.sel { box-shadow: inset 0 0 0 2px var(--brand); }
#nowPlaying { position: fixed; left: 50%; transform: translateX(-50%); top: 112px; z-index: 4; display: none; align-items: center; gap: 10px; background: rgba(20,10,30,.86); color: #fff; border-radius: 999px; padding: 6px 8px 6px 14px; max-width: min(92vw, 520px); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
#nowPlaying.show { display: flex; animation: rise .3s ease-out; }
#nowPlaying > b { font-size: 20px; } #nowPlaying div { min-width: 0; } #nowPlaying strong { display: block; font: 800 13px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #nowPlaying span { font: 600 11px var(--ui); opacity: .8; }
#nowPlaying a { background: #f5c542; color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 800 12px var(--ui); text-decoration: none; white-space: nowrap; }
#nowPlaying button { border: 0; background: rgba(255,255,255,.12); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.touch #nowPlaying { top: calc(var(--sat, 0px) + 96px); }
@media (orientation: portrait) { .touch #nowPlaying { top: calc(var(--sat, 0px) + 150px); } }

/* ---------- player sheet (ui/people-ui.js) ---------- */
.sheet.ppl .bd { padding-bottom: 18px; }
.sheet.ppl .primary, .sheet.pol .primary { width: 100%; border: 0; border-radius: 999px; padding: 14px; font: 800 16px var(--ui); color: #fff; background: #22b573; cursor: pointer; margin-bottom: 10px; }
.ppl-close { background: #fdf0f6; border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.ppl-close div { display: flex; justify-content: space-between; font: 700 13px var(--ui); } .ppl-close span { color: var(--muted); }
.ppl-close i { display: block; height: 8px; border-radius: 6px; background: #f3d6e4; overflow: hidden; margin-top: 6px; } .ppl-close u { display: block; height: 100%; background: #e84393; }
.ppl-note { background: var(--soft); border-radius: 16px; padding: 10px 14px; font: 500 13px/1.4 var(--ui); color: var(--muted); text-align: center; margin-bottom: 8px; } .ppl-note b { color: var(--ink); }
.ppl-btn { width: 100%; border: 1.5px solid #e2e6ee; background: #fff; border-radius: 999px; padding: 12px; font: 700 15px var(--ui); cursor: pointer; margin-bottom: 8px; color: var(--ink); }
.ppl-btn.bae { background: #e84393; border-color: #e84393; color: #fff; }
.ppl-btn.cop { background: #1b3a6b; border-color: #1b3a6b; color: #fff; }
.ppl-small { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.ppl-small button { border: 0; background: var(--soft); border-radius: 999px; padding: 8px 12px; font: 700 12.5px var(--ui); cursor: pointer; color: var(--ink); }
.ppl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ppl-grid button { display: flex; align-items: center; gap: 10px; border: 0; background: var(--soft); border-radius: 18px; padding: 12px; text-align: left; cursor: pointer; font-family: var(--ui); color: var(--ink); }
.ppl-grid b { font-size: 24px; } .ppl-grid strong { display: block; font: 800 14px var(--ui); } .ppl-grid span { font: 600 11px var(--ui); color: var(--muted); }
.ppl-cv { background: #f4f7fb; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; font: 600 13px/1.6 var(--ui); } .ppl-cv strong { display: block; font: 800 14px var(--ui); margin-bottom: 2px; }
#reqPop { position: fixed; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; background: rgba(8,20,14,.4); }
#reqPop.open { display: flex; }
#reqPop .card { background: #fff; border-radius: 24px; padding: 20px; width: min(340px, 86vw); text-align: center; font-family: var(--ui); animation: rise .25s ease-out; }
#reqPop .card > b { font-size: 44px; } #reqPop p { font: 700 15px/1.4 var(--ui); }
#reqPop .card div { display: flex; gap: 8px; } #reqPop button { flex: 1; border: 0; border-radius: 999px; padding: 12px; font: 800 14px var(--ui); cursor: pointer; background: var(--soft); }
#reqPop button[data-yes] { background: #e84393; color: #fff; }

/* ---------- voice rooms (ui/voice-room-ui.js) ---------- */
#vroom { position: fixed; left: 50%; transform: translateX(-50%); top: 152px; z-index: 4; display: none; align-items: center; gap: 10px; background: rgba(15,29,51,.9); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; max-width: min(94vw, 520px); box-shadow: 0 4px 16px rgba(0,0,0,.3); font-family: var(--ui); }
#vroom.show { display: flex; animation: rise .3s ease-out; }
#vroom > b { font-size: 18px; } #vroom div { min-width: 0; } #vroom strong { display: block; font: 800 13px var(--ui); white-space: nowrap; } #vroom span { font: 600 11px var(--ui); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
#vroom button { border: 0; border-radius: 999px; padding: 8px 12px; font: 800 12px var(--ui); cursor: pointer; background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
#vroom button[data-join] { background: #22b573; } #vroom button[data-mic].on { background: var(--brand); }
.touch #vroom { top: calc(var(--sat, 0px) + 132px); }
@media (orientation: portrait) { .touch #vroom { top: calc(var(--sat, 0px) + 190px); } }

/* ---------- police stops (ui/police-ui.js) ---------- */
.sheet.pol .hd .av { background: #1b3a6b; }
.pol-say { background: var(--soft); border-radius: 16px; padding: 12px 14px; font: 700 14px/1.4 var(--ui); margin: 4px 0 10px; }
.pol-say.res { background: #fff7d6; }
.pol-docs { display: grid; gap: 6px; margin-bottom: 10px; }
.pol-doc { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #eefaf1; font: 700 13px var(--ui); }
.pol-doc.no { background: #fdeceb; } .pol-doc b { font-size: 20px; } .pol-doc em { margin-left: auto; font-style: normal; white-space: nowrap; }
.pol-fine { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 600 12px var(--ui); color: var(--muted); margin: 6px 2px 10px; }
.pol-fine b { font: 800 18px var(--ui); color: #c0392b; white-space: nowrap; }
.pol-alt { display: flex; gap: 8px; margin-top: 8px; } .pol-alt button { flex: 1; border: 0; border-radius: 999px; padding: 12px 8px; background: var(--soft); font: 800 13px var(--ui); cursor: pointer; }
.pol-tile.no strong { color: #c0392b; }
.pol-mood { font: 700 12.5px var(--ui); color: var(--muted); text-align: center; margin: 2px 0 8px; }
.pol-bribe { display: flex; gap: 8px; margin-top: 4px; }
.pol-bribe button { flex: 1; border: 0; border-radius: 16px; padding: 10px 6px; background: #2b2b2b; color: #fff; font: 800 13px var(--ui); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pol-bribe button b { font: 800 15px var(--ui); } .pol-bribe button span { font: 600 11px var(--ui); opacity: .8; }
.pol-bribe button.hot { background: #8a5a00; } .pol-bribe button[data-nomore] { background: var(--soft); color: var(--ink); }
#reqPop .card div.bribe { margin-top: 8px; } #reqPop button[data-bribe] { background: #2b2b2b; color: #fff; font-size: 12.5px; }
#dispatch { position: fixed; left: 50%; transform: translateX(-50%); top: 196px; z-index: 5; display: none; align-items: center; gap: 10px; background: rgba(27,58,107,.95); color: #fff; border-radius: 18px; padding: 8px 8px 8px 14px; width: max-content; max-width: min(94vw, 520px); box-shadow: 0 4px 16px rgba(0,0,0,.3); font-family: var(--ui); }
#dispatch.show { display: flex; animation: rise .3s ease-out; }
#dispatch > b { font-size: 20px; } #dispatch div { min-width: 0; } #dispatch strong { display: block; font: 800 13px var(--ui); } #dispatch span { font: 600 11px var(--ui); opacity: .85; display: block; }
#dispatch button { border: 0; border-radius: 999px; padding: 8px 10px; font: 800 12px var(--ui); cursor: pointer; background: rgba(255,255,255,.16); color: #fff; white-space: nowrap; }

/* ---------- New in Buea mission pill (ui/newbie-ui.js) ---------- */
#newbie { position: fixed; left: 14px; bottom: 158px; /* above the voice button (#micBtn, bottom 96px) */ z-index: 3; display: none; align-items: center; gap: 10px; max-width: min(380px, 64vw); border: 0; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.96); border-radius: 18px; padding: 8px 12px 8px 10px; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-family: var(--ui); color: var(--ink); }
body.mode-play #newbie.show { display: flex; animation: rise .3s ease-out; }
body.has-spot:not(.touch) #newbie { bottom: 206px; } /* above the place card (#locCard) */
#newbie > b { font-size: 22px; } #newbie div { min-width: 0; }
#newbie small { display: block; font: 800 10.5px var(--ui); color: var(--brand); letter-spacing: .02em; }
#newbie strong { display: block; font: 800 13px/1.25 var(--ui); }
#newbie em { font: 800 12px var(--ui); font-style: normal; color: var(--brand); white-space: nowrap; }
.touch #newbie { bottom: auto; top: calc(var(--sat) + 106px); left: calc(var(--sal) + var(--edge)); padding: 6px 10px 6px 8px; }
.touch #newbie strong { font-size: 12px; }
body.clean #newbie, body.map-open #newbie, body.building #newbie, body.dressing #newbie, body.spot-open #newbie, body.driving #newbie { display: none !important; }
@media (orientation: portrait) { .touch #newbie { top: calc(var(--sat) + 192px); } .touch #dispatch { top: calc(var(--sat) + 240px); } }
.sheet.pol .primary.ghost-btn { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #d5dbe5; }
/* crisis notice on the phone home screen (ui/crisis-ui.js) */
#phone .crisis-line { margin: 6px 14px 4px; padding: 9px 12px; border-radius: 14px; background: rgba(15,29,51,.82); color: #fff; font: 600 11.5px/1.35 var(--ui); }
#meBody .goal span.story { display: block; margin-top: 3px; font-style: italic; opacity: .85; }

/* ---------- street mode (ui/street-ui.js) ---------- */
#streetHud { position: fixed; left: 50%; transform: translateX(-50%); top: 112px; z-index: 4; display: none; align-items: center; gap: 8px; font-family: var(--ui); pointer-events: none; }
#streetHud.show { display: flex; }
#streetHud .hpw { display: flex; align-items: center; gap: 8px; background: rgba(15,15,20,.75); border-radius: 999px; padding: 6px 12px; }
#streetHud .hpw i { position: relative; width: 120px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; }
#streetHud .hpw b { position: absolute; inset: 0 auto 0 0; background: #2ecc71; transition: width .2s; }
#streetHud .hpw u { position: absolute; inset: 0 auto 0 0; height: 3px; top: auto; background: #5dade2; }
#streetHud #shStars { color: #ffd23f; font: 800 15px var(--ui); letter-spacing: 1px; text-shadow: 0 1px 2px #000; }
#streetHud #shGiveUp { pointer-events: auto; border: 0; border-radius: 999px; padding: 7px 12px; font: 800 12px var(--ui); background: #fff; cursor: pointer; }
#gunPad { position: fixed; right: 16px; bottom: 210px; z-index: 4; display: none; flex-direction: column; align-items: flex-end; gap: 8px; }
#gunPad.show { display: flex; }
#gunPad button { border: 0; border-radius: 18px; min-width: 64px; padding: 8px 10px; background: rgba(15,15,20,.78); color: #fff; font: 800 11px var(--ui); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#gunPad button b { font-size: 20px; }
#gunPad #gpFire, #gunPad #gpReload, #gunPad #gpRob { display: none; }
#gunPad.drawn #gpFire, #gunPad.drawn #gpReload, #gunPad.drawn #gpRob { display: flex; }
#gunPad #gpFire { width: 86px; height: 86px; border-radius: 50%; background: rgba(192,57,43,.92); justify-content: center; font-size: 12px; }
#gunPad #gpFire b { font-size: 30px; }
.touch #gunPad { right: calc(var(--sar) + var(--edge)); bottom: calc(var(--sab) + 240px); }
#heldPop { position: fixed; inset: 0; z-index: 9; display: none; align-items: center; justify-content: center; background: rgba(60,0,0,.45); }
#heldPop.open { display: flex; }
#heldPop .card { background: #fff; border-radius: 24px; padding: 20px; width: min(340px, 88vw); text-align: center; font-family: var(--ui); animation: rise .2s ease-out; }
#heldPop .card > b { font-size: 46px; } #heldPop p { font: 800 15px/1.4 var(--ui); margin: 6px 0; } #heldPop small { font: 800 13px var(--ui); color: #c0392b; }
#heldPop .card div { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
#heldPop button { border: 0; border-radius: 999px; padding: 12px; font: 800 13px var(--ui); cursor: pointer; background: var(--soft); }
#heldPop button[data-comply] { background: #2b2b2b; color: #fff; }
#hurtFx { position: fixed; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 120px 40px rgba(200,0,0,.0); }
#hurtFx.on { animation: hurt .45s ease-out; }
@keyframes hurt { from { box-shadow: inset 0 0 140px 50px rgba(200,0,0,.65); } to { box-shadow: inset 0 0 140px 50px rgba(200,0,0,0); } }
#phone label.agree { display: flex; gap: 10px; align-items: flex-start; font: 600 12.5px/1.4 var(--ui); margin: 8px 2px 10px; }
#phone .kmiss { opacity: .35; filter: grayscale(1); }
#phone .msg i { display: block; font: 600 10px var(--ui); opacity: .6; margin-top: 3px; text-align: right; font-style: normal; }
#phone .dmnew input { flex: 1; min-width: 0; border: 0; background: #eef2f7; border-radius: 999px; padding: 9px 12px; font: 600 14px var(--ui); color: var(--ink); outline: none; }

/* Cars app (ui/cars-ui.js) */
#phone .car-tile > b { font-size: 26px; }
#phone .car-tile > div:nth-child(2) { flex: 1; }
#phone .car-tile .car-stats { display: block; margin-top: 3px; font: 700 11px var(--ui); color: var(--brand); }
#phone .car-tile .owned { font: 800 12px var(--ui); font-style: normal; color: #1e8a4c; white-space: nowrap; }
#phone .car-btns { display: flex; flex-direction: column; gap: 5px; align-items: stretch; flex: none; }
#phone .car-btns > div, #phone .car-btns { min-width: 0; }
.mini.ghost { background: #eef1f6; color: var(--ink); }

/* Driving lesson (ui/driving-lesson.js) */
#lessonCard { position: fixed; left: 50%; transform: translateX(-50%); top: 112px; z-index: 5; display: none; align-items: center; gap: 12px; width: max-content; max-width: min(94vw, 560px);
  background: rgba(255,255,255,.97); border-radius: 18px; padding: 10px 12px 10px 14px; box-shadow: 0 6px 22px rgba(0,0,0,.25); font-family: var(--ui); color: var(--ink); }
#lessonCard.show { display: flex; animation: rise .3s ease-out; }
#lessonCard > b { font-size: 26px; } #lessonCard > div { min-width: 0; }
#lessonCard small { display: block; font: 800 10.5px var(--ui); color: var(--brand); letter-spacing: .02em; }
#lessonCard strong { display: block; font: 800 15px/1.25 var(--ui); }
#lessonCard span { display: block; font: 600 12px/1.35 var(--ui); opacity: .8; margin-top: 2px; }
.touch #lessonCard { top: calc(var(--sat) + 60px); padding: 8px 10px; } .touch #lessonCard strong { font-size: 13px; }
body.map-open #lessonCard { display: none !important; }
body.in-lesson #newbie { display: none !important; }

/* ---------- Realistic phone (home screen) ---------- */
#phone { position: relative; background: linear-gradient(145deg, #3a3d44, #15161a 40%, #2b2d33 70%, #0d0e11); padding: 11px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1.5px #5b5f68, inset 0 0 0 4px #121317; }
#phone::before, #phone::after { content: ''; position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #2a2c31, #50545c); }
#phone::before { left: -3px; top: 150px; height: 64px; box-shadow: 0 80px 0 #3c3f46, 0 -52px 0 -0px #3c3f46; } /* volume buttons + action button */
#phone::after { right: -3px; top: 190px; height: 96px; } /* side button */
#phone .scr { background: #000; }
#phone .notch { top: 11px; width: 104px; height: 30px; border-radius: 20px; background: #000; }
#phone .sb { padding: 15px 28px 6px 34px; font: 650 14px/1 -apple-system, 'SF Pro Text', var(--ui); letter-spacing: .01em; }
#phone .sbi { display: flex; align-items: center; gap: 5px; } #phone .sbi b { font: 700 12px var(--ui); }
#phone .sbi svg { fill: currentColor; } #phone .sbi .sig { width: 17px; height: 11px; } #phone .sbi .bat { width: 25px; height: 12px; }
#phone .home { background: #10213f url(../assets/ui/wallpaper.jpg) center bottom / cover; }
#phone .home::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 32%, rgba(0,0,0,0) 62%, rgba(0,0,0,.35)); pointer-events: none; }
#phone .home > * { position: relative; }
#phone .clock { padding: 18px 24px 14px; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
#phone .clock b { font: 300 76px/1 -apple-system, 'SF Pro Display', var(--ui); letter-spacing: -1px; margin: 2px 0 4px; }
#phone .clock span { display: block; font: 600 14px var(--ui); opacity: .95; }
#phone .apps-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; padding-bottom: 8px; } #phone .apps-scroll::-webkit-scrollbar { display: none; }
#phone .grid { gap: 16px 6px; padding: 8px 16px; }
#phone .app { gap: 5px; font: 500 11px var(--ui); letter-spacing: .01em; }
#phone .app > span { max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
#phone .app img, #phone .app .emo { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.28); }
#phone .app:active img { transform: scale(.92); filter: brightness(.85); }
#phone .dock { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; margin: 0 10px 8px; padding: 12px 6px; border-radius: 30px;
  background: rgba(255,255,255,.22); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }
#phone .homebar { width: 134px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); margin: 0 auto 8px; flex: none; }
@media (max-width: 760px), (max-height: 560px) { #phone { box-shadow: none; padding: 0; border-radius: 0; background: #000; } #phone::before, #phone::after { display: none; } #phone .notch { top: calc(var(--sat, 0px) + 8px); } }

/* Shooting (ui/street-ui.js): AIM button, crosshair, hit marker, damage numbers, reload, low ammo */
#gunPad #gpAim { display: none; } #gunPad.drawn #gpAim { display: flex; }
#gunPad #gpAim.on { background: #e8433b; }
#gunPad #gpReload { position: relative; overflow: hidden; }
#gunPad #gpReload.low { animation: lowAmmo .8s ease-in-out infinite; }
@keyframes lowAmmo { 50% { background: #b8860b; } }
#gunPad #gpReload.loading::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #2ecc71; transform-origin: left; animation: reloadBar var(--rl, 1.6s) linear forwards; }
@keyframes reloadBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#crosshair { position: fixed; left: calc(50% + 0px); top: 50%; width: 0; height: 0; z-index: 4; pointer-events: none; display: none; --gap: 7px; }
#crosshair.show { display: block; }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 2px rgba(0,0,0,.9); transition: transform .12s ease-out; }
#crosshair i:nth-child(1) { width: 2px; height: 9px; left: -1px; bottom: var(--gap); } #crosshair i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: var(--gap); }
#crosshair i:nth-child(3) { width: 9px; height: 2px; top: -1px; right: var(--gap); } #crosshair i:nth-child(4) { width: 9px; height: 2px; top: -1px; left: var(--gap); }
#crosshair b { position: absolute; width: 3px; height: 3px; left: -1.5px; top: -1.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #000; }
#crosshair.kick { animation: xkick .18s ease-out; } @keyframes xkick { 40% { --gap: 15px; } }
#crosshair.kick i:nth-child(1) { animation: xk1 .18s ease-out; } #crosshair.kick i:nth-child(2) { animation: xk2 .18s ease-out; }
#crosshair.kick i:nth-child(3) { animation: xk3 .18s ease-out; } #crosshair.kick i:nth-child(4) { animation: xk4 .18s ease-out; }
@keyframes xk1 { 40% { transform: translateY(-6px); } } @keyframes xk2 { 40% { transform: translateY(6px); } }
@keyframes xk3 { 40% { transform: translateX(-6px); } } @keyframes xk4 { 40% { transform: translateX(6px); } }
#crosshair.hit i { background: #ff3b30; } #crosshair.hit::after { content: '✕'; position: absolute; left: -9px; top: -13px; color: #ff3b30; font: 900 20px system-ui; text-shadow: 0 0 3px #000; animation: fade .35s forwards; }
@keyframes fade { to { opacity: 0; } }
.dmgNum { position: fixed; left: 50%; top: 44%; z-index: 6; pointer-events: none; font: 900 22px var(--ui); text-shadow: 0 2px 6px rgba(0,0,0,.8); animation: dmgUp .9s ease-out forwards; }
.dmgNum.me { color: #ff4d4d; left: 50%; top: 58%; } .dmgNum.them { color: #ffd23f; margin-left: 26px; font-size: 16px; }
@keyframes dmgUp { from { transform: translate(-50%, 0) scale(1.2); opacity: 1; } to { transform: translate(-50%, -40px) scale(1); opacity: 0; } }
