/* Journey rail (right-edge voyage nav) + lantern cursor glow. */

.journey {
  position: fixed;
  right: 26px;
  top: 50%;
  translate: 0 -50%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 8px 0;
}

.journey-track {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  translate: -50% 0;
  background: rgba(220, 230, 245, 0.10);
  overflow: hidden;
}
.journey-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 8px var(--glow);
}

.journey-stop {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 230, 245, 0.12);
  border-radius: 50%;
  background: rgba(8, 12, 18, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-faint);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  cursor: pointer;
  transition: color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.journey-stop:hover { color: var(--text); border-color: var(--border-hi); }
.journey-stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.journey-stop.active {
  color: var(--accent);
  border-color: rgba(95, 180, 196, 0.55);
  box-shadow: 0 0 16px rgba(95, 180, 196, 0.28);
}

.journey-stop .label {
  position: absolute;
  right: 44px;
  top: 50%;
  translate: 6px -50%;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: lowercase;
  color: var(--text-dim);
  background: rgba(8, 12, 18, 0.78);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 4px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease, translate 240ms ease;
}
.journey-stop:hover .label,
.journey-stop:focus-visible .label { opacity: 1; translate: 0 -50%; }

@media (max-width: 720px) {
  .journey { right: 10px; gap: 14px; }
  .journey-stop { width: 26px; height: 26px; font-size: 9px; background: rgba(8, 12, 18, 0.5); }
  .journey-stop .label { display: none; }
}

/* ───── GALAXY LINK → /map/ — slowly spinning spiral ───── */
.map-link {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 5;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(95, 180, 196, 0.35));
  transition: filter 320ms ease, transform 320ms ease;
}
.map-link .galaxy { overflow: visible; }
.map-link .galaxy-spin {
  transform-origin: 24px 24px;
  animation: galaxy-spin 90s linear infinite;
}
@keyframes galaxy-spin { to { transform: rotate(360deg); } }
.map-link:hover,
.map-link:focus-visible {
  transform: scale(1.18);
  filter:
    drop-shadow(0 0 14px rgba(255, 228, 160, 0.55))
    drop-shadow(0 0 30px rgba(95, 180, 196, 0.45));
  outline: none;
}

@media (max-width: 540px) {
  .map-link { right: 14px; bottom: 18px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .map-link .galaxy-spin { animation: none; }
}

/* ───── lantern cursor glow — fine pointers only ───────── */
.cursor-glow {
  position: fixed;
  left: -160px;
  top: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(95, 180, 196, 0.10) 0%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 500ms ease, background 400ms ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
.cursor-glow.warm {
  background: radial-gradient(circle, rgba(227, 106, 77, 0.13) 0%, transparent 62%);
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}
