:root,#hologram-earth{--ag-bg:#061319;--ag-panel:#10252e;--ag-panel-2:#0a1c24;--ag-border:#305b69;--ag-muted:#a1bbc5;--ag-text:#e5f7fc;--ag-accent:#9be5f5;--ag-glow:#39d8ff;--ag-highlight:#c6f6ff;--ag-button-text:#07171e;}
#hologram-earth {width:100%;}
#hologram-earth .earth-stage {position:relative;overflow:hidden;background:var(--ag-bg);color:var(--ag-text);}
#hologram-earth canvas {display:block;width:100%;aspect-ratio:1.35;touch-action:none;cursor:grab;}
#hologram-earth canvas:active {cursor:grabbing;}
#hologram-earth .earth-beams {position:absolute;inset:0;pointer-events:none;}
#hologram-earth .earth-heading {position:absolute;top:18px;left:20px;right:20px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;letter-spacing:.16em;color:var(--ag-muted);pointer-events:none;}
#hologram-earth .earth-demo {color:var(--ag-muted);letter-spacing:.08em;}
#hologram-earth .earth-counter {position:absolute;left:20px;top:52px;display:flex;flex-direction:column;gap:2px;pointer-events:none;}
#hologram-earth .earth-counter strong {font:400 34px/1.1 system-ui;letter-spacing:-.04em;color:var(--ag-text);}
#hologram-earth .earth-counter span {font:400 11px/1.4 system-ui;color:var(--ag-muted);}
#hologram-earth .earth-caption {position:absolute;left:20px;bottom:42px;font:400 14px/1.4 system-ui;color:var(--ag-text);pointer-events:none;}
#hologram-earth .earth-help {position:absolute;left:20px;bottom:20px;font:400 11px/1.4 system-ui;color:var(--ag-muted);pointer-events:none;}
@media(max-width:480px){#hologram-earth canvas{aspect-ratio:.88;}#hologram-earth .earth-heading{left:14px;right:14px;top:14px;font-size:11px;letter-spacing:.07em;}#hologram-earth .earth-counter{left:14px;top:58px;}#hologram-earth .earth-caption,#hologram-earth .earth-help{left:14px;}}

html,body{margin:0;background:var(--ag-bg);color:var(--ag-text);font-family:system-ui}*{box-sizing:border-box}#hologram-earth{max-width:none;margin:auto}#hologram-earth canvas{aspect-ratio:1.7} .globe-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 20px}select,button{background:var(--ag-panel);color:var(--ag-text);border:1px solid var(--ag-glow);border-radius:8px;padding:9px;min-height:40px;font:13px system-ui}select{max-width:100%}#earth-readout{font-size:12px;color:var(--ag-muted)}@media(max-width:480px){#hologram-earth canvas{aspect-ratio:.9}}
.globe-navigation{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 20px 0}.globe-navigation output{min-width:45px;text-align:center;font-size:13px;color:var(--ag-muted)}.globe-navigation button{cursor:pointer}.globe-navigation button:disabled{opacity:.4;cursor:default}button:focus-visible,canvas:focus-visible{outline:2px solid var(--ag-muted);outline-offset:-3px}#hologram-earth .earth-help{right:14px}@media(max-width:480px){.globe-navigation{padding:10px 14px 0;gap:6px}.globe-navigation button{padding:8px;font-size:12px}#hologram-earth .earth-help{font-size:10px}}

#hologram-earth .globe-controls{padding-bottom:14px}#hologram-earth .globe-controls select{min-width:0;flex:1 1 200px}#hologram-earth .globe-controls #earth-readout{overflow-wrap:anywhere;min-width:0}@media(max-width:640px){#hologram-earth .globe-controls{padding:8px 14px 14px;gap:8px}#hologram-earth .globe-controls select{flex-basis:100%;width:100%}#hologram-earth .globe-controls #earth-readout{flex-basis:100%}.globe-navigation{gap:6px;padding-left:14px;padding-right:14px}}

#hologram-earth .earth-city-label{position:absolute;left:0;top:0;padding:4px 7px;background:rgba(1,9,16,.88);border-left:1px solid var(--ag-muted);border-radius:3px;color:var(--ag-text);font:12px/1.4 system-ui;max-width:calc(100% - 20px);pointer-events:none;overflow-wrap:anywhere}#hologram-earth .earth-city-label[hidden]{display:none}

#hologram-earth .earth-counter{display:flex;flex-direction:row;gap:24px;max-width:calc(100% - 40px);align-items:flex-start}
#hologram-earth .earth-stat{display:flex;flex-direction:column;gap:4px;min-width:0}#hologram-earth .earth-stat strong{font-size:25px}#hologram-earth .earth-stat:first-child strong{font-size:34px}#hologram-earth .earth-stat span{font-size:11px;white-space:normal}
#hologram-earth .earth-demo,#hologram-earth .earth-caption,#hologram-earth .earth-city-label{color:var(--ag-highlight)}#hologram-earth .earth-city-label{background:var(--ag-bg);border-color:var(--ag-highlight)}
#hologram-earth button,#hologram-earth select{background:var(--ag-panel);color:var(--ag-text);border-color:var(--ag-border)}#hologram-earth .earth-stage,html,body{background:var(--ag-bg)}
@media(max-width:480px){#hologram-earth .earth-counter{gap:16px;left:14px;right:14px;max-width:calc(100% - 28px)}#hologram-earth .earth-stat strong{font-size:22px}#hologram-earth .earth-stat:first-child strong{font-size:28px}#hologram-earth .earth-stat span{font-size:10px}#hologram-earth .earth-stat{max-width:36%}.globe-navigation #earth-rotate{flex-basis:auto}}

#hologram-earth .earth-stat strong,#hologram-earth .earth-stat:first-child strong{font-size:28px;line-height:1.1}
#hologram-earth .earth-city-label{background:rgba(1,9,16,.55);background:color-mix(in srgb,var(--ag-bg) 55%,transparent);border-color:color-mix(in srgb,var(--ag-highlight) 55%,transparent);box-shadow:0 0 12px color-mix(in srgb,var(--ag-glow) 12%,transparent)}
@media(max-width:480px){#hologram-earth .earth-stat strong,#hologram-earth .earth-stat:first-child strong{font-size:22px}}

/* Configured height includes the drawing area and overlay buttons; the city selector is below. */
#hologram-earth[data-fixed-height] canvas{height:var(--ag-canvas-height);aspect-ratio:auto}

#hologram-earth .earth-stage{background-position:center center;background-repeat:no-repeat}

/* Mandatory demo disclosure, same type size as the total counters. */
#hologram-earth .earth-counter{flex-wrap:wrap}
#hologram-earth .earth-counter .earth-demo-mode{flex:0 0 100%;font:400 28px/1.1 system-ui;letter-spacing:-.04em;color:var(--ag-highlight);margin-top:6px}
#hologram-earth .earth-counter .earth-demo-mode[hidden]{display:none}
@media(max-width:480px){#hologram-earth .earth-counter .earth-demo-mode{font-size:22px}}

/* Auto drawing height is 20% taller; configured pixel heights remain exact. */
#hologram-earth{--ag-auto-aspect:1.4166666667}
#hologram-earth:not([data-fixed-height]) canvas{aspect-ratio:var(--ag-auto-aspect)}
@media(max-width:480px){
 #hologram-earth{--ag-auto-aspect:.75}
 #hologram-earth:not([data-fixed-height]) canvas{aspect-ratio:var(--ag-auto-aspect)}
 #hologram-earth .globe-navigation{padding:10px 8px 0;gap:4px}
 #hologram-earth .globe-navigation output{min-width:24px;flex:0 0 24px;font-size:12px}
 #hologram-earth .globe-navigation button{padding:8px 6px;font-size:11px;white-space:nowrap;min-height:40px}
 #hologram-earth .globe-navigation #earth-zoom-out,#hologram-earth .globe-navigation #earth-zoom-in{min-width:26px;padding-left:5px;padding-right:5px}
}

#hologram-earth .earth-sound{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;padding:6px;line-height:1}
@media(max-width:380px){#hologram-earth .globe-navigation{gap:3px;padding-left:5px;padding-right:5px}#hologram-earth .globe-navigation button{padding-left:4px;padding-right:4px;font-size:10px}#hologram-earth .globe-navigation .earth-sound{flex-basis:28px;width:28px}#hologram-earth .globe-navigation output{min-width:22px;flex-basis:22px}}

/* Compact rotation/follow controls, with visible pressed state and accessible names. */
#hologram-earth .earth-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;padding:6px;line-height:1}
#hologram-earth .earth-city-label{transform-origin:left top;z-index:2}
#hologram-earth .earth-city-arrival{border-color:var(--ag-highlight);box-shadow:0 0 20px color-mix(in srgb,var(--ag-glow) 65%,transparent)}
@media(max-width:380px){#hologram-earth .globe-navigation .earth-icon{flex-basis:28px;width:28px}}

#hologram-earth[data-theme-mode="light"]{color-scheme:light}
#hologram-earth[data-theme-mode="light"] .earth-city-label{background:color-mix(in srgb,var(--ag-panel) 92%,transparent);box-shadow:0 2px 10px color-mix(in srgb,var(--ag-glow) 12%,transparent)}
#hologram-earth[data-theme-mode="light"] .earth-city-arrival{box-shadow:0 0 16px color-mix(in srgb,var(--ag-glow) 40%,transparent)}

/* The document and stage stay transparent until the selected preset is ready. */
html:not([data-globe-ready]) #hologram-earth .earth-stage,
#hologram-earth:not([data-surface-background="preset"]) .earth-stage{background-color:transparent}

/* The parent panel supplies the only horizontal inset. */
#hologram-earth .earth-heading{left:0;right:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;letter-spacing:.08em}
#hologram-earth .earth-counter{left:0;right:0;max-width:100%}
#hologram-earth .earth-caption,#hologram-earth .earth-help{left:0;right:0;overflow-wrap:anywhere}
#hologram-earth .earth-help{bottom:calc(var(--ag-nav-height,40px) + 16px)}
#hologram-earth .earth-caption{bottom:calc(var(--ag-nav-height,40px) + var(--ag-help-height,0px) + 20px)}
#hologram-earth .globe-navigation{position:absolute;left:0;right:0;bottom:8px;z-index:4;max-width:100%;padding:0;gap:6px;row-gap:4px;flex-wrap:wrap}
#hologram-earth .globe-controls{padding:8px 0 0;width:100%;max-width:100%;margin:0}
#hologram-earth [hidden]{display:none!important}

/* Images need their own overlay inset, independent of the outer panel border. */
#hologram-earth{--ag-stage-inset:0px;--ag-resize-space:40px}
#hologram-earth .earth-heading,#hologram-earth .earth-counter,
#hologram-earth .earth-caption,#hologram-earth .earth-help{left:var(--ag-stage-inset);right:var(--ag-stage-inset)}
#hologram-earth .globe-navigation{left:var(--ag-stage-inset);right:calc(var(--ag-stage-inset) + var(--ag-resize-space));bottom:calc(8px + var(--ag-stage-inset))}
#hologram-earth .earth-help{bottom:calc(var(--ag-nav-height,40px) + var(--ag-stage-inset) + 16px)}
#hologram-earth .earth-caption{bottom:calc(var(--ag-nav-height,40px) + var(--ag-help-height,0px) + var(--ag-stage-inset) + 20px)}

#hologram-earth .earth-bot-stat strong,#hologram-earth .earth-bot-stat span{color:var(--ag-highlight);color:color-mix(in srgb,var(--ag-text) 35%,var(--ag-glow) 65%)}
/* Preset and period share the left heading without pushing the renderer badge down. */
#hologram-earth .earth-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
#hologram-earth .earth-heading>span:first-child{min-width:0;letter-spacing:.02em;overflow-wrap:anywhere}
#hologram-earth .earth-heading>span:last-child{white-space:nowrap}

/* The parent paints the preset gradient continuously behind the embedded globe. */
#hologram-earth[data-surface-background="preset"] .earth-stage{background-color:transparent}
[aria-pressed="false"] .ag-cloud-slash{display:none}
@media(max-width:640px){
 #hologram-earth .earth-stage .globe-navigation{
  flex-flow:row nowrap;gap:clamp(2px,1vw,5px);padding:0;
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin
 }
 #hologram-earth .earth-stage .globe-navigation button{
  flex:0 1 32px;min-width:24px;width:32px;max-width:32px;padding:0 2px;min-height:36px
 }
 #hologram-earth .earth-stage .globe-navigation output{min-width:22px;flex:0 0 auto}
}

#hologram-earth .ag-warping > canvas:not(.ag-surface-warp){opacity:0!important}
