/* Main-map anchors stay still; detail transitions use an outgoing snapshot. */
.scene-transition-layer{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
.scene-transition-layer>img{position:absolute;max-width:none;user-select:none}
.scene-transition-layer .scene-marker{pointer-events:none}
.screen-title{animation:title-arrive .75s cubic-bezier(.2,.7,.2,1) both}
.sandtable{animation:stage-arrive .9s ease-out both}
.wing-left .place-item{animation:entry-from-left .65s ease-out backwards;animation-delay:var(--entry-delay,0ms)}
.wing-right .place-item{animation:entry-from-right .65s ease-out backwards;animation-delay:var(--entry-delay,0ms)}
.screen-atmosphere:before{animation:ambient-light 12s ease-in-out infinite alternate}
body[data-ready=true] .screen-title,body[data-ready=true] .sandtable,body[data-ready=true] .wing .place-item{animation:none}
.point-aura{position:absolute;inset:-5px;z-index:-1;pointer-events:none;border:1px solid #ffdc8b99;border-radius:50%;opacity:0;animation:point-breathe 3.8s ease-out infinite;animation-delay:var(--pulse-delay,0s)}
[data-mode=mobility] .point-aura{border-color:#84c5ffbd}
.walking-line{animation:walking-flow 3.5s linear infinite;animation-play-state:var(--route-state,paused)}
body[data-map-mode=mobility]{--route-state:running}
.guide-arrow{transition:transform .25s}
.guide-button:hover .guide-arrow{transform:translateX(5px)}
.narrate-button[aria-pressed=true] svg{animation:voice-feedback 1.8s ease-in-out infinite alternate}
dialog[open]{animation:stage-arrive .24s ease-out both}
body[data-motion=off] *,body[data-motion=off] *:before,body[data-motion=off] *:after{animation:none!important;transition:none!important}
body[data-visibility=hidden] *,body[data-visibility=hidden] *:before,body[data-visibility=hidden] *:after{animation-play-state:paused!important}
@keyframes title-arrive{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@keyframes stage-arrive{from{opacity:0}to{opacity:1}}
@keyframes entry-from-left{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
@keyframes entry-from-right{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@keyframes ambient-light{from{opacity:.5}to{opacity:.95}}
@keyframes point-breathe{0%{opacity:.45;transform:scale(.9)}75%,100%{opacity:0;transform:scale(1.42)}}
@keyframes walking-flow{to{stroke-dashoffset:-100}}
@keyframes voice-feedback{from{opacity:.45}to{opacity:1}}

.screen-toolrow{display:flex;align-items:center;justify-content:flex-end;gap:13px}
.display-control{display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1px;color:#a9bc9d}
.display-control select{font:inherit;font-size:11px;letter-spacing:.5px;color:#dfd2ac;background:#173a2e;border:1px solid #bdaf7255;border-radius:4px;padding:7px 8px;min-height:33px;color-scheme:dark;cursor:pointer}
.motion-toggle{border:1px solid #bdaf723b;min-height:33px;font-size:10px;padding:6px 9px;color:#d8c58f}
.motion-toggle svg{width:13px;height:13px}
.motion-toggle:hover{background:#dcc58415}
.motion-toggle[aria-pressed=false]{color:#92a98d}
.screen-utilities{gap:9px}

/* Desktop windows use the available width AND height; no fixed canvas or page minimum. */
body[data-layout=standard] .screen-shell{height:100vh;height:100dvh;min-height:0;max-width:none;display:grid;grid-template-rows:clamp(68px,10vh,100px) minmax(0,1fr) clamp(58px,8vh,78px) 20px;gap:clamp(8px,1.2vh,14px);padding:12px clamp(14px,2vw,32px) 8px;overflow:hidden}
body[data-layout=standard] .screen-header{grid-template-columns:minmax(125px,1fr) auto minmax(205px,1fr);min-height:0;gap:14px;padding:0 0 10px}
body[data-layout=standard] .screen-title{grid-column:auto;grid-row:auto;justify-self:center}
body[data-layout=standard] .screen-title h1{font-size:clamp(24px,2.4vw,36px);letter-spacing:clamp(1px,.3vw,5px)}
body[data-layout=standard] .screen-title>p{font-size:10px;letter-spacing:2px;margin-bottom:5px}
body[data-layout=standard] .title-baseline{margin-top:5px;gap:10px}
body[data-layout=standard] .title-baseline span{font-size:10px;letter-spacing:2px}
body[data-layout=standard] .title-baseline i{width:35px}
body[data-layout=standard] .screen-brand{font-size:16px;letter-spacing:2px;gap:9px}
body[data-layout=standard] .brand-seal{font-size:34px;padding-left:9px}
body[data-layout=standard] .screen-brand small{font-size:5px;letter-spacing:.7px;margin-top:6px}
body[data-layout=standard] .screen-utilities{flex-direction:column;align-items:flex-end;gap:5px}
body[data-layout=standard] .screen-toolrow{gap:8px}
body[data-layout=standard] .offline-status{font-size:8px;letter-spacing:1px}
body[data-layout=standard] .screen-fullscreen{min-height:29px;padding:5px 8px;font-size:10px}
body[data-layout=standard] .screen-main{display:grid;grid-template-columns:174px minmax(0,1fr) 174px;grid-template-rows:minmax(0,1fr);gap:16px;min-height:0}
body[data-layout=standard] .atlas{grid-column:2;grid-row:1;display:grid;grid-template-rows:46px minmax(0,1fr) 24px;min-height:0}
body[data-layout=standard] .atlas-heading{min-height:0;padding:0;gap:8px;flex-wrap:nowrap;justify-content:space-between}
body[data-layout=standard] .mode-button{font-size:11px;min-height:32px;padding:6px 11px;gap:5px;letter-spacing:.5px}
body[data-layout=standard] .mode-button svg{width:14px;height:14px}
body[data-layout=standard] .filter{font-size:10px;min-height:30px;padding:7px 10px;letter-spacing:.5px}
body[data-layout=standard] .sandtable{min-height:0;padding:4px 6px;flex:initial}
body[data-layout=standard] .sandtable-label{min-height:28px}
body[data-layout=standard] .sandtable-label>span{font-size:9px;letter-spacing:1px}
body[data-layout=standard] .map-viewport{height:auto;min-height:0;flex:1;align-items:center;justify-content:center;overflow:hidden}
body[data-layout=standard] .route-legend{height:24px;min-height:24px;font-size:8px;gap:12px;padding:0 3px}
body[data-layout=standard] .route-legend small{display:none}
body[data-layout=standard] .sandtable-base{min-height:23px;padding:4px 5px 2px;font-size:8px;letter-spacing:0}
body[data-layout=standard] .desktop-tip{display:inline}
body[data-layout=standard] .mobile-tip{display:none}
body[data-layout=standard] .atlas-caption{min-height:0;padding-top:4px;font-size:10px;letter-spacing:2px;gap:12px}
body[data-layout=standard] .atlas-caption i{width:35px}
body[data-layout=standard] .wing{padding:0;min-width:0;min-height:0}
body[data-layout=standard] .wing-left{grid-column:1;grid-row:1}
body[data-layout=standard] .wing-right{grid-column:3;grid-row:1}
body[data-layout=standard] .wing-heading{flex-shrink:0;padding:0 0 12px}
body[data-layout=standard] .wing-heading>p,body[data-layout=standard] .wing-heading>span,body[data-layout=standard] .wing-foot{display:none}
body[data-layout=standard] .wing-heading:before{top:3px;height:18px}
body[data-layout=standard] .wing-heading h2{font-size:17px;letter-spacing:1px;padding-left:10px}
body[data-layout=standard] .place-list{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
body[data-layout=standard] .place-item{min-height:0;max-height:none;flex:1;padding:9px;gap:9px}
body[data-layout=standard] .place-copy strong{font-size:14px;letter-spacing:.3px;line-height:1.5}
body[data-layout=standard] .place-copy small{font-size:8px;line-height:1.6;margin-top:4px}
body[data-layout=standard] .item-number{font-size:24px}
body[data-layout=standard] .item-number:before{bottom:-7px}
body[data-layout=standard] .control-deck{margin:0 5%;min-height:0;gap:15px;grid-template-columns:1fr auto 1fr}
body[data-layout=standard] .guide-button{min-width:270px;gap:14px;padding:10px 20px}
body[data-layout=standard] .guide-button strong{font-size:18px;letter-spacing:3px}
body[data-layout=standard] .guide-button small{font-size:8px;margin-top:4px}
body[data-layout=standard] .guide-play{height:32px;width:32px;flex-shrink:0}
body[data-layout=standard] .deck-statement p{font-size:12px;letter-spacing:1px}
body[data-layout=standard] .deck-statement small{font-size:9px;letter-spacing:0;margin-top:5px}
body[data-layout=standard] .exploration-status #visited-count{font-size:13px;letter-spacing:1px}
body[data-layout=standard] .exploration-status small{font-size:8px;letter-spacing:1px;margin-top:5px}
body[data-layout=standard] .screen-footer{min-height:0;padding-top:4px;gap:10px;font-size:8px;flex-wrap:nowrap}
body[data-layout=standard] .screen-footer span:last-child{display:none}
@media(min-width:720px) and (max-width:1179px){
body[data-layout=standard] .screen-main{grid-template-columns:minmax(0,1fr) 174px;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:14px}
body[data-layout=standard] .atlas{grid-column:1;grid-row:1/3}
body[data-layout=standard] .wing-left{grid-column:2;grid-row:1}
body[data-layout=standard] .wing-right{grid-column:2;grid-row:2}
body[data-layout=standard] .wing-heading{padding-bottom:7px}
body[data-layout=standard] .wing-heading h2{font-size:15px}
body[data-layout=standard] .place-list{gap:6px}
body[data-layout=standard] .place-item{padding:6px 8px;gap:8px}
body[data-layout=standard] .place-copy strong{font-size:13px}
body[data-layout=standard] .place-copy small{display:none}
body[data-layout=standard] .item-number{font-size:20px}
body[data-layout=standard] .item-number:before{display:none}
body[data-layout=standard] .screen-brand{font-size:14px;letter-spacing:1px;gap:7px}
body[data-layout=standard] .brand-seal{font-size:28px}
body[data-layout=standard] .screen-header{grid-template-columns:minmax(100px,1fr) auto minmax(180px,1fr);gap:10px}
body[data-layout=standard] .screen-title h1{font-size:clamp(20px,2.5vw,28px);letter-spacing:1px}
body[data-layout=standard] .title-baseline span{font-size:9px}
body[data-layout=standard] .screen-title>p{font-size:9px;letter-spacing:1px}
body[data-layout=standard] .display-control>span,body[data-layout=standard] .offline-status{display:none}
body[data-layout=standard] .screen-brand small{display:none}
body[data-layout=standard] .screen-utilities{flex-direction:row;flex-wrap:wrap;max-width:195px;gap:4px;justify-content:flex-end}
body[data-layout=standard] .control-deck{margin:0}
body[data-layout=standard] .meter-line{display:none}
body[data-layout=standard] .guide-button{min-width:250px;padding:9px 17px}
}
@media(min-width:720px) and (max-width:879px){
body[data-layout=standard] .atlas{grid-template-rows:88px minmax(0,1fr) 24px}
body[data-layout=standard] .atlas-heading{flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:5px}
body[data-layout=standard] .mode-switch{width:100%;justify-content:center}
body[data-layout=standard] .mode-button{flex:1}
body[data-layout=standard] .screen-title>p{display:none}
body[data-layout=standard] .title-baseline i{display:none}
body[data-layout=standard] .screen-brand{font-size:12px;gap:6px;white-space:nowrap}
body[data-layout=standard] .brand-seal{font-size:26px;padding-left:7px}
body[data-layout=standard] .brand-seal span{font-size:14px}
body[data-layout=standard] .screen-header{grid-template-columns:95px minmax(0,1fr) 168px;gap:8px}
body[data-layout=standard] .screen-title h1{font-size:20px;letter-spacing:0}
body[data-layout=standard] .screen-utilities{max-width:168px}
body[data-layout=standard] .motion-toggle>span{display:none}
body[data-layout=standard] .motion-toggle{width:31px;padding:5px}
body[data-layout=standard] .deck-statement small{display:none}
}
@media(min-width:720px) and (max-height:680px){
body[data-layout=standard] .screen-shell{grid-template-rows:64px minmax(0,1fr) 56px 18px;gap:8px;padding-top:8px;padding-bottom:6px}
body[data-layout=standard] .screen-title>p{display:none}
body[data-layout=standard] .screen-header{padding-bottom:7px}
body[data-layout=standard] .wing-heading{padding-bottom:6px}
body[data-layout=standard] .wing-heading h2{font-size:15px}
body[data-layout=standard] .place-list{gap:6px}
body[data-layout=standard] .place-item{padding-top:5px;padding-bottom:5px}
body[data-layout=standard] .place-copy small{display:none}
body[data-layout=standard] .atlas-caption{display:none}
body[data-layout=standard] .atlas{grid-template-rows:44px minmax(0,1fr)}
body[data-layout=standard] .guide-button{padding-top:8px;padding-bottom:8px}
body[data-layout=standard] .guide-play{width:28px;height:28px}
body[data-layout=standard] .guide-button strong{font-size:17px}
}
@media(min-width:720px) and (max-width:879px) and (max-height:680px){body[data-layout=standard] .atlas{grid-template-rows:88px minmax(0,1fr)}}
/* Keep the border out of the shared image/route coordinate dimensions. */
.map-canvas{border:0;outline:1px solid #c8cba668;outline-offset:-1px}
.map-point{width:var(--point-size,43px);height:var(--point-size,43px)}
.map-point span{font-size:calc(var(--point-size,43px) * .42)}
/* Portrait tablets keep the map above a compact directory without lengthening the page. */
@media(min-width:720px) and (max-width:1000px) and (orientation:portrait){
body[data-layout=standard] .screen-main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) 150px;gap:14px}
body[data-layout=standard] .atlas{grid-column:1/-1;grid-row:1;grid-template-rows:46px minmax(0,1fr) 24px}
body[data-layout=standard] .atlas-heading{flex-wrap:nowrap}
body[data-layout=standard] .mode-switch{width:auto}
body[data-layout=standard] .wing-left{grid-column:1;grid-row:2}
body[data-layout=standard] .wing-right{grid-column:2;grid-row:2}
body[data-layout=standard] .place-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
body[data-layout=standard] .place-item{height:100%}
}
/* Small phones and very short windows use flow layout; the entire map still fits its width. */
@media(max-width:719px), (max-height:479px){
body[data-layout=standard] .screen-shell{height:auto;min-height:100dvh;display:flex;flex-direction:column;gap:16px;padding:12px 14px}
body[data-layout=standard] .screen-header{grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:14px;min-height:116px;padding-bottom:13px}
body[data-layout=standard] .screen-title{grid-column:1/-1;grid-row:2}
body[data-layout=standard] .screen-title h1{font-size:clamp(20px,4.2vw,28px);letter-spacing:1px;white-space:normal}
body[data-layout=standard] .screen-title>p{display:none}
body[data-layout=standard] .screen-brand{font-size:14px}
body[data-layout=standard] .brand-seal{font-size:29px}
body[data-layout=standard] .screen-brand small{display:none}
body[data-layout=standard] .screen-utilities{max-width:none;flex-direction:row;align-items:center;gap:7px}
body[data-layout=standard] .display-control>span,body[data-layout=standard] .motion-toggle>span,body[data-layout=standard] .offline-status{display:none}
body[data-layout=standard] .motion-toggle{width:30px;padding:5px}
body[data-layout=standard] .screen-fullscreen span{display:none}
body[data-layout=standard] .screen-fullscreen{padding:5px;min-height:30px}
body[data-layout=standard] .screen-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;gap:18px 10px;flex:none}
body[data-layout=standard] .atlas{grid-column:1/-1;grid-row:1;display:flex;flex-direction:column}
body[data-layout=standard] .atlas-heading{flex-wrap:wrap;justify-content:center;gap:7px;padding-bottom:12px}
body[data-layout=standard] .mode-switch{width:100%;justify-content:center}
body[data-layout=standard] .mode-button{flex:1;font-size:12px}
body[data-layout=standard] .atlas-heading .filter{font-size:10px;padding:7px 10px}
body[data-layout=standard] .map-viewport{height:auto;aspect-ratio:1672/850;flex:none}
body[data-layout=standard] .map-point{width:28px;height:28px;border-width:1px;box-shadow:0 0 0 2px #163c466b,0 2px 8px #1532268c}
body[data-layout=standard] .map-point span{font-size:12px}
body[data-layout=standard] .point-aura{inset:-3px}
body[data-layout=standard] .sandtable-base .map-instruction{display:none}
body[data-layout=standard] .sandtable-base{justify-content:center}
body[data-layout=standard] .route-legend{gap:7px;font-size:7px;letter-spacing:0}
body[data-layout=standard] .route-legend i{width:12px}
body[data-layout=standard] .atlas-caption{min-height:28px;gap:10px;font-size:9px;letter-spacing:1px}
body[data-layout=standard] .atlas-caption i{width:20px}
body[data-layout=standard] .wing-left{grid-column:1;grid-row:2}
body[data-layout=standard] .wing-right{grid-column:2;grid-row:2}
body[data-layout=standard] .wing-heading h2{font-size:15px}
body[data-layout=standard] .place-list{gap:7px}
body[data-layout=standard] .place-item{min-height:53px;padding:8px;gap:8px}
body[data-layout=standard] .place-copy strong{font-size:12px;letter-spacing:0}
body[data-layout=standard] .place-copy small,body[data-layout=standard] .item-number:before{display:none}
body[data-layout=standard] .item-number{font-size:20px}
body[data-layout=standard] .control-deck{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:0;padding:0 0 8px}
body[data-layout=standard] .guide-button{order:-1;width:100%;min-width:0;justify-content:center;gap:17px;padding:13px}
body[data-layout=standard] .guide-arrow{display:block}
body[data-layout=standard] .deck-statement{display:none}
body[data-layout=standard] .exploration-status{justify-content:center}
body[data-layout=standard] .exploration-status small{display:none}
body[data-layout=standard] .screen-footer{flex-wrap:wrap;justify-content:center;text-align:center;gap:6px;padding-top:9px;line-height:1.8}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* A warm, slow invitation to start the tour; decorative layers never catch clicks. */
.guide-button{isolation:isolate;overflow:hidden;border-color:#f0cf8aaa;animation:guide-glow 3.8s ease-in-out infinite;transition:background .2s,border-color .2s,box-shadow .2s,transform .16s}
.guide-button>span,.guide-button>.guide-arrow{position:relative;z-index:1}
.guide-button:before{z-index:2;pointer-events:none}
.guide-button:after{content:"";position:absolute;z-index:0;top:-35%;bottom:-35%;left:-65%;width:35%;background:linear-gradient(100deg,transparent,#ffe6a60d,#fff0c936,#ffe6a60d,transparent);transform:skewX(-22deg);opacity:0;pointer-events:none;animation:guide-shine 5.4s ease-in-out infinite}
.guide-play{transition:border-color .2s,box-shadow .2s;box-shadow:0 0 16px #e7bd5e18}
.guide-play:after{content:"";position:absolute;inset:-5px;border:1px solid #f5d79888;border-radius:50%;opacity:0;pointer-events:none;animation:guide-play-ring 3.8s ease-out infinite}
.guide-button:hover,.guide-button:focus-visible{animation:none;background:linear-gradient(105deg,#a38b505e,#cead6168,#9e874149);border-color:#ffe4a8;box-shadow:inset 0 0 25px #f6d48c1a,0 0 0 1px #ffdfa72e,0 0 34px #e9bd6947;transform:translateY(-2px)}
.guide-button:hover .guide-play,.guide-button:focus-visible .guide-play{border-color:#f6dfa2cc;box-shadow:0 0 20px #e9bd6938}
.guide-button:hover:after,.guide-button:focus-visible:after{animation:none;opacity:0}
.guide-button:active{transform:translateY(1px) scale(.99);box-shadow:inset 0 2px 12px #132c2566,0 0 18px #e9bd6933}
@keyframes guide-glow{0%,100%{box-shadow:inset 0 0 25px #e2c17213,0 0 14px #e9bd691c}50%{box-shadow:inset 0 0 28px #f4d28a1f,0 0 0 1px #ffdfa724,0 0 30px #e9bd693b}}
@keyframes guide-shine{0%,12%{opacity:0;transform:translateX(0) skewX(-22deg)}23%{opacity:.85}49%{opacity:0;transform:translateX(500%) skewX(-22deg)}100%{opacity:0;transform:translateX(500%) skewX(-22deg)}}
@keyframes guide-play-ring{0%{opacity:.45;transform:scale(.85)}70%,100%{opacity:0;transform:scale(1.35)}}
body[data-motion=off] .guide-button:hover,body[data-motion=off] .guide-button:focus-visible,body[data-motion=off] .guide-button:active{transform:none}
body[data-motion=off] .guide-button:hover .guide-arrow{transform:none}
@media(prefers-reduced-motion:reduce){.guide-button:hover,.guide-button:focus-visible,.guide-button:active,.guide-button:hover .guide-arrow{transform:none}}
