:root {
  --bg: #e7f0f7; --card: #ffffff; --ink: #14212b; --ink-soft: #5b6b78; --mist: #eef3f6; --line: rgba(20, 33, 43, .1);
  --brand: #0f7a3d; --brand-ink: #ffffff; --accent: #c8102e; --gold: #d4a93a;
  --good: #22a55b; --warn: #f2a516; --bad: #e5484d; --sky: #a9cdea;
  --shadow: 0 10px 30px rgba(15, 30, 45, .14); --radius: 20px;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1820; --card: #17232d; --ink: #e9f0f5; --ink-soft: #98a8b5; --mist: #22313d; --line: rgba(255, 255, 255, .1); --sky: #1d3446; --shadow: 0 10px 30px rgba(0, 0, 0, .4); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0f1820; --card: #17232d; --ink: #e9f0f5; --ink-soft: #98a8b5; --mist: #22313d; --line: rgba(255, 255, 255, .1); --sky: #1d3446; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
h2 { font-size: 1.6rem; margin: .4rem 0; letter-spacing: -.02em; }
h3 { margin: .2rem 0; letter-spacing: -.01em; }
h4 { margin: 1rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
p { line-height: 1.45; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.big { font-size: 1.6rem; line-height: 1; }
.huge { font-size: 2rem; display: block; letter-spacing: -.02em; }
.row { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.row.center { justify-content: center; }
.stack { display: grid; gap: .75rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.warn-t { color: #b7791f; } .bad-t { color: var(--bad); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { border: 0; border-radius: 999px; padding: .75rem 1.15rem; font-weight: 600; background: var(--mist); transition: transform .08s, filter .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(15, 122, 61, .28); }
.btn.ghost { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { padding: .45rem .8rem; font-size: .85rem; }
.btn.block { display: block; width: 100%; margin-top: .6rem; }
.btn:disabled { opacity: .55; box-shadow: none; }
.btn.on { background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; padding: .3rem; }
.tag { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; }
.tag.good { background: rgba(34, 165, 91, .15); color: #15803d; } .tag.warn { background: rgba(242, 165, 22, .18); color: #a16207; } .tag.bad { background: rgba(229, 72, 77, .15); color: #c0262c; }
.chip { display: inline-flex; gap: .3rem; align-items: center; background: var(--card); padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; box-shadow: var(--shadow); }
.card { background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); border: 0; text-align: left; }
.bar { height: 7px; background: var(--mist); border-radius: 99px; overflow: hidden; flex: 1; min-width: 30px; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
.bar.skill i { background: var(--brand) !important; }

/* brand */
.brand { display: flex; gap: .45rem; align-items: center; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-mark { font-size: 1rem; letter-spacing: -.2em; margin-right: .2em; }
.brand b { color: var(--accent); }
.badge { background: var(--ink); color: var(--card); border-radius: 99px; font-size: .7rem; font-weight: 800; padding: .25rem .45rem; }

/* map */
.map { position: absolute; inset: 0; touch-action: none; background: var(--sky); cursor: grab; user-select: none; }
.map:active { cursor: grabbing; }
.map svg { width: 100%; height: 100%; display: block; }
.map .venue { cursor: pointer; }
.map .venue:hover polygon:not(.hit), .map .venue:focus polygon:not(.hit) { filter: brightness(1.08); }
.map .venue.soon { opacity: .75; }
.pin { cursor: pointer; }
.pin-emoji { font-size: 15px; text-anchor: middle; }
.pin-label { font-size: 9.5px; font-weight: 700; text-anchor: middle; fill: #14212b; font-family: inherit; }
.map-river { font-size: 18px; font-weight: 800; letter-spacing: .3em; fill: rgba(255, 255, 255, .7); }
.map-side { font-size: 11px; font-weight: 800; letter-spacing: .3em; fill: rgba(20, 33, 43, .35); }

/* landing overlays */
.topbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: .5rem; background: var(--card); border-radius: 999px; padding: .45rem .5rem .45rem 1rem; box-shadow: var(--shadow); z-index: 5; }
.pill { background: var(--mist); border: 0; border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill.soft { color: var(--ink-soft); }
.chips { position: fixed; top: 74px; left: 0; right: 0; display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; z-index: 4; padding: 0 16px; pointer-events: none; }
.banner { position: fixed; top: 112px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-weight: 600; font-size: .82rem; padding: .4rem 1rem; border-radius: 999px; z-index: 4; white-space: nowrap; box-shadow: var(--shadow); }
.cta { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); z-index: 5; }
.cta-line { display: flex; align-items: center; gap: .2rem; font-size: .88rem; }
.cta-line .avatar { margin-right: -8px; border-radius: 50%; background: var(--mist); }
.cta-line span { margin-left: 14px; }

/* sheets */
#sheet-root .backdrop, #phone-root .backdrop { position: fixed; inset: 0; background: rgba(10, 20, 28, .35); backdrop-filter: blur(3px); z-index: 20; animation: fade .2s; }
.sheet { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(540px, 100%); max-height: 78vh; overflow: auto; background: var(--card); border-radius: 26px 26px 0 0; padding: .6rem 1.1rem 1.4rem; z-index: 21; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: up .25s ease-out; }
.sheet.tall { max-height: 90vh; }
.grab { width: 40px; height: 5px; background: var(--line); border-radius: 9px; margin: 0 auto .8rem; }
@keyframes up { from { transform: translate(-50%, 40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.gate { display: flex; gap: .8rem; align-items: center; }
.gate-emoji { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--mist); border-radius: 50%; flex: none; }

/* pages (signup etc) */
.page { height: 100%; overflow: auto; padding: 16px 16px 120px; max-width: 560px; margin: 0 auto; background: linear-gradient(var(--sky), var(--bg) 300px); }
.back { color: var(--brand); text-decoration: none; font-weight: 600; display: inline-block; margin: .3rem 0 .8rem; }
.hero { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: .6rem; }
.hero .brand { font-size: 1.9rem; }
.sub { text-align: center; color: var(--ink-soft); margin: .4rem 0 1.2rem; }
.form { display: grid; gap: .4rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.form input, .form select, .search { font: inherit; border: 0; background: var(--mist); border-radius: 999px; padding: .8rem 1rem; color: var(--ink); width: 100%; }
.at { display: flex; align-items: center; background: var(--mist); border-radius: 999px; padding-left: 1rem; }
.at input { background: transparent; padding-left: .2rem; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; background: var(--mist); border-radius: 16px; padding: .75rem; }
.form .check input { width: auto; margin-top: .2rem; }
.err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: .2rem 0 0; font-size: .88rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border-radius: 999px; padding: 4px; }
.tabs .btn { background: transparent; }
.tabs .btn.on { background: var(--card); }
.save-row { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.save-row .avatar { border-radius: 50%; background: var(--mist); }
.footer-cta { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(560px, 100%); padding: 12px 16px 18px; background: linear-gradient(transparent, var(--bg) 35%); }

.creator { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.preview { display: grid; justify-items: center; gap: .2rem; min-width: 130px; }
.preview .avatar { border-radius: 50%; }
.swatches { display: flex; gap: .45rem; flex-wrap: wrap; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sw.on { border-color: var(--gold); }
.chips-row { display: flex; gap: .35rem; flex-wrap: wrap; margin: .3rem 0; }
.chipbtn { padding: .4rem .75rem; font-size: .82rem; }
.chipbtn.on { background: var(--brand); color: #fff; }
.pick { display: grid; gap: .25rem; cursor: pointer; border: 2px solid transparent; }
.pick small { color: var(--ink-soft); line-height: 1.35; }
.pick.on, .route.on, .home-card.on { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(15, 122, 61, .15), var(--shadow); }
.route, .home-card { border: 2px solid transparent; cursor: pointer; }
.route-head { display: flex; gap: .7rem; align-items: center; }
.route ul { margin: .6rem 0 0; padding-left: 1.2rem; line-height: 1.55; font-size: .92rem; }
.home-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.home-card.locked { opacity: .7; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .88rem; }
.kv span { color: var(--ink-soft); }
.kv2 { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.kv2.total { border-bottom: 0; font-size: 1.05rem; }

.arrival { height: 100%; overflow: auto; max-width: 560px; margin: 0 auto; padding: 12vh 20px 40px; background: linear-gradient(#6b7f93, var(--bg) 60%); }
.arrival h2 { font-size: 2rem; }
.plane { font-size: 3rem; animation: fly 3s ease-in-out infinite alternate; }
@keyframes fly { to { transform: translate(30px, -10px) rotate(-6deg); } }

/* game */
.game { position: fixed; inset: 0; display: flex; flex-direction: column; }
.hud { display: flex; align-items: center; gap: .4rem; padding: 10px 12px 0; z-index: 6; flex-wrap: wrap; }
.hud-avatar { border: 0; background: var(--card); border-radius: 50%; padding: 2px; box-shadow: var(--shadow); width: 46px; height: 46px; display: grid; place-items: center; }
.hud .pill { background: var(--card); box-shadow: var(--shadow); padding: .5rem .8rem; font-size: .85rem; }
.held { color: #b7791f; font-weight: 700; }
.speed { background: var(--mist); border-radius: 99px; padding: 0 .4rem; margin-left: .2rem; }
.needs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 8px 12px 0; padding: .55rem .8rem; background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); z-index: 6; position: relative; }
.need { display: flex; align-items: center; gap: .25rem; }
.need em { font-style: normal; font-size: .9rem; }
.sick { position: absolute; right: -6px; top: -8px; font-size: 1.2rem; }
.news { margin: 8px 12px 0; background: #fff4d6; color: #7a4b00; font-size: .8rem; font-weight: 600; border-radius: 12px; padding: .45rem .8rem; z-index: 6; }
.goal { margin: 8px 12px 0; align-self: flex-start; background: var(--brand); color: #fff; border: 0; border-radius: 999px; font-size: .82rem; padding: .45rem .9rem; z-index: 6; box-shadow: var(--shadow); max-width: calc(100% - 24px); }
#view { position: relative; flex: 1; min-height: 0; overflow: auto; }
#view .map { position: absolute; inset: 0; }
.nav { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 6; }
.nav button { border: 0; background: none; display: grid; justify-items: center; font-size: 1.3rem; padding: .3rem; border-radius: 14px; position: relative; }
.nav button span { font-size: .7rem; font-weight: 600; color: var(--ink-soft); }
.nav button.on { background: var(--mist); }
.nav button.ready { background: rgba(15, 122, 61, .14); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(15, 122, 61, .12); } }
.dot { position: absolute; top: 4px; right: 22%; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }

.room-wrap { display: grid; justify-items: center; padding: 8px 12px 16px; }
.room-title { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0; }
.room { width: min(560px, 100%); height: auto; max-height: 52vh; }
.furn { cursor: pointer; }
.furn:hover polygon:not(.hit), .furn:focus polygon:not(.hit) { filter: brightness(1.1); }
.furn-emoji { font-size: 20px; text-anchor: middle; pointer-events: none; }
.room-stats { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--ink-soft); text-align: center; }
.hint { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .4rem 0; }
.here { margin: 12px; max-width: 560px; margin-inline: auto; }
.venue-head { display: flex; align-items: center; gap: .8rem; padding: .8rem; margin: -.2rem -.2rem .4rem; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--vc) 22%, var(--card)), var(--card)); }
.venue-head > div { flex: 1; min-width: 0; }
.venue-emoji { font-size: 2rem; width: 54px; height: 54px; display: grid; place-items: center; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); flex: none; }
.travel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.trav { border: 0; background: var(--mist); border-radius: 16px; padding: .6rem .3rem; display: grid; justify-items: center; gap: .15rem; text-align: center; }
.trav small { font-size: .7rem; color: var(--ink-soft); line-height: 1.2; }
.trav:disabled { opacity: .5; }
.trav:not(:disabled):hover { background: rgba(15, 122, 61, .12); }
.acts { display: grid; gap: .45rem; }
.act { display: flex; gap: .7rem; align-items: center; border: 0; background: var(--mist); border-radius: 16px; padding: .7rem .8rem; text-align: left; width: 100%; }
.act small { display: block; color: var(--ink-soft); font-size: .78rem; margin-top: .1rem; line-height: 1.3; }
button.act:not(:disabled):hover { background: rgba(15, 122, 61, .1); }
.act:disabled { opacity: .55; }
.act.done { opacity: .7; }
.act-btn { width: 100%; text-align: left; border-radius: 16px; }
.work-box { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: rgba(15, 122, 61, .1); border-radius: 14px; padding: .6rem .8rem; flex-wrap: wrap; }

/* phone */
.phone { position: fixed; z-index: 21; right: max(12px, calc(50% - 260px)); bottom: 12px; top: 12px; width: min(400px, calc(100% - 24px)); background: var(--bg); border-radius: 34px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border: 8px solid #111; display: flex; flex-direction: column; overflow: hidden; animation: up2 .25s ease-out; }
@keyframes up2 { from { transform: translateY(30px); opacity: 0; } }
.phone-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; background: var(--card); }
.phone-body { flex: 1; overflow: auto; padding: 1rem; display: grid; gap: .7rem; align-content: start; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem .5rem; }
.appicon { border: 0; background: none; display: grid; justify-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; }
.appicon span { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); position: relative; }
.count { position: absolute; top: -5px; right: -5px; background: var(--accent); color: #fff; font-style: normal; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }
.job-now { display: grid; gap: .25rem; }
.job-row { display: flex; gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.job-row > .grow { flex: 1 1 60%; }
.job-row > .btn { flex: 0 1 auto; max-width: 42%; white-space: normal; line-height: 1.2; text-align: center; }
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .hud { flex-wrap: nowrap; gap: .3rem; }
  .hud .pill { padding: .45rem .6rem; font-size: .78rem; }
  .hud .pill.city .cname, .hud .pill.city .held { display: none; }
  .hud-avatar { width: 40px; height: 40px; flex: none; }
  .street-action .muted { display: none; }
  .map-ctrl { top: 46%; right: 8px; gap: 5px; }
  .map-ctrl button { width: 40px; height: 40px; }
  .pad { width: 52px; height: 52px; } .job-row > .btn { max-width: none; flex: 1 1 100%; margin-left: 2.2rem; } }
.job-row small { display: block; font-size: .76rem; line-height: 1.3; }
.balance { background: linear-gradient(135deg, #6d28d9, #4c1d95); color: #fff; }
.balance small { opacity: .85; display: block; }
.msg { display: flex; gap: .6rem; padding: .6rem; border-radius: 14px; }
.msg.unread { background: rgba(37, 99, 235, .08); }
.msg p { margin: .2rem 0 0; }
.needs-detail { display: grid; gap: .45rem; }
.needs-detail > div { display: grid; grid-template-columns: 120px 1fr 32px; gap: .5rem; align-items: center; font-size: .9rem; }
.guide summary { cursor: pointer; }
.guide p { margin: .5rem 0 0; font-size: .9rem; }
.road { padding-left: 1.2rem; line-height: 1.7; }
.road li.done, .goals li.done { color: var(--good); text-decoration: line-through; }
.goals { list-style: none; padding: 0; line-height: 1.8; }

/* overlays: work, tour */
#overlay-root .overlay { position: fixed; inset: 0; background: rgba(10, 20, 28, .55); z-index: 30; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.task { width: min(420px, 100%); text-align: center; display: grid; gap: .6rem; }
.timer { height: 8px; background: var(--mist); border-radius: 9px; overflow: hidden; }
.timer i { display: block; height: 100%; background: var(--warn); animation: drain 5s linear forwards; }
@keyframes drain { from { width: 100%; } to { width: 0; } }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.opt { font-size: 2.4rem; padding: .9rem 0; border-radius: 20px; border: 0; background: var(--mist); transition: transform .1s; }
.opt:active { transform: scale(.95); }
.opt.right { background: rgba(34, 165, 91, .3); } .opt.wrong { background: rgba(229, 72, 77, .3); }
.payslip { text-align: left; }
.tour { background: rgba(10, 20, 28, .45) !important; place-items: unset !important; }
.spot { position: fixed; border-radius: 18px; box-shadow: 0 0 0 4px var(--gold), 0 0 0 9999px rgba(10, 20, 28, .45); pointer-events: none; transition: all .25s; }
.tour-card { position: fixed; left: 50%; transform: translateX(-50%); width: min(380px, calc(100% - 32px)); }
.tour-card.center { top: 50%; transform: translate(-50%, -50%); }
.tour-card.bottom { top: 40%; } .tour-card.top { bottom: 120px; }

/* cities & utilities */
.chips .chip { pointer-events: auto; border: 0; cursor: pointer; }
.chips .chip.on { background: var(--brand); color: #fff; }
.city-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.city-vibe { background: var(--card); border-radius: 16px; padding: .7rem .9rem; font-size: .9rem; box-shadow: var(--shadow); }
.hud .pill.city { background: var(--brand); color: #fff; }
.util { display: grid; gap: .3rem; }
.util p { margin: .1rem 0; }
.util-head { display: flex; align-items: center; gap: .5rem; }
.room-stats .link { padding: 0; text-align: center; }

/* full-body characters */
.avatar-full { display: block; overflow: visible; }
.avatar-full .fb-leg-l, .avatar-full .fb-leg-r { transform-box: fill-box; transform-origin: 50% 0; }
.avatar-full .fb-arm-l, .avatar-full .fb-arm-r { transform-box: fill-box; transform-origin: 50% 8%; }
.walking .fb-leg-l, .walking.avatar-full .fb-leg-l { animation: legA .5s ease-in-out infinite alternate; }
.walking .fb-leg-r, .walking.avatar-full .fb-leg-r { animation: legB .5s ease-in-out infinite alternate; }
.walking .fb-arm-l { animation: legB .5s ease-in-out infinite alternate; }
.walking .fb-arm-r { animation: legA .5s ease-in-out infinite alternate; }
.fb-arm-l.wave { animation: wave 1.2s ease-in-out infinite; }
@keyframes legA { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes legB { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(150deg); } }
.preview .avatar-full { margin-bottom: .3rem; }
.visitor { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }

/* street */
.street { position: absolute; inset: 0; overflow: hidden; background: #1e293b; touch-action: none; }
.street-world { position: absolute; left: 0; top: 0; height: 440px; transform-origin: 0 0; }
.street-bg { position: absolute; left: 0; top: 0; }
.st-sign { font-size: 19px; font-weight: 800; fill: #fff; font-family: inherit; }
.street-me { position: absolute; top: 212px; width: 55px; z-index: 3; pointer-events: none; transition: none; }
.street-npc { position: absolute; top: 220px; border: 0; background: none; padding: 0; display: grid; justify-items: center; z-index: 2; cursor: pointer; }
.street-npc small { background: rgba(255,255,255,.92); color: #14212b; border-radius: 99px; padding: .1rem .45rem; font-size: 11px; font-weight: 700; margin-top: -4px; white-space: nowrap; }
.street-npc .bubble { position: absolute; top: -8px; right: -10px; background: #fff; border-radius: 12px; padding: 2px 6px; font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.2); animation: bob 2s ease-in-out infinite; }
.street-npc:hover .avatar-full, .street-npc:focus-visible .avatar-full { filter: drop-shadow(0 0 6px #fde047); }
.ad-face { position: absolute; width: 150px; height: 140px; cursor: pointer; }
.ad-face .ad-card { height: 100%; border-radius: 4px; flex-direction: column; align-items: stretch; padding: 6px; gap: 4px; }
.ad-face .ad-card img { width: 100%; height: 62px; object-fit: cover; border-radius: 3px; }
.ad-face .ad-card b { font-size: 11px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .ad-face .ad-card span { display: none; } .ad-face .ad-card small { font-size: 9px; }
.ad-face .ad-emoji { font-size: 34px; text-align: center; }
.road-traffic, .walkers { position: absolute; left: 0; top: 0; width: 100%; height: 440px; pointer-events: none; }
.veh-st { position: absolute; left: 0; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
.veh-st svg { display: block; }
.veh-st.ltr { bottom: 0; z-index: 5; animation-name: drive-ltr; }
.veh-st.rtl { bottom: 30px; z-index: 4; animation-name: drive-rtl; }
.veh-st.rtl svg { transform: scaleX(-1); }
.veh-st.car svg, .veh-st.taxi svg { width: 150px; height: auto; }
.veh-st.bike svg { width: 70px; height: auto; }
@keyframes drive-ltr { from { transform: translateX(-320px); } to { transform: translateX(calc(var(--w) + 320px)); } }
@keyframes drive-rtl { from { transform: translateX(calc(var(--w) + 320px)); } to { transform: translateX(-320px); } }
.walker { position: absolute; left: 0; top: 232px; z-index: 1; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; opacity: .95; }
.walker.ltr { animation-name: walk-ltr; } .walker.rtl { animation-name: walk-rtl; }
.walker.rtl .avatar-full { transform: scaleX(-1); }
@keyframes walk-ltr { from { transform: translateX(-160px); } to { transform: translateX(calc(var(--w) + 160px)); } }
@keyframes walk-rtl { from { transform: translateX(calc(var(--w) + 160px)); } to { transform: translateX(-160px); } }
.street-npc.pace0 { animation: pace 9s ease-in-out infinite alternate; }
@keyframes pace { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
.traffic-layer { pointer-events: none; }
.rain, .snow { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: repeating-linear-gradient(100deg, transparent 0 22px, rgba(226,232,240,.8) 22px 23.5px, transparent 23.5px 61px), repeating-linear-gradient(98deg, transparent 0 37px, rgba(226,232,240,.6) 37px 38px, transparent 38px 89px);
  background-size: 61px 34px, 89px 52px; animation: rainfall .45s linear infinite; }
.snow { background-image: radial-gradient(#fff 1.6px, transparent 2.2px), radial-gradient(#fff 1.2px, transparent 1.8px); background-size: 34px 34px, 23px 23px; animation-duration: 4s; opacity: .8; }
@keyframes rainfall { to { background-position: -10px 34px, -12px 52px; } }
.street-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; background: linear-gradient(transparent, rgba(15,23,42,.65)); }
.street-label { position: absolute; left: 12px; top: -26px; color: #fff; font-size: .8rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.street-action { flex: 1; min-width: 0; color: #fff; }
.street-action .muted { color: #e2e8f0; }
.street-pad { display: flex; gap: .5rem; }
.pad { width: 58px; height: 58px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.3rem; box-shadow: var(--shadow); user-select: none; touch-action: none; }
.pad:active { background: #fde047; }

/* people */
.people-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.person-chip { border: 0; background: var(--mist); border-radius: 16px; padding: .5rem .6rem .4rem; display: grid; justify-items: center; min-width: 92px; gap: .1rem; }
.person-chip small { font-size: .7rem; color: var(--ink-soft); }
.person-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .5rem; }
.person-head p { margin: .2rem 0; }
.rel { display: grid; grid-template-columns: auto 1fr auto; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 600; }
.contact { display: flex; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.contact .avatar-full { flex: none; }

/* ads */
.ad-card { display: flex; gap: .6rem; align-items: center; background: var(--ad); color: #fff; border-radius: 14px; padding: .55rem; overflow: hidden; }
.ad-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: #fff; }
.ad-card .ad-emoji { font-size: 2rem; flex: none; width: 48px; text-align: center; }
.ad-card > div { display: grid; min-width: 0; }
.ad-card small { color: var(--ac); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.ad-card b { font-size: .95rem; line-height: 1.2; }
.ad-card span { font-size: .78rem; opacity: .9; }
.ad-card.big img { width: 96px; height: 96px; } .ad-card.big b { font-size: 1.1rem; }
.board { cursor: pointer; } .board:hover rect { filter: brightness(1.15); }
.board-brand { font-size: 6.5px; font-weight: 800; font-family: inherit; }
.board-line { font-size: 5.5px; font-weight: 700; font-family: inherit; }
.board-tag { font-size: 5px; font-weight: 800; opacity: .8; }
.ext { color: var(--brand); font-weight: 700; }
.spark { display: flex; gap: 3px; align-items: flex-end; height: 40px; margin: .3rem 0; }
.spark i { flex: 1; background: var(--good); border-radius: 3px 3px 0 0; min-height: 3px; }
.adv .rate { display: grid; gap: .2rem; }
.adv .rate.on { outline: 3px solid var(--brand); }
.adv .price { font-size: 1.3rem; } .adv .price small { font-size: .75rem; color: var(--ink-soft); }
.adv-form { margin-top: 1rem; }
.adv-form input[type=color] { padding: .2rem; height: 44px; }
.req { margin-top: .6rem; display: grid; gap: .4rem; }

/* map controls (rotate like Google Maps) */
.map-ctrl { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; z-index: 6; }
.map-ctrl button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.map-ctrl button:active { transform: scale(.95); }
.map-ctrl .compass span { display: grid; place-items: center; line-height: .9; transition: transform .3s; font-size: 1rem; }
.map-ctrl .compass b { font-size: .6rem; color: var(--accent); }
#map-svg.spin-r { animation: spinR .38s ease-out; } #map-svg.spin-l { animation: spinL .38s ease-out; }
@keyframes spinR { from { transform: rotate(-24deg) scale(.92); opacity: .35; } }
@keyframes spinL { from { transform: rotate(24deg) scale(.92); opacity: .35; } }
.veh, .ped { cursor: pointer; }
.me-on-map { pointer-events: none; }

/* everyday street life */
.street-life { position: absolute; left: 0; top: 0; width: 100%; height: 440px; pointer-events: none; }
.life { position: absolute; bottom: 100px; z-index: 2; display: flex; align-items: flex-end; border: 0; background: none; padding: 0; pointer-events: auto; }
div.life { pointer-events: none; }
button.life { cursor: pointer; }
button.life:hover, button.life:focus-visible { filter: drop-shadow(0 0 8px #fde047); }
.life-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 900; color: #0f7a3d; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.lf-person, .lf-rider, .lf-ladder { position: relative; display: flex; align-items: flex-end; }
.lf-prop { position: absolute; right: -12px; top: 48px; font-size: 24px; }
.lf-ground { position: absolute; left: -26px; bottom: -2px; font-size: 18px; }
.lf-rider .lf-bag { position: absolute; left: 6px; bottom: 54px; font-size: 26px; }
.lf-queue, .lf-tables { display: flex; align-items: flex-end; gap: 0; }
.lf-queue .avatar-full { margin-right: -18px; }
.lf-tables .avatar-full { margin-left: -40px; }
.lf-pigeons { display: flex; gap: 10px; font-size: 22px; }
.lf-pigeons span { animation: peck 1.4s ease-in-out infinite; } .lf-pigeons span:nth-child(2) { animation-delay: -.5s; } .lf-pigeons span:nth-child(3) { animation-delay: -.9s; }
@keyframes peck { 50% { transform: rotate(18deg) translateY(2px); } }
.lf-pigeons.fly span { animation: fly 1.2s ease-out forwards; }
@keyframes fly { to { transform: translate(40px, -200px) rotate(-20deg); opacity: 0; } }
.lf-fox { font-size: 44px; transform: scaleX(-1); }
.life.trot { animation: trot 8s linear infinite alternate; }
@keyframes trot { to { transform: translateX(160px); } }
.veh-st.cyc { bottom: 46px; z-index: 3; animation-name: drive-ltr; }
.walker .w-prop { position: absolute; right: -8px; top: 50px; font-size: 18px; }
.walker .kid { position: absolute; left: 44px; bottom: 0; }
.walker.jog .fb-leg-l, .walker.jog .fb-leg-r, .walker.jog .fb-arm-l, .walker.jog .fb-arm-r { animation-duration: .28s !important; }
.pad.turn { font-size: 1.1rem; }

/* hustle board, drive, credit */
.card > b + small, .card > b + span + small { display: block; }
.tabs.tabs3 { grid-template-columns: repeat(3, 1fr); margin-bottom: .2rem; }
.tabs.tabs3 .btn { font-size: .8rem; padding: .55rem .3rem; }
.job-row.gig .tag { font-size: .62rem; padding: .1rem .4rem; }
.step.done { opacity: .75; }
.stepn { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.step.done .stepn { background: none; }
.warn-row { background: rgba(229, 72, 77, .08); }

/* first-person street */
.fpv { position: absolute; inset: 0; background: #0f172a; overflow: hidden; touch-action: none; }
.fpv canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.fpv canvas:active { cursor: grabbing; }
.fpv-ui { position: absolute; inset: 0; pointer-events: none; }
.fpv-top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fpv-loc { background: rgba(15,23,42,.7); color: #fff; font-size: .78rem; font-weight: 700; padding: .35rem .7rem; border-radius: 99px; }
.fpv-compass { background: #fff; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; box-shadow: var(--shadow); }
.fpv-action { position: absolute; left: 12px; bottom: 14px; pointer-events: auto; max-width: 55%; }
.fpv-hint { color: #fff; font-size: .75rem; background: rgba(15,23,42,.6); padding: .35rem .6rem; border-radius: 10px; display: inline-block; }
.fpv-pad { position: absolute; right: 12px; bottom: 12px; display: flex; gap: .45rem; align-items: flex-end; pointer-events: auto; }
.fpv-dpad { display: grid; gap: .35rem; }
/* interiors */
.interior { position: relative; width: 100%; aspect-ratio: 800 / 340; border-radius: 16px; overflow: hidden; margin: -.2rem 0 .7rem; box-shadow: inset 0 0 0 1px var(--line); }
.interior svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.interior.night::after { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,.18); pointer-events: none; }
.in-person { position: absolute; height: 37.6%; transform: translateX(-50%); border: 0; background: none; padding: 0; display: grid; justify-items: center; }
.in-person .avatar-full { height: 100%; width: auto; }
.in-person.sit .avatar-full { clip-path: inset(0 0 34% 0); }
.in-person.half .avatar-full { clip-path: inset(0 0 45% 0); }
.in-prop { position: absolute; right: -10%; top: 30%; font-size: clamp(12px, 2.4vw, 22px); }
.in-person.resident { cursor: pointer; z-index: 2; }
.in-person.resident small { background: rgba(255,255,255,.95); border-radius: 99px; padding: 0 .4rem; font-size: 11px; font-weight: 700; white-space: nowrap; margin-top: -3px; }
.in-person.resident:hover .avatar-full { filter: drop-shadow(0 0 6px #fde047); }
.act-dance { animation: dance .7s ease-in-out infinite alternate; } .act-cheer, .act-praise { animation: bob 1.2s ease-in-out infinite; }
.act-workout { animation: bob .6s ease-in-out infinite; } .act-pray { animation: pray 4s ease-in-out infinite; }
.act-walk, .act-shop, .act-carry { animation: pace 6s ease-in-out infinite alternate; }
.act-type .in-prop, .act-read .in-prop { animation: bob 2s ease-in-out infinite; }
@keyframes dance { from { transform: translateX(-50%) rotate(-6deg); } to { transform: translateX(-50%) translateY(-4%) rotate(6deg); } }
@keyframes pray { 0%, 40% { transform: translateX(-50%); } 50%, 90% { transform: translateX(-50%) translateY(18%) scaleY(.8); } }
.ia.flicker { animation: flicker 1.4s steps(2) infinite; } .ia.spin, .laser { animation: spin 3s linear infinite; transform-box: fill-box; transform-origin: center; }
.laser { animation: sweep 2.4s ease-in-out infinite alternate; transform-box: view-box; }
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.ia.float { animation: bob 2s ease-in-out infinite; } .ia.run, .ia.bob { animation: bob .5s ease-in-out infinite; } .ia.lift { animation: bob 1.4s ease-in-out infinite; }
.ia.drive { animation: drivein 6s linear infinite; }
@keyframes drivein { from { transform: translateX(-120px); } to { transform: translateX(120px); } }
@keyframes flicker { 50% { opacity: .55; } } @keyframes spin { to { transform: rotate(360deg); } }
.twinkle { animation: flicker 1.2s steps(2) infinite; }
.in-closed { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,23,42,.45); color: #fff; font-weight: 800; }
.in-label { position: absolute; left: 10px; bottom: 8px; background: rgba(15,23,42,.72); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 99px; }
/* seasons and weather on the side-view street */
.firework { animation: burst 1.8s ease-out infinite; transform-box: view-box; }
@keyframes burst { from { transform: scale(.1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.fog { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(226,232,240,.7), rgba(226,232,240,.35)); }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals span { position: absolute; top: -30px; font-size: 18px; animation: fall 9s linear infinite; }
@keyframes fall { to { transform: translate(60px, 110vh) rotate(360deg); } }
.news.warn { background: #fef3c7; color: #92400e; }
/* weather app */
.wx-now { display: flex; gap: .8rem; align-items: center; } .wx-big { font-size: 3rem; }
.wx-now small { display: block; }
.wx-warn.yellow { background: #fef9c3; } .wx-warn.amber { background: #fed7aa; } .wx-warn small { display: block; }
.wx-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; text-align: center; }
.wx-hours div { background: var(--card); border-radius: 12px; padding: .35rem 0; display: grid; font-size: .8rem; }
.wx-hours span { font-size: 1.2rem; }

/* ---------- responsive ---------- */
/* Short screens (phones in landscape): HUD floats over the view, nav becomes a side rail. */
@media (max-height: 520px) and (orientation: landscape) {
  .game { padding-right: 70px; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: 70px; grid-template-columns: 1fr; grid-auto-rows: 1fr; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .nav button { font-size: 1.1rem; padding: .15rem; }
  .nav button span { font-size: .6rem; }
  .hud { position: absolute; top: 6px; left: 8px; right: 78px; padding: 0; z-index: 8; gap: .3rem; flex-wrap: nowrap; }
  .hud-avatar { width: 34px; height: 34px; }
  .hud-avatar .avatar { width: 30px; height: 30px; }
  .hud .pill { padding: .3rem .55rem; font-size: .72rem; }
  .needs { position: absolute; top: 46px; left: 8px; width: min(420px, 52vw); margin: 0; padding: .3rem .5rem; z-index: 8; gap: .3rem; }
  .goal { position: absolute; top: 46px; right: 78px; margin: 0; max-width: 34vw; font-size: .7rem; padding: .3rem .6rem; z-index: 8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .news { display: none; }
  #view { position: absolute; inset: 0 70px 0 0; }
  .room-wrap { padding-top: 84px; }
  .room { max-height: 58vh; }
  .here { margin-top: 88px; }
  .sheet { max-height: 92vh; width: min(560px, calc(100% - 90px)); left: calc(50% - 35px); }
  .phone { top: 6px; bottom: 6px; right: 80px; }
  .street-ui { padding: 6px 10px; }
  .pad { width: 46px; height: 46px; }
  .street-label { display: none; }
  .fpv-pad .pad { width: 44px; height: 44px; } .fpv-loc { display: none; }
  .map-ctrl { right: 8px; gap: 4px; } .map-ctrl button { width: 38px; height: 38px; font-size: 1rem; }
  .topbar { top: 6px; padding: .3rem .4rem .3rem .8rem; }
  .chips { top: 52px; }
  .banner { display: none; }
  .cta { bottom: 8px; display: flex; gap: .6rem; align-items: center; width: min(720px, calc(100% - 32px)); padding: .6rem .8rem; }
  .cta .cta-line { flex: 1; font-size: .78rem; }
  .cta .row { margin: 0; flex-wrap: nowrap; }
  .page, .arrival { padding-top: 10px; }
  .arrival { padding-top: 4vh; }
}
/* Tablets and up: wider sheets and phone, roomier HUD. */
@media (min-width: 768px) {
  .needs { max-width: 760px; }
  .room { max-height: 58vh; }
  .here { max-width: 640px; }
}
/* Large desktops: centre the HUD strip and keep cards readable. */
@media (min-width: 1200px) {
  .hud, .needs, .news, .goal { margin-left: max(12px, calc(50vw - 560px)); }
  .needs { width: min(1120px, calc(100% - 24px)); }
  .nav { justify-content: center; grid-template-columns: repeat(5, 120px); }
}
/* Very narrow phones */
@media (max-width: 360px) {
  .hud .pill { font-size: .72rem; padding: .4rem .55rem; }
  .needs { grid-template-columns: repeat(3, 1fr); }
  .travel { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}

/* toasts */
#toasts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); z-index: 40; display: grid; gap: .4rem; pointer-events: none; }
.toast { display: flex; gap: .6rem; align-items: flex-start; background: var(--card); border-radius: 16px; padding: .7rem .9rem; box-shadow: var(--shadow); font-size: .88rem; border-left: 5px solid var(--sky); animation: drop .25s ease-out; transition: opacity .3s, transform .3s; }
.toast.good { border-left-color: var(--good); } .toast.bad { border-left-color: var(--bad); }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast-emoji { font-size: 1.2rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 520px) {
  .hide-sm { display: none; }
  .hud { flex-wrap: nowrap; gap: .3rem; }
  .hud .pill { padding: .45rem .6rem; font-size: .78rem; }
  .hud .pill.city .cname, .hud .pill.city .held { display: none; }
  .hud-avatar { width: 40px; height: 40px; flex: none; }
  .street-action .muted { display: none; }
  .map-ctrl { top: 46%; right: 8px; gap: 5px; }
  .map-ctrl button { width: 40px; height: 40px; }
  .pad { width: 52px; height: 52px; }
  .topbar .pill.soft { display: none; }
  .topbar { padding-left: .8rem; }
  .brand { font-size: .95rem; }
  .needs { gap: .35rem; padding: .5rem .6rem; }
  .need em { font-size: .8rem; }
  .travel { grid-template-columns: repeat(2, 1fr); }
  .banner { font-size: .75rem; }
  .phone { border-width: 0; border-radius: 0; inset: 0; width: 100%; right: 0; top: 0; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- walkable rooms (isometric, like a little diorama) ---------- */
.rm-host { margin: -.2rem 0 .7rem; }
.rm { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #7c8fd4 0%, #b9a3d8 45%, #f2b38a 100%); box-shadow: inset 0 0 0 1px var(--line); }
.rm.dusk { background: linear-gradient(180deg, #5b5fa8 0%, #c084a8 50%, #f59e6b 100%); }
.rm.night { background: linear-gradient(180deg, #0b1730 0%, #1e2a55 60%, #3b3f72 100%); }
.rm-svg { display: block; width: 100%; height: auto; max-height: 62vh; touch-action: manipulation; }
.rm-tile { cursor: pointer; }
.rm-tile:hover { filter: brightness(1.08); }
.rm-item.usable, .rm-person, .rm-spark { cursor: pointer; }
.rm-item.usable:hover { filter: brightness(1.12); }
.rm-person:hover .rm-body { filter: drop-shadow(0 0 4px #fff); }
.rm-person[class*="act-"] { animation: none; }
.rm-body, .rm-me-body { transform-box: fill-box; transform-origin: 50% 100%; }
.rm-person.act-dance .rm-body { animation: rmDance .7s ease-in-out infinite alternate; }
.rm-person.act-cheer .rm-body, .rm-person.act-praise .rm-body, .rm-person.act-workout .rm-body { animation: rmBob 1s ease-in-out infinite; }
.rm-person.act-pray .rm-body { animation: rmPray 4s ease-in-out infinite; }
.rm-person.act-chat .rm-body, .rm-person.act-wait .rm-body, .rm-person.act-type .rm-body, .rm-person.act-read .rm-body { animation: rmSway 3s ease-in-out infinite; }
@keyframes rmBob { 50% { transform: translateY(-4px); } }
@keyframes rmDance { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-5px) rotate(4deg); } }
@keyframes rmPray { 0%, 40% { transform: none; } 55%, 85% { transform: scaleY(.72); } }
@keyframes rmSway { 50% { transform: rotate(1.5deg); } }
.rm-pose { pointer-events: none; }
.rm-tag rect { fill: rgba(255,255,255,.92); }
.rm-tag.staff rect { fill: #0f7a3d; }
.rm-tag.me rect { fill: #111827; }
.rm-tag text { font: 800 8px Outfit, system-ui, sans-serif; text-anchor: middle; fill: #14212b; }
.rm-tag.staff text, .rm-tag.me text { fill: #fff; }
.rm-spark { font-size: 15px; animation: rmBob 1.4s ease-in-out infinite; transform-box: fill-box; }
.rm-belt { animation: rmBelt 2.4s linear infinite; }
@keyframes rmBelt { from { transform: translate(0, 0); } to { transform: translate(40px, 20px); } }
.rm-label { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); border-radius: 999px; padding: .3rem .75rem; font-weight: 800; font-size: .82rem; }
.rm-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(17,24,39,.65); color: #fff; border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.rm-talk { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #fff; border-radius: 16px; padding: .7rem .8rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 2; }
.rm-talk-head { display: flex; gap: .6rem; align-items: center; }
.rm-talk-head small { display: block; color: var(--muted, #64748b); }
.rm-talk p { margin: .45rem 0; font-style: italic; }
.rm-talk-acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.rm-x { border: 0; background: #f1f5f9; border-radius: 999px; width: 28px; height: 28px; cursor: pointer; }
.avatar-full.side { overflow: visible; }
.rm-tag.event rect { fill: #d4a93a; stroke: #fff; stroke-width: 1.5; }
.rm-tag.event text { fill: #1c1917; }
.kind-event .rm-body { animation: rmBob 1.6s ease-in-out infinite; }
.ev-card { border: 2px solid #d4a93a; background: #fffbeb; border-radius: 16px; padding: .7rem .8rem; margin: .5rem 0; }
.ev-card h5 { margin: 0 0 .2rem; font-size: .95rem; }
.ev-card .tag { margin-left: .3rem; }
.goal-row { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.goal-row .grow small { display: block; color: var(--muted, #64748b); }
.goal-row.done b { text-decoration: line-through; color: #15803d; }
.ptabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
.ptabs .btn { white-space: nowrap; border-radius: 999px; }
.ptabs .btn.on { background: #14212b; color: #fff; }
.spin-stage { position: relative; height: 300px; border-radius: 22px; background: linear-gradient(180deg, #dbeafe, #eef2f7); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.spin-stage::after { content: ''; position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); width: 240px; height: 110px; border-radius: 50%; background: #d1d5db; opacity: .7; }
.spin-fig { position: relative; z-index: 1; margin-bottom: 14px; transition: transform .05s linear; }
.spin-hint { position: absolute; bottom: 8px; z-index: 2; color: #475569; font-weight: 600; font-size: .85rem; }
.path-card { border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem; margin: .5rem 0; }
.prof-field { display: flex; justify-content: space-between; align-items: center; background: #f3f4f6; border-radius: 999px; padding: .7rem 1rem; margin: .5rem 0; }
.prof-field input { border: 0; background: transparent; font: inherit; font-weight: 800; flex: 1; min-width: 0; }
.room-wrap .rm-host { width: min(100%, 820px); align-self: stretch; margin: 0 auto .6rem; }
.house-tag rect { fill: rgba(255,255,255,.95); stroke: #0f7a3d; stroke-width: .8; }
.house-tag.me rect { fill: #0f7a3d; } .house-tag.me text { fill: #fff; }
.house-tag.let rect { fill: #fde047; stroke: #a16207; }
.house-tag text { font: 800 7px Outfit, system-ui, sans-serif; text-anchor: middle; fill: #14212b; }
.house-tag { cursor: pointer; }

/* ---------- accounts ---------- */
.acct { background: #ecfdf5; border-radius: 14px; padding: .55rem .8rem; font-size: .88rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.pw { position: relative; display: flex; }
.pw input { padding-right: 3rem; }
.pw-eye { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; }
.pw-meter { height: 6px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .2s, background .2s; }
.pw-meter[data-s="2"] i { background: var(--warn); } .pw-meter[data-s="3"] i, .pw-meter[data-s="4"] i { background: var(--good); }
.btn.link { background: transparent; border: 0; box-shadow: none; color: #0f7a3d; text-decoration: underline; padding: .3rem .4rem; }
.big-emoji { font-size: 3rem; text-align: center; }
.good-t { color: var(--good); font-weight: 700; }

/* ---------- immersive game layout: the world fills the screen, controls float over it ---------- */
.game { position: fixed; inset: 0; display: block; background: #0b1730; }
.game #view { position: absolute; inset: 0; overflow: auto; }
.ov-top { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: center; z-index: 8; pointer-events: none; padding: 0 10px; }
.ov-top .topbar { pointer-events: auto; display: flex; align-items: center; gap: .1rem; background: rgba(255,255,255,.97); border-radius: 999px; padding: 6px 6px 6px 12px; box-shadow: 0 10px 30px rgba(15,30,45,.22); max-width: 860px; width: 100%; color: #14212b; }
.tb { border: 0; background: transparent; font-weight: 600; font-size: .95rem; padding: .45rem .55rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; color: #14212b; }
.tb:hover { background: #f1f5f9; }
.tb-ico { font-size: 1rem; }
.tb-sep { width: 1px; height: 22px; background: #e2e8f0; flex: none; }
.tb.mood.mgood { color: #16a34a; } .tb.mood.mok { color: #b45309; } .tb.mood.mbad { color: #dc2626; }
.tb .speed { font-size: .7rem; background: #f1f5f9; border-radius: 999px; padding: .1rem .45rem; color: #475569; }
.tb.city { color: #0f7a3d; }
.tb.money { background: #f1f5f9; font-weight: 800; padding: .5rem 1rem; }
.tb.money .held { font-size: .7rem; color: #64748b; font-weight: 600; }
.tb.plus { background: #22c55e; color: #fff; width: 40px; height: 40px; justify-content: center; font-size: 1.5rem; font-weight: 600; padding: 0; margin-left: 4px; flex: none; }
.tb.plus:hover { background: #16a34a; }
.tb.icon { font-size: 1.05rem; }
.ov-left { position: absolute; top: 72px; left: 10px; z-index: 6; display: grid; gap: 8px; justify-items: start; max-width: min(340px, 62vw); pointer-events: none; }
.ov-left > * { pointer-events: auto; }
.qcard { display: flex; align-items: center; gap: .65rem; background: rgba(255,255,255,.97); color: #14212b; border: 0; border-radius: 999px; padding: 8px 20px 8px 8px; box-shadow: 0 8px 24px rgba(15,30,45,.18); text-align: left; max-width: 100%; margin: 0; font-size: inherit; }
.qcard.goal { background: rgba(255,255,255,.97); color: #14212b; align-self: auto; }
.qcard .q-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e0f2fe; flex: none; font-size: 1.15rem; }
.q-ico.brand { background: #16a34a; } .q-ico.gold { background: #fde68a; }
.qcard .q-txt { display: grid; min-width: 0; }
.qcard b { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard small { font-size: .8rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qcard.news { border-radius: 22px; } .qcard.news small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qcard.news.warn { background: #fef3c7; }
.clean-btn { border: 0; background: rgba(255,255,255,.97); border-radius: 999px; padding: .45rem .95rem; font-size: .85rem; font-weight: 600; color: #334155; box-shadow: 0 8px 24px rgba(15,30,45,.18); }
.ov-bl { position: absolute; left: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.ov-bl > * { pointer-events: auto; }
.ov-bl .hud-avatar { width: 70px; height: 70px; border: 4px solid #22c55e; background: #e0f2fe; box-shadow: 0 8px 24px rgba(15,30,45,.25); padding: 0; overflow: hidden; border-radius: 50%; }
.ov-bl .needs { margin: 0; display: grid; grid-template-columns: repeat(3, 84px); gap: 8px 14px; padding: 12px 16px; border-radius: 26px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(15,30,45,.18); }
.ov-bl .needs .need { display: flex; align-items: center; gap: 6px; }
.ov-bl .needs .bar { flex: 1; height: 8px; }
.game .nav { position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 4px; background: rgba(255,255,255,.98); border-radius: 28px; padding: 8px; box-shadow: 0 10px 30px rgba(15,30,45,.25); width: min(600px, calc(100% - 20px)); z-index: 8; }
.game .nav button { flex: 1; display: grid; justify-items: center; gap: 3px; padding: .5rem .3rem; border-radius: 20px; color: #475569; font-size: inherit; background: none; border: 0; }
.game .nav button span { font-size: .8rem; font-weight: 600; color: inherit; }
.game .nav button.on { background: #14212b; color: #fff; }
.game .nav button.off { opacity: .35; }
.game .nav button.ready { background: rgba(34,197,94,.16); color: #0f7a3d; }
.game .nav .dot { position: absolute; top: 6px; right: 28%; }
.game.clean .ov-left > :not(.clean-btn), .game.clean .ov-bl, .game.clean .place-card { display: none !important; }
.game.street-mode .ov-left, .game.street-mode .ov-bl { display: none; }
.game.map-mode .ov-bl { bottom: calc(100px + env(safe-area-inset-bottom)); }
.game.map-mode .ov-left { top: 180px; }
.game .map-ctrl { top: auto; bottom: calc(100px + env(safe-area-inset-bottom)); transform: none; right: 10px; }

/* rooms that fill the screen */
.home-full { position: absolute; inset: 0; }
.rm-host.full { position: absolute; inset: 0; margin: 0; width: auto; }
.rm.full { position: absolute; inset: 0; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; padding: 70px 0 90px; }
.rm.full .rm-svg { width: 100%; height: 100%; max-height: none; }
.rm.full .rm-label { display: none; }
.rm.full .rm-hint { bottom: 100px; }
.rm.full .rm-talk { left: 50%; right: auto; transform: translateX(-50%); width: min(540px, calc(100% - 20px)); bottom: 100px; }
.place-card { position: absolute; top: 72px; right: 10px; z-index: 5; background: rgba(255,255,255,.96); border-radius: 22px; padding: .75rem 1rem; box-shadow: 0 8px 24px rgba(15,30,45,.18); display: grid; gap: .2rem; font-size: .85rem; max-width: min(300px, 36vw); color: #14212b; justify-items: start; }
.place-card .link { padding: 0; text-align: left; }
.home-acts { position: absolute; right: 10px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 5; display: grid; gap: 8px; justify-items: end; }
.home-acts .btn { box-shadow: 0 8px 24px rgba(15,30,45,.2); }
.home-acts .btn.ghost { background: rgba(255,255,255,.97); color: #14212b; }
.game #view > .here { margin-top: 132px; margin-bottom: 110px; }

/* street view overlays */
.fpv-pill, .fpv-round { pointer-events: auto; border: 0; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(15,30,45,.25); color: #14212b; font-weight: 600; }
.fpv-mapbtn { position: absolute; top: 72px; left: 10px; border-radius: 999px; padding: .6rem 1.1rem; font-size: 1rem; }
.fpv-tr { position: absolute; top: 72px; right: 10px; display: flex; gap: 8px; pointer-events: auto; }
.fpv-round { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; }
.fpv .fpv-compass { position: static; }
.fpv-bottom { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); width: min(1000px, calc(100% - 20px)); display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.fpv-bottom .fpv-action { position: static; max-width: none; pointer-events: auto; }
.fpv-chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; pointer-events: auto; scrollbar-width: none; padding: 2px; }
.fpv-chip { flex: none; border: 0; background: rgba(255,255,255,.97); border-radius: 999px; padding: .55rem .95rem; font-weight: 600; font-size: .9rem; box-shadow: 0 6px 18px rgba(15,30,45,.25); color: #14212b; white-space: nowrap; }
.fpv-chip:hover { background: #fff; transform: translateY(-1px); }
.fpv-card { pointer-events: auto; display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.97); border-radius: 26px; padding: 8px 8px 8px 10px; box-shadow: 0 8px 24px rgba(15,30,45,.25); width: min(680px, 100%); color: #14212b; }
.fpv-card .grow { display: grid; } .fpv-card b { font-size: 1.05rem; } .fpv-card small { color: #64748b; }
.fpv-me { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #e0f2fe; display: grid; place-items: center; flex: none; }
.fpv-any { border: 0; background: #f1f5f9; border-radius: 999px; padding: .65rem 1rem; font-weight: 600; color: #14212b; }
.fpv .fpv-pad { bottom: calc(270px + env(safe-area-inset-bottom)); right: 10px; flex-direction: column; align-items: flex-end; }
.pad.sm { width: 44px; height: 44px; font-size: 1rem; }
.fpv .fpv-hint { display: none; }

@media (max-width: 700px) {
  .ov-top .topbar { padding: 4px 4px 4px 8px; }
  .tb { font-size: .8rem; padding: .35rem .35rem; }
  .hide-sm, .tb.city .cname { display: none; }
  .tb.plus { width: 34px; height: 34px; font-size: 1.2rem; }
  .ov-left { top: 62px; max-width: 74vw; }
  .qcard { padding: 6px 14px 6px 6px; } .qcard .q-ico { width: 32px; height: 32px; font-size: .95rem; } .qcard b { font-size: .82rem; } .qcard small { font-size: .72rem; }
  .ov-bl { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .ov-bl .hud-avatar { width: 54px; height: 54px; }
  .ov-bl .needs { grid-template-columns: repeat(3, 52px); gap: 6px 8px; padding: 8px 10px; }
  .game .nav { padding: 6px; } .game .nav button span { font-size: .7rem; }
  .place-card { display: none; }
  .home-acts, .fpv-bottom { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .game.street-mode .home-acts { display: none; }
  .fpv-mapbtn, .fpv-tr { top: 62px; } .fpv-round { width: 42px; height: 42px; }
  .fpv .fpv-pad { bottom: calc(220px + env(safe-area-inset-bottom)); }
  .rm.full { padding: 60px 0 160px; }
}
/* map shortcuts and city tabs */
.map-top { position: absolute; top: 72px; left: 0; right: 0; z-index: 7; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 10px; }
.map-chips, .map-cities { pointer-events: auto; display: flex; gap: 2px; background: rgba(255,255,255,.97); border-radius: 999px; padding: 5px; box-shadow: 0 8px 24px rgba(15,30,45,.2); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.map-chips button, .map-cities button { border: 0; background: transparent; border-radius: 999px; padding: .5rem .85rem; font-weight: 600; font-size: .95rem; white-space: nowrap; color: #14212b; display: inline-flex; align-items: center; gap: .35rem; }
.map-chips button:hover, .map-cities button:hover { background: #f1f5f9; }
.map-chips button.on { background: #fef3c7; }
.map-cities button.on { background: #2563eb; color: #fff; }
.dot-traffic { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; display: inline-block; }
.map-visit { pointer-events: auto; background: #fff; border-radius: 999px; padding: .4rem .5rem .4rem 1rem; box-shadow: 0 8px 24px rgba(15,30,45,.2); display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.map-visit .btn { margin: 0; }
.wall-tile { cursor: pointer; }
.wall-tile:hover rect { filter: brightness(1.15); }
.wall-tile.mine rect { stroke: #fde047; stroke-width: 4; }
.ad-preview { display: flex; gap: .8rem; align-items: center; border-radius: 18px; padding: .9rem; }
.ad-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.ad-preview p { margin: .2rem 0; }
@media (max-width: 700px) { .map-top { top: 62px; } .map-chips button, .map-cities button { font-size: .8rem; padding: .4rem .6rem; } }
.game.map-mode .ov-left { display: none; }
@media (max-width: 700px) {
  .home-acts { bottom: calc(170px + env(safe-area-inset-bottom)); }
  .rm.full .rm-hint { display: none; }
  .rm.full .rm-talk { bottom: 170px; }
}
@media (max-width: 420px) { .tb.plus, .tb.city { display: none; } .tb.money { padding: .4rem .7rem; } }
/* mouse-look crosshair */
.fpv.locked canvas { cursor: none; }
.fpv.locked::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.fpv-compass { transition: transform .08s linear; }
.fpv.hoverlook canvas { cursor: crosshair; }
.fpv-turns { display: flex; gap: .35rem; }

/* ---------- loading screen ---------- */
#boot { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #12603a 0%, #0b3d26 55%, #071f14 100%); color: #fff; transition: opacity .5s ease; }
#boot.done { opacity: 0; pointer-events: none; }
.boot-in { display: grid; gap: .8rem; justify-items: center; text-align: center; }
.boot-flags { font-size: 2.4rem; animation: bootFly 2.4s ease-in-out infinite; }
.boot-name { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; } .boot-name b { color: #fde047; }
.boot-bar { width: 220px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #fde047); animation: bootBar 1.2s ease-in-out infinite; }
.boot-tip { font-size: .9rem; opacity: .8; }
@keyframes bootBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes bootFly { 50% { transform: translateY(-6px); } }

/* ---------- intro page ---------- */
.intro { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; background: #f6faf7; color: #14212b; scroll-behavior: smooth; }
.intro-hero { position: relative; min-height: 100vh; display: grid; align-content: center; padding: 96px 24px 220px; overflow: hidden; background: #0b1730; color: #fff; }
.intro-map { position: absolute; inset: -10%; opacity: .85; animation: introPan 40s ease-in-out infinite alternate; }
.intro-map svg { width: 100%; height: 100%; }
@keyframes introPan { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-6%, -4%); } }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,20,.94) 0%, rgba(7,31,20,.78) 42%, rgba(7,31,20,.2) 75%), linear-gradient(0deg, rgba(7,31,20,.9) 0%, rgba(7,31,20,0) 40%); }
.intro-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; gap: .5rem; z-index: 2; }
.intro-top .brand { color: #fff; }
.intro-top .btn.ghost { background: rgba(255,255,255,.14); color: #fff; }
.intro-copy { position: relative; z-index: 2; max-width: 620px; }
.intro-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .9rem; }
.intro h1 { font-size: clamp(2.8rem, 7vw, 5rem); line-height: .98; margin: 1rem 0; letter-spacing: -.03em; font-weight: 900; }
.intro h1 em { font-style: normal; color: #fde047; }
.intro-copy > p { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; color: #dcfce7; max-width: 560px; }
.intro-ctas { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.btn.big { font-size: 1.1rem; padding: .95rem 1.6rem; border-radius: 999px; }
.intro-hero .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.intro-saved { margin-top: 1rem; color: #bbf7d0; } .intro-saved .chipbtn { background: rgba(255,255,255,.16); color: #fff; }
.intro-cast { position: absolute; right: 5%; bottom: 70px; display: flex; align-items: flex-end; gap: 4px; z-index: 2; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.intro-cast span { animation: introBob 3.2s ease-in-out infinite; }
@keyframes introBob { 50% { transform: translateY(-8px); } }
.intro-down { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; border: 0; background: rgba(255,255,255,.95); color: #14212b; border-radius: 999px; padding: .6rem 1.2rem; font-weight: 700; animation: introBob 2s ease-in-out infinite; }
.intro-sec { padding: 72px 24px; max-width: 1120px; margin: 0 auto; }
.intro-sec.alt { max-width: none; background: #eaf4ee; } .intro-sec.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.intro-sec h2, .intro-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 0 0 1.4rem; }
.intro-lead { font-size: 1.1rem; color: #475569; margin-top: -0.6rem; }
.intro-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.intro-step { background: #fff; border-radius: 22px; padding: 1.4rem; box-shadow: 0 10px 30px rgba(15,30,45,.08); }
.intro-step b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0f7a3d; color: #fff; font-size: 1.2rem; }
.intro-step h3 { margin: .8rem 0 .3rem; } .intro-step p { margin: 0; color: #475569; }
.intro-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.intro-feat { background: #fff; border-radius: 20px; padding: 1.1rem 1.2rem; box-shadow: 0 8px 24px rgba(15,30,45,.06); transition: transform .2s; }
.intro-feat:hover { transform: translateY(-3px); }
.intro-feat span { font-size: 2rem; } .intro-feat h3 { margin: .4rem 0 .25rem; font-size: 1.08rem; } .intro-feat p { margin: 0; color: #475569; font-size: .95rem; }
.intro-room { max-width: 900px; margin: 0 auto; }
.intro-room .rm { box-shadow: 0 20px 50px rgba(15,30,45,.2); }
.intro-cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.intro-city { background: #fff; border-radius: 22px; padding: 1.2rem; box-shadow: 0 8px 24px rgba(15,30,45,.06); }
.intro-city-emoji { font-size: 2.4rem; } .intro-city h3 { margin: .3rem 0; } .intro-city p { color: #475569; font-size: .95rem; } .intro-city small { color: #0f7a3d; font-weight: 700; }
.intro-faq { display: grid; gap: 10px; max-width: 780px; }
.intro-faq details { background: #fff; border-radius: 16px; padding: .9rem 1.1rem; box-shadow: 0 6px 18px rgba(15,30,45,.06); }
.intro-faq summary { font-weight: 700; cursor: pointer; } .intro-faq p { margin: .6rem 0 0; color: #475569; }
.intro-final { text-align: center; padding: 80px 24px 100px; background: linear-gradient(135deg, #0b5d2f, #0f7a3d 60%, #1d4ed8 160%); color: #fff; }
.intro-final .intro-ctas { justify-content: center; } .intro-final .btn.ghost { background: rgba(255,255,255,.14); color: #fff; } .intro-final .link { color: #fde047; }
@media (max-width: 760px) {
  .intro-hero { padding: 84px 18px 250px; align-content: start; }
  .intro-cast { right: 50%; transform: translateX(50%); bottom: 64px; }
  .intro-cast svg { height: 120px; width: auto; }
  .intro-shade { background: linear-gradient(180deg, rgba(7,31,20,.9) 0%, rgba(7,31,20,.75) 55%, rgba(7,31,20,.95) 100%); }
  .intro-sec { padding: 52px 18px; }
}
.intro-down { left: 50%; transform: translateX(-50%); white-space: nowrap; animation: introDownBob 2s ease-in-out infinite; }
@keyframes introDownBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }

/* ---------- onboarding: scrolling and responsive layouts ---------- */
/* The page scrolls inside #app; without a height here, tall pages couldn't scroll to the bottom. */
#app { height: 100%; }
.page { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 150px; }
.tabs .btn { white-space: nowrap; font-size: .92rem; }
.footer-cta { width: min(var(--page-w, 560px), 100%); z-index: 4; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

/* sign-up code box */
.code-entry { display: grid; gap: .4rem; justify-items: center; margin: .6rem 0 .2rem; }
.code-entry label { font-weight: 700; }
.code-input { width: min(280px, 100%); text-align: center; font: 800 2rem/1 Outfit, system-ui, sans-serif !important; letter-spacing: .45em; padding: .8rem .4rem .8rem .9rem !important; border-radius: 18px !important; background: var(--mist); border: 2px solid transparent !important; }
.code-input:focus { outline: none; border-color: #0f7a3d !important; background: #fff; }
.auth-card { max-width: 460px; margin: 1rem auto; }

/* sign-up: form on its own on phones; a welcome panel beside it on wide screens */
.auth-side { display: none; }
@media (min-width: 900px) {
  .page.page-auth { max-width: 1060px; --page-w: 1060px; }
  .auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px; align-items: start; }
  .auth-side { display: block; position: sticky; top: 16px; }
  .auth-side-in { border-radius: 28px; padding: 32px; color: #fff; background: linear-gradient(150deg, #0b5d2f, #0f7a3d 55%, #1d4ed8 160%); box-shadow: var(--shadow); min-height: 520px; display: grid; align-content: start; }
  .auth-side h2 { font-size: 2.1rem; line-height: 1.05; margin: 0 0 1rem; }
  .auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: 1.05rem; }
  .auth-cast { display: flex; align-items: flex-end; gap: 6px; margin-top: 28px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.3)); }
}

/* character creator: the preview stays in view while you scroll the options */
.page.page-create { --page-w: 560px; }
.creator { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.creator .preview { position: sticky; top: 0; z-index: 2; background: var(--card); border-radius: 18px; padding: .4rem 0 .2rem; }
.creator .preview .spin-stage { width: 100% !important; height: 220px !important; }
.page-create .grid2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 760px) {
  .page.page-create { max-width: 980px; --page-w: 980px; }
  .creator { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .creator .preview { top: 12px; padding: .6rem; }
  .creator .preview .spin-stage { height: 340px !important; }
  .page-create .grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) { .creator .preview { box-shadow: 0 8px 18px rgba(15,30,45,.08); } }
@media (max-width: 420px) { .creator .preview .spin-stage { height: 180px !important; } .creator .preview svg.avatar-full { height: 150px; width: auto; } }

/* the other onboarding pages get the same comfortable width on big screens */
@media (min-width: 900px) { .page:not(.page-auth):not(.page-create) { max-width: 760px; --page-w: 760px; } }

/* map landing on phones: compact header, scrollable city chips, a banner that fits */
@media (max-width: 520px) {
  .topbar { gap: .3rem; padding: .3rem .35rem .3rem .7rem; }
  .topbar .btn { white-space: nowrap; padding: .45rem .7rem; font-size: .82rem; }
  .topbar .brand { font-size: 1rem; }
  .topbar [data-act="toIntro"] { font-size: 0; padding: .45rem .55rem; } .topbar [data-act="toIntro"]::before { content: 'ℹ️'; font-size: .95rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-inline: 12px; }
  .chips .chip { flex: none; }
  .banner { white-space: normal; font-size: .78rem; line-height: 1.3; text-align: center; }
}

/* intro page: very small phones and tablets */
@media (max-width: 380px) {
  .intro h1 { font-size: 2.4rem; }
  .intro-ctas .btn.big { width: 100%; justify-content: center; }
  .intro-top .btn { padding: .4rem .7rem; font-size: .8rem; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .intro-hero { padding-bottom: 260px; }
  .intro-cast { right: 3%; }
}
@media (min-width: 900px) { .page .stack:has(> .home-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } }

/* ---------- chat ---------- */
.rm-say rect { fill: #fff; stroke: rgba(15,30,45,.15); }
.rm-say path { fill: #fff; }
.rm-say text { font: 700 8.5px Outfit, system-ui, sans-serif; fill: #14212b; }
.rm-say { animation: sayIn .25s ease-out; }
@keyframes sayIn { from { opacity: 0; transform: translateY(6px); } }
.rm-chat-log { max-height: 150px; overflow-y: auto; display: grid; gap: 6px; margin: .5rem 0; }
.rm-chat-log:empty { display: none; }
.rm-bub { max-width: 82%; padding: .45rem .7rem; border-radius: 16px; font-size: .9rem; line-height: 1.35; }
.rm-bub.me { justify-self: end; background: #0f7a3d; color: #fff; border-bottom-right-radius: 4px; }
.rm-bub.them { justify-self: start; background: #f1f5f9; color: #14212b; border-bottom-left-radius: 4px; }
.rm-bub.typing { color: #64748b; letter-spacing: .2em; }
.rm-chat-form { display: flex; gap: .4rem; margin-top: .4rem; }
.rm-chat-form input { flex: 1; min-width: 0; border: 0; background: #f1f5f9; border-radius: 999px; padding: .6rem .9rem; font: inherit; }
.chat-list { display: grid; gap: 2px; }
.chat-row { display: flex; gap: .7rem; align-items: center; text-align: left; border: 0; background: transparent; padding: .65rem .3rem; border-bottom: 1px solid var(--line); width: 100%; }
.chat-row .grow { display: grid; min-width: 0; } .chat-row small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.chat-count { background: #22c55e; color: #fff; font-style: normal; font-weight: 800; font-size: .72rem; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.chat-thread { display: grid; grid-template-rows: auto 1fr auto; height: min(62vh, 560px); }
.chat-head { display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.chat-head .grow { display: grid; min-width: 0; } .chat-head small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-msgs { overflow-y: auto; display: grid; align-content: start; gap: 8px; padding: .7rem .1rem; }
.bub { display: flex; gap: .4rem; max-width: 86%; }
.bub p { margin: 0; padding: .5rem .75rem; border-radius: 18px; line-height: 1.35; font-size: .93rem; }
.bub small { display: block; font-size: .68rem; color: var(--ink-soft); margin: .15rem .5rem 0; }
.bub b { display: block; font-size: .75rem; margin: 0 .5rem .1rem; color: #0f7a3d; }
.bub.me { justify-self: end; flex-direction: column; align-items: flex-end; } .bub.me p { background: #0f7a3d; color: #fff; border-bottom-right-radius: 5px; }
.bub.them { justify-self: start; } .bub.them p { background: var(--mist); color: var(--ink); border-bottom-left-radius: 5px; }
.bub-ava { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; align-self: flex-end; }
.bub.typing p { color: var(--ink-soft); font-style: italic; }
.dots i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-left: 3px; animation: dotUp 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotUp { 50% { transform: translateY(-3px); opacity: .5; } }
.chat-input { display: flex; gap: .4rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; border: 0; background: var(--mist); color: var(--ink); border-radius: 999px; padding: .7rem 1rem; font: inherit; }
.chat-input .btn { border-radius: 50%; width: 44px; height: 44px; padding: 0; }
/* while you're talking to someone, the needs panel and side buttons step aside */
.game:has(.rm-talk:not([hidden])) .ov-bl, .game:has(.rm-talk:not([hidden])) .home-acts { display: none; }
.rm-talk { max-height: calc(100% - 110px); overflow-y: auto; }

/* ---------- multiplayer ---------- */
.chat-sec { margin: .6rem .2rem .2rem; }
.tb.online { color: #15803d; font-weight: 700; }
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: pulseOn 2s infinite; }
@keyframes pulseOn { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.mp-online { display: flex; gap: 6px; overflow-x: auto; padding: .45rem 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.mp-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--mist); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: .78rem; font-weight: 600; color: var(--ink); }
.mp-chip .avatar, .bub-ava .avatar { border-radius: 50%; }
button.bub-ava { border: 0; padding: 0; background: var(--mist); cursor: pointer; }
.link-name { border: 0; background: none; padding: 0; font: inherit; color: #0f7a3d; font-weight: 700; cursor: pointer; }
.link-name span { color: var(--ink-soft); font-weight: 500; }
.link-tiny { border: 0; background: none; padding: 0; font: inherit; font-size: .68rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.mp-rules { margin: .35rem 0 0; font-size: .7rem; color: var(--ink-soft); text-align: center; }
.chat-thread.mp { grid-template-rows: auto auto 1fr auto auto; }
.mp-invite { background: linear-gradient(90deg, rgba(34,197,94,.12), transparent); border-radius: 14px; }
/* street pop-ups and nightlife */
.pop-marker { cursor: pointer; }
.map-chips button.hot { background: #fef3c7; }
.map-chips button b { background: #16a34a; color: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .75rem; }
.night-venue.glow { filter: drop-shadow(0 0 8px #facc15) drop-shadow(0 0 4px #22c55e); }

/* ---------- visa rules, credits, investments ---------- */
.visa-rules > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.08); font-size: 13px; }
.visa-rules > div span { color: var(--muted, #64748b); }
.visa-rules > div b { text-align: right; }
.visa-rules ul { margin: 8px 0 0; padding-left: 18px; }
.credits-bal { text-align: center; background: linear-gradient(145deg, #0b1220, #1f2937); color: #fff; }
.credits-bal small { color: #cbd5e1; }
.credits-bal .btn { margin-top: 8px; }
.inv-buy { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.inv-buy input[type=range] { flex: 1; min-width: 0; }
.inv-buy b { min-width: 64px; text-align: right; }
.inv-row { flex-wrap: wrap; }
.inv-row .grow { flex: 1 1 calc(100% - 52px); min-width: 0; }
.inv-row .spark { flex: none; margin-left: 44px; }
.inv-row .btn { margin-left: auto; }
.ev-card small + small { display: block; margin-top: 4px; }
.inv-marker { cursor: pointer; }
.good-t { color: var(--good, #16a34a); }

/* ---------- 👑 crown + visa tag: non-system characters (residents and real players) ---------- */
.ctag { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.ctag i { font-style: normal; font-size: 13px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.ctag em { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 999px; letter-spacing: .01em; }
.ctag.sm i { font-size: 11px; }
.ctag.sm em { font-size: 9px; padding: 1px 6px; }
.ctag.player em { box-shadow: 0 0 0 1.5px #facc15 inset; }
.person-chip .ctag { display: flex; justify-content: center; margin: 2px 0 0; }
.rm-tag.crown rect { fill: #fffbeb; stroke: #d4a93a; stroke-width: 1.2; }
.rm-tag.crown rect.vis { stroke: #fff; stroke-width: 1; }
.rm-tag.crown text.vis { fill: #fff; font-size: 7px; }
.rm-tag.crown.sm text.vis { font-size: 7.5px; }
.rm-tag.crown text.cr, .rm-tag.crown.sm text { text-anchor: middle; }
.slip { padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.1); }
.kv2.sub { font-size: 12px; opacity: .8; }

/* ---------- careers: projection, status tiers ---------- */
.job-row[data-act] { cursor: pointer; }
.proj-list { margin-top: 8px; border-left: 2px solid rgba(15,122,61,.25); padding-left: 12px; }
.proj-step { display: flex; gap: 8px; padding: 6px 0; position: relative; }
.proj-step .pdot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; margin-left: -18px; margin-top: 4px; flex: none; box-shadow: 0 0 0 3px #fff; }
.proj-step.done .pdot { background: #16a34a; }
.proj-step.now .pdot { background: #f59e0b; box-shadow: 0 0 0 3px #fde68a; }
.proj-step small { display: block; }
.proj-step.done { opacity: .6; }
.tier { background: linear-gradient(145deg, var(--tc, #334155), #0b1220); color: #fff; }
.tier small { color: #e2e8f0; display: block; }
.tier .muted { color: #cbd5e1 !important; }
.tier-bar { display: flex; gap: 4px; margin: 8px 0; }
.tier-bar i { flex: 1; text-align: center; font-style: normal; padding: 4px 0; border-radius: 8px; background: rgba(255,255,255,.08); opacity: .45; }
.tier-bar i.past { opacity: .8; }
.tier-bar i.on { background: rgba(255,255,255,.25); opacity: 1; outline: 2px solid #facc15; }
.tier-chip { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--tc, #334155); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* ---------- HMRC, social calendar ---------- */
.card.hmrc { background: linear-gradient(145deg, #1e293b, #0f172a); color: #fff; }
.card.hmrc small { display: block; color: #cbd5e1; }
.card.hmrc .warn-t { color: #fbbf24 !important; }
.act.today { outline: 2px solid #f59e0b; outline-offset: -2px; }
.rm-ghost { opacity: .32; pointer-events: none; }
.rm-ghost ellipse { display: none; }

/* ---------- sitting and lying on the sofa ---------- */
.rm-me.pose-sit .rm-me-body { clip-path: inset(0 0 34% 0); transform: translateY(14px); }
.rm-me.pose-lie .rm-me-body { transform: translate(-6px, 4px) rotate(-74deg) scale(.86); }
.rm-me.pose-lie.pose-lie-r .rm-me-body { transform: translate(6px, 4px) rotate(74deg) scale(.86); }
.rm-me.pose-sit > ellipse, .rm-me.pose-lie > ellipse { display: none; }
.rm-me.pose-lie .rm-tag { transform: translateY(46px); }
.rm-zzz text { font: 800 12px Outfit, sans-serif; fill: #c7d2fe; animation: zzz 2.4s ease-in-out infinite; }
.rm-zzz text:nth-child(2) { animation-delay: .5s; font-size: 14px; } .rm-zzz text:nth-child(3) { animation-delay: 1s; font-size: 17px; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---------- phones: compact cards, more room for the game ---------- */
@media (max-width: 480px) {
  .ov-left { gap: 6px; max-width: 70vw; }
  .qcard { padding: 4px 12px 4px 4px; gap: .45rem; }
  .qcard .q-ico { width: 28px; height: 28px; font-size: .85rem; }
  .qcard b { font-size: .78rem; }
  .qcard small, .qcard.news small { display: none; }
  .qcard.goal small { display: block; font-size: .68rem; }
  .ov-left .clean-btn, #hud-clean { font-size: .72rem; padding: 4px 10px; }
  .phone .phone-body { padding-left: 12px; padding-right: 12px; }
  .proj-step small { font-size: .74rem; }
  .sheet { max-height: 88vh; }
  .ev-card h5 { flex-wrap: wrap; row-gap: 4px; }
  .map-chips, .city-tabs { scrollbar-width: none; }
  .rm-hint { font-size: .68rem; padding: 4px 10px; bottom: 6px; }
}
@media (max-width: 480px) {
  .fpv .fpv-pad .pad { width: 44px; height: 44px; font-size: 1rem; }
  .fpv .fpv-pad .pad.sm { width: 38px; height: 38px; }
  .fpv .fpv-pad { bottom: calc(262px + env(safe-area-inset-bottom)); gap: .3rem; }
  .fpv-bottom .fpv-action { justify-self: start; max-width: 58%; }
  .fpv-round { width: 42px; height: 42px; font-size: 1rem; }
  .fpv-tr { gap: 6px; }
  .fpv-card { padding: 6px 6px 6px 8px; } .fpv-card b { font-size: .92rem; } .fpv-card small { font-size: .74rem; }
  .fpv-me { width: 38px; height: 38px; }
  .fpv-chip { padding: .45rem .8rem; font-size: .8rem; }
}
.ptabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs .btn { flex: none; }
.rm-zoom { position: absolute; right: 12px; top: 50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 6px 16px rgba(15,30,45,.25); font-size: 1rem; }
.rm-zoom.on { background: #14212b; }
.rm.full .rm-zoom { top: 76px; bottom: auto; }

/* ---------- activity progress bar ---------- */
.act-bar { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(440px, calc(100% - 24px)); animation: actIn .2s ease-out; }
.act-bar.out { opacity: 0; transition: opacity .2s; }
.act-card { display: flex; align-items: center; gap: .7rem; background: rgba(17,24,39,.94); color: #fff; border-radius: 20px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.act-card .grow { display: grid; gap: 3px; min-width: 0; }
.act-card b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-card small { color: #cbd5e1; font-size: .74rem; }
.act-emo { font-size: 1.5rem; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.1); border-radius: 50%; flex: none; }
.act-track { height: 8px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.act-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #facc15); border-radius: 999px; }
.act-skip { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: .4rem .7rem; font-size: .75rem; flex: none; }
@keyframes actIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* live "playing now" badge on the intro and landing pages */
.live-count { display: inline-flex; align-items: center; gap: .4rem; margin: .5rem 0 0 .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(22,163,74,.14); color: #14532d; font-size: .85rem; font-weight: 600; }
.live-count b { font-weight: 900; }
.live-count .dot-on { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 1.6s infinite; display: inline-block; }
.live-count.sm { margin: 0 0 0 .4rem; font-size: .75rem; padding: .25rem .6rem; background: rgba(255,255,255,.9); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (max-width: 480px) { .live-count.sm .lc-txt { display: none; } .live-count.sm { padding: .25rem .5rem; } }

/* invite friends */
.card.invite { background: linear-gradient(145deg, #fff7ed, #fef3c7); text-align: center; }
.card.invite .huge { letter-spacing: .12em; }
.inv-link input { width: 100%; border: 1px solid #fcd34d; border-radius: 12px; padding: .55rem .7rem; font: 600 .82rem Outfit, sans-serif; background: #fff; margin: .5rem 0; text-align: center; }
.invited-badge { display: inline-block; margin: .5rem 0 0 .4rem; padding: .35rem .8rem; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: .85rem; }
