/* Atlas v14.4.5 — final mobile globe polish.
   Visual-only overlay. Keep pointer input and scientific map pixels untouched. */
#ev8-stage > .ev14-space-sky {
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  user-select:none;
  background-image:url('/climate-globe/data/space-stars-v14-4-5.svg');
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:.94;
  /* Globe is kept wholly clear: stars appear only in surrounding space. */
  -webkit-mask-image:radial-gradient(circle closest-side at 50% 50%,transparent 0 94%,rgba(0,0,0,.1) 103%,#000 119%);
  mask-image:radial-gradient(circle closest-side at 50% 50%,transparent 0 94%,rgba(0,0,0,.1) 103%,#000 119%);
}
@media (max-width:760px) {
  /* Position backdrop in the globe section only. The time explorer follows
     below the map in normal flow and must never inherit star overlay. */
  #ev8-stage > .ev14-space-sky {
    inset:0 0 auto;
    height:var(--atlas-mobile-globe-height);
    background-position:50% 48%;
    background-size:cover;
  }
  /* Relocate the observatory link to the lower empty-space margin,
     rather than putting a wide badge over northern Eurasia. */
  #ev8-stage > #ev10-open-console.ev10-launch {
    top:calc(var(--atlas-mobile-globe-height) - 63px) !important;
    left:12px !important;
    right:auto !important;
    bottom:auto !important;
    min-height:44px;
    max-width:calc(100% - 119px);
    padding:10px 12px !important;
    border-radius:12px;
    font:740 10.5px/1.2 system-ui,sans-serif;
    letter-spacing:.025em;
    background:rgba(5,28,44,.91);
    border-color:rgba(141,232,218,.53);
    box-shadow:0 5px 18px rgba(0,0,0,.34);
  }
  #ev8-stage > #ev10-open-console.ev10-launch span[aria-hidden] {font-size:12px}
  /* Keep zoom, tilt and home reachable with thumb-friendly 42px targets;
     reduce visual clutter by gathering them at the map's lower right. */
  #ev8-stage > .ev8-map-controls {
    top:calc(var(--atlas-mobile-globe-height) - 107px) !important;
    left:auto !important;
    right:11px !important;
    bottom:auto !important;
    transform:none !important;
    display:grid !important;
    grid-template-columns:repeat(2,44px) !important;
    gap:5px !important;
    z-index:17;
  }
  #ev8-stage > .ev8-map-controls button {
    box-sizing:border-box;
    min-width:44px !important;
    width:44px !important;
    height:44px !important;
    min-height:44px !important;
    border-radius:13px;
    border-color:rgba(148,216,232,.44);
    background:rgba(4,23,38,.88);
    color:#efffff;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }
  #ev8-stage > .ev8-map-controls button:focus-visible,
  #ev8-stage > #ev10-open-console:focus-visible {
    outline:2px solid #a0f8df;
    outline-offset:2px;
  }
  /* Immersive mode uses viewport height rather than the scroll-layout
     variable; all controls remain inside visible safe-area bounds. */
  body.ev8-immersive-on #ev8-stage > .ev14-space-sky {height:100dvh}
  body.ev8-immersive-on #ev8-stage > #ev10-open-console.ev10-launch {
    top:auto !important;
    bottom:calc(16px + env(safe-area-inset-bottom)) !important;
  }
  body.ev8-immersive-on #ev8-stage > .ev8-map-controls {
    top:auto !important;
    bottom:calc(13px + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width:350px) {
  #ev8-stage > #ev10-open-console.ev10-launch {
    left:8px !important;
    font-size:9.5px;
    padding:9px 9px !important;
    max-width:calc(100% - 109px);
  }
  #ev8-stage > .ev8-map-controls {right:8px !important;gap:4px !important;grid-template-columns:repeat(2,44px) !important}
}
@media print {#ev8-stage > .ev14-space-sky{display:none}}
