/* VIOLET cards: the deep violet look from the original game, with a rotating
   violet-and-white shimmer on the frame, a big dark disc behind the card and
   drifting purple sparkles. js/ui.js adds class "violet" (and the sparkles). */

@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.card.violet .card-front {
  color: #f6f0ff;
  background:
    radial-gradient(circle at 50% 66%, transparent 0 24%, rgba(24, 0, 140, 0.34) 25% 41%, transparent 42%) padding-box,
    radial-gradient(circle at 50% 0%, rgba(200, 160, 255, 0.32), transparent 62%) padding-box,
    linear-gradient(#4700e6, #3300b4) padding-box,
    conic-gradient(from var(--ang), #7a3cff, #dcc8ff, #9a5cff, #fff, #6a2cff, #c9a8ff, #7a3cff) border-box;
  animation: violet-spin 6s linear infinite, violet-glow 2.4s ease-in-out infinite alternate;
}
@keyframes violet-spin { to { --ang: 360deg; } }
@keyframes violet-glow {
  from { box-shadow: 0 0 16px 3px rgba(110, 40, 255, 0.65), 0 12px 26px rgba(0, 0, 0, 0.45); }
  to   { box-shadow: 0 0 32px 8px rgba(170, 120, 255, 0.78), 0 12px 26px rgba(0, 0, 0, 0.45); }
}

/* slow violet light sweeping across the card */
.card.violet .card-front::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 11px; pointer-events: none;
  background: linear-gradient(115deg, transparent 14%, rgba(120, 60, 255, 0.34) 32%, rgba(235, 220, 255, 0.4) 45%,
    rgba(150, 90, 255, 0.34) 57%, transparent 80%);
  background-size: 260% 260%; animation: shiny-holo 3.6s ease-in-out infinite alternate;
}

/* the art box: lighter violet panel with the big round shape from the original */
.card.violet .card-art {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(40, 0, 160, 0.34) 31% 47%, transparent 48%),
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.42), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 10px, transparent 10px 20px),
    linear-gradient(155deg, #8a4cff, #5a1ee0 85%);
  box-shadow: inset 0 0 0 2px rgba(225, 205, 255, 0.5), inset 0 -18px 30px rgba(30, 0, 120, 0.35);
}
.card.violet .art-initials { text-shadow: 0 3px 0 rgba(40, 0, 130, 0.55), 0 0 16px rgba(205, 170, 255, 0.95); }
.card.violet .card-odds { color: #d8c0ff; }
.card.violet .badge-diff { box-shadow: 0 0 8px rgba(190, 150, 255, 0.6); }

/* sparkles reuse the star shapes from shiny.css, tinted violet */
.card.violet .star { background: radial-gradient(circle, #fff 25%, #c7a2ff 100%); }

.tag-violet { top: 6px; right: 6px; background: linear-gradient(90deg, #5a1ee0, #b78bff); color: #fff; text-shadow: 0 1px 0 rgba(30, 0, 100, 0.6); }

/* reveal flash */
.flash.flash-violet { background: radial-gradient(circle at 50% 45%, #fff 0, rgba(190, 150, 255, 0.85) 30%, transparent 72%); }

/* collection bar + shop rows */
.coll-bar.violet-mode .progress-fill { background: linear-gradient(90deg, #5a1ee0, #c9a8ff); }
.coll-bar.violet-mode .coll-text b { color: #cdb0ff; }
.sell-row.is-violet { background: rgba(120, 60, 255, 0.16); }

@media (prefers-reduced-motion: reduce) {
  .card.violet .card-front, .card.violet .card-front::before { animation: none; }
}
