/* Detail page hero, shared by the card page (explore.js) and the product page (pulse.js): the picture on the left with a
   glow in the item's colour, and on the right the set, name, one line of facts, the price, tags and what to do next. */
.xp-sub { font-size: 14px; color: var(--mute); margin: var(--sp-3) 0 0; } .xp-sub b { color: var(--text); font-weight: 700; }
.xp-h1 { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--f-big); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.xs-logo { display: block; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.xs-mono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--raise); font: 700 13px var(--f-big); }
.xs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.xs-sup { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 8px; gap: 6px; }
.xcd-own { align-self: flex-start; text-decoration: none; }
@media (pointer: coarse), (max-width: 760px) { .xcd-own { min-height: 44px; box-sizing: border-box; } }
.xcd-hero { --tone: var(--fair); position: relative; isolation: isolate; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-6); align-items: center; padding-top: var(--sp-5); }
.xcd-hero::before { content: ''; position: absolute; top: -220px; left: -10%; width: 900px; max-width: 120vw; height: 800px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 24%, transparent), color-mix(in srgb, var(--tone) 6%, transparent) 55%, transparent); }
.xcd-art { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; position: relative; perspective: 900px; }
.xcd-art img { display: block; width: 300px; height: auto; aspect-ratio: 300 / 418; object-fit: cover; border-radius: 14px; background: var(--raise); box-shadow: 0 30px 60px -20px #000, 0 0 0 1px #ffffff1a, 0 0 70px -16px color-mix(in srgb, var(--tone) 70%, transparent);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform var(--dur-3) var(--ease-out); }
.xcd-art::after { content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; opacity: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); background: radial-gradient(circle at var(--gx) var(--gy), #ffffff40, transparent 45%); mix-blend-mode: soft-light; transition: opacity var(--dur-2); }
.xcd-art.lit::after { opacity: 1; } .xcd-art.lit img { transition-duration: 80ms; }
.xcd-info { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.xcd-set { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; color: var(--mute); text-decoration: none; }
.xcd-set:hover { color: var(--text); } .xcd-set .xs-logo { max-width: 70px; } .xcd-set .xs-mono { width: 28px; height: 28px; font-size: 10px; }
.xcd-px { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin: var(--sp-3) 0 var(--sp-2); }
.xcd-px > div { display: flex; flex-direction: column; } .xcd-px span { font-size: 12px; font-weight: 600; color: var(--mute); display: flex; align-items: center; }
.xcd-px b { font: 700 clamp(30px, 4vw, 42px)/1.05 var(--f-big); letter-spacing: -.04em; margin: 4px 0 2px; } .xcd-px small { font-size: 12px; color: var(--faint); }
.xcd-px-g b { color: #FFD27A; }
.xcd-go { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.xcd-set { min-height: 44px; }
@media (max-width: 760px) {
  .xcd-hero { grid-template-columns: 1fr; justify-items: center; gap: var(--sp-4); } .xcd-art img { width: min(240px, 64vw); }
  .xcd-hero::before { left: 50%; transform: translateX(-50%); width: 140vw; max-width: none; }
  .xcd-info { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .xcd-art img { transition: none; } }

/* sealed product: the cut-out picture stands on its own, no card frame */
.xcd-art.sealed { display: grid; place-items: center; width: 300px; min-height: 260px; }
.xcd-art.sealed img { width: 100%; height: auto; max-height: 340px; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; box-shadow: none;
  filter: drop-shadow(0 26px 30px #000c) drop-shadow(0 0 40px color-mix(in srgb, var(--tone) 35%, transparent)); }
.xcd-art.sealed img:not([src^="img/p/"]) { border-radius: 14px; background: #fff; padding: 10px; }   /* a photo we couldn't cut out */
.xcd-art.sealed::after { display: none; }
@media (max-width: 760px) { .xcd-art.sealed { width: min(260px, 70vw); min-height: 0; } .xcd-art.sealed img { width: 100%; max-height: 260px; } }

/* on the product page the hero sits in the page's own gutters, and the chart follows straight on */
.pd-hero { padding: var(--sp-5) var(--gut) 0; }
.pd-hero .xp-h1 { display: flex; align-items: flex-start; gap: var(--sp-2); }
.pd-hero .big { margin-top: var(--sp-3); }
.pd-chart { padding-top: var(--sp-4); }
.pd-chart::before { display: none; }
@media (max-width: 760px) { .pd-hero { padding-top: var(--sp-4); } .pd-hero .xcd-info { align-items: stretch; } }
.pd-tags { margin-top: var(--sp-3); }
@media (max-width: 760px) { .pd-hero .xp-h1 .star { display: none; } }   /* the phone picker bar has the star */

/* an announced product with no photo yet: the set's logo on a card that says so */
.xcd-art.sealed.announced { width: 300px; }
.pd-ann { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 1 / .9; border-radius: 22px; text-align: center; padding: 20px; box-sizing: border-box;
  background: radial-gradient(80% 70% at 50% 20%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, var(--line)), 0 30px 50px -24px #000; }
.pd-ann img { width: 70%; max-height: 90px; object-fit: contain; filter: drop-shadow(0 8px 14px #000a); }
.pd-ann b { font: 700 12px var(--f-big); letter-spacing: .12em; text-transform: uppercase; color: var(--tone); } .pd-ann small { font-size: 12px; color: var(--mute); }
.pd-about { margin: var(--sp-3) 0 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--mute); max-width: 60ch; }
.pd-about b { display: block; margin-bottom: 2px; font: 700 11px var(--f-big); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
@media (max-width: 760px) { .xcd-art.sealed.announced { width: min(240px, 64vw); } }
.xcd-art.sealed .pd-ann img { background: none; padding: 0; border-radius: 0; width: 70%; height: auto; max-height: 90px; }
.big .px.tba { font-size: clamp(30px, 4vw, 42px); color: var(--mute); }
