@font-face{font-family:Jua;src:url(media/Jua-brand.woff2) format('woff2');font-display:swap}
:root{font:500 16px/1.4 system-ui,"Malgun Gothic",sans-serif;color-scheme:light;--ink:#372d39;--cream:#fff3df;--ground:#514552;--pad:clamp(16px,3vw,48px);--edge:max(16px,3.1vh);--hud:0 1px 6px #22172c69}
*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink);overscroll-behavior-y:none}
button,a{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}a{text-decoration:none}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ffaf71;outline-offset:3px}
html{scrollbar-color:#a4939e #302934;scrollbar-width:thin;scrollbar-gutter:stable}
.tray-open{overflow:hidden}
.tray-open .shell{visibility:hidden}
.symbols{position:absolute;width:0;height:0;pointer-events:none}
#journey{height:560vh;height:560svh;position:relative}
#stage{position:fixed;inset:0;width:100%;height:100vh;height:100svh;overflow:clip;isolation:isolate;background:var(--ground) var(--studio-still) center/cover no-repeat}
#room,#world-ui{position:absolute;inset:0;width:100%;height:100%}
#room{display:block;opacity:0;transition:opacity .22s ease-out}
.room-ready #room{opacity:1}
#world-ui{pointer-events:none;overflow:clip;visibility:hidden}
#paper-mask{position:absolute;inset:0;pointer-events:none}
.room-ready #world-ui,.arrival-ready #world-ui{visibility:visible}
.surface{position:absolute;top:0;left:0;transform-origin:0 0;backface-visibility:hidden;pointer-events:none;will-change:transform}
#print-spot,#book-spot,#screen-spot{border:0;padding:0;background:transparent;cursor:zoom-in}
#print-spot{width:120px;height:160px}
#book-spot{width:160px;height:128px;visibility:hidden}
#screen-spot{position:absolute;display:none;top:0;left:0;transform-origin:0 0;width:160px;height:90px}
#print-spot:focus-visible,#book-spot:focus-visible,#screen-spot:focus-visible{outline:4px solid #fcd6b7;outline-offset:0}
#loading{position:absolute;left:50%;top:54%;transform:translate(-50%,-50%);color:var(--cream);display:flex;align-items:center;gap:9px;font-size:12px}
#loading i{width:9px;height:9px;border-radius:50%;background:#f2c2a7;animation:lilt 1.1s ease-in-out infinite alternate}
@keyframes lilt{to{opacity:.35;transform:scale(.75)}}
.room-ready #loading,.fallback #loading{display:none}
.shell {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  color: #fff6e6;
  --letter-shadow: 0 1px 2px #231a20e0, 0 1px 7px #38263e8a;
}
.shell a,.shell button{pointer-events:auto}
.shell button{border:0;background:none;padding:0}
.shell :is(a,button,[role=slider]):focus-visible{outline:2px solid #fff9e7;outline-offset:3px;box-shadow:0 0 0 3px #413640}
.mast,.foot{left:max(var(--pad),env(safe-area-inset-left));right:max(var(--pad),env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between}
.mast{top:max(var(--edge),env(safe-area-inset-top))}
#brand{color:#fff8e8;text-shadow:0 1px 1px #462939,0 2px 2px #55333cec,0 3px 7px #3e2235c2;line-height:1;font-family:Jua,sans-serif;font-weight:400;font-size:clamp(30px,2.7vw,46px);letter-spacing:-.06em;padding:6px 2px}
#brand span{display:inline-block;transform-origin:50% 90%}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  #brand:hover span{animation:jelly .74s infinite}
  #brand:hover span:nth-child(2){animation-duration:.83s;animation-delay:.075s}
  #brand:hover span:nth-child(3){animation-duration:.68s;animation-delay:.13s}
}
@keyframes jelly{0%,100%{transform:none}14%{transform:translateY(1px) scale(1.13,.83)}33%{transform:translateY(-8px) scale(.92,1.12)}53%{transform:translateY(-9px) scale(1.02,1)}78%{transform:translateY(1px) scale(1.12,.86)}}
.shell svg{display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1.2px #291e24a8)}
.mobile-caption{display:none}
#light,#channel,#scroll-hint{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:46px;color:inherit;text-shadow:var(--letter-shadow)}
#light svg{width:30px;height:30px;transition:transform .26s ease,color .26s ease;filter:drop-shadow(0 1px 2px #140d1abf)}
#channel{position:absolute;bottom:0;left:50%;transform:translateX(-50%)}
#channel svg{width:25px;height:25px;color:#29ffc1;filter:drop-shadow(0 1px 1.5px #152a26) drop-shadow(0 2px 5px #10292288)}
#channel[data-live="true"]::after{content:"";position:absolute;width:5px;height:5px;top:7px;right:5px;border-radius:50%;background:#fff6df;box-shadow:0 0 5px #3dffb7,0 0 1px #291c26}
.foot{min-height:46px;bottom:max(var(--edge),env(safe-area-inset-bottom))}
#scroll-hint{gap:7px;font-size:12px;font-weight:680}
#scroll-hint svg{width:17px;height:17px}
#stops {
  right: max(12px,1.15vw,env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  width: 101px;
  height: clamp(156px,29vh,244px);
}
.dial-scale {
  position:absolute;inset:0 0 0 auto;width:34px;
  display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;
  pointer-events:auto;cursor:default;touch-action:none;user-select:none;
  filter:drop-shadow(0 1px 1px #241a21c9) drop-shadow(0 0 2px #241a2161);
}
.dial-mark {
  display:block;width:100%;height:1px;flex:none;pointer-events:none;background:currentColor;
  transform-origin:right center;transform:scaleX(var(--length,.25));opacity:var(--density,.66);
}
.dial-mark[data-landmark]{height:2px}
:root[data-theme=light]:not([data-station=screen]) .shell{
  color:#533744;--letter-shadow:0 1px 2px #fff9ef,0 0 5px #ffefe0ce;
}
:root[data-theme=light]:not([data-station=screen]) :is(.dial-scale,.shell svg):not(#channel svg){
  filter:drop-shadow(0 1px 1px #fff4dfcf);
}
#stops a {
  position:absolute;right:36px;top:var(--at,50%);transform:translateY(-50%);
  display:flex;align-items:center;justify-content:flex-end;
  min-height:34px;min-width:44px;
  font-size:14px;font-weight:720;line-height:1.18;letter-spacing:-.035em;white-space:nowrap;
  text-shadow:var(--letter-shadow);user-select:none;cursor:default;
}
#stops a[href="#room"]{--at:10%}
#stops a[href="#notebook"]{--at:90%}
#stops a span{display:block;transform-origin:right center;transform:translateX(var(--label-shift,0px)) scale(var(--label-scale,.85));opacity:var(--label-opacity,.8)}
#stops a svg{display:none}
#stops :is(.dial-scale,a):focus {outline:none;box-shadow:none}
#stops a:focus-visible span{text-decoration:underline;text-underline-offset:4px}
#stops .dial-scale:focus-visible .dial-mark[data-landmark]{background:#ffe3b4;height:3px}
:root[data-theme=light]:not([data-station=screen]) #stops .dial-scale:focus-visible .dial-mark[data-landmark]{background:#813e60}
@media (forced-colors:active) {
  #stops .dial-scale:focus-visible .dial-mark[data-landmark]{background:Highlight}
}
@media (hover:hover){
  #light:hover svg{transform:translateY(-1px);color:white}
  #channel:hover svg{color:#a5ffdf}
  #stops a:hover span{opacity:1;text-decoration:underline;text-underline-offset:4px}
}
#scroll-hint[hidden],#screen-spot[hidden]{display:none!important}
#character-credit {position:absolute;left:0;bottom:8px;font-size:clamp(9px,.78vw,11px);line-height:1.3;letter-spacing:-.01em;text-shadow:var(--letter-shadow);max-width:36vw}
#character-credit[hidden],#lighting-options[hidden]{display:none}
#character-credit a {color:inherit;pointer-events:auto;text-underline-offset:2px}
#lighting-control{position:relative;display:flex}
#light{position:relative;z-index:1}
#lighting-options{
  position:absolute;left:50%;top:50%;width:0;height:0;pointer-events:none;
  --chip:#312835;--glyph:#fff6ef;--selected:#f4dce9;--selected-glyph:#51354a;
}
:root[data-theme=light] #lighting-options{--chip:#fff8f1;--glyph:#4a3941;--selected:#704757;--selected-glyph:#fff9ee}
#lighting-options [data-mode=system]{--x:-29px;--y:85px}
#lighting-options [data-mode=light]{--x:-75px;--y:56px}
#lighting-options [data-mode=dark]{--x:-94px;--y:7px}
#lighting-options button{
  position:absolute;top:-22px;left:-22px;width:44px;height:44px;
  display:grid;place-items:center;pointer-events:auto;touch-action:manipulation;
  transform:translate(var(--x),var(--y));
}
#lighting-options button span{
  display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  background:var(--chip);color:var(--glyph);box-shadow:0 1px 5px #31203038;
}
#lighting-options button[aria-checked=true] span{background:var(--selected);color:var(--selected-glyph)}
#lighting-options button:focus-visible{outline:none;box-shadow:none}
#lighting-options button:focus-visible span{outline:2px solid currentColor;outline-offset:2px}
:root[data-theme] .shell #lighting-options svg{width:18px;height:18px;filter:none}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
  /* Keep the mouse inside the open fan while crossing from the switch to an icon. */
  #lighting-options::before{content:"";position:absolute;right:0;top:-15px;width:105px;height:112px;pointer-events:auto;clip-path:polygon(0 13%,100% 0,100% 95%,63% 100%,15% 66%)}
  #lighting-options button:hover span{transform:scale(1.10)}
}
@media(prefers-reduced-motion:no-preference){
  #lighting-options button{animation:light-fan-open .18s cubic-bezier(.2,.8,.3,1) both}
  #lighting-options button span{transition:transform .12s ease}
}
@keyframes light-fan-open{from{opacity:0;transform:translate(0,0) scale(.65)}to{opacity:1;transform:translate(var(--x),var(--y))}}
@media(forced-colors:active){
  #lighting-options button span{border:1px solid ButtonText;background:ButtonFace;color:ButtonText}
  #lighting-options button[aria-checked=true] span{border-color:Highlight;background:Highlight;color:HighlightText;forced-color-adjust:none}
}
.mast:has(#lighting-options:not([hidden])){z-index:4}
#live-intro{position:fixed;inset:0;margin:0;padding:0;border:0;width:100vw;height:100dvh;max-width:none;max-height:none;color:#fff4df;background:#171117}
#live-intro video{width:100%;height:100%;object-fit:contain}
.intro-bar{position:absolute;bottom:var(--edge);left:var(--pad);right:var(--pad);display:flex;gap:8px;justify-content:center}
.intro-bar>*{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 18px;font-size:14px;border:1px solid #fff1dd45;background:#302731d9;color:#fff4e2;box-shadow:var(--hud);border-radius:99px}
:root{--still-view:wide;--still-day:url(room-preview.webp);--still-night:url(room-night-preview.webp);--studio-still:var(--still-day)}
:root[data-room=windowseat]{--still-day:url(windowseat-room-preview.webp);--still-night:url(windowseat-room-night-preview.webp)}
:root[data-room=attic]{--still-day:url(room/bedroom-arrival-wide-light.webp?v=51c36a106d5a1e5a);--still-night:url(room/bedroom-arrival-wide-dark.webp?v=d7c172a7fac95323)}
:root[data-theme=dark]{--studio-still:var(--still-night);--ground:#28222c}
:root:not([data-theme]) #stage{background-image:none}
@media(prefers-color-scheme:dark){:root:not([data-theme]){--studio-still:var(--still-night);--ground:#28222c}}
.no-script-links{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);background:#332830;color:#fff5e9;border-radius:8px;padding:10px 18px;white-space:nowrap}
.fallback #world-ui{visibility:visible}
.fallback #room{display:none}
/* Coarse primary input keeps the same controls when a phone rotates.
   Narrow desktop windows independently switch to this arrangement. */
@media(max-width:760px),(hover:none) and (pointer:coarse){
  :root{
    --pad:15px;--edge:14px;
    --nav-width:min(420px,88vw);
    --nav-bottom:max(9px,env(safe-area-inset-bottom));
    --nav-height:49px;
  }
  #brand{font-size:30px}
  .foot{left:0;right:0;bottom:var(--nav-bottom);height:var(--nav-height)}
  #scroll-hint,.dial-scale{display:none}
  #stops{
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;
    width:var(--nav-width);height:var(--nav-height);top:auto;right:auto;bottom:var(--nav-bottom);left:50%;transform:translateX(-50%);
  }
  #stops a,#channel,#light{
    height:var(--nav-height);min-width:44px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;
    font:650 11px/1.1 system-ui,"Malgun Gothic",sans-serif;letter-spacing:-.025em;white-space:nowrap;text-shadow:var(--letter-shadow);
  }
  #stops a{position:static;transform:none;min-height:44px}
  #stops a span{transform:none;opacity:1}
  #stops [href="#notebook"]{grid-column:4}
  #stops a svg{display:block;width:21px;height:21px}
  #stops [aria-current=true]{color:#fff7dc}
  :root[data-theme=light]:not([data-station=screen]) #stops [aria-current=true]{color:#622d42}
  #stops [aria-current=true] svg{transform:scale(1.14);stroke-width:2.25}
  #lighting-control{position:fixed;left:calc(50% + var(--nav-width)*.4);bottom:var(--nav-bottom);transform:translateX(-50%);width:calc(var(--nav-width)/5)}
  #light{width:100%}
  #lighting-options [data-mode=system]{--x:-39px;--y:-111px}
  #lighting-options [data-mode=light]{--x:-85px;--y:-87px}
  #lighting-options [data-mode=dark]{--x:-131px;--y:-50px}
  #light svg{width:23px;height:23px}
  #channel{width:calc(var(--nav-width)/5)}
  #channel svg{width:21px;height:21px}
  #channel[data-live="true"]::after{top:3px;right:calc(50% - 16px)}
  .mobile-caption{display:block}
  #character-credit{left:max(14px,env(safe-area-inset-left));bottom:calc(var(--nav-height) + 15px);max-width:min(220px,calc(100vw - 125px));font-size:9.5px}
}
@media (min-width:700px) and (max-width:760px), (min-width:700px) and (hover:none) and (pointer:coarse) {
  #character-credit{left:max(12px,env(safe-area-inset-left));bottom:9px;max-width:calc((100vw - var(--nav-width))/2 - 22px)}
}
@media(max-aspect-ratio:82/100){
  :root:not([data-room=attic]){--still-view:tall;--still-day:url(room-portrait-preview.webp);--still-night:url(room-portrait-night-preview.webp)}
  :root[data-room=windowseat]{--still-day:url(windowseat-room-portrait-preview.webp);--still-night:url(windowseat-room-portrait-night-preview.webp)}
}
@media(max-aspect-ratio:107/100){
  :root[data-room=attic]{--still-view:square;--still-day:url(room/bedroom-arrival-square-light.webp?v=e36b95355cc95cb7);--still-night:url(room/bedroom-arrival-square-dark.webp?v=5a9a880222de0d98)}
}
@media(max-aspect-ratio:87/100){
  :root[data-room=attic]{--still-view:tablet;--still-day:url(room/bedroom-arrival-tablet-light.webp?v=b177b6a5ba7baaa0);--still-night:url(room/bedroom-arrival-tablet-dark.webp?v=7eaf6ba4dd7c4c9d)}
}
@media(max-aspect-ratio:61/100){
  :root[data-room=attic]{--still-view:tall;--still-day:url(room/bedroom-arrival-tall-light.webp?v=ffb3db601a55e4b9);--still-night:url(room/bedroom-arrival-tall-dark.webp?v=0e1127365621fce8)}
}
@media(max-height:475px) and (orientation:landscape){
  :root{--nav-width:min(240px,88vw);--nav-bottom:max(3px,env(safe-area-inset-bottom));--nav-height:44px}
}
@media(prefers-reduced-motion:reduce){#loading i{animation:none}#room{transition:none}}
