/*
 * PRANATARA Relic Gallery Frame Stacking v001 — chat-187/188.
 *
 * The literal Relic frame already owns the approved 382:457 source-canvas
 * geometry at stack level 6.  The gallery body previously formed stack level
 * 7 as one opaque unit, so its lower vignette covered the source frame's rails
 * and centre knot.  Let the body return to the automatic layer, recreate its
 * exact vignette on a dedicated level-5 pseudo-layer, then keep only the
 * readable card content above the unchanged literal frame.
 *
 * This layer is gallery-Relic-only.  It changes no frame pixels, dimensions,
 * transforms, animation, hologram, orbit, artwork, copy, or interaction.
 */

body[data-relic-gallery-frame-stacking="foreground-v001"]
  #grid
  > article.holo-card[data-rarity="Relic"]
  > .body {
  z-index: auto !important;
  background: none !important;
}

body[data-relic-gallery-frame-stacking="foreground-v001"]
  #grid
  > article.holo-card[data-rarity="Relic"]
  > .body::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  display: block !important;
  background: linear-gradient(180deg, transparent 0 53%, rgba(8, 10, 12, .14) 59%, rgba(8, 10, 12, .72) 72%, rgba(8, 10, 12, .96) 100%) !important;
  pointer-events: none !important;
}

body[data-relic-gallery-frame-stacking="foreground-v001"]
  #grid
  > article.holo-card[data-rarity="Relic"]
  > .body
  > :is(.name, .chips, .copy) {
  z-index: 7 !important;
}

@media (forced-colors: active) {
  body[data-relic-gallery-frame-stacking="foreground-v001"]
    #grid
    > article.holo-card[data-rarity="Relic"]
    > .body::before {
    background: linear-gradient(transparent 45%, Canvas 74%) !important;
  }
}
