/* ============================================================================
   animations.css — Keyframes & GPU-accelerated motion.
   Connectors are STATIC solid neon lines (no moving/dashed energy).
   Only opacity is animated for entrances (transform stays free for focus).
   ========================================================================== */

/* ---- Connection lines: static neon stroke (tinted per branch) ---- */
.conn__base {
  fill: none;
  stroke: var(--conn-color, var(--line));
  stroke-width: 3;
  opacity: 0.95;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--conn-color, var(--line)));
}

/* arrowed edges read a touch bolder */
.conn--arrow .conn__base {
  stroke-width: 3;
}

/* dotted edges (flow links into I Coin / Redemption / Co-Lo) — static, no motion */
.conn--dashed .conn__base {
  stroke-dasharray: 2 8;
  stroke-width: 2.6;
  opacity: 0.85;
}

/* glowing dots at the start & end of each solid connector */
.conn__dot {
  fill: var(--conn-color, var(--line));
  filter: drop-shadow(0 0 6px var(--conn-color, var(--line)));
}

/* ---- Node entrance: opacity only (keeps transform free for focus mode) ----
   `backwards` applies the start state during the stagger delay, then hands
   control back to the stylesheet so focus-mode dimming keeps working. */
@keyframes node-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.node {
  animation: node-in 0.5s var(--ease) backwards;
  animation-delay: var(--rise-delay, 0s);
}

/* ---- Popup / profile entrance ---- */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
