/* Navigation and the scroll-driven map share a dark stage in both themes. */
.top,.atlas { color:#fff9fc; background:#110c17 }
.top { position:relative; z-index:5 }
.bar { border-color:#443145 }
.brand { color:#fff }
.brand-vpn { color:#feb0d1 }
.bar nav a { position:relative; color:#e7dce9; text-decoration:none; padding-block:8px }
.bar nav a::after { content:""; position:absolute; inset:auto 0 2px; height:2px; background:linear-gradient(90deg,#ff4b37,#ff258a,#9939ff); transform:scaleX(0); transform-origin:left; transition:transform .19s }
.bar nav a:hover,.bar nav a:focus-visible { color:white; text-decoration:none }
.bar nav a:is(:hover,:focus-visible,[aria-current])::after { transform:scaleX(1) }
.cabinet-link { background:#27172e; color:#fff; border:1px solid #735172; border-radius:12px; min-height:44px }
.cabinet-link:is(:hover,:focus-visible,[aria-current]) { background:#502068; border-color:#d989fa; color:white }
.nav-fold { display:none; position:relative }
.nav-fold summary,.theme-menu summary { width:44px; height:44px; display:grid; place-items:center; list-style:none; color:#f4e4f2; border-radius:12px }
.nav-fold summary::-webkit-details-marker { display:none }
:is(.nav-fold,.theme-menu) summary:hover,:is(.nav-fold,.theme-menu)[open] summary { color:white; background:#42214f; box-shadow:inset 0 0 0 1px #885d95 }
.top :focus-visible { outline:3px solid #ff8be0; outline-offset:3px }
.theme-options { top:calc(100% + 6px); min-width:194px; padding:6px; gap:3px; border:1px solid #795582; border-radius:14px; background:#28172f; box-shadow:0 12px 40px #0e051c88 }
.theme-options button { display:flex; justify-content:flex-start; border-radius:9px; gap:10px; min-height:42px; color:#f5e6f4; font-weight:550 }
.theme-options .ui-icon { width:17px; height:17px }
.theme-options button:is(:hover,:focus-visible) { background:#4d2b58; color:white; filter:none }
.theme-options button[aria-pressed="true"] { background:#6720a8; color:white; box-shadow:inset 3px 0 #f88dff }
.theme-options button[aria-pressed="true"]::after { content:""; width:9px; height:5px; border:solid currentColor; border-width:0 0 2px 2px; transform:rotate(-45deg); margin-left:auto }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }

.atlas { height:179vh; height:179svh; min-height:960px; position:relative; isolation:isolate }
.atlas-stage {
  --travel:0;
  position:sticky; top:0; height:calc(100vh - 76px); height:calc(100svh - 76px);
  min-height:520px; max-height:1050px; overflow:hidden; isolation:isolate;
  background:
    radial-gradient(ellipse at 68% 28%,#83174385 0%,transparent 42%),
    radial-gradient(ellipse at 88% 69%,#5f15889c 0%,transparent 48%),#110c17;
}
.atlas-sky,.atlas-shadow,#atlasGlobe,#atlasOrbits { position:absolute; inset:0; width:100%; height:100%; pointer-events:none }
.atlas-sky { background:url("/assets/atlas-stars.webp") 50% 45%/720px 576px; mix-blend-mode:screen; filter:grayscale(1); opacity:.82 }
.atlas-shadow { background:linear-gradient(0deg,var(--home-ground) 0%,transparent 12%),linear-gradient(90deg,#110c17a8,transparent 46%) }
.scene-inner { position:relative; height:calc(100% - 78px); display:flex; align-items:center; pointer-events:none }
.atlas-lead { position:relative; width:48%; padding-bottom:1vh }
.atlas-titles { position:relative }
.atlas-titles h1,.destination-copy { color:#fff9ff; font-size:clamp(5rem,8.05vw,8.8rem); font-weight:750; letter-spacing:-.088em; line-height:.97; transition:opacity .24s,transform .28s }
.atlas-titles em,.destination-copy strong {
  display:block; font-family:inherit; font-style:normal; font-weight:780; letter-spacing:-.091em;
  color:#ff4d87; width:fit-content; max-width:100%;
  background:linear-gradient(108deg,#ff6631 5%,#ff417b 45%,#da50ff 99%); background-clip:text; -webkit-text-fill-color:transparent;
}
.atlas-titles h1 br { display:none }
.atlas-description { margin-top:clamp(20px,2.1vw,30px); max-width:29ch; color:#e8dbe8; font-size:clamp(1.04rem,1.3vw,1.25rem); line-height:1.45; min-height:2.9em }
.atlas-action { display:inline-flex; justify-content:center; align-items:center; gap:20px; min-height:52px; margin-top:24px; padding:7px 8px 7px 22px; border-radius:14px; background:#ff563b; color:#200c1a; font-size:1rem; text-decoration:none; font-weight:725; pointer-events:auto; transition:background .18s,transform .18s,box-shadow .18s }
.atlas-action svg { box-sizing:content-box; padding:8px; width:18px; height:18px; border-radius:9px; background:#290e25; color:white; transition:transform .18s }
.atlas-action:is(:hover,:focus-visible) { transform:translateY(-2px); background:#ff7356; box-shadow:0 8px 30px #ff334530 }
.atlas-action:hover svg { transform:translateY(2px) }
.atlas-action:active { transform:translateY(1px) }
.atlas :focus-visible { outline:3px solid #ff92e6; outline-offset:4px }
.destination-copy { position:absolute; inset:0; opacity:0; transform:translateY(12px); pointer-events:none }
.destination-copy span { display:block }
.destination-copy strong { font-size:clamp(2.7rem,7.3vw,8rem); overflow-wrap:anywhere; line-height:1.04 }
.at-destination .atlas-titles h1 { opacity:0; transform:translateY(-12px) }
.at-destination .destination-copy { opacity:1; transform:none }
.at-destination .atlas-shadow { background:linear-gradient(0deg,var(--home-ground) 0%,transparent 18%),linear-gradient(90deg,#140a1df5 0%,#180a22d1 31%,#16092238 62%,transparent 85%) }
.atlas-foot { height:78px; position:relative; display:flex; align-items:center; gap:24px; border-top:1px solid #77506f; font:.78rem var(--mono); color:#d5c1d5 }
.atlas-foot::before { content:""; position:absolute; top:-1px; left:0; right:0; height:2px; transform:scaleX(var(--travel)); transform-origin:left; background:linear-gradient(90deg,#ae49ff,#fc2283,#ff6232) }
.scroll-hint { display:inline-flex; align-items:center; gap:10px; min-height:44px; color:#fff1f6 }
.scroll-hint svg { width:19px; height:19px; color:#ff6ba6 }
#atlasNetwork { margin-left:auto; padding-left:18px; border-left:2px solid #ff448e; color:#f3e8f4 }
.at-destination #atlasNetwork { display:none }
.atlas-location { margin-left:auto; white-space:pre; font-variant-numeric:tabular-nums }
.route-choice { display:flex; align-items:center; gap:9px; color:#f6e8f3 }
.route-choice select { width:auto; max-width:21ch; background-color:#311a39; color:white; border-color:#9c65a5; min-height:42px; padding-block:6px }
.geo-pin { position:absolute; z-index:1; height:0; pointer-events:none }
.pin-point { position:absolute; top:-5px; left:-5px; width:10px; height:10px; border:2px solid #ffe7c0; border-radius:50%; background:#ff4d2c; box-shadow:0 0 0 4px #ff6a3855,0 0 18px #ff6634 }
#pinCountry { display:flex; align-items:center; gap:7px; position:absolute; bottom:17px; left:23px; white-space:nowrap; color:white; padding:4px 10px 4px 4px; border:1px solid #f290a3; border-radius:7px; background:#260f28ed; font:650 .83rem/1.3 Inter,"Segoe UI",sans-serif }
#pinCode { padding:3px 5px; border-radius:3px; background:#ff5a37; color:#260d1c; font:700 .66rem var(--mono) }
#pinCountry::before { content:""; width:24px; height:1px; background:#ffb48e; position:absolute; left:-21px; bottom:-9px; transform:rotate(-38deg) }
.flipped #pinCountry { left:auto; right:23px }.flipped #pinCountry::before { left:auto; right:-21px; transform:rotate(38deg) }
.atlas:has(.no-routes),.atlas:has(.atlas-unavailable) { height:auto; min-height:0 }
.atlas-stage:not(.ready)::before { content:""; position:absolute; left:71%; top:48%; width:min(68vw,102svh); aspect-ratio:1.26; transform:translate(-50%,-50%); background:url("/assets/atlas-poster.webp") center/contain no-repeat; pointer-events:none }

@media (max-width:720px) {
  .bar { min-height:72px; padding-block:10px; flex-wrap:nowrap }
  .bar nav { display:none }
  .nav-fold { display:block }
  .nav-fold nav { position:absolute; z-index:12; top:calc(100% + 6px); right:-40px; width:max-content; display:grid; padding:6px; gap:3px; border:1px solid #795582; border-radius:14px; background:#28172f; box-shadow:0 12px 40px #14082088 }
  .nav-fold nav a { display:block; min-height:44px; padding:11px 16px; border-radius:9px }
  .nav-fold nav a:is(:hover,:focus-visible,[aria-current]) { color:white; background:#54206b }
  .nav-fold nav a::after { content:none }
  .bar-tools { margin-left:auto }
  .atlas { height:171svh; min-height:850px }
  .atlas-stage { height:calc(100svh - 72px); min-height:535px; max-height:920px; background:radial-gradient(ellipse at 65% 64%,#6e1d6885,transparent 56%),#110c17 }
  .atlas-stage:not(.ready)::before { left:53%; top:65.5%; width:min(102vw,62svh) }
  .scene-inner { height:calc(100% - 58px); align-items:flex-start }
  .atlas-lead { width:100%; padding:clamp(20px,4.2svh,45px) 0 0 }
  .atlas-titles h1,.destination-copy { font-size:clamp(3.35rem,11.9vw,5.1rem); line-height:.97 }
  .destination-copy strong { font-size:inherit }
  .atlas-description { margin-top:13px; max-width:31ch; font-size:1rem; min-height:0 }
  .atlas-action { min-height:44px; margin-top:15px; padding:6px 6px 6px 15px; font-size:.94rem; gap:14px; border-radius:12px }
  .atlas-action svg { width:16px; height:16px; padding:6px }
  .atlas-shadow { background:linear-gradient(180deg,#110c17bb,transparent 40%,transparent 87%,var(--home-ground) 100%) }
  .at-destination .atlas-shadow { background:linear-gradient(180deg,#170b20f8 0%,#15091fcf 25%,#170b2022 48%,transparent 62%,transparent 80%,var(--home-ground) 98%) }
  .atlas-foot { height:58px; gap:10px; font-size:.7rem; justify-content:space-between }
  .scroll-hint { gap:6px }
  .atlas-location { display:none }
  .at-destination .atlas-location { display:inline; font-size:.65rem }
  .atlas-foot:has(.route-choice:not([hidden])) .atlas-location { display:none }
  #atlasNetwork { padding-left:9px; max-width:55% }
  .atlas-foot:has(.route-choice:not([hidden])) #atlasNetwork,.route-choice>span { display:none }
  .route-choice select { max-width:44vw }
}
@media (max-height:680px) and (max-width:720px) {
  .atlas-stage { min-height:535px }
  .atlas-lead { padding-top:14px }
  .atlas-titles h1,.destination-copy { font-size:clamp(2.8rem,9vw,4.2rem) }
  .atlas-description { margin-top:8px }
  .atlas-action { margin-top:10px }
}
@media (max-width:370px) {
  .cabinet-link>span { display:none }
  .cabinet-link { min-width:44px; padding:0 }
}
@media (prefers-reduced-motion:reduce) {
  .atlas { height:auto; min-height:0 }
  .atlas-stage { position:relative }
  .atlas-titles h1,.destination-copy,.atlas-action { transition:none }
  .scroll-hint { display:none }
  #atlasNetwork { margin-left:0 }
  .at-destination #atlasNetwork { display:inline }
}
@media (forced-colors:active) {
  .atlas-titles em,.destination-copy strong { -webkit-text-fill-color:CanvasText }
  .atlas-action,.theme-options button[aria-pressed="true"] { border:2px solid ButtonText }
}
