/* Housing: phone Houses / Home Store cards, indoor buttons, build-mode panel */
#phone .hcard { background: #fff; border-radius: 18px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
#phone .hcard.mine { border: 2px solid var(--brand); }
#phone .hrow { display: flex; gap: 12px; align-items: flex-start; }
#phone .hrow b { font-size: 26px; } #phone .hrow strong { display: block; font: 800 14.5px var(--ui); }
#phone .hrow span { display: block; font: 500 12px var(--ui); color: var(--muted); margin-top: 2px; }
#phone .hrow .bad { color: #c0392b; }
#phone .hbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#phone .hbtns button { border: 0; border-radius: 12px; padding: 8px 10px; font: 700 12px var(--ui); background: var(--brand-soft); color: var(--brand-d); cursor: pointer; }
#phone .hbtns button.go { background: var(--brand); color: #fff; }
#phone .hbtns button.warn { background: #fdecea; color: #c0392b; }
#phone .chips { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
#phone .chips button { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font: 700 12px var(--ui); background: #fff; color: var(--ink); cursor: pointer; }
#phone .chips button.on { background: var(--brand); color: #fff; }

#homeBar { display: none; position: fixed; top: 118px; left: 50%; transform: translateX(-50%); gap: 8px; z-index: 4; font-family: var(--ui); }
body.at-home.mode-play:not(.building) #homeBar { display: flex; }
#homeBar.peek button[data-b="build"] { display: none; }
#homeBar button { border: 0; border-radius: 999px; padding: 9px 16px; font: 800 13px var(--ui); background: #fff; color: var(--ink); box-shadow: 0 3px 12px rgba(0,0,0,.18); cursor: pointer; }
#homeBar button[data-b="wardrobe"] { background: var(--brand); color: #fff; }
#homeBar kbd, #buildPanel kbd { font: 700 10px var(--ui); background: rgba(0,0,0,.15); border-radius: 4px; padding: 1px 4px; margin-left: 4px; }
body.indoors #minimap, body.building #lifeNav, body.building #needsW, body.building #locCard, body.building #micBtn { display: none !important; }

