/* Background planet canvases and request cards. Uses the page tokens --accent, --sea, --line, --muted, --text. */
#planet, #globe, #pins {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  transition: opacity .8s ease;
}
#planet { z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
#planet.ready { opacity: 1; }
#globe { z-index: 1; }
#pins { z-index: 1; overflow: hidden; }
body.scrolled #planet, body.scrolled #globe, body.scrolled #pins { opacity: .28; }

.pin {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform, opacity;
}
.pin.on { opacity: 1; }
.pin .dot {
  position: absolute; left: -4px; top: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201,169,110,.6);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 14px rgba(201,169,110,0); } }
.pin .card {
  position: absolute; left: 12px; bottom: 10px;
  min-width: 160px; max-width: 250px; width: max-content;
  padding: 7px 10px;
  background: rgba(12, 14, 18, .86);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  font-size: 11.5px; line-height: 1.35;
}
.pin.left .card { left: auto; right: 12px; border-left: 1px solid var(--line); border-right: 2px solid var(--accent); text-align: right; }
.pin.left .city { float: left; margin: 0 10px 0 0; }
.pin.move .dot { display: none; }
.pin.move .card { border-left-color: var(--sea); }
.pin.move.left .card { border-left-color: var(--line); border-right-color: var(--sea); }
.pin.move .tag { color: var(--sea); }
.pin .tag {
  display: inline-block;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.pin .city { color: var(--muted); font-size: 10.5px; float: right; margin-left: 10px; }
.pin .what { display: block; margin-top: 2px; color: var(--text); }

