/* Remove the old full-card foil: WebKit blends it through the inner stacking layer. */
.card.v2.mythique::after,
.card.v2.legendaire::after { content: none; display: none; }
.card.v2.mythique .in,
.card.v2.legendaire .in { z-index: 2; }
/* One narrow, translucent rainbow pass over the illustration only. */
.card.v2.mythique:not(.locked) .in::after,
.card.v2.legendaire:not(.locked) .in::after {
  content: "";
  position: absolute;
  inset: 0 0 42%;
  z-index: 3;
  pointer-events: none;
  border-radius: 11px 11px 0 0;
  opacity: .18;
  mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 35%, #ff63bd 43%, #ffda72 47%, #76efcf 51%, #8babff 55%, transparent 63%);
  background-size: 300% 100%;
  animation: mythique-art-shimmer 6s linear infinite;
}
@keyframes mythique-art-shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card.v2.mythique:not(.locked) .in::after,
.card.v2.legendaire:not(.locked) .in::after {
    animation: none;
    background-position: 50% 0;
  }
}
