/* Scene controls begin immediately below the shared mobile top bar. */
@media(max-width:850px){
 body:is(.home-active,.courtyard-active) main{padding-top:58px}
 body:is(.home-active,.courtyard-active) main>header{display:none!important;height:0;min-height:0;margin:0;padding:0;border:0}
 body:is(.home-active,.courtyard-active) .pageheading{display:none!important}
 body.courtyard-active .yard-app{padding-top:8px}
}
#room .home-affection{display:flex;align-items:center;gap:7px}
#room .home-center-pet{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:10px}
#room .home-center-pet svg{display:block;width:22px;height:22px}
#room .home-center-pet:disabled{opacity:.45;cursor:default}
@media(max-width:420px){#room .home-affection{right:10px;gap:5px}#room .home-affection #patpet{min-width:64px;padding-inline:9px}}

.yard-stage.is-saving{pointer-events:none}
.wall-frame[data-unframed="true"]{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0}
:is(#room,.guest-room) .wall-frame[data-unframed="true"] img{width:100%;height:100%;object-fit:contain}
.wall-frame-handle[data-unframed="true"]{min-width:0;min-height:0;border-radius:4px}

/* Preserve the whole room composition: the side window remains visible on phones. */
:is(#room,.guest-room)[data-background]:not([data-background=""]){background-size:100% 100%!important;background-position:center!important}

/* Visitor courtyards share the same scene engine, with no owner/editor controls. */
.guest-courtyard{position:relative;isolation:isolate;overflow:hidden}
.guest-courtyard-content,.guest-courtyard .yard-app{height:100%;padding:0;display:block}
.guest-courtyard .yard-controls-top,.guest-courtyard .yard-arrange-panel,.guest-courtyard .yard-status,.guest-courtyard .yard-prop-tools{display:none!important}
.guest-courtyard .yard-stage{width:100%;height:100%!important;min-height:0!important;border:0;border-radius:0}
#guest-yard-stage #guest-yard-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.visit-dialog .visit-room.guest-courtyard{height:min(64dvh,520px);min-height:350px;margin-top:14px}

/* The courtyard opens directly on its controls and scene at every screen size. */
body.courtyard-active .pageheading{display:none!important;margin:0!important;padding:0!important;min-height:0!important;height:0!important}

/* Visit controls travel with the same live scene in full screen. */
.guest-interactions{position:absolute;left:12px;bottom:12px;z-index:20;max-width:min(360px,calc(100% - 24px));color:#334737}.guest-interactions button{font:inherit;color:inherit;background:#fffdf2;border:1px solid #a7b596;border-radius:12px;min-height:44px;padding:9px 13px;cursor:pointer}.guest-interactions-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:10px;background:#fffdf2f5;border:1px solid #a7b596;border-radius:14px;margin-bottom:6px;max-height:min(55dvh,380px);overflow:auto;box-shadow:0 4px 22px #0002}.guest-interactions-choices[hidden]{display:none}.guest-interactions-choices p{grid-column:1/-1;font-size:13px;margin:4px 0}.guest-interactions{display:flex;flex-direction:column-reverse;align-items:flex-start}.guest-room{position:relative}
