:root{color-scheme:dark;--night:#0e202e;--ink:#172d38;--paper:#fbf8ef;--orange:#ff9565;--pale:#d9eee7;--line:#ffffff30;font-family:"Pretendard Variable",Pretendard,"Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--night);color:var(--paper);overflow:hidden}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a{font:inherit}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #f56b35;outline-offset:3px}button{border:0;background:none}button:disabled{opacity:.4;cursor:default}.bar{height:60px;background:#102431;display:flex;align-items:center;gap:18px;padding:0 clamp(14px,3.5vw,65px);border-bottom:1px solid var(--line);position:relative;z-index:5}.brand{display:flex;align-items:center}.brand img{width:106px;height:auto;display:block}.divide{height:17px;width:1px;background:var(--line)}.bar h1{font-size:16px;font-weight:720;letter-spacing:-.06em;margin:0}.bar nav{margin-left:auto;display:flex;gap:8px;align-items:center}.bar nav>*{padding:8px 15px;min-height:38px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:30px;font-size:14px;font-weight:650}.bar nav>*:hover,.planet-map:hover{background:#29404c}.icon-label{gap:8px}.hamb{height:8px;width:15px;border-block:1.5px solid currentColor}.bar nav .icon-label{border-color:transparent}.inline-icon,[data-icon]{display:inline-flex;align-items:center;justify-content:center}.inline-icon svg,[data-icon] svg{width:20px;height:20px}#stage{height:calc(100vh - 60px);height:calc(100dvh - 60px);position:relative;isolation:isolate}#planet,#street,#globe,#gameCanvas{position:absolute;inset:0;width:100%;height:100%}#planet{background:radial-gradient(ellipse at 57% 43%,#234852 0,#142d3d 42%,#0b182a 100%);overflow:hidden}#globe{touch-action:none}#globe canvas{display:block;touch-action:none}.planet-title{pointer-events:none;position:absolute;left:clamp(22px,5vw,110px);top:clamp(27px,7.4vh,100px);text-shadow:0 2px 15px #12263299}.overline,.launch small,.street-year small,.dialog-top small,.near small{font-size:12px;line-height:1.45;letter-spacing:.13em;font-weight:750}.overline{color:#b9d6ce;display:flex;gap:9px;align-items:center}.overline i{width:23px;height:2px;background:#ffa679}.planet-title h2{font-size:clamp(39px,5vw,88px);line-height:1.09;letter-spacing:-.085em;margin:11px 0 7px;font-weight:800}.planet-title h2 span{color:var(--orange)}.planet-title p{color:#d5e5df;font-size:clamp(15px,1.5vw,21px);margin:0;font-weight:510;letter-spacing:-.045em}.planet-map,.street-tools button{display:flex;align-items:center;gap:7px;border-radius:50px;background:#132b37eb;border:1px solid #b5d2cb50;padding:10px 15px;font-weight:650;font-size:14px}.planet-map{position:absolute;right:clamp(16px,3vw,54px);top:22px}.planet-bottom{position:absolute;z-index:1;bottom:clamp(16px,4vh,62px);left:clamp(18px,5vw,105px);right:clamp(18px,5vw,105px);display:flex;align-items:end;justify-content:space-between;gap:24px;pointer-events:none}.planet-bottom>*{pointer-events:auto}.launch{border-left:2px solid #ff9565;padding:0 0 0 16px;text-shadow:0 2px 14px #0a1625}.launch small{color:#bcd9d2;display:block;letter-spacing:.04em}.launch strong{display:flex;align-items:baseline;gap:10px;margin:1px 0 13px;line-height:1.1}.launch b,.street-year strong,.card-year{font-family:"Arial",sans-serif;font-weight:850;letter-spacing:-.065em;font-variant-numeric:tabular-nums}.launch b{font-size:clamp(35px,4vw,70px)}.launch strong>span{font-size:clamp(15px,1.45vw,22px);letter-spacing:-.055em}.accent,.soft,.quiet-button,.link-row a,.link-row button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:100px;font-size:14px;font-weight:730;padding:10px 17px;line-height:1.35}.accent{background:var(--orange);color:#17292e}.accent:hover{background:#ffb190}.quiet-button{border:1px solid #d8eee546;background:#102431bb;margin-left:5px}.soft,.link-row a,.link-row button{color:var(--ink);background:white;border:1px solid #b6c7c1}.soft:hover,.link-row a:hover,.link-row button:hover{background:#e6f1eb}.scrubber{display:flex;gap:10px;align-items:center;padding:10px 12px;background:#0e2632df;border:1px solid #a3c6c645;border-radius:14px;min-width:min(32vw,465px);box-shadow:0 6px 28px #02111c25}.scrubber button{border:1px solid #b9d9d44d;border-radius:50%;width:36px;height:36px;font-size:21px;line-height:1}.timeline{flex:1}.timeline label{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#d8e8e3}.timeline label span{font-family:monospace;color:#b1c9c6}.timeline input{width:100%;margin:6px 0 0;accent-color:var(--orange);cursor:pointer}#gameCanvas{background:#b4deda;touch-action:none;display:block}#gameLoading{position:absolute;inset:0;display:grid;place-content:center;background:#122936;color:#f4f0e3;z-index:3}.street-year{position:absolute;left:clamp(12px,3vw,52px);top:22px;background:#102b36ec;border:1px solid #bad3c359;border-radius:13px;padding:11px 19px 13px;min-width:115px;pointer-events:none;box-shadow:0 6px 20px #23302c23}.street-year small{color:#ffc392;letter-spacing:.04em}.street-year strong{display:block;font-size:clamp(34px,3.8vw,54px);line-height:1.03}.street-year>span{font-size:14px;color:#d0e1d9}.street-tools{position:absolute;right:clamp(12px,3vw,52px);top:22px;display:flex;gap:6px}.street-tools button:last-child{padding-inline:14px}.mini{position:absolute;bottom:22px;left:clamp(12px,3vw,52px);width:114px;padding:4px;background:#102737e8;border:1px solid #d8e7d58a;border-radius:15px;overflow:hidden;box-shadow:0 4px 20px #12273a39}.mini span{display:block;width:100%;aspect-ratio:1}.mini b{font-size:12px;display:block;padding:1px 0 4px}.near{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:13px;padding:7px 13px 7px 7px;background:#102b36f6;border:1px solid #d5e7d47a;border-radius:12px;text-align:left;box-shadow:0 5px 18px #15313a30}.near img{width:65px;height:43px;object-fit:cover;border-radius:6px}.near small,.near b{display:block}.near small{color:#f8b98e;letter-spacing:.04em}.near b{font-size:15px;white-space:nowrap}.near kbd{border:1px solid #c6d8d58a;border-radius:4px;padding:3px 6px}#stick{display:none;position:absolute;bottom:22px;left:18px;width:94px;height:94px;border-radius:100%;border:2px solid #fff8;background:#102b3675;touch-action:none;place-items:center}.thumb{width:36px;height:36px;background:#fff9;border:1px solid #fff9;border-radius:50%}
dialog{padding:0;border:none;border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 30px 120px #0007;width:min(620px,calc(100% - 24px));max-width:none;max-height:min(88dvh,900px);overflow:auto;overscroll-behavior:contain}dialog[open]{animation:appear .18s ease-out}dialog::backdrop{background:#091b28a9;backdrop-filter:blur(4px)}dialog.map-panel,dialog.page-panel{width:min(900px,calc(100% - 24px))}.dialog-shell{padding:clamp(17px,3vw,30px)}.dialog-top{display:flex;align-items:start;gap:12px;justify-content:space-between;margin-bottom:18px}.dialog-top small{display:block;color:#637a75;letter-spacing:.07em}.dialog-top h2{font-size:clamp(23px,3vw,38px);letter-spacing:-.062em;line-height:1.23;margin:4px 0 0}.dialog-top>button{width:39px;height:39px;flex:none;border-radius:50%;border:1px solid #b9c9c3;font-size:24px;line-height:1;background:#fff}.shot{margin:0}.shot img{display:block;width:100%;max-height:38vh;object-fit:contain;background:#172b33;border-radius:12px}.shot figcaption{font-size:12px;color:#64736f;margin-top:6px}.story{font-size:16px;line-height:1.7;word-break:keep-all;margin:13px 0}.link-row{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.link-row .accent{border:none;background:var(--orange)}.section-title{font-size:16px;margin:17px 0 9px}.crew-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.crew-choice{position:relative;min-height:81px;border:1px solid #c2cec7;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;background:#e7eee6;color:var(--ink);font-weight:700}.crew-choice svg{width:30px;height:30px}.crew-choice[aria-pressed=true]{background:#fbe4cd;border:2px solid #bb602e}.crew-choice[aria-pressed=true]::after{content:'✓';position:absolute;right:8px;top:3px;color:#985128}.guide-talk{display:flex;align-items:baseline;gap:12px;background:#e1eee4;padding:13px 15px;border-radius:12px;margin:0 0 15px;font-size:15px;line-height:1.55}.guide-talk b{white-space:nowrap;color:#24594b}.year-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:6px;margin:10px 0}.year-list button{border:1px solid #cdd4c7;border-radius:8px;padding:9px 5px;color:#284137;font-weight:700;background:#fff}.year-list button[aria-current=true]{background:#284137;color:#fff}.directory{display:grid;grid-template-columns:repeat(2,1fr);gap:13px 18px}.directory h3,.garage-card b{font-size:16px}.directory h3{margin:0 0 7px}.directory button,.directory a{display:block;padding:8px 0;color:#315a54;font-size:15px;text-align:left;text-decoration:underline;text-underline-offset:3px}.directory>div{border-top:1px solid #c7d2ca;padding-top:10px}.map-wrap{max-width:570px;margin:auto}.map-summary,.garage-note{color:#516762;font-size:14px;line-height:1.55}.page-frame{border:1px solid #cad4ce;border-radius:12px;background:white;width:100%;height:57dvh;display:block;margin-bottom:10px}.garage-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.garage-card{border:1px solid #c7d1c8;background:#fff;border-radius:12px;padding:0;overflow:hidden;text-align:left;color:#223b40}.garage-card img{width:100%;aspect-ratio:1.62;object-fit:cover;display:block}.garage-card b{display:block;padding:10px}.help-lines{padding-left:20px;line-height:1.85}.dialog-shell details summary{padding:11px 0;cursor:pointer;font-weight:700}@keyframes appear{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(pointer:coarse){#stick{display:grid}.mini{left:auto;right:12px;width:76px;bottom:12px}.near{bottom:16px}.near kbd{display:none}}
@media(max-width:650px){.bar{height:52px;padding:0 10px;gap:8px}.brand img{width:63px}.bar h1{font-size:14px;white-space:nowrap}.bar nav{gap:3px}.bar nav>*{font-size:12px;min-height:34px;padding:6px 8px}.wide{display:none}.bar nav .icon-label{padding:8px 6px}.divide{height:13px}#stage{height:calc(100dvh - 52px)}.planet-title{top:19px;left:18px}.planet-title h2{font-size:36px;margin:5px 0 3px}.planet-title p{font-size:14px}.overline{font-size:10px}.planet-map{right:10px;top:16px;padding:7px 10px;font-size:12px}.planet-bottom{left:14px;right:14px;bottom:max(12px,env(safe-area-inset-bottom));gap:12px;flex-direction:column;align-items:stretch}.launch{padding-left:10px;display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center}.launch small{flex:0 0 100%;font-size:11px}.launch strong{margin:0 auto 0 0;gap:6px}.launch b{font-size:30px}.launch strong>span{font-size:13px}.launch .accent,.launch .quiet-button{font-size:12px;min-height:35px;padding:7px 9px;margin:0;gap:4px}.launch .accent svg{width:16px}.scrubber{padding:5px 8px;min-width:0;border-radius:10px}.scrubber button{width:30px;height:30px;font-size:17px}.timeline input{margin:2px 0 0}.timeline label{font-size:11px}.street-year{left:10px;top:11px;padding:7px 10px 9px;min-width:82px}.street-year strong{font-size:31px}.street-year small,.street-year>span{font-size:11px}.street-tools{right:10px;top:10px}.street-tools button{padding:8px 10px;font-size:12px}.near{max-width:calc(100% - 177px);gap:5px;padding:6px;border-radius:8px;left:52%}.near img{width:36px;height:33px}.near b{font-size:12px;white-space:normal;line-height:1.18}.near small{font-size:10px}.directory{gap:10px}.mini{width:66px}.link-row>*{font-size:13px}.dialog-top{margin-bottom:12px}.guide-talk{gap:8px}.crew-choice{min-height:70px}.dialog-shell{padding:16px}.garage-grid{gap:8px}}
@media(max-height:550px) and (min-width:600px){.bar{height:45px}#stage{height:calc(100dvh - 45px)}.planet-title{top:12px}.planet-title h2{font-size:34px}.planet-bottom{bottom:8px}.launch b{font-size:32px}.launch strong{margin-bottom:5px}.launch small{font-size:10px}.mini{width:68px}.planet-map{top:8px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
.greeting{position:absolute;z-index:2;left:clamp(18px,5vw,105px);bottom:clamp(155px,24vh,280px);display:flex;align-items:flex-start;max-width:260px;background:#f1f3df;color:#203e3d;border:1px solid #c1d7c7;border-radius:13px 13px 13px 3px;box-shadow:0 6px 22px #0718243b}.greeting>button:first-child{display:flex;gap:8px;align-items:center;text-align:left;padding:10px 7px 10px 10px}.greeting b,.greeting #hello{display:block}.greeting b{color:#376b5d;font-size:12px}.greeting #hello{font-size:13px;line-height:1.35;font-weight:600}.greeting #hush{font-size:16px;padding:4px 7px 3px 3px}.bot-face{height:27px;width:30px;flex:none;position:relative;display:flex;align-items:center;justify-content:center;gap:4px;border:3px solid #81b7aa;border-radius:8px;background:#2a4748}.bot-face i{width:3px;height:6px;border-radius:2px;background:#fbe5ab}.bot-face:before{content:'';position:absolute;left:12px;top:-7px;height:6px;border-left:2px solid #548b83}.greeting.folded{border-radius:50px}.greeting.folded #hello,.greeting.folded #hush{display:none}.greeting.folded>button:first-child{padding:6px 12px 6px 6px}.greeting.folded b{font-size:13px}#stage[data-view=street] .greeting{left:auto;right:clamp(12px,3vw,52px);bottom:110px}.crew-choice .crew-role{font-size:12px;font-weight:550;color:#557067}.era-line{display:flex;gap:8px;flex-wrap:wrap;margin:7px 0 15px;font-size:12px;color:#4c625b}.era-line span{display:flex;align-items:center;gap:5px}.era-line i{width:8px;height:8px;border-radius:50%;background:var(--swatch)}@media(max-width:650px){.greeting{max-width:188px;left:14px;bottom:140px}.greeting>button:first-child{padding:6px;gap:5px}.greeting #hello{font-size:11px}.greeting b{font-size:11px}.bot-face{transform:scale(.85)}#stage[data-view=street] .greeting{bottom:99px;right:10px}}@media(max-height:560px){.greeting{bottom:112px}.greeting #hello{max-width:150px}}

.bar nav .sound-control{min-height:36px;width:36px;padding:6px;border:0}.sound-glyph{width:19px;height:19px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3zM16 9q3 3 0 6m3-9q6 6 0 12'/%3E%3C/svg%3E") center/contain no-repeat}.sound-control[aria-pressed=false]{opacity:.65;position:relative}.sound-control[aria-pressed=false]::after{content:'';position:absolute;width:23px;border-bottom:2px solid currentColor;transform:rotate(-45deg)}@media(max-width:650px){.bar nav .sound-control{width:26px;min-height:32px;padding:4px}}
/* Street signage and exhibition navigation share the same playable viewport. */
#gameLoading{background:linear-gradient(#c3e3e5,#e6e6c9 58%,#9fb58d);color:#294b3f}
.street-year{background:#f7f4e8f4;color:#203a34;border:1px solid #ffffff85;border-radius:9px;padding:13px 17px 14px;box-shadow:0 4px 15px #24432e26}.village-sign{font-size:17px;font-weight:800;letter-spacing:-.06em;border-bottom:1px solid #b6c3ac;margin:0 0 7px;padding-bottom:6px}.street-year small{color:#627761}.street-year>span{color:#395646}.street-year strong{font-size:clamp(31px,3.7vw,52px)}
.street-tools button{background:#fbf6eaf4;color:#204436;border:1px solid #c6d1bd;box-shadow:0 4px 16px #27312b16}.field-visit{position:absolute;left:clamp(12px,3vw,52px);top:183px;display:flex;align-items:center;gap:7px;padding:8px 12px;font-weight:700;font-size:13px;min-height:36px;border-radius:40px;background:#284a3fee;color:white;border:1px solid #cedbca9c}.movement-hint{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:#203a35d9;color:#fff8e3;border-radius:30px;padding:6px 14px;font-size:12px;text-align:center;white-space:nowrap;pointer-events:none}.touch-hint{display:none}.near:not([hidden])~.movement-hint{bottom:90px}.hill-map{height:clamp(245px,42dvh,420px);overflow:hidden;border-radius:16px;background:#c5dbce;touch-action:none}.map-shortcuts{margin-block:11px}.exhibit-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.scene-card{overflow:hidden;padding:0 0 10px;text-align:left;background:white;color:var(--ink);border-radius:12px;border:1px solid #c2d0c3}.scene-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.scene-card b,.scene-card small{display:block;margin:7px 10px 0}.scene-card small{color:#587066;line-height:1.45}.production-note{border-left:2px solid #77a58d;padding-left:12px;color:#405a51}.garage-card[aria-pressed=true]{outline:2px solid #53896c}.crew-grid{grid-template-columns:repeat(4,1fr)}.crew-choice{min-height:112px}.crew-choice svg{width:38px;height:38px}.type-dino{background:#daead3}.type-dog{background:#f1e0c5}.type-roboDog{background:#dce6e9}.type-robot{background:#e4dedf}.movement-hint{bottom:88px}.near{max-width:min(65%,460px)}.bar h1{white-space:nowrap}#panelBody>.link-row{margin-top:12px}#stage[data-view=street] .greeting{bottom:24px}.greeting{max-width:230px}
@media(max-width:650px){.village-sign{font-size:13px;padding-bottom:4px;margin-bottom:4px}.street-year{padding:8px 11px}.street-year strong{font-size:29px}.field-visit{top:110px;left:10px;padding:6px 8px;font-size:11px;min-height:31px;gap:3px}.field-visit svg{width:15px}.crew-grid{grid-template-columns:1fr 1fr}.crew-choice{min-height:79px}.movement-hint{bottom:100px;max-width:calc(100% - 32px);white-space:normal;width:max-content;font-size:11px;padding:4px 8px}.street-tools{gap:3px}.street-tools button{gap:4px}.greeting{max-width:165px}.near{max-width:calc(100% - 172px)}#stage[data-view=street] .greeting{bottom:auto;top:54px}}
@media(pointer:coarse){.desk-hint{display:none}.touch-hint{display:inline}#stage[data-view=street] .greeting{bottom:auto;top:75px}}
@media(pointer:coarse) and (max-width:650px){#stage[data-view=street] .greeting{top:54px}}
@media(max-width:390px){.bar .brand img{width:50px}.bar .divide{display:none}.field-visit{top:106px}.bar nav>*{padding-inline:6px}.greeting{max-width:134px}.street-tools button{padding:7px}.street-tools svg{width:16px}}

/* Keep the centre of the walking view clear while every thumb control stays reachable. */
.greeting:has(#guideSuggestions){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.greeting #chatGreeting{grid-column:1;grid-row:1;min-width:0}
.greeting #hush{grid-column:2;grid-row:1;min-width:36px;min-height:36px}
#guideSuggestions{grid-column:1/-1;display:flex;gap:5px;flex-wrap:wrap;padding:0 7px 7px}
#guideSuggestions button{min-width:0;max-width:100%;padding:5px 9px;border-radius:13px;border:1px solid #b6c8b7;background:#fffbed;color:#284d40;font-size:12px;font-weight:650;overflow-wrap:anywhere}
.greeting.folded #guideSuggestions{display:none}
#flightControls{position:absolute;z-index:2;right:max(12px,env(safe-area-inset-right));bottom:max(112px,calc(env(safe-area-inset-bottom) + 107px));display:grid;gap:5px}
#flightControls[hidden],#guideSuggestions[hidden]{display:none}
#flightControls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #c6d1bd;border-radius:13px;background:#fff9eaf2;color:#204436;font:700 20px/1 system-ui;touch-action:none;user-select:none;-webkit-user-select:none}
#flightControls button:active{background:#dbe9d6}

@media (pointer:coarse),(max-width:650px){
  .bar{padding-inline:max(7px,env(safe-area-inset-left)) max(7px,env(safe-area-inset-right))}
  .bar nav{gap:2px}
  .bar nav>*,.bar nav .sound-control,.bar nav .icon-label{min-height:42px;min-width:42px;padding-inline:8px}
  .bar nav .icon-label,.bar nav .sound-control{width:42px;flex:0 0 42px}
  #street{--edge-x:max(10px,env(safe-area-inset-left));--edge-r:max(10px,env(safe-area-inset-right));--edge-b:max(12px,calc(7px + env(safe-area-inset-bottom)))}
  .street-tools{right:var(--edge-r);top:8px;gap:3px}
  .street-tools button,.street-tools button:last-child{min-width:42px;min-height:42px;padding:6px 9px}
  .street-tools svg{width:17px;height:17px}
  .street-year{left:var(--edge-x);top:8px;padding:8px 11px;min-width:0;max-width:40vw}
  .street-year .village-sign{font-size:12px;padding-bottom:3px;margin-bottom:3px}
  .street-year #modeLabel{font-size:11px}
  .street-year strong{font-size:28px;line-height:1.02}
  .street-year #streetEra{display:block;font-size:12px;line-height:1.15;margin-top:1px}
  .field-visit{left:var(--edge-x);top:102px;min-height:42px;padding:7px 10px;font-size:12px;white-space:nowrap}
  #stick{display:grid;width:84px;height:84px;left:var(--edge-x);bottom:var(--edge-b);overscroll-behavior:contain}
  #stick .thumb{width:34px;height:34px;pointer-events:none}
  .mini{left:auto;right:var(--edge-r);bottom:var(--edge-b);width:64px;border-radius:11px;padding:3px}
  .mini b{padding:0;font-size:11px;line-height:1.28}
  .near{left:calc(var(--edge-x) + 92px);right:calc(var(--edge-r) + 72px);bottom:var(--edge-b);width:max-content;max-width:calc(100% - var(--edge-x) - var(--edge-r) - 164px);min-height:46px;transform:none;gap:6px;padding:5px 7px;border-radius:10px}
  .near img{width:34px;height:32px}
  .near span{min-width:0}
  .near b{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;line-height:1.2;font-size:12px}
  .near small{font-size:10px;line-height:1.2}
  .near kbd,.desk-hint{display:none}
  .touch-hint{display:inline}
  .movement-hint,.near:not([hidden])~.movement-hint{bottom:calc(var(--edge-b) + 86px);left:50%;max-width:calc(100% - 28px);border-radius:10px;padding:4px 8px;font-size:11px}
  #stage[data-view=street] .greeting{left:auto;right:max(10px,env(safe-area-inset-right));top:56px;bottom:auto;max-width:min(48vw,208px);border-radius:12px}
  .greeting #chatGreeting{min-height:40px;align-items:flex-start;padding:6px 0 5px 7px}
  .greeting .bot-face{display:none}
  .greeting #hello{font-size:11.5px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .greeting #hush{width:36px;min-width:36px;height:40px;min-height:40px;padding:0;font-size:20px}
  .greeting.folded #chatGreeting{padding:7px 10px;min-height:40px;align-items:center}
  .greeting.folded #hello,.greeting.folded #guideSuggestions{display:none}
  .greeting.folded{border-radius:20px}
  #guideSuggestions{gap:4px;max-width:100%;padding:0 5px 5px}
  #guideSuggestions button{flex:1 1 0;min-height:40px;line-height:1.16;padding:4px 5px;font-size:11.5px;word-break:keep-all}
  #flightControls{right:var(--edge-r);bottom:calc(var(--edge-b) + 79px)}
  .dialog-top>button{width:44px;height:44px}
  .dialog-top{position:sticky;top:-16px;z-index:1;background:var(--paper);margin:-5px -5px 12px;padding:5px;border-radius:14px}
  dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px)}
  .dialog-shell details summary,.link-row>*{min-height:42px}
  .directory button,.directory a{min-height:42px}
  .year-list button{min-height:42px}
}
@media (max-width:370px){
  .bar{gap:5px}
  .bar nav>*{padding-inline:6px}
  .bar .brand img{width:44px}
  .street-tools button,.street-tools button:last-child{padding-inline:7px}
}
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .bar{height:44px}
  #stage{height:calc(100dvh - 44px)}
  .street-year{padding:5px 9px}
  .street-year .village-sign{display:none}
  .street-year strong{font-size:23px}
  .field-visit{top:75px}
  #stick{width:70px;height:70px}
  .mini{width:52px}
  #stage[data-view=street] .greeting{top:54px;max-width:min(230px,31vw)}
  .greeting #hello{-webkit-line-clamp:1}
  #flightControls{grid-auto-flow:column;right:calc(var(--edge-r) + 60px);bottom:var(--edge-b)}
  #street:has(#flightControls:not([hidden])) .near{max-width:calc(100% - 300px)}
  .near{left:calc(var(--edge-x) + 83px);max-width:min(44vw,360px)}
  .movement-hint{bottom:calc(var(--edge-b) + 64px)}
  .hill-map{height:clamp(170px,55dvh,265px)}
}
#flightControls button{width:52px;font-size:13px;white-space:nowrap}
@media (pointer:coarse),(max-width:650px){
  .street-year{display:grid;grid-template-columns:auto 1fr;column-gap:7px;row-gap:2px;align-items:baseline;line-height:1.2}
  .street-year .village-sign{padding:0;margin:0;border:0}
  .street-year #modeLabel{text-align:right;font-size:10px;white-space:nowrap}
  .street-year strong,.street-year #streetEra{grid-column:1/-1}
  .field-visit{top:104px}
  .greeting #hush{width:42px;min-width:42px;min-height:42px}
  #guideSuggestions button{min-height:42px}
  .movement-hint{max-width:calc(100% - 112px);text-wrap:balance}
  #flightControls{bottom:calc(var(--edge-b) + 85px)}
}
@media (orientation:landscape) and (max-height:520px) and (pointer:coarse){
  .street-year #modeLabel{grid-column:1/-1;text-align:left}
  .field-visit{top:77px}
  #flightControls{bottom:var(--edge-b)}
}
.greeting.folded #hush{display:grid;place-items:center;align-self:center;font-size:0}
.greeting.folded #hush::before{content:'';display:block;width:8px;height:8px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:translateY(-2px) rotate(45deg)}

.cat-status{position:absolute;bottom:115px;left:50%;transform:translateX(-50%);background:#233d35e8;color:#fff4dd;padding:6px 12px;border-radius:20px;font-size:13px;pointer-events:none}.type-cat{background:#ecd2ac}.garage-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
@media(min-width:651px){.guide-suggestions{display:grid;gap:3px;grid-column:1/-1}.greeting{display:grid;grid-template-columns:1fr auto;max-width:260px;padding-bottom:6px}.greeting .guide-suggestions{grid-row:2;margin:0 8px}.greeting #hush{grid-column:2;grid-row:1}.guide-pick{background:#dbe8d0;color:#254838;border-radius:5px;font-size:12px;text-align:left;padding:5px 8px}.greeting.folded .guide-suggestions{display:none}.flight-controls{position:absolute;right:clamp(15px,3vw,52px);top:80px;display:flex;gap:4px}.flight-controls button{background:#243c34ed;color:white;padding:8px 12px;border-radius:16px}.crew-grid{grid-template-columns:repeat(auto-fit,minmax(93px,1fr))}}
@media(min-width:651px) and (max-width:980px) and (pointer:fine){
  #stage[data-view=street] .greeting{right:12px;max-width:clamp(178px,24vw,221px)}
  .near{left:43%;width:min(42%,360px);max-width:calc(100% - 379px)}
  .near>span{min-width:0;flex:1}.near b,.near .near-preview-copy{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Right thumb steers by default. The persisted left-handed setting mirrors the dock. */
@media (any-pointer:coarse){
  #stage:not([data-hand=left]) #stick{left:auto;right:var(--edge-r,max(10px,env(safe-area-inset-right)))}
  #stage:not([data-hand=left]) .mini{left:var(--edge-x,max(10px,env(safe-area-inset-left)));right:auto}
  #stage:not([data-hand=left]) #flightControls{left:var(--edge-x,max(10px,env(safe-area-inset-left)));right:auto}
  #stage:not([data-hand=left]) .near{left:calc(var(--edge-x,10px) + 72px);right:calc(var(--edge-r,10px) + 92px);margin-inline:auto}
  #stage[data-hand=left] #stick{left:var(--edge-x,max(10px,env(safe-area-inset-left)));right:auto}
  #stage[data-hand=left] .mini,#stage[data-hand=left] #flightControls{left:auto;right:var(--edge-r,max(10px,env(safe-area-inset-right)))}
  #stage[data-hand=left] .near{left:calc(var(--edge-x,10px) + 92px);right:calc(var(--edge-r,10px) + 72px);margin-inline:auto}
}
@media (orientation:landscape) and (max-height:520px) and (any-pointer:coarse){
  #stage:not([data-hand=left]) #flightControls{left:calc(var(--edge-x,10px) + 60px);right:auto}
  #stage[data-hand=left] #flightControls{left:auto;right:calc(var(--edge-r,10px) + 60px)}
  #stage[data-view=street] .near{left:50%;right:auto;margin:0;transform:translateX(-50%);max-width:min(43vw,calc(100% - 350px))}
}
@media (any-pointer:coarse){
  .street-year>small{font-size:10px;line-height:1.2;white-space:nowrap}
  #fieldVisit{top:112px}
}
@media (orientation:landscape) and (max-height:520px) and (any-pointer:coarse){
  .street-year>small{grid-column:1/-1}
  #fieldVisit{top:84px}
}
@media (any-pointer:coarse){
  #stage #flightControls{top:auto;height:max-content;align-content:end}
}

#quickPlay{display:none}
@media (any-pointer:coarse){
  #stage .mini{display:none}
  #quickPlay{display:grid;position:absolute;z-index:2;bottom:var(--edge-b,max(12px,env(safe-area-inset-bottom)));width:56px;gap:4px}
  #stage:not([data-hand=left]) #quickPlay{left:var(--edge-x,max(10px,env(safe-area-inset-left)));right:auto}
  #stage[data-hand=left] #quickPlay{left:auto;right:var(--edge-r,max(10px,env(safe-area-inset-right)))}
  #quickPlay button{display:flex;align-items:center;justify-content:center;gap:4px;width:56px;min-height:43px;padding:4px 3px;border:1px solid #d8e6d1b0;border-radius:12px;background:#203f38ef;color:#fff8df;font-size:12px;font-weight:720;white-space:nowrap;touch-action:manipulation;box-shadow:0 2px 9px #263a2d25}
  #quickPlay #doAction{background:#ffe7a9f5;color:#3d4932;border-color:#fff4c9}
  #quickPlay button:active{transform:translateY(1px);filter:brightness(.93)}
  #stage #flightControls{bottom:calc(var(--edge-b,12px) + 96px)}
  #stage:has(#quickPlay) #pickAvatar{display:none}
}
@media (orientation:landscape) and (max-height:520px) and (any-pointer:coarse){
  #stage #flightControls{bottom:var(--edge-b,12px)}
  #stage:not([data-hand=left]) #flightControls{left:calc(var(--edge-x,10px) + 62px)}
  #stage[data-hand=left] #flightControls{right:calc(var(--edge-r,10px) + 62px)}
}

.catalogue-filter{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}.catalogue-filter :is(select,input){font:inherit;padding:7px 9px;border:1px solid #b8c6bb;border-radius:6px;color:#243f35;background:#fff}.catalogue-filter input{flex:1;min-width:140px}.catalogue-status{color:#495e53;font-size:13px}.catalogue-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px}.catalogue-card{background:#fff;color:#23392e;border:1px solid #c9d2c9;border-radius:9px;display:flex;flex-direction:column;align-items:stretch;text-align:left;overflow:hidden;padding:0 0 9px;justify-content:flex-start}.catalogue-card img{width:100%;aspect-ratio:1.76;object-fit:cover}.catalogue-card small,.catalogue-card b{margin:7px 9px 0}.catalogue-card small{color:#517563}.catalogue>.link-row{margin-top:12px}.catalogue>.link-row[hidden]{display:none}

#stage .greeting[hidden]{display:none}
.workshop-set{display:block;width:100%;height:auto;background:linear-gradient(#dbe6de,#f0e8d3);border-radius:12px}.workshop-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 6px}.workshop-actions [aria-pressed=true]{background:#244c43;color:white}.workshop-status{min-height:1.5em;margin:.4em 0 1em;color:#315548;font-weight:650}

.branch-door:not([hidden]){display:block;position:absolute;top:228px;left:clamp(12px,3vw,52px);padding:9px 14px;border:1px solid #d1dec9;border-radius:32px;background:#fff5de;color:#314b3b;font-weight:750;box-shadow:0 2px 8px #26372b25}
@media(max-width:650px),(max-height:560px){.branch-door:not([hidden]){left:10px;top:151px;padding:7px 10px;font-size:12px}}

.director-looks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.director-costume{display:block;width:100%;aspect-ratio:304/295;background-image:url('./exhibits/director-wardrobe.webp');background-size:400% 200%;background-repeat:no-repeat}.director-looks .scene-card{overflow:hidden;background:#f8f5ed;padding:0}.director-looks .scene-card b{font-size:12px;margin:6px 7px 8px}@media(max-width:580px){.director-looks{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:760px){
  dialog.hq-tour-dialog{inset:0!important;margin:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important}
}

.field-note-panel{max-width:min(42rem,95vw)}
.field-note{max-width:37rem;margin:0 auto;color:#25342f}
.field-note figure{margin:.3rem 0 1rem}
.field-note img{display:block;width:100%;height:auto;max-height:min(48svh,26rem);object-fit:contain;background:#e9e6dd;border-radius:5px}
.field-note figcaption,.field-note .field-note-date{font-size:.81rem;color:#52645c;margin:.45rem 0;line-height:1.5}
.field-note p{font-size:1.02rem;line-height:1.78;word-break:keep-all;overflow-wrap:break-word;margin:.68rem 0}
.field-note-panel .link-row{margin-top:.95rem}
.brand-film-rack{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.25rem),1fr));gap:.7rem;margin:1rem 0}
.brand-film-rack .scene-card{position:relative;display:grid;grid-template-rows:auto 1fr auto;align-content:start;min-height:0}
.brand-film-rack img{width:100%;aspect-ratio:1.5;object-fit:contain;background:#252625;border-radius:3px}
.brand-film-rack small{display:block;margin:.1rem .45rem .4rem;font-variant-numeric:tabular-nums;color:#5a645d}
@media (pointer:fine) and (min-width:651px) and (not (any-pointer:coarse)) {
  #quickPlay{display:flex;position:absolute;left:16px;bottom:16px;gap:5px}
  #quickPlay button{font-family:inherit;font-size:.8rem;font-weight:600;line-height:1.2;color:#f6f3dc;background:#243e39e8;border:1px solid #dee7d894;border-radius:16px;min-height:34px;padding:6px 12px;cursor:pointer}
}

.film-contact-sheet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:16px 0}.film-contact-sheet img{width:100%;height:auto;align-self:center;border-radius:3px}
.street-film-surface{position:absolute;inset:0 auto auto 0;width:640px;height:360px;pointer-events:none;transform-origin:0 0;overflow:hidden;z-index:1}.street-film-surface iframe{display:block;width:100%;height:100%;border:0;pointer-events:none}.street-film-surface[hidden]{display:none}

#yearArchive{pointer-events:auto;text-decoration:none;cursor:pointer}#yearArchive:focus-visible{outline:3px solid #f69058;outline-offset:3px}#yearArchive .year-archive-caption{display:block;margin-top:3px;color:#326754;font-size:11px;font-weight:750;line-height:1.22}#yearArchive:hover .year-archive-caption{text-decoration:underline}.catalogue-back{margin-bottom:10px}

/* A projection can extend past a corner of the camera without widening the document. */
#stage{overflow:hidden;overflow:clip}
.street-entry-tools{display:contents}
@media (pointer:coarse),(max-width:650px){
  .street-entry-tools{position:absolute;z-index:2;left:var(--edge-x,10px);top:8px;display:flex;align-items:flex-start;flex-direction:column;gap:6px;max-width:40vw;pointer-events:none}
  .street-entry-tools #yearArchive,.street-entry-tools #fieldVisit,.street-entry-tools #branchDoor{position:static;pointer-events:auto}
  .street-entry-tools #branchDoor{min-height:44px}
  .street-entry-tools #yearArchive{width:max-content;max-width:100%;grid-template-columns:minmax(0,1fr);row-gap:2px}
  .street-entry-tools .village-sign{grid-column:1/-1;white-space:normal;word-break:keep-all}
  .street-entry-tools #yearArchive small{white-space:nowrap}
}

.street-work-credit{display:grid;gap:.2rem;margin:.7rem 0;padding:.35rem 0 .35rem .75rem;border-inline-start:2px solid #789d8d;line-height:1.55;color:#233d39}
.street-work-credit[hidden]{display:none}
.street-work-credit strong{font-size:.81rem;font-weight:700;color:#416a59}.street-work-credit span{font-size:.94rem}
.garage-kart{display:block;width:100%;height:auto;aspect-ratio:15/8;border-radius:8px;background:linear-gradient(156deg,#dce4d6,#adbdba)}
#stage[data-ride=gokart] #doAction{touch-action:none;user-select:none}
#stage[data-ride=gokart] #doAction[aria-pressed=true]{background:#ecaf52;color:#342e22;box-shadow:inset 0 0 0 2px #8e612a}

#stage #flightControls{top:auto;width:max-content;height:max-content;grid-template-columns:repeat(2,auto);grid-template-rows:auto auto;grid-auto-flow:row;gap:3px;padding:4px;border-radius:13px;background:#253e36ed;box-shadow:0 2px 7px #20352c33}
#flightControls .flight-height{grid-column:1/-1;text-align:center;color:#e7efdf;font:600 11px/1.5 system-ui}
#flightControls output{font-variant-numeric:tabular-nums;color:white}
#flightControls button{display:flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:52px;padding:0 6px;height:44px;border-radius:9px}
#flightControls button[aria-pressed="true"]{background:#b6d5bd}
#flightControls kbd{font:600 10px/1 system-ui;color:#3f6854}
@media (any-pointer:coarse),(max-width:650px){#flightControls kbd{display:none}}

/* The year, walking tour and nearby entrance share one stack as labels grow. */
@media (pointer:fine) and (min-width:651px) {
  .street-entry-tools {
    position:absolute;
    z-index:2;
    inset:22px auto auto clamp(12px,3vw,52px);
    display:grid;
    justify-items:start;
    gap:8px;
    max-width:45%;
    pointer-events:none;
  }
  .street-entry-tools > :is(#yearArchive,#fieldVisit,#branchDoor) {
    position:static;
    max-width:100%;
    pointer-events:auto;
  }
}

/* A single dock shares its left edge with the year sign. Its two rows grow with the text. */
.street-action-dock { display: contents; }
#street:has(#near:not([hidden])) #movementHint { display: none; }
@media (pointer:fine) and (min-width:651px) and (not (any-pointer:coarse)) {
  .street-action-dock {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: clamp(12px, 3vw, 52px);
    display: grid;
    justify-items: start;
    gap: 8px;
    width: min(33rem, 56%);
    pointer-events: none;
  }
  .street-action-dock #near, .street-action-dock #quickPlay {
    position: static;
    margin: 0;
    transform: none;
    pointer-events: auto;
  }
  #stage .street-action-dock #near {
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px 8px 8px;
    gap: 10px;
    background: #102b32f7;
    box-shadow: 0 4px 16px #06161c35;
  }
  .street-action-dock #quickPlay { gap: 6px; }
}
@media (any-pointer:coarse) and (orientation:portrait), (max-width:650px) and (orientation:portrait) {
  #stage .street-action-dock #near {
    left: max(12px,env(safe-area-inset-left));
    right: max(12px,env(safe-area-inset-right));
    bottom: calc(var(--edge-b,12px) + 100px);
    width: fit-content;
    max-width: calc(100% - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right)));
    margin: 0 auto;
    transform: none;
  }
  #stage:has(#flightControls:not([hidden])) .street-action-dock #near {
    bottom: calc(var(--edge-b,12px) + 174px);
  }
}

/* On a short stage the entry actions sit beside the date, leaving the lower controls free. */
@media (orientation:landscape) and (max-height:560px) and (min-width:480px) {
  #street .street-entry-tools {
    position:absolute;
    inset:8px auto auto var(--edge-x,clamp(10px,2vw,22px));
    display:grid;
    grid-template-columns:max-content max-content;
    align-items:start;
    justify-items:start;
    gap:5px 8px;
    max-width:calc(100% - 140px);
    pointer-events:none;
  }
  #street .street-entry-tools > :is(#yearArchive,#fieldVisit,#branchDoor) { position:static; pointer-events:auto; }
  #street #yearArchive {
    grid-row:1 / 3;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    min-width:0;
    width:auto;
    max-width:9rem;
    gap:2px;
    padding:6px 9px;
  }
  #street #yearArchive .village-sign { display:none; }
  #street #yearArchive small,#street #yearArchive #streetEra { font-size:11px; line-height:1.12; margin:0; }
  #street #yearArchive strong { font-size:25px; line-height:1.05; }
  #street #yearArchive .year-archive-caption { font-size:10px; margin:0; }
  #street #fieldVisit,#street #branchDoor { grid-column:2; min-height:38px; max-width:11.5rem; padding:6px 10px; }
  #street #branchDoor:not([hidden]) { grid-row:2; }
}

/* On touch-capable wide screens the card stays between both sets of thumb controls. */
@media (any-pointer:coarse) and (orientation:landscape) {
  #stage {
    --action-clearance:calc(var(--edge-x,10px) + 66px);
    --stick-clearance:calc(var(--edge-r,10px) + 100px);
  }
  #stage[data-view=street] .street-action-dock #near {
    left:var(--action-clearance);
    right:var(--stick-clearance);
    width:max-content;
    max-width:min(33rem,calc(100% - var(--action-clearance) - var(--stick-clearance)));
    margin-inline:auto;
    transform:none;
  }
  #stage[data-hand=left] .street-action-dock #near { left:var(--stick-clearance); right:var(--action-clearance); }
}
@media (any-pointer:coarse) and (orientation:landscape) and (max-height:520px) {
  #stage:has(#flightControls:not([hidden])) { --action-clearance:calc(var(--edge-x,10px) + 190px); }
}
