#home-hud{position:fixed;inset:0;pointer-events:none;color:#263747;z-index:35}#home-hud>strong{position:absolute;top:calc(14px + env(safe-area-inset-top));left:16px;font-size:13px;letter-spacing:.08em}#home-note{position:absolute;top:44px;left:16px;max-width:60%;font-size:11px}#home-camera-controls{position:absolute;top:12px;right:12px;display:flex;gap:6px}#home-hud button{pointer-events:auto;min-height:40px;padding:8px 12px;background:#173544;color:#f3dfb2;border:1px solid #b59964;border-radius:12px;font-size:12px}#home-camera-controls button{width:40px;padding:10px}#home-camera-controls svg{width:18px;height:18px}#home-exit{position:absolute;right:16px;bottom:calc(145px + env(safe-area-inset-bottom))}#home-interact{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(135px + env(safe-area-inset-bottom))}#home-enter{position:absolute;left:50%;transform:translateX(-50%);bottom:135px;min-height:42px;padding:9px 15px;font-size:12px;border-radius:12px;background:#173544;color:#f3dfb2;border:1px solid #b59964;pointer-events:auto}#home-rest{max-width:330px;width:calc(100vw - 30px);box-sizing:border-box;border:1px solid #b59964;border-radius:16px;padding:22px;background:#fff6e5;color:#263747}#home-rest h2{font-size:18px}#home-rest p{font-size:12px}#home-rest button{min-height:44px;margin:5px;padding:8px;border-radius:9px;border:0;background:#173544;color:#fff6e5}#home-hud[data-resting=true]::after{content:'';position:absolute;inset:0;background:#181b24;animation:home-wake 1.2s forwards;pointer-events:none}@keyframes home-wake{from{opacity:1}to{opacity:0}}@media(max-height:500px){#home-interact{bottom:14px}#home-exit{bottom:80px}#home-note{top:36px;font-size:10px}}#home-hud[hidden],#home-hud [hidden],#home-enter[hidden]{display:none!important}
/* Furniture and storage: native modal, scrollable on short landscape screens. */
#home-housing{box-sizing:border-box;width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 24px);max-height:calc(100svh - 24px);padding:20px;border:1px solid #b59964;border-radius:18px;background:#fff7e8;color:#263747;overflow:auto;overscroll-behavior:contain}#home-housing::backdrop{background:#101f2bc9}.housing-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.housing-heading h2{margin:5px 0 12px;font-size:22px}.housing-heading small{font-size:10px;letter-spacing:.15em;color:#74654b}#home-housing button{min-height:44px;padding:8px 12px;border:1px solid #b5996466;border-radius:10px;font:inherit;font-size:12px;background:#eee4d2;color:#263747;touch-action:manipulation}#home-housing button:disabled{opacity:.48}#home-housing button:focus-visible{outline:3px solid #b88b34;outline-offset:2px}#home-housing button[aria-pressed=true],#housing-buy,#housing-place{background:#173544;color:#fff2d9}.housing-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-bottom:1px solid #d8cbb3;padding-bottom:12px;margin-bottom:12px}#housing-coins{margin-left:auto;font-size:12px;font-weight:bold}.housing-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:18px}.housing-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}#home-housing .housing-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:94px;text-align:left}.housing-card svg{width:24px;height:24px}.housing-card strong{font-size:12px}.housing-card small{font-size:10px}.housing-arrange h3{margin:2px 0 6px;font-size:16px}.housing-note{font-size:11px;line-height:1.6;color:#726851;margin:6px 0 10px}.housing-floorplan{position:relative;aspect-ratio:1.2;background:repeating-linear-gradient(90deg,#dbcbb0 0,#dbcbb0 23px,#d1bea0 24px);border:6px solid #baa789;border-radius:4px;margin:14px 0 16px;font-size:10px}.housing-floorplan>span{position:absolute;background:#173544;color:#fff6e5;box-sizing:border-box;padding:5px;text-align:center;border-radius:3px}.housing-bed{left:7%;top:6%;width:23%;height:30%}.housing-sofa{left:3%;top:50%;width:15%;height:24%}.housing-closet{right:2%;top:10%;width:10%;height:30%}.housing-desk{right:11%;bottom:23%;width:22%;height:11%}.housing-door{left:42%;bottom:-12px;width:16%}#home-housing .housing-zone{position:absolute;transform:translate(-50%,-50%);min-height:36px;max-width:82px;padding:5px 7px;font-size:10px;background:#fff9ed;box-shadow:0 2px 5px #30291933;border:1px solid #977b42}#home-housing .housing-zone[aria-pressed=true]{background:#173544;color:#fff}.housing-actions{display:flex;gap:6px;flex-wrap:wrap}#housing-status{font-size:12px;line-height:1.6;min-height:1.6em;margin-bottom:0}.housing-storage-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.housing-storage-list article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid #d8cbb3;border-radius:10px}.housing-storage-list strong{font-size:12px}.housing-storage-list small{display:block;font-size:10px;margin-top:5px;color:#74654b}.housing-storage-list>p{font-size:13px;line-height:1.8;grid-column:1/-1}@media(max-width:540px){#home-housing{padding:14px}.housing-layout{grid-template-columns:1fr;gap:12px}.housing-cards{grid-template-columns:repeat(3,1fr);gap:5px}#home-housing .housing-card{padding:7px;min-height:80px}.housing-card strong{font-size:10px}.housing-card svg{width:19px;height:19px}.housing-arrange{max-width:330px;width:100%;margin:auto}.housing-floorplan{margin-top:9px}.housing-storage-list{grid-template-columns:1fr}.housing-heading h2{font-size:19px}}@media(max-height:500px) and (min-width:541px){#home-housing{padding:12px}.housing-heading h2{font-size:17px;margin-bottom:5px}.housing-tabs{padding-bottom:6px;margin-bottom:8px}.housing-layout{grid-template-columns:1fr 1fr}.housing-floorplan{max-width:235px;margin:8px auto 15px}.housing-card svg{width:18px;height:18px}#home-housing .housing-card{min-height:73px;gap:3px}}
