/* The printed design lives in the PNG; these layers bring its foil to life. */
.curio {
  --foil-x: 50%; --foil-y: 50%; --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  border-radius: 5%;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 8px 18px #0006;
}
.curio img { display: block; width: 100%; height: 100%; border: 0; border-radius: inherit; object-fit: contain; }
.curio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--foil-x) var(--foil-y), #fff6, transparent 62%);
  transition: opacity .3s;
}
.curio[data-rarity="Epic"]::after,
.curio[data-rarity="Legendary"]::after {
  background:
    radial-gradient(circle at var(--foil-x) var(--foil-y), #fff5, transparent 65%),
    repeating-linear-gradient(115deg, #8fe9f833 0%, #d5a2fb33 15%, #ffe5a833 30%, #91ebc933 45%, #8fe9f833 60%);
  background-size: 100% 100%, 250% 250%;
  background-position: center, var(--foil-x) var(--foil-y);
  mix-blend-mode: screen;
}
.curio:hover::after, .curio.is-lit::after,
button:focus-visible > .curio::after { opacity: .65; }
.sleeve:has(.curio) { overflow: visible; border: 0; aspect-ratio: 5 / 7; background: transparent; }
.sleeve:has(.curio):hover { background: transparent; }
.sleeve-count { z-index: 2; bottom: auto; top: 7px; right: 7px; border: 1px solid #ffffff70; }
.sleeve:has(.curio).trade-selected { outline-offset: 4px; }
#cardDetailModal { width: min(500px, calc(100% - 24px)); }
#cardDetailImg { width: min(100%, 370px); margin: 0 auto 18px; }
.card-effect-note { font-size: .8rem; color: var(--cc-dim); }
.prestige-collection-note { margin: 0 0 20px; font-size: .9rem; color: var(--cc-dim); }
.perk-rank { font-size: .72rem; color: var(--cc-dim); letter-spacing: .06em; }
.perk .perk-badge { width: min(112px, 100%); padding: 6px; box-sizing: border-box; }
.perk .perk-badge img { object-fit: contain; }
.perk.active .perk-badge { background: radial-gradient(circle, #26304a, #070e23 70%); cursor: zoom-in; }
.perk.active .perk-badge:hover { background: radial-gradient(circle, #3e3c43, #101932 70%); }
.perk-download, .perk-locked { font-size: .75rem; min-height: 32px; display: inline-flex; align-items: center; text-align: center; }
.perk-download { color: var(--cc-lamp); text-underline-offset: 3px; }
.perk-download:hover { color: var(--cc-bulb-on); }
.perk-locked { color: var(--cc-dim); }
.prestige-reward-art { width: min(260px, 100%); aspect-ratio: 1; margin: 0 auto 18px; background: radial-gradient(circle, #26304a, transparent 70%); }
.prestige-reward-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ceremony-badge { width: 190px; height: 190px; background: radial-gradient(circle, #26304a, #070e23 70%); }
.ceremony-badge img { object-fit: contain; }
.prestige-download { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sheet a.prestige-download:link, .sheet a.prestige-download:visited,
.sheet a.prestige-download:hover, .sheet a.prestige-download:active { color: #2b1d00; }
@media (prefers-reduced-motion: reduce) {
  .curio { transform: none; transition: none; }
  .curio::after { transition: none; }
}
