/* The list stays level. The actual print moves when a player inspects it. */
#grid .card:hover { transform:none; }
#grid .thumb { transition:box-shadow .15s ease-out; }
#grid .card:is(:hover,:focus-visible) .thumb {
  box-shadow:0 2px 6px #050711c9, 0 0 0 1px #c7b48583;
}
.card-stage {
  width:min(100%,46.55vh,401px);
  aspect-ratio:744 / 1039;
  position:relative;
  border-radius:4%;
  touch-action:pan-y pinch-zoom;
}
.card-material {
  --card-rx:0deg;
  --card-ry:0deg;
  --light-x:50%;
  --light-y:50%;
  --light:0;
  position:relative;
  isolation:isolate;
  width:100%;
  height:100%;
  border-radius:inherit;
  overflow:hidden;
  pointer-events:none;
  box-shadow:0 10px 24px #07081bb3;
}
.card-stage.is-moving .card-material {
  will-change:transform;
  transform:perspective(950px) rotateX(var(--card-rx)) rotateY(var(--card-ry));
}
.atlas-card-print .card-material img {
  width:100%; height:100%; max-width:none; max-height:none; object-fit:contain;
  border-radius:inherit; box-shadow:none; user-select:none;
}
/* A soft, moving reflection from the paper coating. */
.card-material::after {
  content:"";
  position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  background:radial-gradient(ellipse farthest-corner at var(--light-x) var(--light-y),
    #fff0d3b5 0%,#f2f3ff3d 19%,#e9ecff09 43%,transparent 67%);
  mix-blend-mode:screen;
  opacity:calc(var(--light) * .42);
}
@media(max-width:650px) {
  .card-stage { width:min(88%,31.51vh,251px); }
}
@media(prefers-reduced-motion:reduce) {
  #grid .thumb { transition:none; }
  .card-stage.is-moving .card-material { transform:none; will-change:auto; }
  .card-material::after { display:none; }
}


