/* Pixel collection cards: hand-built scene + sprite, with a hop and sparkle on hover and tap. */
.px-coll-stage { position: relative; overflow: hidden; }
.collection-card .px-coll-stage .px-coll-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated !important; }
.collection-card .px-coll-art { position: absolute; left: 50%; bottom: 13%; height: 40%; width: auto; max-width: 62%; object-fit: contain; image-rendering: pixelated;
  transform: translateX(-50%); transform-origin: 50% 100%; z-index: 1; filter: drop-shadow(0 3px 0 #0000002e); }
.px-spark { position: absolute; z-index: 2; width: 7%; aspect-ratio: 1; background: url(./pixel/collections/star.png) center / contain no-repeat; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.px-spark.s1 { left: 30%; top: 26%; } .px-spark.s2 { left: 64%; top: 18%; width: 5%; } .px-spark.s3 { left: 70%; top: 52%; width: 6%; }
@media (prefers-reduced-motion: no-preference) {
  .collection-card:hover .px-coll-art, .collection-card:focus-visible .px-coll-art { animation: px-hop .7s cubic-bezier(.3,.7,.3,1) both; }
  .collection-card.px-tap .px-coll-art, .collection-card:active .px-coll-art { animation: px-wiggle .45s ease both; }
  .collection-card:hover .px-spark, .collection-card:focus-visible .px-spark, .collection-card.px-tap .px-spark { animation: px-spark .9s steps(6) both; }
  .collection-card:hover .px-spark.s2, .collection-card.px-tap .px-spark.s2 { animation-delay: .15s; }
  .collection-card:hover .px-spark.s3, .collection-card.px-tap .px-spark.s3 { animation-delay: .3s; }
}
@keyframes px-hop { 0% { transform: translateX(-50%) translateY(0) scale(1, 1); } 18% { transform: translateX(-50%) translateY(0) scale(1.08, .9); }
  45% { transform: translateX(-50%) translateY(-14%) scale(.95, 1.06); } 70% { transform: translateX(-50%) translateY(0) scale(1.05, .94); } 100% { transform: translateX(-50%) translateY(0) scale(1, 1); } }
@keyframes px-wiggle { 0%, 100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-50%) rotate(-7deg); } 50% { transform: translateX(-50%) rotate(6deg); } 75% { transform: translateX(-50%) rotate(-3deg); } }
@keyframes px-spark { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; transform: scale(1.15); } 60% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(.4); } }
/* evening light follows the site clock */
.px-coll-stage::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, #2e2c6a, #43264f); mix-blend-mode: multiply; opacity: calc(var(--dc-night, 0) * .7); transition: opacity 1.2s linear; }
.px-coll-stage::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 120% 60% at 50% 120%, #ff9a52, transparent 60%); mix-blend-mode: soft-light; opacity: calc(var(--dc-tint, 0) * .6); }
