@property --room-open {
 syntax:"<number>";
 inherits:false;
 initial-value:0;
}
#inside,.game .stage {
 position:fixed;
 inset:0;
 width:100%;
 height:100%;
 max-width:none;
 max-height:none;
 box-sizing:border-box;
 margin:0;
 padding:0;
 border:0;
 border-radius:0;
 overflow:hidden;
 background:#293b37;
 opacity:clamp(0,calc(var(--room-open) * 5),1);
 transform:translate(calc(var(--room-x,0px) * (1 - var(--room-open))),
  calc(var(--room-y,0px) * (1 - var(--room-open)))) scale(calc(.04 + .96 * var(--room-open)));
 transition:--room-open .66s cubic-bezier(.3,.68,.24,1),display .67s allow-discrete,overlay .67s allow-discrete;
}
#inside[open],.shopping .game .stage {--room-open:1}
#inside::backdrop {
 background:transparent;
 transition:display .67s allow-discrete,overlay .67s allow-discrete;
}
.game .stage {z-index:4;box-shadow:none}
.room-fill {
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 pointer-events:none;
}
#inside .room-stage,.game .stage > #scene {
 position:absolute;
 top:50%;
 left:50%;
 transform:translate(-50%,-50%);
}
#inside .room-stage {width:min(100%,calc(100dvh * var(--room-art-ratio,2.46153846)))}
#inside-art {width:100%;height:auto}
.game .stage > #scene {width:min(100%,calc(100dvh * 65 / 33))}

#inside .room-panel,.shop-copy {
 box-sizing:border-box;
 border:1px solid #f2dca44d;
 border-radius:8px;
 background:#223630ed;
 color:#fff2cb;
}
#inside .room-panel {
 position:absolute;
 inset:auto auto max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
 width:max-content;
 max-width:min(32rem,calc(100% - 28px));
 max-height:36dvh;
 overflow:auto;
 overscroll-behavior:contain;
 padding:12px 15px;
}
#inside-title {font-size:clamp(19px,4vw,26px);line-height:1.1}
#inside-message {font-size:14px;padding:0;margin:.35rem 0 .55rem}
#inside :is(#chat-room,#leave-room) {margin-top:8px}
#inside .room-panel #leave-room {color:inherit;border-color:#e0c9948c;margin-left:4px}
#shop-ui[open] {
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 justify-content:flex-end;
 gap:8px;
 box-sizing:border-box;
 padding:12px 14px max(14px,env(safe-area-inset-bottom));
 pointer-events:none;
 overflow:auto;
}
#shop-ui :is(.shop-actions,#wardrobe) {position:static;pointer-events:auto}
#shop-ui .shop-copy {inset:14px auto auto 14px;padding:8px 12px}
#shop-ui .shop-actions {flex-wrap:wrap}
#wardrobe {width:min(100%,31rem)}
@media(max-width:520px) {
 #wardrobe {grid-template-columns:repeat(3,minmax(0,1fr))}
 #shop-ui .shop-copy {font-size:14px}
}
@starting-style {
 #inside[open],.shopping .game .stage {--room-open:0}
}
@media(prefers-reduced-motion:reduce) {
 #inside,#inside::backdrop,.game .stage {transition:none}
}
