: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 .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}
.pwrap{position:absolute;inset:0;background:#0b0b0c;border-radius:50px;padding:11px;box-shadow:0 0 0 2px #3a3a3d,0 20px 70px #000a;display:flex;flex-direction:column}
.pisland{position:absolute;top:19px;left:50%;transform:translateX(-50%);width:92px;height:26px;background:#000;border-radius:20px;z-index:4}
.pstatus{position:absolute;top:20px;left:34px;right:34px;display:flex;justify-content:space-between;z-index:3;font-size:13px;color:#fff;mix-blend-mode:difference}
.pscreen{flex:1;border-radius:40px;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:62px 18px 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:16px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;box-shadow:0 2px 8px #0006}
.pdock{position:absolute;left:14px;right:14px;bottom:26px;background:#ffffff26;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:28px;padding:10px 12px;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:52px 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}
.pbar{position:absolute;left:50%;bottom:19px;transform:translateX(-50%);width:120px;height:6px;border:0;border-radius:6px;background:#fffd;z-index:4;cursor:pointer;padding:0;mix-blend-mode:normal;box-shadow:0 0 0 1px #0004}
.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:6px;margin-bottom:10px;max-height:46vh;overflow:auto}.bub{max-width:78%;padding:8px 11px;border-radius:16px;font-size:14px;position:relative}.bub small{display:block;font-size:9px;opacity:.6;margin-top:2px}.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}
}
