:root{
  --red:#e1251b; --blue:#0019a8; --navy:#14183a; --ink:#1d2140;
  --bg:#f3efe8; --card:#ffffff; --line:#e4ded2; --muted:#6c6f8a;
  --good:#2fa66a; --warn:#e8a317; --bad:#d8352a;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--ink);min-height:100vh;-webkit-text-size-adjust:100%}
button{font:inherit;cursor:pointer;color:inherit}
select,input{font:inherit}
[hidden]{display:none!important}
h2,h3,h4{margin:0}
.muted{color:var(--muted)}
.small{font-size:12px}

/* ---------- gate + start screens ---------- */
.screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:linear-gradient(160deg,#14183a,#0019a8)}
.panel{background:#fff;border-radius:20px;padding:26px 22px;max-width:440px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.panel.center{text-align:center}
.roundel{width:170px;height:170px;margin:0 auto 6px;border-radius:50%;border:20px solid var(--red);display:flex;align-items:center;justify-content:center;position:relative}
.roundel::after{content:"";position:absolute;left:-48px;right:-48px;top:50%;height:38px;transform:translateY(-50%);background:var(--blue);border-radius:4px;z-index:0}
.roundel span{position:relative;z-index:1;color:#fff;font-weight:800;letter-spacing:.08em;font-size:14px}
.tag{color:var(--muted);margin:14px 0 14px}
.fieldrow{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:8px;margin:10px 0}
.panel select,.panel input[type=text]{width:100%;padding:11px;border:2px solid var(--line);border-radius:12px;background:#fff}
button.big{margin-top:14px;width:100%;padding:14px;border:0;border-radius:14px;background:var(--red);color:#fff;font-weight:700;font-size:17px}
button.big.alt{background:var(--blue)}
button.big.ghost{background:#efe9dc;color:var(--ink)}
button.big:disabled{opacity:.45;cursor:not-allowed}
.note{background:#f6f3ec;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.45;margin:12px 0;text-align:left}
.note b{display:block;margin-bottom:2px}
.err{background:#fde8e6;color:#8a1f16;border-radius:12px;padding:10px 12px;font-size:14px;margin:10px 0;text-align:left}

/* ---------- creator ---------- */
.creator{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:14px;max-width:1100px;margin:0 auto;padding:14px;align-items:start}
.creator .preview{position:sticky;top:10px;background:linear-gradient(180deg,#fff,#efe9dc);border-radius:18px;padding:10px;text-align:center;border:1px solid var(--line)}
.creator .preview .avatar-svg{height:min(70vh,560px);width:100%}
.creator .opts{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}
.ctabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.ctabs button{padding:8px 14px;border:0;border-radius:99px;background:#f1ede4;font-weight:700;font-size:13px}
.ctabs button.on{background:var(--navy);color:#fff}
.field{margin:14px 0}
.field>.lab{font-weight:700;font-size:13px;margin-bottom:6px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:7px 12px;border:2px solid var(--line);background:#fff;border-radius:99px;font-size:13px;font-weight:600;text-transform:capitalize}
.chip.on{border-color:var(--red);background:#fff1ef}
.swatches{display:flex;flex-wrap:wrap;gap:7px}
.sw{width:30px;height:30px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1.5px var(--line)}
.sw.on{box-shadow:0 0 0 3px var(--red)}
.hairgroup{margin-bottom:8px}
.hairgroup .gname{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:8px 0 4px}
@media (max-width:760px){.creator{grid-template-columns:1fr}.creator .preview{position:static}.creator .preview .avatar-svg{height:300px}}

/* ---------- top bar ---------- */
.topbar{display:flex;gap:8px;align-items:center;background:var(--navy);color:#fff;padding:9px 12px;position:sticky;top:0;z-index:20;flex-wrap:wrap}
.brand{font-weight:800;letter-spacing:.1em;margin-right:auto;font-size:14px}
.topbar .stat{background:rgba(255,255,255,.12);padding:5px 11px;border-radius:99px;font-weight:600;font-size:13px;white-space:nowrap}
.toast{margin:10px 14px 0;padding:10px 14px;background:#fff8dc;border:1px solid #f0dc8a;border-radius:12px;font-size:14px;min-height:42px}
.banner{margin:8px 14px 0;padding:8px 12px;background:#e8efff;border:1px solid #c9d6ff;border-radius:12px;font-size:13px}

/* ---------- layout ---------- */
.layout{display:grid;grid-template-columns:250px 1fr 360px;gap:12px;padding:12px 14px 24px;align-items:start}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px}
.mapcard{padding:8px}
.legend{font-size:12px;color:var(--muted);text-align:center;padding:4px}
@media (max-width:1100px){.layout{grid-template-columns:230px 1fr}.mapcard{grid-column:1 / -1;order:-1}.right{grid-column:1 / -1}}
@media (max-width:700px){.layout{grid-template-columns:1fr}}

/* left */
.me{text-align:center}
.me .avatar-svg{height:300px;width:100%}
.me h2{margin:2px 0 0;font-size:19px}
.moodtxt{color:var(--muted);font-size:13px;margin-bottom:6px}
.need{margin:8px 0}
.need .row{display:flex;justify-content:space-between;font-size:12px;font-weight:600}
.bar{height:9px;background:#ece7db;border-radius:99px;overflow:hidden;margin-top:3px}
.bar i{display:block;height:100%;border-radius:99px;transition:width .3s}
.mini{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.55}
.goal{margin-top:10px;padding:10px;background:#f6f3ec;border-radius:12px;font-size:13px}
.goal b{display:block;margin-bottom:3px}

/* map */
#map{width:100%;height:auto;display:block;border-radius:12px;background:#e9efe2}
#map .river{fill:none;stroke:#8fc3e8;stroke-width:30;stroke-linecap:round}
#map .park{fill:#cfe3bb}
#map .node{cursor:pointer}
#map .node circle.dot{fill:#fff;stroke:var(--navy);stroke-width:3}
#map .node.sel circle.dot{stroke:var(--red);stroke-width:5}
#map .node text{font-size:15px;font-weight:700;fill:var(--navy);paint-order:stroke;stroke:#fff;stroke-width:4px;pointer-events:none}
#map .pulse{fill:none;stroke:var(--red);stroke-width:3;animation:pulse 1.6s infinite}
@keyframes pulse{0%{r:12;opacity:1}100%{r:28;opacity:0}}
#map .you{font-size:22px;pointer-events:none}
#map .night{fill:#0b1030;opacity:0;pointer-events:none;transition:opacity .6s}
#map .night.on{opacity:0}
@media (prefers-reduced-motion:reduce){#map .pulse{animation:none}}

/* right */
.tabs{display:flex;gap:4px;margin-bottom:10px}
.tabs button{flex:1;padding:8px 2px;border:0;border-radius:10px;background:#f1ede4;font-size:12px;font-weight:700}
.tabs button.on{background:var(--navy);color:#fff}
h3{font-size:17px}
.sub{color:var(--muted);font-size:13px;margin:2px 0 10px}
.btnlist{display:flex;flex-direction:column;gap:7px}
.act{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;width:100%}
.act:hover:not(:disabled){border-color:var(--blue);background:#f4f6ff}
.act:disabled{opacity:.5;cursor:not-allowed}
.act .t{font-weight:700;font-size:14px}
.act .d{font-size:12px;color:var(--muted);margin-top:2px}
.act .p{font-weight:700;font-size:13px;white-space:nowrap;color:var(--blue)}
.act.hot{border-color:var(--red);background:#fff1ef}
.act.hot .p{color:var(--red)}
.section{margin-top:14px;margin-bottom:6px;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.pill{display:inline-block;background:#f1ede4;border-radius:99px;padding:2px 9px;font-size:12px;font-weight:600;margin:0 4px 4px 0}
.pill.good{background:#dff3e8;color:#1c7a49}
.pill.warn{background:#fdf0cf;color:#8a5f00}
.pill.bad{background:#fde8e6;color:#8a1f16}
.row2{display:flex;gap:6px;flex-wrap:wrap}
.row2 .act{flex:1;min-width:120px;justify-content:center}
.backlink{background:none;border:0;color:var(--blue);font-weight:700;padding:0;margin-bottom:8px}

/* items */
.itemgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.item{border:1.5px solid var(--line);border-radius:12px;padding:8px;background:#fff;text-align:left;display:flex;flex-direction:column;gap:3px}
.item:hover{border-color:var(--blue)}
.item .sw2{width:100%;height:22px;border-radius:7px;border:1px solid rgba(0,0,0,.08)}
.item .itempic{width:100%;height:92px;object-fit:contain;border-radius:7px;background:#e9e6ee;display:block}
.previewbox .outfitpic{height:150px;max-width:46%;object-fit:contain;border-radius:8px;background:#e9e6ee;vertical-align:top;margin-right:8px}
.item .nm{font-size:12px;font-weight:700;line-height:1.25}
.item .br{font-size:11px;color:var(--muted)}
.item .pr{font-weight:800;font-size:13px}
.item.worn{border-color:var(--good);background:#f0faf4}
.item.locked{opacity:.6}
.rar{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.newtag{background:var(--red);color:#fff;border-radius:6px;font-size:10px;font-weight:800;padding:1px 5px;margin-left:4px}
.previewbox{background:linear-gradient(180deg,#fff,#efe9dc);border-radius:14px;text-align:center;padding:6px;margin-bottom:10px}
.previewbox .avatar-svg{height:260px;width:100%}
.stylebar{height:12px;border-radius:99px;background:#ece7db;overflow:hidden}
.stylebar i{display:block;height:100%;background:linear-gradient(90deg,#e68bb0,#7a4fd1)}

/* phone */
.apps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.app{border:0;border-radius:16px;padding:12px 4px;background:#f1ede4;font-weight:700;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:4px}
.app span{font-size:26px}
.app:hover{background:#e7e1d3}
.tx{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}
.tx .a.neg{color:var(--bad)}.tx .a.pos{color:var(--good)}
.bigbal{font-size:28px;font-weight:800}
.home,.job,.friend,.evt{padding:10px 12px;border:1.5px solid var(--line);border-radius:12px;margin-bottom:8px}
.friend .top{display:flex;justify-content:space-between;font-weight:700}
.line-chip{display:inline-block;color:#fff;border-radius:6px;padding:1px 7px;font-size:11px;font-weight:700;margin:0 3px 3px 0}
.log div{font-size:13px;padding:6px 0;border-bottom:1px solid var(--line)}
.won{background:linear-gradient(90deg,#ffe58a,#ffd0c9);padding:10px;border-radius:12px;font-weight:700;margin-bottom:10px}
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.gallery .photo{border-radius:12px;background:linear-gradient(180deg,#fdf2f6,#e8efff);text-align:center;padding:4px;border:1px solid var(--line)}
.gallery .avatar-svg{height:190px;width:100%}
select.sel{width:100%;padding:8px;border:1.5px solid var(--line);border-radius:10px;background:#fff;margin-top:3px}
.setrow{margin:8px 0}
.setrow label{font-size:13px;font-weight:600}
.ach{display:flex;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line);font-size:13px}
.ach.locked{opacity:.45}

/* ---------- phone layout: map first, then what you can do, then your character ---------- */
@media (max-width:700px){
  .layout{display:flex;flex-direction:column;padding:10px 10px 24px}
  .mapcard{order:-3}.right{order:-2}.left{order:-1}
  #map .node text{font-size:27px;stroke-width:7px}
  #map .node circle.dot{r:14px}
  .me .avatar-svg{height:260px}
  .topbar .stat{font-size:12px}
}

/* the 3D creator is shown full screen in a frame */
.creator3dframe{position:fixed;inset:0;width:100%;height:100%;border:0;background:#ece6da}
.portrait{width:100%;max-width:260px;display:block;margin:0 auto;border-radius:14px}
.portrait.pending{opacity:.6}

/* choose-your-first-home screen (white / grey / black, like the creator) */
.hp{min-height:100vh;background:#f2f2f2;color:#111;padding:18px 14px 40px;display:flex;justify-content:center}
.hpin{max-width:480px;width:100%}
.hp h1{font-size:26px;margin:6px 0 8px}
.hpsub{color:#555;line-height:1.45;margin:0 0 16px}
.hpcard{background:#fff;border:2px solid #e2e2e2;border-radius:18px;padding:16px;margin-bottom:14px}
.hpcard.no{opacity:.78}
.hptop{display:flex;align-items:center;gap:12px}
.hptop>div:nth-child(2){flex:1}
.hpico{font-size:32px}
.hpwhere{color:#777;font-size:13px;margin-top:2px}
.hpprice{font-size:24px;font-weight:800;text-align:right;line-height:1}
.hpprice small{display:block;font-size:12px;font-weight:600;color:#777;margin-top:3px}
.hpcard p{margin:10px 0;color:#333;line-height:1.4;font-size:15px}
.hpfacts{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#555;margin-bottom:12px}
.hpbtn{width:100%;padding:14px;border:0;border-radius:14px;background:#111;color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.hpbtn:disabled{background:#d6d6d6;color:#777;cursor:not-allowed}
.hpfoot{color:#777;font-size:13px;line-height:1.4;text-align:center;margin-top:18px}
.hpfreq{background:#fff;border:2px solid #e2e2e2;border-radius:18px;padding:12px 14px;margin-bottom:14px;display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:14px}
.hpfreq div{display:flex;gap:8px}
.hpfreq button{flex:1;padding:11px;border:2px solid #d6d6d6;border-radius:12px;background:#fff;font-weight:700;font-size:15px;cursor:pointer;color:#111}
.hpfreq button.on{background:#111;color:#fff;border-color:#111}
.hppack{font-size:13px;color:#444;line-height:1.5;margin:0 0 10px;padding:10px 12px;background:#f6f6f6;border-radius:12px}
.hplook{display:inline-block;margin-left:4px;color:#111;font-weight:700}
.hparea{margin:0 0 10px;font-size:13px;color:#444}
.hparea>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.hparea button{padding:7px 12px;border:2px solid #d6d6d6;border-radius:99px;background:#fff;font-weight:700;font-size:13px;cursor:pointer;color:#111}
.hparea button.on{background:#111;color:#fff;border-color:#111}

/* ---------- the main game: HOME (3D house) + MAP, her face and needs, and the Home / Map / Phone bar (like the reference game) ---------- */
body{padding-bottom:0}
.view{display:none}#homeView{position:relative;height:calc(100vh - 230px);height:calc(100dvh - 230px);min-height:340px;margin:8px 10px 0;border-radius:18px;overflow:hidden;background:#d9e6f2}
#houseFrame{width:100%;height:100%;border:0;display:none}.away{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92%,420px);text-align:center}
#mapView{padding-bottom:190px}.layout{grid-template-columns:1fr 360px}
@media (max-width:1100px){.layout{grid-template-columns:1fr}.mapcard{order:-1}}
.dock{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:6px 10px calc(8px + env(safe-area-inset-bottom));pointer-events:none;display:flex;flex-direction:column;gap:8px}
.dockrow{display:flex;align-items:center;gap:8px;pointer-events:none}
.face{pointer-events:auto;width:66px;height:66px;border-radius:50%;border:4px solid #2fa66a;background:#fff;padding:0;overflow:hidden;cursor:pointer;box-shadow:0 3px 12px #0003;flex:none}
.face span{display:block;width:100%;height:100%;background-size:240%;background-position:50% 4%;background-repeat:no-repeat}.face .noimg{display:flex;align-items:center;justify-content:center;font-size:30px;background:none}
.needspill{pointer-events:auto;background:#fffe;border-radius:22px;padding:9px 12px;display:grid;grid-template-columns:repeat(3,auto);gap:6px 14px;box-shadow:0 3px 12px #0002}
.nb{display:flex;align-items:center;gap:6px;font-size:15px}.nb i{display:block;width:54px;height:9px;background:#e4e4e4;border-radius:9px;overflow:hidden}.nb i b{display:block;height:100%;border-radius:9px}
.navbar{pointer-events:auto;display:flex;gap:6px;background:#fff;border-radius:26px;padding:6px;box-shadow:0 3px 14px #0003}
.navbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;border:0;background:none;border-radius:20px;padding:7px 4px;font-size:22px;cursor:pointer;color:#555}.navbar button span{font-size:12px;font-weight:700}
.navbar button.on{background:#14183a;color:#fff}
.sheet{position:fixed;inset:0;z-index:40;background:#0006;display:flex;align-items:flex-end;justify-content:center}.sheet[hidden]{display:none}
.sheetbox{position:relative;background:#f3efe8;width:min(100%,640px);max-height:88vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 14px calc(26px + env(safe-area-inset-bottom))}
.sheetx{position:sticky;top:0;float:right;border:0;background:#14183a;color:#fff;border-radius:50%;width:34px;height:34px;font-size:15px;cursor:pointer;z-index:2}

/* =====================================================================================================================
   THE GAME SCREEN (black and white): the MAP fills the screen. Clear time/weather/money tab in the middle at the top,
   her face + needs rings bottom-left, a little phone tab bottom-right. Cards pop up over the map. The phone is a real smartphone.
   ===================================================================================================================== */
html,body{height:100%;margin:0}body{background:#ece9e0;overflow:hidden}#root{height:100%}
#mapStage{position:fixed;inset:0;background:#efece4;touch-action:none;user-select:none;-webkit-user-select:none}
#map{width:100%;height:100%;display:block;--k:1;background:#efece4;border-radius:0}
#map text.lbl,#map .node text.lbl{font-size:calc(var(--k) * 10.5px);stroke-width:calc(var(--k) * 3px);letter-spacing:.2px;fill:#111;stroke:#fff;font-weight:800}#map text.lbl2{font-size:calc(var(--k) * 9.5px);stroke-width:calc(var(--k) * 2.6px)}
#map .node circle.dot{r:calc(var(--k) * 7px);stroke-width:calc(var(--k) * 2.6px);fill:#fff;stroke:#111}#map .node:hover .dot{fill:#111}
#map .pulse{fill:#d8352a33;animation:pulse 1.8s infinite}@keyframes pulse{0%{r:6;opacity:.9}100%{r:22;opacity:0}}
#map .night{fill:#0b1030;opacity:0;transition:opacity .6s}#map .night.on{opacity:0}
.zoom{position:fixed;right:12px;top:64px;display:flex;flex-direction:column;gap:6px;z-index:12}.zoom button{width:40px;height:40px;border:0;border-radius:12px;background:#fffe;box-shadow:0 2px 10px #0003;font-size:20px;font-weight:700;cursor:pointer;color:#111}
#homeStage{position:fixed;inset:0;display:none;background:#d9e6f2;z-index:5}#houseFrame{width:100%;height:100%;border:0;display:none}
.backmap{position:absolute;left:12px;top:12px;z-index:6;border:0;border-radius:99px;padding:10px 16px;background:#111;color:#fff;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 3px 12px #0004}
.away{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92%,420px);text-align:center}
/* the clear little tab in the middle: time, weather, money */
.clockpill{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:15;display:flex;gap:12px;align-items:center;background:#fffd;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid #0001;border-radius:99px;padding:7px 16px;font-size:14px;font-weight:700;color:#111;box-shadow:0 3px 14px #0002;white-space:nowrap}
.clockpill span+span{border-left:1px solid #0002;padding-left:12px}
.toast{position:fixed;top:58px;left:50%;transform:translateX(-50%);z-index:14;max-width:min(92vw,520px);margin:0;background:#111;color:#fff;border:0;border-radius:16px;padding:10px 16px;font-size:14px;min-height:0;text-align:center;display:none}
.toast:empty{display:none!important}
.popup{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:16;width:min(94vw,430px);max-height:58vh;overflow:auto;background:#fff;border-radius:22px;padding:16px 16px 18px;box-shadow:0 10px 40px #0005}.popup[hidden]{display:none}
.popup h3{margin:0 40px 6px 0;font-size:19px}.popup .px{position:absolute;right:10px;top:10px;width:32px;height:32px;border:0;border-radius:50%;background:#111;color:#fff;cursor:pointer}
.popup .act.big{width:100%;border:2px solid #111;padding:16px}
/* her face + her needs (rings) */
.dock{position:fixed;left:10px;bottom:calc(10px + env(safe-area-inset-bottom));right:auto;z-index:18;padding:0;display:flex;flex-direction:row;align-items:center;gap:8px;pointer-events:none}
.face{pointer-events:auto;width:68px;height:68px;border-radius:50%;border:4px solid #111;background:#fff;padding:0;overflow:hidden;cursor:pointer;box-shadow:0 3px 14px #0004;flex:none}
.face.low{border-color:#d8352a;animation:lowp 1.4s infinite}@keyframes lowp{50%{box-shadow:0 0 0 7px #d8352a33}}
.face span{display:block;width:100%;height:100%;background-size:240%;background-position:50% 4%;background-repeat:no-repeat}.face .noimg{display:flex;align-items:center;justify-content:center;font-size:30px;background:none}
.needsrow{pointer-events:auto;display:flex;gap:5px;background:#111;border-radius:99px;padding:6px 8px;box-shadow:0 3px 14px #0004}
.ng{--v:50;width:34px;height:34px;border-radius:50%;background:conic-gradient(#fff calc(var(--v) * 1%),#4a4a4a 0);display:flex;align-items:center;justify-content:center}
.ng i{font-style:normal;width:26px;height:26px;border-radius:50%;background:#111;display:flex;align-items:center;justify-content:center;font-size:14px}
.ng.low{background:conic-gradient(#ff4d3d calc(var(--v) * 1%),#4a4a4a 0);animation:lowp 1.4s infinite}
.phonetab{position:fixed;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:18;width:58px;height:58px;border:3px solid #fff;border-radius:18px;background:#111;font-size:28px;cursor:pointer;box-shadow:0 3px 14px #0005;display:flex;align-items:center;justify-content:center}
.sheet{position:fixed;inset:0;z-index:40;background:#0006;display:flex;align-items:flex-end;justify-content:center}.sheet[hidden]{display:none}
.sheetbox{position:relative;background:#f3efe8;width:min(100%,640px);max-height:88vh;overflow:auto;border-radius:22px 22px 0 0;padding:18px 14px calc(26px + env(safe-area-inset-bottom))}
.sheetx{position:sticky;top:0;float:right;border:0;background:#111;color:#fff;border-radius:50%;width:34px;height:34px;font-size:15px;cursor:pointer;z-index:2}
.segs{display:flex;gap:6px;margin:0 44px 12px 0}.segs button{flex:1;border:0;border-radius:99px;padding:9px;background:#e4dfd3;font-weight:700;font-size:14px;cursor:pointer;color:#111}.segs button.on{background:#111;color:#fff}
/* the phone: a real smartphone */
.phoneov{position:fixed;inset:0;z-index:50;background:#000a;display:flex;align-items:center;justify-content:center;padding:12px}.phoneov[hidden]{display:none}
.phoneframe{position:relative;width:min(92vw,372px);height:min(90vh,760px);max-height:calc(100vh - 24px);aspect-ratio:9/19}
/* (2026-11-08, Jade) smaller phone on a phone-sized screen so the edges of the game show */
@media (max-width:600px) and (orientation:portrait){.phoneframe{width:min(86vw,340px);height:min(80vh,700px);max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px)}}
.pwrap{position:absolute;inset:0;background:#0b0b0c;border-radius:22px;padding:9px;box-shadow:0 0 0 2px #3a3a3d,0 20px 70px #000a;display:flex;flex-direction:column}
.pstatus{position:absolute;top:14px;left:22px;right:22px;display:flex;justify-content:space-between;z-index:3;font-size:13px;color:#fff;mix-blend-mode:difference}
.pscreen{flex:1;border-radius:14px;overflow:auto;position:relative;background:#fff;color:#111}
.pscreen.phomescr{background:radial-gradient(circle at 30% 20%,#3a3a3e,#111 55%,#000);color:#fff;display:flex;flex-direction:column;padding:44px 16px 80px}
.pclock{text-align:center;margin-bottom:22px}.pclock b{display:block;font-size:54px;font-weight:300;letter-spacing:-1px}.pclock span{font-size:14px;opacity:.8}
.pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 6px;align-content:start}
.papp{border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;cursor:pointer;padding:0}.papp i{font-style:normal;width:58px;height:58px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;box-shadow:0 2px 8px #0006}
.pdock{position:absolute;left:12px;right:12px;bottom:34px;background:#1a1a1c;border:1px solid #ffffff2e;border-radius:10px;padding:8px 10px;display:flex;justify-content:space-around}
.pscreen.pappscr{padding:0;display:flex;flex-direction:column;background:#f6f6f6}.pscreen.pappscr .phead{width:100%;box-sizing:border-box}.phead{display:flex;align-items:center;gap:8px;background:#111;color:#fff;padding:34px 14px 12px}.phead button{border:0;background:#ffffff26;color:#fff;border-radius:50%;width:32px;height:32px;font-size:20px;cursor:pointer;line-height:1}.phead b{font-size:17px}
.pbody{padding:12px 12px 56px;overflow:auto;flex:1}
/* (Jade: the phone must not look like an iPhone) no round 'island' and no thin home-indicator pill: a plain labelled Home button */
.pbar{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);width:84px;height:24px;border:1px solid #ffffff55;border-radius:6px;background:#1a1a1c;color:#fff;font:700 12px system-ui;z-index:4;cursor:pointer;padding:0}
.phoneclose{position:absolute;right:-6px;top:-6px;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:#111;font-size:15px;cursor:pointer;z-index:6;box-shadow:0 2px 8px #0006}
@media (max-width:520px){.clockpill{font-size:12.5px;gap:8px;padding:6px 12px}.needsrow{gap:3px;padding:5px 6px}.ng{width:30px;height:30px}.ng i{width:23px;height:23px;font-size:12px}.face{width:60px;height:60px}}

/* ---------- round 9: black time tab, her face at the top-left, and the phone's apps ---------- */
.clockpill{background:#111;color:#fff;border:1px solid #fff3;box-shadow:0 3px 14px #0006}.clockpill span+span{border-left-color:#fff4}
.dock{left:10px;top:10px;bottom:auto;right:auto;flex-direction:column;align-items:flex-start;gap:8px}
.face{width:64px;height:64px}.face span{background-size:250% auto;background-position:48.9% 11.8%}   /* her head, centred in the circle */
.needsrow{flex-direction:column;border-radius:26px;padding:7px 6px;gap:5px}
.backmap{left:auto;right:12px;top:12px}
.zoom{top:64px}
@media (max-width:520px){.face{width:56px;height:56px}.needsrow{padding:5px 4px;gap:3px}.ng{width:28px;height:28px}.ng i{width:21px;height:21px;font-size:11px}}
.pscreen.pdead{background:#000;color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px}.dead{display:flex;flex-direction:column;align-items:center;gap:10px}.bigbat{font-size:64px}.dead button{border:0;border-radius:99px;padding:12px 18px;background:#fff;color:#111;font-weight:700;font-size:14px;cursor:pointer}.dead .sub{color:#aaa}
.pscreen.plock{background:radial-gradient(circle at 30% 20%,#3a3a3e,#111 55%,#000);color:#fff;padding:58px 22px 24px;display:flex;flex-direction:column;align-items:center}
.lock{width:100%;display:flex;flex-direction:column;align-items:center}.lk-time b{font-size:50px;font-weight:300}.lk-title{font-weight:700;margin-top:6px}.lk-sub{font-size:12px;opacity:.8;text-align:center;min-height:30px;margin:4px 0 8px}
.lk-dots{display:flex;gap:10px;margin:6px 0 14px}.lk-dots i{width:12px;height:12px;border-radius:50%;border:2px solid #fff}.lk-dots i.on{background:#fff}
.keys{display:grid;grid-template-columns:repeat(3,64px);gap:10px;justify-content:center}.keys button{width:64px;height:64px;border-radius:50%;border:0;background:#ffffff26;color:#fff;font-size:24px;cursor:pointer}.keys button:active{background:#ffffff55}.keys .k2{background:none;font-size:16px}
.keys.small button{background:#ececec;color:#111;width:58px;height:58px}.lk-skip{margin-top:12px;border:0;background:none;color:#fff9;font-size:12px;text-decoration:underline;cursor:pointer}
.pfolder{position:absolute;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;z-index:5}.pfbox{background:#2a2a2dee;border-radius:28px;padding:16px;width:86%}.pfbox b{display:block;text-align:center;margin-bottom:12px}.pfbox .pgrid{grid-template-columns:repeat(3,1fr)}
.papp i.fold{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:6px;background:#ffffffcc}.papp i.fold em{font-style:normal;font-size:16px;text-align:center}
.pt{margin:2px 0 4px;font-size:20px}.sub{color:#666;font-size:13px}
.ptabs{display:flex;gap:6px;margin-bottom:10px}.ptabs button{flex:1;border:0;border-radius:99px;padding:8px 4px;background:#e4e4e4;font-weight:700;font-size:12px;cursor:pointer;color:#111}.ptabs button.on{background:#111;color:#fff}
.prow{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:11px 12px;margin-bottom:7px;box-shadow:0 1px 3px #0001;cursor:pointer}.prow small{display:block;color:#777;font-size:11px;font-weight:500}.prow .pr{display:flex;gap:6px;align-items:center;font-size:13px}
.prow button,.addc button,.dialbtns button,.emg button,.feedtop button,.compose button,.tog{border:0;border-radius:99px;padding:7px 12px;background:#111;color:#fff;font-weight:700;font-size:12px;cursor:pointer}.tog.on{background:#d8352a}
.dialnum{font-size:30px;text-align:center;min-height:42px;font-weight:300;letter-spacing:1px}.dialbtns{display:flex;gap:10px;justify-content:center;margin:12px 0}.dialbtns .call{background:#2fa66a;padding:12px 26px;font-size:15px}.dialbtns .del{background:#666}
.addc{display:flex;gap:6px;margin-bottom:10px}.addc input,.compose input,#np{flex:1;border:2px solid #ddd;border-radius:12px;padding:9px;font-size:14px;min-width:0}#np{width:100%;height:90px;box-sizing:border-box;resize:none}
.callscr{text-align:center;padding:18px 6px}.callscr .av{width:90px;height:90px;border-radius:50%;background:#e4e4e4;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:44px}.callscr .cs{color:#2fa66a;font-weight:700}.hang{margin-top:16px;border:0;border-radius:99px;padding:12px 28px;background:#d8352a;color:#fff;font-weight:700;cursor:pointer}.emg{display:flex;flex-direction:column;gap:8px;margin:10px 0}.emg button{padding:12px;font-size:15px}
.chathead{display:flex;align-items:center;gap:8px;margin-bottom:8px}.chathead button{border:0;background:#e4e4e4;border-radius:50%;width:32px;height:32px;font-size:20px;cursor:pointer}
.thread{display:flex;flex-direction:column;gap:3px;margin-bottom:10px;max-height:46vh;overflow:auto}.bub{max-width:82%;padding:5px 10px;border-radius:15px;font-size:14px;line-height:1.27;position:relative}.bub small{display:block;font-size:9px;opacity:.6;margin-top:1px}.bub.me{align-self:flex-end;background:#111;color:#fff;border-bottom-right-radius:4px}.bub.them{align-self:flex-start;background:#e6e6e6;border-bottom-left-radius:4px}
.compose{display:flex;gap:6px}
.feedtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.post{background:#fff;border-radius:16px;padding:10px;margin-bottom:10px;box-shadow:0 1px 4px #0002}.post .who{display:flex;align-items:center;gap:8px;margin-bottom:6px}.ava{width:28px;height:28px;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.art{height:150px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:64px;margin-bottom:6px}.post p{margin:4px 0;font-size:14px}.acts{display:flex;gap:14px;font-size:13px;color:#555}.acts button{border:0;background:none;font-size:13px;cursor:pointer;padding:0}.acts button.on{color:#d8352a;font-weight:700}
.post.tt .art{height:240px;font-size:84px}.emojis{display:flex;gap:6px;margin:8px 0;flex-wrap:wrap}.emojis button{border:0;background:#eee;border-radius:10px;font-size:20px;padding:6px 9px;cursor:pointer}.note.snap{margin-top:10px}
.sw{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid #0003;margin-right:6px;vertical-align:-2px}
#snk{width:100%;max-width:300px;display:block;margin:0 auto 10px;border-radius:14px;background:#111}.dpad{display:flex;flex-direction:column;align-items:center;gap:6px}.dpad div{display:flex;gap:6px}.dpad button{width:54px;height:46px;border:0;border-radius:12px;background:#111;color:#fff;font-size:18px;cursor:pointer}
.mem{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mem button{aspect-ratio:1;border:0;border-radius:14px;background:#111;color:#fff;font-size:30px;cursor:pointer}.mem button.up{background:#fff;color:#111;box-shadow:inset 0 0 0 2px #111}
.ttt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:260px;margin:0 auto 10px}.ttt button{aspect-ratio:1;border:0;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 2px #111;font-size:36px;cursor:pointer}

/* needs rings only appear when a need is low */
.needsrow[hidden]{display:none}
.needsrow .ng{animation:ngpop .35s ease-out}.needsrow .ng.low{animation:lowp 1.4s infinite,ngpop .35s ease-out}.ngmore{border:0;background:#fff;color:#111;border-radius:50%;width:30px;height:30px;font-size:16px;font-weight:700;cursor:pointer;align-self:center;line-height:1}@keyframes ngpop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
/* station places: small dots, names only when zoomed in */
#map .node.stn circle.dot{r:calc(var(--k) * 3.4px);stroke-width:calc(var(--k) * 1.6px)}
#map .node.stn text.lbl{display:none;font-size:calc(var(--k) * 9px);stroke-width:calc(var(--k) * 2.6px);font-weight:700}
#map.zin .node.stn text.lbl{display:block}
/* job 26: only major stations are drawn; the rest show when you zoom in (or when it is your station / the one you tapped) */
#map .node.stn.minor{display:none}#map.zin .node.stn.minor{display:inline}

/* Phone scrolling fix (2026-10-12, Jade): the last app row was hidden behind the dock and could not be scrolled to. */
.pscreen.phomescr{padding-bottom:20px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.pscreen.phomescr > *{flex-shrink:0}
.pscreen.phomescr .pgrid{padding-bottom:24px}
.pscreen.phomescr .pdock{position:sticky;left:auto;right:auto;bottom:6px;margin-top:auto;z-index:3}
.pscreen.pappscr{overflow:hidden}
.pscreen.pappscr .pbody{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:84px}

/* preview pictures in the shops (job 16) */
.pv{display:inline-block;width:64px;height:54px;background:#f4f1ea;border-radius:10px;overflow:hidden;vertical-align:middle;margin-right:8px}.pv svg,.pv-svg{width:100%;height:100%;display:block}.pvbtn{border:0!important;background:none!important;padding:0!important;border-radius:10px!important;display:inline-block}.prow .pl{display:flex;gap:8px;align-items:center;min-width:0;flex:1}.prow .pi{min-width:0}.prow .swrow{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0 0}.pv{margin-right:0!important;flex:none}.sw.pick{width:20px;height:20px;border-width:2px;margin:0;cursor:pointer}.sw.pick.on{box-shadow:0 0 0 3px #111}.pvzoom{position:sticky;top:0;z-index:5;background:#000a;display:flex;justify-content:center;padding:10px;margin:-4px -4px 8px;border-radius:14px}.pvbox{background:#fff;border-radius:16px;padding:12px;text-align:center;width:100%;max-width:320px}.pvbox svg{width:100%;height:auto;max-height:280px;background:#f4f1ea;border-radius:12px}.pvbox b{display:block;margin-top:8px}.pvbox small{display:block;color:#777}.pvbox button{margin-top:8px;border:0;border-radius:99px;padding:8px 18px;background:#111;color:#fff;font-weight:700}
.pr.col{flex-direction:column;align-items:flex-end!important;gap:4px!important;flex:none}
.teambadge{display:inline-block;background:#111;color:#fff;border-radius:999px;padding:1px 7px;font-size:10px;font-weight:700;letter-spacing:.02em;vertical-align:middle;margin-left:4px}

/* little Home button on the map, next to the chat pill: one tap takes her home (Jade 2026-10-12) */
#mapStage .homebtn{position:absolute;left:10px;bottom:140px;z-index:5;border:0;border-radius:99px;padding:9px 14px;background:#fff;color:#111;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #0005,inset 0 0 0 2px #111}
#mapStage .homebtn[hidden]{display:none}#mapStage .homebtn:active{transform:scale(.96)}

/* Jade's logo (2026-10-13): the transparent graffiti logo sits on a black rounded block so its white letters always show */
.logobox{background:#000;border-radius:22px;padding:10px 6px;margin:0 auto 10px;max-width:340px}
.logoimg{display:block;width:100%;height:auto;max-height:300px;object-fit:contain}

/* job 182: POCKETS button (beside the phone) and its overlay */
.pockettab{position:fixed;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));z-index:18;width:58px;height:58px;border:3px solid #fff;border-radius:18px;background:#111;font-size:28px;cursor:pointer;box-shadow:0 3px 14px #0005;display:flex;align-items:center;justify-content:center}
.pocketov{position:fixed;inset:0;z-index:60;background:#000a;display:flex;align-items:flex-end;justify-content:center}
.pocketov[hidden]{display:none}
.pk-box{position:relative;background:#fff;color:#111;width:min(520px,100%);max-height:78vh;overflow:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom))}
.pk-box h3{margin:0 0 2px;font:800 20px system-ui}.pk-sub{margin:0 0 10px;color:#555;font:500 13px system-ui}
.pk-x{position:absolute;right:10px;top:10px;border:0;background:#111;color:#fff;width:34px;height:34px;border-radius:50%;font-size:16px;cursor:pointer}
.pk-row{display:flex;align-items:center;gap:12px;padding:10px 4px;border-top:1px solid #e4e4e4}.pk-e{font-size:28px;width:38px;text-align:center}.pk-t{flex:1;display:flex;flex-direction:column}.pk-t small{color:#666;font:500 12px system-ui}
.pk-use{border:0;background:#111;color:#fff;border-radius:12px;padding:9px 16px;font:700 14px system-ui;cursor:pointer}

.gaittab{position:fixed;right:12px;bottom:calc(146px + env(safe-area-inset-bottom));z-index:18;height:58px;width:58px;min-width:58px;padding:0;border:3px solid #fff;border-radius:18px;background:#111;color:#fff;font:700 12px/1.15 system-ui;cursor:pointer;box-shadow:0 3px 14px #0005}
body.venue-open .pockettab{z-index:40!important;display:flex!important;bottom:calc(142px + env(safe-area-inset-bottom))!important}   /* (Jade 2026-10-13) the three round buttons stack UPWARDS on the right edge so they do not cover the 3D place */
body.venue-open .gaittab{z-index:40!important;display:block!important;bottom:calc(208px + env(safe-area-inset-bottom))!important}
.embedmode #runbtn{display:none!important}

/* (C14, job 134) small pop-up notifications at the SIDE of the screen */
#notifs{position:fixed;right:8px;top:calc(env(safe-area-inset-top,0px) + 64px);z-index:60;display:flex;flex-direction:column;gap:6px;align-items:flex-end;pointer-events:none;max-width:min(240px,62vw)}
.notif{pointer-events:auto;background:#000;color:#fff;border-radius:12px;padding:7px 10px;font:600 12.5px/1.35 system-ui,sans-serif;animation:notifIn .25s ease-out;border:0}
.notif.imp{background:#000}
@keyframes notifIn{from{opacity:0;transform:translateX(30px)}to{opacity:1;transform:none}}

/* (C18, job 131) LOG IN / CREATE ACCOUNT page: Jade's design (night London, graffiti logo, glass card, red button) */
.authpage{position:fixed;left:0;top:0;width:100vw;height:100vh;height:100dvh;z-index:200;background:#05070f;color:#fff;overflow:auto;font-family:system-ui,-apple-system,sans-serif}
.authbg{position:fixed;left:0;top:0;width:100vw;height:100vh;height:100dvh;background:linear-gradient(180deg,#05070f44 0%,#05070f00 30%,#05070f22 65%,#05070faa 100%),url(./brand/login-london-night.jpg?v=2) center center/cover no-repeat,#05070f}   /* (C20, Jade: 'the background was not showing') lighter tint so the picture shows */
.authwrap{position:relative;min-height:100%;max-width:460px;margin:0 auto;padding:14px 22px 22px;display:flex;flex-direction:column;align-items:center}
.authtop{width:100%;display:flex;justify-content:space-between;align-items:flex-start}
.authtag{font:italic 800 14px/1.15 'Marker Felt','Bradley Hand','Segoe Script',cursive;letter-spacing:.5px;text-transform:uppercase;text-shadow:0 2px 6px #000;border-bottom:2px solid #fff6;padding-bottom:6px}
.authset{background:none;border:0;color:#fff;font:600 13px system-ui;opacity:.9;padding:6px}
.authlogo{width:min(62vw,250px);height:auto;margin:6px 0 2px;filter:drop-shadow(0 6px 18px #000a)}
.authh{margin:6px 0 0;font:800 22px system-ui;text-align:center;text-shadow:0 2px 8px #000}
.authsub{margin:4px 0 16px;color:#ffd9c4;font-size:14px;text-align:center;text-shadow:0 1px 4px #000}
.authcard{width:100%;background:#0a0d1acc;border:1px solid #ffffff1c;border-radius:20px;padding:14px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;flex-direction:column;gap:10px}
.authfield{display:flex;align-items:center;gap:10px;background:#0b0e1be0;border:1.5px solid #ffffff3a;border-radius:14px;padding:0 12px;height:52px}
.authfield .ico{opacity:.8}.authfield input{flex:1;background:none;border:0;outline:0;color:#fff;font:16px system-ui;min-width:0}.authfield input::placeholder{color:#ffffff99}
.authnote{margin:0;font-size:12.5px;color:#ffffffb8}
.authrow{display:flex;justify-content:space-between;align-items:center;font-size:13px}
.authtick{display:flex;align-items:center;gap:8px;font-size:14px}.authtick input{width:18px;height:18px;accent-color:#e8403f}
.authlink{color:#fff;text-decoration:none;font-size:13px}
.authbtn{height:52px;border-radius:14px;font:800 17px system-ui;border:1.5px solid #ffffffcc;cursor:pointer}
.authbtn.red{background:#e8403f;border-color:#e8403f;color:#fff;box-shadow:0 6px 22px #e8403f66}
.authbtn.ghost{background:#0b0e1be0;color:#fff}
.authoffline{margin-top:10px;background:none;border:0;color:#ffffffcc;text-decoration:underline;font:14px system-ui;padding:8px}
.authfoot{margin-top:auto;padding-top:18px;text-align:center;font:600 12px system-ui;letter-spacing:3px;display:flex;flex-direction:column;gap:6px;align-items:center}
.authfine{font-weight:500;letter-spacing:0;font-size:11px;opacity:.7}
.authpage .acctmsg{background:#3a1015;color:#ffd0d0;border-radius:10px;padding:8px 10px;font-size:13px}

/* (C20, Jade 2026-10-14, job 319) pop-up messages sit at the BOTTOM (they covered Map, Garden and Party at the top right): above the Decorate / Camera buttons,
   clear of the round Walk / pockets / phone buttons on the right. Newest at the bottom; they slide up. */
#notifs{top:auto!important;right:86px!important;left:12px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 84px)!important;align-items:center!important;max-width:none!important}
#notifs .notif{max-width:min(420px,100%);text-align:center}
@keyframes notifIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.toast{top:auto!important;bottom:calc(env(safe-area-inset-bottom,0px) + 84px)!important}

/* (C20b, Jade, job 374) the same login look on every account screen: things that sit inside the glass card */
.authcard h2{margin:2px 0 0;font:800 19px system-ui;color:#fff}.authcard p{margin:0;color:#ffffffd9;font-size:14px;line-height:1.4}
.authcard .note{background:#ffffff12;border:1px solid #ffffff22;color:#ffffffd9;border-radius:12px;padding:10px 12px;font-size:13px}.authcard .note b{color:#fff}
.authcard .err{background:#3a1015;color:#ffd0d0;border-radius:10px;padding:8px 10px;font-size:13px}
.authcard select,.authcard input:not([type=checkbox]){background:#0b0e1be0;border:1.5px solid #ffffff3a;border-radius:12px;color:#fff;font:15px system-ui;height:46px;padding:0 10px;min-width:0}
.authcard .fieldrow{display:flex;gap:8px}.authcard .fieldrow select{flex:1}
.authcard .act.big,.authcard button.big{height:52px;border-radius:14px;font:800 17px system-ui;background:#e8403f;border:1.5px solid #e8403f;color:#fff;box-shadow:0 6px 22px #e8403f66;cursor:pointer;width:100%}
.authcard button.big.ghost,.authcard .act.big.ghost{background:#0b0e1be0;border-color:#ffffffcc;box-shadow:none}
.authcard .skip{background:none;border:0;color:#ffffffcc;text-decoration:underline;font:14px system-ui;padding:6px}
.authcard .small,.authcard .muted{color:#ffffffa8;font-size:12px}
/* (C21, Jade, job 302) social media in depth: top bar, stories, profile, grid, search, notifications (black / white / grey; the photos keep their colours) */
.stop{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px}.slogo{font:900 20px system-ui;letter-spacing:-.02em}.sicons{display:flex;gap:6px;align-items:center}.sicons button{position:relative;border:0;background:#f1f1f1;border-radius:50%;width:34px;height:34px;font-size:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.sbadge{position:absolute;top:-3px;right:-3px;background:#d8352a;color:#fff;border-radius:99px;font:700 10px system-ui;padding:1px 5px;font-style:normal}
.sava{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-weight:800;object-fit:cover;flex:0 0 auto}
.srow{display:flex;gap:10px;overflow-x:auto;padding:4px 0 10px;margin-bottom:4px;border-bottom:1px solid #eee}.sring{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;position:relative;flex:0 0 auto;padding:0}
.sring .sava{box-shadow:0 0 0 2px #fff,0 0 0 4px #111}.sring.seen .sava{box-shadow:0 0 0 2px #fff,0 0 0 4px #bbb}.sring small{font-size:10px;max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sring.add i{position:absolute;top:30px;right:2px;background:#111;color:#fff;border-radius:50%;width:18px;height:18px;font:700 13px/18px system-ui;font-style:normal;border:2px solid #fff}
.swho{border:0;background:none;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;padding:0;flex:1}.swho small{display:block;color:#777;font-size:11px}.post .who{justify-content:space-between}
.post .art{cursor:pointer;box-shadow:inset 0 0 0 1px #0001}.post .acts{font-size:18px;gap:16px;align-items:center;margin-top:2px}.post .acts button{font-size:18px}.post .acts small{margin-left:auto;font-size:11px}
.sfol{margin-left:auto;border:1px solid #111!important;background:#111!important;color:#fff!important;border-radius:99px!important;font:700 11px system-ui!important;padding:4px 10px!important}.sfol.on{background:#fff!important;color:#111!important}
.slikes{font-weight:700;font-size:13px;margin:4px 0 0!important}.smore{border:0;background:none;color:#777;font-size:12px;padding:0;cursor:pointer}.tag{color:#111;font-weight:800}
.stags{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}.stagp{background:#f1f1f1;border-radius:99px;padding:5px 10px;font:700 12px system-ui}.stagp small{font-weight:500;color:#777}
.sprof{display:flex;align-items:center;gap:16px;margin:6px 0}.sstats{display:flex;gap:14px;flex:1;justify-content:space-around}.sstats span{display:flex;flex-direction:column;align-items:center;font-size:11px;color:#666}.sstats b{font-size:17px;color:#111}
.sgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;margin-top:10px}.sgrid button{aspect-ratio:1;border:0;font-size:30px;cursor:pointer;border-radius:4px}
.sthumb{display:inline-flex;width:38px;height:38px;border-radius:6px;align-items:center;justify-content:center;font-size:20px}
.sstory{border-radius:18px;min-height:360px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px;text-align:center;position:relative}.sstory .sbig{font-size:90px}.sstory p{font:700 18px system-ui;text-shadow:0 1px 4px #0006}.sbar{position:absolute;top:10px;left:12px;right:12px;height:3px;background:#fff6;border-radius:3px}.sbar i{display:block;height:100%;width:100%;background:#fff;border-radius:3px}
.prow .swho,.post .swho{background:none!important;color:#111!important;border-radius:0!important;padding:0!important;font-weight:400!important;font-size:13px!important}.prow .swho b{font-weight:800}
#map text.plbl{font-size:calc(var(--k) * 9.5px);stroke-width:calc(var(--k) * 3px)}   /* (C21 job 339) pin names the same size on screen at every zoom */
/* (C22, Jade, job 339) the spread-out map: every size is fixed in map units (it zooms with the map), so the tidy layout never overlaps; area (station) names are the biggest */
#map.spread .node circle.dot{r:19px;stroke-width:3.2px}
#map.spread .node text.emo{font-size:22px;stroke-width:0}
#map.spread .node text.lbl{font-size:15px;stroke-width:4px;font-weight:900;letter-spacing:.2px}
#map.spread .vpin text.emo,#map.spread .housepin text.emo{font-size:14px;stroke-width:0}
#map.spread .vpin[data-kind] text.emo{font-size:17px}
#map.spread text.plbl{font-size:10.5px;stroke-width:3px;font-weight:800}
#map.spread .vpin[data-kind] text.plbl{font-size:11px}
#map.spread text.lbl2{font-size:11px;stroke-width:3px}
.sortbar button{white-space:nowrap;font-size:11px}   /* (C22 job 355) the sort buttons stay on one line on a phone */

.pfbox{display:flex;flex-direction:column;max-height:86%;box-sizing:border-box}.pfhead{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex:none}.pfhead b{margin:0!important;text-align:left!important;flex:1}.pfbox .pfback{position:static;background:#ffffff26;color:#fff;border:0;border-radius:14px;padding:7px 14px;font-size:15px;font-weight:700;cursor:pointer}.pfbox .pgrid{overflow:auto;min-height:0}

/* (C28 389) the city mission chip next to her money: red on black */
.clockpill .citychip{border:1px solid #e0141e;background:#1a0507;color:#fff;border-radius:99px;padding:3px 9px;font:800 12px system-ui;cursor:pointer;white-space:nowrap}.clockpill .citychip:empty{display:none}
.clockpill{flex-wrap:wrap;justify-content:center;max-width:96vw}.clockpill .citychip{flex-basis:auto}@media (max-width:620px){.clockpill .citychip{flex-basis:100%}}

/* (C28, Jade) the time, weather, money and city mission are ONE line across the top, smaller */
.clockpill{flex-wrap:nowrap!important;justify-content:center;max-width:98vw;white-space:nowrap;gap:8px;padding:5px 12px;font-size:clamp(10px,2.5vw,13px)}
.clockpill span+span{padding-left:8px}
.clockpill .citychip{flex-basis:auto!important;font-size:inherit;padding:2px 8px}
@media (max-width:520px){.clockpill{gap:5px;padding:4px 8px}.clockpill span+span{padding-left:5px}.clockpill .citychip{padding:2px 6px}}

/* (C28, Jade) smaller still: the top bar must not cover the map */
.clockpill{top:6px!important;gap:6px!important;padding:3px 9px!important;font-size:clamp(9px,1.8vw,11px)!important;line-height:1.25}
.clockpill span+span{padding-left:6px!important}.clockpill .citychip{padding:1px 6px!important}
@media (max-width:520px){.clockpill{font-size:clamp(8.5px,2.4vw,10.5px)!important;gap:4px!important;padding:3px 6px!important}.clockpill span+span{padding-left:4px!important}}

/* (C30) Jade: "Choose your game" (and every first-run screen) could not scroll on a phone, the logo ate the screen and the On/Off buttons were squashed. */
#root > .screen{height:100%;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;align-items:flex-start;justify-content:center;padding:16px 16px calc(28px + env(safe-area-inset-bottom,0px))}
#root > .screen > .panel{margin:auto 0}
.panel .logobox{max-width:100%;overflow:hidden}
.panel .logoimg{display:block;margin:0 auto;max-width:100%;max-height:min(22vh,150px);width:auto;height:auto;object-fit:contain}
.panel .fieldrow{display:flex;gap:10px}
.panel .fieldrow .big.sw{flex:1 1 0;min-height:48px;height:auto;padding:12px 10px;line-height:1.2;font-size:16px}
.panel .note{text-align:left}
.panel #swGo{min-height:50px;margin-top:8px}

/* (C30) phone tester: the clock pill spans the whole top of a phone, so the avatar and the Map / Garden / Party buttons slid underneath it */
@media (max-width:620px){
  .dock{top:calc(44px + env(safe-area-inset-top,0px))}
  #homeStage .backmap{margin-top:36px}
}

/* (C30) phone tester: the floating Walk / pockets / phone buttons covered the right side of the place card */
@media (max-width:620px){ .popup{z-index:60} }

/* (C30) phone tester: the shop shelf / Do / View panel was only about one and a half rows tall on a phone */
@media (max-width:620px){ #venueStage .vpanel{max-height:52vh!important} #venueStage .vpanel.big{max-height:70vh!important} }

/* (C30) phone tester: the price and the small line on a red button (day ticket card) were blue on red */
.popup .act.big:not(.alt):not(.danger) .d,.popup .act.big:not(.alt):not(.danger) .p{color:#fff!important;opacity:1}   /* only the RED big button: the pale pink 'hot' rows (cheapest trip) keep their dark text */

/* (C30) phone tester: in a station street the bottom button row (Places to go, Kiosk, Do, View, people) was wider than the screen and the first button was cut off on the left */
@media (max-width:620px){
  #venueStage .vdock{justify-content:flex-start!important;gap:5px!important;padding-left:8px!important;overflow-x:auto;scrollbar-width:none}
  #venueStage .vdock::-webkit-scrollbar{display:none}
  #venueStage .vdock .vbtn{padding:9px 10px!important;font-size:12.5px!important;flex:0 0 auto}
}

/* (C31) Jade on the laptop: "Choose your first home" would not scroll (body is overflow:hidden, so the picker must scroll itself) */
#root > .hp{height:100%;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}

/* ===== (C35) GTA-style map: charcoal ground, restrained magenta accent, zoom levels, filters, search ===== */
:root{--mp:#d6336c}
#mapStage,#map{background:#15171b}
#map .node circle.dot,#map.spread .node circle.dot{fill:#1b1d22;stroke:#d5d8de}
#map .node:hover .dot{fill:#2a2d34}
#map .node.sel circle.dot{stroke:var(--mp)}
#map .vpin circle:not([fill="transparent"]):not([fill="none"]),#map .housepin circle:not([fill="transparent"]){fill:#1b1d22;stroke:#b9bdc6}
#map .vpin circle[fill="#777"]{fill:#33353b;stroke:#6b6f78}
/* (2026-11-08, Jade: 'players do not know what is a supermarket, a club...') every pin is coloured by its TYPE and says what it is under its name (src/ui/maptypes.js) */
#map g[data-type]{--tc:#888780}
#map g[data-type="food"]{--tc:#D85A30}#map g[data-type="grocery"]{--tc:#639922}#map g[data-type="shop"]{--tc:#378ADD}#map g[data-type="club"]{--tc:#7F77DD}#map g[data-type="fun"]{--tc:#BA7517}#map g[data-type="service"]{--tc:#888780}#map g[data-type="home"]{--tc:#D4537E}
#map g[data-type] circle:not([fill="transparent"]):not([fill="none"]){fill:var(--tc);stroke:#fff;stroke-width:2.4}
#map g[data-type] circle[fill="#777"]:not([fill="transparent"]):not([fill="none"]){fill:#33353b;stroke:var(--tc)}
#map text.ptype{fill:#cfd2d8;stroke:#0e0f12;stroke-width:3;paint-order:stroke}
#map .housepin circle:not([fill="transparent"]){stroke:var(--mp)}
#map circle[fill="none"][stroke="#111"]{stroke:var(--mp)}
#map text.lbl,#map text.plbl,#map .node text.lbl{fill:#eceef2;stroke:#0e0f12}
#map .pulse{fill:#d6336c33}
#map g[data-kind],#map .vpin,#map .adb{transition:opacity .28s ease}
#map.lod-city g[data-kind],#map.lod-city .vpin,#map:not(.lod-street) .adb{opacity:0;pointer-events:none}
#map.lod-hood .vpin text.plbl,#map.lod-hood g[data-kind] text.plbl,#map.lod-hood .vpin text.ptype,#map.lod-hood g[data-kind] text.ptype,#map.lod-city .node text.lbl.minor{display:none}
#map .tlines{display:none}#map[data-cat="transport"] .tlines{display:inline}
#map[data-cat] g[data-cat]{opacity:1;pointer-events:auto}
#map[data-cat="homes"] g[data-cat]:not([data-cat="homes"]),#map[data-cat="jobs"] g[data-cat]:not([data-cat="jobs"]),#map[data-cat="shops"] g[data-cat]:not([data-cat="shops"]),#map[data-cat="fun"] g[data-cat]:not([data-cat="fun"]),#map[data-cat="transport"] g[data-cat]{display:none}
#map.lod-city[data-cat] text.plbl{display:none}
/* the quick filter buttons (type filter): other types fade, the chosen type stays */
#map[data-tf] g[data-type]{opacity:.12;pointer-events:none}
#map[data-tf="food"] g[data-type="food"]{opacity:1;pointer-events:auto}#map[data-tf="grocery"] g[data-type="grocery"]{opacity:1;pointer-events:auto}#map[data-tf="shop"] g[data-type="shop"]{opacity:1;pointer-events:auto}#map[data-tf="club"] g[data-type="club"]{opacity:1;pointer-events:auto}#map[data-tf="fun"] g[data-type="fun"]{opacity:1;pointer-events:auto}#map[data-tf="service"] g[data-type="service"]{opacity:1;pointer-events:auto}
#map.lod-city[data-tf] text.plbl,#map.lod-city[data-tf] text.ptype{display:none}
/* the buttons row and the key */
.mh-chips{display:flex;gap:6px;margin-top:6px;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}.mh-chips button{flex:0 0 auto;display:flex;align-items:center;gap:6px;height:34px;padding:0 11px;border-radius:99px;border:1px solid #ffffff26;background:#16181cf0;color:#eceef2;font:700 12px system-ui;cursor:pointer;box-shadow:0 2px 10px #0008;white-space:nowrap}.mh-chips button i{width:11px;height:11px;border-radius:50%;background:var(--tc);border:1.5px solid #fff;display:inline-block}.mh-chips button.on{background:#fff;color:#16181c;border-color:#fff}
@media (max-width:600px){.zoom{top:150px}.mh-chips{margin-left:-84px;width:calc(100vw - 16px);padding-left:2px}.mh-key{margin-left:-84px;width:calc(100% + 84px - 20px);box-sizing:border-box}.mh-chips button{padding:0 9px;font-size:11.5px}}
.mh-key{margin-top:6px;background:#16181cf5;border:1px solid #ffffff1f;border-radius:10px;padding:10px 12px;box-shadow:0 6px 24px #000a}.mh-key[hidden]{display:none}.mh-key b{display:block;font:700 12px system-ui;color:#cfd2d8;margin-bottom:6px}.mh-key div{display:flex;flex-wrap:wrap;gap:6px 14px}.mh-key span{display:flex;align-items:center;gap:6px;font:600 12.5px system-ui;color:#eceef2}.mh-key span i{width:13px;height:13px;border-radius:50%;background:var(--tc);border:1.5px solid #fff;display:inline-block}

.zoom button,#mapStage .homebtn{background:#16181cf0;color:#eceef2;border:1px solid #ffffff1f;border-radius:6px;box-shadow:0 2px 10px #0008}
.zoom button:active,#mapStage .homebtn:active{background:#262a31}
#mapStage .homebtn{border-radius:6px;letter-spacing:.3px}
.maphud{position:absolute;left:96px;top:44px;width:min(380px,calc(100vw - 170px));z-index:13;font:600 13px system-ui,-apple-system,sans-serif;color:#eceef2}
.mh-bar{display:flex;gap:6px}
.mh-search{flex:1;min-width:0;display:flex;align-items:center;gap:6px;background:#16181cf0;border:1px solid #ffffff1f;border-radius:6px;padding:0 10px;height:38px;box-shadow:0 2px 10px #0008}
.mh-search span{opacity:.6;font-size:18px}
.mh-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:#eceef2;font:600 14px system-ui;height:36px}
.mh-search input::placeholder{color:#8b909a}
.mh-search:focus-within{border-color:var(--mp)}
.mh-filter{height:38px;padding:0 12px;border-radius:6px;border:1px solid #ffffff1f;background:#16181cf0;color:#eceef2;font:700 12.5px system-ui;letter-spacing:.4px;text-transform:uppercase;cursor:pointer;box-shadow:0 2px 10px #0008;white-space:nowrap}
.mh-filter.active{border-color:var(--mp);color:#fff;box-shadow:0 0 0 1px var(--mp),0 2px 10px #0008}
.mh-panel,.mh-res{margin-top:6px;background:#16181cf5;border:1px solid #ffffff1f;border-radius:6px;box-shadow:0 6px 24px #000a;overflow:hidden}
.mh-panel[hidden],.mh-res[hidden]{display:none}
.mh-panel{width:min(230px,100%);margin-left:auto}
.mh-panel button,.mh-res button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #ffffff12;color:#eceef2;padding:11px 12px;font:600 13px system-ui;cursor:pointer;min-height:40px}
.mh-panel button:last-child,.mh-res button:last-child{border-bottom:0}
.mh-panel button.on{box-shadow:inset 3px 0 0 var(--mp);background:#ffffff0a}
.mh-panel button:active,.mh-res button:active{background:#ffffff14}
.mh-res i{font-style:normal;font-size:11px;color:#8b909a;text-transform:uppercase;letter-spacing:.5px}
.mh-res p{margin:0;padding:12px;color:#8b909a}
@media (max-width:520px){.maphud{left:90px;top:40px;width:calc(100vw - 150px)}.mh-filter{padding:0 9px;font-size:11.5px}}
#map .adb{filter:brightness(.6) saturate(.5)}
/* (C35) zoomed far out on a phone the main places stay readable: they grow with the zoom (never smaller than before) */
#map.spread .node,#map.spread .housepin{transform-box:fill-box;transform-origin:50% 50%;transform:scale(var(--ns,1))}   /* --ns is worked out in main.js (no CSS maths: older phones) */
/* (C35, Jade) the big outside landmarks glow neon so they stand out on the dark map; the 'Advertise here' boards are plain bright white */
#map .lm text{fill:#22f3d6;stroke:#06201c;stroke-width:3px;paint-order:stroke}
#map .adb{filter:none}
/* (C35, Jade: 'all blue, change the colours') every outside landmark has its OWN neon colour */
#map .lm{--g:#22f3d6}
#map .lm text{fill:var(--g)}
#map .lm[data-lm="wembley-stadium"]{--g:#39ff14}#map .lm[data-lm="emirates"]{--g:#ff3b3b}#map .lm[data-lm="london-stadium"]{--g:#b36bff}#map .lm[data-lm="the-valley"]{--g:#29d3ff}#map .lm[data-lm="big-ben"]{--g:#ffe81a}#map .lm[data-lm="buckingham-palace"]{--g:#ff9a1f}#map .lm[data-lm="the-o2"]{--g:#ff4fd8}#map .lm[data-lm="theme-park"]{--g:#c6ff1a}#map .lm[data-lm="tower-bridge"]{--g:#00ffb3}
/* (C35, Jade) the Home button, the zoom buttons and the search bar are WHITE so they stand out from the dark map */
.zoom button,#mapStage .homebtn{background:#fff;color:#111;border:1px solid #0000002e;box-shadow:0 2px 10px #0006}
.zoom button:active,#mapStage .homebtn:active{background:#e9eaee}
.mh-search,.mh-filter,.mh-panel,.mh-res{background:#fff;border:1px solid #0000002e;color:#111;box-shadow:0 2px 12px #0006}
.mh-search input{color:#111}.mh-search input::placeholder{color:#6b7078}.mh-search span{opacity:.7;color:#111}
.mh-search:focus-within{border-color:var(--mp)}
.mh-filter{color:#111}.mh-filter.active{border-color:var(--mp);color:#111;box-shadow:0 0 0 2px var(--mp),0 2px 12px #0006}
.mh-panel button,.mh-res button{color:#111;border-bottom:1px solid #0000001a}
.mh-panel button.on{background:#f3f4f7;box-shadow:inset 3px 0 0 var(--mp)}
.mh-panel button:active,.mh-res button:active{background:#e9eaee}
.mh-res i,.mh-res p{color:#6b7078}

/* (C35) the neon glow is now an SVG filter (attribute on the landmark): the CSS filters above must not override it */
#map .lm text{fill:var(--g)}

/* (C35) phones: 16px text in the search box (iPhone zooms the page for anything smaller), no native search styling, 44px touch targets */
.mh-search input{font-size:16px;-webkit-appearance:none;appearance:none;border-radius:0}.mh-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.mh-search,.mh-filter{height:44px}.mh-filter{min-width:64px}.zoom button{width:44px;height:44px}
/* (C35) the phone home screen: 3 rows she uses most, 7 folders, a last row, the app search box and a 3-app bottom bar */
.papp.spacer{visibility:hidden}
.pscreen.phomescr .pgrid{overflow-y:auto;max-height:calc(100% - 232px);gap:12px 6px;padding-bottom:10px;-webkit-overflow-scrolling:touch}
.pscreen.phomescr .papp i{width:52px;height:52px;font-size:25px}
.psearch{position:absolute;left:14px;right:14px;bottom:104px;z-index:3}
.psearch input{width:100%;box-sizing:border-box;border:0;border-radius:14px;padding:9px 12px;font-size:16px;background:#ffffffd9;color:#111;-webkit-appearance:none;appearance:none}
.pres{position:absolute;left:0;right:0;bottom:46px;background:#2a2a2df2;border-radius:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;color:#fff}.pres:empty{display:none}.pres small{grid-column:1/-1;text-align:center;opacity:.8;padding:6px}
.papp.srch i{width:44px;height:44px;font-size:22px}
/* (C35) fit all 6 rows on the phone without scrolling: a smaller clock and tighter icons */
.pscreen.phomescr .pclock{margin-top:34px!important;margin-bottom:0!important;line-height:1}
.pscreen.phomescr .pclock b{font-size:42px!important;line-height:1.05}
.pscreen.phomescr .pclock span{font-size:12px!important}
.pscreen.phomescr .pgrid{gap:7px 4px;max-height:calc(100% - 196px)}
.pscreen.phomescr .papp{font-size:10px;gap:3px}
.pscreen.phomescr .papp i{width:46px;height:46px;font-size:22px;border-radius:13px}
.pscreen.phomescr .papp span{max-width:68px;text-align:center;line-height:1.1;white-space:normal}
.psearch{bottom:98px}
.pscreen.phomescr .pclock{margin-top:22px!important}
.pscreen.phomescr .pclock b{font-size:34px!important}
.pscreen.phomescr .papp i{width:42px;height:42px;font-size:20px;border-radius:12px}
.pscreen.phomescr .papp{font-size:9.5px}
.pscreen.phomescr .pgrid{gap:6px 4px;max-height:calc(100% - 178px)}
.pscreen.phomescr .papp i.fold{padding:4px;gap:1px}.pscreen.phomescr .papp i.fold em{font-size:12px;line-height:1.15}
/* (C35, Jade: 'the emojis come out of the folder, the names are written over it') a folder tile is a fixed square with a 2x2 grid of small pictures INSIDE it; the name sits under it on its own lines */
.pscreen.phomescr .papp{justify-content:flex-start;min-height:64px}
.pscreen.phomescr .papp i.fold{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;width:42px;height:42px;box-sizing:border-box;overflow:hidden;padding:3px;gap:0;place-items:center;background:#ffffffcc;border-radius:12px;flex:none}
.pscreen.phomescr .papp i.fold em{font-style:normal;font-size:13px;line-height:1;display:block;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pscreen.phomescr .papp span{display:block;margin-top:2px;max-width:72px;overflow:hidden;text-overflow:ellipsis}
.pfbox .papp i.fold{display:none}
.pscreen.phomescr .pclock{margin-top:14px!important}.pscreen.phomescr .pclock b{font-size:30px!important}.pscreen.phomescr .pclock span{display:none}
.pscreen.phomescr .pgrid{max-height:calc(100% - 152px);gap:2px 4px}
.pscreen.phomescr .papp{min-height:70px;font-size:9px}
.pscreen.phomescr .papp span{max-width:80px;line-height:1.12;white-space:normal;overflow:visible}
/* (C35) the home screen is a column: clock, the grid (takes the space left), the search box, the 3-app bar: nothing can overlap */
.pscreen.phomescr{display:flex;flex-direction:column;overflow:hidden}
.pscreen.phomescr .pgrid{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;align-content:start}
.pscreen.phomescr .psearch{position:relative;left:auto;right:auto;bottom:auto;flex:none;margin:4px 14px 6px}
.pscreen.phomescr .pdock{position:relative;left:auto;right:auto;bottom:auto;flex:none;margin:0 14px 24px;padding:8px 12px}
.pscreen.phomescr .pclock{flex:none}
.pscreen.phomescr .papp{min-height:60px}
.pscreen.phomescr .papp i{width:40px;height:40px;font-size:19px}
.pscreen.phomescr .papp i.fold{width:40px;height:40px}
.pscreen.phomescr .pgrid{gap:0 4px}
/* (C35, Jade) the clock sits higher, with a gap before the first row of apps */
.pscreen.phomescr .pclock{margin-top:2px!important;margin-bottom:12px!important}
.pscreen.phomescr .papp{min-height:58px}
/* (C35, Jade: 'Work and learning / Health and safety are touching the other apps') rows take the height their names need, with a gap between rows */
.pscreen.phomescr .papp{min-height:0;height:auto}
.pscreen.phomescr .pgrid{gap:8px 4px;grid-auto-rows:auto;align-content:start}
.pscreen.phomescr .papp span{margin-top:3px;padding-bottom:1px}

/* (C36, Jade) every app is on the home screen (no folders) and the list scrolls: the rows keep their height */
.pscreen.phomescr .pgrid{grid-auto-rows:max-content;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.pscreen.phomescr .pgrid .papp{min-height:62px;flex-shrink:0}
/* (C36, Jade) the LOCK screen shows her full-body picture */
.pscreen.plock .plockwall{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;pointer-events:none;z-index:0;overflow:hidden;opacity:.85}
.pscreen.plock .plockwall img,.pscreen.plock .plockwall svg{height:78%;width:auto;max-width:100%;object-fit:contain;-webkit-mask-image:radial-gradient(ellipse 60% 62% at 50% 50%,#000 55%,transparent 100%);mask-image:radial-gradient(ellipse 60% 62% at 50% 50%,#000 55%,transparent 100%)}
.pscreen.plock > *:not(.plockwall){position:relative;z-index:1}

/* (C36) the whole-of-London chat: names you can tap, a quote of the message being answered, the Who's in here button */
.mx-name{background:none;border:0;padding:0;font:inherit;font-weight:800;color:inherit;text-decoration:underline;cursor:pointer}
.mx-quote{font-size:12px;opacity:.75;border-left:3px solid #ffffff88;padding:2px 8px;margin:2px 0 4px}
.cb.them .mx-quote{border-left-color:#00000033}
.mx-whobtn,.q-app .mx-head>button.mx-whobtn{margin-left:auto;font:700 12px system-ui;padding:7px 10px;border-radius:12px;border:0;background:#ffffff33;color:inherit;cursor:pointer;width:auto;height:auto;white-space:nowrap;flex:none}
.mx-head .mx-hname{min-width:0;flex:1;display:flex;flex-direction:column}.mx-head .mx-hname b,.mx-head .mx-hname small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-grp{font:800 11px system-ui;letter-spacing:.06em;text-transform:uppercase;color:#445;padding:6px 6px 2px}
.mx-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#22c55e;margin-right:6px}.mx-dot.off{background:#9aa}
.mx-thread.lon.who{max-height:62vh}
.mx-thread.lon{overflow-y:auto}
.mx-row.mx-london{background:linear-gradient(90deg,#1f2a44,#0b0b0e);color:#fff;border-radius:14px}

/* (Jade: "you can sign up without ticking 18") until the 18+ box is ticked the Create Account button looks switched off, and pressing it only says why */
.authcard:has(#acct-18-first:not(:checked)) .authbtn.red{opacity:.45;filter:grayscale(.4)}
.authcard:has(#acct-18:not(:checked)) .authbtn.red,.card:has(#acct-18:not(:checked)) .call{opacity:.45}

/* (Jade: "take the island off and put it on the phone itself") the four main apps (Phone, Messages, Camera, Settings) are a flat bar fixed to the bottom of the phone screen, edge to edge: no floating rounded island */
.pscreen.phomescr{padding-bottom:0}
.pscreen.phomescr .pdock{position:relative;left:auto;right:auto;bottom:auto;margin:0 -16px 0;border-radius:0;border:0;border-top:1px solid #ffffff2e;background:#141416;padding:10px 14px 16px;-webkit-backdrop-filter:none;backdrop-filter:none}
.pscreen.phomescr + .pbar{display:none}

/* (2026-10-19, Jade) Hide / Show buttons, the mute button, and the names under the needs */
.backmap.tiny{font-size:11px;padding:6px 11px;font-weight:600;background:#111c;border:1px solid #fff5}
.clockpill .mutebtn{border:1px solid #fff4;background:#111;color:#fff;border-radius:99px;padding:1px 8px;font-size:14px;line-height:1.4;cursor:pointer}
.ngw{display:flex;flex-direction:column;align-items:center;gap:1px}
.ngl{font:700 8px/1 system-ui,sans-serif;color:#fff;opacity:.9;letter-spacing:.02em;text-shadow:0 1px 2px #000}

/* (2026-10-20, Jade: "just make it the eyes only") the Hide / Show button at home is the eye on its own, a small round button */
#clearBtn{font-size:17px!important;padding:5px 12px!important;line-height:1.2}
/* (2026-10-20, Jade: "the mission is at the bottom now, why? keep it all in one line inside the black border, compact") on a phone the top bar is ONE row inside its black border: time, weather, money, mission (the short form) and sound. No outline, no shadow, small text. */
@media (max-width:520px){
  .clockpill{border:0!important;box-shadow:none!important;left:50%!important;right:auto!important;margin:0!important;transform:translateX(-50%)!important;width:auto!important;max-width:calc(100vw - 8px)!important;flex-wrap:nowrap!important;justify-content:center!important;gap:5px!important;padding:4px 8px!important;font-size:10.5px!important;line-height:1.25!important;top:5px!important;border-radius:99px!important;box-sizing:border-box}
  .clockpill span+span{padding-left:5px!important}
  .clockpill .mutebtn{border:0!important;padding:0 3px!important;font-size:12px!important;line-height:1.2!important;background:transparent!important}
  .clockpill .citychip{flex:0 0 auto!important;padding:1px 6px!important;font-size:10.5px!important;line-height:1.3!important;margin:0!important}
}
@media (max-width:430px){.clockpill{font-size:9.5px!important;gap:4px!important;padding:4px 6px!important}.clockpill .citychip{font-size:9.5px!important;padding:1px 5px!important}.clockpill span+span{padding-left:4px!important}}
@media (max-width:350px){.clockpill{font-size:8.5px!important;gap:3px!important}.clockpill .citychip{font-size:8.5px!important}}
/* (2026-10-20, Jade: "I don't want any white border behind the time, weather, money, mission and sound: remove it") NO white border or shadow ring on the top bar, at any size: a plain black bar */
.clockpill{border:0!important;box-shadow:none!important;outline:0!important}
.clockpill .mutebtn{border:0!important;background:transparent!important}

/* (2026-10-21) the cover shown while her 3D home is being built (game.js trackHomeLoading) */
#homeLoading{position:absolute;inset:0;z-index:30;background:#000;color:#fff;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;text-align:center;padding:24px;font:15px/1.4 system-ui,-apple-system,sans-serif}
#homeLoading[hidden]{display:none}#homeLoading img{width:min(80vw,420px);height:auto}
#homeLoading .hbar{width:min(70vw,300px);height:4px;background:#2a2a2a;border-radius:4px;overflow:hidden}#homeLoading .hbar i{display:block;height:100%;width:40%;background:#fff;border-radius:4px;animation:hbar 1.3s ease-in-out infinite}
@keyframes hbar{0%{margin-left:-40%}100%{margin-left:100%}}#homeLoading small{display:block;color:#9a9a9a;margin-top:4px}
#homeLoading button{background:#fff;color:#000;border:0;border-radius:12px;padding:12px 22px;font:700 15px system-ui;cursor:pointer;margin-top:12px}
@media (prefers-reduced-motion:reduce){#homeLoading .hbar i{animation:none;width:100%}}
/* (2026-11-04, Jade) no pop-up is ever taller than 2 lines: long words are cut with "..." and the full text stays in the Story log */
.notif,#notifs .notif{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.toast:empty{display:none!important}
#notifs{max-height:34vh;overflow:hidden}

/* (2026-11-05, Jade: 'all these buttons are so big ... they can slightly be smaller, maybe because I'm on a laptop') the round Walk / Pockets / Phone buttons shrink on a laptop or any mouse; touch screens keep the 58 px finger-sized ones */
@media (hover:hover) and (pointer:fine){
  .phonetab,.pockettab{width:44px;height:44px;border-width:2px;border-radius:14px;font-size:21px}
  .gaittab{width:44px;min-width:44px;height:44px;border-width:2px;border-radius:14px;font-size:10px}
}

/* (2026-11-06, Jade: 'every shop, everything I enter, my money, my name, the music and the radio should always be there') the top bar sits above the shop / place screens (they are layer 28) and shows her name, the time, her money, the mute button and the radio */
.clockpill{z-index:45!important}
.clockpill #pname{max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.clockpill #pname:empty{display:none}
.clockpill #radioBtn{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* (2026-11-06) on a phone the top bar must still show her NAME, money, mute and radio: the temperature goes first, then the mission chip (it stays in the phone: City mission) */
@media (max-width:520px){ .clockpill #wx{display:none!important} .clockpill #pname{max-width:56px} }
@media (max-width:430px){ .clockpill .citychip{display:none!important} }

/* (2026-11-06, Jade: 'the radio stuff and my profile picture cover the map; the arrow and the radio do not need that much space; I still need to see the station name') the map starts BELOW the top bar, the bar stays clear of the profile picture on the left and the buttons on the right, and the back arrow sits right beside the radio button with the station name */
#mapStage{top:46px!important}
.maphud{top:4px!important}
@media (max-width:520px){.maphud{top:2px!important}}
.clockpill{max-width:calc(100vw - 168px)!important}
.clockpill #radioPrev,.clockpill #radioBtn{padding:0 3px!important;min-width:0}
.clockpill #radioPrev{margin-right:-7px!important}
.clockpill #radioBtn{max-width:104px!important}
/* (2026-11-06, Jade: 'I cannot see the radio at the top anymore') the bar was cut off at its right end on a narrow window, which hid the radio button: the weather goes first on windows under 1100px, the radio name is shorter, and nothing in the bar is ever clipped */
.clockpill{overflow:visible!important;max-width:calc(100vw - 150px)!important}
@media (max-width:1100px){.clockpill #wx{display:none!important}}
.clockpill #radioBtn{max-width:84px!important}
.clockpill #muteBtn,.clockpill #radioPrev,.clockpill #radioBtn{flex:0 0 auto}

/* (2026-11-07, phone check: 375x812 portrait, 812x375 landscape, iPad) fixes found by tools/bench/phonecheck.mjs -------------------------------------------------------------------------------------------------- */
/* the top bar was held to 100vw - 150 px (room for the picture and buttons that never sit beside it on a phone): the bar's words spilled out of the black pill (white "13:00" on the light page, the radio name past the end) and her NAME was squeezed to nothing. A phone's bar may use the whole width. */
@media (max-width:520px){ .clockpill{max-width:calc(100vw - 10px)!important} .clockpill #pname{flex:0 1 auto} }
/* the sound / back / radio icons are 14-20 px wide: the tap area grows (not the picture) so a thumb hits them */
.clockpill #muteBtn,.clockpill #radioPrev,.clockpill #radioBtn{position:relative}
.clockpill #muteBtn::after,.clockpill #radioPrev::after,.clockpill #radioBtn::after{content:"";position:absolute;inset:-11px -4px}
#clearBtn{min-height:40px;min-width:44px}
/* a phone on its side is only ~375 px high: the right-hand column (Map, Garden, Party, eye, Run, purse, phone) had the Run button sitting on the eye */
@media (max-height:480px) and (orientation:landscape){
  .phonetab,.pockettab,.gaittab{width:46px!important;min-width:46px!important;height:46px!important;border-width:2px!important;border-radius:14px!important;font-size:22px!important}
  .gaittab{font-size:10px!important}
  .phonetab{bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .pockettab,body.venue-open .pockettab{bottom:calc(60px + env(safe-area-inset-bottom))!important}
  .gaittab,body.venue-open .gaittab{bottom:calc(112px + env(safe-area-inset-bottom))!important}
}
@media (max-height:480px) and (orientation:landscape){ #mapStage .backme,#mapStage .homebtn{left:72px!important} }   /* the column of needs rings (Food ... Toilet) is as tall as a phone on its side and covered the left end of 'Back to me' and 'Home' */
/* (2026-11-08, Jade: 'search bar, Key and Filter do not have to be that big, make them a bit thinner') on phones the map's top bar is slimmer: 36px high (the text stays 16px so iPhone does not zoom the page), smaller filter buttons, zoom buttons just under them */
@media (max-width:600px){.mh-search,.mh-filter{height:36px}.mh-search input{height:34px}.mh-filter{min-width:52px;padding:0 9px;font-size:11.5px}.mh-chips{margin-top:5px}.mh-chips button{height:30px;font-size:11px}.zoom{top:132px}.maphud{width:calc(100vw - 100px)}}

/* (2026-11-09, Jade: 'the game zooms in by itself, it is hard to zoom out') a phone browser zooms the whole page when it is given a text box with writing smaller than 16px: every text box on a touch screen is 16px, and a double tap does not zoom the page */
@media (pointer:coarse){input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}}
html,body{touch-action:manipulation}

/* (2026-11-10, Jade: 'not the Map button: the map itself, let me see it in white') LIGHT MAP try-out: the dark map is flipped to a white one (colours keep their hue). To put it back black, delete these three lines. */
#map{filter:invert(1) hue-rotate(180deg) saturate(1.15) brightness(1.04)}
#map image{filter:invert(1) hue-rotate(180deg)}
#map path[stroke="#6ab9e6"],#map path[stroke="#4fa6dd"],#map path[stroke="#7cc8ee"],#map path[stroke="#bfe7fb"]{filter:invert(1) hue-rotate(180deg)}   /* the river keeps its bright blue (flipped twice) */

/* (2026-11-11, Jade: 'accepting a friend request: both buttons are grey, one should be green and one red') */
button.pb.yes,.act.yes{background:#1f9d55!important;color:#fff!important;border-color:#1f9d55!important}
button.pb.no,.act.no{background:#d93025!important;color:#fff!important;border-color:#d93025!important}
.act.yes .t,.act.yes .d,.act.no .t,.act.no .d{color:#fff!important}
.q-app .mx-head .mx-fr{width:auto;height:auto;min-width:0;border-radius:99px;padding:6px 10px;font-size:12px;font-weight:800;white-space:nowrap;flex:none}   /* the Add friend / Requested button was squeezed into a 34px circle and ran over the name */
.mx-hname b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
