.room-panorama{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:-2;touch-action:none;cursor:grab;outline-offset:-5px!important}.study-room.is-dragging,.is-dragging .room-panorama{cursor:grabbing}.panorama-active .room-art{visibility:hidden}.panorama-active .room-night,.panorama-active .physical-lamp,.panorama-active .local-lamp-light,.panorama-active .lamp-light,.panorama-active .door-opening{display:none!important}.panorama-active .hotspots{inset:0!important;width:100%!important;height:100%!important}.panorama-active .hotspot{margin:0!important;width:50px;height:50px}.panorama-active .hotspot:after{display:none!important}.panorama-active .hotspot-label{top:43px}.pano-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.pano-leaders line{stroke:#d7bb7e99;stroke-width:1}.room-camera-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #b7a98b;border-top:0;padding:10px 15px;background:#e9e0cf;color:#5b6452}.room-camera-controls>div:first-child{min-width:0}.room-camera-controls strong{display:block;font:17px StudyKai,KaiTi,serif}.room-camera-controls small{font-size:10px;color:#8b836b;display:block;margin-top:3px}.camera-buttons{display:flex;gap:5px;flex-shrink:0}.camera-buttons button{border:1px solid #c0ae86;background:#f4ead6;color:#687258;min-width:40px;min-height:42px;padding:7px 11px;border-radius:4px;font-size:12px}.camera-buttons button:first-child,.camera-buttons button:nth-child(3){font-size:20px}.room-locations{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px 12px;background:#f2eada;border:1px solid #cec2a6;border-top:0}.room-locations span{color:#a9956c;font-size:10px;margin-right:5px}.room-locations button{border:1px solid #d5c8ac;background:transparent;color:#81755a;font-size:11px;min-height:34px;padding:6px 10px;border-radius:4px}.room-locations button:hover,.camera-buttons button:hover{border-color:#a48c56;background:#e9d8b4}.room-camera-controls~.inventory-panel{margin:0 8px}.panorama-active .room-action{font-size:10px}.panorama-active .win-scene{z-index:5}.panorama-active .scene-caption{z-index:3}.panorama-active .hotspot.current .hotspot-ring{animation:none;box-shadow:0 0 20px #f6d59b77}@media(max-width:800px){.room-camera-controls{padding:9px 11px;align-items:center}.room-camera-controls strong{font-size:15px}.room-camera-controls small{font-size:9px;max-width:160px;line-height:1.5}.camera-buttons{gap:4px}.camera-buttons button{min-width:38px;min-height:44px;padding:7px 9px;font-size:11px}.panorama-active .hotspot{width:46px;height:46px}}@media(max-width:500px){.study-room.panorama-active{aspect-ratio:4/3}.room-camera-controls{display:block}.room-camera-controls>div:first-child{display:flex;align-items:center;gap:10px;margin-bottom:8px}.room-camera-controls small{max-width:none;font-size:9px;margin:0}.camera-buttons{justify-content:space-between}.camera-buttons button{min-height:44px;min-width:44px}.camera-buttons #camera-home{flex:1}.room-locations{gap:5px;padding:8px 10px}.room-locations span{display:none}.room-locations button{font-size:10px;min-height:40px;flex:1 0 28%;padding:6px}.panorama-active .hotspot-label{font-size:9px;top:39px}.panorama-active .scene-caption>span{font-size:11px}}@media(prefers-reduced-motion:reduce){.room-panorama{scroll-behavior:auto}}

/* Keep the flat fallback equally legible before lighting the puzzle lamp. */
.study-room:not(.panorama-active):not(.is-lit) .room-art{filter:brightness(1.14) saturate(.95)}.study-room:not(.panorama-active).is-lit .room-art{filter:brightness(1.22) saturate(1)}.study-room:not(.panorama-active) .room-night{opacity:.3}
