/* V3 · EARTH SURFACE — separate real-world globe. Nothing in WORLD is replaced. */
#mc-earth-surface-toggle{min-width:122px!important;border-color:#a99a665e!important;color:#d1c8ab!important}
#mc-earth-surface-toggle::after{content:'SAT';position:absolute;right:6px;top:3px;font:6px/1 Consolas,monospace;letter-spacing:.12em;color:#897b55}
#mc-earth-surface-toggle[aria-pressed=true]{border-color:#e0c9789e!important;color:#f0e4bc!important;box-shadow:inset 0 1px 0 #fff0b819,0 0 15px #c6a84a24!important}
#mc-earth-surface{position:fixed;inset:0;z-index:9000;background:#010203;color:#dce4e1;font-family:Consolas,'Courier New',monospace;overflow:hidden;isolation:isolate}
#mc-earth-surface[hidden]{display:none}body.mc-earth-surface-open{overflow:hidden!important}
#mc-earth-map{position:absolute;inset:0;background:#000}
#mc-earth-surface::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at 50% 48%,transparent 52%,rgba(0,0,0,.14) 78%,rgba(0,0,0,.36) 100%);box-shadow:inset 0 0 120px #0008}
.mc-earth-surface-bar{position:absolute;z-index:5;left:18px;right:18px;top:16px;display:flex;align-items:center;justify-content:space-between;gap:14px;pointer-events:none}
.mc-earth-surface-bar>*{pointer-events:auto}.mc-earth-surface-title{display:flex;align-items:baseline;gap:12px;padding:8px 11px;background:#020506c9;border-left:1px solid #c7b36c6b;backdrop-filter:blur(5px)}
.mc-earth-surface-title strong{font:10px/1 Consolas,monospace;letter-spacing:.17em;color:#e7d8a6;font-weight:400}.mc-earth-surface-title small{font:7px/1 Consolas,monospace;letter-spacing:.12em;color:#7e9491}
.mc-earth-surface-actions{display:flex;gap:5px}.mc-earth-surface-actions button{min-height:38px;padding:9px 13px;border:1px solid #87999755;border-radius:2px;background:#030708dc;color:#c7d2ce;font:8px/1 Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;box-shadow:inset 0 1px 0 #ffffff0a,0 5px 16px #0005}
.mc-earth-surface-actions button:hover,.mc-earth-surface-actions button:focus-visible{border-color:#c4b47c86;color:#efe4bd;outline:none}.mc-earth-surface-actions button[aria-pressed=true]{border-color:#d5c2788f;color:#efe2b8}
#mc-earth-surface-readout{position:absolute;z-index:5;left:50%;top:18px;transform:translateX(-50%);min-width:330px;padding:8px 12px;background:#020506c9;border:1px solid #82959348;color:#aabbb7;font:8px/1.5 Consolas,monospace;letter-spacing:.08em;text-align:center;backdrop-filter:blur(5px);pointer-events:none}
#mc-earth-surface-readout strong{color:#e6d7a5;font-weight:400;letter-spacing:.12em}#mc-earth-surface-readout span{color:#879d99}
#mc-earth-surface-cross{position:absolute;z-index:4;left:50%;top:50%;width:36px;height:36px;transform:translate(-50%,-50%);pointer-events:none;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}#mc-earth-surface.geo-on #mc-earth-surface-cross{opacity:.62;visibility:visible}
#mc-earth-surface-cross::before,#mc-earth-surface-cross::after{content:'';position:absolute;background:#e0ce8b9a;box-shadow:0 0 5px #d0b75f48}#mc-earth-surface-cross::before{left:50%;top:0;width:1px;height:100%}#mc-earth-surface-cross::after{left:0;top:50%;width:100%;height:1px}
#mc-earth-surface-legend{position:absolute;z-index:5;left:18px;bottom:20px;width:215px;padding:10px 12px;background:#020506bd;border-left:1px solid #8eaaa75c;color:#8da3a0;font:8px/1.6 Consolas,monospace;letter-spacing:.05em;backdrop-filter:blur(4px);pointer-events:none;opacity:.76}
#mc-earth-surface-legend b{display:block;color:#d8ccb0;font-weight:400;letter-spacing:.12em;margin-bottom:4px}#mc-earth-surface-legend i{display:block;font-style:normal}
#mc-earth-surface-loading{position:absolute;z-index:6;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px 18px;background:#020506dd;border:1px solid #c8b36c44;color:#cdbf93;font:9px/1 Consolas,monospace;letter-spacing:.14em}
#mc-earth-surface-loading[hidden]{display:none}.mc-earth-pin{width:9px;height:9px;border:1px solid #ffe8a5;border-radius:50%;background:#c9a64a66;box-shadow:0 0 8px #f1d278aa,0 0 20px #c9a64a44}
#mc-earth-surface .maplibregl-ctrl-group{background:#020506d9!important;border:1px solid #71858355!important;box-shadow:none!important}.mc-earth-surface .maplibregl-ctrl-group button{background-color:transparent!important;filter:invert(.78) sepia(.08)}
#mc-earth-surface .maplibregl-ctrl-attrib{background:#020506bb!important;color:#9ba8a5!important;font:8px Consolas,monospace!important}.mc-earth-surface .maplibregl-ctrl-attrib a{color:#c3ccc8!important}
body.mc-cinema #mc-earth-map canvas{filter:contrast(1.055) saturate(.9) brightness(.95)}body.mc-real #mc-earth-map canvas{filter:contrast(1.045) saturate(.98)}body.mc-cinema.mc-real #mc-earth-map canvas{filter:contrast(1.075) saturate(.92) brightness(.95)}
@media(max-width:700px){#mc-earth-surface-toggle{min-width:100px!important}.mc-earth-surface-bar{left:8px;right:8px;top:8px;align-items:flex-start}.mc-earth-surface-title{padding:7px 8px}.mc-earth-surface-title small{display:none}.mc-earth-surface-actions button{min-height:36px;padding:8px 10px;font-size:7px}#mc-earth-surface-readout{top:58px;min-width:250px;max-width:82vw;font-size:7px}#mc-earth-surface-legend{left:8px;bottom:28px;width:170px;font-size:7px;padding:7px 9px}#mc-earth-surface-cross{width:28px;height:28px}}
/* Immersion: WORLD remains untouched underneath and returns exactly as it was. */
body.mc-earth-surface-open :is(#astronaut-free,#astronaut-dock,#pilot-craft,#launch-base,#pilot-controls,#atlas-sun,#mc-world-hud,#mc-black-hole,#mc-black-hole-label,#mc-discovery-layer,#mc-discovery-lines,#mc-held-camera){visibility:hidden!important}
body.mc-earth-surface-open #mc-earth-surface,body.mc-earth-surface-open #mc-earth-surface *{visibility:visible!important}

/* GEO OFF realmente remove a leitura cartográfica auxiliar; GEO ON devolve tudo. */
#mc-earth-surface-legend{opacity:0!important;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
#mc-earth-surface.geo-on #mc-earth-surface-legend{opacity:.76!important;visibility:visible}

/* GEO técnico: só aparece quando a camada geográfica está ativa. */
#mc-earth-surface-tools{position:absolute;z-index:5;right:18px;top:66px;width:214px;padding:9px;background:#020506cc;border-right:1px solid #8ea5a25c;display:none;grid-template-columns:1fr 1fr;gap:5px;backdrop-filter:blur(5px)}
#mc-earth-surface.geo-on #mc-earth-surface-tools{display:grid}#mc-earth-surface-tools>b{grid-column:1/-1;font:8px/1.2 Consolas,monospace;letter-spacing:.12em;color:#d9ccb0;font-weight:400;margin-bottom:2px}
#mc-earth-surface-tools button{min-height:30px;padding:6px;border:1px solid #7286844a;border-radius:2px;background:#030708d9;color:#aebebb;font:7px/1.1 Consolas,monospace;letter-spacing:.06em;cursor:pointer}#mc-earth-surface-tools button[aria-pressed=true]{border-color:#d3bf7588;color:#eee0b6;box-shadow:inset 0 0 10px #c5a94813}
#mc-earth-measure{grid-column:1/-1;min-height:25px;padding-top:4px;color:#d7c98f;font:7px/1.4 Consolas,monospace;letter-spacing:.04em}
#mc-earth-surface-cross{opacity:0!important;transition:opacity .18s ease}#mc-earth-surface.geo-on #mc-earth-surface-cross{opacity:.62!important}.mc-earth-measure-point{width:8px;height:8px;border-radius:50%;border:1px solid #ffe8a5;background:#d0ae5066;box-shadow:0 0 8px #f0d47d99}
#mc-earth-ocean{position:absolute;z-index:6;right:18px;bottom:20px;width:min(420px,calc(100vw - 36px));max-height:48vh;overflow:auto;padding:12px;background:#020506e8;border:1px solid #7e96934a;color:#aebfbb;font:8px/1.45 Consolas,monospace;backdrop-filter:blur(7px)}#mc-earth-ocean[hidden]{display:none}
#mc-earth-ocean header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}#mc-earth-ocean header b{color:#e0d4ad;font-weight:400;letter-spacing:.12em}#mc-earth-ocean header button{border:0;background:transparent;color:#aebfbb;cursor:pointer;font:14px/1 Consolas,monospace}#mc-earth-ocean small{display:block;margin-top:8px;color:#748986}
.mc-ocean-now{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.mc-ocean-now span{padding:6px;border:1px solid #60716f35}.mc-ocean-now b{display:block;color:#e5d9b3;font-weight:400}.mc-ocean-coord{color:#8fa7a3}
#mc-earth-ocean table{width:100%;border-collapse:collapse;margin-top:8px}#mc-earth-ocean th,#mc-earth-ocean td{padding:5px;border-bottom:1px solid #60716f2e;text-align:left;font-weight:400}#mc-earth-ocean th{color:#d5c89d}
@media(max-width:700px){#mc-earth-surface-tools{right:8px;top:100px;width:178px}#mc-earth-ocean{right:8px;bottom:36px}.mc-ocean-now{grid-template-columns:1fr}}

/* Never let the underlying WORLD geodesy bleed through EARTH · SURFACE. */
body.mc-earth-surface-open :is(#mc-geo-reference,#mc-geo-legend,#mc-earth-readout){visibility:hidden!important;opacity:0!important}

/* GEO OFF must outrank the immersion rule that makes every Surface descendant visible. */
#mc-earth-surface:not(.geo-on) :is(#mc-earth-surface-cross,#mc-earth-surface-legend){visibility:hidden!important;opacity:0!important}
#mc-earth-surface.geo-on :is(#mc-earth-surface-cross,#mc-earth-surface-legend){visibility:visible!important}
