/* The catalogue pairs a sealed wrapper with the sample documented beneath it. */
#packs .pc {
  --pack-mat: #d8e2da;
  --pack-shadow: #66786e;
}
#packs .pc.f-1 { --pack-mat: #eee1bd; --pack-shadow: #8a784f; }
#packs .pc.f-2 { --pack-mat: #dce0ec; --pack-shadow: #697386; }
#packs .pc.f-3 { --pack-mat: #ebd9cb; --pack-shadow: #8c6f58; }

#packs .pc .pc-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  border: 1px solid #786f5c;
  border-radius: 5px;
  cursor: pointer;
}
#packs .pc.on .pc-art { border: 1px solid #bc9d62; }
#packs .pk .hc-print > img { filter: none; }
#packs .pk .hc-face[data-m="pack-foil"] { --glare: .28; --spot: .16; }
#packs .pk .hc-face[data-m="pack-foil"] .hc-l1 { --b: .18; --g: .3; }
#packs .pc-art-hit {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
#packs :is(.pc-art-hit, .pick, a.rn):focus-visible {
  outline: 2px solid #e7bd75;
  outline-offset: 3px;
}

body[data-launch="prelaunch"] #packs .pc .pc-art {
  display: block;
  aspect-ratio: 1.28;
  min-height: 0;
  padding: 0;
  background: radial-gradient(ellipse at 65% 100%, color-mix(in srgb, var(--pack-shadow) 30%, transparent), transparent 70%), var(--pack-mat);
}
body[data-launch="prelaunch"] #packs .pc-art::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--pack-shadow) 34%, transparent);
  border-radius: 2px;
  pointer-events: none;
}
body[data-launch="prelaunch"] #packs .pk {
  position: absolute;
  left: 12%;
  top: 50%;
  display: block;
  width: 43%;
  max-width: none;
  transform: translateY(-53%) rotate(-8deg);
  filter: drop-shadow(2px 5px 3px #25302f40);
}
body[data-launch="prelaunch"] #packs .pc-card-preview {
  position: absolute;
  right: 12%;
  top: 52%;
  width: 41%;
  transform: translateY(-44%) rotate(9deg);
  pointer-events: none;
}
#packs .pc-card-preview img {
  box-shadow: 0 0 0 1px #34291d57, 3px 7px 6px #28261e66;
}
#packs .pc-body { flex: 1; gap: 7px; }
#packs .pc .pc-name { gap: 4px 10px; }
body[data-launch="prelaunch"] #packs .pc-name h3 {
  font: 680 clamp(19px, 1.65vw, 25px)/1.2 var(--f-ui);
  letter-spacing: -.035em;
}
#packs .pc .pc-b {
  gap: 4px 10px;
  padding-top: 6px;
}
#packs .pc-b .pick {
  min-height: 44px;
  padding: 6px 13px;
  border: 1px solid #93856f;
  border-radius: 4px;
  background: #202e36;
  color: #fff4dc;
  text-decoration: none;
}
#packs .pc-b .pick[aria-pressed="true"] {
  background: #f0d59e;
  color: #222a28;
  border-color: #f0d59e;
}
#packs .pc-b .pick[aria-pressed="true"]::before {
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  transform: rotate(-45deg);
}
#packs a.rn { color: #dadbd4; }
#packs .pc-art:has(.pc-art-hit:focus-visible) { outline: 2px solid #e7bd75; outline-offset: 3px; }
#packs .pc-art-hit:focus-visible { outline: none; }

/* The photograph is the surface of the card. The moving reflection is transparent. */
#draw .sample-plane {
  width: min(75cqw, 58cqh);
  aspect-ratio: 63 / 88;
  position: relative;
  isolation: isolate;
  border-radius: 4.8% / 3.5%;
  transform: perspective(850px) rotateX(var(--turn-x, 0deg)) rotateY(var(--turn-y, 0deg)) rotate(-3deg);
  transition: transform .24s ease-out;
  box-shadow: 0 0 0 1px #f0ddb388, 3px 5px 1px #101923, 10px 17px 18px #0b152a85;
}
body[data-launch="prelaunch"] #draw .sample-plane img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: inherit;
  box-shadow: none;
}
#draw .sample-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 32%, #8be7f64d 42%, #fff8d27a 48%, #d6b9ed4a 56%, transparent 68%);
  background-size: 240% 100%;
  background-position: var(--foil-x, 35%) center;
  opacity: .1;
  pointer-events: none;
}
#draw .sample-plane.tilted { transition-duration: .09s; }
#draw .sample-plane.tilted::after { opacity: .55; }
body[data-launch="prelaunch"] #draw .key[aria-checked="true"]::after {
  width: 13px;
  height: 13px;
  border: 1px solid #e9cf93;
  border-radius: 50%;
  background: #f4da9c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.2 6.2 2.5 2.4 5.1-5.2' fill='none' stroke='%23213542' stroke-width='1.7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@media (max-width: 720px) {
  body[data-launch="prelaunch"] #draw .stg[data-scene="pick"] { height: clamp(230px, 69vw, 350px); }
  body[data-launch="prelaunch"] #draw .key .k-preview { height: clamp(44px, 13vw, 64px); width: auto; }
  body[data-launch="prelaunch"] #packs .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  body[data-launch="prelaunch"] #packs .pc { display: flex; gap: 10px; padding: 0; border: 0; }
  body[data-launch="prelaunch"] #packs .pc .pc-art { aspect-ratio: 1.11; }
  body[data-launch="prelaunch"] #packs .pc-name h3 { font-size: clamp(16px, 4vw, 20px); }
  body[data-launch="prelaunch"] #packs .pc-sample { font-size: 13px; }
  body[data-launch="prelaunch"] #packs .pc .pc-b { flex-direction: column; align-items: stretch; gap: 0; }
  body[data-launch="prelaunch"] #packs .pc .pick { justify-content: center; }
  body[data-launch="prelaunch"] #packs a.rn { justify-content: center; }
}
@media (hover: hover) {
  #packs .pc .pick:hover { background: #384a54; color: #fff6df; }
  #packs .pc .pick[aria-pressed="true"]:hover { background: #fbe4b7; color: #222a28; }
}
@media (prefers-reduced-motion: reduce) {
  #draw .sample-plane { transition: none; transform: rotate(-3deg); }
}
