/* ============================================================
   One floor for everything (js/room/stage.js)
   The wall meets the floor at 55% of the stage; the floor runs from depth 0 (58%) to depth 1 (95%).
   The cat is painted by its depth: z-index 10 (back wall) … 30 (front). Things over the cat start at 31.
   Loaded last: it places the older, hand-positioned props on the same floor.
   ============================================================ */

/* at the front edge of the floor: nearer than the cat wherever it walks */
.prop-box, .prop-plant, .prop-bowl, .prop-tub, .prop-litter, .prop-pot, .prop-park-bush, .catroom-floor, .catroom-corner,
.cucumber, .floor-letter, .seek-spot, .bday-cake, .trip-prop { z-index: 31; }
.prop-gym-treadmill, .prop-study-desk { z-index: 28; }
.prop-gym-scale { z-index: 29; }
/* the lip of the bed over a cat lying in it; the soft things at the very edge of the screen */
.catroom-bed-front.is-occupied { z-index: 32; }

/* the rug lies under the cat's usual spot (depth 0.7) */
.floor-rug {
  top: 83.9cqh; bottom: auto; transform: translate(-50%, -50%);
  width: calc(var(--room-w) * .7); height: calc(var(--room-w) * .13);
}
#app-shell[data-room] .floor-rug { width: calc(var(--room-w) * .7); max-width: none; }

/* outdoors: the far hills, the path and the railing meet the stage's floor line */
.prop-park-far { top: calc(55% - 46px); }
.prop-park-path { top: 55%; height: 45%; }
.prop-railing { bottom: auto; top: calc(55% - 30px); }

/* ---------- rooms laid out by room/render.js ---------- */
.room-item { background: none; border: 0; padding: 0; margin: 0; }
.room-item > svg { display: block; width: 100%; height: auto; overflow: visible; }
/* the living room: the window is a real one now, its seat right under it */
#living-window { overflow: hidden; border-radius: 12% / 10%; }
#living-shelf { z-index: 6 !important; }
.photo-wall.room-item { transform: none; }
/* the floor lamp: lit at night, or whenever you switch it on */
.lamp-glow {
  position: absolute; left: 50%; top: 9%; width: calc(var(--room-w) * .42); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 238, 170, .85), rgba(255, 220, 140, .28) 45%, rgba(255, 220, 140, 0) 70%);
  opacity: 0; transition: opacity .5s ease;
}
.is-night .room-lamp:not([data-lamp="off"]) .lamp-glow, .room-lamp[data-lamp="on"] .lamp-glow { opacity: 1; }
.is-sleeping .room-lamp:not([data-lamp="on"]) .lamp-glow { opacity: .3; }
/* the cat room's emoji furniture and the lawn's path follow the room frame too */
.catroom-slot, .catroom-slot.is-empty { font-size: calc(var(--room-w) * .2); }
.catroom-wall { font-size: calc(var(--room-w) * .17); }
.prop-park-path { left: calc(50% - var(--room-w) * .23); width: calc(var(--room-w) * .46); }
