.key-wither-tone {
  --item-glow: 166 164 175;
  --key-offset-y: 0px;
}
.key-warden-tone {
  --item-glow: 41 212 232;
  --key-offset-y: 18px;
}
.key-blaze-tone {
  --item-glow: 255 189 56;
  --key-offset-y: 0px;
}
.key-enderman-tone {
  --item-glow: 216 82 255;
  --key-offset-y: 14px;
}
.key-guardian-tone {
  --item-glow: 114 212 190;
  --key-offset-y: -8px;
}

.product-card--cases .product-info h3 {
  text-transform: uppercase;
}
.product-card--cases .product-info h3 > span {
  color: #f5f3f4;
}
.product-card--cases .product-info h3 > strong {
  display: inline;
  position: relative;
  padding: 0 0.14em 0.03em;
  color: rgb(var(--item-glow));
  border-radius: 0.16em;
  background: linear-gradient(
    180deg,
    transparent 8%,
    rgb(var(--item-glow) / 0.08) 8%,
    rgb(var(--item-glow) / 0.15) 92%,
    transparent 92%
  );
  box-shadow: inset 0 -1px rgb(var(--item-glow) / 0.48);
  font: inherit;
  line-height: inherit;
  text-shadow: 0 0 18px rgb(var(--item-glow) / 0.32);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition:
    color 0.25s,
    background 0.25s,
    text-shadow 0.25s,
    box-shadow 0.25s;
}
.product-card--cases:hover .product-info h3 > strong,
.product-card--cases:focus-within .product-info h3 > strong {
  color: color-mix(in srgb, rgb(var(--item-glow)) 78%, white);
  background: linear-gradient(
    180deg,
    transparent 4%,
    rgb(var(--item-glow) / 0.13) 4%,
    rgb(var(--item-glow) / 0.22) 94%,
    transparent 94%
  );
  box-shadow: inset 0 -2px rgb(var(--item-glow) / 0.68);
  text-shadow: 0 0 22px rgb(var(--item-glow) / 0.48);
}

/* Each key is now its own portrait asset instead of a clipped spritesheet. */
.product-card--cases .product-image > img {
  top: calc(-4px + var(--key-offset-y, 0px));
  width: 462px;
  height: 282px;
  object-fit: contain;
  mix-blend-mode: screen;
  transform: translateX(-50%) scale(1.2) rotate(4deg);
  filter: drop-shadow(0 24px 19px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 25px rgb(var(--item-glow) / 0.32));
}

.product-card--cases:hover .product-image > img,
.product-card--cases:focus-within .product-image > img {
  transform: translateX(-50%) translateY(-4px) scale(1.242) rotate(6deg);
}

.checkout-v2 .checkout-preview[class*='key-'] {
  height: 420px;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgb(var(--item-glow) / 0.24),
      transparent 52%
    ),
    #0b0c0e;
}

.checkout-v2 .checkout-preview[class*='key-'] > img {
  top: -12px;
  width: 280px;
  height: 330px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px rgb(var(--item-glow) / 0.35));
}

.adm-product-preview[class*='key-'] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

@media (max-width: 760px) {
  .product-card--cases .product-image > img {
    top: var(--key-offset-y, 0px);
    width: 473px;
    height: 295px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card--cases:hover .product-image > img,
  .product-card--cases:focus-within .product-image > img {
    transform: translateX(-50%) scale(1.2) rotate(4deg);
  }
}
