/* Rainbow Shelf: squishies stand on the shelf's three boards like real toys.
   Board tops (where a toy rests) measured from the art: 71.5% / 54.5% / 38.5% of the shelf's height;
   the inside runs from about 34% to 71% of its width, so two squishies fit per board.
   Fill order is bottom board first, left then right; an odd one out sits centred.
   The shelf is drawn a little bigger so toys that fit between the boards are still easy to see. */
html body.ui2[data-place=home] .room-display.theme-rainbow{width:clamp(320px,29vw,470px);height:clamp(259px,23.4vw,380px);container-type:size}
@media(max-width:760px){html body.ui2[data-place=home] .room-display.theme-rainbow{width:clamp(185px,52vw,250px)!important;height:clamp(150px,42vw,202px)!important}}

html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys{position:absolute!important;inset:0!important;display:block!important;max-height:none!important;margin:0!important;padding:0!important;z-index:1}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>*{--s:min(17cqw,15.5cqh);position:absolute!important;left:52.5%;top:71.5%;width:var(--s)!important;height:var(--s)!important;margin:calc(var(--s)*-0.96) 0 0 calc(var(--s)*-0.5)!important;transform:none!important;flex:none!important;transform-origin:50% 100%;filter:drop-shadow(0 1.5px 1px #5a3b2a59) drop-shadow(0 4px 4px #5a3b2a24)}

/* board slots: 1-2 bottom, 3-4 middle, 5-6 top */
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(1){left:43%;top:71.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(2){left:62%;top:71.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(3){left:43%;top:54.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(4){left:62%;top:54.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(5){left:43.5%;top:38.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(6){left:61.5%;top:38.5%}
/* an odd one out sits in the middle of its board */
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(1):last-child,
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(3):last-child,
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(5):last-child{left:52.5%}
/* seven (six toys + Mochi): the top board takes three, a touch smaller */
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(5):nth-last-child(3){left:40%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(6):nth-last-child(2){left:52.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(7){left:65%;top:38.5%}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys:has(>:nth-child(7))>:nth-child(n+5){--s:min(13cqw,14cqh)}
html body.ui2[data-place] .bedroom-scene .room-display.theme-rainbow[data-display] .display-toys>:nth-child(n+8){display:none!important}

/* Other displays (cushion, bakery basket, steamer, toy chest, fridge): display-layout.js places each squishy on
   the display's measured rows; these rules turn those spots into a resting position with a soft contact shadow. */
html body.ui2[data-place] .bedroom-scene .room-display[data-dl]{container-type:size}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl][data-display] .display-toys{position:absolute!important;inset:0!important;display:block!important;max-height:none!important;margin:0!important;padding:0!important;z-index:1}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl][data-display] .display-toys>*{--w:calc(var(--s,40px)*var(--dl-sc,1));position:absolute!important;left:var(--dl-x,50%);top:var(--dl-y,60%);width:var(--w)!important;height:var(--w)!important;margin:calc(var(--w)*-0.96) 0 0 calc(var(--w)*-0.5)!important;transform:none!important;flex:none!important;transform-origin:50% 100%;filter:drop-shadow(0 1.5px 1px #5a3b2a59) drop-shadow(0 4px 4px #5a3b2a24)}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl][data-display] .display-toys>.dl-hidden{display:none!important}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=cushion] .display-toys>*{--s:min(24cqw,32cqh)}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=bread] .display-toys>*{--s:min(22cqw,29cqh)}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=steamer] .display-toys>*{--s:min(17cqw,23cqh)}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=chest] .display-toys>*{--s:min(19cqw,26cqh)}
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=fridge] .display-toys>*{--s:min(25cqw,22cqh)}
/* in the toy chest, squishies sink in behind the box's front edge */
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=chest][data-display] .display-toys{clip-path:inset(-80% -10% 52% -10%)}

/* Seat the painted toy, rather than its transparent image box, on fridge shelves. */
html body.ui2[data-place] .bedroom-scene .room-display[data-dl=fridge][data-display] .display-toys>*{margin:calc(var(--w)*-1 + var(--fridge-foot,0px)) 0 0 calc(var(--w)*-.5 + var(--fridge-center,0px))!important;filter:drop-shadow(0 2px 1px #354e3540)}
