/* A room with real destinations: the atmosphere fills the window, objects hold the navigation. */
body:not(.channel-active) .hub-shell{width:100%;max-width:none;padding:0}
body.signal-noise-ready:not(.channel-active) .hub-top{width:calc(100% - 64px);max-width:1600px;margin-inline:auto;min-height:67px;padding:10px 0;border-bottom:1px solid #63477866;gap:16px}
body.signal-noise-ready .hub-brand{color:#d2b8e9}
body.signal-noise-ready:not(.channel-active) #mechanical-field{opacity:0}
body:not(.channel-active) #station.tavern-home{padding:0;margin:0;overflow:hidden;isolation:isolate}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.room-topline{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1600px;margin:0 auto;padding:20px 32px 16px;color:#a38fb6;font:9px/1.6 ui-monospace,monospace;letter-spacing:.1em}
.room-topline>span:first-child{color:#b1a1ce}.room-topline i{display:inline-block;width:5px;height:5px;background:#80bebc;margin-right:9px;box-shadow:0 0 9px #74beb477}.room-topline>span:nth-child(2){color:#d0b6d0;font-size:11px;letter-spacing:.13em}.room-coordinate{color:#776184}
.room-viewport{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#56396a #080611;overscroll-behavior-x:contain;outline-offset:-3px!important}
.room-stage{position:relative;width:100%;aspect-ratio:1672/941;isolation:isolate;background:#08040e}
.room-art{image-rendering:pixelated;display:block;width:100%;height:100%;object-fit:fill;user-select:none;-webkit-user-drag:none;pointer-events:none}
.room-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#05030873,transparent 14%,transparent 78%,#06040daa),linear-gradient(90deg,#05030870,transparent 9%,transparent 93%,#05030880);z-index:1}
.scene-hotspot{--object-color:#b7acf2;position:absolute;z-index:3;left:var(--x);top:var(--y);width:var(--w);height:var(--h);transform:translate(-50%,-50%);border:0;padding:0;background:transparent;cursor:pointer;outline-offset:1px;color:#f4e7fa;touch-action:manipulation}
.terminal-hotspot{--x:16.8%;--y:46%;--w:14%;--h:22%;--object-color:#90e7e5}
.radio-hotspot{--x:51%;--y:49.8%;--w:12.5%;--h:14%;--object-color:#e89bcf}
.mailbox-hotspot{--x:69.6%;--y:33.8%;--w:13.8%;--h:25.5%;--object-color:#ddbc8b}
.lounge-hotspot{--x:86.7%;--y:67.5%;--w:17.5%;--h:23%;--object-color:#b4a5e9}
.room-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1600px;margin:0 auto;padding:15px 32px;color:#b9a3c9;font:11px/1.7 ui-monospace,monospace;min-height:58px}.room-caption>span:first-child{min-width:0}.room-caption button{flex:none;border:1px solid #604675;background:#0b0713b0;color:#ad92c0;font:9px/1.4 ui-monospace,monospace;padding:7px 10px;min-height:32px}.room-caption button:hover{color:#e6d2fa;border-color:#9973b7}.room-pan-hint{display:none}
.room-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:1280px;margin:4px auto 0;padding:16px 32px;border-top:1px solid #49305275;border-bottom:1px solid #49305275;background:#07040daa}.shortcut-label{font:10px/1.5 ui-monospace,monospace;color:#7f668e;letter-spacing:.06em}.room-shortcuts button{display:flex;align-items:center;gap:9px;background:transparent;border:0;color:#cbb6d8;padding:10px 8px;font:11px/1.4 system-ui,sans-serif;min-height:42px}.room-shortcuts button>span{color:#825997;font:8px ui-monospace,monospace}.room-shortcuts small{color:#7d668b;font:8px ui-monospace,monospace}.room-shortcuts button:hover{color:#a6e1e3;background:#25132e66}.room-shortcuts button:focus-visible{outline:1px solid #9d79cc}
.room-footer{max-width:1280px;margin:0 auto;padding:23px 32px 28px}.room-footer p{font:15px/1.7 system-ui,sans-serif;color:#b8a3c7;margin:0 0 18px}.room-footer em{font-style:normal;color:#d4b6e5}.room-footer>div{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;color:#6c557e;font:8px/1.8 ui-monospace,monospace}.room-footer a{color:#997baa;text-decoration:underline;text-underline-offset:4px}.room-footer a:hover{color:#c6ade4}
body .signal-levels{border-color:#62477966;background:#0c0814ea}body .signal-levels button[aria-pressed=true]{color:#decbf5;background:#8050b038;border-color:#9064b777}body .signal-levels .signal-level-label{color:#9a80b6}
@media(min-width:1900px){.hotspot-callout{font-size:14px;padding:11px 14px;gap:12px}.hotspot-callout small{font-size:10px}.hotspot-index{font-size:10px}.room-caption{font-size:12px}}
@media(max-width:900px){body.signal-noise-ready:not(.channel-active) .hub-top{width:calc(100% - 36px);min-height:65px}.room-topline{padding:16px 18px 13px}.room-coordinate{display:none}.room-stage{min-width:960px}.room-sign{font-size:10px}.room-caption{padding:13px 18px;flex-wrap:wrap;gap:8px 12px;font-size:10px}.room-caption>span:first-child{flex:1 1 calc(100% - 120px)}.room-pan-hint{display:block;order:3;flex-basis:100%;color:#766183;font-size:9px}.room-shortcuts{padding:9px 18px;gap:3px}.shortcut-label,.room-shortcuts small{display:none}.room-shortcuts button{font-size:10px;gap:6px;padding:9px 4px}.room-footer{padding:21px 18px}.room-footer p{font-size:13px}}
@media(max-width:480px){body.signal-noise-ready:not(.channel-active) .hub-top{width:calc(100% - 28px);gap:9px;flex-wrap:wrap;justify-content:space-between;padding:9px 0}.room-topline{font-size:8px;padding-inline:14px;gap:8px}.room-topline>span:nth-child(2){font-size:9px;letter-spacing:0}.room-stage{min-width:880px}.room-sign{font-size:9px}.hotspot-callout{font-size:11px}.hotspot-callout small{font-size:8px}.room-shortcuts{display:grid;grid-template-columns:1fr 1fr;padding:6px 14px;gap:1px 12px}.room-shortcuts button{padding:11px 9px;font-size:11px;min-height:44px;border-bottom:1px solid #49305255}.room-shortcuts button:nth-last-child(-n+2){border-bottom:0}.room-shortcuts small{display:block;margin-left:auto;font-size:8px}.room-caption{padding-inline:14px}.room-footer{padding-inline:14px}.room-footer>div{gap:10px;font-size:7px}}
@media(prefers-reduced-motion:reduce){.room-rain,.room-screen,.room-sign-glow,.night-cat span{animation:none!important}.scene-hotspot:before,.hotspot-callout{transition:none!important}}

/* V11: labels are painted onto physical props; only invisible hit areas remain. */
.terminal-hotspot{--x:15.1%;--y:19%;--w:14.5%;--h:26.5%}
.radio-hotspot{--x:54.2%;--y:51.1%;--w:17.5%;--h:11%}
.mailbox-hotspot{--x:69.8%;--y:33.2%;--w:12.8%;--h:26%}
.lounge-hotspot{--x:89.8%;--y:62%;--w:18.8%;--h:21%}
.scene-hotspot{border-radius:0;touch-action:pan-x pan-y}
.scene-hotspot:hover{background:transparent}
.scene-hotspot:focus-visible,.night-cat:focus-visible{outline:2px dashed #a2e5f5;outline-offset:3px;background:#96dfff12}
.night-cat{position:absolute;z-index:3;left:13%;top:50.3%;width:9.7%;height:6.2%;background:none;border:0;cursor:pointer;touch-action:pan-x pan-y}
.room-object-hint{color:#836993;font-size:9px;white-space:nowrap}
.room-rain{position:absolute;left:82%;top:0;width:18%;height:53%;pointer-events:none;z-index:1;image-rendering:pixelated;opacity:.86;mix-blend-mode:screen}
.room-screen{position:absolute;left:11.45%;top:10.5%;width:9.5%;height:16.9%;clip-path:polygon(10% 0,100% 20%,87% 100%,0 83%);z-index:1;pointer-events:none;background:#061347;mix-blend-mode:multiply;opacity:.03;animation:tv-flicker 7.8s steps(1,end) infinite}
.room-screen:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(0deg,#07052199 0 1px,transparent 1px 4px);opacity:.24}
.room-screen:after{content:'';position:absolute;inset:-100% 0;background:linear-gradient(0deg,transparent 46%,#8cfaff99 49%,transparent 53%);mix-blend-mode:screen;animation:tv-roll 5.2s linear infinite}
.room-sign-glow{position:absolute;left:36.7%;top:10%;width:17%;height:7%;z-index:1;pointer-events:none;background:radial-gradient(ellipse,#ff58d219,transparent 73%);mix-blend-mode:screen;animation:neon-breathe 6.5s ease-in-out infinite}
@keyframes tv-flicker{0%,83%,88%,100%{opacity:.03}84%,86%{opacity:.24}85%{opacity:.09}87%{opacity:.16}}
@keyframes tv-roll{from{transform:translateY(-25%)}to{transform:translateY(25%)}}
@keyframes neon-breathe{0%,100%{opacity:.45}45%{opacity:1}49%{opacity:.3}52%{opacity:.8}}
.quiet .room-screen,.quiet .room-screen:after,.quiet .room-sign-glow,.room-page-hidden .room-screen,.room-page-hidden .room-screen:after,.room-page-hidden .room-sign-glow,.channel-active .room-screen,.channel-active .room-screen:after,.channel-active .room-sign-glow{animation-play-state:paused}
.quiet .room-screen{opacity:.04}
@media(max-width:600px){.room-object-hint{white-space:normal;flex-basis:100%;font-size:9px}.room-caption>span:first-child{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.room-screen,.room-screen:after,.room-sign-glow{animation:none!important}.room-screen{opacity:.04}}

/* V12: a restrained sprite palette, with strong local object feedback. */
.room-art{filter:saturate(.72)}
.room-sign-glow{opacity:.6}
.terminal-hotspot{--prop-shape:polygon(29% 9%,95% 24%,89% 89%,17% 81%,6% 28%);--object-color:#b4e8eb}
.radio-hotspot{--y:52%;--prop-shape:polygon(4% 22%,53% 22%,53% 53%,96% 46%,99% 97%,3% 97%);--object-color:#c8bfdc}
.mailbox-hotspot{--prop-shape:polygon(4% 3%,94% 3%,99% 98%,3% 98%);--object-color:#e4c99d}
.lounge-hotspot{--prop-shape:polygon(32% 38%,72% 38%,75% 57%,30% 55%);--object-color:#cbbce0}
.scene-hotspot::before{content:'';position:absolute;inset:0;pointer-events:none;clip-path:var(--prop-shape);background:#d7e6fa29;-webkit-backdrop-filter:brightness(1.8) contrast(1.12);backdrop-filter:brightness(1.8) contrast(1.12);opacity:0;transition:opacity .12s steps(3,end)}
.scene-hotspot::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .12s steps(3,end);background:linear-gradient(var(--object-color),var(--object-color)) left top/15px 2px no-repeat,linear-gradient(var(--object-color),var(--object-color)) left top/2px 15px no-repeat,linear-gradient(var(--object-color),var(--object-color)) right top/15px 2px no-repeat,linear-gradient(var(--object-color),var(--object-color)) right top/2px 15px no-repeat,linear-gradient(var(--object-color),var(--object-color)) left bottom/15px 2px no-repeat,linear-gradient(var(--object-color),var(--object-color)) left bottom/2px 15px no-repeat,linear-gradient(var(--object-color),var(--object-color)) right bottom/15px 2px no-repeat,linear-gradient(var(--object-color),var(--object-color)) right bottom/2px 15px no-repeat}
.scene-hotspot:focus-visible{outline:none;background:transparent}
.scene-hotspot:focus-visible::before,.scene-hotspot:focus-visible::after,.scene-hotspot:active::before,.scene-hotspot:active::after{opacity:1}
@media(hover:hover){.scene-hotspot:hover::before,.scene-hotspot:hover::after{opacity:1}.room-shortcuts button:hover{background:#5d4c7199;color:#fff;box-shadow:inset 0 -2px #c4b4d9}}
@media(prefers-reduced-motion:reduce){.scene-hotspot::before,.scene-hotspot::after{transition:none}}
.quiet .scene-hotspot::before,.quiet .scene-hotspot::after{transition:none}

/* V13: radio and cat traded places; hover and click follow the physical props. */
.radio-hotspot{--x:20.1%;--y:52.2%;--w:16%;--h:9%;--prop-shape:polygon(2% 8%,54% 8%,54% 44%,99% 44%,99% 98%,2% 98%)}
.night-cat{left:47.5%;top:48.5%;width:11%;height:8%}

/* V14 actor frames and electrical failures are drawn only in their local regions. */
.room-life{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;image-rendering:pixelated;filter:saturate(.72)}
.room-screen,.room-sign-glow{display:none}
