/* A readable, softly luminous night. Day scenery retains its original pixels. */
.atlas-night-wash,.atlas-night-scene{display:none;position:absolute;inset:0;width:1800px;height:1200px;pointer-events:none;user-select:none}
.atlas-night-wash{z-index:1;background:linear-gradient(180deg,#071d4d85 0%,#14234847 37%,#12343e24 70%,#09253f65 100%);mix-blend-mode:multiply}
.atlas-night-scene{z-index:2;overflow:hidden}
.atlas-viewport.is-night{background-color:#122e40;background-image:radial-gradient(circle at 8% 8%,#b7dce9 0 1px,transparent 1.8px),radial-gradient(circle at 25% 4%,#e8d6a4 0 1px,transparent 1.8px),radial-gradient(circle at 43% 7%,#c6e8ef 0 1px,transparent 1.8px),radial-gradient(circle at 72% 5%,#a7c8e8 0 1px,transparent 1.8px),radial-gradient(circle at 91% 9%,#e4e8cf 0 1px,transparent 1.8px),radial-gradient(circle at 13% 96%,#a7c8e8 0 1px,transparent 1.8px),radial-gradient(circle at 61% 94%,#c6e8ef 0 1px,transparent 1.8px),radial-gradient(circle at 85% 97%,#e8d6a4 0 1px,transparent 1.8px)}
.is-night .atlas-land{filter:brightness(.65) saturate(.68) contrast(1.07)}
.is-night :is(.atlas-night-wash,.atlas-night-scene){display:block}
.atlas-friend{z-index:3}
.is-night .atlas-friend{filter:brightness(.9) drop-shadow(0 0 10px #d9f9ea66)}
.is-night .atlas-pin{z-index:4;color:#fff4da}
.is-night .atlas-pin .atlas-place-name{background:#102b36;color:#fff4da;border:1px solid #bce9de80;box-shadow:0 2px 6px #061c3270}
.is-night .atlas-pin-number{background:#123849;color:#fff4da;border-color:#def9e7;box-shadow:0 0 0 3px #132c46a3,0 0 16px #9be5dc60}
.is-night .atlas-pin[aria-pressed=true] .atlas-pin-number{background:#f1c87d;color:#192f37;outline-color:#fff4da}
.is-night[data-overview=true] .atlas-pin:is([aria-pressed=true],:hover,:focus-visible) .atlas-place-name{display:block;position:absolute;top:45px;min-width:100px;text-align:center;font-size:11px}
.atlas-board:has(.is-night){border-color:#607e87}
.atlas-board:has(.is-night) .atlas-board-bar{background:#173343;border-color:#71979e66;color:#e9f5ee}
.atlas-board:has(.is-night) .atlas-board-bar button{background:#214552;border-color:#a9c9c780;color:#f6f4df}
.atlas-board:has(.is-night) #atlas-mode{background:#f1d49a;color:#20333c;border-color:#f1d49a}
.atlas-night-note{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:12px 14px;margin:12px 0 0;border:1px solid #b6c7bf;border-radius:12px;background:#eaf0e8;color:#304b4c;font-size:11px;line-height:1.75}
.atlas-night-note strong{font-weight:600;white-space:nowrap}
.atlas-night-note[hidden]{display:none}
.night-trace{stroke:#69e8eb;stroke-width:1.5;opacity:.5}
.night-signal{stroke:#d9fff0;stroke-width:3;stroke-dasharray:3 115;filter:drop-shadow(0 0 3px #8bece7);animation:atlas-current var(--travel) linear infinite;animation-delay:var(--delay)}
.night-chip-body{fill:#163646;stroke:#a8f6e2;stroke-width:1.2;filter:drop-shadow(0 0 4px #89eaca)}
.night-chip-legs{fill:none;stroke:#8be0d2;stroke-width:1.2}
.night-star{opacity:.6}
.night-distant-star{animation:atlas-starlight 12s ease-in-out infinite;animation-delay:var(--delay)}
.night-firefly{opacity:.7;filter:drop-shadow(0 0 4px #dfff91);animation:atlas-firefly var(--travel) ease-in-out infinite;animation-delay:var(--delay)}
.atlas-viewport:not([data-ambient-active=true]) .atlas-night-scene *{animation-play-state:paused}
@keyframes atlas-current{to{stroke-dashoffset:-236}}
@keyframes atlas-starlight{0%,100%{opacity:.35}50%{opacity:.9}}
@keyframes atlas-firefly{0%,100%{transform:translate(0,0);opacity:.45}50%{transform:translate(4px,-8px);opacity:.85}}
html.no-motion .atlas-night-scene *{animation:none!important}
@media(prefers-reduced-motion:reduce){.atlas-night-scene *{animation:none!important}}
@media(max-width:800px){.night-firefly:nth-child(2n),.night-star:nth-child(3n){display:none}.night-trace{stroke-width:2}.night-signal{stroke-width:3.5}.is-night[data-overview=true] .atlas-pin:is([aria-pressed=true],:hover,:focus-visible) .atlas-place-name{display:none}}
@media(max-width:480px){.atlas-night-note{font-size:10px}.atlas-night-note strong{white-space:normal}.night-distant-star{animation:none}.night-firefly:nth-child(3n){display:none}}
