/* TradePlexa 3.5.66 — lingering particles after UFO flash in and flash out.
   Adds subtle drifting spark particles after arrival and after disappearance.
   Keeps the effect local to the UFO area and does not affect chart logic. */

html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight {
  overflow:visible!important;
}

html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight::before,
html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight::after {
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width:4px;
  height:4px;
  border-radius:999px;
  pointer-events:none;
  z-index:4;
  opacity:0;
  will-change:transform,opacity;
}

/* Arrival particles: a little brighter and denser */
html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight::before {
  background:rgba(255,255,255,.95);
  box-shadow:
    -34px -20px 0 1px rgba(255,255,255,.84),
    -22px -9px 0 0 rgba(164,233,255,.90),
    -12px 8px 0 1px rgba(188,145,255,.70),
    8px -18px 0 0 rgba(255,255,255,.82),
    20px -8px 0 1px rgba(155,228,255,.90),
    30px 6px 0 0 rgba(255,255,255,.72),
    12px 18px 0 1px rgba(191,152,255,.72),
    -28px 16px 0 0 rgba(161,232,255,.78),
    0 -28px 0 1px rgba(255,255,255,.88),
    40px -2px 0 0 rgba(152,225,255,.72),
    -40px 2px 0 0 rgba(255,255,255,.68),
    26px 22px 0 0 rgba(196,162,255,.56),
    -16px 26px 0 0 rgba(255,255,255,.52),
    4px 30px 0 0 rgba(162,232,255,.58),
    -4px -36px 0 0 rgba(255,255,255,.58);
  filter:drop-shadow(0 0 3px rgba(177,230,255,.48)) drop-shadow(0 0 8px rgba(176,124,255,.18));
  transform:translate3d(-50%,-50%,0) scale(.45);
  animation:tp3566-particles-arrive 34s linear infinite!important;
}

/* Departure particles: slightly sparser, as residual traces */
html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight::after {
  background:rgba(255,255,255,.92);
  box-shadow:
    -30px -18px 0 0 rgba(255,255,255,.74),
    -18px -6px 0 1px rgba(160,232,255,.84),
    -9px 12px 0 0 rgba(190,147,255,.64),
    10px -14px 0 0 rgba(255,255,255,.78),
    22px -4px 0 1px rgba(155,226,255,.82),
    32px 8px 0 0 rgba(255,255,255,.66),
    14px 20px 0 0 rgba(188,148,255,.60),
    -24px 18px 0 0 rgba(155,228,255,.70),
    0 -24px 0 0 rgba(255,255,255,.76),
    36px -1px 0 0 rgba(154,225,255,.64),
    -36px 6px 0 0 rgba(255,255,255,.60),
    18px 28px 0 0 rgba(191,161,255,.50),
    -14px 24px 0 0 rgba(255,255,255,.48);
  filter:drop-shadow(0 0 2px rgba(178,229,255,.42)) drop-shadow(0 0 7px rgba(175,126,255,.14));
  transform:translate3d(-50%,-50%,0) scale(.42);
  animation:tp3566-particles-depart 34s linear infinite!important;
}

@keyframes tp3566-particles-arrive {
  0%,18.15% {
    opacity:0;
    transform:translate3d(-50%,-50%,0) scale(.36) rotate(0deg);
  }
  18.45% {
    opacity:.94;
    transform:translate3d(-50%,-50%,0) scale(.72) rotate(0deg);
  }
  19.6% {
    opacity:.86;
    transform:translate3d(-47%,-53%,0) scale(.94) rotate(5deg);
  }
  21.8% {
    opacity:.64;
    transform:translate3d(-44%,-58%,0) scale(1.05) rotate(12deg);
  }
  24.2% {
    opacity:.38;
    transform:translate3d(-41%,-62%,0) scale(1.12) rotate(20deg);
  }
  27.4%,100% {
    opacity:0;
    transform:translate3d(-38%,-66%,0) scale(1.18) rotate(28deg);
  }
}

@keyframes tp3566-particles-depart {
  0%,60.25% {
    opacity:0;
    transform:translate3d(-50%,-50%,0) scale(.34) rotate(0deg);
  }
  60.55% {
    opacity:.82;
    transform:translate3d(-50%,-50%,0) scale(.64) rotate(0deg);
  }
  61.6% {
    opacity:.72;
    transform:translate3d(-53%,-47%,0) scale(.84) rotate(-6deg);
  }
  63.5% {
    opacity:.50;
    transform:translate3d(-57%,-43%,0) scale(.98) rotate(-12deg);
  }
  65.8% {
    opacity:.28;
    transform:translate3d(-61%,-38%,0) scale(1.07) rotate(-18deg);
  }
  68.2%,100% {
    opacity:0;
    transform:translate3d(-64%,-34%,0) scale(1.13) rotate(-24deg);
  }
}

@media(prefers-reduced-motion:reduce) {
  html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight::before,
  html body #dashboard .tp68-analytics .ref-middle > .ref-panel.tp3337-equity-milkyway > .tp3561-space .tp3561-ufo-flight::after {
    display:none!important;
    animation:none!important;
  }
}
