.mon-atlas {
  --atlas-ink: #0b1520;
  --atlas-paper: #f2f5f7;
  --atlas-ice: #b8d2ff;
  --atlas-rule: #657b8f;
  --atlas-gutter: clamp(15px, 3.3vw, 64px);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) var(--atlas-gutter) max(12px, env(safe-area-inset-bottom));
  border: none;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--atlas-ink);
  color: var(--atlas-paper);
  box-sizing: border-box;
}
.mon-atlas:not([open]) { display: none; }
html:has(.mon-atlas[open]) { overflow: hidden; }
.mon-atlas[open] { display: grid; grid-template-rows: auto minmax(145px, 1fr) auto auto; gap: clamp(8px, 1.8vh, 21px); }
.mon-atlas::backdrop { background: #0b1520; }
.mon-atlas svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.atlas-head, .atlas-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.atlas-head h2 { color: var(--atlas-paper); font: 750 clamp(35px, 6.2vw, 98px)/1 var(--display); letter-spacing: -.065em; margin: 0; }
.atlas-close, .atlas-controls button { appearance: none; border: 1px solid var(--atlas-rule); background: transparent; color: var(--atlas-paper); border-radius: 0; cursor: pointer; }
.atlas-close { width: 45px; height: 45px; display: grid; place-content: center; flex: none; }
.atlas-close:hover, .atlas-controls button:hover { background: #24364a; }
.mon-atlas :focus-visible { outline: 2px solid var(--atlas-ice); outline-offset: 2px; }
.atlas-frame { position: relative; isolation: isolate; min-width: 0; overflow: hidden; background: #16283c; outline: 1px solid #3b5369; }
.atlas-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(0deg, #0a182b3d, transparent 14%, transparent 86%, #0a182b3d); }
.atlas-plane, .atlas-pin { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.atlas-plane { width: 3200px; height: 2160px; pointer-events: none; }
.atlas-ground, .atlas-detail { position: absolute; object-fit: fill; max-width: none; pointer-events: none; }
.atlas-ground { inset: 0; width: 100%; height: 100%; }
.atlas-detail { opacity: 0; }
.atlas-detail[data-ready] { opacity: 1; }
.atlas-pin { z-index: 2; color: var(--atlas-ice); }
.atlas-pin > span { position: absolute; width: 14px; height: 14px; top: -7px; left: -7px; border: 2px solid var(--atlas-paper); box-shadow: 0 0 0 3px #0f1d29a6; border-radius: 50%; background: var(--atlas-ice); }
.atlas-pin > b { position: absolute; right: 18px; top: -31px; white-space: nowrap; color: var(--atlas-ink); background: var(--atlas-ice); padding: 6px 9px; font: 600 12px/1.1 var(--mono); }
.atlas-pin > b::after { content: ''; position: absolute; left: 100%; bottom: 0; height: 1.5px; width: 20px; background: var(--atlas-ice); transform-origin: left; transform: rotate(27deg); }
.atlas-north { position: absolute; z-index: 2; right: 12px; top: 12px; display: grid; place-items: center; gap: 3px; padding: 8px 9px; color: var(--atlas-paper); background: #0b1520d9; font: 600 10px/1 var(--mono); }
.atlas-north svg { width: 16px; height: 20px; }
.atlas-controls { display: flex; align-self: stretch; align-items: stretch; }
.atlas-controls button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px clamp(7px, 1.6vw, 22px); min-height: 44px; font: 650 clamp(12px, 1.4vw, 18px)/1.1 var(--body); }
.atlas-controls button + button { margin-left: -1px; }
.atlas-controls button[aria-pressed="true"] { color: var(--atlas-ink); border-color: var(--atlas-ice); background: var(--atlas-ice); z-index: 1; }
.atlas-directions { text-align: right; }
.atlas-directions > span { display: block; color: #c2d3e2; font: 500 11px/1.2 var(--mono); }
.atlas-directions a { display: inline-flex; align-items: center; justify-content: end; gap: 7px; min-height: 44px; color: var(--atlas-paper); font: 650 clamp(14px, 1.35vw, 19px)/1.1 var(--body); }
.atlas-credit { align-self: end; margin: 0; color: #c2d3e2; font: 400 11px/1.4 var(--body); }
.atlas-credit a { color: inherit; text-underline-offset: 2px; }
.atlas-error { position: absolute; top: 30%; left: 10%; max-width: 80%; z-index: 4; margin: 0; padding: 12px; color: var(--atlas-paper); background: var(--atlas-ink); }
.mon-atlas[data-cinema] .atlas-plane, .mon-atlas[data-cinema] .atlas-pin { transition: transform .95s cubic-bezier(.42, .05, .2, 1); }
@media (max-width: 680px) {
  .atlas-bottom { align-items: start; flex-direction: column; gap: 4px; }
  .atlas-controls { width: 100%; }
  .atlas-controls button { flex: 1; }
  .atlas-directions { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .atlas-directions a { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .mon-atlas[data-cinema] .atlas-plane, .mon-atlas[data-cinema] .atlas-pin { transition: none; }
}
