/* LotoRadar — Burst Inheritance
 * After RADAR BURST card warp-in, particles travel from card center → target
 * user avatars in chat-widget + lounge widget. Avatars get tier aura 30-60s.
 *
 * NOTE: aura applied directly to <img> via box-shadow + outline (no pseudo
 * elements — replaced elements don't support ::before/::after reliably).
 */

/* ── Traveling particles (DOM-based) — z-index above modal stack ────── */
.lr-inh-particle {
  position: fixed;
  z-index: 99700;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lr-inh-color, #B9F2FF);
  box-shadow: 0 0 10px var(--lr-inh-glow, rgba(185, 242, 255, 0.7)),
              0 0 22px var(--lr-inh-glow, rgba(185, 242, 255, 0.4));
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* ── Aura on avatar IMG (chat + lounge) ──────────────────────────────── */
img.lr-aura-active {
  outline: 1.5px solid var(--lr-aura-color, #B9F2FF);
  outline-offset: 1.5px;
  border-radius: 50%;
  animation: lr-aura-pulse 2s ease-in-out infinite;
}
@keyframes lr-aura-pulse {
  0%, 100% {
    box-shadow: 0 0 6px var(--lr-aura-glow, rgba(185, 242, 255, 0.5)),
                0 0 14px var(--lr-aura-soft, rgba(185, 242, 255, 0.18));
  }
  50% {
    box-shadow: 0 0 16px var(--lr-aura-glow, rgba(185, 242, 255, 0.85)),
                0 0 32px var(--lr-aura-color, #B9F2FF);
  }
}

/* Avatar fallback — when user has no badge img, we synthesize a span with same class */
span.lr-aura-active {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lr-aura-soft, rgba(185, 242, 255, 0.18));
  outline: 1.5px solid var(--lr-aura-color, #B9F2FF);
  outline-offset: 1.5px;
  animation: lr-aura-pulse 2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* Username tint — soft tier color on the @name text while aura active */
.lr-aura-user-tint {
  color: var(--lr-aura-color, #B9F2FF) !important;
  text-shadow: 0 0 6px var(--lr-aura-soft, rgba(185, 242, 255, 0.4));
}

/* Outro — fade-out of aura over the last 1.5s before removal */
img.lr-aura-active.lr-aura-fading,
span.lr-aura-active.lr-aura-fading {
  animation: lr-aura-fade 1.5s ease-out forwards;
}
@keyframes lr-aura-fade {
  0%   { box-shadow: 0 0 16px var(--lr-aura-glow, rgba(185, 242, 255, 0.85)),
                     0 0 32px var(--lr-aura-color, #B9F2FF);
         outline-color: var(--lr-aura-color, #B9F2FF); }
  100% { box-shadow: 0 0 0 transparent; outline-color: transparent; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  img.lr-aura-active, span.lr-aura-active { animation: none; }
  .lr-inh-particle { display: none; }
}
