/* Reserve the native top/bottom safe areas instead of letting the room meet the dock. */
@media(min-width:700px) and (max-width:1400px){
 html body.ui2[data-mode][data-place=home]:not(.gm-open) #main{position:fixed!important;inset:calc(80px + var(--sat,0px)) 16px calc(104px + var(--sab,0px))!important;width:auto!important;height:auto!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important}
 html body.ui2[data-place=home]:not(.gm-open) .bedroom-scene{min-height:0!important;max-height:none!important}
 html body.ui2[data-place=home]:not(.gm-open) .room-collection{bottom:12px!important;right:12px!important;height:146px!important;max-height:146px!important;min-height:0!important;padding:35px 10px 9px!important;gap:8px!important}
 html body.ui2[data-place=home] .room-collection:before{content:'Your squishies · Tap to place';top:8px!important;left:14px!important;font-size:16px!important;line-height:20px}
 html body.ui2[data-place=home] .room-collection .tray-toy{height:98px!important;flex:0 0 94px!important;min-width:0!important;padding:4px!important;display:flex;flex-direction:column;justify-content:space-between;align-items:center}
 html body.ui2[data-place=home] .room-collection .tray-toy .toy{width:64px!important;height:64px!important;flex:none}
 html body.ui2[data-place=home] .room-collection .tray-toy>span:last-child{font-size:12px!important;line-height:14px!important;max-height:28px;overflow:hidden;text-align:center}
 html body.ui2[data-place=home] .v2l-hand{display:none!important}
 html body.ui2[data-place=home] .room-tools{gap:8px!important}
 html body.ui2[data-place=home] .page-heading h1{font-size:20px!important}
 html body.ui2[data-place=home] .milestones{display:none!important}
}
@media(min-width:700px) and (max-width:1400px) and (orientation:portrait){
 html body.ui2[data-mode][data-place=home]:not(.gm-open) #main{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:48px 72px minmax(0,1fr) 146px;gap:10px!important}
 html body.ui2[data-place=home] .page-heading,html body.ui2[data-place=home] .room-tools,html body.ui2[data-place=home] .bedroom-scene,html body.ui2[data-place=home] .room-collection{position:relative!important;inset:auto!important;width:100%!important;margin:0!important}
 html body.ui2[data-place=home] .page-heading{grid-row:1}
 html body.ui2[data-place=home] .room-tools{grid-row:2;z-index:20!important;display:flex!important;justify-content:flex-end;padding:0!important}
 html body.ui2[data-place=home] .room-tools .btn{width:110px!important;height:70px!important;min-height:0!important;flex:none!important}
 html body.ui2[data-place=home] .bedroom-scene{grid-row:3;height:100%!important;aspect-ratio:auto!important;border-radius:24px!important}
 html body.ui2[data-place=home] .room-collection{grid-row:4}
 html body.ui2[data-place=home] .room-instruction{display:none!important}
}
@media(min-width:1000px) and (max-width:1400px) and (orientation:landscape){
 html body.ui2[data-place=home] .room-tools{width:calc(100% - 390px)!important;right:18px!important;justify-content:flex-end}
 html body.ui2[data-place=home] .room-tools .btn{max-width:120px!important;max-height:76px!important}
}
@media(min-width:700px) and (max-width:1400px){
 html body.ui2[data-place=home] .room-collection:before{content:'Your squishies · Tap to place'!important}
 html body.ui2[data-place=home] .room-collection .tray-toy{margin:0!important;align-self:flex-start!important}
}
@media(min-width:700px) and (max-width:1400px) and (orientation:portrait){
 html body.ui2[data-place=home]:not(.gm-open) .room-collection{inset:auto!important}
}
/* The bedroom fills the whole screen (like town); top bar, shelf and nav float over it. */
@media(min-width:700px){
 /* the picture covers the whole screen from the top, not just the room box (which ends at the shelf), so it reaches the bottom
    edge; squish-dock.js floorStrip sets its size and draws the part below the room box */
 html body.ui2.ui2[data-mode][data-place=home]:not(.gm-open) #main>.bedroom-scene{background-position:50% 0!important}
 html body.ui2[data-mode][data-place=home]:not(.gm-open) #main::after{content:'';position:absolute;left:-16px;right:-16px;bottom:0;z-index:-1;height:var(--room-bottom,0px);background-color:var(--room-floor,#8a6448);background-image:var(--room-bg,url('./assets/collection-bedroom-neutral.webp'));background-position:var(--room-bg-pos,center bottom);background-size:var(--room-bg-size,100% auto);background-repeat:no-repeat;pointer-events:none}
 html body.ui2[data-mode][data-place=home]:not(.gm-open) #main{position:fixed!important;inset:calc(80px + var(--sat,0px)) 16px 0!important;width:auto!important;height:auto!important;max-height:none!important;max-width:none!important;margin:0!important;overflow:visible!important}
 html body.ui2[data-mode][data-place=home]:not(.gm-open) #main>.bedroom-scene{position:absolute!important;grid-area:auto!important;inset:calc(-80px - var(--sat,0px)) -16px var(--room-bottom,0px)!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
}
