/* The service viewport is independent of the one-time welcome screen. */
body:has(#main[data-view=map]){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
body:has(#main[data-view=map])>.header{height:60px;min-height:60px;padding:0 20px}
body:has(#main[data-view=map])>.page-footer{display:none}
body #main[data-view=map]{flex:1;height:auto;min-height:0;width:100%;overflow:hidden}
#main[data-view=map] #world-scene{position:absolute;inset:0 0 0 330px;width:auto;height:auto;border-radius:0}
#main[data-view=map] .world-ui{position:absolute;inset:0 auto 0 0;width:330px;padding:16px;display:flex;flex-direction:column;pointer-events:none;background:#f7f7ef;z-index:6}
#main[data-view=map] .world-ui>.eyebrow,#main[data-view=map] #world-title,#main[data-view=map] .world-copy,#main[data-view=map] .world-data-note{display:none}
#main[data-view=map] .world-search{position:static;margin:0;display:grid;grid-template-columns:1fr;gap:8px;pointer-events:auto}
#main[data-view=map] .world-search .search-field{padding:0 12px;min-height:46px;background:#fffdf7;border:1px solid #cbd8c3;border-radius:12px}
#main[data-view=map] .world-search input{font-size:14px;min-width:0;width:100%}
#main[data-view=map] .world-search select{min-height:44px;font-size:13px;padding:8px;border:1px solid #cbd8c3;border-radius:10px}
#main[data-view=map] .world-list-heading{padding:12px 0 8px;font-size:11px;pointer-events:auto}
#main[data-view=map] .world-list{flex:1;min-height:0;max-height:none;overflow:auto;pointer-events:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#main[data-view=map] .map-world-caption{left:calc(50% + 165px);top:auto;bottom:10px;max-width:70%;white-space:nowrap;font-size:10px;pointer-events:none}
#main[data-view=map] .scene-tools{top:88px;right:12px;flex-direction:column}
#main[data-view=map] .map-zoom{bottom:52px;right:12px}
.welcome-screen{position:fixed;inset:0;z-index:200;display:grid;place-items:center;text-align:center;background:linear-gradient(#f8f3df30,#f8f3df15 45%,#f8f3dfed),url('assets/welcome-landscape.jpg') center/cover;color:#244b3d;padding:24px;overflow:auto}
.welcome-screen[hidden]{display:none}.welcome-content{padding:32px 28px;background:#fffaf0dc;backdrop-filter:blur(8px);border:1px solid #fff9;border-radius:28px;box-shadow:0 12px 60px #254b3d14;max-width:560px}
.welcome-content>p:first-child{font-size:14px;letter-spacing:.06em;line-height:1.8}.welcome-content h1{font-size:clamp(42px,8vw,72px);letter-spacing:-.05em;margin:14px 0}.welcome-subtitle{font-size:19px;margin:0 0 28px}.welcome-content button{display:block;width:100%;min-height:54px;border-radius:14px;background:#315c47;color:#fffdf3;font-weight:700;font-size:16px;padding:14px 28px}.welcome-content button span{margin-left:32px}.welcome-content small{display:block;font-size:11px;margin-top:16px}.at-welcome>.header,.at-welcome>#main,.at-welcome>.page-footer{visibility:hidden}
@media(max-width:760px) and (orientation:portrait){
body:has(#main[data-view=map])>.header{height:54px;min-height:54px;padding:0 12px}
body:has(#main[data-view=map]) .brand{font-size:16px}.brand small{font-size:7px}
#main[data-view=map] #world-scene{inset:112px 0 0;width:auto;height:auto}
#main[data-view=map] .world-ui{inset:0 0 auto;width:100%;height:112px;padding:10px 12px;background:#f7f7ef}
#main[data-view=map] .world-search{grid-template-columns:minmax(0,1fr) 120px;gap:6px}
#main[data-view=map] .world-search input{font-size:16px}
#main[data-view=map] .world-search select{font-size:11px;width:120px}
#main[data-view=map] .world-list-heading{padding:6px 0 3px}
#main[data-view=map] .world-list{flex:none;display:flex;gap:8px;overflow:auto;max-height:0;visibility:hidden}
#main[data-view=map] .world-ui:is(:focus-within,:has([data-retry-data])){height:min(52%,340px);box-shadow:0 8px 20px #254b3d20}
#main[data-view=map] .world-ui:is(:focus-within,:has([data-retry-data])) .world-list{display:block;flex:1;max-height:none;visibility:visible}
#main[data-view=map] .map-world-caption{left:50%;bottom:8px;max-width:95%;font-size:9px}
}
@media(orientation:landscape) and (max-height:500px){body:has(#main[data-view=map])>.header{height:44px;min-height:44px;padding:0 12px}#main[data-view=map] .world-ui{width:265px;padding:10px}#main[data-view=map] #world-scene{left:265px}#main[data-view=map] .map-world-caption{left:calc(50% + 132px)}.welcome-content{padding:16px 32px}.welcome-content h1{font-size:40px;margin:5px}.welcome-subtitle{margin-bottom:12px}.welcome-content small{margin-top:8px}}
#main[data-view=map] .page-footer{display:none}
@media(pointer:coarse) and (orientation:portrait){body:has(#main[data-view=map]) .map-world-caption{display:none}}
#world-scene{touch-action:none}

html:has(#main[data-view=map]),body:has(#main[data-view=map]){overscroll-behavior:none}body:has(#main[data-view=map]){position:fixed;inset:0;width:100%;height:100%;height:100dvh;overflow:hidden}#world-scene,#world-scene canvas,#world-scene .map-markers,#world-scene .map-region-labels{touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

.welcome-content [hidden]{display:none!important}.welcome-recovery{display:grid;gap:10px}.welcome-content #welcome-map{background:#fffaf0;color:#315c47;border:1px solid #315c47}.welcome-content #welcome-status{font-size:14px;line-height:1.7;margin:20px 0;outline:none}.welcome-content button:focus-visible{outline:3px solid #bc7939;outline-offset:4px}
@media(orientation:landscape) and (max-height:500px){.welcome-screen{padding:12px}.welcome-content{max-height:calc(100dvh - 24px);overflow:auto}.welcome-content #welcome-status{margin:12px 0}.welcome-content small{margin-top:8px}}

/* Reveal only after the final scene frame; readiness is reported by the renderer. */
.welcome-screen{opacity:1;transition:opacity 240ms ease,visibility 0s}
.welcome-screen[data-phase="entered"]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity 240ms ease,visibility 0s 240ms}
.welcome-content button:focus:not(:focus-visible),#welcome-title:focus:not(:focus-visible){outline:none}
#welcome-title:focus-visible{outline:3px solid #bc7939;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.welcome-screen,.welcome-screen[data-phase="entered"]{transition:none}}
