/* The original illustration fills the taller card while the frame follows the paper. */
#view-shop.shop-ritual :is(.shop-deck-layer, .shop-choice-back) > img {
  display: block;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(16% 4%, 84% 4%, 95% 13%, 95% 87%, 88% 96%, 12% 96%, 5% 87%, 5% 13%);
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(.94) sepia(.12);
  opacity: .81;
  mask: url('assets/shop-tarot/desgaste-tinta.svg') center / 100% 100% no-repeat;
  mask-mode: alpha;
}

#view-shop.shop-ritual :is(.shop-deck-layer, .shop-choice-back)::before {
  position: absolute;
  z-index: 1;
  inset: 4%;
  border: 1px solid #5a432f93;
  border-radius: 2px 3px 2px 3px;
  box-shadow: 0 0 0 1px #e8cc9a59;
  pointer-events: none;
  content: '';
}

#view-shop.shop-ritual :is(.shop-deck-layer, .shop-choice-back)::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(146deg, transparent 0 13%, #62462d12 13.3%, #fff1d438 13.6%, transparent 14%),
    linear-gradient(18deg, transparent 0 84%, #51352213 84.5%, #fff0d633 84.9%, transparent 85.3%);
  box-shadow: inset 0 0 9px #79532d40;
  pointer-events: none;
  content: '';
}
