/* v8.94: one layout for the room, independent of earned item count. */
#collectionScreen .house-top-sign{display:none!important}
#collectionScreen .house-scene{min-height:0!important;height:100%!important}
#collectionScreen .living-house{
 inset:76px max(14px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);
 grid-template-rows:minmax(0,1fr) minmax(0,1fr) 48px;gap:16px;
 max-width:1000px;margin:0 auto;overflow:visible;
}
#collectionScreen #houseRoomItems{display:none!important}
#collectionScreen .house-object,#collectionScreen .house-grand-chest{
 position:relative!important;inset:auto!important;transform:none!important;
 width:100%!important;height:100%!important;min-width:0;min-height:0;align-self:end;
 display:flex;flex-direction:column;align-items:center;justify-content:end;
 border:0;background:transparent;padding:0 4px 4px;cursor:pointer;
}
#collectionScreen .house-object img,#collectionScreen .house-grand-chest img{
 display:block;min-height:0;width:100%;height:calc(100% - 36px);object-fit:contain;
}
#collectionScreen .house-wardrobe-object{grid-area:1/1/2/2;padding-bottom:4px}
#collectionScreen .house-shelf-object{grid-area:2/3/3/4}
#collectionScreen .house-achievements-object{grid-area:1/3/2/4}
#collectionScreen .house-grand-chest{grid-area:2/1/3/2;max-height:110px;max-width:130px;justify-self:center;z-index:9}
#collectionScreen .furniture-label{
 flex:none;display:block;padding:6px 10px;border:2px solid #744927;border-radius:12px;
 background:#fff1ca;color:#4b2c19;font-size:12px;font-weight:800;line-height:1.2;box-shadow:0 3px 0 #684126;
}
#collectionScreen .house-object:hover,#collectionScreen .house-grand-chest:hover{filter:brightness(1.08);transform:none!important}
#collectionScreen .house-rug-art{display:none!important}
#collectionScreen .house-beaver-zone{
 grid-area:1/2/3/3;position:relative!important;inset:auto!important;transform:none!important;
 width:100%!important;height:100%!important;min-height:0;display:flex!important;
 flex-direction:column!important;justify-content:center;gap:12px;pointer-events:none;
}
#collectionScreen .house-dialog{
 position:relative!important;inset:auto!important;transform:none!important;
 width:100%!important;max-width:330px;min-height:56px!important;flex:none;
 font-size:13px!important;line-height:1.35;padding:10px 12px!important;
}
#collectionScreen .house-dialog:before,#collectionScreen .house-dialog:after{display:none!important}
#collectionScreen .house-beaver-stage{
 position:relative!important;inset:auto!important;transform:none!important;
 width:min(100%,310px)!important;height:auto!important;aspect-ratio:1;flex:0 1 auto;min-height:0;
 max-height:65%;pointer-events:auto;
}
#collectionScreen #houseBeaver{display:block;width:100%!important;height:auto!important;aspect-ratio:1;max-height:100%;object-fit:contain!important;animation:none!important;transform:none!important}
#collectionScreen .house-rug-shadow{display:none!important}
#collectionScreen .house-talk-btn{
 position:relative!important;inset:auto!important;transform:none!important;flex:none;
 min-height:42px;padding:8px 14px;font-size:12px;
}
#collectionScreen .living-go-btn{
 grid-area:3/1/4/4;justify-self:center;position:relative!important;inset:auto!important;
 transform:none!important;width:auto!important;min-width:0!important;max-width:100%;
 min-height:44px;padding:8px 18px!important;
}
#collectionScreen .house-drawer{
 position:absolute!important;inset:0!important;margin:auto;width:min(520px,100%)!important;
 height:100%;box-sizing:border-box;z-index:40;padding:16px;border-radius:22px;
 overflow:auto;overscroll-behavior:contain;box-shadow:0 0 0 100vmax #21150dcc;
}
#collectionScreen .house-drawer.hidden{display:none!important}
#collectionScreen .house-drawer-head{position:sticky;top:-16px;z-index:2;background:#ffedbd;padding:10px 0}
#collectionScreen #houseDrawerClose{flex:none;min-width:44px;min-height:44px}
#collectionScreen .house-panel.active{position:static!important;width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
#collectionScreen .toy-shelf,#collectionScreen .costume-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;max-height:none!important;overflow:visible!important;padding:4px!important}
#collectionScreen .toy-card,#collectionScreen .costume-card{min-width:0!important;height:auto!important;min-height:130px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
#collectionScreen .toy-card img,#collectionScreen .costume-card img{width:100%!important;height:78px!important;object-fit:contain;flex:none}
#collectionScreen .toy-card b,#collectionScreen .costume-card b{font-size:12px!important;overflow-wrap:anywhere}
#collectionScreen .toy-card small{font-size:10px!important}
#collectionScreen button:focus-visible{outline:3px solid #fff;outline-offset:4px}
/* Both actors share a square coordinate system and the same decoded sheets. */
#homeScreen .hero-beaver.classic-sprite-idle,#collectionScreen #houseBeaver.classic-sprite-idle{
 background-image:url('../assets/animations/beaver-idle/beaver-blink-overlay.webp'),url('../assets/animations/beaver-idle/beaver-breath-only.webp')!important;
 background-size:300% 100%,300% 300%!important;background-repeat:no-repeat!important;
 animation:none!important;transition:none!important;aspect-ratio:1;
}
@media(max-width:600px){
 #collectionScreen .living-house{inset:64px 8px 12px;gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr) 48px}
 #collectionScreen .house-dialog{font-size:11px!important;padding:8px!important}
 #collectionScreen .furniture-label{font-size:10px;padding:6px 4px;text-align:center;max-width:100%;box-sizing:border-box}
 #collectionScreen .house-grand-chest{max-height:90px}
 #collectionScreen .house-talk-btn{font-size:11px;padding:6px 8px}
 #collectionScreen .house-drawer{padding:12px}
 #collectionScreen .toy-shelf,#collectionScreen .costume-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-height:500px) and (orientation:landscape){
 #collectionScreen .living-house{inset:58px 12px 8px;gap:6px;grid-template-columns:1fr 1.5fr 1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr) 40px}
 #collectionScreen .house-beaver-zone{gap:4px}
 #collectionScreen .house-beaver-stage{width:min(100%,140px)!important;max-height:55%}
 #collectionScreen .house-dialog{font-size:10px!important;min-height:32px!important;padding:4px 8px!important}
 #collectionScreen .house-talk-btn{min-height:32px;font-size:10px;padding:4px 8px}
 #collectionScreen .furniture-label{font-size:10px;padding:3px 6px}
 #collectionScreen .house-grand-chest{max-height:65px;max-width:95px}
 #collectionScreen .house-wardrobe-object{padding-bottom:4px}
 #collectionScreen .living-go-btn{min-height:36px;padding:4px 12px!important}
 #collectionScreen .house-object img,#collectionScreen .house-grand-chest img{height:calc(100% - 25px)}
}
