/* Room, one thing at a time: see room-tidy.js */
/* the old "Pick a squishy" line only shows when nothing else is guiding; the drag bubble steps aside for a waiting bag */
html body.ui2[data-place=home]:is(.rt-bag,.rt-guide) .room-instruction{display:none!important}
html body.ui2[data-place=home].rt-bag .sb-room-guide{display:none!important}
.rt-finger{position:fixed;width:58px;height:auto;z-index:60;pointer-events:none;transform-origin:20% 10%}
body:has(dialog[open]) .rt-finger{display:none}
/* night: the window is the switch, the lamp in the picture is the light; only the blanket button stays */
html body.rt-window #rn-controls .rn-moon,html body.rt-lamp #rn-controls .rn-lamp{display:none!important}
html body.ui2[data-place=home] .bedroom-scene .rt-window-spot{position:absolute;z-index:4;padding:0;margin:0;border:0;background:none;border-radius:14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body.ui2[data-place=home] .bedroom-scene .rt-window-spot:focus-visible{outline:3px solid #fff;outline-offset:-3px}
@media(max-width:760px){html body.rt-window #rn-controls{right:max(14px,env(safe-area-inset-right));flex-direction:row!important;gap:8px!important}}
/* the shelf keeps its squishies centred even when one is hidden in a waiting bag (auto margins on the
   first/last tile fail when the last tile is the hidden one): spacers at both ends do the centring instead */
html body #sq-dock .sq-dock-rail::before,html body #sq-dock .sq-dock-rail::after{content:"";flex:0 0 0;width:0;margin:0 auto}
html body #sq-dock .sq-dock-rail::before{margin-right:0}
html body #sq-dock .sq-dock-rail::after{margin-left:0}
html body #sq-dock .sq-dock-rail>:first-child{margin-left:0!important}
html body #sq-dock .sq-dock-rail>:last-child{margin-right:0!important}
/* phones: the bedroom fills the whole screen like on iPad; the top bar, paintbrush and shelf float over it and the
   floor ends behind the shelf plank (squish-dock.js sets --room-bottom) */
@media(max-width:699px){
 html body.ui2[data-mode][data-place=home]:not(.gm-open) #main::after{content:'';position:absolute;left:0;right:0;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.ui2[data-mode][data-place=home]:not(.gm-open) #main{position:fixed!important;inset:calc(72px + var(--sat,0px)) 0 0!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;flex:none!important}
 html body.ui2.ui2[data-mode][data-place=home]:not(.gm-open) #main>.bedroom-scene{position:absolute!important;grid-area:auto!important;inset:calc(-72px - var(--sat,0px)) 0 var(--room-bottom,0px)!important;width:auto!important;height:auto!important;min-height:0!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}
 /* every room look has its own tall phone picture (window, lamp and bed all in view) */
 html body.ui2.ui2[data-mode][data-place=home]:not(.gm-open) #main>.bedroom-scene{background-size:cover!important;background-position:50% 50%!important}
 html body.ui2.ui2.ui2[data-mode][data-place=home][data-room-theme=candy]:not(.gm-open) #main>.bedroom-scene{background-image:url('./assets/room-phone/candy.webp')!important}
 html body.ui2.ui2.ui2[data-mode][data-place=home][data-room-theme=cloud]:not(.gm-open) #main>.bedroom-scene{background-image:url('./assets/room-phone/cloud.webp')!important}
 html body.ui2.ui2.ui2[data-mode][data-place=home][data-room-theme=ocean]:not(.gm-open) #main>.bedroom-scene{background-image:url('./assets/room-phone/ocean.webp')!important}
 html body.ui2.ui2.ui2[data-mode][data-place=home]:not(.gm-open):is(:not([data-room-theme]),[data-room-theme=classic]) #main>.bedroom-scene{background-image:url('./assets/room-phone/day.webp')!important;background-size:cover!important;background-position:50% 50%!important}
 html body.ui2.ui2.ui2.rn-night[data-mode][data-place=home]:not(.gm-open):is(:not([data-room-theme]),[data-room-theme=classic]) #main>.bedroom-scene{background-image:url('./assets/room-phone/night.webp')!important}
 html body.ui2.ui2.ui2.rn-dark[data-mode][data-place=home]:not(.gm-open):is(:not([data-room-theme]),[data-room-theme=classic]) #main>.bedroom-scene{background-image:radial-gradient(circle at var(--rn-lx,80%) var(--rn-ly,40%),#0b1030f2 0 7%,transparent 22%),linear-gradient(#141a46a6,#141a46a6),url('./assets/room-phone/night.webp')!important}
 /* the paintbrush (in the heading row) floats over the wall */
 html body.ui2.ui2[data-mode][data-place=home]:not(.gm-open) #main>.page-heading{position:relative!important;z-index:6!important}
}
/* the room no longer wears the framed card's white inner rim on any screen (Mac, 2026-10-18) */
html body.ui2[data-mode][data-place=home]:not(.gm-open) #main>.bedroom-scene::after{box-shadow:none!important}
