/* Sleeping offscreen fans retain their position without ticking their animations. */
.motion-sleep, .motion-sleep *, :root[data-page-hidden] *, :root[data-page-busy] .home-feature-float,
:root[data-page-busy] .profile-card-float, :root[data-page-busy] .brand-card-fan * { animation-play-state: paused !important; }
.card-window-more { grid-column: 1 / -1; text-align: center; padding: 22px 4px; }
.card-window-more button { min-height: 44px; }
/* Paint reflections once, then move their layers. Avoid recalculating gradients
   and large soft shadows for each mouse movement. Phone tilt keeps its own layers. */
@media (hover: hover) and (pointer: fine) {
  .mtg-card .card-visual::before, .profile-showcase .profile-card-plane::before, .detail-card-image::before {
    background: radial-gradient(ellipse at 50% 50%, #ffffff5c, #ffffff14 25%, transparent 52%), linear-gradient(108deg, transparent 25%, #ffffff08 38%, #ffffff50 48%, #ffffff08 58%, transparent 72%);
    transform: translate3d(calc((var(--shine-x, 50%) - 50%) * .45), calc((var(--shine-y, 50%) - 50%) * .45), 0);
  }
  .mtg-card.is-foil .card-visual::after, .profile-showcase .public-foil-surface.is-foil::after, .detail-card-image.is-foil::after {
    inset: -18%;
    background: linear-gradient(124deg, #ff48863d 5%, #ffd95c3d 20%, #41d68840 38%, #509eff52 56%, #be6aff45 75%, #ff488638 94%);
    background-size: 100% 100%; filter: none;
    transform: translate3d(calc((var(--shine-x, 50%) - 50%) * -.3), calc((var(--shine-y, 50%) - 50%) * -.3), 0);
  }
  .mtg-card:hover .card-visual, .mtg-card:focus .card-visual,
  .profile-showcase .profile-fan-card:hover .profile-card-plane {
    box-shadow: 0 22px 34px #0006, 0 0 0 1px #ffffff38;
  }
  .mtg-card.is-foil:hover .card-visual, .mtg-card.is-foil:focus .card-visual { box-shadow: 0 22px 34px #0006, 0 0 18px #5cb3ff40, 0 0 0 1px #ffffff38; }
  .detail-card-image, .detail-card-image:hover, .detail-card-image:focus { filter: none; box-shadow: 0 24px 38px #0006; }
  .card-visual, .profile-showcase .profile-card-plane, .detail-card-image { transition: transform 45ms linear, opacity 180ms ease; }
}
