@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pb-page .dogcard.pb-tilt .image {
    position: relative;
    overflow: hidden;
    transform: perspective(950px) rotateX(0deg) rotateY(0deg);
    transition: transform .5s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease;
    border-radius: 18px;
    box-shadow: 0 5px 18px rgb(25 48 35 / .09);
  }

  .pb-page .dogcard.pb-tilt .image.is-tilted {
    transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.018);
    transition-duration: .16s, .35s;
    box-shadow: 0 16px 30px rgb(25 48 35 / .2);
  }

  .pb-page .dogcard.pb-tilt .image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--light-x, 50%) var(--light-y, 50%), rgb(255 252 230 / .22), transparent 62%);
    opacity: 0;
    transition: opacity .35s ease;
  }

  .pb-page .dogcard.pb-tilt .image.is-tilted::after { opacity: 1; }
}
