.kompis-home[open]{position:fixed;inset:0;display:block;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;padding:0;border:0;border-radius:0;overflow:hidden;background:#dfcaa6;color:#334540;z-index:9000}
.home-art,.home-hotspots{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}
.home-hotspots{pointer-events:none}
.home-hit,.bohag-prop{box-sizing:border-box;border:0!important;border-radius:2px;background:transparent!important;box-shadow:none!important;color:inherit;padding:0;min-width:0;min-height:0;cursor:pointer}
.kompis-home .home-hit{position:absolute;transform:translate(-50%,-100%);pointer-events:auto}
.home-hit:focus-visible,.bohag-prop:focus-visible{outline:2px dashed #ffe3a6;outline-offset:2px}
.home-bar{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));display:flex;align-items:center;gap:5px;flex-wrap:wrap;max-width:calc(100vw - 24px);padding:5px 7px;background:#fff3d9ed;border:1px solid #806c54;border-radius:5px;box-shadow:0 2px 0 #806c5460}
.home-bar strong{padding:0 5px;font-family:Georgia,serif}
.home-bar button,.house-card button{cursor:pointer;border:1px solid #7d8270;border-radius:4px;background:#fbf1d7;color:#31453d;font:inherit;padding:6px 9px}
.house-card button:disabled{cursor:default;opacity:.55}
.errand-card form{display:flex;gap:5px}.errand-card input{min-width:0;flex:1;padding:7px;color:#30443a;background:#fffaea;border:1px solid #8b8977;border-radius:4px}
.errand-pet,.errand-line{position:absolute;image-rendering:pixelated}.errand-pet{width:102px;height:92px;transform-origin:50% 100%;background-color:transparent;border:0;cursor:pointer;z-index:676}
.errand-line{transform:translate(-50%,-100%);width:max-content;max-width:235px;border:1px solid #665f4a;padding:6px 9px;background:#fff5dc;color:#354338;border-radius:8px;z-index:840;pointer-events:none}
.errand-report{position:fixed;bottom:16px;left:16px;z-index:1100}.errand-pet[hidden],.errand-line[hidden],.errand-report[hidden]{display:none}
.errand-portrait{display:inline-block;vertical-align:middle;width:30px;height:27px;background-size:240px 189px;background-repeat:no-repeat}.errand-portrait[hidden]{display:none}
.town-stage-door[open]{position:fixed;inset:0;padding:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;background:#231e23;overflow:hidden}
.town-stage-door iframe{display:block;width:100%;height:100%;border:0}.town-theatre-entry{position:absolute;transform:translate(-50%,-100%);background:transparent!important;border:0!important;cursor:pointer;z-index:667}
.house-card[open]{box-sizing:border-box;position:fixed;inset:0;margin:auto;max-height:min(78dvh,580px);height:max-content;width:min(360px,calc(100vw - 30px));max-width:none;padding:17px 19px 13px;border:2px solid #596a59;border-radius:8px;background:#fff2d4;color:#32463e;box-shadow:4px 5px 0 #413a2c45;z-index:9100;font:15px/1.4 system-ui,sans-serif}
.house-card::backdrop{background:#29373344}
.house-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.house-card h2{margin:0;font:600 22px/1.2 Georgia,serif}.house-card h3{margin:8px 0 0;font-size:14px}
.house-card .house-x{font-size:20px;line-height:1;min-width:30px;padding:2px 5px}
.house-card-body{display:grid;gap:7px;margin-top:9px}
.house-card-body p,.house-status{margin:0}.house-status:not(:empty){margin-top:10px;color:#555e48}
.house-card-body>canvas,.house-item canvas,.bohag-prop canvas{image-rendering:pixelated}
.house-card-body>canvas{display:block;justify-self:center;width:75px;height:55px}
.house-card .house-item{display:flex;align-items:center;gap:8px;text-align:left}
.house-item canvas{width:36px;height:26px}.house-coins{font-variant-numeric:tabular-nums}
.bohag-prop canvas{display:block;width:100%;height:100%;pointer-events:none}
.bohag-inside,.bohag-world{position:absolute;transform:translate(-50%,-100%);pointer-events:auto}
.bohag-inside{width:5%;height:auto;line-height:0;z-index:8}.bohag-inside canvas{height:auto}
.bohag-shop{width:40px;height:30px;align-self:center}
.home-meters{display:grid;gap:9px;padding:10px 0;color:#35493f;font:600 14px/1.2 system-ui,sans-serif}
.home-meters[hidden],.home-speech[hidden]{display:none}
.home-meters label{display:grid;grid-template-columns:5ch minmax(48px,1fr) 3ch;align-items:center;gap:8px}
.home-meters span{text-align:right;font-variant-numeric:tabular-nums}
.home-meters [hidden]{display:none}
.home-meters meter{width:100%;height:9px;appearance:none;border:1px solid #89775e;border-radius:3px;background:#e6d6b5;overflow:hidden}
.home-meters meter::-webkit-meter-bar{background:#e6d6b5;border:0;border-radius:0;height:100%}
.home-meters meter::-webkit-meter-optimum-value{background:#bd8154}.home-meters label+label meter::-webkit-meter-optimum-value{background:#708d79}
.home-meters meter::-moz-meter-bar{background:#bd8154}.home-meters label+label meter::-moz-meter-bar{background:#708d79}
.home-speech{position:absolute;z-index:2;width:max-content;max-width:min(30ch,calc(100% - 18px));box-sizing:border-box;padding:8px 11px;background:#fff5dd;border:1px solid #615f4e;border-radius:6px;box-shadow:2px 2px 0 #51483b38;color:#34463c;font:14px/1.4 system-ui,sans-serif;pointer-events:none}
.home-speech::after{content:"";position:absolute;bottom:-5px;left:48%;width:7px;height:7px;transform:rotate(45deg);background:#fff5dd;border-right:1px solid #615f4e;border-bottom:1px solid #615f4e}
.home-hit.home-pet{cursor:grab;touch-action:none}.home-hit.home-hand{z-index:2;min-height:23px;min-width:23px}
