/* A visible, gentle Legendary pulse; one smooth rise/fall per nine seconds. */
:is(.rift-card[data-rarity=legendary] .rift-card-art,
    .rift-portrait-panel[data-rarity=legendary]) > .rarity-sparks::after {
  background: radial-gradient(ellipse at center, #fff1e608 20%, #ffc1cf18 100%);
  box-shadow: inset 0 0 0 2px #ffd2dc, inset 0 0 30px #ff73966b;
  animation: legendary-soft-pulse 9s ease-in-out var(--prestige-delay) infinite;
}
@keyframes legendary-soft-pulse {
  0%, 68%, 94%, 100% { opacity: 0; }
  81% { opacity: .85; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.rift-card[data-rarity=legendary] .rift-card-art,
      .rift-portrait-panel[data-rarity=legendary]) > .rarity-sparks::after {
    animation: none;
    opacity: 0;
  }
}
