/* Night backgrounds (Mac, 2026-10-18): at night time (body.night-time, 7 pm to 6 am, night-clock.js) or with night mode on
   (body.calm-mode), the Games room, the bedrooms and the trading clubhouse show their night pictures. */
/* Games room */
html body.ui2.ui2.ui2.ui2:is(.calm-mode,.night-time).gm-open[data-mode][data-place]{background-image:url('./assets/play-background/mobile-night.webp?v=2')!important;background-color:#3b3f78!important}
@media(min-aspect-ratio:1/1){html body.ui2.ui2.ui2.ui2:is(.calm-mode,.night-time).gm-open[data-mode][data-place]{background-image:url('./assets/play-background/desktop-night.webp')!important}}
/* the classic bedroom by the clock (night mode keeps its own lamp and lights-out pictures, room-night.css / room-tidy.css) */
html body.night-time:not(.rn-night)[data-mode=hunt]:is(:not([data-room-theme]),[data-room-theme=classic]) .bedroom-scene{background-image:url('./assets/room-night/bedroom-night.webp')!important}
/* themed bedrooms: wide pictures, and the tall phone pictures */
html body:is(.calm-mode,.night-time)[data-mode=hunt][data-room-theme=candy] .bedroom-scene{background-image:url('./assets/room-world/candy-night.webp')!important}
html body:is(.calm-mode,.night-time)[data-mode=hunt][data-room-theme=cloud] .bedroom-scene{background-image:url('./assets/room-world/cloud-night.webp')!important}
html body:is(.calm-mode,.night-time)[data-mode=hunt][data-room-theme=ocean] .bedroom-scene{background-image:url('./assets/room-world/ocean-night.webp')!important}
@media(max-width:699px){
 html body.ui2.ui2.ui2.night-time:not(.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:is(.calm-mode,.night-time)[data-mode][data-place=home][data-room-theme=candy]:not(.gm-open) #main>.bedroom-scene{background-image:url('./assets/room-phone/candy-night.webp')!important}
 html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=home][data-room-theme=cloud]:not(.gm-open) #main>.bedroom-scene{background-image:url('./assets/room-phone/cloud-night.webp')!important}
 html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=home][data-room-theme=ocean]:not(.gm-open) #main>.bedroom-scene{background-image:url('./assets/room-phone/ocean-night.webp')!important}
}
/* trading clubhouse: the page behind, the scene, and the scene's art layer */
html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=trade]{background-image:url('./assets/trade-clubhouse/clubhouse-night-ipad.webp')!important;background-color:#2c2447!important}
html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=trade] #main .clubhouse{background-image:url('./assets/trade-clubhouse/clubhouse-night-ipad.webp')!important}
html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=trade] #main .clubhouse::before{background-image:url('./assets/trade-clubhouse/clubhouse-night-ipad.webp')!important}
@media(max-aspect-ratio:1/1){
 html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=trade]{background-image:url('./assets/trade-clubhouse/clubhouse-night-iphone.webp')!important}
 html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=trade] #main .clubhouse{background-image:url('./assets/trade-clubhouse/clubhouse-night-iphone.webp')!important}
 html body.ui2.ui2.ui2:is(.calm-mode,.night-time)[data-mode][data-place=trade] #main .clubhouse::before{background-image:url('./assets/trade-clubhouse/clubhouse-night-iphone.webp')!important}
}
