.home-haven{overflow:hidden;border:2px solid #a88547;border-radius:22px;background:#173b32;color:#fff2d2;box-shadow:0 8px 24px #16251b15}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px}.home-heading h1{font-size:clamp(24px,3vw,34px);margin:4px 0}.home-heading .eyebrow{margin:0 0 6px;color:#e8c078;font-size:12px}.home-actions{display:flex;flex-wrap:wrap;gap:8px}.home-actions button{background:#204d40;color:#fff0c6;border-color:#a88f59;font-size:14px;padding:9px 12px}.home-room{position:relative;isolation:isolate;width:100%;aspect-ratio:3/1.35;max-height:420px;overflow:hidden;background:#3e2919}.home-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 70%;pointer-events:none}.home-piece{position:absolute;transform:translate(-50%,-100%);padding:0;border:0;background:none;min-height:0;box-shadow:none;line-height:0}.home-piece:is(:hover,:active,:focus-visible){transform:translate(-50%,-100%);box-shadow:none}.home-piece:disabled{opacity:1;cursor:default;pointer-events:none}.home-piece:disabled{transform:translate(-50%,-100%)!important}.home-piece canvas{display:block;width:100%;height:auto;pointer-events:none}.home-piece.selected{outline:2px dashed #ffdd82;outline-offset:4px}.home-room.editing .home-piece{touch-action:none;cursor:grab}.home-room.editing .home-resident{opacity:.4;pointer-events:none}.home-resident{position:absolute;top:91%;left:53%;height:66%;width:24%;transform:translate(-50%,-100%);background:none!important;border:0!important;padding:0;box-shadow:none!important;z-index:90;min-height:0}.home-resident:is(:hover,:active,:focus-visible){transform:translate(-50%,-100%)}.home-resident canvas{width:100%;height:100%;object-fit:contain}.home-resident>span{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;background:#14392edb;border:1px solid #b79852;color:#fff3d5;padding:2px 8px;border-radius:10px}.home-resident.visitor{left:76%;height:57%;top:85%;z-index:84}.home-create{position:absolute;bottom:16%;left:35%;z-index:95}.home-continue{padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.home-continue>span{font-size:12px;color:#d0d8c6;max-width:230px}.home-editor{padding:22px;color:#fff1d3}.home-inventory{display:flex;flex-wrap:wrap;gap:8px}.home-editor button{font-size:14px}.home-inventory button[aria-pressed=true]{background:#f2cb7b;outline:2px solid #fff1ba}.home-editor label{max-width:350px;font-size:16px}.home-editor input{min-height:32px;padding:0;accent-color:#edbd60}.home-shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.home-shop-grid article{background:#e8dfc7;border:1px solid #b39a66;border-radius:16px;padding:16px;text-align:center}.home-shop-grid canvas{width:100%;height:140px;object-fit:contain}.home-shop-grid h3{font-size:18px}.home-shop-grid button{font-size:14px;width:100%}.home-shop-grid p{font-size:14px}.home-shop-grid+ .fine{font-size:13px}
@media(max-width:700px){.home-heading{display:block;padding:16px}.home-actions{margin-top:12px}.home-actions button{flex:1;padding:8px}.home-room{aspect-ratio:1.1;max-height:400px}.home-backdrop{object-fit:cover}.home-resident{width:38%;height:55%;left:48%}.home-resident.visitor{width:30%;height:45%;left:78%}.home-continue{display:block;padding:16px}.home-continue button{width:100%}.home-continue>span{display:block;margin-top:12px}.home-editor{padding:16px}.home-create{left:12%;right:12%}.home-shop-grid article{padding:12px}.home-inventory button{flex:1;min-width:110px}}
.home-room{container-type:size;--home-doll-height:min(53cqh,31cqw)}@media(max-width:700px){.home-room{--home-doll-height:min(43cqh,46cqw)}}

/* Saving makes furniture non-interactive, not a differently positioned button.
   Keep its bottom-centre anchor through generic disabled/pressed button rules. */
.home-room>.home-piece,.home-room>.home-piece:is(:disabled,:hover,:active,:focus-visible){transform:translate(-50%,-100%)!important;transition:none}

.home-message-choice{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #b29a63;border-radius:10px;margin:8px 0}.home-message-choice input{width:22px;min-height:22px;flex-shrink:0}.home-note-row{display:block;width:100%;text-align:left;margin:8px 0}.home-note-row small{display:block}.home-floor-letter{position:absolute;left:15%;bottom:7%;z-index:100;background:#fff1c8;color:#233f3a;border:2px solid #d7ad5f;padding:7px 12px;box-shadow:0 0 18px #ffe8a080}.home-floor-letter span{font-size:32px}.home-floor-letter small{display:block;font-size:13px}.home-letter{padding:28px 12px;text-align:center}.home-letter h2{font-size:clamp(22px,4vw,34px);line-height:1.4}.home-letter p{font-size:18px}@media(max-width:700px){.home-actions button{flex:1 1 40%}}
