:root{color:#f8eadd;font-synthesis:none;-webkit-text-size-adjust:100%;background:#221413;font-family:system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}.theater{background:#2a1716;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(100%,550px);height:100dvh;min-height:350px;margin:auto;display:grid;overflow:hidden}.theater-header{padding:max(9px, env(safe-area-inset-top)) 14px 9px;color:#f8eadd;background:#2a1512;grid-template-columns:74px 1fr 74px;align-items:center;min-height:48px;display:grid}.theater-header h1{text-align:center;letter-spacing:-.035em;margin:0;font-size:1.04rem}.theater-header a{color:inherit;font-size:1.8rem;line-height:1;text-decoration:none}.theater-header>span{text-align:right;font-variant-numeric:tabular-nums;font-size:.75rem}.theater-screen{background:#2a1512;height:min(75.35vw,42dvh,415px);position:relative}.theater-screen img{object-fit:fill;width:100%;height:100%;display:block}.screen-messages{overscroll-behavior:contain;color:#fff9f5;text-shadow:0 1px 3px #000;background:linear-gradient(#0000,#130f13c9 27%,#130f13db);max-height:54%;margin:0;padding:0 8px;list-style:none;position:absolute;inset:auto 8% 11%;overflow-y:auto}.screen-messages li{border-bottom:1px solid #f4e4dd35;grid-template-columns:minmax(0,1fr) auto auto;align-items:baseline;gap:.6em;padding:.38em 0;font-size:clamp(.65rem,2.95vw,.96rem);display:grid}.screen-messages li:last-child{border-bottom:0}.screen-messages time{color:#f1e3dc;font-size:.82em}#screen-latest{color:#fff4e8;width:27px;height:27px;font:inherit;cursor:pointer;background:#291b1bf2;border:1px solid #eac9b86e;border-radius:50%;position:absolute;bottom:2%;right:8%}.theater-room{background:#2a1716;position:relative;overflow:hidden}.theater-room canvas{touch-action:none;cursor:grab;width:100%;height:100%;display:block}.room-map{pointer-events:none;background:#211616e8;border:1px solid #edd5bf4a;border-radius:9px;width:clamp(66px,20vw,89px);height:auto;position:absolute;inset:10px 10px auto auto;box-shadow:0 2px 9px #140b0b80}.room-controls{pointer-events:none;justify-content:flex-end;padding:8px 13px;display:flex;position:absolute;inset:auto 0 0}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.room-controls button{color:#342019;pointer-events:auto;background:#ffdb81;border:0;border-radius:10px;min-width:65px;min-height:39px;padding:0 12px;font:650 .79rem system-ui,sans-serif}.theater-chat{padding:4px 12px max(7px, env(safe-area-inset-bottom));background:#291b1b;border-top:1px solid #edc9bc36}.chat-bar,.chat-targets,.chat-composer{align-items:center;gap:5px;display:flex}.chat-targets{flex:1}.theater-chat button{color:#f1dcd6;cursor:pointer;white-space:nowrap;background:0 0;border:0;border-radius:8px;min-height:32px;padding:0 9px;font:600 .77rem system-ui,sans-serif}.chat-targets button[aria-pressed=true]{color:#352019;background:#f6d3cf}.chat-messages{touch-action:pan-y;overscroll-behavior:contain;flex-direction:column;gap:4px;height:min(91px,14dvh);margin:4px 0;padding:2px 0;list-style:none;display:flex;overflow-y:auto}.chat-messages[hidden]{display:none}.chat-messages li{overflow-wrap:anywhere;background:#493235;border-radius:8px;align-self:flex-start;max-width:90%;padding:5px 8px;font-size:.77rem}.chat-messages li.mine{color:#352019;background:#f6d3cf;align-self:flex-end}.chat-composer{margin-top:4px}.chat-composer input{color:#fff4e8;background:#362525;border:1px solid #edc9bc36;border-radius:8px;flex:1;min-width:0;height:36px;padding:0 9px;font:1rem system-ui,sans-serif}.chat-composer input::placeholder{color:#cfb9b3}.chat-composer button{color:#342019;background:#ffdb81;min-height:36px}
