@font-face{font-family:Instrument;src:url('./assets/instrument-serif-italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:Plex;src:url('./assets/plex-mono.ttf') format('truetype');font-weight:400;font-display:swap}
:root{color-scheme:dark;--text:#f6f5ff;--secondary:#d2d8ee;--hair:#e3e7ff48;--ice:#c9d9ff;--edge:clamp(20px,3.2vw,62px);font-family:'Helvetica Neue','Hiragino Sans','Yu Gothic',Arial,sans-serif;color:var(--text);background:#161d38}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button{color:inherit;font:inherit;cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent}button:focus-visible,canvas:focus-visible{outline:2px solid #eef4ff;outline-offset:4px}canvas:focus-visible{outline-offset:-3px}
[hidden]{display:none!important}#room{height:100vh;height:100dvh;width:100%;position:relative;isolation:isolate;overflow:hidden}
#world,#art,.vignette,#points{position:absolute;inset:0;width:100%;height:100%}
#art{background:#121a37 url('./assets/room/stills/wide-door.webp') no-repeat center/cover}
@media(max-aspect-ratio:4/5){#art{background-image:url('./assets/room/stills/tall-door.webp')}}
#world{display:block;touch-action:none;cursor:grab;transition:opacity .5s}#world.dragging{cursor:grabbing}
.loading #world,.fallback #world{opacity:0;pointer-events:none}
.vignette{pointer-events:none;background:radial-gradient(ellipse 39% 29% at 98% 103%,#08102b91,transparent),radial-gradient(ellipse 27% 31% at 0% 96%,#080d2978,transparent),linear-gradient(180deg,#080e2628,transparent 15%,transparent 86%,#070c2624);z-index:1}
header{display:flex;align-items:center;justify-content:space-between;position:absolute;z-index:4;inset:max(20px,env(safe-area-inset-top)) var(--edge) auto;pointer-events:none}
header button{pointer-events:auto}
#home{display:flex;align-items:center;gap:10px;font-size:clamp(23px,2vw,32px);font-weight:620;letter-spacing:-.073em;text-shadow:0 2px 12px #111936;padding:5px 0}
.brand-star{width:.86em;height:.94em;background:linear-gradient(135deg,#fff 23%,#b7cafa 63%,#fdedff);clip-path:polygon(50% 0,60% 35%,83% 17%,67% 41%,100% 50%,67% 58%,82% 82%,59% 66%,50% 100%,42% 65%,17% 82%,34% 58%,0 50%,35% 40%,17% 17%,41% 35%)}
.tools{display:flex;align-items:center;gap:8px}.pill,.help,.action,.guide-action,.close{border:1px solid var(--hair);background:#1017318f;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.pill,.help{height:40px;border-radius:22px;display:inline-flex;align-items:center;justify-content:center}.pill{gap:9px;padding:0 14px;font-size:.83rem}.help{width:40px;font:italic 1.35rem Georgia,serif}.pill:hover,.help:hover,.action:hover,.guide-action:hover{background:#2c3656d9;border-color:#e3eaffae}
.wave{display:flex;gap:2px;height:13px;align-items:center}.wave i{background:#f1eeff;width:2px;border-radius:1px;height:4px}.wave i:nth-child(2){height:9px}.wave i:nth-child(3){height:13px}.wave i:nth-child(4){height:7px}
[aria-pressed=true] .wave i{animation:pulse .67s infinite alternate ease-in-out}.wave i:nth-child(even){animation-delay:-.4s}@keyframes pulse{to{transform:scaleY(.40)}}
#points{pointer-events:none;z-index:2}.point{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border-radius:50%;width:43px;height:43px;display:grid;place-items:center;padding:0}
.point:before,.point:after{content:'';grid-area:1 / 1}.point:before{width:18px;height:18px;border:1px solid #eff5ffb8;box-shadow:0 0 12px #93acfb66;background:#171f496b;border-radius:50%}.point:after{width:7px;height:7px;background:#fff;clip-path:polygon(50% 0,64% 36%,100% 50%,65% 65%,50% 100%,36% 66%,0 50%,35% 36%)}
.point span{opacity:0;position:absolute;top:calc(100% - 3px);left:50%;transform:translate(-50%,-3px);white-space:nowrap;background:#0c1634dd;border:1px solid var(--hair);padding:5px 9px;border-radius:4px;font-size:.78rem;transition:.15s;pointer-events:none}
.point:hover:before,.point:focus-visible:before{width:24px;height:24px}.point:hover span,.point:focus-visible span{opacity:1;transform:translate(-50%,0)}
.bottom{position:absolute;inset:auto var(--edge) max(21px,env(safe-area-inset-bottom));z-index:3;pointer-events:none;text-shadow:0 1px 14px #080c26a6}
.caption{display:flex;align-items:flex-end;gap:22px;margin-bottom:16px}.caption-copy h1{font:italic 400 clamp(2.6rem,4.2vw,5.2rem)/.98 Instrument,Georgia,serif;letter-spacing:-.045em;margin:0}.caption-copy h1 em{font:inherit}
.caption-copy p{margin:8px 0 0;font-size:.84rem;line-height:1.65;letter-spacing:.035em;color:#e0e5f4}.dot{margin:0 .65em;color:#a8b8de}
#places{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;pointer-events:auto;width:fit-content;border-top:1px solid #dce4ff66;padding-top:6px}
#places button{position:relative;padding:8px 15px 8px 0;margin-right:14px;font-size:.86rem;min-height:38px;text-shadow:0 1px 6px #050b28;transition:color .15s}
#places button::after{content:'';position:absolute;right:0;top:50%;width:2px;height:2px;background:#dfe6ff9e;border-radius:50%}#places button:last-child{padding-right:0;margin-right:0}#places button:last-child::after{display:none}
#places button:hover,#places button[aria-current]{color:white;text-decoration:underline;text-underline-offset:5px}
#actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;pointer-events:auto;padding-bottom:2px}
.action,.guide-action{border-radius:5px;padding:8px 13px;min-height:39px;font-size:.84rem}.action.aux{background:#141a345e}
#loading-note{display:none;position:absolute;inset:48% auto auto 50%;transform:translate(-50%,-50%);padding:10px 16px;border-radius:4px;background:#111735da;font-size:.85rem;z-index:5}
.loading #loading-note{display:block}.loading #points{visibility:hidden}
dialog{color:var(--text);border:1px solid #8792bd78;background:#19213af5;border-radius:13px;padding:0;width:min(410px,calc(100% - 34px));max-height:85dvh;box-shadow:0 20px 115px #01051f83}
dialog::backdrop{background:#060c20a8;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--hair);padding:14px 17px 12px 23px}
.dialog-head h2{font-size:1.08rem;font-weight:520;margin:0}.close{border-radius:50%;width:36px;height:36px;font-size:1.4rem;line-height:1}.guide-body{padding:4px 23px 23px}.guide-body dl{margin:0 0 18px}.guide-body dl div{padding:12px 0;border-bottom:1px solid #bdc8eb33}.guide-body dt{font-weight:600;font-size:.93rem;margin:0 0 4px}.guide-body dd{margin:0;line-height:1.65;color:var(--secondary);font-size:.89rem}
#art-view{width:min(95vw,1550px);max-height:94dvh;background:#0b1024;border:0;border-radius:5px}#art-view img{display:block;width:100%;max-height:90dvh;object-fit:contain}#art-view .close{position:absolute;top:12px;right:12px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.no-js{position:absolute;inset:48% 8% auto;text-align:center}
@media(max-width:640px){:root{--edge:18px}header{top:max(15px,env(safe-area-inset-top))}.caption{display:block;margin-bottom:11px}.caption-copy h1{font-size:clamp(2.5rem,10vw,3.6rem)}.caption-copy p{font-size:.8rem;margin-top:6px}.bottom{bottom:max(12px,env(safe-area-inset-bottom))}#places{max-width:100%;gap:0;padding-top:4px}#places button{font-size:.79rem;padding-right:9px;margin-right:8px;min-height:36px}#actions:not([hidden]){padding-top:10px}.pill{height:38px}.help{width:38px;height:38px}}
@media(max-height:480px){.bottom{bottom:7px}.caption{margin-bottom:5px}.caption-copy h1{font-size:2.2rem}.caption-copy p{margin:3px 0 0}.point{width:35px;height:35px}header{top:9px}#places button{min-height:32px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep the menu anchored as the camera reframes its subject. */
#world{cursor:default;touch-action:manipulation}
.bottom{display:flex;align-items:flex-end;justify-content:space-between;flex-direction:row-reverse;gap:24px}
.caption{min-width:0;flex-direction:column;align-items:flex-end;text-align:right;gap:10px;margin:0 0 5px}
.caption-copy h1{font-size:clamp(2.6rem,3.85vw,4.65rem)}
#places{display:grid;flex:0 0 auto;border:0;padding:0;gap:0}
#places button{display:flex;gap:10px;align-items:center;width:fit-content;min-height:29px;margin:0;padding:3px 8px 3px 0;font-size:.87rem;letter-spacing:.035em;line-height:1.4}
#places button:before{content:'';width:6px;height:6px;border:1px solid #e3eaffb3;transform:rotate(45deg);transition:.2s}
#places button::after{display:none}#places button:hover,#places button[aria-current]{text-decoration:none;color:white}#places button:hover:before,#places button[aria-current]:before{background:white;box-shadow:0 0 8px #cad9ff}
.caption-copy p{font-size:.85rem}.sky-icon{font:1.16rem Georgia,serif;line-height:1}
#actions{justify-content:flex-end}
#art.detail{background-size:auto max(148%,100vw)}
@media(max-width:640px){.bottom{gap:8px;align-items:flex-end}.caption{width:58%;margin:0 0 4px}.caption-copy h1{font-size:clamp(2rem,8.8vw,3rem)}.caption-copy p{line-height:1.5;font-size:.77rem}#places button{font-size:.8rem;min-height:29px}#actions:not([hidden]){padding:0}.action{padding:6px 9px;font-size:.78rem;min-height:33px}.pill{gap:6px;padding:0 10px}.tools{gap:5px}.help{width:36px;height:36px}.pill{height:36px}.vignette{background:linear-gradient(0deg,#080e27b8,transparent 36%,transparent 85%,#080e2759)}}
@media(max-width:350px){#light-name{display:none}.caption-copy p{font-size:.71rem}#places button{gap:7px}}
@media(max-height:480px){#places button{min-height:23px;font-size:.76rem}.caption-copy h1{font-size:2.2rem}}
header button{white-space:nowrap;flex-shrink:0}
@media(max-width:640px){
  header .tools{flex-shrink:0}
  #home{font-size:1.4rem;gap:6px}
  .pill{padding-inline:9px}
}
@media(max-width:430px){
  #light-name{display:none}
  .tools #light{width:36px}
}
@media(max-width:380px){
  header{inset-inline:12px}
  #sound-name,#light-name{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .tools .pill{width:36px}
}

#viewfinder{z-index:2;pointer-events:none;position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);width:min(79vw,86.66vh);width:min(79vw,86.66dvh);aspect-ratio:4/3;box-sizing:border-box;border:1px solid #edf2ddc9;box-shadow:0 0 0 160vmax #10152676,inset 0 0 0 1px #20243155}
.af-frame{position:absolute;left:50%;top:50%;width:14%;height:13%;transform:translate(-50%,-50%);border:1px solid #d2ebd5ba;clip-path:polygon(0 0,23% 0,23% 5%,77% 5%,77% 0,100% 0,100% 28%,98% 28%,98% 72%,100% 72%,100% 100%,77% 100%,77% 95%,23% 95%,23% 100%,0 100%,0 72%,2% 72%,2% 28%,0 28%)}
.finder-readout{position:absolute;left:12px;bottom:10px;font:11px Plex,monospace;color:#eff1d6;text-shadow:0 1px 3px #17191b}