#buildPanel { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; background: rgba(255,255,255,.97); border-radius: 22px; box-shadow: 0 8px 30px rgba(15,29,51,.3); padding: 12px; font-family: var(--ui); color: var(--ink); max-width: 980px; margin: 0 auto; }
body.building #buildPanel { display: block; }
.bp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bp-top strong { font: 800 15px var(--ui); flex: 1; } .bp-top span { font: 800 13px var(--ui); color: var(--brand-d); background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
#buildPanel button { border: 0; cursor: pointer; font-family: var(--ui); }
.bp-top .done { background: var(--brand); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; }
.bp-hold { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 8px; }
.bp-hold > span { font: 800 13px var(--ui); margin-right: 6px; } .bp-hold .hint, .bp-items .hint { font: 500 12.5px var(--ui); color: var(--muted); }
.bp-hold button { background: var(--brand-soft); color: var(--brand-d); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: 12.5px; }
.bp-hold button.go { background: #22a35a; color: #fff; } .bp-hold button:disabled { opacity: .4; cursor: not-allowed; }
.bp-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; }
.bp-tabs button { flex: none; background: #eef2f8; border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 12.5px; color: var(--ink); }
.bp-tabs button.on { background: var(--ink); color: #fff; }
.bp-items { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; align-items: stretch; }
.bp-items .it { flex: none; width: 104px; background: #f4f6fa; border-radius: 14px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 700 11.5px var(--ui); color: var(--ink); text-align: center; }
.bp-items .it b { font-size: 26px; } .bp-items .it em { font-style: normal; font-weight: 800; color: var(--brand-d); font-size: 11px; }
.bp-items .it.on { outline: 3px solid var(--brand); } .bp-items .it.wide { width: auto; padding: 10px 16px; flex-direction: row; gap: 10px; }
.bp-items .it.sw i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); }
.bp-items .cat { flex: none; width: 44px; border-radius: 14px; background: #eef2f8; font-size: 20px; } .bp-items .cat.on { background: var(--brand); }
.touch #buildPanel { left: 6px; right: 6px; bottom: 6px; padding: 8px; } .touch .bp-items .it { width: 86px; } .touch .bp-items .it.wide { width: auto; } /* (Back door & garden, Extend: one line, not a letter a line) */

/* Wardrobe (same panel look as build mode) */
#wardrobe { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; background: rgba(255,255,255,.97); border-radius: 22px; box-shadow: 0 8px 30px rgba(15,29,51,.3); padding: 12px; font-family: var(--ui); color: var(--ink); max-width: 980px; margin: 0 auto; }
body.dressing #wardrobe { display: block; }
#wardrobe button { border: 0; cursor: pointer; font-family: var(--ui); }
#wardrobe .bp-top span { font: 800 13px var(--ui); color: #b5470b; background: #fff1e6; padding: 5px 10px; border-radius: 999px; }
#wardrobe .it:disabled { opacity: .45; cursor: not-allowed; }
.wd-row { display: flex; align-items: center; gap: 6px; flex: none; padding-right: 14px; }
.wd-row > span { font-size: 20px; }
.wd-row .sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); }
.wd-row .sw.on { outline: 3px solid var(--brand); } .wd-row .sw.orig { background: #fff; font-weight: 800; }
body.dressing #lifeNav, body.dressing #needsW, body.dressing #locCard, body.dressing #homeBar, body.dressing #micBtn, body.dressing #minimap { display: none !important; }
#phone .imp { font: 800 9.5px var(--ui); color: #b5470b; background: #fff1e6; padding: 2px 6px; border-radius: 999px; vertical-align: middle; }

/* 🎱 pool mini-game */
#poolGame { display: none; position: fixed; inset: 0; z-index: 46; background: #080e1a; font-family: var(--ui); color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: var(--sat, 0px) 0 var(--sab, 0px); }
#poolGame.open { display: flex; }
#poolGame .pg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: min(1100px, calc(100vw - 16px)); }
#poolGame .pg-p { flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; justify-content: center; } #poolGame .pg-p:nth-child(3) { text-align: right; }
#poolGame .pg-p b { font: 800 16px var(--ui); opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #poolGame .pg-p b.on { opacity: 1; color: var(--gold); }
#poolGame .pg-p span { font: 600 12px var(--ui); opacity: .7; }
#poolGame .pg-msg { flex: 1.4; height: 52px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; text-align: center; font: 800 14px var(--ui); }
#poolGame .pg-msg span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#poolGame #pgQuit, #poolGame #pgSnd { flex: none; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }
#poolGame #pgSnd { font-size: 16px; }
#poolGame canvas { touch-action: none; cursor: crosshair; }
#poolGame .pg-help { font: 600 12px var(--ui); opacity: .6; text-align: center; padding: 0 12px; }
@media (max-width: 560px) { #poolGame .pg-top { flex-wrap: wrap; row-gap: 4px; } #poolGame .pg-msg { order: 9; flex-basis: 100%; height: 50px; font-size: 13px; } #poolGame .pg-p b { font-size: 14px; } }
#poolGame .pg-lobby { display: none; position: absolute; inset: 0; background: rgba(8,14,26,.85); flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#poolGame.lobby .pg-lobby { display: flex; } #poolGame.lobby canvas, #poolGame.lobby .pg-top, #poolGame.lobby .pg-help { visibility: hidden; }
#poolGame .pg-lobby h3 { font: 800 24px var(--ui); margin: 0; } #poolGame .pg-lobby p { margin: 0 0 6px; opacity: .8; }
#poolGame .pg-lobby button { border: 0; border-radius: 16px; padding: 12px 22px; min-width: 260px; font: 800 15px var(--ui); background: var(--brand); color: #fff; cursor: pointer; }
#poolGame .pg-lobby button.dim, #poolGame .pg-lobby .dim { background: rgba(255,255,255,.12); opacity: .85; }
#poolInvite { display: none; position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 47; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 14px; gap: 8px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.3); font-family: var(--ui); }
#poolInvite.open { display: flex; } #poolInvite button { border: 0; border-radius: 12px; padding: 8px 12px; font: 800 13px var(--ui); cursor: pointer; background: var(--brand-soft); color: var(--brand-d); }
#poolInvite button[data-a="yes"] { background: var(--brand); color: #fff; }
@media (max-width: 560px) { #poolInvite { width: calc(100vw - 24px); flex-wrap: wrap; justify-content: flex-end; } #poolInvite b { flex-basis: 100%; font-size: 14px; line-height: 1.35; } }
#poolGame #pgRules { flex: none; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 50%; font: 800 17px var(--ui); cursor: pointer; }
#poolGame .pg-msg small { display: block; font: 700 11.5px var(--ui); color: var(--gold); margin-top: 2px; }
#poolGame .pg-pot { order: 10; flex-basis: 100%; text-align: center; font: 800 13px var(--ui); color: var(--gold); }
#poolGame .pg-pot:empty { display: none; }
#poolGame .pg-toast { position: absolute; left: 50%; top: calc(var(--sat, 0px) + 12px); transform: translate(-50%, -8px); z-index: 4; max-width: min(90vw, 460px); background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font: 700 13px var(--ui); text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#poolGame .pg-toast.show { opacity: 1; transform: translate(-50%, 0); } #poolGame .pg-toast.bad { background: #c0392b; }
#poolGame .pg-balls { display: flex; gap: 2px; margin-top: 3px; min-height: 10px; } #poolGame .pg-p:nth-child(3) .pg-balls { justify-content: flex-end; }
#poolGame .pg-balls i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset -1px -1px 2px rgba(0,0,0,.35); }
#poolGame .pg-balls i.s { background: linear-gradient(#f4f2ea 28%, var(--c) 28% 72%, #f4f2ea 72%); }
#poolGame .pg-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 340px; margin: 4px 0; }
#poolGame .pg-lobby .pg-chips button { min-width: 0; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font: 800 14px var(--ui); }
#poolGame .pg-lobby .pg-chips button.on { background: var(--gold); color: #1a1a1a; }
#poolGame .pg-lobby .pg-chips button:disabled, #poolGame .pg-lobby button:disabled { opacity: .35; cursor: default; }
#poolGame .pg-lobby p.dim { max-width: 320px; text-align: center; font-size: 12.5px; }
#poolGame .pg-choice { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: rgba(8,14,26,.94); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 16px; width: min(300px, calc(100vw - 48px)); flex-direction: column; gap: 8px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
#poolGame .pg-choice.open { display: flex; } #poolGame .pg-choice b { font: 800 18px var(--ui); } #poolGame .pg-choice span { font: 600 13px var(--ui); opacity: .8; }
#poolGame .pg-choice button { border: 0; border-radius: 14px; padding: 11px; font: 800 14px var(--ui); background: var(--brand); color: #fff; cursor: pointer; } #poolGame .pg-choice button.dim { background: rgba(255,255,255,.12); }
#poolGame .pg-sheet { display: none; position: absolute; inset: 0; z-index: 3; background: rgba(8,14,26,.8); align-items: center; justify-content: center; padding: 16px; }
#poolGame.rules .pg-sheet { display: flex; }
#poolGame .pg-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 18px 14px; width: min(460px, 100%); max-height: calc(100% - 20px); overflow: auto; }
#poolGame .pg-card h3 { margin: 0 0 8px; font: 800 20px var(--ui); } #poolGame .pg-card ol { margin: 0 0 12px; padding-left: 20px; font: 500 13.5px/1.45 var(--ui); } #poolGame .pg-card li { margin-bottom: 6px; }
#poolGame .pg-card button { width: 100%; border: 0; border-radius: 14px; padding: 12px; font: 800 15px var(--ui); background: var(--brand); color: #fff; cursor: pointer; }
.bp-items .it.lux { background: linear-gradient(160deg, #fff7e0, #f3e3ff); }

/* designer pieces: fabric swatch + gold card */
.fab { display: inline-block; width: 40px; height: 40px; border-radius: 12px; background-size: cover; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 1px 4px rgba(0,0,0,.2); }
#phone .hcard.lux { background: linear-gradient(160deg, #fffaf0, #fbf0ff); border: 1px solid #ecd9a8; }
#wardrobe .it .fab { width: 34px; height: 34px; }

/* ---- build panel: furniture pictures (assets/furniture/previews), categories, colours; phone-first ---- */
#buildPanel { max-height: 52vh; display: none; flex-direction: column; }
body.building #buildPanel { display: flex; }
#buildPanel img.fpic { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto; flex: none; }
#buildPanel img.fpic.mini { width: 28px; height: 28px; display: inline-block; vertical-align: middle; margin: 0 6px 0 0; }
#buildPanel img.fpic { background: none !important; box-shadow: none !important; border-radius: 0 !important; }
#phone img.fpic.big { width: 64px; height: 64px; object-fit: contain; flex: none; margin: 0 10px 0 0; background: #f3f5f8; border-radius: 12px; }
.fcols { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.fcols i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.bp-hold { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.bp-acts { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bp-acts .bp-name { flex: 1; min-width: 0; font: 800 13px var(--ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-acts button { flex: none; min-width: 38px; min-height: 36px; }
.bp-acts .lbl { font-style: normal; }
.bp-cols { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 4px 2px 2px; scrollbar-width: none; }
.bp-cols::-webkit-scrollbar { display: none; }
.bp-cols .sw { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); cursor: pointer; padding: 0; }
.bp-cols .sw.on { box-shadow: 0 0 0 3px var(--brand); }
.bp-colname { flex: none; font: 700 12px var(--ui); color: var(--muted); margin-left: 2px; }
.bp-cats { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.bp-cats:empty { display: none; }
.bp-cats::-webkit-scrollbar { display: none; }
.bp-cats button { flex: none; background: #fff; border: 1.5px solid #e1e6ef !important; border-radius: 999px; padding: 6px 11px; font: 700 12px var(--ui); color: var(--ink); white-space: nowrap; }
.bp-cats button.on { background: var(--brand); border-color: var(--brand) !important; color: #fff; }
.bp-items { min-height: 0; }
.bp-items .it { width: 96px; padding: 8px 6px 7px; gap: 4px; line-height: 1.15; }
.bp-items .it { word-break: break-word; }
@media (max-width: 640px) {
  .bp-acts .lbl { display: none; }                        /* icons only, except Place */
  .bp-items .it { width: 84px; font-size: 11px; }
  #buildPanel img.fpic { width: 48px; height: 48px; }
  .bp-top strong { font-size: 14px; } .bp-top span { font-size: 12px; padding: 4px 8px; }
}

/* Fashion app: showroom pictures of the clothes (ui/fashion-ui.js) */
#phone .spicb { flex: none; padding: 0; margin: 0 10px 0 0; border: 0; background: #f3f5f8; border-radius: 12px; cursor: zoom-in; line-height: 0; }
#phone img.spic { width: 76px; height: 76px; object-fit: contain; display: block; }
img.spic.sm { width: 40px; height: 40px; object-fit: contain; display: block; }
#fashionZoom { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(8, 12, 20, .72); padding: 16px; }
#fashionZoom.on { display: grid; animation: fadein .2s; }
#fashionZoom > div { background: #f3f5f8; border-radius: 20px; padding: 14px; max-width: min(360px, 100%); text-align: center; color: #10131a; font: 700 16px var(--ui); }
#fashionZoom img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto 8px; }
#fashionZoom small { display: block; font-weight: 500; opacity: .6; margin-top: 4px; }

/* The boutique (ui/fashion-ui.js): your character on the left, the clothes on the right (phones: above / below) */
#boutique { display: none; position: fixed; inset: 0; z-index: 6; font-family: var(--ui); pointer-events: none; }
#boutique.on { display: flex; }
#boutique button { font-family: var(--ui); cursor: pointer; }
#boutique .bqStage { position: relative; flex: 1; pointer-events: none; }
#boutique .bqHead { position: absolute; left: 14px; top: 12px; display: flex; gap: 8px; align-items: center; pointer-events: auto; }
#boutique .bqHead strong { background: #fff; border-radius: 999px; padding: 8px 14px; font: 800 15px var(--ui); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
#boutique .bqHead span { background: rgba(255,255,255,.85); border-radius: 999px; padding: 7px 12px; font: 700 12px var(--ui); color: #444; }
#boutique .bqClose { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.15); pointer-events: auto; }
#boutique .bqDrag { position: absolute; inset: 60px 0 40px 0; pointer-events: auto; cursor: grab; touch-action: none; }
#boutique .bqLook, #boutique .bqTurn { position: absolute; bottom: 12px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 12px; font: 700 12px var(--ui); color: #333; }
#boutique .bqLook { left: 14px; } #boutique .bqTurn { right: 14px; background: rgba(30,30,40,.7); color: #fff; }
#boutique .bqPanel { pointer-events: auto; width: min(52vw, 760px); background: #fff; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 10px; box-shadow: -8px 0 30px rgba(0,0,0,.12); box-sizing: border-box; }
#boutique .bqTop { display: flex; gap: 10px; align-items: center; }
#boutique .bqTabs { flex: 1; display: flex; background: #f1f2f6; border-radius: 999px; padding: 4px; gap: 2px; overflow-x: auto; }
#boutique .bqTabs button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 10px; font: 700 13px var(--ui); color: #555; white-space: nowrap; }
#boutique .bqTabs button.on { background: #1f2330; color: #fff; }
#boutique .bqMoney { background: #eef8f0; color: #1d7a3e; border-radius: 999px; padding: 8px 12px; font: 800 13px var(--ui); white-space: nowrap; }
#boutique .bqOcc { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-bottom: 2px; }
#boutique .bqOcc span { font: 600 12px var(--ui); color: #777; white-space: nowrap; }
#boutique .bqOcc button { border: 1px solid #ececf2; background: #fff; border-radius: 999px; padding: 6px 11px; font: 700 12px var(--ui); white-space: nowrap; color: #333; }
#boutique .bqOcc button.on { background: #e8336d; border-color: #e8336d; color: #fff; }
#boutique .bqOcc button.mine.on { background: #1f2330; border-color: #1f2330; }
#boutique .bqGrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; padding: 2px; }
#boutique .bqCard { position: relative; border: 1px solid #ececf2; border-radius: 16px; background: #fff; padding: 0; text-align: left; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
#boutique .bqCard.on { box-shadow: inset 0 0 0 2px #1d7a3e; } #boutique .bqCard.sel { box-shadow: inset 0 0 0 2.5px #e8336d, 0 4px 14px rgba(232,51,109,.18); }
#boutique .bqTag { position: absolute; right: 8px; top: 8px; z-index: 1; background: #7b3fe4; color: #fff; border-radius: 999px; padding: 3px 8px; font: 800 10px var(--ui); }
#boutique .bqPic { height: 120px; display: grid; place-items: center; }
#boutique .bqPic img { max-width: 80%; max-height: 108px; object-fit: contain; }
#boutique .bqPic i { font-size: 46px; font-style: normal; }
#boutique .bqName { padding: 8px 10px 0; font: 700 13.5px var(--ui); color: #1f2330; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#boutique .bqMeta { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 10px 10px; }
#boutique .bqMeta b { font: 800 12.5px var(--ui); color: #1d7a3e; } #boutique .bqMeta b.own { color: #2f6fd0; }
#boutique .bqMeta i { font: 600 11px var(--ui); color: #888; font-style: normal; }
#boutique .bqEmpty { grid-column: 1 / -1; text-align: center; color: #777; font: 600 13px var(--ui); padding: 30px 0; }
#boutique .bqBar { display: flex; gap: 10px; align-items: center; border-top: 1px solid #f0f0f4; padding-top: 10px; }
#boutique .bqSel { flex: 1; min-width: 0; }
#boutique .bqSel strong { display: block; font: 800 14px var(--ui); } #boutique .bqSel small { display: block; font: 500 11.5px var(--ui); color: #777; }
#boutique .bqDots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
#boutique .bqDots .sw { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; padding: 0; font-size: 11px; }
#boutique .bqDots .sw.on { box-shadow: 0 0 0 2.5px #1f2330; } #boutique .bqDots .sw.orig { background: #f1f2f6; }
#boutique .bqBuy { border: 0; background: #1d7a3e; color: #fff; border-radius: 999px; padding: 11px 16px; font: 800 13px var(--ui); white-space: nowrap; }
#boutique .bqDone { border: 0; background: #1f2330; color: #fff; border-radius: 999px; padding: 11px 16px; font: 800 13px var(--ui); white-space: nowrap; }
#boutique .bqHint { margin: 0; text-align: center; font: 500 11.5px var(--ui); color: #888; }
body.boutique #wardrobe { display: none !important; }
body.boutique { background: linear-gradient(135deg, #f7e6f2, #ece6fb); }
/* phones held upright: your character above, the shop below */
@media (orientation: portrait) {
  #boutique.on { flex-direction: column; }
  #boutique .bqStage { flex: 0 0 38%; }
  #boutique .bqPanel { width: 100%; flex: 1; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.12); padding: 10px 10px 8px; }
  #boutique .bqGrid { grid-template-columns: repeat(2, 1fr); }
  #boutique .bqPic { height: 96px; } #boutique .bqPic img { max-height: 86px; }
  #boutique .bqHead span, #boutique .bqHint { display: none; }
  #boutique .bqTabs button { padding: 7px 8px; font-size: 12px; }
}
body.boutique :is(#topbar, #place, #fsBtn, #newbie, #streetHud, #gunPad, #crosshair, #jailBar, #touchUi, #joy, #runBtn, #jumpBtn, #aerialBtn) { display: none !important; }

/* 🧱 Walls in build mode (ui/housing-ui.js wallToolHtml): what to tap, and why not */
.bp-acts .bp-name:has(.bp-why) { white-space: normal; }
.bp-acts .bp-name .bp-why { display: block; color: #c0392b; font: 700 11.5px var(--ui); margin-top: 2px; }

/* the speaker / radio at home: what it plays (src/ui/music-picker.js) */
#musicSheet { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(8,14,24,.55); align-items: flex-end; justify-content: center; font-family: var(--ui, system-ui); }
#musicSheet.open { display: flex; }
#musicSheet .ms-box { width: min(520px, 100vw); max-height: 78vh; overflow-y: auto; background: #fff; color: #0f1d33; border-radius: 20px 20px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }
#musicSheet .ms-top { display: flex; align-items: center; gap: 10px; } #musicSheet .ms-top strong { flex: 1; font: 800 17px var(--ui, system-ui); }
#musicSheet .ms-top button { border: 0; background: #eef3fb; border-radius: 12px; width: 36px; height: 36px; font: 800 16px var(--ui, system-ui); color: #0f1d33; }
#musicSheet .ms-lead { color: #51606f; font: 600 13px var(--ui, system-ui); margin: 6px 0 10px; } #musicSheet .ms-lead.bad { color: #c0392b; }
#musicSheet .ms-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
#musicSheet .ms-tabs button { flex: 1 0 auto; border: 0; border-radius: 12px; padding: 9px 10px; font: 800 13px var(--ui, system-ui); background: #eef3fb; color: #0f1d33; }
#musicSheet .ms-tabs button.on { background: #0f1d33; color: #fff; }
#musicSheet input { width: 100%; box-sizing: border-box; border: 1px solid #d5deea; border-radius: 12px; padding: 10px 12px; font: 600 15px var(--ui, system-ui); margin-bottom: 8px; }
#musicSheet .ms-song { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #edf1f6; }
#musicSheet .ms-song > div { flex: 1; min-width: 0; } #musicSheet .ms-song b { display: block; font: 800 14px var(--ui, system-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#musicSheet .ms-song span { font: 600 12px var(--ui, system-ui); color: #51606f; }
#musicSheet .ms-song.on b { color: #1f6fe5; }
#musicSheet .ms-play { border: 0; border-radius: 50%; width: 40px; height: 40px; background: #1f6fe5; color: #fff; font: 800 14px var(--ui, system-ui); flex: none; }
#musicSheet .ms-rep { border: 0; background: none; font-size: 16px; padding: 8px; flex: none; }
#musicSheet .ms-wide { width: 100%; border: 0; border-radius: 12px; padding: 12px; margin-top: 8px; font: 800 14px var(--ui, system-ui); background: #eef3fb; color: #0f1d33; }
#musicSheet .ms-wide.go { background: #1f6fe5; color: #fff; }
#musicSheet .ms-cat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; text-align: left; min-height: 52px; } #musicSheet .ms-cat span { flex-basis: 100%; font: 600 12px var(--ui, system-ui); color: #51606f; }
#musicSheet .ms-cat.on { background: #0f1d33; color: #fff; } #musicSheet .ms-cat.on span { color: #c9d6ea; }
