.chamber-room{position:absolute;inset:150px 0 116px;z-index:1;pointer-events:none;isolation:isolate}
#menu .room-object{position:absolute;display:block;width:var(--rw);aspect-ratio:var(--ra,1);padding:0;bottom:var(--rb);left:var(--rx);background:none;border:0;border-radius:0;box-shadow:none;text-shadow:none;pointer-events:auto;isolation:isolate;overflow:visible;min-height:44px}
.room-bed{--rx:2%;--rb:0%;--rw:min(24%,205px);--ra:1.25}.room-altar{--rx:23%;--rb:6%;--rw:min(15%,145px);--ra:1.15}.room-books{--rx:5%;--rb:27%;--rw:min(15%,125px);--ra:.75}.room-garden{--rx:91%;--rb:-2%;--rw:min(8%,75px)}.room-rack{--rx:79%;--rb:0%;--rw:min(15%,150px);--ra:.92}.room-ward{--rx:77%;--rb:31%;--rw:min(10%,95px);--ra:.82}
.room-object-art{position:absolute;inset:0;display:block;background:url('art-v55/room-furniture.png') var(--fx) var(--fy)/300% 200% no-repeat;filter:brightness(.82) saturate(.8) drop-shadow(3px 5px 3px #000a);pointer-events:none;z-index:1;transform-origin:50% 92%}
.chamber-room .room-object-art{transform:none} /* Level adds light/detail, never expands into the heroine. */
.chamber-room .room-books,.chamber-room .room-ward{z-index:0}.chamber-room .room-altar,.chamber-room .room-rack{z-index:1}.chamber-room .room-bed,.chamber-room .room-garden{z-index:2}
.room-object-caption{position:absolute;left:0;right:0;bottom:-5px;display:block;width:fit-content;max-width:100%;margin:auto;padding:4px 8px;background:#0b1820dc;border:1px solid #baa37360;color:#f4e5c9;font:600 12px/1.25 CitadelText,system-ui;text-align:center;border-radius:5px;z-index:5;opacity:0;pointer-events:none;transition:opacity .15s}.room-object-caption small{display:block;font-size:11px}
#menu .room-object:hover,#menu .room-object:focus-visible{background:none;box-shadow:none;filter:none}.room-object:hover .room-object-caption,.room-object:focus-visible .room-object-caption{opacity:1;border-color:#edc786}
.room-footprint{display:grid;place-items:center;position:absolute;left:20%;right:20%;bottom:12%;height:28%;border:1px dashed #e4c89480;border-radius:50%;background:#182c3238;color:#efd7a0;font-size:28px;transform:rotateX(40deg)}.chamber-room .vacant{visibility:hidden;pointer-events:none} /* Construction remains available in the catalog below. */
.room-light{position:absolute;inset:12% 8% 4%;background:radial-gradient(ellipse,color-mix(in srgb,var(--room-accent) 26%,transparent),transparent 66%);mix-blend-mode:screen;z-index:2;pointer-events:none;animation:room-light-breathe 5s ease-in-out infinite}
.room-floor-light{position:absolute;left:9%;right:9%;height:15%;bottom:2%;border-radius:50%;background:radial-gradient(ellipse,color-mix(in srgb,var(--room-accent) 33%,transparent),transparent 70%);filter:blur(3px);pointer-events:none;z-index:0}
.room-bed .room-light{--room-accent:#efbb72;inset:35% 4% 5%;animation-duration:7s}.room-books .room-light{inset:20% 25% 5%;animation-duration:8s}.room-rack .room-light{background:linear-gradient(105deg,transparent 35%,#d8efff30 48%,transparent 60%);animation:room-steel-glint 8s ease-in-out infinite}.room-ward .room-floor-light{border:1px solid #90e4ee80;animation:room-rune-pulse 4s ease-out infinite}.room-altar .room-light{inset:8% 28% 38%;animation-duration:3.8s}
.room-mote{position:absolute;left:var(--mx);bottom:16%;width:3px;height:3px;border-radius:50%;background:var(--room-accent);box-shadow:0 0 7px var(--room-accent);z-index:3;opacity:0;pointer-events:none;animation:room-mote-rise calc(4s + var(--i)*.55s) calc(var(--i)*-.8s) ease-in-out infinite}.room-books .room-mote{width:10px;height:12px;background:none;box-shadow:none;color:#e6c88c;font-size:12px}.room-garden .room-mote{animation-name:room-firefly}.room-bed .room-mote,.room-rack .room-mote{display:none}
.room-plinth{position:absolute;left:14%;right:14%;bottom:0;height:11%;border-radius:50%;border:2px solid #b99b6766;box-shadow:inset 0 0 0 3px #14212a80,0 5px 8px #0006;background:radial-gradient(ellipse,#9e876b25,#14212a88);z-index:0;pointer-events:none}
[data-stage="4"] .room-floor-light{opacity:1;box-shadow:0 0 15px color-mix(in srgb,var(--room-accent) 30%,transparent)}
.just-built .room-object-art{animation:room-arrive 1.3s ease-out}.room-detail-dialog{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,1fr);gap:24px;align-items:center}.room-detail-art{position:relative;aspect-ratio:1;min-width:0;isolation:isolate}.room-detail-dialog button{margin-top:10px}.room-stage-track{display:flex;gap:8px}.room-stage-track span{flex:1;padding:5px;border-bottom:3px solid #60727a55;color:#9baaaa;text-align:center}.room-stage-track .on{border-color:#dfc080;color:#f1d69f}
@keyframes room-light-breathe{0%,100%{opacity:.48}50%{opacity:.95}}@keyframes room-mote-rise{0%,100%{opacity:0;transform:translateY(0)}20%{opacity:.7}80%{opacity:.3;transform:translate(8px,-65px)}}@keyframes room-firefly{0%,100%{opacity:0;transform:translate(0,0)}30%{opacity:.8}70%{opacity:.5;transform:translate(14px,-30px)}}@keyframes room-steel-glint{0%,65%,100%{opacity:0;transform:translateX(-8%)}80%{opacity:.8;transform:translateX(8%)}}@keyframes room-rune-pulse{0%,100%{opacity:.3;transform:scale(.9)}60%{opacity:.8;transform:scale(1.13)}}@keyframes room-arrive{0%{opacity:.2;filter:brightness(1.8) drop-shadow(0 0 18px #e7be77)}100%{opacity:1;filter:brightness(.82) saturate(.8) drop-shadow(3px 5px 3px #000a)}}
/* The heroine owns the clear central zone and is always in front of scenery. */
.chamber-stage:not(.with-gear) #paperdoll{z-index:2;left:40%;right:auto;width:32%;bottom:116px;height:calc(100% - 130px);max-height:410px;pointer-events:none}
.chamber-stage:not(.with-gear) .chamber-heading{z-index:3;pointer-events:none}
.chamber-stage:not(.with-gear) .chamber-stage-bottom,.chamber-stage:not(.with-gear) .chamber-turn{z-index:4}
.chamber-room .room-object::before{content:'';position:absolute;left:10%;right:10%;bottom:1%;height:8%;border-radius:50%;background:radial-gradient(ellipse,#0009,transparent 72%);pointer-events:none}
@media(max-width:700px){
 .chamber-stage:not(.with-gear){height:640px}
 .chamber-room{inset:170px 0 128px}
 .room-bed{--rx:1%;--rb:0%;--rw:24%}
 .room-books{--rx:4%;--rb:38%;--rw:19%}
 .room-altar{--rx:4%;--rb:18%;--rw:20%}
 .room-garden{--rx:79%;--rb:0%;--rw:19%}
 .room-rack{--rx:77%;--rb:19%;--rw:21%}
 .room-ward{--rx:79%;--rb:45%;--rw:17%}
 .chamber-stage:not(.with-gear) #paperdoll{left:25%;right:auto;width:50%;bottom:128px;height:340px}
 .room-object-caption{font-size:11px;padding:3px 5px}.room-object-caption small{font-size:10px}
 .room-detail-dialog{grid-template-columns:1fr;gap:10px}.room-detail-art{width:min(230px,60vw);margin:auto}
}
@media(hover:none){.room-object:hover .room-object-caption{opacity:0}.room-object:focus-visible .room-object-caption{opacity:1}}
@media(prefers-reduced-motion:reduce){.chamber-room *,.room-detail-dialog *{animation:none!important}.room-mote{display:none}.room-light{opacity:.55}}

/* A single 2:1 scene preserves the floor and furniture perspective at every width.
   On small screens the room pans instead of independently cropping its layers. */
.chamber-suite{border:1px solid #aa926a88;border-radius:16px;overflow:hidden;background:#0c1922}
.chamber-suite-heading{padding:18px 24px;background:linear-gradient(110deg,#152732,#0b151d)}
.chamber-suite-heading h1{font-size:clamp(28px,4vw,44px);margin:4px 0;color:#f3dfad}
.chamber-suite-heading h2{display:inline;font-size:18px;margin-right:14px}.chamber-suite-heading>span{font-size:12px;color:var(--hero-color)}
.chamber-panorama{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#b49b62 #10212b;scrollbar-width:thin;touch-action:pan-x pan-y}
.chamber-panorama:focus-visible{outline:2px solid #e9c482;outline-offset:-2px}
.chamber-suite .room-scene{height:auto;min-width:760px;aspect-ratio:2/1;border:0;border-radius:0;background:var(--chamber-image) center/100% 100% no-repeat}
.chamber-suite .chamber-room{inset:0}
.chamber-suite .room-object{aspect-ratio:1}
.chamber-suite .room-bed{--rx:0%;--rb:5%;--rw:31%}
.chamber-suite .room-books{--rx:0%;--rb:30%;--rw:22%}
.chamber-suite .room-altar{--rx:31%;--rb:3%;--rw:17%}
.chamber-suite .room-garden{--rx:87%;--rb:5%;--rw:12%}
.chamber-suite .room-rack{--rx:75%;--rb:12%;--rw:20%}
.chamber-suite .room-ward{--rx:81%;--rb:32%;--rw:12%}
.chamber-suite .room-object-art{aspect-ratio:1;inset:auto 0 0;filter:brightness(.87) saturate(.78) drop-shadow(2px 4px 3px #0009)}
.chamber-suite .room-scene #paperdoll{left:40%;right:auto;bottom:23%;width:30%;height:84%;max-height:none;z-index:2}
.chamber-suite .room-scene .chamber-turn{left:66%;right:auto;bottom:12px;z-index:4}
.chamber-suite>.chamber-stage-bottom{position:relative;inset:auto;min-height:90px}
@media(max-width:540px){.chamber-suite-heading{padding:14px 16px}.chamber-suite-heading h2,.chamber-suite-heading>span{display:block}.chamber-suite-heading h2{margin-bottom:4px}.chamber-suite>.chamber-stage-bottom{min-height:128px}}

.chamber-suite .room-scene:after{content:"";position:absolute;left:46%;bottom:27%;width:18%;height:5%;border-radius:50%;background:radial-gradient(ellipse,#060b1470,transparent 70%);z-index:1;pointer-events:none}

[data-hero="mage"] .room-object-art{background-image:url(art-v56/room-furniture-moonlit.png)}
.chamber-suite[data-hero="mage"] .room-object-art{filter:brightness(.84) saturate(.8) drop-shadow(2px 4px 3px #080716aa)}

/* Furniture pixels belong to the room master, never to independent icons. */
.room-master-suite .room-scene{isolation:isolate}
.room-clean-plate{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.room-master-suite .room-master-hotspots{z-index:3;pointer-events:none}
.room-master-suite .room-object{bottom:auto;aspect-ratio:auto;transform:none!important;filter:none!important;background:none!important;box-shadow:none!important;border:0!important;pointer-events:auto}
.room-master-suite .room-object:hover,.room-master-suite .room-object:focus-visible{outline:1px solid #ead7ab88;outline-offset:-4px;border-radius:10px}
.room-master-suite .room-object .room-object-caption{bottom:5%;z-index:5;max-width:95%;white-space:normal}
.room-master-suite .room-footprint{position:absolute;left:50%;top:70%;transform:translate(-50%,-50%);width:28px;height:28px;font-size:16px;opacity:.55}
.room-master-suite .vacant{visibility:visible;pointer-events:auto}
.room-master-suite .room-object .room-plinth{display:none}
.room-master-suite .room-light{opacity:.16;mix-blend-mode:screen}
.room-master-suite .room-floor-light{opacity:.10;mix-blend-mode:screen}
.room-master-suite .room-bed .room-light,.room-master-suite .room-books .room-light,.room-master-suite .room-rack .room-light{display:none}
.room-master-suite .room-mote{max-width:3px;max-height:3px;opacity:.5}
.room-master-suite .room-scene #paperdoll{left:39%;bottom:9%;width:28%;height:91%;z-index:2}
.room-master-suite .room-scene:after{left:45%;bottom:13%;width:17%;height:4%;z-index:1}
.room-station-detail{width:100%;max-height:360px;border:1px solid #ad95684d;border-radius:10px;background-repeat:no-repeat}
@media(prefers-reduced-motion:reduce){.room-master-suite .room-mote,.room-master-suite .room-light,.room-master-suite .room-floor-light{animation:none}}

/* A single aligned full-scene video sits behind the existing ownership mask. */
.room-ambient-video{position:absolute;top:0;height:100%;object-fit:fill;z-index:0;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 .5%,#000 99.5%,transparent)}
.room-master-suite .room-object:before{display:none}
