/* Photographic architecture carries the atmosphere; controls stay outside the image. */
.themed-museum .museum-threshold{
 background:#14271f;color:#f4eddb;gap:0;
 padding:calc(64px + env(safe-area-inset-top,0px)) 24px calc(28px + env(safe-area-inset-bottom,0px));
 transition:opacity .65s .2s ease;
}
.threshold-view{
 position:relative;isolation:isolate;overflow:hidden;flex:1 0 190px;
 width:min(100%,1050px);min-height:190px;max-height:48svh;
 background:#24362c;
}
.threshold-space{
 position:absolute;left:50%;top:50%;width:max(100%,49svh);aspect-ratio:1.01123;
 background:url('/assets/museum-rooms.png') var(--room-position)/200% 200% no-repeat;
 transform:translate(-50%,-50%);transform-origin:50% 62%;
 transition:transform .9s cubic-bezier(.2,.6,.25,1);
}
.threshold-daylight{
 position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(90deg,#071b151c,transparent 55%),linear-gradient(0deg,#14271f59,transparent 40%);
 opacity:.7;transition:opacity .9s ease;
}
.themed-museum .museum-threshold .threshold-invitation{
 width:min(100%,650px);padding:24px 0 0;border:0;background:transparent;
 box-shadow:none;transition:opacity .25s ease;
}
.themed-museum .threshold-invitation h2{font-size:clamp(28px,5vw,44px);line-height:1.55;letter-spacing:.05em;margin:8px 0 10px}
.themed-museum .threshold-invitation .eyebrow{font-size:10px;letter-spacing:.16em;color:#d2bf91}
.themed-museum .threshold-invitation>p{font-size:14px;line-height:1.9;margin:0}
.themed-museum .threshold-invitation>small{font-size:12px;line-height:1.8;color:#ddd7c6}
.themed-museum .threshold-invitation .threshold-key{
 display:flex;flex-direction:row;justify-content:space-between;gap:24px;
 width:min(100%,330px);min-height:54px;padding:14px 20px;margin:20px auto 14px;
 background:#dfcc9f;color:#1b3026;border:1px solid #dfcc9f;box-shadow:none;
 font-size:15px;letter-spacing:.04em;
}
.threshold-arrow{font-size:22px;line-height:1}
.themed-museum .threshold-back{background:transparent;font-size:13px;padding:8px 0;left:24px}
.themed-museum.is-opening .museum-threshold{opacity:0;pointer-events:none}
.is-opening .threshold-space{transform:translate(-50%,-50%) scale(1.05)}
.is-opening .threshold-daylight{opacity:0}
.themed-museum.is-opening .threshold-invitation{opacity:0}
.themed-museum .threshold-loading{
 position:fixed;top:auto;bottom:calc(24px + env(safe-area-inset-bottom,0px));
 left:24px;right:24px;z-index:65;width:fit-content;max-width:calc(100% - 48px);
 margin:0 auto;padding:12px 18px;border:1px solid #bfa776;
 color:#fff2d5;background:#14271f;font-size:14px;line-height:1.8;pointer-events:none;
}
/* Only the architecture changes light; the artwork pixels remain untouched. */
.museum-crown .room-art-display::before{
 content:'';position:absolute;inset:-22px -18px;z-index:-1;pointer-events:none;
 background:radial-gradient(ellipse at 50% 0%,#f4dc9d59,transparent 72%);
 opacity:0;transition:opacity .9s ease;
}
.museum-crown.is-lit .room-art-display::before{opacity:1}
.museum-crown.is-lit .room-artwork{box-shadow:0 -12px 55px #f4dc9d26,7px 16px 24px #0006}
.first-room-visit.has-entered .room-art-display{animation:photographic-arrival .85s cubic-bezier(.2,.6,.25,1) both}
@keyframes photographic-arrival{from{opacity:.35;translate:0 8px}to{opacity:1;translate:0 0}}
@media(max-height:650px){.threshold-view{flex-basis:120px;min-height:120px}.themed-museum .museum-threshold .threshold-invitation{padding-top:18px}}
@media(prefers-reduced-motion:reduce){
 .themed-museum .museum-threshold,.themed-museum .threshold-space,.themed-museum .threshold-daylight,.themed-museum .threshold-invitation,.themed-museum .room-art-display::before{transition:none!important;animation:none!important}
 .first-room-visit.has-entered .room-art-display{animation:none!important}
 .is-opening .threshold-space{transform:translate(-50%,-50%)}
}
.museum-azure .room-artwork,.museum-azure.is-lit .room-artwork{filter:none}
.themed-museum.is-contemplating .room-scene-heading,.themed-museum.is-contemplating .room-whisper{opacity:1}
.themed-museum.is-contemplating .room-interior{filter:brightness(.45)}
