/* Reveal each pack once as it enters the viewport. */
.rich-card[data-tier=standard] { --reveal-delay: 0ms; }
.rich-card[data-tier=premium] { --reveal-delay: 160ms; }
.rich-card[data-tier=collector] { --reveal-delay: 320ms; }
.has-pack-motion [data-pack-reveal] {
  opacity: 0;
  translate: 0 32px;
  scale: .985;
}
.has-pack-motion [data-pack-reveal].is-visible {
  animation: pack-arrival 850ms cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms) both;
}
.has-pack-motion .rich-card.is-visible > .generated-frame {
  animation: pack-frame-reveal 1100ms cubic-bezier(.2, .7, .2, 1) calc(var(--reveal-delay) + 100ms) both;
}
.has-pack-motion .rich-card.is-visible .pack-emblem {
  animation: pack-emblem-arrival 700ms cubic-bezier(.16, 1, .3, 1) calc(var(--reveal-delay) + 220ms) both;
}
.frame-glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  filter: brightness(2) saturate(.6);
  mask-image: linear-gradient(110deg, transparent 40%, #000 49%, #000 52%, transparent 61%);
  mask-size: 350% 100%;
  mask-position: 140% 0;
}
.has-pack-motion .featured.is-visible > .frame-glint {
  animation: collector-frame-glint 1500ms ease-in-out calc(var(--reveal-delay) + 900ms) both;
}
@keyframes pack-arrival {
  from { opacity: 0; translate: 0 32px; scale: .985; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes pack-frame-reveal {
  from { clip-path: inset(0 0 100% 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes pack-emblem-arrival {
  from { opacity: 0; scale: .88; }
  to { opacity: 1; scale: 1; }
}
@keyframes collector-frame-glint {
  0% { opacity: 0; mask-position: 140% 0; }
  20% { opacity: .7; }
  80% { opacity: .7; }
  100% { opacity: 0; mask-position: -40% 0; }
}
@media (max-width:900px) {
  .rich-card[data-tier] { --reveal-delay: 0ms; }
}
@media (min-width:901px) and (hover:hover) and (prefers-reduced-motion:no-preference) {
  .enriched .rich-card { transition: transform .3s ease; }
  .enriched .rich-card:hover { transform:translateY(-4px) scale(var(--pack-scale)); }
  .enriched .rich-card.featured:hover { transform:translateY(-12px) scale(var(--pack-scale)); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .has-pack-motion [data-pack-reveal] { opacity: 1; translate: none; scale: none; animation: none; }
  .has-pack-motion .rich-card.is-visible > .generated-frame { animation: none; clip-path: none; }
  .has-pack-motion .rich-card.is-visible .pack-emblem { animation: none; }
  .has-pack-motion .featured.is-visible > .frame-glint { display: none; animation: none; }
}
