/* 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:first-child { 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; }

/* 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: 20; background: rgba(8,14,26,.92); font-family: var(--ui); color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#poolGame.open { display: flex; }
#poolGame .pg-top { display: flex; align-items: center; gap: 14px; width: min(980px, calc(100vw - 24px)); }
#poolGame .pg-p { flex: 1; display: flex; flex-direction: column; } #poolGame .pg-p:nth-child(3) { text-align: right; }
#poolGame .pg-p b { font: 800 16px var(--ui); opacity: .6; } #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; text-align: center; font: 800 14px var(--ui); }
#poolGame #pgQuit { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; cursor: pointer; }
#poolGame canvas { touch-action: none; cursor: crosshair; }
#poolGame .pg-help { font: 600 12px var(--ui); opacity: .6; }
#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: 21; 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; }
.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; }
