:root {
  --atlas-visited: #36845a;
  --atlas-visited-deep: #21623f;
  --atlas-route: #24593d;
  --atlas-light: #9dde87;
}

.legend-on {
  background: var(--atlas-visited);
}

#world-map .country.is-visited .country-shape,
#world-map .country.is-visited .country-dot {
  fill: var(--atlas-visited);
}

#world-map .country.is-visited:is(:hover, :focus-visible) .country-shape,
#world-map .country.is-visited:is(:hover, :focus-visible) .country-dot {
  fill: var(--atlas-visited-deep);
}

#world-map .country.is-lighting .country-shape,
#world-map .country.is-lighting .country-dot {
  animation: atlas-land-arrival 1100ms ease-out;
}

#world-map .map-arrival-ring,
#world-map .map-arrival-glow {
  transform-origin: 0 0;
  pointer-events: none;
  opacity: 0;
}

#world-map .map-arrival-ring {
  fill: none;
  stroke: #2b8c53;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  animation: atlas-arrival-ring 1050ms cubic-bezier(.18,.56,.25,1) both;
}

#world-map .map-arrival-glow {
  fill: var(--atlas-light);
  animation: atlas-arrival-glow 800ms ease-out both;
}

#world-map .flight-route {
  stroke: var(--atlas-route);
  stroke-width: 1.8;
}

#world-map .route-plane {
  fill: #183e2a;
  stroke: #f6fff0;
}

#world-map .route-endpoint {
  fill: #f3ffe5;
  stroke: var(--atlas-route);
}

@keyframes atlas-land-arrival {
  0% { fill: var(--land); }
  28% { fill: #8ac575; }
  65% { fill: #4e9c65; }
  100% { fill: var(--atlas-visited); }
}

@keyframes atlas-arrival-ring {
  from { opacity: .95; transform: scale(.19); }
  72% { opacity: .5; }
  to { opacity: 0; transform: scale(1.28); }
}

@keyframes atlas-arrival-glow {
  from { opacity: .72; transform: scale(.25); }
  to { opacity: 0; transform: scale(1.22); }
}

@media (prefers-reduced-motion: reduce) {
  #world-map .country.is-lighting .country-shape,
  #world-map .country.is-lighting .country-dot,
  #world-map .map-arrival-ring,
  #world-map .map-arrival-glow {
    animation: none;
  }
}
