:root {
  /* COTONOU LIFE theme: white and light blue, dark navy text — and a small touch of the Benin flag */
  --bg: #eef6fc;
  --surface: #ffffff;
  --surface-2: #f1f8fe;
  --ink: #0f1d33;
  --mist: #5b6b84;
  --line: rgba(15, 40, 80, 0.13);
  --glass: rgba(255, 255, 255, 0.95);
  --deep: #0369a1;           /* deep sky blue */
  --blue: #0ea5e9;           /* light blue */
  --blue-2: #38bdf8;
  --cyan: #7dd3fc;
  --purple: #0ea5e9;
  --purple-2: #38bdf8;
  --green: #0ea5e9;
  --green-2: #38bdf8;
  --yellow: #38bdf8;
  --red: #e11d48;
  --gold: #0369a1;
  --grad: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0284c7 100%);
  --glow: 0 0 14px rgba(14, 165, 233, .35);
  --glow-purple: 0 0 12px rgba(14, 165, 233, .25);
  --flag: linear-gradient(90deg, #008751 0 34%, #fcd116 34% 67%, #e8112d 67%);   /* the Benin touch */
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wax: radial-gradient(circle at 50% 50%, #7dd3fc 0 2px, transparent 2.5px 5px, #0ea5e9 5.5px 7px, transparent 7.5px),
    radial-gradient(circle at 0 0, #0ea5e9 0 2.5px, transparent 3px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
kbd { display: inline-block; min-width: 1.7em; padding: 0 0.45em; border-radius: 6px; border: 1px solid rgba(255,255,255,0.175); border-bottom-width: 2px; font: 600 0.78em/1.6 var(--text); text-align: center; background: var(--surface); }
.world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
.dim { color: var(--mist); }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; line-height: 0.86; font-family: var(--display); }
.wm-cotonou { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.wm-life { font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--green); letter-spacing: 0.02em; }
.wm-band { display: block; height: 14px; margin-top: 0.22em; background: var(--wax); background-size: 16px 16px; background-position: 0 0, 8px 8px; -webkit-mask: linear-gradient(90deg, #000 70%, transparent); mask: linear-gradient(90deg, #000 70%, transparent); }
.wordmark-lg { font-size: clamp(3rem, 8.4vw, 7.4rem); }
.wordmark-sm { font-size: 1.1rem; }
.wordmark-sm .wm-life { -webkit-text-stroke-width: 1px; }
.wordmark-sm .wm-band { height: 6px; background-size: 8px 8px; }

/* Buttons and fields */
.btn { border: 0; border-radius: 999px; padding: 0.85em 1.6em; font-weight: 600; cursor: pointer; transition: transform .12s, background .2s; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 26px -12px rgba(14,165,233,.9); }
.btn-primary:not(:disabled):hover { background: var(--green-2); }
.btn-ghost { background: var(--surface); border: 1px solid rgba(14,165,233,.45); color: var(--green); }
.btn-danger { background: var(--surface); color: #ff6b86; border: 1px solid rgba(255,59,92,.6); }
.btn-wide { width: 100%; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.link { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; cursor: pointer; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field input { width: 100%; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.hint { font-size: .8rem; color: var(--mist); margin-top: .3rem; }
.error { background: rgba(255,59,92,.1); border: 1px solid rgba(255,59,92,.4); color: #ff6b86; border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0 1rem; font-size: .9rem; }
.info { background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.35); border-radius: 12px; padding: .7rem .9rem; margin: .4rem 0 1rem; font-size: .9rem; }
.devcode { border: 1px dashed rgba(201,104,255,.6); background: rgba(14,165,233,.12); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; font-size: .85rem; }
.devcode strong { display: block; font: 600 1.6rem var(--display); letter-spacing: .3em; color: var(--gold); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; margin: .4rem 0 1rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--green); }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Welcome */
.vignette { position: fixed; inset: 0; pointer-events: none !important; background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.78) 34%, rgba(255,255,255,0.05) 66%, transparent), linear-gradient(0deg, rgba(255,255,255,.7), transparent 30%); }
.welcome { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.25rem, 7vw, 7rem); overflow-y: auto; }
.welcome-copy { max-width: 40rem; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.tagline { font: 600 clamp(1rem, 1.6vw, 1.25rem) var(--display); margin: 2rem 0 .75rem; }
.lede { color: var(--ink); max-width: 32rem; margin: 0 0 2rem; }
.welcome-foot { margin-top: 2rem; display: flex; gap: 2rem; flex-wrap: wrap; font-size: .8rem; color: var(--mist); }
.lang { position: fixed; top: 1.2rem; right: 1.4rem; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line); z-index: 5; }
.lang button { border: 0; background: none; color: var(--mist); font: 600 .78rem var(--text); padding: .3rem .7rem; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--green); color: #fff; }
.lang { align-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.lang-ic { padding: 0 .3rem 0 .45rem; font-size: .95rem; }
.lang button { font-size: .85rem; padding: .4rem .8rem; }
.l-short { display: none; }
@media (max-width: 480px) { .lang-ic { display: none; } }
@media (max-width: 420px) { .lang .l-long { display: none; } .lang .l-short { display: inline; } .lang button { padding: .4rem .75rem; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem !important; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.15rem; width: 2.4rem; height: 2.4rem; cursor: pointer; border-radius: 10px; }
.pw-eye:focus-visible { outline: 2px solid var(--blue); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Side sheet for auth and character */
.sheet { position: fixed; left: 0; top: 0; bottom: 0; width: min(460px, 100%); overflow-y: auto; padding: 2rem clamp(1.25rem, 3vw, 2.6rem) 2.5rem; background: var(--glass); backdrop-filter: blur(18px); border-right: 1px solid var(--line); animation: slide .45s cubic-bezier(.2,.7,.2,1) both; }
.sheet::before, .card::before, .panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
@keyframes slide { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 2.4rem; }
.back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.3rem; cursor: pointer; }
.sheet h1 { font: 600 clamp(1.4rem, 2.4vw, 1.8rem)/1.15 var(--display); margin: 0 0 .6rem; }
.sub { color: var(--mist); margin: 0 0 1.6rem; }
.alt { margin-top: 1.4rem; font-size: .9rem; color: var(--mist); display: flex; gap: .5rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .38rem .85rem; font-size: .85rem; cursor: pointer; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: .45rem; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.13); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 3px var(--green); border-color: rgba(255,255,255,0.125); }
.opt { margin-bottom: 1.1rem; }
.opt-label { font-size: .86rem; font-weight: 600; margin-bottom: .45rem; color: var(--ink); }

/* Cards (intro, kick, loading) */
.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.5); padding: 1rem; z-index: 20; }
.card { position: relative; overflow: hidden; width: min(34rem, 100%); padding: 2rem; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.15); animation: rise .4s ease both; }
.card h2 { font: 600 1.5rem/1.2 var(--display); margin: 0 0 .8rem; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.4rem; margin: 0 0 1.6rem; padding: 0; }
.keys div { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.keys dd { margin: 0; color: var(--mist); text-align: right; }

/* HUD */
.hud { position: fixed; inset: 0; pointer-events: none !important; text-shadow: 0 0 3px rgba(255,255,255,.95); }
.hud-tl { position: absolute; top: 1.2rem; left: 1.4rem; }
.hud-place { font: 600 1.1rem var(--display); }
.hud-meta { display: flex; gap: .8rem; font-size: .88rem; color: var(--ink); align-items: center; }
.hud-name { color: var(--green); font-weight: 600; }
.net { display: inline-flex; align-items: center; gap: .4rem; }
.net i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.net.online i { background: #19c26b; box-shadow: 0 0 8px #19c26b; }
.net.connecting i { background: var(--yellow); }
.net.offline i { background: var(--red); }
.minimap { position: absolute; left: 1.4rem; bottom: 1.4rem; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(14,165,233,.8), 0 0 0 7px rgba(255,255,255,.6), 0 16px 40px rgba(0,0,0,.3); }
.minimap canvas { width: 100%; height: 100%; display: block; }
.speedo { position: absolute; right: 1.6rem; bottom: 1.6rem; text-align: right; }
.speedo-num { font: 800 3.2rem/1 var(--display); letter-spacing: -.03em; }
.speedo-unit { color: var(--mist); font-size: .85rem; }
.prompt { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); display: flex; gap: .6rem; align-items: center; padding: .5rem 1.1rem .5rem .6rem; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--line); font-weight: 600; text-shadow: none; }
.prompt kbd { background: var(--green); color: #fff; border-color: var(--green); }
.hint-bar { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); font-size: .82rem; color: var(--ink); background: rgba(255,255,255,.7); padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.toasts { position: absolute; top: 5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; width: min(28rem, 92vw); }
.toast { padding: .8rem 1rem; border-radius: 14px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-left: 3px solid var(--green); text-shadow: none; animation: rise .35s ease both; }
.toast b { font-family: var(--display); font-weight: 600; }

/* Chat */
.chat { position: fixed; left: 1.4rem; bottom: calc(180px + 2.6rem); width: min(26rem, calc(100vw - 2.8rem)); }
.chat-lines { display: flex; flex-direction: column; gap: .15rem; max-height: 12rem; overflow: hidden; font-size: .88rem; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0,0,0,.9); }
.chat.open .chat-lines { overflow-y: auto; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; padding: .5rem .6rem; text-shadow: none; }
.chat-lines b { color: var(--green); margin-right: .4rem; }
.chat-lines .self b { color: var(--gold); }
.chat-lines .sys { color: var(--mist); font-style: italic; }
.chat input { width: 100%; padding: .6rem .8rem; border-radius: 0 0 14px 14px; border: 1px solid var(--green); background: var(--surface); outline: none; }
.chat-hint { font: inherit; font-size: .72rem; color: var(--mist); background: none; border: 0; padding: 0; cursor: pointer; pointer-events: auto; text-align: left; }
.chat-hint .tch, body.touch .chat-hint .k, body.touch .prompt kbd, body.touch .hint-bar { display: none; }
body.touch .chat-hint .tch { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: .85rem; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* Name tags */
.tags { position: fixed; inset: 0; pointer-events: none !important; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; display: flex; flex-direction: column; align-items: center; gap: .25rem; will-change: transform; }
.tag-name { font: 600 .8rem var(--text); padding: .05rem .55rem; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(14,165,233,.45); white-space: nowrap; }
.tag-bubble { max-width: 14rem; font-size: .84rem; padding: .35rem .65rem; border-radius: 12px 12px 12px 3px; background: var(--surface); border: 1px solid rgba(14,165,233,.35); box-shadow: 0 6px 18px rgba(0,0,0,.15); }

/* Menu */
.menu { position: fixed; inset: 0; display: flex; background: rgba(255,255,255,.55); z-index: 15; }
.menu-nav { position: relative; width: 280px; display: flex; flex-direction: column; gap: .5rem; padding: 1.8rem 1.4rem; background: var(--glass); backdrop-filter: blur(18px); border-right: 1px solid var(--line); }
.menu-nav::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
.menu-tabs { display: flex; flex-direction: column; margin: 1rem 0; }
.menu-tabs button { text-align: left; background: none; border: 0; padding: .6rem .8rem; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--ink); }
.menu-tabs button.on { background: rgba(14,165,233,.14); box-shadow: inset 3px 0 0 var(--green); }
.menu-body { flex: 1; overflow-y: auto; padding: 2rem clamp(1rem, 4vw, 3rem); }
.panel { position: relative; overflow: hidden; max-width: 40rem; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem 1.8rem; }
.panel h2 { font: 600 1.3rem var(--display); margin: 0 0 1rem; }
.panel h3 { font: 600 1rem var(--display); margin: 1.8rem 0 .8rem; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.facts div { display: flex; gap: 1rem; padding: .35rem 0; }
.facts dt { width: 9rem; color: var(--mist); }
.facts dd { margin: 0; }
table.controls { width: 100%; border-collapse: collapse; }
table.controls th { text-align: left; padding: .5rem 1rem .5rem 0; white-space: nowrap; }
table.controls td { color: var(--ink); padding: .5rem 0; }
table.controls tr + tr { border-top: 1px solid var(--line); }

/* Boot */
.boot { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; gap: 1rem; background: var(--surface); z-index: 30; }
.boot-mark { font: 800 1.6rem var(--display); }
.boot-bar { width: 220px; height: 3px; background: rgba(20,35,27,.1); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.boot-bar i { display: block; height: 100%; width: 40%; background: var(--flag); animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

@media (max-width: 760px) {
  .vignette { background: linear-gradient(0deg, rgba(255,255,255,.96) 10%, rgba(255,255,255,.65) 60%, rgba(255,255,255,0.1)); }
  .welcome { justify-content: flex-start; padding-top: 4.2rem; padding-bottom: 2rem; }
  .welcome-copy { margin-top: auto; }
  .sheet { width: 100%; }
  .keys { grid-template-columns: 1fr; }
  .minimap { width: 110px; height: 110px; left: auto; right: .8rem; top: 4rem; bottom: auto; }
  .chat { left: .6rem; right: .6rem; width: auto; bottom: 1rem; }
  .hint-bar { display: none; }
  .menu { flex-direction: column; overflow-y: auto; }
  .menu-nav { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== Everyday life: wallet, bottom bar, phone, shop, home, map, gestures ===== */
[hidden] { display: none !important; }
:root { --nav-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
.small { font-size: .8rem; }
.clock { font-variant-numeric: tabular-nums; color: var(--ink); }
.minimap { bottom: calc(var(--nav-h) + 1rem); }
.speedo { bottom: calc(var(--nav-h) + 1rem); }
.chat { bottom: calc(var(--nav-h) + 180px + 2.4rem); }
.hint-bar { bottom: calc(var(--nav-h) + .6rem); }
.chat-lines .sys { text-shadow: none; opacity: .85; }

.lifebar { position: absolute; top: 1rem; right: 1.2rem; }
.wallet { display: flex; align-items: baseline; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid rgba(14,165,233,.7); text-shadow: none; }
.wallet-amt { font: 700 1rem var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }

.bottomnav { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); z-index: 10; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; }
.bottomnav::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); border-radius: 20px 20px 0 0; }
.bottomnav button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem 0 .3rem; border: 0; background: none; color: var(--ink); font-size: .74rem; font-weight: 600; cursor: pointer; border-radius: 14px; }
.bottomnav button:hover { color: var(--green); background: rgba(14,165,233,.08); }

.toast { pointer-events: none; }

/* Phone */
.phone-wrap { position: fixed; inset: 0 0 var(--nav-h) 0; display: grid; place-items: center; z-index: 18; background: rgba(20,35,27,.25); animation: rise .2s ease both; }
.phone { position: relative; width: min(380px, calc(100% - 1.5rem)); height: min(720px, calc(100% - 1.5rem)); display: flex; flex-direction: column; overflow: hidden; border-radius: 34px; background: var(--surface-2); border: 8px solid #e3e8e5; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 80px rgba(0,0,0,.35); }
.phone::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem .4rem; font-size: .82rem; }
.phone-status b { font: 600 .9rem var(--display); }
.phone-x { border: 0; background: none; color: var(--mist); font-size: 1rem; cursor: pointer; }
.phone-back { align-self: flex-start; margin: 0 .6rem .2rem; border: 0; background: none; color: var(--green); font-weight: 600; cursor: pointer; }
.phone-screen { flex: 1; overflow-y: auto; padding: .4rem 1rem 1.2rem; }
.phone-screen h3 { margin: 1.2rem 0 .5rem; font: 700 .95rem var(--display); }
.phone-balance, .bank-card { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.phone-balance strong, .bank-card strong { font: 800 1.5rem var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.bank-card { background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.bank-stats { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; color: var(--ink); }
.daily { margin: .8rem 0; }
.phone-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .6rem; padding: 1.2rem 0; }
.app-icon { display: flex; flex-direction: column; align-items: center; gap: .35rem; border: 0; background: none; font-size: .78rem; cursor: pointer; }
.app-glyph { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.app-bank { background: #0ea5e9; } .app-shop { background: #ff3b5c; } .app-wardrobe { background: #7c3aed; } .app-home { background: #c2410c; } .app-map { background: #1d4ed8; }
.bank-form, .bank-adult { display: flex; flex-direction: column; gap: .5rem; }
.bank-adult { padding: .8rem; border-radius: 14px; background: rgba(14,165,233,.12); border: 1px solid rgba(201,104,255,.3); }
.phone input { width: 100%; padding: .65rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.phone input:focus { outline: none; border-color: var(--green); }
.bank-adult .row input { flex: 1; width: auto; }
.ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ledger li { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.ledger li > div { display: flex; flex-direction: column; min-width: 0; }
.ledger b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger b.pos { color: #00804c; } .ledger b.neg { color: #b0102a; }
.cats { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem 0 .8rem; scrollbar-width: none; }
.cats button { flex: none; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .8rem; cursor: pointer; }
.cats button.on { background: var(--green); border-color: var(--green); color: #fff; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.item-card { display: flex; flex-direction: column; gap: .3rem; padding: .6rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.item-thumb { height: 92px; border-radius: 10px; display: grid; place-items: center; background: #eef3f0; overflow: hidden; }
.item-thumb img { width: 92px; height: 92px; }
.swatch-big { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.125); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.swatch-sm { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.125); box-shadow: 0 0 0 1px var(--line); }
.item-name { font-size: .82rem; font-weight: 600; line-height: 1.25; min-height: 2.1em; }
.item-price { font: 700 .82rem var(--display); color: var(--gold); }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.people li { display: flex; flex-direction: column; gap: .45rem; padding: .6rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tag-on { font-size: .72rem; color: var(--green); font-weight: 700; }

/* City map */
.worldmap { position: fixed; inset: 0; display: flex; flex-direction: column; background: rgba(255,255,255,.96); z-index: 25; }
.worldmap-head { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.worldmap-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--flag); }
.worldmap-head h2 { font: 600 1.2rem var(--display); margin: 0; }
.worldmap-head .dim { flex: 1; }
.worldmap-body { flex: 1; display: grid; place-items: center; padding: 1rem; min-height: 0; }
.worldmap-body canvas { max-width: calc(100vw - 2rem); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 12px; cursor: crosshair; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

/* Gestures */
.emote-menu { position: fixed; right: 1.2rem; bottom: calc(var(--nav-h) + 6.5rem); z-index: 12; display: grid; grid-template-columns: repeat(2, minmax(7rem, auto)); gap: .4rem; padding: .7rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.emote-menu::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); border-radius: 16px 16px 0 0; }
.emote-menu button { padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: .85rem; cursor: pointer; }
.emote-menu button:hover { background: var(--surface-2); border-color: var(--green); }

/* Home panel */
.homepanel { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); width: min(640px, calc(100% - 2rem)); z-index: 12; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem .8rem; border-radius: 18px; background: rgba(255,255,255,.95); border: 1px solid var(--line); overflow: hidden; }
.homepanel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
.home-title strong { font: 700 1.05rem var(--display); }
.home-hint { font-size: .86rem; color: var(--ink); }
.home-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.storage { display: flex; flex-direction: column; gap: .35rem; max-height: 28vh; overflow-y: auto; }
.storage-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .5rem; border-radius: 10px; background: rgba(20,35,27,.05); font-size: .88rem; }

@media (max-width: 760px) {
  .lifebar { top: .6rem; right: .6rem; }
  .minimap { top: 3.6rem; bottom: auto; }
  .speedo { bottom: auto; top: 11rem; right: .8rem; }
  .speedo-num { font-size: 2rem; }
  .chat { bottom: calc(var(--nav-h) + .6rem); }
  .phone-wrap { inset: 0 0 var(--nav-h) 0; background: var(--surface-2); }
  .phone { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .homepanel { top: auto; bottom: calc(var(--nav-h) + .6rem); }
  .emote-menu { right: .6rem; }
}

/* Short black fade when going in or out of a building */
.fade-cut { position: fixed; inset: 0; background: #000; z-index: 40; pointer-events: none; animation: fadecut .9s ease both; }
@keyframes fadecut { 0% { opacity: 1; } 35% { opacity: 1; } 100% { opacity: 0; } }

/* ===== Premium phone (own design: floating island, glass widgets, dock) ===== */
.phone.premium { width: min(360px, calc(100% - 1.5rem)); height: min(740px, calc(100% - 1.5rem)); border-radius: 52px; border: 11px solid #0b0b0f;
  background: radial-gradient(120% 70% at 10% 0%, rgba(14,165,233,.45) 0%, rgba(14,165,233,0) 60%), radial-gradient(90% 60% at 100% 30%, rgba(56,189,248,.22) 0%, rgba(56,189,248,0) 60%), linear-gradient(170deg, #0d0d12 0%, #050506 100%);
  color: #fff; box-shadow: 0 0 0 2px #2b2b33, 0 0 0 3px #55555f, 0 40px 90px rgba(0,0,0,.55); }
.phone-wrap.opening .phone.premium { animation: phoneUp .35s cubic-bezier(.2,.8,.2,1) both; }
.phone.premium.is-app { background: var(--surface-2); color: var(--ink); }
.phone.premium::before { display: none; }
@keyframes phoneUp { from { transform: translateY(40px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #000; z-index: 3;
  display: flex; align-items: center; gap: .55rem; padding: 0 14px; overflow: hidden; transition: width .45s cubic-bezier(.2,.9,.2,1.1), height .45s cubic-bezier(.2,.9,.2,1.1), border-radius .45s; }
.island-cam { flex: none; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a7a, #0a0d1a 70%); margin-left: auto; order: 2; }
.island-text { color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .2s; order: 1; }
.island.open { width: calc(100% - 28px); height: 44px; border-radius: 24px; }
.island.open .island-text { opacity: 1; transition-delay: .2s; }
.phone.premium .phone-status { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 6px; height: 46px; font-size: .86rem; font-weight: 600; }
.ps-icons { display: flex; gap: 6px; align-items: center; } .ps-icons svg { fill: currentColor; }
.phone.premium .phone-screen { flex: 1; overflow-y: auto; padding: .6rem 1.1rem 1rem; scrollbar-width: none; }
.app-bar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: .2rem .6rem .4rem; }
.app-bar b { text-align: center; font: 600 1rem var(--display); }
.app-back { border: 0; background: rgba(255,255,255,.08); width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--green); }
.home-bar { flex: none; align-self: center; width: 130px; height: 5px; border-radius: 3px; border: 0; margin: 6px 0 10px; background: rgba(255,255,255,.75); cursor: pointer; }
.is-app .home-bar { background: rgba(20,35,27,.35); }
.widget-time { text-align: center; margin: .6rem 0 1rem; }
.widget-time b { display: block; font: 300 3.6rem/1 var(--display); letter-spacing: -.02em; }
.widget-time span { font-size: .85rem; opacity: .8; }
.widget-balance { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .9rem 1rem; border-radius: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,0.06); backdrop-filter: blur(16px); color: #fff; cursor: pointer; text-align: left; }
.widget-balance span { font-size: .78rem; opacity: .85; }
.widget-balance strong { font: 700 1.5rem var(--display); color: #9cc6ff; font-variant-numeric: tabular-nums; }
.widget-balance em { font-style: normal; font-size: .72rem; background: #0ea5e9; color: var(--ink); padding: .1rem .5rem; border-radius: 999px; margin-top: .3rem; font-weight: 700; }
.phone.premium .phone-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem .4rem; padding: 1.4rem 0 1rem; }
.phone.premium .app-icon { color: #fff; font-size: .7rem; gap: .35rem; }
.app-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.phone.premium .app-glyph { position: relative; width: 58px; height: 58px; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px rgba(0,0,0,.25); }
.app-bank { background: linear-gradient(145deg, #12b076, #1458c4); } .app-shop { background: linear-gradient(145deg, #ff4d63, #c20d26); }
.app-wardrobe { background: linear-gradient(145deg, #9b5cff, #5b21b6); } .app-home { background: linear-gradient(145deg, #ff9a3c, #c2410c); }
.app-map { background: linear-gradient(145deg, #4c8dff, #1d4ed8); } .app-rides { background: linear-gradient(145deg, #ffd84d, #e0a800); color: #14181c; }
.app-jobs { background: linear-gradient(145deg, #5f6b75, #2b333a); } .app-messages { background: linear-gradient(145deg, #34d399, #059669); }
.app-camera { background: linear-gradient(145deg, #9ca3af, #4b5563); }
.soon-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #0ea5e9; border: 2px solid rgba(255,255,255,0.15); }
.dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; padding: .7rem .5rem; margin-top: .4rem; border-radius: 28px; background: rgba(255,255,255,0.07); backdrop-filter: blur(18px); }
.soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 3rem 1rem; }
.soon .app-glyph { width: 84px; height: 84px; border-radius: 24px; color: #fff; display: grid; place-items: center; }
.soon .app-glyph svg { width: 40px; height: 40px; }
.soon h3 { margin: .4rem 0 0; font: 700 1.3rem var(--display); }
.soon-tag { font-size: .75rem; font-weight: 700; background: #0ea5e9; padding: .25rem .7rem; border-radius: 999px; }
@media (max-width: 760px) { .phone.premium { border-width: 0; border-radius: 0; } .island { top: 8px; } }

/* ---------- Jobs (Step 1) ---------- */
.job-card { position: absolute; top: 5.2rem; right: 1.2rem; width: min(21rem, calc(100vw - 2rem)); display: flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem; border-radius: 18px; background: rgba(255,255,255,.94); border: 1px solid rgba(14,165,233,.8);
  box-shadow: 0 14px 36px rgba(0,0,0,.22); text-shadow: none; pointer-events: auto; animation: rise .35s ease both; z-index: 5; }
.job-ico { font-size: 1.6rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px; background: var(--yellow); flex: none; }
.job-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.job-text b { font: 600 .82rem var(--display); }
.job-text span { font-size: .9rem; }
.job-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-variant-numeric: tabular-nums; }
.job-meta strong { color: var(--gold); font: 700 .85rem var(--display); white-space: nowrap; }
.job-meta span { color: var(--mist); font-size: .8rem; }
.job-x { border: 0; background: rgba(20,35,27,.07); border-radius: 999px; min-width: 2rem; height: 2rem; padding: 0 .6rem; cursor: pointer; font: 600 .78rem var(--text); color: var(--ink); white-space: nowrap; }
.job-x:hover { background: rgba(255,59,92,.12); color: var(--red); }
.job-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.job-row { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: 16px; background: rgba(20,35,27,.04); border: 1px solid var(--line); }
.job-big { font-size: 1.7rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); flex: none; }
.job-info { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; gap: .1rem; }
.job-pay { color: var(--gold); font: 700 .78rem var(--display); }
.job-now { display: flex; gap: .6rem; align-items: center; padding: .7rem; border-radius: 16px; background: var(--surface-2); border: 1px solid rgba(14,165,233,.9); }
.job-now > span { font-size: 1.5rem; }
.job-now > div { display: flex; flex-direction: column; flex: 1; }
@media (max-width: 720px) { .job-card { top: 4.4rem; right: .6rem; } }

/* ---------- Garage, dealer, fuel (Step 2) ---------- */
.fuel { display: flex; align-items: center; gap: .35rem; justify-content: flex-end; margin-top: .3rem; font-size: .85rem; }
.fuel i { display: block; width: 5.5rem; height: .45rem; border-radius: 999px; background: rgba(20,35,27,.15); overflow: hidden; }
.fuel b { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .3s; }
.fuel.low b { background: var(--red); }
.dealer { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: rgba(255,255,255,.97); color: var(--ink); text-shadow: none; pointer-events: auto; animation: rise .3s ease both; }
.dealer-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); background: #14181c; color: #fff; }
.dealer-head h2 { margin: 0; font: 800 1.3rem var(--display); color: #d4af37; letter-spacing: .02em; }
.dealer-head .dim { color: #b8c0c6; }
.dealer-head > div { flex: 1; }
.dealer-tabs { display: flex; gap: .4rem; padding: .7rem 1.4rem 0; }
.dealer-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45rem 1rem; font: 600 .9rem var(--text); cursor: pointer; color: var(--ink); }
.dealer-tabs button.on { background: #14181c; color: #fff; border-color: rgba(255,255,255,0.15); }
.dealer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(16rem, 22rem) 1fr; gap: 1rem; padding: 1rem 1.4rem 1.4rem; }
.dealer-list { overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.dl-card { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.dl-card.on { border-color: #d4af37; box-shadow: 0 0 0 2px rgba(212,175,55,.45); }
.dl-kind { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 10px; background: #f1ede4; font-size: 1.3rem; flex: none; }
.dl-name { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.dl-name small { color: var(--mist); }
.dl-price { font: 700 .85rem var(--display); color: var(--gold); white-space: nowrap; }
.dealer-view { display: flex; flex-direction: column; min-height: 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.dealer-stage { flex: 1; min-height: 12rem; background: radial-gradient(circle at 50% 70%, var(--surface), #e7e2d8); }
.dealer-canvas { width: 100%; height: 100%; display: block; }
.dealer-info { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; overflow-y: auto; max-height: 50%; }
.dealer-info h3 { margin: 0; font: 700 1.2rem var(--display); }
.dealer-info h4 { margin: .4rem 0 0; font-size: .85rem; color: var(--mist); }
.dl-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .9rem; }
.dl-paints { display: flex; flex-wrap: wrap; gap: .4rem; }
.dl-paints .sw { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.105); cursor: pointer; padding: 0; }
.dl-paints .sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d4af37; }
.garage-row { display: flex; gap: .7rem; align-items: center; padding: .7rem; border-radius: 16px; background: rgba(20,35,27,.04); border: 1px solid var(--line); }
.garage-row .dl-kind { width: 2.6rem; height: 2.6rem; }
.garage-row .fuel { justify-content: flex-start; }
.garage-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
/* 7 Nov: cars with their photo; on phones a vertical list, tap a car to open its page (3D, colours, buy) */
.dl-photo { padding: .55rem .9rem .55rem .55rem; border-radius: 18px; }
.dl-thumb { width: 6.2rem; height: 3.6rem; object-fit: contain; flex: none; border-radius: 12px; }
.dl-photo .dl-name b { font-size: 1rem; }
.dl-photo .dl-name small { font-style: italic; }
.dl-own { font-style: normal; color: #16a34a; font-size: .8rem; }
.dl-back { display: none; }
@media (max-width: 760px), (orientation: portrait) {
  .dealer-head { padding: .8rem 1rem; }
  .dealer-tabs { padding: .6rem 1rem 0; overflow-x: auto; }
  .dealer-body { display: block; overflow-y: auto; padding: .7rem 1rem 1.2rem; -webkit-overflow-scrolling: touch; }
  .dealer-list { overflow: visible; gap: .55rem; }
  .dl-card { min-width: 0; }
  .dealer-view { display: none; }
  .dealer.open .dealer-list { display: none; }
  .dealer.open .dealer-view { display: flex; min-height: calc(100dvh - 9rem); }
  .dealer.open .dealer-stage { min-height: 15rem; flex: none; height: 38dvh; }
  .dealer.open .dealer-info { max-height: none; }
  .dl-back { display: block; align-self: flex-start; margin: .6rem .8rem 0; border: 0; background: #14181c; color: #fff; border-radius: 999px; padding: .45rem 1rem; font: 700 .9rem var(--text); }
}
.app-garage { background: linear-gradient(145deg, #3a3f45, #14181c); color: #d4af37; }

/* ---------- Homes (Step 3) ---------- */
.door-menu { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(24rem, 92vw); display: flex; flex-direction: column; gap: .6rem;
  padding: 1.2rem; border-radius: 22px; background: rgba(255,255,255,.97); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.3); text-shadow: none; pointer-events: auto; z-index: 25; animation: rise .3s ease both; }
.door-menu h3 { margin: 0 0 .2rem; font: 700 1.1rem var(--display); }
.style-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .6rem; }
.style-row .sw { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.13); cursor: pointer; padding: 0; }
.style-row .sw.on, .style-row .chip.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--green); }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .3rem .7rem; font: 600 .78rem var(--text); cursor: pointer; color: var(--ink); }
.key-form { display: flex; gap: .4rem; margin-top: .5rem; }
.key-form input { flex: 1; min-width: 0; padding: .4rem .6rem; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-size: .85rem; }
.key-chip { display: inline-flex; align-items: center; gap: .3rem; margin: .35rem .3rem 0 0; padding: .2rem .5rem; border-radius: 999px; background: var(--surface-2); font-size: .78rem; }
.key-chip button { border: 0; background: none; cursor: pointer; color: var(--red); font-size: .75rem; }

/* ---------- Mall, market, energy (Step 4) ---------- */
.energy { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; justify-content: flex-end; font-size: .8rem; text-shadow: none; }
.energy i { display: block; width: 5.5rem; height: .4rem; border-radius: 999px; background: rgba(20,35,27,.15); overflow: hidden; }
.energy b { display: block; height: 100%; width: 100%; background: #66a6ff; border-radius: 999px; transition: width .4s; }
.energy.low b { background: var(--red); }
.energy-big { display: flex; align-items: center; gap: .6rem; padding: .7rem; border-radius: 14px; background: var(--surface-2); margin-bottom: .6rem; }
.energy-big i { flex: 1; height: .55rem; border-radius: 999px; background: rgba(20,35,27,.12); overflow: hidden; }
.energy-big b { display: block; height: 100%; background: #66a6ff; }
.mall .dealer-body.no-preview { grid-template-columns: 1fr; }
.mall-list { padding-right: .3rem; }
.mall-list h4 { margin: .8rem 0 .3rem; font-size: .82rem; color: var(--mist); text-transform: uppercase; letter-spacing: .05em; }
.mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.mall-card { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.mall-card.on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(14,165,233,.3); }
.mall-card b { font-size: .82rem; line-height: 1.2; }
.mall-card small { color: var(--gold); font-weight: 700; }
.mall-try { display: flex; flex-direction: column; align-items: center; gap: .25rem; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.mall .swatch-big { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: block; border: 1px solid var(--line); }
.phone-mini { width: 2.2rem; height: 3.8rem; border-radius: 9px; border: 4px solid; background: linear-gradient(170deg, #0d3b2c, #0b1a2e); }

/* ---------- Step 5: friends, messages, Zémi Go, camera, CotoGram ---------- */
body.photo-mode #ui > *:not(.phone-wrap) { visibility: hidden; }
.bottomnav button { position: relative; }
.nav-badge, .app-glyph .badge { position: absolute; top: -4px; right: 6px; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: var(--red); color: #fff; font: 700 .7rem/1.15rem var(--text); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.app-glyph { position: relative; }
.app-glyph .badge { top: -6px; right: -6px; }
.app-friends { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.app-feed { background: linear-gradient(145deg, #f97316, #db2777 60%, #7c3aed); }
.ride-card { top: 10.4rem; border-color: rgba(14,165,233,.6); }
.job-card .btn { white-space: nowrap; }
.ride-offers { position: absolute; left: 50%; top: 5.2rem; transform: translateX(-50%); width: min(30rem, calc(100vw - 2rem)); display: flex; flex-direction: column; gap: .5rem; pointer-events: auto; z-index: 6; }
.ride-offer { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 18px; background: rgba(255,255,255,.96); border: 2px solid var(--green); box-shadow: 0 14px 36px rgba(0,0,0,.25); text-shadow: none; animation: rise .3s ease both; }
.soc-add, .chat-send { display: flex; gap: .4rem; margin: .2rem 0 .6rem; }
.soc-add input, .chat-send input { flex: 1; min-width: 0; }
.soc-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; color: inherit; cursor: default; }
button.soc-row { cursor: pointer; }
.soc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.soc-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-side { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.soc-side .badge { position: static; display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 999px; background: var(--green); color: #fff; font: 700 .72rem/1.2rem var(--text); text-align: center; font-style: normal; }
.soc-more { display: flex; gap: .4rem; flex-wrap: wrap; padding: .3rem 0 .6rem 2.8rem; }
.av { position: relative; width: 2.3rem; height: 2.3rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #66a6ff, #1458c4); color: #fff; font: 700 1rem var(--display); }
.av .on { position: absolute; right: -1px; bottom: -1px; width: .7rem; height: .7rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; }
.soc-chips { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem 0 .7rem; }
.soc-chips button { display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 0; background: none; font: .72rem var(--text); color: var(--ink); cursor: pointer; min-width: 3.4rem; }
.chat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.chat-list { display: flex; flex-direction: column; gap: .35rem; max-height: 46vh; overflow-y: auto; padding: .4rem .1rem; }
.bubble { align-self: flex-start; max-width: 80%; padding: .45rem .7rem; border-radius: 16px 16px 16px 4px; background: #eef1ee; display: flex; flex-direction: column; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: var(--green); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble time { font-size: .65rem; opacity: .65; align-self: flex-end; }
.center { text-align: center; }
.pos { color: var(--green); }
.zg-hero { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 16px; background: linear-gradient(135deg, #bae6fd, #7dd3fc); color: var(--ink); margin: .5rem 0 .7rem; }
.zg-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.zg-kinds button, .zg-dests button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: .55rem .6rem; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.zg-kinds button span { font-size: 1.4rem; }
.zg-kinds button small, .zg-dests button small { color: var(--mist); font-size: .72rem; }
.zg-kinds .on, .zg-dests .on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(14,165,233,.3); }
.zg-dests { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; max-height: 30vh; overflow-y: auto; margin-bottom: .7rem; }
.zg-dests button { font-size: .85rem; }
.switch-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem .2rem; font-weight: 600; }
.switch { width: 3rem; height: 1.7rem; border-radius: 999px; border: 0; background: #cbd5d0; position: relative; cursor: pointer; transition: background .2s; }
.switch i { position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--surface); transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--green); }
.switch.on i { left: 1.5rem; }
.cam-view { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #14181c; display: grid; place-items: center; text-align: center; padding: 0; }
.cam-view img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-view .dim { color: #b8c0c6; padding: 1rem; }
.cam-btns { justify-content: center; }
.cam-roll { display: flex; gap: .35rem; overflow-x: auto; margin-top: .6rem; }
.cam-roll button { border: 0; padding: 0; border-radius: 8px; overflow: hidden; width: 3.6rem; height: 2.7rem; flex: none; cursor: pointer; }
.cam-roll img { width: 100%; height: 100%; object-fit: cover; }
.post-new { display: flex; flex-direction: column; gap: .4rem; padding: .6rem; border-radius: 16px; background: rgba(20,35,27,.04); border: 1px solid var(--line); margin-bottom: .8rem; }
.post-new img { width: 100%; border-radius: 12px; }
.post-new textarea { width: 100%; resize: none; font: inherit; border-radius: 10px; border: 1px solid var(--line); padding: .5rem; box-sizing: border-box; }
.post { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); margin-bottom: .8rem; overflow: hidden; }
.post header { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; }
.post header b { flex: 1; }
.post img { width: 100%; display: block; }
.post p { margin: .5rem .8rem; }
.post footer { padding: .2rem .6rem .6rem; }
.post-more { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--mist); }
.like { border: 0; background: none; font: 600 1rem var(--text); cursor: pointer; color: var(--ink); padding: .2rem .3rem; }
.like.on { color: var(--red); }
@media (max-width: 720px) { .ride-card { top: 9.2rem; } .ride-offers { top: 4.4rem; } }

/* ---------- Steps 6–7: crew tags, weather, settings, events ---------- */
.crew-tag { font-style: normal; font-weight: 800; color: #0ea5e9; background: #14231b; border-radius: 6px; padding: 0 .3rem; margin-right: .3rem; font-size: .85em; }
.app-events { background: linear-gradient(145deg, #fb7185, #e11d48); }
.app-crew { background: linear-gradient(145deg, #4b5563, #111827); color: #0ea5e9; }
.app-weather { background: linear-gradient(145deg, #7dd3fc, #0284c7); }
.app-settings { background: linear-gradient(145deg, #9ca3af, #4b5563); }
.wx-now { display: flex; flex-direction: column; align-items: center; padding: 1rem; border-radius: 18px; background: linear-gradient(160deg, #e0f2fe, #bae6fd); margin-bottom: .8rem; }
.wx-now span { font-size: 3.4rem; line-height: 1.1; }
.wx-now b { font: 700 1.3rem var(--display); }
.wx-next { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; text-align: center; margin-bottom: .6rem; }
.wx-next div { display: flex; flex-direction: column; padding: .4rem .1rem; border-radius: 12px; background: rgba(20,35,27,.05); }
.wx-next span { font-size: 1.4rem; }
.wx-next small { font-size: .62rem; color: var(--mist); }
.wp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.wp-grid button { aspect-ratio: 9 / 16; border-radius: 14px; border: 2px solid rgba(255,255,255,0.09); cursor: pointer; }
.wp-grid button.on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,165,233,.3); }
.door-menu .zg-dests { max-height: 40vh; }

/* ---------- Phones and tablets: touch controls and a layout for every screen ---------- */
:root { --safe-b: env(safe-area-inset-bottom, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-l: env(safe-area-inset-left, 0px); }
.touch-ui { position: absolute; inset: 0; pointer-events: none !important; z-index: 4; }
.tc-stick { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,.6); }
.tc-stick i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.tc-buttons { position: absolute; right: calc(.8rem + var(--safe-r)); bottom: calc(var(--nav-h) + 1rem + var(--safe-b)); display: grid; grid-template-columns: repeat(2, 64px); grid-auto-rows: 64px; gap: .6rem; pointer-events: auto; }
.tc-btn { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: rgba(20,35,27,.45); color: #fff; font: 800 1.4rem var(--display); -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none; backdrop-filter: blur(4px); }
.tc-btn.down, .tc-btn.on { background: rgba(14,165,233,.85); }
.tc-act { grid-column: 2; grid-row: 2; width: 74px; height: 74px; margin: -5px; background: rgba(14,165,233,.8); }
.tc-jump { grid-column: 1; grid-row: 2; }
.tc-run { grid-column: 2; grid-row: 1; }
.tc-shoot { grid-column: 1; grid-row: 1; background: rgba(30,58,138,.75); }
.tc-arrest { grid-column: 1; grid-row: 3; background: rgba(30,58,138,.75); }
body.touch .hint-bar { display: none; }
body.touch .prompt { cursor: pointer; bottom: calc(var(--nav-h) + 11rem); }
body.touch .speedo { right: calc(10.5rem + var(--safe-r)); bottom: calc(var(--nav-h) + 1rem); top: auto; }
@media (max-width: 760px) {
  .toasts { top: 6.2rem; width: calc(100vw - 1.2rem); }
  .toast { font-size: .88rem; padding: .6rem .8rem; }
  .job-card, .ride-card { left: .6rem; right: .6rem; width: auto; }
  .ride-card { top: 10.6rem; }
  .ride-offers { left: .6rem; right: .6rem; transform: none; width: auto; }
  .door-menu { width: calc(100vw - 1.2rem); max-height: 80vh; overflow-y: auto; }
  .dealer-head { padding: .7rem .8rem; flex-wrap: wrap; gap: .5rem; }
  .dealer-head h2 { font-size: 1.05rem; }
  .dealer-body { padding: .6rem; }
  .chat .chat-lines { max-height: 22vh; }
}
/* phones held sideways (short screens) */
@media (max-height: 520px) and (orientation: landscape) {
  .minimap { width: 96px; height: 96px; top: .6rem; left: auto; bottom: auto; right: calc(9rem + var(--safe-r)); }
  .tc-buttons { grid-template-columns: repeat(2, 54px); grid-auto-rows: 54px; bottom: calc(var(--nav-h) + .4rem); }
  .tc-btn { width: 54px; height: 54px; font-size: 1.1rem; }
  .tc-act { width: 62px; height: 62px; }
  .phone-wrap { inset: 0; }
  .phone.premium { height: 100%; border-radius: 0; border: 0; width: min(420px, 100%); }
  .chat .chat-lines { max-height: 30vh; }
}
/* big screens and TVs */
@media (min-width: 1600px) { html { font-size: 18px; } }

/* ---------- Steps 8–9: police, flights, businesses, cards, translate ---------- */
.wanted { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 50%; transform: translateX(-50%); z-index: 6; padding: .45rem .9rem; border-radius: 999px; background: rgba(20,35,27,.86); color: #fff; font-weight: 600; font-size: .9rem; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.wanted .stars { color: var(--yellow); letter-spacing: .1em; font-size: 1.05rem; animation: blink 1s steps(2) infinite; }
.wanted.duty { background: #1e3a8a; }
.wanted kbd { color: var(--ink); }
@keyframes blink { 50% { opacity: .55; } }
.tag-status { font-size: .72rem; line-height: 1; color: var(--yellow); text-shadow: 0 1px 2px #000; text-align: center; margin-bottom: 2px; }
.tag-status.duty { color: #93c5fd; }
.flight { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 1rem; background: linear-gradient(180deg, #4c8dff, #bfe0ff); color: #fff; font: 600 1.1rem var(--display); text-align: center; animation: rise .4s ease both; }
.flight.landing { animation: fadeout .9s ease forwards; }
.flight-sky { position: relative; width: min(90vw, 520px); height: 180px; overflow: hidden; }
.flight .plane { position: absolute; left: 50%; top: 50%; font-size: 4rem; transform: translate(-50%, -50%) rotate(-8deg); animation: bob 1.6s ease-in-out infinite; }
.flight .cloud { position: absolute; width: 120px; height: 40px; border-radius: 40px; background: rgba(255,255,255,.85); animation: drift 2.4s linear infinite; }
.flight .c1 { top: 20px; } .flight .c2 { top: 90px; animation-delay: -.8s; width: 160px; } .flight .c3 { top: 140px; animation-delay: -1.6s; width: 90px; }
@keyframes drift { from { left: 110%; } to { left: -40%; } }
@keyframes bob { 50% { transform: translate(-50%, -58%) rotate(-4deg); } }
@keyframes fadeout { to { opacity: 0; } }
.screen-flash { position: absolute; inset: 0; z-index: 40; pointer-events: none; opacity: .45; animation: fadeout .6s ease forwards; }
.biz-card { border: 1px solid var(--line); border-radius: 14px; padding: .7rem; margin: .6rem 0; background: var(--surface); }
.biz-head { display: flex; gap: .6rem; align-items: center; }
.biz-till { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.biz-till strong { font: 600 1.15rem var(--display); color: var(--green); }
.biz-till small { color: var(--mist); }
.bubble.card { display: flex; flex-direction: column; gap: .15rem; border-left: 3px solid var(--yellow); }
.bubble .mini { align-self: flex-start; margin-top: .25rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .72rem; cursor: pointer; color: var(--ink); }
.bubble .tr { display: block; font-size: .82rem; opacity: .8; margin-top: .2rem; }
.card-share { margin-left: .4rem; }
.steal { color: var(--red); border-color: rgba(255,59,92,.35); }
.app-business { background: linear-gradient(145deg, #66a6ff, #6b4e00); }
.door-menu { max-height: calc(100dvh - 7rem); overflow-y: auto; overscroll-behavior: contain; }
.door-menu .job-list { max-height: none; }
/* light wallpapers: dark text so the clock and app names stay readable */
.wp-light .widget-time, .wp-light .widget-time span, .phone.premium .wp-light .app-icon, .wp-light .widget-balance span { color: #101326 !important; text-shadow: none !important; }
.wp-light .widget-balance { background: rgba(255,255,255,.7) !important; border-color: rgba(255,255,255,0.08) !important; }
.wp-light .widget-balance strong { color: var(--gold) !important; }

/* ---------- Your life: traits, dream, rules, birth lottery ---------- */
.life-dots { display: flex; gap: .35rem; margin: -.2rem 0 .9rem; }
.life-dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(20,35,27,.12); }
.life-dots i.on { background: var(--green); }
.life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-bottom: 4.5rem; }
.life-card { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-align: left; padding: .75rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.life-card.on, .life-row.on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,165,233,.18); background: var(--surface-2); }
.life-card b { font-size: .95rem; }
.life-card small, .life-row small { color: var(--mist); font-size: .78rem; line-height: 1.3; }
.origin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.origin-card { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-align: left; padding: .9rem; border-radius: 18px; border: 1.5px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.origin-card b { font-size: 1.05rem; letter-spacing: .04em; }
.origin-card small { color: var(--mist); font-size: .8rem; line-height: 1.35; }
.origin-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.start-list { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; gap: .35rem; font-size: .88rem; }
.start-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .7rem; }
.review { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.review span { background: var(--surface-2); border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; }
@media (max-width: 360px) { .origin-grid { grid-template-columns: 1fr; } }
.life-ic { font-size: 1.5rem; line-height: 1; }
.mods { display: flex; flex-direction: column; gap: .15rem; margin-top: .3rem; }
.mod { font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 6px; }
.mod.good { background: #e6f6ec; color: #0b6b3a; }
.mod.bad { background: var(--surface-2); color: #b4232c; }
.life-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 4.5rem; }
.life-row { display: flex; gap: .75rem; align-items: center; text-align: left; padding: .7rem .8rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.life-row b { display: block; }
.life-next { position: sticky; bottom: .8rem; box-shadow: 0 10px 24px rgba(14,165,233,.25); }
.rules { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .7rem; }
.rules li { display: flex; gap: .7rem; align-items: flex-start; }
.rules li > span { font-size: 1.3rem; }
.rules small { display: block; color: var(--mist); font-size: .8rem; line-height: 1.35; }
.lottery { text-align: center; padding-top: .5rem; }
.lottery-ic { width: 7.5rem; height: 7.5rem; margin: 0 auto 1rem; border-radius: 28px; display: grid; place-items: center; font-size: 3.6rem; background: linear-gradient(145deg, #9cc6ff, #66a6ff); box-shadow: 0 16px 36px rgba(201,104,255,.35); }
.lottery-ic.spinning { animation: wobble .18s linear infinite; }
.lottery-ic.landed { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(.96); } }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.lottery h2 { font: 700 1.5rem var(--display); margin: .2rem 0; }
.lottery .perk { background: var(--surface-2); border-radius: 12px; padding: .5rem .8rem; font-weight: 600; font-size: .9rem; }
/* phones: the character stays visible at the top, the choices slide up from the bottom */
@media (max-width: 700px) {
  .sheet.life-sheet { top: 34vh; border-radius: 22px 22px 0 0; border-right: 0; border-top: 1px solid var(--line); padding-top: 1.1rem; }
  .sheet.life-sheet .sheet-head { display: none; }
  .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- HUD: top-up +, mood, needs ---------- */
.wallet-plus { pointer-events: auto; width: 1.7rem; height: 1.7rem; margin-left: .2rem; border-radius: 50%; border: 0; background: var(--green); color: #fff; font: 800 1.1rem/1 var(--text); cursor: pointer; display: grid; place-items: center; align-self: center; }
.mood-chip { pointer-events: auto; display: flex; align-items: center; gap: .3rem; margin: .4rem 0 0 auto; padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.9); font: 600 .78rem var(--text); color: var(--ink); cursor: pointer; text-shadow: none; }
.lifebar { display: flex; flex-direction: column; align-items: flex-end; }
.energy.fun b { background: #e85d9b; }
.energy.hyg b { background: #38bdf8; }
.energy.low b { background: var(--red); }
.energy { margin-top: .25rem; }

/* ---------- Top-up app ---------- */
.tp-test { background: var(--surface-2); border: 1px solid #f2d36b; border-radius: 12px; padding: .5rem .7rem; font-size: .8rem; margin-bottom: .6rem; }
.tp-phone { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; margin-bottom: .6rem; }
.tp-phone input { padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-weight: 400; }
.tp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.tp-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; padding: .8rem .5rem .6rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tp-card.popular { border-color: #66a6ff; } .tp-card.best { border-color: var(--green); }
.tp-card em { position: absolute; top: -.55rem; padding: .05rem .5rem; border-radius: 999px; font: 700 .65rem var(--text); font-style: normal; background: #66a6ff; color: var(--ink); }
.tp-card.best em { background: var(--green); color: #fff; }
.tp-ic { font-size: 1.5rem; }
.tp-card b { font: 700 1.05rem var(--display); }
.tp-card small { color: var(--mist); font-size: .7rem; line-height: 1.25; min-height: 1.8em; }
.tp-card .btn { width: 100%; margin-top: .2rem; }
.tp-wait { border: 1.5px dashed var(--green); border-radius: 14px; padding: .7rem; margin-bottom: .7rem; background: var(--surface-2); }
.tp-active { background: var(--surface-2); border-radius: 12px; padding: .5rem .7rem; font-weight: 600; font-size: .85rem; margin-bottom: .5rem; }

/* ---------- Me app ---------- */
.me-mood { display: flex; align-items: center; gap: .6rem; font: 700 1.2rem var(--display); margin-bottom: .6rem; }
.me-mood span { font-size: 2.2rem; }
.need { display: grid; grid-template-columns: 6.5rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .82rem; margin: .35rem 0; }
.need i { height: .5rem; border-radius: 999px; background: rgba(20,35,27,.1); overflow: hidden; }
.need b { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.need b.low { background: var(--red); }
.need small { text-align: right; color: var(--mist); }
.biz-card .need { grid-template-columns: 1fr auto; }
.me-traits { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Tips and hello cards ---------- */
.tip-card { position: absolute; left: 50%; bottom: calc(var(--nav-h, 4rem) + 6.5rem); translate: -50% 0; width: min(24rem, calc(100vw - 2rem)); z-index: 8; padding: .9rem 1rem; border-radius: 18px; background: rgba(20,35,27,.92); color: #fff; text-shadow: none; box-shadow: 0 14px 36px rgba(0,0,0,.3); animation: rise .35s ease both; }
.tip-card b { display: block; font-size: .95rem; line-height: 1.35; }
.tip-row { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; }
.tip-row .link { color: #0ea5e9; margin-left: auto; background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.hello-card { position: absolute; left: 50%; bottom: calc(var(--nav-h, 4rem) + 1rem); translate: -50% 0; width: min(28rem, calc(100vw - 1.5rem)); z-index: 7; display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 30px rgba(0,0,0,.22); text-shadow: none; animation: rise .35s ease both; }
.hello-card > span { font-size: 1.6rem; }
.hello-card div { flex: 1; min-width: 0; }
.hello-card b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hello-card small { color: var(--mist); font-size: .75rem; }
.hello-x { border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--mist); }
@media (max-width: 520px) { .hello-card .btn-ghost { display: none; } }
@media (max-width: 700px) {
  .energy.fun, .energy.hyg { display: none; }
  .mood-chip [data-moodtext] { display: none; }
  .mood-chip { padding: .15rem .45rem; font-size: 1rem; }
  .minimap { top: 7.4rem !important; }
}
.sheet.life-sheet.again { animation: none; }

/* plane ticket */
.ticket { background: linear-gradient(135deg, var(--surface), #f3f7f4); border: 1px dashed #0ea5e9; border-radius: 14px; padding: .8rem 1rem; display: grid; gap: .35rem; }
.ticket-head { font: 800 1rem var(--display); color: #0ea5e9; border-bottom: 3px solid; border-image: linear-gradient(90deg, #0ea5e9 33%, #0ea5e9 33% 66%, #ff3b5c 66%) 1; padding-bottom: .3rem; }
.ticket-row { display: flex; gap: .6rem; align-items: baseline; } .ticket-row span { color: #5b6b62; font-size: .85rem; } .ticket-row b { margin-right: 1rem; }
.flight-bar { width: min(80vw, 420px); height: 8px; border-radius: 8px; background: rgba(255,255,255,0.1); overflow: hidden; } .flight-bar i { display: block; height: 100%; width: 0; background: var(--surface); transition: width .4s; }

.tp-cur { display: flex; gap: .4rem; margin: .4rem 0 .6rem; } .tp-cur button { flex: 1; padding: .55rem .4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .85rem; } .tp-cur button.on { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

/* Car radio */
.radio-chip { position: absolute; right: 1.6rem; bottom: 7.2rem; display: flex; gap: .4rem; z-index: 6; pointer-events: auto; }
.radio-chip.hidden { display: none; }
.radio-chip button { border: 0; border-radius: 999px; padding: .5rem .9rem; background: rgba(20,35,27,.82); color: #fff; font: 600 .9rem var(--body, system-ui); cursor: pointer; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-chip button:hover { background: #0ea5e9; }
.touch .radio-chip { bottom: auto; top: 9.5rem; right: .8rem; }
.cabin-card .flight-bar { width: 100%; height: 6px; margin: 6px 0; background: rgba(0,0,0,.15); } .cabin-card .flight-bar i { background: var(--green, #0ea5e9); }
.cabin-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bet-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: 13px; padding: 4px 0; } .bet-row span:last-child { text-align: right; } .bet-row b { min-width: 44px; text-align: center; }
.bet-match { padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); } .bet-teams { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bet-odds { display: flex; gap: 6px; } .bet-odds button { flex: 1; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; background: var(--surface); padding: 4px; font-weight: 700; display: flex; flex-direction: column; align-items: center; }
.bet-odds button small { font-weight: 500; opacity: .6; } .bet-odds button.on { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.bet-slip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px; margin: 6px 0; background: rgba(14,165,233,.18); border-radius: 10px; } .bet-slip input { width: 110px; }
.soc-note { background: rgba(255,59,92,.08); border-radius: 10px; padding: 8px; font-size: 13px; margin: 6px 0; }
.av.pp img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bubble-line { display: flex; gap: 6px; align-items: flex-end; } .bubble-line .av { width: 1.8rem; height: 1.8rem; font-size: .8rem; }
.chat-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .chat-top .chat-name { font-size: 14px; }
.pp-edit { display: flex; gap: 12px; align-items: center; padding: 8px 0 12px; } .pp-edit .av { width: 4.2rem; height: 4.2rem; font-size: 1.6rem; } .pp-edit > div { display: flex; flex-direction: column; gap: 2px; }
.pp-btns { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; } .pp-btns label { cursor: pointer; }
.map-legend { display: flex; gap: 6px; padding: 8px 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.map-legend button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 10px; font-size: 13px; opacity: .45; cursor: pointer; }
.map-legend button.on { opacity: 1; border-color: #0ea5e9; background: rgba(14,165,233,.08); }
.map-info { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: calc(100vw - 32px); flex-wrap: wrap; }
.map-info > div { display: flex; flex-direction: column; min-width: 120px; } .map-info small { opacity: .6; } .map-info-ic { font-size: 26px; }
body.touch .tip-card { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 9.5rem); }
/* Phones: the big map fills the screen height and you swipe to move around it */
@media (max-width: 760px) {
  .worldmap-head { gap: .5rem; padding: .6rem .8rem; }
  .worldmap-head .dim { display: none; }
  .worldmap-head h2 { font-size: 1rem; flex: 1; }
  .map-legend { padding: 6px .8rem; }
  .worldmap-body { display: block; overflow: auto; padding: 0; -webkit-overflow-scrolling: touch; }
  .worldmap-body canvas { max-width: none; max-height: none; height: calc(100dvh - 128px); width: auto; border-radius: 0; box-shadow: none; }
}

/* ---------- Night theme finishing touches ---------- */
html, body { background: var(--bg); color: var(--ink); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -10px rgba(14,165,233,.9), 0 0 0 1px rgba(255,255,255,.06) inset; }
.btn-primary:not(:disabled):hover { background: linear-gradient(135deg, #2f63e8 0%, #4f95ff 55%, #5ccbff 100%); box-shadow: var(--glow); }
.btn-ghost { background: rgba(14,165,233,.08); border: 1px solid rgba(74,168,255,.55); color: #dbe8ff; }
.btn-ghost:hover { background: rgba(14,165,233,.16); }
.btn-danger { background: rgba(255,59,92,.1); color: #ff6b86; border: 1px solid rgba(255,59,92,.6); }
.field input, .field select, .field textarea, .phone input, .phone select, .phone textarea, .chat input, input, select, textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
input::placeholder, textarea::placeholder { color: #7d808c; }
.field label { color: #c9ccd6; }
.link { color: var(--blue-2); }
.dim, .small.dim { color: var(--mist); }
.pos { color: #3ddc97; } .neg { color: #ff6b86; }
h1, h2, h3, h4 { color: var(--ink); }
.card, .sheet, .panel, .menu, .door-menu, .homepanel, .phone, .worldmap, .map-info, .toast, .prompt, .hint-bar { color: var(--ink); }
.door-menu, .homepanel, .map-info, .toast { background: var(--glass); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 24px rgba(14,165,233,.12); }
.wm-cotonou { color: #fff; text-shadow: 0 0 22px rgba(14,165,233,.55); }
.wm-life { -webkit-text-stroke-color: #38bdf8; filter: drop-shadow(0 0 10px rgba(14,165,233,.6)); }
.wallet, .widget-balance { color: #fff; border-color: rgba(14,165,233,.6); box-shadow: var(--glow-purple); }
.chip.on, .cats button.on, .map-legend button.on, .bet-odds button.on { background: rgba(14,165,233,.22); border-color: #0ea5e9; color: #fff; box-shadow: var(--glow); }
.bet-odds button, .map-legend button, .cats button, .chip { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.worldmap-body canvas { box-shadow: 0 0 0 1px rgba(14,165,233,.35), 0 10px 40px rgba(0,0,0,.6); }
.error { color: #ff8aa0; } .info { color: #dbe8ff; }
.av { background: var(--grad); }
.flag-touch { height: 3px; background: var(--flag); border-radius: 3px; }
/* text over the 3D city: white with a dark outline so it reads on any background */
.hud-tl { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 14px; padding: .35rem .7rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud-place, .hud-meta, .hud-name, .clock { color: #fff; text-shadow: none; }
.chat-lines, .chat-hint, .tag-name { text-shadow: 0 1px 2px #000, 0 0 4px rgba(0,0,0,.9); color: #fff; }
.chat-lines .sys { color: #c9ccd6; }

.tag-name { pointer-events: auto; cursor: pointer; }
/* Profiles */
.soc-who { display: flex; gap: .6rem; align-items: center; flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.prof-head { display: flex; gap: 14px; align-items: center; margin: .3rem 0 .8rem; }
.prof-head .av { width: 4.6rem; height: 4.6rem; font-size: 1.8rem; box-shadow: var(--glow); }
.prof-head h3 { margin: 0; font: 700 1.15rem var(--display); }
.prof-head .flag-touch { width: 48px; margin-top: 6px; }
.prof-bio { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin: .4rem 0; white-space: pre-wrap; }
.int-row { display: flex; flex-wrap: wrap; gap: 6px; margin: .5rem 0; }
.int-chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: .82rem; }
.int-chip.shared { border-color: var(--purple); box-shadow: var(--glow-purple); }
.int-chip.pick { cursor: pointer; } .int-chip.pick.on { background: rgba(14,165,233,.25); border-color: var(--blue); color: #fff; }
.prof-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--mist); margin: .6rem 0; }
.prof-acts, .prof-safety { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.prof-safety { border-top: 1px solid var(--line); padding-top: .6rem; }
.prof-form { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(14,165,233,.05); }
.prof-form h3, .prof-form h4 { margin: .2rem 0; }
.prof-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: #c9ccd6; }
.prof-form label.tog { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.prof-form input[type=text], .prof-form input:not([type]), .prof-form textarea, .prof-form select { padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line); }

textarea { font: inherit; }

/* ---------- Small phones (iPhone SE, small Android) ---------- */
@media (max-width: 400px), (max-height: 700px) {
  .wordmark-lg { font-size: clamp(2.4rem, 13vw, 3.4rem); }
  .tagline { font-size: .92rem; }
  .lede { font-size: .92rem; line-height: 1.45; }
  .welcome-foot { gap: .4rem 1rem; margin-top: 1.2rem; }
  .btn { padding: .75em 1.3em; }
}
/* the money pill: small and tidy on phones */
.wallet { padding: .32rem .45rem .32rem .8rem; }
.wallet-amt { font: 700 .9rem var(--text); letter-spacing: .01em; color: #fff; }
@media (max-width: 760px) {
  .wallet-amt { font-size: .82rem; }
  .wallet-plus { width: 1.45rem; height: 1.45rem; font-size: .95rem; }
}
.item-card, .tp-card, .zg-dests button, .garage-row, .soc-row, .soc-main, .job-info { min-width: 0; }
.item-card .btn, .tp-card .btn { white-space: normal; }
.item-name, .soc-main b, .soc-main span { overflow-wrap: anywhere; }
/* very small phones: smaller minimap and prompts so the joystick and buttons stay free */
@media (max-width: 400px) {
  .minimap { width: 88px; height: 88px; top: 3.6rem; }
  .prompt { font-size: .82rem; padding: .45rem .8rem; max-width: 62vw; }
  .hud-tl { padding: .25rem .55rem; }
  .hud-place { font-size: .95rem; }
  .hud-meta { font-size: .72rem; }
  .bottomnav span { font-size: .68rem; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .minimap { width: 84px; height: 84px; }
  .hud-tl { padding: .2rem .5rem; }
}
/* welcome: centred when it fits, scrolls from the top when the screen is short (landscape phones) */
.welcome { justify-content: flex-start; }
.welcome-copy { margin-top: auto; margin-bottom: auto; }
@media (max-height: 520px) { .welcome { padding-top: 3.4rem; } .wordmark-lg { font-size: 2.4rem; } }

/* Waypoint arrow: points the way to where you are going */
.wp-arrow { position: absolute; top: 5.2rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .45rem; border-radius: 999px; background: rgba(255,255,255,.78); border: 1.5px solid var(--blue); color: #fff; font: 700 .95rem var(--text, system-ui); pointer-events: none; z-index: 4; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.wp-arrow[hidden] { display: none; }
.wp-pointer { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--grad); }
.wp-pointer svg { transition: transform .12s linear; }
@media (max-width: 600px) { .wp-arrow { top: 4.2rem; font-size: .85rem; } }

/* Dance battle */
.dance-battle { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; gap: .6rem; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% 30%, rgba(124,58,237,.55), rgba(255,255,255,.92) 70%); color: #fff; }
.db-head { display: flex; align-items: center; gap: .8rem; }
.db-head b { flex: 1; font-size: 1.1rem; }
.db-head [data-score] { font: 900 1.6rem var(--text, system-ui); color: #38bdf8; min-width: 3ch; text-align: right; }
.db-stage { position: relative; flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 460px; width: 100%; margin: 0 auto; }
.db-lane { position: relative; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); overflow: hidden; transition: background .08s; }
.db-lane.press { background: rgba(56,189,248,.28); }
.db-lane i { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 2rem; filter: drop-shadow(0 0 8px rgba(255,79,216,.8)); }
.db-line { position: absolute; left: 0; right: 0; top: 82%; height: 4px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 16px #38bdf8; pointer-events: none; }
.db-say { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font: 900 2rem var(--text, system-ui); pointer-events: none; text-shadow: 0 0 18px currentColor; }
.db-say.perfect { color: #fcd116; } .db-say.good { color: #38bdf8; } .db-say.miss { color: #ff3b5c; }
.db-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; max-width: 460px; width: 100%; margin: 0 auto; }
.db-pads button { height: 4.2rem; border-radius: 16px; border: 0; background: var(--surface-2); font-size: 1.8rem; touch-action: manipulation; }
.db-pads button:active { background: var(--blue); }
.db-help { text-align: center; margin: 0; }
.dance-top { margin: .3rem 0 .8rem; padding-left: 0; list-style: none; display: grid; gap: .3rem; }
.dance-top li { display: flex; gap: .5rem; background: var(--surface-2); border-radius: 10px; padding: .35rem .6rem; }
.dance-top li span { margin-left: auto; font-weight: 800; color: #38bdf8; }

/* Lives (hearts) */
.hearts { display: flex; gap: 1px; margin: .4rem 0 0 auto; padding: .15rem .45rem; border-radius: 999px; background: rgba(255,255,255,.55); font-size: .85rem; line-height: 1; pointer-events: auto; }
.hearts i { font-style: normal; }
.hearts i.off { opacity: .45; filter: grayscale(1); }
.hearts.shake { animation: heart-shake .45s; }
@keyframes heart-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ===================== Light theme: white + light blue (30 Oct) ===================== */
html, body { background: var(--bg); color: var(--ink); }
kbd { border-color: var(--line); }
.btn-primary { background: var(--grad); color: #fff; text-shadow: 0 1px 1px rgba(2, 80, 130, .35); box-shadow: 0 8px 22px -10px rgba(2, 132, 199, .8); }
.btn-primary:not(:disabled):hover { background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 55%, #0ea5e9 100%); box-shadow: var(--glow); }
.btn-ghost { background: #ffffff; border: 1px solid rgba(14, 165, 233, .55); color: #0369a1; }
.btn-ghost:hover { background: #e0f2fe; }
.btn-danger { background: #fff1f3; color: #be123c; border: 1px solid rgba(225, 29, 72, .5); }
.field input, .field select, .field textarea, .phone input, .phone select, .phone textarea, .chat input, input, select, textarea { background: #ffffff; color: var(--ink); border-color: rgba(15, 40, 80, .2); }
input::placeholder, textarea::placeholder { color: #8a98ad; }
.field label, .prof-form label { color: var(--ink); }
.link { color: #0284c7; }
.pos { color: #059669; } .neg { color: #be123c; }
.error { color: #be123c; background: #fff1f3; } .info { color: #0c4a6e; background: #e0f2fe; }
.door-menu, .homepanel, .map-info, .toast { background: var(--glass); border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(15, 40, 80, .18); }
.wm-cotonou { color: var(--ink); text-shadow: none; }
.wm-life { -webkit-text-stroke-color: #0ea5e9; filter: none; }
.wallet, .widget-balance { color: var(--ink); background: rgba(255, 255, 255, .92); border-color: rgba(14, 165, 233, .55); box-shadow: 0 4px 14px rgba(15, 40, 80, .15); }
.chip.on, .cats button.on, .map-legend button.on, .bet-odds button.on { background: #0ea5e9; border-color: #0ea5e9; color: #fff; box-shadow: none; }
.bet-odds button, .map-legend button, .cats button, .chip { background: #fff; color: var(--ink); border-color: var(--line); }
.worldmap-body canvas { box-shadow: 0 0 0 1px rgba(14, 165, 233, .35), 0 10px 30px rgba(15, 40, 80, .2); }
/* text over the 3D city: dark text on white glass */
.hud-tl { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15, 40, 80, .12); }
.hud-place, .hud-meta, .clock { color: var(--ink); text-shadow: none; }
.hud-name { color: #0284c7; text-shadow: none; }
.chat-lines, .chat-hint { color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
.tag-name { color: var(--ink); text-shadow: none; background: rgba(255, 255, 255, .9); border-color: rgba(14, 165, 233, .5); }
.chat-lines .sys { color: #475569; }
.chat-lines b { color: #0284c7; } .chat-lines .self b { color: #0369a1; }
.wallet-amt { color: var(--ink); font: 700 .8rem var(--text); }
@media (max-width: 760px) { .wallet-amt { font-size: .76rem; } }
.mood-chip, .hearts { background: rgba(255, 255, 255, .9); box-shadow: 0 3px 10px rgba(15, 40, 80, .12); }
.prompt, .hint-bar, body.touch .chat-hint .tch { color: var(--ink); box-shadow: 0 6px 18px rgba(15, 40, 80, .15); }
.wp-arrow { background: rgba(255, 255, 255, .95); color: var(--ink); border-color: #0ea5e9; box-shadow: 0 6px 18px rgba(15, 40, 80, .2); }
.radio-chip button { background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 4px 14px rgba(15, 40, 80, .15); border: 1px solid var(--line); }
.bottomnav { background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 20px rgba(15, 40, 80, .1); }
.bottomnav button { color: var(--ink); }
.bottomnav button:hover { color: #0284c7; background: #e0f2fe; }
.vignette { background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82) 36%, rgba(255,255,255,.1) 70%, transparent), linear-gradient(0deg, rgba(255,255,255,.7), transparent 30%); }
@media (max-width: 760px) { .vignette { background: linear-gradient(0deg, rgba(255,255,255,.97) 12%, rgba(255,255,255,.7) 60%, rgba(255,255,255,.1)); } }
.lang { background: rgba(255, 255, 255, .95); box-shadow: 0 4px 14px rgba(15, 40, 80, .15); }
.overlay, .menu { background: rgba(15, 40, 80, .25); }
.phone-wrap { background: rgba(15, 40, 80, .2); }
/* the phone: a light sky wallpaper, dark text */
.phone.premium { border-color: #e2edf7; color: var(--ink);
  background: radial-gradient(120% 70% at 10% 0%, rgba(125, 211, 252, .55) 0%, rgba(125, 211, 252, 0) 60%), radial-gradient(90% 60% at 100% 30%, rgba(14, 165, 233, .25) 0%, rgba(14, 165, 233, 0) 60%), linear-gradient(170deg, #f8fcff 0%, #e0f2fe 100%);
  box-shadow: 0 0 0 2px #cfe0ee, 0 30px 70px rgba(15, 40, 80, .3); }
.phone.premium .app-icon { color: var(--ink); }
.phone.premium.is-app { background: var(--surface-2); color: var(--ink); }
.widget-balance strong { color: #0369a1; font-size: 1.25rem; }
.widget-balance em { color: #fff; }
.dock { background: rgba(255, 255, 255, .6); border: 1px solid var(--line); }
.app-back { background: #e0f2fe; color: #0284c7; }
.home-bar { background: rgba(15, 40, 80, .35); }
.phone-balance strong, .bank-card strong { color: #0369a1; font-size: 1.25rem; }
.soon-tag { color: #fff; }
.worldmap { background: rgba(244, 249, 253, .98); }
.dealer { background: rgba(244, 249, 253, .98); }
.dealer-head { background: #0369a1; }
.dealer-tabs button.on { background: #0369a1; color: #fff; }
.job-card, .ride-offer, .tip-card { color: var(--ink); box-shadow: 0 10px 28px rgba(15, 40, 80, .2); }
.tc-stick i { background: rgba(255, 255, 255, .9); }
.flight .cloud { background: rgba(255, 255, 255, .9); }
.av { background: linear-gradient(145deg, #7dd3fc, #0284c7); color: #fff; }
.int-chip.pick.on { background: #0ea5e9; color: #fff; }
.prof-bio, .int-chip { background: #fff; }
.boot { background: #f8fcff; }
.wp-light .widget-balance { background: rgba(255, 255, 255, .7) !important; }
.wp-dark .app-icon, .wp-dark .widget-time, .wp-dark .app-label { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.wp-dark .widget-balance { background: rgba(255, 255, 255, .88); }
.tip-card { background: rgba(255, 255, 255, .97); color: var(--ink); border: 1px solid rgba(14, 165, 233, .45); }
.tc-btn { background: rgba(255, 255, 255, .55); color: #0369a1; border-color: rgba(255, 255, 255, .95); box-shadow: 0 4px 14px rgba(15, 40, 80, .2); }
.tc-btn.down, .tc-btn.on, .tc-act { background: rgba(14, 165, 233, .85); color: #fff; }
.app-topup { background: linear-gradient(145deg, #38bdf8, #0369a1); } .app-me { background: linear-gradient(145deg, #a78bfa, #6d28d9); }
.app-bets { background: linear-gradient(145deg, #22c55e, #15803d); } .app-gym { background: linear-gradient(145deg, #fb923c, #b45309); } .app-meet { background: linear-gradient(145deg, #f472b6, #be185d); } .app-weekly { background: linear-gradient(145deg, #fbbf24, #b45309); }
.app-glyph { color: #fff; }
/* This week */
.wk-event { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; margin: .5rem 0; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.wk-event > span { font-size: 1.6rem; }
.wk-event > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wk-event small { color: var(--mist); font-size: .78rem; }
.wk-event.live { border-color: #0ea5e9; background: #e0f2fe; box-shadow: var(--glow); }
.wk-streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.wk-streak i { font-style: normal; text-align: center; padding: .45rem 0; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--mist); }
.wk-streak i.on { background: var(--grad); color: #fff; border-color: transparent; }
.dance-top li.me { outline: 2px solid #0ea5e9; }
.dance-top li em { font-style: normal; font-size: .75rem; color: #059669; margin-left: .4rem; }
/* Meet 18+ */
.meet-card { padding: .7rem .8rem; margin: .5rem 0; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.meet-rules { padding-left: 1.1rem; margin: .5rem 0; font-size: .85rem; display: grid; gap: .3rem; }
.meet-look { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0; font-size: .9rem; }
.meet-look label { display: flex; align-items: center; gap: .45rem; }
.phone .meet-look input, .phone .check input { width: auto; flex: none; }

/* sleeping in your bed: the screen gets dim */
body.sleeping #ui::after { content: ''; position: fixed; inset: 0; background: rgba(5, 10, 30, .55); pointer-events: none; animation: sleepfade 1.2s ease; }
@keyframes sleepfade { from { background: rgba(5, 10, 30, 0); } }

.wanted button { pointer-events: auto; margin-left: .4rem; }
.wanted { white-space: normal; text-align: center; max-width: calc(100vw - 24px); }

/* Money spraying banners (club) */
.spray-banner { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem 1.4rem; border-radius: 18px; color: #fff; text-align: center; pointer-events: none; animation: sprayIn .45s cubic-bezier(.2,1.4,.4,1); transition: opacity .5s; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.spray-banner b { font: 900 1.05rem var(--display, system-ui); letter-spacing: .02em; }
.spray-banner span { font-weight: 700; font-size: 1.1rem; }
.spray-banner strong { font: 900 1.6rem var(--display, system-ui); }
.spray-banner.tier-big { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.spray-banner.tier-storm { background: linear-gradient(135deg, #f59e0b, #b45309); top: 18%; }
.spray-banner.tier-storm strong { font-size: 2.1rem; }
.spray-banner.tier-boss { inset: 0; top: 0; left: 0; transform: none; justify-content: center; border-radius: 0; background: radial-gradient(circle, rgba(212,175,55,.92), rgba(120,53,15,.92) 70%); animation: bossIn .5s ease; }
.spray-banner.out { opacity: 0; }
.spray-banner.tier-shout { background: linear-gradient(135deg, #a21caf, #db2777); top: 14%; max-width: min(92vw, 520px); }
.spray-banner.tier-shout span { font-size: 1.25rem; font-style: italic; }
.spray-banner.tier-welcome { background: linear-gradient(135deg, #b45309, #d4af37 55%, #7c2d12); box-shadow: 0 0 40px rgba(253,230,138,.7); }
.dj-shout { display: flex; gap: .4rem; margin: .5rem 0; }
.dj-shout input { flex: 1; min-width: 0; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--line, #cbd5e1); font: inherit; }
.spray-banner.tier-boss b { font-size: clamp(2.2rem, 9vw, 5rem); text-shadow: 0 0 30px #fde68a; }
.spray-banner.tier-boss span { font-size: clamp(1.3rem, 5vw, 2.4rem); }
.spray-banner.tier-boss strong { font-size: clamp(2rem, 8vw, 4.4rem); color: #fef3c7; }
@keyframes sprayIn { from { transform: translateX(-50%) scale(.4); } }
@keyframes bossIn { from { transform: scale(1.2); } }
@keyframes sprayOut { to { opacity: 0; } }
body.shake .world { animation: shake .9s; }
@keyframes shake { 10%, 50%, 90% { transform: translate(-6px, 3px); } 30%, 70% { transform: translate(6px, -3px); } }
.zg-dests.dj-grid { max-height: none; flex-shrink: 0; overflow: visible; }
.zem-say { font-weight: 800; font-size: 1.1rem; color: #b45309; margin: .2rem 0; }
.dj-song { display: flex; flex-direction: column; gap: .4rem; padding: .7rem; margin: .4rem 0; border-radius: 14px; background: linear-gradient(135deg, #fdf4ff, #e0f2fe); border: 1px solid #f0abfc; }
.dj-file { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; border: 2px dashed #c084fc; border-radius: 12px; cursor: pointer; background: #fff; font-weight: 700; }
.dj-file input { display: none; }
.dj-rights { display: flex; gap: .45rem; align-items: flex-start; }

/* ===== Phones (2 Nov): everything smaller so you see the game — works upright and sideways ===== */
body.touch { --nav-h: calc(46px + env(safe-area-inset-bottom, 0px)); }
body.touch .bottomnav { width: min(380px, 100%); padding: .15rem .4rem calc(.15rem + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; }
body.touch .bottomnav::before { height: 3px; border-radius: 14px 14px 0 0; }
body.touch .bottomnav button { padding: .2rem 0 .05rem; font-size: .6rem; gap: 0; border-radius: 10px; }
body.touch .bottomnav svg { width: 17px; height: 17px; }
body.touch .hud-tl { top: calc(.4rem + env(safe-area-inset-top, 0px)); left: calc(.4rem + var(--safe-l)); padding: .15rem .45rem; border-radius: 10px; max-width: 46vw; }
body.touch .hud-place { font-size: .78rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.touch .hud-meta { font-size: .62rem; gap: .3rem; }
body.touch .lifebar { top: calc(.4rem + env(safe-area-inset-top, 0px)); right: calc(.4rem + var(--safe-r)); }
body.touch .wallet { padding: .15rem .2rem .15rem .5rem; }
body.touch .wallet-amt { font-size: .7rem; }
body.touch .wallet-plus { width: 1.15rem; height: 1.15rem; font-size: .8rem; }
body.touch .hearts { font-size: .62rem; margin-top: .2rem; padding: .08rem .3rem; }
body.touch .mood-chip { margin-top: .2rem; padding: .05rem .35rem; font-size: .7rem; }
body.touch .mood-chip [data-moodtext] { display: none; }
body.touch .energy { margin-top: .12rem; font-size: .6rem; }
body.touch .energy i { width: 48px; height: 4px; }
body.touch .minimap { width: 76px !important; height: 76px !important; top: calc(6.6rem + env(safe-area-inset-top, 0px)) !important; right: calc(.4rem + var(--safe-r)) !important; left: auto !important; bottom: auto !important; box-shadow: 0 0 0 2px rgba(14,165,233,.8), 0 6px 14px rgba(0,0,0,.25); }
body.touch .tc-buttons { grid-template-columns: repeat(2, 46px); grid-auto-rows: 46px; gap: .4rem; right: calc(.5rem + var(--safe-r)); bottom: calc(var(--nav-h) + .5rem + var(--safe-b)); }
body.touch .tc-btn { width: 46px; height: 46px; font-size: 1rem; border-width: 1.5px; }
body.touch .tc-act { width: 54px; height: 54px; margin: -4px; }
body.touch .tc-stick { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
body.touch .tc-stick i { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
body.touch .prompt { bottom: calc(var(--nav-h) + 7.6rem); font-size: .78rem; padding: .3rem .7rem; }
body.touch .chat { left: calc(.4rem + var(--safe-l)); right: auto; width: min(15rem, 58vw); bottom: calc(var(--nav-h) + .4rem); font-size: .72rem; }
body.touch .chat .chat-lines { max-height: 16vh; }
body.touch .chat-hint .tch { font-size: .7rem; padding: .2rem .55rem; }
body.touch .toasts { top: calc(3.2rem + env(safe-area-inset-top, 0px)); }
body.touch .toast { font-size: .76rem; padding: .45rem .65rem; }
body.touch .radio-chip { top: calc(11.8rem + env(safe-area-inset-top, 0px)); right: calc(.4rem + var(--safe-r)); bottom: auto; transform: scale(.8); transform-origin: right top; }
body.touch .door-menu { font-size: .88rem; }
body.touch .door-menu h3 { font-size: 1rem; }
body.touch .btn { min-height: 0; }
body.touch .speedo { transform: scale(.75); transform-origin: right bottom; }
@media (orientation: landscape) and (max-height: 520px) {
  body.touch .bottomnav { left: auto; right: calc(.5rem + var(--safe-r)); transform: none; width: 230px; bottom: 0; }
  body.touch .bottomnav button { font-size: 0; padding: .3rem 0; }
  body.touch .tc-buttons { bottom: calc(var(--nav-h) + .3rem); }
  body.touch .minimap { top: .4rem !important; right: calc(6.8rem + var(--safe-r)) !important; width: 64px !important; height: 64px !important; }
  body.touch .chat { bottom: .4rem; width: min(16rem, 40vw); }
  body.touch .chat .chat-lines { max-height: 22vh; }
  body.touch .prompt { bottom: 4.5rem; }
  body.touch .radio-chip { top: 6.4rem; }
}
/* 🎤 talk, 🔊 voices, 🛵 kêkênon */
.quick-btns { position: absolute; left: calc(1.4rem + var(--safe-l)); bottom: calc(var(--nav-h) + 180px + 2.2rem); display: flex; gap: .4rem; z-index: 6; pointer-events: auto; align-items: center; }
.qb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); font-size: 1.15rem; cursor: pointer; box-shadow: 0 4px 12px rgba(15,40,80,.15); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.qb-talk.on { background: #e8112d; color: #fff; transform: scale(1.12); box-shadow: 0 0 0 6px rgba(232,17,45,.25); }
.qb-zem { background: #fcd116; }
.rec-pill { padding: .25rem .6rem; border-radius: 999px; background: #e8112d; color: #fff; font: 700 .75rem var(--text); }
.chat { bottom: calc(var(--nav-h) + 180px + 5.6rem); }
body.touch .quick-btns { left: calc(.4rem + var(--safe-l)); bottom: auto; top: calc(3.1rem + env(safe-area-inset-top, 0px)); flex-direction: column; gap: .3rem; align-items: flex-start; }
body.touch .qb { width: 36px; height: 36px; font-size: .95rem; }
@media (orientation: landscape) and (max-height: 520px) { body.touch .quick-btns { top: 2.9rem; flex-direction: row; } }
/* voice notes in Messages */
.vn-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #e0f2fe; font-size: 1.05rem; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.vn-btn.on { background: #e8112d; color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(232,17,45,.25); }
.bubble.voice audio { width: 210px; max-width: 100%; height: 36px; }
.vn-hint { margin: .2rem 0 0; font-size: .7rem; }
.preview-loading { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 8px); transform: translateX(-50%); z-index: 30; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.94); color: #0f172a; font: 700 .75rem var(--text); box-shadow: 0 4px 12px rgba(15,40,80,.18); pointer-events: none; white-space: nowrap; }
.preview-loading[hidden] { display: none; }
/* driving on a phone: big arrow buttons (left/right on the left, gas/brake on the right) */
.tc-drive { position: absolute; inset: 0; pointer-events: none; }
.tc-drive[hidden] { display: none; }
.tc-steer, .tc-pedals { position: absolute; bottom: calc(var(--nav-h) + .6rem + var(--safe-b)); display: flex; gap: .6rem; pointer-events: auto; }
.tc-steer { left: calc(.6rem + var(--safe-l)); }
.tc-pedals { right: calc(7.4rem + var(--safe-r)); flex-direction: column-reverse; }
.tc-dbtn { width: 64px; height: 64px; border-radius: 18px; border: 2px solid rgba(255,255,255,.8); background: rgba(15,23,42,.45); color: #fff; font: 800 1.5rem var(--display, system-ui); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(4px); }
.tc-dbtn.down { background: rgba(14,165,233,.85); transform: scale(.96); }
.tc-gas { background: rgba(22,163,74,.6); height: 84px; }
.tc-brake { background: rgba(232,17,45,.5); }
.touch-ui.driving .tc-run { display: none; }
body.touch .chat { transition: opacity .2s; }
body.touch.driving-now .chat { opacity: .35; bottom: calc(var(--nav-h) + 6.2rem); pointer-events: none; }
@media (orientation: landscape) and (max-height: 520px) { .tc-dbtn { width: 58px; height: 58px; } .tc-gas { height: 72px; } .tc-pedals { right: calc(7rem + var(--safe-r)); } }
.restricted { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem 1.4rem; border-radius: 16px; background: #b91c1c; color: #fff; border: 3px solid #fff; box-shadow: 0 12px 34px rgba(0,0,0,.35); text-align: center; pointer-events: none; max-width: 92vw; }
.restricted b { font: 900 1.15rem var(--display, system-ui); letter-spacing: .04em; }
.restricted.police { background: #1e3a8a; }
/* phones: the panel inside a place is one thin strip of small buttons (scroll sideways), so you see the room */
body.touch .homepanel { top: calc(2.8rem + env(safe-area-inset-top, 0px)); bottom: auto; left: calc(2.9rem + var(--safe-l)); right: calc(5.6rem + var(--safe-r)); width: auto; transform: none; padding: .3rem .4rem; gap: .2rem; border-radius: 12px; }
body.touch .homepanel .home-title, body.touch .homepanel .home-hint { display: none; }
body.touch .homepanel .home-actions { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.touch .homepanel .home-actions::-webkit-scrollbar { display: none; }
body.touch .homepanel .btn { flex: none; font-size: .68rem; padding: .3rem .55rem; min-height: 0; border-radius: 999px; white-space: nowrap; }
body.touch .homepanel::before { height: 2px; }
@media (orientation: landscape) and (max-height: 520px) { body.touch .homepanel { top: .4rem; left: 30vw; right: 13rem; } }
/* club dance battle */
.dance-floor { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.df-top { position: absolute; top: calc(.6rem + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(15,23,42,.75); color: #fff; pointer-events: auto; font: 800 1.1rem var(--display, system-ui); }
.df-ring { position: relative; width: 34px; height: 34px; }
.df-ring i { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #fcd116; box-shadow: 0 0 14px #fcd116; }
.df-x { border: 0; background: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.df-say { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); font: 900 1.6rem var(--display, system-ui); color: #fff; text-shadow: 0 3px 12px rgba(0,0,0,.6); white-space: nowrap; }
.df-say.perfect { color: #fcd116; } .df-say.good { color: #86efac; } .df-say.miss { color: #fca5a5; }
.df-combo { position: absolute; top: 29%; left: 50%; transform: translateX(-50%); font: 900 2.4rem var(--display, system-ui); color: #f0abfc; text-shadow: 0 0 18px #ff4fd8; }
.df-moves { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + .8rem + var(--safe-b)); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; width: min(640px, calc(100vw - 1rem)); pointer-events: auto; }
.df-moves button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem .2rem; border-radius: 14px; border: 2px solid rgba(255,255,255,.7); background: rgba(124,58,237,.55); color: #fff; font: 700 .72rem var(--text); touch-action: none; user-select: none; -webkit-user-select: none; }
.df-moves button span { font-size: 1.5rem; }
.df-moves button.on { background: rgba(252,209,22,.85); color: #111; transform: scale(1.06); }
@media (max-width: 520px) { .df-moves { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body.dancing .touch-ui, body.dancing .prompt, body.dancing .chat, body.dancing .homepanel, body.dancing .quick-btns, body.dancing .radio-chip { visibility: hidden; }
.lift-ask { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 26; display: flex; flex-direction: column; gap: .4rem; align-items: center; padding: .7rem 1rem; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 10px 28px rgba(15,40,80,.25); border: 2px solid #0ea5e9; pointer-events: auto; max-width: 92vw; }
.lift-ask div { display: flex; gap: .5rem; }
.gun-box { margin-top: .4rem; padding: .6rem; border-radius: 12px; background: #f1f5f9; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.pack-list { margin: .3rem 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.tc-view { position: absolute; right: calc(.5rem + var(--safe-r)); top: calc(11.6rem + env(safe-area-inset-top, 0px)); width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; pointer-events: auto; }
.tc-view[hidden] { display: none; }
.jet-name { padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
/* phone call bar */
.call-bar { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: 999px; background: rgba(17,24,39,.92); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35); font-size: .9rem; max-width: 94vw; }
.call-bar span { opacity: .8; white-space: nowrap; }
.call-bar.on { background: linear-gradient(135deg, #065f46, #047857); }
.call-bar.ring { animation: callPulse 1s ease-in-out infinite; }
@keyframes callPulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,94,.35); } }
/* brand advert in the phone */
.promo-card { display: flex; align-items: center; gap: .6rem; width: 100%; margin: .4rem 0; padding: .5rem .7rem; border: 0; border-radius: 14px; color: #fff; text-align: left; background: linear-gradient(135deg, var(--ad, #008751), rgba(0,0,0,.55)); cursor: pointer; }
.promo-card img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; background: #fff; }
.promo-card span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.promo-card small { font-size: .65rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.promo-card b { font-size: .95rem; } .promo-card em { font-style: normal; font-size: .78rem; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-card i { font-style: normal; font-size: 1.4rem; opacity: .8; }
/* phones: the speed and fuel go top-right under the mini map, away from the pedals (5 Nov) */
body.touch .speedo { top: calc(env(safe-area-inset-top, 0px) + 5.9rem); left: .5rem; right: auto; bottom: auto; text-align: left; transform: scale(.7); transform-origin: left top; background: rgba(255,255,255,.72); padding: .3rem .5rem; border-radius: 12px; }
@media (orientation: landscape) { body.touch .speedo { top: calc(env(safe-area-inset-top, 0px) + 5.4rem); left: 4rem; } }
/* club games: the aiming bar */
.aim-bar { position: relative; height: 34px; margin: .6rem 0; border-radius: 999px; background: linear-gradient(90deg, #1f2937, #374151 45%, #374151 55%, #1f2937); overflow: hidden; }
.aim-zone { position: absolute; left: 42%; width: 16%; top: 0; bottom: 0; background: rgba(212,175,55,.75); }
.aim-mark { position: absolute; top: 3px; bottom: 3px; width: 8px; margin-left: -4px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px #fff; left: 50%; }
.aim-score { text-align: center; font-size: 1.1rem; }
.partner-bet { display: flex; align-items: center; gap: .6rem; width: 100%; margin: .5rem 0; padding: .6rem .8rem; border: 0; border-radius: 14px; background: linear-gradient(135deg, #0a7d32, #064e1f); color: #fff; text-align: left; cursor: pointer; }
.partner-bet b { font-size: 1rem; } .partner-bet span { flex: 1; font-size: .78rem; opacity: .9; } .partner-bet i { font-style: normal; }
/* Reviews app */
.app-reviews { background: linear-gradient(145deg, #fde68a, #f59e0b); }
.stars i { font-style: normal; color: #d1d5db; } .stars i.on { color: #f59e0b; } .stars.big { font-size: 1.4rem; }
.rev-avg { display: flex; align-items: center; gap: .5rem; margin: .3rem 0 .6rem; } .rev-avg strong { font-size: 2rem; }
.star-pick { display: flex; gap: .3rem; } .star-pick button { font-size: 2rem; line-height: 1; border: 0; background: none; color: #d1d5db; cursor: pointer; padding: 0 .1rem; } .star-pick button.on { color: #f59e0b; }
.rev-item { padding: .5rem .6rem; border-radius: 12px; background: rgba(0,0,0,.04); margin: .35rem 0; } .rev-item p { margin: .2rem 0 0; font-size: .85rem; }
.rev-item.mine { background: rgba(0,135,81,.08); } .rev-reply { color: #047857; font-weight: 600; }
/* phone notices: install the app, turn sideways */
.tip-sheet { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); transform: translate(-50%, 140%); z-index: 90; display: flex; align-items: center; gap: .5rem; width: min(94vw, 460px); padding: .65rem .8rem; border-radius: 18px; background: rgba(255,255,255,.97); color: #111827; box-shadow: 0 12px 34px rgba(0,0,0,.28); transition: transform .3s ease; }
.tip-sheet.in { transform: translate(-50%, 0); }
.tip-body { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.tip-body div { display: flex; flex-direction: column; min-width: 0; flex: 1; } .tip-body b { font-size: .95rem; } .tip-body span { font-size: .78rem; color: #4b5563; }
.tip-icon { width: 44px; height: 44px; border-radius: 11px; }
.tip-rot { font-size: 1.6rem; }
.tip-x { border: 0; background: none; font-size: 1rem; color: #6b7280; padding: .3rem; }
/* ===== Start screen, new look (6 Nov): night city behind, gold LIFE, Benin flag band ===== */
.vignette-welcome { background: linear-gradient(100deg, rgba(4,9,22,.94) 0%, rgba(6,14,34,.82) 38%, rgba(6,14,34,.25) 70%, rgba(6,14,34,.05) 100%) !important; }
@media (max-width: 760px) { .vignette-welcome { background: linear-gradient(180deg, rgba(4,9,22,.2) 0%, rgba(4,9,22,.55) 35%, rgba(4,9,22,.94) 70%) !important; } }
.welcome-v2 .wordmark-lg { font-size: clamp(3.2rem, 9vw, 7.8rem); }
.welcome-v2 .wm-cotonou { color: #fff !important; text-shadow: 0 6px 30px rgba(0,0,0,.45) !important; letter-spacing: -0.03em; }
.welcome-v2 .wm-life { color: transparent !important; -webkit-text-stroke: 0 !important; background: linear-gradient(95deg, #fde047 0%, #fcd116 35%, #f59e0b 70%, #ef4444 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 24px rgba(252,209,22,.35)) !important; letter-spacing: 0.06em; }
.welcome-v2 .wm-band { height: 8px !important; margin-top: .28em; border-radius: 4px; background: linear-gradient(90deg, #008751 0 33%, #fcd116 33% 66%, #e8112d 66% 100%) !important; -webkit-mask: none !important; mask: none !important; width: 70%; box-shadow: 0 0 18px rgba(252,209,22,.35); }
.welcome-v2 .tagline { color: #fcd116; letter-spacing: .14em; font-size: .82rem; font-weight: 800; margin-top: 1.1rem; }
.welcome-v2 .lede { color: rgba(255,255,255,.86); max-width: 32rem; }
.welcome-v2 .btn-primary { background: linear-gradient(135deg, #fde047, #f59e0b); color: #111827; border: 0; font-weight: 800; box-shadow: 0 10px 30px rgba(245,158,11,.35); padding-inline: 1.6rem; }
.welcome-v2 .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.welcome-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; max-width: 36rem; }
.welcome-chips span { padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .78rem; font-weight: 600; backdrop-filter: blur(6px); }
.welcome-v2 .welcome-foot { color: rgba(255,255,255,.55); }
/* ===== iPhone-style Control Centre (pull down from the top of the phone) ===== */
.phone.premium .phone-status { cursor: pointer; }
.cc { position: absolute; inset: 0; z-index: 30; padding: 54px 14px 14px; background: rgba(15,23,42,.55); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); transform: translateY(-104%); transition: transform .32s cubic-bezier(.2,.8,.2,1); color: #fff; display: flex; flex-direction: column; border-radius: inherit; }
.cc.open { transform: translateY(0); }
.cc-grip { position: absolute; bottom: 8px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: rgba(255,255,255,.5); }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-block { border-radius: 22px; background: rgba(255,255,255,.14); padding: 10px; }
.cc-conn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 50%; aspect-ratio: 1; background: rgba(255,255,255,.18); color: #fff; justify-content: center; font-size: .62rem; cursor: pointer; }
.cc-tile span { font-size: 1.2rem; } .cc-tile.on { background: #0a84ff; } .cc-tile[data-cct="saver"].on { background: #30d158; } .cc-tile[data-cct="dnd"].on { background: #5e5ce6; } .cc-tile[data-cct="light"].on { background: #fff; color: #111; }
.cc-music { display: flex; flex-direction: column; justify-content: center; gap: 4px; } .cc-music small { opacity: .75; }
.cc-play { margin-top: 6px; align-self: flex-start; border: 0; border-radius: 50%; width: 40px; height: 40px; background: rgba(255,255,255,.22); color: #fff; font-size: 1rem; cursor: pointer; } .cc-play.on { background: #fff; color: #111; }
.cc-slider { grid-column: span 1; position: relative; display: flex; align-items: center; gap: 6px; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.14); }
.cc-slider input { width: 100%; accent-color: #fff; }
.cc-wide { border: 0; border-radius: 18px; padding: 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; cursor: pointer; }
.cc-close { margin-top: auto; border: 0; background: none; color: rgba(255,255,255,.8); padding: 10px; cursor: pointer; }
body.dnd #ui .toast, body.dnd #ui .toasts { display: none !important; }
/* the phone fits the screen when the phone is held sideways: same phone, made smaller as a whole */
@media (orientation: landscape) and (max-height: 520px) {
  .phone-wrap { inset: 0 !important; background: rgba(0,0,0,.35) !important; }
  .phone.premium { width: 360px !important; height: 720px !important; border-radius: 40px !important; border-width: 8px !important; zoom: var(--phone-zoom, .55); }
}

/* 6 Nov: Meet dating (honest numbers, blurred real faces, pass gate) */
.meet-hero { display: grid; gap: .35rem; padding: 1rem; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #e11d48, #9333ea 60%, #1e1b4b); box-shadow: 0 8px 24px #e11d4840; }
.meet-hero b { font-size: 1.05rem; line-height: 1.2; }
.meet-hero span { font-size: .85rem; opacity: .92; }
.meet-stats { display: flex; gap: .4rem; margin: .6rem 0; flex-wrap: wrap; }
.meet-stats span { flex: 1; min-width: 64px; display: grid; text-align: center; padding: .45rem .3rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .7rem; color: #666; }
.meet-stats b { font-size: 1.1rem; color: #e11d48; }
.meet-stats .hot { background: #ffe4ec; border-color: #fda4af; }
.meet-teaser { display: flex; justify-content: center; margin: .6rem 0 .2rem; }
.mt-face { position: relative; width: 46px; height: 46px; margin-left: -10px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: linear-gradient(135deg, #fda4af, #a78bfa); display: grid; place-items: center; }
.mt-face:first-child { margin-left: 0; }
.mt-face img, .mt-face i { width: 100%; height: 100%; object-fit: cover; filter: blur(5px); display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; font-size: 1.2rem; }
.mt-face em { position: absolute; right: -2px; bottom: -2px; font-style: normal; font-size: .8rem; }
.meet-pass { display: grid; gap: .4rem; padding: .9rem; margin: .6rem 0; border-radius: 16px; background: #fffbeb; border: 1px solid #fcd34d; }
.btn-gold { background: linear-gradient(135deg, #fcd116, #f59e0b); color: #1a1200; font-weight: 800; border: 0; }
.center { text-align: center; }

/* 7 Nov: 8-ball pool (top-down, like the iMessage game) */
.pool8 { position: fixed; inset: 0; z-index: 900; background: radial-gradient(ellipse at center, #1f2937 0%, #0b0f17 75%); touch-action: none; user-select: none; -webkit-user-select: none; }
.p8-c { position: absolute; inset: 0; }
.p8-top { position: absolute; left: 0; right: 0; top: 0; padding: max(6px, env(safe-area-inset-top)) 8px 6px; background: linear-gradient(#0b0f17 70%, rgba(11,15,23,0)); height: 56px; display: flex; align-items: center; gap: 8px; z-index: 2; color: #fff; }
.p8-pl { display: grid; gap: 2px; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); min-width: 90px; transition: .2s; }
.p8-pl b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.p8-pl.on { background: rgba(252,209,22,0.18); border-color: #fcd116; box-shadow: 0 0 12px rgba(252,209,22,.35); }
.p8-grp { display: flex; gap: 2px; min-height: 10px; }
.p8-grp i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset -1px -1px 2px rgba(0,0,0,.4); }
.p8-grp i.in { opacity: .2; }
.p8-msg { flex: 1; text-align: center; font-size: .78rem; line-height: 1.2; opacity: .92; }
.p8-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.12); color: #fff; font-size: 1rem; flex: none; }
.p8-power { position: absolute; right: max(10px, env(safe-area-inset-right)); top: 64px; bottom: 70px; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; color: #fde68a; font-size: .6rem; font-weight: 800; letter-spacing: .05em; }
.p8-track { flex: 1; width: 22px; border-radius: 12px; background: linear-gradient(#111827, #1f2937); border: 2px solid rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.p8-track i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(#22c55e, #fcd116 55%, #ef4444); }
.p8-fine { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); width: min(320px, 70vw); height: 38px; border-radius: 20px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 10px), rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #fff; font-size: .7rem; z-index: 2; }
.p8-fine em { font-style: normal; opacity: .7; }
@media (orientation: landscape) and (max-height: 520px) { .p8-fine { bottom: 4px; height: 28px; } .p8-power { top: 56px; bottom: 36px; } }
.p8-end { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: grid; gap: 10px; text-align: center; padding: 20px 22px; border-radius: 20px; background: rgba(17,24,39,0.94); border: 1px solid #fcd116; color: #fff; min-width: 240px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.p8-end b { font-size: 1.2rem; }
.p8-end div { display: flex; gap: 8px; justify-content: center; }
.p8-modes { display: grid; gap: 8px; margin: 10px 0; }
.map-fuel { background: #fb923c; color: #fff; border: 0; font-weight: 700; }
.dl-tier { margin: .8rem 0 .3rem; font-size: .8rem; letter-spacing: .03em; color: #b45309; }
/* 7 Nov: phones: no white veil over the character while choosing it (the sheet below is enough) */
@media (max-width: 700px) { body:has(.creator-sheet) .vignette, body:has(.life-sheet) .vignette { background: linear-gradient(0deg, rgba(255,255,255,.5), transparent 45%); } }
.rotate-tip { display: none; padding: .5rem .7rem; border-radius: 12px; background: #e0f2fe; color: #075985; }
@media (max-width: 700px) and (orientation: portrait) { .rotate-tip { display: block; } }
/* 7 Nov: phone "how to play" */
.touch-help { list-style: none; padding: 0; margin: .8rem 0 1rem; display: grid; gap: .55rem; text-align: left; }
.touch-help li { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; background: var(--surface-2, #f1f5f9); }
.touch-help li > span { width: 2.4rem; height: 2.4rem; flex: none; display: grid; place-items: center; font-size: 1.4rem; border-radius: 12px; background: #fff; }
.touch-help .th-e { background: #0ea5e9; color: #fff; font: 800 1.1rem var(--text); border-radius: 50%; }
.touch-help b { display: block; } .touch-help small { color: var(--mist); }
/* 7 Nov: the "next goal" guide */
.guide-pill { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 74px); z-index: 25; display: flex; align-items: center; gap: .45rem; width: max-content; max-width: min(calc(100vw - 200px), 26rem); padding: .3rem 1.9rem .3rem .5rem; border: 0; border-radius: 14px; background: linear-gradient(135deg, #fcd116, #f59e0b); color: #1a1200; text-align: left; font: inherit; box-shadow: 0 8px 22px rgba(245,158,11,.45); animation: gpulse 1.6s ease-in-out infinite; pointer-events: auto; }
.guide-pill[hidden] { display: none; }
.guide-pill .g-ic { font-size: 1.15rem; }
.guide-pill .g-txt { min-width: 0; }
.guide-pill b { display: block; font-size: .78rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-pill small { display: block; font-size: .66rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-pill .g-arrow { font-weight: 900; }
.guide-pill .g-x { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font-style: normal; width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.12); font-size: .65rem; }
.guide-pill .g-arrow { display: none; }
@keyframes gpulse { 0%, 100% { box-shadow: 0 8px 22px rgba(245,158,11,.45); transform: translateX(-50%) scale(1); } 50% { box-shadow: 0 8px 30px rgba(245,158,11,.85); transform: translateX(-50%) scale(1.04); } }
@media (orientation: landscape) and (max-height: 520px) { .guide-pill { top: 8px; } }

/* ===== The logo (7 Nov): sunset emblem + COTONOU + gold LIFE tag ===== */
.logo { display: inline-flex; align-items: center; gap: .32em; font-family: var(--display); line-height: .9; }
.logo-emblem { width: 1.75em; height: 1.75em; border-radius: 22%; box-shadow: 0 .08em .3em rgba(0,0,0,.35); flex: none; }
.logo-words { display: flex; flex-direction: column; align-items: flex-start; }
.logo-cotonou { font-weight: 800; font-size: 1em; letter-spacing: -.02em; color: #fff; transform: skewX(-8deg); text-shadow: 0 .06em 0 #e8112d, 0 .2em .6em rgba(0,0,0,.35); }
.logo-life { margin-top: .14em; font-weight: 800; font-size: .62em; letter-spacing: .32em; padding: .14em .25em .1em .55em; color: #140b30; background: linear-gradient(95deg, #fde047, #fcd116 45%, #f59e0b); transform: skewX(-12deg); box-shadow: .12em .12em 0 #008751; }
.logo-lg { font-size: clamp(2.4rem, 7vw, 5.6rem); }
.logo-sm { font-size: 1.05rem; }
.logo-sm .logo-cotonou { color: var(--ink); text-shadow: 0 .06em 0 #e8112d; }
.logo-boot { font-size: clamp(2rem, 9vw, 3.2rem); flex-direction: column; gap: .3em; }
.logo-boot .logo-emblem { width: 2.6em; height: 2.6em; animation: logopulse 1.8s ease-in-out infinite; }
.logo-boot .logo-words { align-items: center; }
@keyframes logopulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(252,209,22,0); } 50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(252,209,22,.45); } }
.boot.boot-v2 { background: radial-gradient(circle at 50% 38%, #4a1462 0%, #1a1446 45%, #0b1220 100%) !important; color: #fff; }
.boot-v2 p { color: rgba(255,255,255,.75); }
.boot-v2 .boot-bar { background: rgba(255,255,255,.15); }
@media (max-width: 760px) { .logo-lg { font-size: clamp(2rem, 10vw, 3rem); } }

.inapp-tip { margin-top: 1rem; padding: .6rem .8rem; border-radius: 14px; background: rgba(252,209,22,.16); border: 1px solid rgba(252,209,22,.5); color: #fde68a; font-size: .85rem; max-width: 32rem; }
