/* Mzansi Lifestyle — game UI */
:root {
  --green: #0E9F6E; --green-d: #0a7a54; --gold: #FFB81C; --red: #DE3831; --blue: #1d3f8a; --ink: #0f1720; --ink2: #3b4654; --mute: #7a8696;
  --card: #ffffff; --line: #e7eaef; --bg: #f3f5f8; --night: #0d1424; --night2: #172036; --night3: #23304d;
  --r: 18px; --r-sm: 12px; --shadow: 0 10px 30px rgba(10, 20, 40, .18); --shadow-sm: 0 4px 14px rgba(10, 20, 40, .14);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1424; color: var(--ink); overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; font: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.hidden { display: none !important; }
.ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.ui > * { pointer-events: auto; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------ buttons & bits */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 16px; letter-spacing: .1px; transition: transform .12s, filter .12s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(180deg, #13b37e, #0c946a); color: #fff; box-shadow: 0 6px 18px rgba(14, 159, 110, .38), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.gold { background: linear-gradient(180deg, #ffc93f, #f2a900); color: #1b1300; box-shadow: 0 6px 18px rgba(242, 169, 0, .35), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.dark { background: #16213a; color: #fff; }
.btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(10px); }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.red { background: var(--red); color: #fff; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow-sm); }
.icon-btn.dark { background: rgba(15, 23, 40, .72); color: #fff; backdrop-filter: blur(12px); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #eef2f6; font-weight: 700; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: #eef2f6; color: var(--ink2); }
.tag.green { background: #dcf5ea; color: #08734f; } .tag.gold { background: #fff1cf; color: #8a5a00; } .tag.red { background: #fde3e1; color: #a5221a; } .tag.blue { background: #e1e9fb; color: #1d3f8a; } .tag.dark { background: #16213a; color: #fff; }
.money { font-variant-numeric: tabular-nums; }
.flagbar { height: 5px; background: linear-gradient(90deg, #DE3831 0 20%, #fff 20% 23%, #007A4D 23% 60%, #fff 60% 63%, #002395 63% 100%); }
.muted { color: var(--mute); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.spacer { height: 12px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.3px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.field input, .field select { height: 50px; border-radius: 13px; border: 1.5px solid var(--line); padding: 0 14px; font-size: 16px; background: #fff; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(14,159,110,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); margin: 8px 0; line-height: 1.35; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin-top: 1px; }
.err-text { color: var(--red); font-weight: 700; font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
a { color: var(--green-d); font-weight: 700; }

/* ------------------------------------------------ loader */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(1200px 700px at 50% 30%, #1b2b4d, #0b1120); color: #fff; transition: opacity .5s; }
#loader.out { opacity: 0; pointer-events: none; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo .mark { width: 86px; height: 86px; border-radius: 26px; display: grid; place-items: center; font-size: 46px; background: linear-gradient(145deg, #13b37e, #0a6e4d); box-shadow: 0 16px 40px rgba(14,159,110,.45), inset 0 2px 0 rgba(255,255,255,.25); position: relative; overflow: hidden; }
.logo .mark::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(90deg, #DE3831 0 33%, #FFB81C 33% 66%, #002395 66%); }
.logo .word { font-family: 'Bungee', 'Plus Jakarta Sans', sans-serif; font-size: 30px; letter-spacing: .5px; line-height: 1; margin-top: 10px; }
.logo .word b { color: var(--gold); font-weight: 400; }
.logo .tagline { font-size: 14px; opacity: .75; font-weight: 600; }
.loadbar { width: min(320px, 70vw); height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 28px; }
.loadbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 8px; transition: width .3s; }
.loadmsg { margin-top: 10px; font-size: 13px; opacity: .7; font-weight: 600; min-height: 18px; text-align: center; }

/* ------------------------------------------------ front door (landing / auth / onboarding) */
.front { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; padding-top: calc(16px + var(--safe-t)); background: linear-gradient(180deg, rgba(8,14,28,.15), rgba(8,14,28,.55)); overflow-y: auto; }
.front-card { width: min(440px, 100%); background: rgba(255,255,255,.97); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.front-card .inner { padding: 24px; }
.front-hero { text-align: center; color: #fff; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.front-hero .logo .word { font-size: 34px; }
.front-col { width: min(440px, 100%); display: flex; flex-direction: column; align-items: stretch; }
.live-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.live-row .pill { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee86b; box-shadow: 0 0 0 4px rgba(46,232,107,.25); display: inline-block; }
.front-links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.front-links a { color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none; }
.tabs2 { display: flex; background: #eef2f6; border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.tabs2 button { flex: 1; height: 42px; border-radius: 11px; font-weight: 800; color: var(--ink2); }
.tabs2 button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* onboarding wizard */
.wizard { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; }
.wiz-top { padding: calc(14px + var(--safe-t)) 16px 10px; display: flex; align-items: center; gap: 12px; color: #fff; background: linear-gradient(180deg, rgba(8,14,28,.75), rgba(8,14,28,0)); }
.wiz-top h2 { font-size: 20px; }
.wiz-top .sub { font-size: 13px; opacity: .8; font-weight: 600; }
.steps { display: flex; gap: 6px; margin-top: 8px; }
.steps i { height: 5px; flex: 1; border-radius: 4px; background: rgba(255,255,255,.25); }
.steps i.on { background: var(--gold); }
.wiz-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 16px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.wiz-foot { padding: 12px 16px calc(14px + var(--safe-b)); display: flex; gap: 10px; background: linear-gradient(0deg, rgba(8,14,28,.85), rgba(8,14,28,0)); }
.wiz-foot .btn { flex: 1; }
.wiz-center { max-width: 760px; margin: 0 auto; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.opt { position: relative; text-align: left; background: rgba(255,255,255,.97); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); border: 2.5px solid transparent; transition: transform .12s, border-color .15s, box-shadow .15s; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--green); box-shadow: 0 0 0 4px rgba(14,159,110,.2), var(--shadow); }
.opt.off { opacity: .5; }
.opt .big { font-size: 30px; line-height: 1; }
.opt h3 { font-size: 17px; }
.opt p { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.4; }
.opt .price { font-weight: 800; font-size: 15px; color: var(--green-d); }
.opt .tick { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: none; place-items: center; font-weight: 900; font-size: 14px; }
.opt.on .tick { display: grid; }
.opt .banner { margin: -14px -14px 6px; height: 86px; border-radius: 15px 15px 0 0; display: flex; align-items: flex-end; padding: 10px 12px; color: #fff; font-weight: 800; font-size: 13px; text-shadow: 0 1px 6px rgba(0,0,0,.4); background-size: cover; background-position: center; }
.section-title { color: #fff; font-weight: 800; font-size: 15px; margin: 18px 0 10px; text-shadow: 0 1px 8px rgba(0,0,0,.5); display: flex; align-items: center; gap: 8px; }
.city-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.city-tabs::-webkit-scrollbar { display: none; }
.city-tab { flex: none; height: 44px; padding: 0 16px; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff; font-weight: 800; backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 8px; }
.city-tab.on { background: #fff; color: var(--ink); }

/* character creator */
.creator { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 50vh; display: flex; flex-direction: column; background: rgba(255,255,255,.98); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
@media (min-width: 900px) { .creator { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; } }
.cr-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 14px 8px; scrollbar-width: none; flex: none; }
.cr-tabs::-webkit-scrollbar { display: none; }
.cr-body { flex: 1; overflow-y: auto; padding: 4px 14px 10px; touch-action: pan-y; }
.cr-foot { padding: 10px 14px calc(12px + var(--safe-b)); display: flex; gap: 10px; border-top: 1px solid var(--line); flex: none; }
.cr-foot .btn { flex: 1; }
.cr-label { font-size: 12px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.sw.on { box-shadow: 0 0 0 3px var(--green); }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.style-b { height: 64px; border-radius: 14px; background: #f1f4f8; font-weight: 700; font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid transparent; }
.style-b .e { font-size: 22px; }
.style-b.on { border-color: var(--green); background: #e9f8f1; color: var(--ink); }
.name-row { display: flex; gap: 10px; padding: 12px 14px 0; }
.name-row input { flex: 1; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; font-size: 16px; font-weight: 700; }

/* ------------------------------------------------ HUD */
.hud-top { position: fixed; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.95); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 4px 4px 4px 14px; height: 44px; font-weight: 800; font-size: 14px; white-space: nowrap; max-width: calc(100vw - 20px); }
.hud-top .seg { display: flex; align-items: center; gap: 6px; padding: 0 9px; height: 100%; border-right: 1px solid var(--line); }
.hud-top .seg:last-child { border-right: 0; }
.hud-top .mood { font-size: 20px; }
.hud-top .cash { background: #0f1720; color: #fff; border-radius: 999px; height: 36px; padding: 0 6px 0 12px; gap: 8px; margin-left: 4px; }
.hud-top .cash .plus { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1b1300; display: grid; place-items: center; font-weight: 900; font-size: 18px; line-height: 1; }
.hud-top .ls { color: var(--red); }
@media (max-width: 520px) { .hud-top { font-size: 12.5px; padding-left: 10px; } .hud-top .seg { padding: 0 6px; } .hud-top .hide-sm { display: none; } }
.hud-me { position: fixed; top: calc(62px + var(--safe-t)); left: 10px; z-index: 12; display: flex; flex-direction: column; gap: 8px; }
.me-pic { width: 54px; height: 54px; border-radius: 50%; background: #e9eef4 center/cover; border: 3px solid #fff; box-shadow: var(--shadow-sm), 0 0 0 3px var(--mood, #22a06b); position: relative; }
.me-pic .lvl { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }
.needs-mini { display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.92); padding: 8px 6px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.need-ring { width: 40px; height: 40px; position: relative; display: grid; place-items: center; font-size: 17px; }
.need-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.need-ring circle { fill: none; stroke-width: 4; }
.need-ring.low { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.hud-right { position: fixed; top: calc(62px + var(--safe-t)); right: 10px; z-index: 12; display: flex; flex-direction: column; gap: 8px; }
.nav-bottom { position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); z-index: 12; display: flex; gap: 6px; background: rgba(15,23,40,.86); backdrop-filter: blur(16px); padding: 7px; border-radius: 24px; box-shadow: var(--shadow); }
.nav-bottom button { width: 72px; height: 58px; border-radius: 18px; color: #cfd8e6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 800; position: relative; }
.nav-bottom button.on { background: #fff; color: var(--ink); }
.nav-bottom button .badge { position: absolute; top: 6px; right: 14px; background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 380px) { .nav-bottom button { width: 62px; } }

/* place card (near a location) */
.place { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); z-index: 11; width: min(560px, calc(100vw - 20px)); background: rgba(255,255,255,.97); border-radius: 22px; box-shadow: var(--shadow); padding: 12px 12px 10px; animation: rise .25s ease; }
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }
.place .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.place .head .em { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: #f1f4f8; }
.place .head h3 { font-size: 16px; }
.place .head .sub { font-size: 12px; color: var(--mute); font-weight: 700; }
.acts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; touch-action: pan-x; }
.acts::-webkit-scrollbar { display: none; }
.act { flex: none; min-width: 112px; max-width: 150px; text-align: left; background: #f4f6f9; border-radius: 15px; padding: 10px; display: flex; flex-direction: column; gap: 3px; border: 1.5px solid transparent; }
.act:active { transform: scale(.97); }
.act .ic { font-size: 22px; }
.act .nm { font-weight: 800; font-size: 13px; line-height: 1.2; color: var(--ink); }
.act .pr { font-weight: 800; font-size: 12.5px; color: var(--green-d); }
.act .pr.free { color: var(--blue); }
.act.work { background: #fff6dd; } .act.work .pr { color: #8a5a00; }
.act.go { background: #0f1720; color: #fff; } .act.go .nm { color: #fff; } .act.go .pr { color: var(--gold); }
.act.off { opacity: .45; }

/* busy pill */
.busy { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); z-index: 13; display: flex; align-items: center; gap: 12px; background: #0f1720; color: #fff; border-radius: 18px; padding: 10px 10px 10px 14px; box-shadow: var(--shadow); min-width: 260px; max-width: calc(100vw - 20px); }
.busy .t { font-weight: 800; font-size: 14px; }
.busy .bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 6px; }
.busy .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); width: 0; }

/* toasts */
.toasts { position: fixed; top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(460px, calc(100vw - 130px)); pointer-events: none; }
.toast { background: rgba(15,23,40,.92); color: #fff; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: drop .3s ease; line-height: 1.35; text-align: center; backdrop-filter: blur(10px); }
.toast.good { background: rgba(10, 122, 84, .95); } .toast.bad { background: rgba(170, 34, 26, .95); } .toast.gold { background: rgba(242,169,0,.97); color: #1b1300; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }
.money-pop { position: fixed; z-index: 41; font-weight: 900; font-size: 18px; pointer-events: none; animation: floatup 1.4s ease forwards; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
@keyframes floatup { to { transform: translateY(-40px); opacity: 0; } }

/* world-anchored labels */
.labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.tagw { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform; }
.nametag { transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nametag .nm { background: rgba(15,23,40,.72); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.nametag .nm.me { background: rgba(14,159,110,.9); }
.nametag .bdg { background: var(--gold); color: #1b1300; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; }
.bubble { background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; padding: 7px 11px; border-radius: 14px; max-width: 220px; box-shadow: var(--shadow-sm); position: relative; line-height: 1.3; text-align: center; animation: pop .2s ease; }
.bubble::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.emote { font-size: 30px; animation: pop .2s ease; }
.poi { transform: translate(-50%, -100%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.poi .pin { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px 4px 4px; box-shadow: var(--shadow-sm); font-weight: 800; font-size: 12.5px; white-space: nowrap; color: var(--ink); }
.poi .pin .e { width: 26px; height: 26px; border-radius: 50%; background: #f1f4f8; display: grid; place-items: center; font-size: 15px; }
.poi .stem { width: 2px; height: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.poi.home .pin { background: var(--green); color: #fff; } .poi.home .pin .e { background: rgba(255,255,255,.25); }
.poi.special .pin { background: #0f1720; color: #fff; } .poi.special .pin .e { background: rgba(255,255,255,.15); }
.poi.small .pin { font-size: 11px; padding: 3px 8px 3px 3px; } .poi.small .pin .e { width: 20px; height: 20px; font-size: 12px; }
.target-ring { position: absolute; width: 0; height: 0; }

/* chat */
.chat-fab { position: fixed; right: 10px; bottom: calc(92px + var(--safe-b)); z-index: 12; }
.chat-log { position: fixed; left: 10px; bottom: calc(90px + var(--safe-b)); z-index: 9; width: min(330px, 60vw); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.chat-log .ln { background: rgba(15,23,40,.6); color: #fff; font-size: 12.5px; padding: 5px 9px; border-radius: 10px; font-weight: 600; width: fit-content; max-width: 100%; animation: drop .25s; backdrop-filter: blur(6px); pointer-events: auto; cursor: pointer; }
.chat-log .ln b { color: var(--gold); }
.chat-log .ln.sys { background: rgba(14,159,110,.75); }
.chatbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; padding: 10px 10px calc(10px + var(--safe-b)); box-shadow: 0 -10px 30px rgba(0,0,0,.2); border-radius: 20px 20px 0 0; }
.chatbar .quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; touch-action: pan-x; }
.chatbar .quick::-webkit-scrollbar { display: none; }
.chatbar form { display: flex; gap: 8px; }
.chatbar input { flex: 1; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 14px; font-size: 16px; }

/* sheets & modals */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(5,10,20,.45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 51; width: min(620px, 100vw); max-height: 88vh; background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.9,.3,1); }
@keyframes up { from { transform: translate(-50%, 100%); } }
.sheet.dark { background: var(--night); color: #fff; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #d8dde5; margin: 10px auto 2px; flex: none; }
.sheet.dark .grab { background: #33405c; }
.sheet .sh-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; flex: none; }
.sheet .sh-head h2 { font-size: 20px; flex: 1; }
.sheet .sh-body { overflow-y: auto; padding: 0 18px calc(18px + var(--safe-b)); touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.x-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #f1f4f8; color: var(--ink); }
.sheet.dark .x-btn { background: var(--night3); color: #fff; }
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #f5f7fa; text-align: left; width: 100%; }
.sheet.dark .li { background: var(--night2); }
.li .em { width: 44px; height: 44px; border-radius: 13px; background: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.sheet.dark .li .em { background: var(--night3); }
.li .t { font-weight: 800; font-size: 15px; }
.li .s { font-size: 12.5px; color: var(--mute); font-weight: 600; margin-top: 2px; line-height: 1.35; }
.sheet.dark .li .s { color: #94a3bd; }
.li .r { margin-left: auto; text-align: right; font-weight: 800; white-space: nowrap; }

/* needs sheet */
.needbar { margin-bottom: 12px; }
.needbar .top { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.needbar .track { height: 12px; border-radius: 8px; background: #edf0f4; overflow: hidden; }
.needbar .track i { display: block; height: 100%; border-radius: 8px; transition: width .4s; }
.feel { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #f5f7fa; margin-bottom: 8px; }
.feel .e { font-size: 24px; }
.feel .v { margin-left: auto; font-weight: 900; font-size: 14px; }
.feel .v.pos { color: var(--green-d); } .feel .v.neg { color: var(--red); }
.mood-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; color: #fff; margin-bottom: 16px; }
.mood-hero .e { font-size: 44px; }

/* buy mode */
.buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); padding-bottom: var(--safe-b); animation: up2 .25s; display: flex; flex-direction: column; max-height: 46vh; }
@keyframes up2 { from { transform: translateY(100%); } }
.buy .bhead { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; }
.buy .bhead h3 { flex: 1; font-size: 18px; }
.buy .cats { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 10px; scrollbar-width: none; touch-action: pan-x; flex: none; }
.buy .cats::-webkit-scrollbar { display: none; }
.buy .items { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 0 14px 14px; scrollbar-width: none; touch-action: pan-x; }
.buy .items::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .buy { left: 50%; transform: translateX(-50%); width: 860px; } @keyframes up2 { from { transform: translate(-50%, 100%); } } }
.card-item { background: #f4f6f9; border-radius: 16px; padding: 8px; text-align: left; display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; position: relative; }
.card-item.on { border-color: var(--green); background: #e9f8f1; }
.card-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff, #e9edf2); }
.card-item .nm { font-weight: 800; font-size: 12.5px; line-height: 1.2; min-height: 30px; }
.card-item .pr { font-weight: 900; font-size: 13px; color: var(--green-d); }
.card-item .stars { font-size: 10px; color: #f2a900; letter-spacing: -1px; }
.card-item.cant .pr { color: var(--red); }
.place-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 21; display: flex; gap: 8px; background: rgba(15,23,40,.92); padding: 8px; border-radius: 20px; box-shadow: var(--shadow); align-items: center; color: #fff; }
.place-bar .lbl { padding: 0 8px; font-weight: 800; font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-pop { position: fixed; z-index: 21; transform: translate(-50%, -100%); background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.item-pop .ttl { font-weight: 800; font-size: 13px; padding: 2px 6px; color: var(--mute); }
.item-pop button.u { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #f4f6f9; font-weight: 800; font-size: 14px; text-align: left; }
.item-pop button.u .c { margin-left: auto; color: var(--green-d); font-size: 12px; }

/* phone */
.phone-wrap { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; background: rgba(5,10,20,.5); animation: fade .2s; padding: 10px; }
.phone { width: min(390px, 100%); height: min(780px, calc(100vh - 20px)); background: #0b0f17; border-radius: 46px; padding: 12px; box-shadow: 0 40px 100px rgba(0,0,0,.5), inset 0 0 0 2px #2b3446; position: relative; animation: phoneIn .3s cubic-bezier(.2,.9,.3,1.1); }
@keyframes phoneIn { from { transform: translateY(40px) scale(.96); opacity: 0; } }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; background: linear-gradient(160deg, #1f6f57, #0f3d55 55%, #1d1f4a); color: #fff; display: flex; flex-direction: column; }
.statusbar { height: 44px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 13px; font-weight: 800; }
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #000; z-index: 3; }
.home-screen { flex: 1; padding: 14px 18px; overflow-y: auto; }
.widget { background: rgba(255,255,255,.14); backdrop-filter: blur(14px); border-radius: 24px; padding: 14px 16px; margin-bottom: 18px; }
.widget .big { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 10px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #fff; }
.app .ico { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3); position: relative; }
.app .ico .badge { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; }
.dock-close { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 130px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); z-index: 4; }
.app-view { position: absolute; inset: 0; background: #f4f6f9; color: var(--ink); display: flex; flex-direction: column; animation: appIn .22s ease; z-index: 2; }
@keyframes appIn { from { transform: scale(.92); opacity: 0; } }
.app-view .bar { padding: 44px 14px 10px; display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.app-view .bar h3 { flex: 1; font-size: 18px; }
.app-view .body { flex: 1; overflow-y: auto; padding: 14px 14px 30px; touch-action: pan-y; }
.app-view .body.dark { background: var(--night); color: #fff; }
.kv { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.kv b { font-weight: 800; }

/* departures / boarding pass */
.dep { background: var(--night2); border-radius: 18px; padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; color: #fff; border: 2px solid transparent; text-align: left; width: 100%; }
.dep.on { border-color: var(--gold); }
.dep .e { font-size: 30px; width: 52px; height: 52px; border-radius: 15px; background: var(--night3); display: grid; place-items: center; flex: none; }
.dep .t { font-weight: 800; font-size: 16px; }
.dep .s { font-size: 12.5px; color: #94a3bd; margin-top: 3px; line-height: 1.35; }
.dep .p { margin-left: auto; font-weight: 900; color: var(--gold); font-size: 16px; white-space: nowrap; }
.route { display: flex; align-items: center; gap: 12px; background: var(--night2); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.route .code { font-size: 30px; font-weight: 900; letter-spacing: 1px; }
.route .city { font-size: 12px; color: #94a3bd; font-weight: 700; }
.route .line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #4b5a7a 0 6px, transparent 6px 12px); position: relative; }
.route .line::after { content: '✈'; position: absolute; left: 50%; top: -12px; transform: translateX(-50%); font-size: 18px; color: var(--gold); }
.dest-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.dest-tabs button { flex: 1; height: 46px; border-radius: 14px; background: var(--night2); color: #cfd8e6; font-weight: 800; }
.dest-tabs button.on { background: #fff; color: var(--ink); }
.pass { background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; }
.pass .ph { background: linear-gradient(135deg, #0E9F6E, #0b6b8a); color: #fff; padding: 16px; }
.pass .pb { padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.pass .pb div small { display: block; font-size: 11px; color: var(--mute); font-weight: 800; text-transform: uppercase; }
.pass .pb div b { font-size: 17px; }
.barcode { height: 54px; margin: 0 16px 16px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 7px, #fff 7px 8px, #111 8px 9px, #fff 9px 12px); border-radius: 4px; }

/* travel overlay */
.travel-ui { position: fixed; left: 0; right: 0; top: 0; z-index: 14; padding: calc(12px + var(--safe-t)) 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.travel-ui > * { pointer-events: auto; }
.trip-card { background: rgba(15,23,40,.85); color: #fff; backdrop-filter: blur(14px); border-radius: 20px; padding: 12px 16px; width: min(460px, 100%); box-shadow: var(--shadow); }
.trip-card .rt { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; }
.trip-card .prog { height: 6px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 10px 0 6px; overflow: hidden; }
.trip-card .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.cam-tabs { position: fixed; bottom: calc(18px + var(--safe-b)); left: 50%; transform: translateX(-50%); z-index: 14; display: flex; gap: 6px; background: rgba(15,23,40,.85); padding: 6px; border-radius: 18px; backdrop-filter: blur(14px); }
.cam-tabs button { height: 42px; padding: 0 16px; border-radius: 13px; color: #cfd8e6; font-weight: 800; font-size: 14px; }
.cam-tabs button.on { background: #fff; color: var(--ink); }

/* map mode */
.map-title { position: fixed; top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 12; background: rgba(15,23,40,.85); color: #fff; border-radius: 14px; padding: 8px 14px; font-weight: 800; font-size: 14px; backdrop-filter: blur(10px); white-space: nowrap; }
.hint { position: fixed; left: 50%; transform: translateX(-50%); top: calc(64px + var(--safe-t)); z-index: 11; background: rgba(15,23,40,.85); color: #fff; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; max-width: calc(100vw - 30px); text-align: center; animation: drop .3s; }
.lingo { display: flex; flex-direction: column; gap: 8px; }
.lingo div { background: #fff; border-radius: 14px; padding: 10px 12px; }
.lingo b { display: block; font-size: 15px; }
.lingo span { font-size: 13px; color: var(--ink2); }
.empty { text-align: center; color: var(--mute); padding: 30px 10px; font-weight: 600; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 14px; margin-bottom: 6px; }
.lb-row .n { width: 26px; font-weight: 900; color: var(--mute); text-align: center; }
.lb-row .pic { width: 38px; height: 38px; border-radius: 50%; background: #e9eef4 center/cover; }
.profile-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 16px; }
.profile-hero .pic { width: 110px; height: 110px; border-radius: 50%; background: #e9eef4 center/cover; border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-grid div { background: #fff; border-radius: 14px; padding: 12px; }
.stat-grid small { display: block; color: var(--mute); font-weight: 700; font-size: 12px; }
.stat-grid b { font-size: 18px; }
.ride-opts { display: flex; gap: 8px; margin: 10px 0; }
.ride-opts button { flex: 1; padding: 10px 6px; border-radius: 14px; background: #f1f4f8; font-weight: 800; font-size: 13px; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ride-opts button.on { border-color: var(--green); background: #e9f8f1; }
.ride-opts button small { font-weight: 600; color: var(--mute); font-size: 11px; }

/* area picker: city on top, cards along the bottom */
.wiz-center.area-step { height: 100%; display: flex; flex-direction: column; max-width: none; }
.area-top { max-width: 760px; width: 100%; margin: 0 auto; }
.area-blurb { color: #fff; opacity: .9; font-weight: 600; font-size: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 8px 2px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .opt { flex: none; width: min(270px, 78vw); scroll-snap-align: center; }
.opt .banner { position: relative; overflow: hidden; }
.opt .banner .bem { position: absolute; right: 10px; top: 4px; font-size: 54px; opacity: .9; text-shadow: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
@media (min-width: 900px) { .hscroll { justify-content: center; flex-wrap: wrap; } }
.place.inmap { display: none; }

/* chat panel */
.chat-panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 46; width: min(560px, 100vw); height: 72vh; max-height: 78vh; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; animation: up .25s cubic-bezier(.2,.9,.3,1); padding-bottom: var(--safe-b); }
.cp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex: none; }
.cp-tabs { flex: 1; display: flex; background: #eef2f6; border-radius: 12px; padding: 3px; }
.cp-tabs button { flex: 1; height: 38px; border-radius: 10px; font-weight: 800; font-size: 13.5px; color: var(--ink2); }
.cp-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cp-title { flex: 1; display: flex; flex-direction: column; } .cp-title small { color: var(--mute); font-weight: 700; }
.cp-body { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; touch-action: pan-y; -webkit-overflow-scrolling: touch; background: #f6f8fb; }
.cp-people { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; touch-action: pan-x; flex: none; }
.cp-people::-webkit-scrollbar { display: none; }
.person { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: var(--ink2); min-width: 56px; }
.person .pic { width: 46px; height: 46px; border-radius: 50%; background: #e9eef4 center/cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--green); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bub { background: #fff; padding: 8px 12px; border-radius: 16px 16px 16px 4px; font-weight: 600; font-size: 14.5px; line-height: 1.35; box-shadow: 0 1px 2px rgba(0,0,0,.06); word-break: break-word; }
.msg.mine .bub { background: var(--green); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg small { font-size: 10.5px; color: var(--mute); font-weight: 700; margin: 2px 4px 0; }
.msg .who { font-size: 12px; font-weight: 800; color: var(--blue); margin: 0 4px 2px; }
.msg.sys { align-self: center; max-width: 92%; } .msg.sys .bub { background: #e6f6ef; color: #0a6b4a; font-size: 13px; text-align: center; }
.cp-input { flex: none; padding: 8px 10px 10px; border-top: 1px solid var(--line); background: #fff; }
.cp-input .quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; touch-action: pan-x; }
.cp-input .quick::-webkit-scrollbar { display: none; }
.cp-input form { display: flex; gap: 8px; }
.cp-input input { flex: 1; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 14px; font-size: 16px; min-width: 0; }
.dm-notice { position: fixed; top: calc(60px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 47; display: flex; align-items: center; gap: 10px; background: #0f1720; color: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); width: min(420px, calc(100vw - 20px)); text-align: left; animation: drop .3s; }
.dm-notice .av { font-size: 22px; } .dm-notice .tx { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.dm-notice .tx span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-notice .go { background: var(--green); padding: 7px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; }
/* Mzansi Radio */
.np-chip { position: fixed; top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 13; display: flex; align-items: center; gap: 8px; background: rgba(15,23,40,.88); color: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; max-width: min(320px, calc(100vw - 150px)); box-shadow: var(--shadow-sm); animation: npin .3s; text-align: left; backdrop-filter: blur(8px); transition: opacity .5s, transform .5s; }
.np-chip.out { opacity: 0; transform: translate(-50%, -8px); }
.np-chip .tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.np-chip small { font-size: 10px; font-weight: 800; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.np-chip b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-chip .eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; width: 18px; justify-content: center; }
.np-chip .eq i { width: 3px; background: var(--gold); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.np-chip .eq i:nth-child(2) { animation-delay: -.3s; } .np-chip .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 15px; } }
.radio-now { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,#0B1626,#1d3f8a); color: #fff; border-radius: 18px; padding: 16px; }
.radio-now .disc { font-size: 34px; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.radio-now .grow { display: flex; flex-direction: column; min-width: 0; }
.radio-now small { color: var(--gold); font-weight: 800; font-size: 11px; text-transform: uppercase; }
.radio-now b { font-size: 16px; } .radio-now span { opacity: .8; font-size: 13px; font-weight: 600; }
.artist-card { background: #fff8e6; border: 1.5px solid #f6d27a; border-radius: 16px; padding: 14px; margin-top: 6px; }
.artist-card p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #3b4654; }

/* ---------------------------------------------------------------- phone polish: bigger tap targets, no overlaps */
@media (max-width: 640px), (pointer: coarse) {
  .x-btn { min-width: 44px; min-height: 44px; }
  .chip { min-height: 38px; }
  .chat-panel { height: 80vh; max-height: 86vh; border-radius: 18px 18px 0 0; }
  .chat-log { bottom: calc(150px + var(--safe-b)); width: min(260px, 62vw); }
  .chat-log .ln:nth-last-child(n+4) { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .nav-bottom button { height: 46px; width: 64px; font-size: 10.5px; }
  .chat-log { display: none; }
  .chat-panel { height: 92vh; max-height: 92vh; width: min(560px, 70vw); }
}
#ui:has(.place) .chat-log, #ui:has(.chat-panel) .chat-log { display: none; }
@keyframes npin { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---------------------------------------------------------------- first screen: show the game first, sign-up tucked away */
.front-tease { margin-bottom: 16px; }
.feats { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 4px; -webkit-overflow-scrolling: touch; }
.feats::-webkit-scrollbar { display: none; }
.feat { flex: 0 0 82%; scroll-snap-align: center; background: rgba(15,23,40,.72); backdrop-filter: blur(12px); color: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(255,255,255,.12); }
.feat .fe { font-size: 30px; } .feat b { font-size: 17px; } .feat span { font-size: 13.5px; opacity: .85; font-weight: 600; line-height: 1.4; }
.fdots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.fdots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); transition: width .25s, background .25s; }
.fdots i.on { width: 18px; background: var(--gold); }
.front-cta { display: none; }
.fc-close { display: none; }
.front-scrim { display: none; }
@media (max-width: 899px) {
  .front { align-items: flex-start; padding-bottom: calc(110px + var(--safe-b)); background: linear-gradient(180deg, rgba(8,14,28,.35) 0%, rgba(8,14,28,0) 35%, rgba(8,14,28,0) 60%, rgba(8,14,28,.6) 100%); }
  .front-hero { margin-bottom: 14px; } .front-hero .logo .word { font-size: 28px; }
  .front-col { min-height: 100%; }
  .front-tease { margin-top: auto; }
  .front-links { display: none; }
  .front-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; gap: 10px; padding: 12px 16px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(8,14,28,0), rgba(8,14,28,.75)); }
  .front-cta .btn { height: 54px; font-size: 17px; border-radius: 16px; }
  .front-cta .btn.gold { flex: 1; }
  .front-cta .ghost-w { padding: 0 20px; background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); font-weight: 800; }
  .front .front-card { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; z-index: 33; border-radius: 24px 24px 0 0; max-height: 88vh; overflow-y: auto; transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.9,.3,1); padding-bottom: var(--safe-b); }
  .front.open .front-card { transform: none; }
  .front .front-card .tabs2 { margin-right: 46px; }
  .front .fc-close { display: grid; place-items: center; position: absolute; top: 12px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: #f1f4f8; z-index: 1; }
  .front .front-scrim { display: block; position: fixed; inset: 0; z-index: 32; background: rgba(8,14,28,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .front.open .front-scrim { opacity: 1; pointer-events: auto; }
  .front.open .front-cta { display: none; }
}
@media (min-width: 900px) { .feat { flex-basis: 46%; } }
#ui:has(.front) .np-chip { display: none; }
/* phones: only show the needs that need attention (tap for all of them) — keeps the room and city visible */
@media (max-width: 640px) {
  .needs-mini { gap: 4px; padding: 6px 5px; }
  .needs-mini .need-ring { width: 34px; height: 34px; font-size: 15px; }
  .needs-mini .need-ring.ok { display: none; }
  .needs-mini.all-ok::after { content: '👍'; font-size: 18px; width: 34px; height: 26px; display: grid; place-items: center; }
}
.online-seg { gap: 5px; color: inherit; } .online-seg .cnt { font-weight: 900; }

/* =====================================================================================================
   POLISH LAYER — frosted glass, depth, springy motion, one icon language. Overrides the base styles above.
   ===================================================================================================== */
:root {
  --glass: rgba(255,255,255,.74); --glass-strong: rgba(255,255,255,.9); --glass-dark: rgba(13,19,34,.7);
  --glass-line: rgba(255,255,255,.65); --glass-line-dark: rgba(255,255,255,.12);
  --blur: blur(18px) saturate(170%);
  --lift: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 28px -6px rgba(10,20,40,.28), 0 2px 6px rgba(10,20,40,.08);
  --lift-dark: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 34px -8px rgba(0,0,0,.55);
  --spring: cubic-bezier(.2, 1.25, .35, 1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :root { --glass: rgba(255,255,255,.95); --glass-dark: rgba(13,19,34,.94); } }
/* soft cinematic vignette over the 3D world */
.labels::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(4,10,24,.28) 100%); }

/* glass surfaces */
.hud-top, .icon-btn, .needs-mini, .place, .chip-glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-line); box-shadow: var(--lift);
}
.hud-top { padding: 4px 4px 4px 14px; }
.hud-top .seg { border-right-color: rgba(15,23,32,.08); }
.hud-top .cash { background: linear-gradient(180deg, #1c2740, #0b1222); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.hud-top .cash .plus { background: linear-gradient(180deg, #ffd25a, #f2a900); box-shadow: 0 2px 6px rgba(242,169,0,.5); }
.icon-btn { border-radius: 15px; color: #1a2433; transition: transform .25s var(--spring), background .2s; }
.icon-btn svg.i { width: 21px; height: 21px; stroke-width: 2.1; }
.icon-btn:active, .seg:active, .app:active .ico, .li:active, .act:active, .chip:active, .person:active { transform: scale(.92); }
.needs-mini { padding: 7px 6px; border-radius: 18px; }
.need-ring > svg:not(.i) circle { fill: none; stroke-width: 4; }
.need-ring svg.i.nr { position: static; transform: none; width: 17px; height: 17px; stroke-width: 2.3; }
.need-ring:nth-child(1) { color: #F7931E; } .need-ring:nth-child(2) { color: #1E88E5; } .need-ring:nth-child(3) { color: #E0A400; }
.need-ring:nth-child(4) { color: #EC407A; } .need-ring:nth-child(5) { color: #10B5A5; } .need-ring:nth-child(6) { color: #8E5CF6; }
.me-pic { border-width: 2.5px; box-shadow: var(--lift), 0 0 0 3px var(--mood, #22a06b); }

/* bottom navigation: dark glass dock */
.nav-bottom { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line-dark); box-shadow: var(--lift-dark); border-radius: 26px; }
.nav-bottom button { transition: transform .25s var(--spring), background .2s, color .2s; }
.nav-bottom button:active { transform: scale(.9); }
.nav-bottom button.on { background: linear-gradient(180deg, #ffffff, #e9eef5); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.nav-bottom button svg.i { width: 22px; height: 22px; }

/* place card */
.place { border-radius: 24px; padding: 14px 12px 12px; animation: rise .38s var(--spring); }
.place .head .em { background: linear-gradient(160deg, #ffffff, #eef2f7); box-shadow: inset 0 0 0 1px rgba(15,23,32,.06); }
.act { background: rgba(244,246,249,.85); border: 1px solid rgba(15,23,32,.05); transition: transform .25s var(--spring), box-shadow .2s; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; }
.act.go { background: linear-gradient(170deg, #1d2944, #0b1222); box-shadow: 0 8px 18px -6px rgba(11,18,34,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.act.work { background: linear-gradient(170deg, #fff8e3, #ffefc2); }

/* busy bar + toasts */
.busy { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line-dark); box-shadow: var(--lift-dark); border-radius: 20px; animation: rise .35s var(--spring); }
.busy .bar i { background: linear-gradient(90deg, #13c48a, #ffd25a); box-shadow: 0 0 10px rgba(255,210,90,.6); }
.toast { background: var(--glass-dark); border: 1px solid var(--glass-line-dark); box-shadow: var(--lift-dark); border-radius: 16px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: drop .35s var(--spring); }

/* sheets */
.scrim { background: rgba(5,10,20,.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { border-radius: 28px 28px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset, 0 -24px 70px rgba(0,0,0,.32); animation: up .42s var(--spring); }
.sheet.dark { background: linear-gradient(180deg, #121b2f, #0b1222); }
.sheet .sh-head h2 { font-size: 21px; letter-spacing: -.4px; }
.x-btn { border-radius: 13px; transition: transform .2s var(--spring); }
.x-btn:active { transform: scale(.88); }
.li { background: #f5f7fa; border: 1px solid rgba(15,23,32,.04); transition: transform .25s var(--spring), background .15s; }
.li .em { box-shadow: 0 1px 2px rgba(10,20,40,.08), inset 0 0 0 1px rgba(15,23,32,.04); }

/* buttons: richer gloss */
.btn { border-radius: 15px; transition: transform .25s var(--spring), filter .15s, box-shadow .2s; position: relative; overflow: hidden; }
.btn.primary, .btn.gold, .btn.dark, .btn.red { box-shadow: 0 10px 22px -8px rgba(10,20,40,.45), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary { background: linear-gradient(180deg, #19c58c 0%, #0c9a6c 55%, #0a8a61 100%); }
.btn.gold { background: linear-gradient(180deg, #ffd65e 0%, #f7b21a 55%, #ec9f00 100%); }
.btn.dark { background: linear-gradient(180deg, #24304c, #121a2e); }
.btn.primary::after, .btn.gold::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)); pointer-events: none; border-radius: inherit; }
.btn:active { transform: scale(.96); filter: brightness(.97); }

/* phone: glossy app tiles with white line icons */
.app .ico { border-radius: 18px; box-shadow: 0 8px 18px -4px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.12); overflow: visible; transition: transform .25s var(--spring); }
.app .ico::before { content: ''; position: absolute; inset: 0 0 50% 0; border-radius: 18px 18px 40% 40% / 18px 18px 14px 14px; background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0)); pointer-events: none; }
.app .ico svg.i { width: 30px; height: 30px; color: #fff; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.app { text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* name tags & bubbles */
.nametag .nm { background: rgba(13,19,34,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 3px 9px; }
.nametag .nm.me { background: linear-gradient(180deg, rgba(25,197,140,.95), rgba(10,138,97,.95)); }
.bubble { border-radius: 16px; box-shadow: 0 8px 20px -6px rgba(10,20,40,.35); animation: pop .3s var(--spring); }

/* chat panel + dm card */
.chat-panel { background: rgba(255,255,255,.97); border-radius: 26px 26px 0 0; animation: up .42s var(--spring); }
.dm-notice { background: var(--glass-dark); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--glass-line-dark); box-shadow: var(--lift-dark); animation: npin .4s var(--spring); }
@keyframes rise { from { transform: translate(-50%, 18px) scale(.98); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* first-time tour */
.coach-card { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--safe-b)); z-index: 45; width: min(400px, calc(100vw - 24px)); padding: 14px 16px; border-radius: 22px;
  background: rgba(13,19,34,.86); color: #fff; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--lift-dark); animation: npin .45s var(--spring); }
.coach-card.high { bottom: auto; top: calc(118px + var(--safe-t)); }
#ui:has(.place) .coach-card:not(.high), #ui:has(.busy) .coach-card:not(.high) { bottom: calc(250px + var(--safe-b)); }
.coach-card h3 { font-size: 18px; margin: 6px 0 4px; }
.coach-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: #d6deea; font-weight: 600; }
.coach-card .cc-top { display: flex; justify-content: space-between; align-items: center; }
.coach-card .cc-step { font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--gold); }
.coach-card .cc-skip { font-size: 12.5px; font-weight: 800; color: #9fb0c8; padding: 6px 4px; }
.coach-card .cc-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.coach-card .cc-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); transition: width .25s; }
.coach-card .cc-dots i.on { width: 20px; background: var(--gold); } .coach-card .cc-dots i.past { background: rgba(255,210,90,.6); }
.coach-card .cc-wait { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--gold); }
.coach-card .cc-wait svg.i { width: 18px; height: 18px; animation: pulse 1.2s infinite; }
.coach-spot { position: fixed; z-index: 44; pointer-events: none; border-radius: 20px; border: 2.5px solid var(--gold); box-shadow: 0 0 0 4px rgba(255,184,28,.25), 0 0 24px rgba(255,184,28,.6); transition: left .25s, top .25s, width .25s, height .25s, opacity .2s; animation: spotPulse 1.4s ease-in-out infinite; }
@keyframes spotPulse { 50% { box-shadow: 0 0 0 9px rgba(255,184,28,.12), 0 0 30px rgba(255,184,28,.75); } }
.coach-card { padding: 12px 14px; width: min(370px, calc(100vw - 24px)); }
.coach-card h3 { font-size: 16px; margin: 2px 0 3px; }
.coach-card p { font-size: 13px; line-height: 1.38; margin-bottom: 8px; }
.coach-card .cc-dots { margin-bottom: 8px; }
.coach-card .btn { height: 42px; font-size: 15px; }
.busy { min-width: min(330px, calc(100vw - 32px)); }

/* first screen on computers: city behind, features on the left, sign-up on the right */
@media (min-width: 900px) {
  .front { align-items: center; padding: 32px 40px; background: linear-gradient(90deg, rgba(8,14,28,.72) 0%, rgba(8,14,28,.45) 45%, rgba(8,14,28,.15) 100%); }
  .front-col { width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: 'hero card' 'tease card' 'links card'; column-gap: 48px; align-items: start; }
  .front-hero { grid-area: hero; text-align: left; margin-bottom: 18px; }
  .front-hero .logo { align-items: flex-start; }
  .front-hero .logo .word { font-size: 44px; }
  .front-hero .tagline { font-size: 17px; max-width: 520px; }
  .front-hero .live-row { justify-content: flex-start; }
  .front-tease { grid-area: tease; margin: 0; }
  .front-card { grid-area: card; align-self: center; }
  .front-links { grid-area: links; justify-content: flex-start; margin-top: 16px; }
  .feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 0; }
  .feat { flex: none; padding: 14px 16px; flex-direction: row; align-items: flex-start; gap: 12px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .feat .fe { grid-row: span 2; font-size: 28px; line-height: 1; }
  .feat b { font-size: 15.5px; } .feat span { font-size: 13px; }
  .feat:last-child:nth-child(odd) { grid-column: span 2; }
  .fdots { display: none; }
}
@media (min-width: 900px) and (max-height: 760px) { .feat span { display: none; } .feat { grid-template-rows: auto; align-items: center; } .front-hero .logo .mark { width: 64px; height: 64px; font-size: 34px; } }
