.atmosphere { background: radial-gradient(ellipse at 58% 32%, #1c1612 0, #0f1413 46%, #080b0b 82%); }
.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(60deg, #c4d0ba0c 0 1px, transparent 1px 36px),
    repeating-linear-gradient(120deg, #c4d0ba0c 0 1px, transparent 1px 36px);
}
.map-ready .atmosphere::before { display: none; }
#map { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -4; pointer-events: none; opacity: .9; }
.veil {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 44%, #080b0b9e 61%, #080b0bdb 76%, #080b0bc4 100%);
}
.legend {
  position: absolute;
  bottom: 52px;
  right: calc(var(--gutter) + 122px);
  max-width: min(780px, 58vw);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 6px;
  font: 10px/1 "Consolas", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.legend[hidden] { display: none; }
.legend button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 5px;
  border: 0;
  background: none;
  color: #a3aaa3;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color .25s cubic-bezier(.16, 1, .3, 1);
}
.legend i {
  width: 24px;
  transform: scaleX(.55);
  transform-origin: right;
  height: 3px;
  border-radius: 2px;
  background: var(--c);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.legend .rail i { height: 5px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--c) 0 4px, #080b0b 4px 6px); box-shadow: inset 0 0 0 1px var(--c); }
.legend button:hover, .legend button:focus-visible, .legend button[aria-pressed="true"] { color: #f4f3dc; }
.legend button:hover i, .legend button:focus-visible i, .legend button[aria-pressed="true"] i { transform: none; }
.legend button:focus-visible { outline: 1px solid #ff6035; outline-offset: -1px; }
@media (max-width: 960px) { .legend { display: none; } }
.zoom-controls { position: absolute; right: calc(var(--gutter) + 36px); bottom: 50px; display: flex; }
.zoom-controls[hidden] { display: none; }
.zoom-controls button {
  width: 40px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #b6bfb1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.zoom-controls span { position: relative; width: 11px; height: 2px; background: currentColor; }
.zoom-in span::after { content: ""; position: absolute; left: 4.5px; top: -4.5px; width: 2px; height: 11px; background: currentColor; }
.zoom-controls button:hover:not(:disabled) { color: #ff6035; }
.zoom-controls button:disabled { color: #4a524c; cursor: default; }
.zoom-controls button:focus-visible { outline: 1px solid #ff6035; outline-offset: -6px; }
/* Set in the right margin like the imprint line of a printed map; map labels keep clear of it. */
.map-note {
  position: absolute;
  top: 50%;
  right: max(4px, calc(var(--gutter) / 2 - 9px));
  margin: 0;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  white-space: nowrap;
  font: 12px/1.5 "Consolas", monospace;
  letter-spacing: .01em;
  color: #7d857e;
}
@media (max-width: 600px) {
  .zoom-controls { bottom: 36px; }
  .map-note { top: 36%; }
  .veil { background: linear-gradient(180deg, transparent 0 46%, #080b0ba8 60%, #080b0be6 74%, #080b0bcc 100%); }
}
@media (max-height: 480px) and (min-width: 601px) {
  .legend { display: none; }
  .zoom-controls { bottom: 34px; }
}
