/* Match the Blender render's framing; keep the room beside the profile compact. */
/* The render has ~9% empty space above the room; the negative top margin
   (a share of the column width) pulls the room up to sit under the heading. */
.room-stage.rendered-room { height: auto; width: 122%; max-width: 950px; margin-left: -11%; margin-top: -9.5%; overflow: visible; }
/* Phones: the render's transparent sides run off-screen so the room fills the width. */
@media (max-width: 760px) { .room-stage.rendered-room { width: 114vw; max-width: none; margin-left: calc(-7vw - (100vw - 100%) / 2); margin-bottom: -11%; } }
/* With JavaScript on, the HTML room never shows while the render loads: keep
   the render's space and hide the placeholder. render.js adds room-fallback
   if the images cannot load, which brings the HTML room back. */
@media (scripting: enabled) {
  .room-stage:not(.rendered-room):not(.room-fallback) { height: auto; aspect-ratio: 6 / 5; width: 122%; max-width: 950px; margin-left: -11%; margin-top: -9.5%; }
  .room-stage:not(.rendered-room):not(.room-fallback) > * { visibility: hidden; }
}
@media (scripting: enabled) and (max-width: 760px) {
  .room-stage:not(.rendered-room):not(.room-fallback) { width: 114vw; max-width: none; margin-left: calc(-7vw - (100vw - 100%) / 2); margin-bottom: -11%; }
}
.rendered-room > .world, .rendered-room > .room-shadow { display: none; }
.room-render { position: relative; width: 100%; aspect-ratio: 6 / 5; }
.room-window-glass { position: absolute; pointer-events: none; }
/* The room is indoors: lift it above the page's weather layer (z-index 20) so
   rain and snow pass behind it. The workspace holds only the room, and its
   container query and isolation would otherwise cap any z-index inside it. */
.workspace { position: relative; z-index: 21; }
.room-render-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transition: opacity .25s; pointer-events: none; }
.room-render-night { opacity: 0; }
[data-night="true"] .room-render-day { opacity: 0; }
[data-night="true"] .room-render-night { opacity: 1; }
/* Lighting is already rendered; avoid tinting the image a second time. */
[data-weather] .room-stage.rendered-room::after { content: none; }
.room-render .room-hotspot { display: block; min-width: 28px; min-height: 28px; cursor: pointer; }
.room-render .room-hotspot span { white-space: nowrap; }
.room-render [data-night-switch] { min-width: 32px; min-height: 32px; }
@media (prefers-reduced-motion: reduce) { .room-render-image { transition: none; } }

/* The larger render's empty sides may extend past the viewport; never scroll sideways. */
html, body { overflow-x: clip; }
