/* Bedroom A: reference-derived dual layers, anchored at the top. */
.bed figure {
  position: relative;
  overflow: clip;
  transform-origin: center top;
}
.bed .bed-image-layer {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: clip;
  transform-origin: center top;
}
#magamistuba-title { position: relative; transform-origin: left top; }
#magamistuba-title.bed-title-split { color: transparent; }
#magamistuba-title .bed-motion-glyph {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  color: var(--ink);
  line-height: inherit;
  white-space: pre;
  pointer-events: none;
}
.bed .bed-motion-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .bed .bed-motion-pending { opacity: 1 !important; }
  #magamistuba-title, .bed figure, .bed .bed-image-layer,
  .bed-top .lead, .bed-note { opacity: 1 !important; transform: none !important; }
  #magamistuba-title.bed-title-split { color: var(--ink); }
  #magamistuba-title .bed-motion-glyph { display: none; }
}

/* The stair image originally fills a stretched grid area absolutely. */
.bed-stair .bed-image-layer { position: absolute; inset: 0; }
