/* Earth remote visits: same cream / navy / lantern-gold HUD language. */
#ew-hook{position:absolute;right:max(18px,env(safe-area-inset-right));bottom:max(100px,env(safe-area-inset-bottom));z-index:45;display:flex;flex-direction:column;gap:8px;max-width:235px;font:800 16px Grandstander,system-ui,sans-serif}
#ew-hook[hidden],#ew-overlay [hidden],#ew-overlay[hidden]{display:none!important}
#ew-hook button,#ew-overlay button{font:800 16px/1.25 Grandstander,system-ui,sans-serif;min-height:48px;padding:12px 18px;border:1px solid #ffd68c99;border-radius:16px;color:#fff1c9;background:#0e1a3bf2;cursor:pointer;touch-action:manipulation}
#ew-hook .ew-primary,#ew-overlay .ew-primary{color:#1b1640;background:linear-gradient(#ffe7a8,#ffc95a);border-color:#ffd68c;box-shadow:0 3px 20px #ffca5a20}
#ew-hook button:focus-visible,#ew-overlay :focus-visible{outline:3px solid #8fffe0;outline-offset:4px}
#ew-overlay{position:fixed;inset:0;z-index:10000;background:#070e20;color:#fff1c9;font:600 17px/1.5 Grandstander,system-ui,sans-serif;overflow:auto;isolation:isolate;overscroll-behavior:contain}
#ew-overlay *{box-sizing:border-box}#ew-overlay h1,#ew-overlay h2,#ew-overlay p{margin:0}#ew-overlay h1{font-size:clamp(26px,4vw,42px);line-height:1.15}#ew-overlay h2{font-size:clamp(23px,3vw,34px);line-height:1.15}#ew-overlay small{font-size:13px;color:#b9ccda}#ew-overlay a{color:#8fffe0}#ew-overlay summary{cursor:pointer;min-height:48px;padding-top:10px}
.ew-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 28px;position:relative;z-index:3;background:linear-gradient(#070e20fa,#070e20a0);flex-wrap:wrap}.ew-eyebrow{text-transform:uppercase;letter-spacing:.17em;color:#8fffe0;font-size:12px;margin-bottom:6px!important}.ew-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ew-picker{max-width:1360px;margin:auto;padding:8px 28px 36px}.ew-picker-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:4px 0 24px}.ew-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}#ew-overlay .ew-tile{text-align:left;padding:0;overflow:hidden;background:#132341;border-radius:18px;position:relative;transition:transform .15s,border-color .15s}.ew-tile:hover{transform:translateY(-3px);border-color:#8fffe0!important}.ew-tile img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.ew-tile span{display:block;padding:12px;font-size:17px;line-height:1.3;min-height:68px}.ew-tile[aria-pressed=true]{border:2px solid #8fffe0!important;box-shadow:0 0 24px #8fffe020}
.ew-selection{margin-top:24px;padding:20px 24px;border:1px solid #ffd68c77;border-radius:20px;background:#101e39;display:flex;justify-content:space-between;align-items:center;gap:20px}.ew-region{flex-shrink:0;width:94px;height:94px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#254d72,#07192f);border:1px solid #8fffe066;position:relative;overflow:hidden}.ew-region:before{content:'';position:absolute;inset:10% -5%;border-radius:50%;border:1px solid #8fffe044;box-shadow:0 20px 0 -1px #8fffe022,0 -20px 0 -1px #8fffe022}.ew-region:after{content:'';position:absolute;inset:-3% 26%;border:1px solid #8fffe044;border-radius:50%}.ew-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:#ffdb85;box-shadow:0 0 14px #ffdb85;z-index:2}
.ew-tour{min-height:100%;display:flex;flex-direction:column}.ew-view{position:relative;flex:1;min-height:280px;overflow:hidden;background:#071020;touch-action:none;display:flex;align-items:center;justify-content:center}.ew-ambience{position:absolute;inset:-10%;background-size:cover;background-position:center;filter:blur(28px) brightness(.35);opacity:.7}.ew-plate{position:relative;width:100%;max-height:calc(100dvh - 245px);aspect-ratio:16/9;object-fit:contain;will-change:transform;opacity:0;transition:opacity 1s;z-index:1}.ew-plate.loaded{opacity:1}.ew-view:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 70px #070e2033;z-index:2}.ew-view-label{position:absolute;left:24px;top:18px;z-index:3;background:#070e20c9;padding:6px 12px;border-radius:30px;font-size:13px;letter-spacing:.04em}.ew-annotation{position:absolute;left:44%;top:42%;width:18%;height:18%;border:2px solid #fff1c9;border-radius:8px;z-index:3;opacity:0;pointer-events:none;transition:opacity .8s;box-shadow:0 0 0 1px #070e2077}.ew-annotation.on{opacity:.85}.ew-annotation span{position:absolute;top:100%;padding:5px 10px;white-space:nowrap;background:#0e1a3bf0;border-radius:8px;font-size:14px}.ew-bottom{position:relative;z-index:4;padding:18px 28px 22px;background:#0b162d;display:flex;justify-content:space-between;gap:24px;align-items:center;flex-wrap:wrap;border-top:1px solid #ffd68c33}.ew-invitation{font-size:clamp(17px,2vw,23px);line-height:1.35;max-width:660px}.ew-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ew-look{display:flex;gap:6px}#ew-overlay .ew-look button{padding:10px;min-width:48px}.ew-fact{max-width:720px;margin:0 auto;padding:24px 28px 30px}.ew-fact p{font-size:clamp(21px,2.8vw,30px);line-height:1.4;margin:10px 0 20px!important}.ew-fact small{display:block;margin:10px 0}.ew-fact details{font-size:15px}.ew-note{font-size:13px!important;color:#b9ccda;line-height:1.5!important}.ew-error{position:absolute;z-index:4;max-width:80%;text-align:center;padding:24px;background:#0e1a3b}
@media(max-width:1000px){.ew-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ew-bottom{gap:14px}.ew-plate{max-height:calc(100dvh - 290px)}}
@media(max-width:600px){#ew-hook{right:10px;bottom:100px;max-width:190px}#ew-hook button{padding:10px 12px;font-size:14px}.ew-top{padding:16px;gap:12px}.ew-picker{padding:8px 16px 28px}.ew-picker-intro{align-items:flex-start;gap:12px}.ew-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ew-tile span{font-size:15px;padding:10px;min-height:62px}.ew-selection{align-items:flex-start;flex-direction:column;padding:16px;gap:14px;position:sticky;bottom:8px;box-shadow:0 4px 28px #0008}.ew-region{width:70px;height:70px}.ew-view{flex:none;min-height:0;aspect-ratio:16/10;margin-top:0}.ew-plate{width:100%;height:auto;max-height:none}.ew-view-label{left:8px;top:6px;font-size:11px;padding:3px 8px}.ew-tour{min-height:100dvh;justify-content:flex-start}.ew-bottom{padding:16px;align-items:flex-start;flex-direction:column}.ew-fact{padding:20px 16px 30px}.ew-fact p{font-size:23px}.ew-controls{gap:8px}#ew-overlay .ew-controls button{font-size:14px;padding:10px 12px}.ew-top .ew-row{gap:8px}#ew-overlay .ew-top button{font-size:14px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){#ew-overlay *{scroll-behavior:auto!important;transition:none!important}}

/* Viewfinder overlays sit in scene space; Uluru gets only two off-rock light swatches. */
.ew-annotation{inset:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;display:flex;align-items:center;justify-content:center}.ew-annotation svg{width:100%;height:100%;max-height:calc(100dvh - 245px);fill:none;stroke:#fff1c9;stroke-width:2;filter:drop-shadow(0 1px 2px #071020)}.ew-annotation span{top:auto;bottom:12px;left:24px}.ew-annotation svg path{stroke-linecap:round;stroke-linejoin:round}@media(max-width:600px){.ew-annotation svg{max-height:none}.ew-annotation span{left:8px;bottom:6px;font-size:12px;padding:2px 8px}}
/* The exit never scrolls away while a child is reading a fact or parent note. */
#ew-overlay .ew-top{position:sticky;top:0;background:#070e20f5;border-bottom:1px solid #ffd68c22;z-index:8}
/* Canyon-only renderer. Cinematic plates are untouched for the other nine. */
.ew-flight-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;opacity:0;transition:opacity 1s ease}
.ew-view.ew-flying{height:calc(100dvh - 280px);min-height:340px;flex:none;aspect-ratio:auto}
.ew-flying .ew-flight-canvas{opacity:1}.ew-flying .ew-plate,.ew-flying .ew-ambience,.ew-flying .ew-annotation{display:none}
.ew-flying #scout-drive-pad{z-index:5;bottom:18px}.ew-flying #scout-drive-pad button{width:64px;height:56px;padding:8px;background:#0e1a3be8;font-size:26px}
.ew-flytour .ew-bottom{position:sticky;bottom:0;z-index:7}.ew-flytour .ew-look{display:none}.ew-flying .ew-view-label{pointer-events:none}
.ew-loading:before{content:'Preparing your probe…';position:absolute;z-index:5;padding:20px 30px;background:#0e1a3be8;border-radius:20px;color:#ffe7a8}
@media(max-width:600px){.ew-view.ew-flying{height:42dvh;min-height:270px}.ew-flying #scout-drive-pad{gap:7px;bottom:10px}.ew-flying #scout-drive-pad button{width:55px;height:50px}.ew-flytour .ew-bottom{padding:12px 16px;gap:10px}}

/* Wonder-only pad labels. Original orbit pad and its labels are restored verbatim. */
#ew-overlay .ew-flight-guide{display:block;line-height:1.7;color:#ccefe8;font-size:14px;font-weight:700;margin-top:8px}
#ew-overlay .ew-flying #scout-drive-pad button{width:86px;height:67px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:5px 4px;line-height:1}
#ew-overlay .ew-flying #scout-drive-pad small{font:700 11px/1.1 system-ui;color:#fff1c9;white-space:nowrap}
#ew-overlay #ew-boost{border-color:#8fffe0;background:#143e45}
#ew-overlay #ew-boost.held{background:#497c66}
#ew-instruments{display:none;position:absolute;right:16px;top:18px;z-index:3;border:1px solid #b5eed340;border-radius:16px;padding:6px 12px;background:#071222c9;color:#c7eee7;font:600 12px/1.5 system-ui;pointer-events:none;font-variant-numeric:tabular-nums}
.ew-flying #ew-instruments{display:block}
@media(max-width:800px){#ew-instruments{top:50px;right:12px}#ew-overlay .ew-flying #scout-drive-pad button{width:64px;height:62px}#ew-overlay .ew-flight-guide{font-size:12px}}
@media(max-width:400px){#ew-overlay .ew-flying #scout-drive-pad{gap:5px}#ew-overlay .ew-flying #scout-drive-pad button{width:59px}#ew-overlay .ew-flying #scout-drive-pad small{font-size:10px}}

/* Canyon 1109: one big readable line, big thumb controls, gold "next" arrow, a real-size glass on phones. */
#ew-overlay .ew-canyon.ew-flying .ew-view-label{font:800 clamp(20px,2.4vw,30px)/1.2 system-ui;padding:10px 18px;border-radius:18px;background:#071222e0;color:#fff1c9;border:2px solid #ffc94a;max-width:calc(100% - 32px);left:50%;transform:translateX(-50%);top:14px;text-align:center;white-space:normal;z-index:6;width:max-content}
#ew-overlay .ew-canyon.ew-flying #ew-instruments{display:none}
#ew-overlay .ew-canyon .ew-next-arrow{position:absolute;z-index:4;width:0;height:0;pointer-events:none}
#ew-overlay .ew-canyon .ew-next-arrow[hidden]{display:none}
#ew-overlay .ew-canyon .ew-next-arrow span{position:absolute;left:-28px;top:-28px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;font:900 34px/1 system-ui;color:#2a1a00;background:#ffc94a;border-radius:50%;box-shadow:0 0 0 4px #fff1c955,0 0 24px #ffc94acc;animation:ew-next-pulse 1.2s ease-in-out infinite}
@keyframes ew-next-pulse{50%{box-shadow:0 0 0 8px #fff1c933,0 0 36px #ffc94a}}
@media (prefers-reduced-motion: reduce){#ew-overlay .ew-canyon .ew-next-arrow span{animation:none}}
#ew-overlay .ew-canyon.ew-flying #scout-drive-pad button{width:92px;height:76px}
#ew-overlay .ew-canyon.ew-flying #scout-drive-pad small{font-size:14px}
#ew-overlay .ew-canyon.ew-flying #scout-drive-pad span{font-size:30px}
#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-boost{width:120px}
#ew-overlay .ew-canyon.ew-flying #ew-boost small{font-size:17px}
#ew-overlay .ew-canyon.ew-flying .ew-flight-canvas{touch-action:none}
@media(max-width:800px){#ew-overlay .ew-canyon.ew-flying #scout-drive-pad button{width:66px;height:70px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-boost{width:84px}}
@media(max-width:600px){#ew-overlay .ew-view.ew-canyon.ew-flying{height:58dvh;min-height:340px}#ew-overlay .ew-canyon.ew-flying .ew-view-label{font-size:19px;top:8px;padding:8px 14px;max-width:92%}}
@media(max-width:400px){#ew-overlay .ew-canyon.ew-flying #scout-drive-pad{gap:6px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad button{width:60px;height:66px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-boost{width:78px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad small{font-size:12px}}
#ew-overlay .ew-canyon .ew-poi-label.ew-poi-next{background:#ffc94a!important;color:#2a1a00!important;border-color:#fff1c9!important;box-shadow:0 0 18px #ffc94acc;font-weight:800;z-index:2}#ew-overlay .ew-canyon .ew-poi-label.ew-poi-next small,#ew-overlay .ew-canyon .ew-poi-label.ew-poi-next span{color:#2a1a00!important}

/* Quiet canyon 1109 (Opus gate E glass): first play = caption, pad, one Back to orbit, gold light. Extras gated, not deleted (?ewExtras=1). */
#ew-overlay .ew-quiet.ew-flytour .ew-top>div:first-child,#ew-overlay .ew-quiet.ew-flytour [data-scout],#ew-overlay .ew-quiet.ew-flytour .ew-bottom,#ew-overlay .ew-quiet.ew-flytour #ew-fact-host,#ew-overlay .ew-quiet.ew-flytour #ew-instruments,#ew-overlay .ew-quiet.ew-flytour .ew-book,#ew-overlay .ew-quiet.ew-flytour .ew-annotation,#ew-overlay .ew-quiet.ew-flytour .ew-poi-label:not(.ew-poi-next){display:none!important}
#ew-overlay .ew-quiet.ew-flytour .ew-top{justify-content:flex-end;padding:12px 20px}
#ew-overlay .ew-quiet .ew-view:focus{outline:none}
#ew-overlay .ew-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
#ew-overlay .ew-quiet .ew-canyon.ew-flying .ew-view-label{font-size:clamp(28px,2.6vw,34px);text-wrap:balance}
@media(max-width:600px){#ew-overlay .ew-quiet .ew-view.ew-canyon.ew-flying{height:auto;flex:1;min-height:340px}#ew-overlay .ew-quiet .ew-canyon.ew-flying .ew-view-label{font-size:22px;top:10px;padding:9px 14px;max-width:94%}#ew-overlay .ew-quiet.ew-flytour .ew-top{padding:10px 14px}}

/* cp1109a: Scan = 6th pad button on the canyon visit; caption swaps in place for a find */
#ew-overlay #ew-scan{border-color:#ffd56b;background:#3e3414}
#ew-overlay #ew-scan.held{background:#7c6a2e}
#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-scan{width:104px}
#ew-overlay .ew-canyon.ew-flying #ew-scan small{font-size:16px}
@media(max-width:800px){#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-scan{width:76px}}
@media(max-width:400px){#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-scan{width:70px}}
#ew-overlay .ew-canyon .ew-view-label.ew-caption{max-width:min(92%,640px);line-height:1.3}
@media(max-width:420px){#ew-overlay .ew-canyon.ew-flying #scout-drive-pad{gap:5px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad button{width:50px;height:62px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-boost{width:66px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad #ew-scan{width:60px}#ew-overlay .ew-canyon.ew-flying #scout-drive-pad small{font-size:12px}}
