/* Lab Collection ? page test staff */

.ld-collection-lab-hero p {
  max-width: 40rem;
}

.ld-collection-lab-hero__link {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--ld-cyan, #00d4ff);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.ld-collection-lab-hero__link:hover,
.ld-collection-lab-hero__link:focus-visible {
  text-decoration: underline;
}

.ld-collection-lab--library .ld-collection-lab__creations {
  margin-top: 0;
}

/* display:grid de l?atelier ?crasait l?attribut HTML hidden */
.ld-collection-lab__atelier[hidden],
.ld-collection-lab--library .ld-collection-lab__atelier {
  display: none !important;
}

/* Max 4 cartes / ligne ? laisse la place aux boutons */
.ld-collection-lab--library .ld-collect-creations__grid,
.ld-collection-lab--library #ld-collect-creations-groups > .ld-collection-lab__grid,
.ld-collection-cards-page .ld-collection-lab__creations .ld-collect-creations__grid,
.ld-collection-cards-page .ld-collection-lab__creations .ld-collection-lab__grid--large {
  --ld-collect-card-w: 240px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.35rem 1.15rem;
  justify-content: stretch;
}

.ld-collection-lab--library .ld-collect-creations__grid > li,
.ld-collection-cards-page .ld-collection-lab__creations .ld-collection-lab__grid--large > li {
  width: 100%;
  max-width: 260px;
  justify-self: center;
  min-width: 0;
}

/* Uniquement les vignettes de la grille, jamais l?aper?u live du Lab */
.ld-collection-lab--library .ld-collect-creations__grid .ld-holo-test__wrap,
.ld-collection-cards-page .ld-collection-lab__creations .ld-collect-creations__grid .ld-holo-test__wrap {
  width: 100%;
  max-width: var(--ld-collect-card-w, 240px);
  display: flex;
  justify-content: center;
}

.ld-collection-lab--library .ld-collect-stock--library .ld-collect-stock__tools,
.ld-collection-cards-page .ld-collect-stock--library .ld-collect-stock__tools {
  grid-template-columns: 1fr 1fr;
}

.ld-collection-lab--library .ld-collect-stock--library .ld-collect-stock__holders,
.ld-collection-cards-page .ld-collect-stock--library .ld-collect-stock__holders {
  grid-column: 1 / -1;
}

@media (max-width: 1200px) {
  .ld-collection-lab--library .ld-collect-creations__grid,
  .ld-collection-lab--library #ld-collect-creations-groups > .ld-collection-lab__grid,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collect-creations__grid,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collection-lab__grid--large {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .ld-collection-lab--library .ld-collect-creations__grid,
  .ld-collection-lab--library #ld-collect-creations-groups > .ld-collection-lab__grid,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collect-creations__grid,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collection-lab__grid--large {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .ld-collection-lab--library .ld-collect-creations__grid,
  .ld-collection-lab--library #ld-collect-creations-groups > .ld-collection-lab__grid,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collect-creations__grid,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collection-lab__grid--large {
    grid-template-columns: 1fr !important;
  }

  .ld-collection-lab--library .ld-collect-creations__grid > li,
  .ld-collection-cards-page .ld-collection-lab__creations .ld-collection-lab__grid--large > li {
    max-width: 280px;
  }
}

.ld-collect-creations__empty {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(5, 7, 15, 0.4);
  color: rgba(255, 255, 255, 0.72);
}

.ld-collect-creations__empty[hidden] {
  display: none !important;
}

.ld-collect-creations__empty p {
  margin: 0;
  max-width: 22rem;
  line-height: 1.45;
}

/* Biblioth?que : plat, sans holo surface. Cadre + texte restent.
   Holo complet au zoom / Lien uniquement. */
.ld-collection-lab--library .ld-holo-test__wrap--static,
.ld-collection-lab--library .ld-collect-card--library-static .ld-holo-test__wrap,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__wrap--static,
.ld-collection-cards-page .ld-collection-lab__creations .ld-collect-card--library-static .ld-holo-test__wrap {
  perspective: none;
  transform: none;
}

.ld-collection-lab--library .ld-holo-test__card--library-static,
.ld-collection-lab--library .ld-holo-test__card--flat,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--flat {
  transform: none !important;
  transition: box-shadow 0.15s ease;
  cursor: zoom-in;
}

.ld-collection-lab--library .ld-holo-test__card--library-static:hover,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Coupe le holo de surface (bandes / sparkle carte) */
.ld-collection-lab--library .ld-holo-test__card--library-static::before,
.ld-collection-lab--library .ld-holo-test__card--library-static::after,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static::before,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static::after {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
  animation: none !important;
  background: none !important;
}

.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__glare,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__fg-glare,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__mid-holo,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__mid-fx,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__fg-holo,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__fg-fx,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__glare,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__fg-glare,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__mid-holo,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__mid-fx,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__fg-holo,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__fg-fx {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.ld-collection-lab--library .ld-holo-test__card--library-static.is-animated,
.ld-collection-lab--library .ld-holo-test__card--library-static.is-active,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static.is-animated,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static.is-active {
  animation: none !important;
}

/* Cadre + texte : visibles, fig?s (pas d?anim holo) */
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__rim-foil,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__text-foil,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__edition-foil,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__rim-foil,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__text-foil,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__edition-foil {
  animation: none !important;
}

.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__rim-foil--grad,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__text-foil--grad,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__rim-foil--grad,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__text-foil--grad {
  opacity: 0.9 !important;
}

.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__rim-foil--spark,
.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__text-foil--spark,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__rim-foil--spark,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__text-foil--spark {
  opacity: 0.45 !important;
}

.ld-collection-lab--library .ld-holo-test__card--library-static .ld-holo-test__text-face,
.ld-collection-cards-page .ld-collection-lab__creations .ld-holo-test__card--library-static .ld-holo-test__text-face {
  color: var(--ld-card-text, #fff);
  opacity: 1 !important;
}

.ld-collect-creations__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.25rem 0 0.25rem;
}

.ld-collect-creations__pager[hidden] {
  display: none !important;
}

.ld-collect-creations__pager-pages,
.ld-collect-catalog__pager-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ld-collect-creations__pager-btn,
.ld-collect-catalog__pager-btn {
  appearance: none;
  min-width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0 0.4rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ld-collect-creations__pager-btn:hover,
.ld-collect-catalog__pager-btn:hover,
.ld-collect-creations__pager-btn:focus-visible,
.ld-collect-catalog__pager-btn:focus-visible {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.12);
  color: #fff;
}

.ld-collect-creations__pager-btn.is-active,
.ld-collect-catalog__pager-btn.is-active {
  border-color: rgba(0, 212, 255, 0.7);
  background: rgba(0, 212, 255, 0.22);
  color: #7ee9ff;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.18) inset;
}

.ld-collect-creations__pager-nav:disabled,
.ld-collect-catalog__pager-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ld-collect-creations__pager-info {
  flex: 1 1 100%;
  min-width: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.ld-collect-creations__filters .ld-collect-creations__filter span {
  display: inline-flex;
  min-width: 1.25rem;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
}

.ld-collection-lab__note a {
  color: var(--ld-cyan, #00d4ff);
  font-weight: 650;
  text-decoration: none;
}

.ld-collection-lab__note a:hover {
  text-decoration: underline;
}

/* ?? Test holo style CodePen (simeydotme) ? assets LD only ?? */
.ld-holo-test {
  --ld-holo-c1: rgb(0, 231, 255);
  --ld-holo-c2: rgb(255, 0, 231);
  margin-bottom: 2.75rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ld-radius, 12px);
  background: rgba(5, 7, 15, 0.45);
}

.ld-holo-test__wrap {
  perspective: 900px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.ld-holo-test__card {
  --ld-holo-pos-x: 50%;
  --ld-holo-pos-y: 50%;
  --ld-holo-zoom: 1;
  --ld-card-radius: 5% / 3.5%;
  width: 220px;
  aspect-ratio: 63 / 88;
  position: relative;
  overflow: hidden;
  z-index: 10;
  /* Grille mobile : laisser scroller verticalement ; le zoom garde touch-action:none */
  touch-action: pan-y;
  isolation: isolate;
  container-type: inline-size;
  container-name: ld-holo-card;
  border-radius: var(--ld-card-radius);
  /* iOS : overflow:hidden + preserve-3d / filter laisse fuir l?image aux coins */
  -webkit-clip-path: inset(0 round var(--ld-card-radius));
  clip-path: inset(0 round var(--ld-card-radius));
  background-color: #040712;
  transform-origin: center;
  transform-style: preserve-3d;
  /* Pas de will-change permanent : cr?e une texture GPU basse r?s. ? flou / pixelisation */
  will-change: auto;
  transition: transform 0.18s ease-out, box-shadow 0.2s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  --ld-glow-c1: var(--ld-holo-c1);
  --ld-glow-c2: var(--ld-holo-c2);
  --ld-foil-str: 1;
  --ld-foil-zoom: 1;
  --ld-pfc: 0;
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
  --ld-grain: url("https://poke-holo.simey.me/img/grain.webp");
  --ld-glitter: url("https://poke-holo.simey.me/img/glitter.png");
  --ld-foil-tex: url("https://poke-holo.simey.me/img/trainerbg.png");
  --ld-card-glow: hsl(175, 100%, 90%);
  --ld-sun-1: hsl(2, 100%, 73%);
  --ld-sun-2: hsl(53, 100%, 69%);
  --ld-sun-3: hsl(93, 100%, 69%);
  --ld-sun-4: hsl(176, 100%, 76%);
  --ld-sun-5: hsl(228, 100%, 74%);
  --ld-sun-6: hsl(283, 100%, 73%);
  --ld-frame-c: #e8c84a;
  --ld-frame-w: 3.2cqw;
  --ld-frame-alpha: 0.88;
  --ld-frame-soft: 0;
  --ld-text-foil-str: 1;
  --ld-text-foil-zoom: 1;
  box-shadow:
    /* Liser? argent type TCG */
    0 0 0 1px #f3f0e6,
    0 0 0 2px #8f8a7c,
    /* Ombre port?e */
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 22px 40px -6px rgba(0, 0, 0, 0.55),
    0 36px 64px -12px rgba(0, 0, 0, 0.45);
}

/*
 * Face Arri?re ? image simple (dos booster) :
 * pas de badge raret?, holo, titre, ?dition, glare, rim.
 */
.ld-holo-test__card--face-back {
  --ld-foil-str: 0 !important;
  --ld-frame-w: 0cqw !important;
  --ld-frame-alpha: 0 !important;
}

.ld-holo-test__card--face-back .ld-collect-card__rarity,
.ld-holo-test__card--face-back .ld-holo-test__meta,
.ld-holo-test__card--face-back .ld-holo-test__edition,
.ld-holo-test__card--face-back .ld-holo-test__qty,
.ld-holo-test__card--face-back .ld-holo-test__glare,
.ld-holo-test__card--face-back .ld-holo-test__rim,
.ld-holo-test__card--face-back .ld-holo-test__mid-stack,
.ld-holo-test__card--face-back .ld-holo-test__fg-stack,
.ld-holo-test__card--face-back .ld-holo-test__fg-glare,
.ld-holo-test__card--face-back .ld-holo-test__card-delete {
  display: none !important;
}

.ld-holo-test__card--face-back::before,
.ld-holo-test__card--face-back::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}

.ld-holo-test__card--face-back .ld-holo-test__art--bg {
  z-index: 1;
}

.ld-collection-lab.is-face-back-mode .ld-collection-lab__face-back-hide {
  display: none !important;
}

.ld-collection-lab__face-back-note {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(180, 200, 255, 0.85);
}

.ld-collection-lab.is-face-back-mode .ld-collection-lab__face-back-note {
  display: block;
}

/* Cadre = m?me foil que la carte (calques rim-foil) + teinte + transparence */
.ld-holo-test__rim {
  --ld-frame-fill: calc(100% - var(--ld-frame-soft, 0) * 70%);
  --ld-frame-metal-hi: color-mix(in srgb, var(--ld-frame-c, #e8c84a) 82%, #fff);
  --ld-frame-metal-mid: var(--ld-frame-c, #e8c84a);
  --ld-frame-metal-lo: color-mix(in srgb, var(--ld-frame-c, #e8c84a) 65%, #000);
  position: absolute;
  inset: 0;
  z-index: 12;
  border-radius: inherit;
  pointer-events: none;
  box-sizing: border-box;
  padding: var(--ld-frame-w, 3.2cqw);
  opacity: var(--ld-frame-alpha, 0.88);
  isolation: isolate;
  overflow: hidden;
  mix-blend-mode: normal;
  background: linear-gradient(
    145deg,
    var(--ld-frame-metal-hi) 0%,
    var(--ld-frame-metal-mid) 45%,
    var(--ld-frame-metal-lo) 100%
  );
  /* Soft = opacit? du fond du cadre (laisse passer l?image) */
  background-color: color-mix(
    in srgb,
    var(--ld-frame-metal-mid) var(--ld-frame-fill),
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: opacity 0.2s ease, background 0.2s ease;
}

/* Cadre = d?grad? m?tal bross? (teinte = couleur cadre choisie) */
.ld-holo-test__card--frame-metal .ld-holo-test__rim {
  --ld-frame-metal-hi: color-mix(in srgb, var(--ld-frame-c, #e8c84a) 78%, #fff);
  --ld-frame-metal-mid: var(--ld-frame-c, #e8c84a);
  --ld-frame-metal-lo: color-mix(in srgb, var(--ld-frame-c, #e8c84a) 62%, #000);
  background: linear-gradient(
    125deg,
    var(--ld-frame-metal-hi) 0%,
    var(--ld-frame-metal-mid) 32%,
    var(--ld-frame-metal-lo) 48%,
    var(--ld-frame-metal-mid) 64%,
    var(--ld-frame-metal-hi) 100%
  );
  background-size: 220% 220%;
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--ld-frame-metal-hi) 45%, transparent);
  /* Transparence cadre (--ld-frame-alpha) reste active via opacity */
  opacity: var(--ld-frame-alpha, 0.88);
}

/*
 * Lumi?re tamis?e = Soft Light Photoshop :
 * le cadre se fond dans l?image (transparence de fusion), pas un simple assombrissement.
 */
.ld-holo-test__card--frame-soft .ld-holo-test__rim {
  isolation: auto;
  mix-blend-mode: soft-light;
  background: color-mix(
    in srgb,
    var(--ld-frame-c, #e8c84a) var(--ld-frame-fill),
    transparent
  );
  opacity: var(--ld-frame-alpha, 0.88);
}

/* Soft light + m?tal : garde le d?grad?, fusionne avec l?image */
.ld-holo-test__card--frame-metal.ld-holo-test__card--frame-soft .ld-holo-test__rim {
  isolation: auto;
  mix-blend-mode: soft-light;
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--ld-frame-metal-hi) var(--ld-frame-fill), transparent) 0%,
    color-mix(in srgb, var(--ld-frame-metal-mid) var(--ld-frame-fill), transparent) 32%,
    color-mix(in srgb, var(--ld-frame-metal-lo) var(--ld-frame-fill), transparent) 48%,
    color-mix(in srgb, var(--ld-frame-metal-mid) var(--ld-frame-fill), transparent) 64%,
    color-mix(in srgb, var(--ld-frame-metal-hi) var(--ld-frame-fill), transparent) 100%
  );
  background-size: 220% 220%;
  opacity: var(--ld-frame-alpha, 0.88);
}

.ld-holo-test__card--frame-soft .ld-holo-test__rim .ld-holo-test__rim-foil {
  mix-blend-mode: soft-light !important;
}

/* Couches foil du cadre : m?mes styles que card::before / ::after */
.ld-holo-test__rim-foil {
  position: absolute;
  inset: calc(-1 * var(--ld-frame-w, 3.2cqw));
  border-radius: inherit;
  pointer-events: none;
  background-repeat: no-repeat;
  transform-origin: var(--ld-holo-pos-x, 50%) var(--ld-holo-pos-y, 50%);
}

.ld-holo-test__rim-foil--grad {
  z-index: 1;
}

.ld-holo-test__rim-foil--spark {
  z-index: 2;
}

/* Filets int?rieur / ext?rieur */
.ld-holo-test__rim-edge {
  position: absolute;
  inset: calc(-1 * var(--ld-frame-w, 3.2cqw));
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.ld-holo-test__rim-edge::after {
  content: "";
  position: absolute;
  inset: var(--ld-frame-w, 3.2cqw);
  border-radius: inherit;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ld-holo-test__card--no-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 22px 40px -6px rgba(0, 0, 0, 0.55),
    0 36px 64px -12px rgba(0, 0, 0, 0.45);
}

.ld-holo-test__card--no-frame .ld-holo-test__rim {
  display: none;
}

/* Badge / texte ? l?int?rieur du cadre (pas sous la bande) */
.ld-holo-test__card:not(.ld-holo-test__card--no-frame) .ld-collect-card__rarity,
.ld-holo-test__card:not(.ld-holo-test__card--no-frame) .ld-collect-card__rarity.ld-rarity-badge--metal {
  top: calc(var(--ld-frame-w, 3.2cqw) + 1.8cqw);
  left: calc(var(--ld-frame-w, 3.2cqw) + 1.8cqw);
}

.ld-holo-test__card:not(.ld-holo-test__card--no-frame) .ld-holo-test__meta {
  padding-bottom: calc(4.25cqw + var(--ld-frame-w, 3.2cqw));
  padding-left: calc(3.5cqw + var(--ld-frame-w, 3.2cqw) * 0.35);
  padding-right: calc(3.5cqw + var(--ld-frame-w, 3.2cqw) * 0.35);
}

/* Fond holo (sous le foil) + ?l?ment mat (au-dessus du foil) */
.ld-holo-test__art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.ld-holo-test__art--bg {
  --ld-bg-contrast: 1;
  --ld-bg-saturate: 1;
  --ld-bg-bright: 1;
  --ld-bg-blur: 0px;
  z-index: 0;
  object-fit: cover;
  object-position: center;
  /*
   * Position X/Y via translate (toujours visible).
   * Avant : object-position / transform-origin ? quasi sans effet ? zoom 100 %
   * quand l?image a le m?me ratio que la carte.
   */
  transform: translate(
      calc(var(--ld-holo-pos-x, 50%) - 50%),
      calc(var(--ld-holo-pos-y, 50%) - 50%)
    )
    scale(var(--ld-holo-zoom, 1));
  transform-origin: center center;
  /* Pas de clip-path ici : avec scale(), le clip grossit aussi et fuit encore plus sur iOS */
  border-radius: 0;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter:
    contrast(var(--ld-bg-contrast))
    saturate(var(--ld-bg-saturate))
    brightness(var(--ld-bg-bright))
    blur(var(--ld-bg-blur));
  transition: filter 0.12s ease-out, transform 0.05s linear;
}

.ld-holo-test__art--bg.ld-holo-test__art--bg-crisp {
  --ld-bg-contrast: 1.28;
  --ld-bg-saturate: 1.08;
  --ld-bg-bright: 1.02;
  --ld-bg-blur: 0px;
  image-rendering: auto;
}

.ld-holo-test__art--bg.ld-holo-test__art--bg-soft {
  --ld-bg-contrast: 0.94;
  --ld-bg-saturate: 0.96;
  --ld-bg-bright: 1;
  --ld-bg-blur: 0.55px;
}

/* Calque 2: meme pipeline que calque 3, classes/vars mid dediees (pas de partage fg) */
.ld-holo-test__mid-stack {
  position: absolute;
  top: 4%;
  right: 8%;
  bottom: 22%;
  left: 8%;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  isolation: isolate;
  transform: none;
}

.ld-holo-test__mid-stack[hidden] {
  display: none;
}

/* Tint legacy (desactive) */
.ld-holo-test__mid-tint {
  display: none !important;
}

.ld-holo-test__art--mid {
  --ld-mid-contrast: 1;
  --ld-mid-saturate: 1;
  --ld-mid-blur: 0px;
  grid-area: 1 / 1;
  position: absolute;
  z-index: 0;
  width: calc(100% * var(--ld-mid-zoom, 1));
  height: calc(100% * var(--ld-mid-zoom, 1));
  max-width: none;
  max-height: none;
  left: var(--ld-mid-pos-x, 50%);
  top: var(--ld-mid-pos-y, 50%);
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: translate(-50%, -50%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: auto;
  filter:
    drop-shadow(0 6px 12px rgba(255, 255, 255, 0.22))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45))
    brightness(1)
    contrast(var(--ld-mid-contrast))
    saturate(var(--ld-mid-saturate));
  transition: filter 0.12s ease-out, left 0.05s linear, top 0.05s linear;
}

.ld-holo-test__art--mid.ld-holo-test__art--mid-crisp {
  --ld-mid-contrast: 1.28;
  --ld-mid-saturate: 1.1;
  --ld-mid-blur: 0px;
  image-rendering: auto;
  filter:
    drop-shadow(0 6px 12px rgba(255, 255, 255, 0.22))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45))
    brightness(1.02)
    contrast(var(--ld-mid-contrast))
    saturate(var(--ld-mid-saturate));
}

.ld-holo-test__art--mid.ld-holo-test__art--mid-soft {
  --ld-mid-contrast: 0.94;
  --ld-mid-saturate: 0.96;
  --ld-mid-blur: 0px;
  opacity: 0.92;
}

.ld-holo-test__art--mid.ld-holo-test__art--mid-outline {
  filter:
    drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.85))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    brightness(1)
    contrast(var(--ld-mid-contrast))
    saturate(var(--ld-mid-saturate));
}

.ld-holo-test__art--mid.ld-holo-test__art--mid-glow {
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 70%, transparent))
    drop-shadow(0 0 16px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 45%, transparent))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    brightness(1.04)
    contrast(var(--ld-mid-contrast))
    saturate(calc(var(--ld-mid-saturate) * 1.08));
}

.ld-holo-test__mid-stack--glow {
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 65%, transparent))
    drop-shadow(0 0 14px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 35%, transparent));
}

.ld-holo-test__mid-stack--screen .ld-holo-test__art--mid {
  mix-blend-mode: screen;
  opacity: calc(0.75 + var(--ld-mid-fx-str, 0.55) * 0.25);
}

.ld-holo-test__mid-stack--soft .ld-holo-test__art--mid {
  mix-blend-mode: soft-light;
  opacity: calc(0.8 + var(--ld-mid-fx-str, 0.55) * 0.2);
}

.ld-holo-test__mid-fx {
  grid-area: 1 / 1;
  position: absolute;
  z-index: 1;
  width: calc(100% * var(--ld-mid-zoom, 1));
  height: calc(100% * var(--ld-mid-zoom, 1));
  max-width: none;
  max-height: none;
  left: var(--ld-mid-pos-x, 50%);
  top: var(--ld-mid-pos-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: var(--ld-mid-mask);
  mask-image: var(--ld-mid-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  opacity: calc(var(--ld-mid-fx-str, 0.55) * 0.85);
}

.ld-holo-test__mid-fx[hidden] {
  display: none;
}

.ld-holo-test__mid-holo {
  grid-area: 1 / 1;
  position: absolute;
  z-index: 2;
  width: calc(100% * var(--ld-mid-zoom, 1));
  height: calc(100% * var(--ld-mid-zoom, 1));
  max-width: none;
  max-height: none;
  left: var(--ld-mid-pos-x, 50%);
  top: var(--ld-mid-pos-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: var(--ld-mid-mask);
  mask-image: var(--ld-mid-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  opacity: calc(var(--ld-mid-holo-str, 0) * 0.006);
  mix-blend-mode: screen;
  transition: opacity 0.15s ease, left 0.05s linear, top 0.05s linear;
  overflow: hidden;
}

.ld-holo-test__mid-holo--nolight {
  mix-blend-mode: soft-light;
  opacity: calc(var(--ld-mid-holo-str, 0) * 0.012);
}

.ld-holo-test__mid-holo--nolight::before,
.ld-holo-test__mid-holo--nolight::after {
  filter: none;
}

.ld-holo-test__mid-holo[hidden] {
  display: none;
}

.ld-holo-test__mid-holo::before,
.ld-holo-test__mid-holo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  filter: brightness(1.25) contrast(1.05) saturate(1.05);
}

/* Stack FG + holo ? zone safe unique (Lab = Studio = ?closion = collection) */
.ld-holo-test__fg-stack {
  /* Ne pas red?finir --ld-fg-zoom ici : sinon le zoom du Lab/carte est ignor? */
  position: absolute;
  /*
   * Zone safe r?elle (les % des enfants absolute s?y appliquent).
   * Identique partout ? plus de dual studio/legacy qui d?cale le zoom.
   */
  top: 4%;
  right: 8%;
  bottom: 22%;
  left: 8%;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  isolation: isolate;
  /* Pas de transform:scale ici : + filter = flou au zoom */
  transform: none;
}

.ld-holo-test__fg-stack[hidden] {
  display: none;
}

.ld-holo-test__art--fg {
  --ld-fg-contrast: 1;
  --ld-fg-saturate: 1;
  --ld-fg-blur: 0px;
  grid-area: 1 / 1;
  position: absolute;
  z-index: 0;
  /* Zoom par taille (pas scale) = nettet? conserv?e */
  width: calc(100% * var(--ld-fg-zoom, 1));
  height: calc(100% * var(--ld-fg-zoom, 1));
  max-width: none;
  max-height: none;
  /* Position X/Y : ancre le centre de l??l?ment (object-position seul ne bougeait pas en contain) */
  left: var(--ld-fg-pos-x, 50%);
  top: var(--ld-fg-pos-y, 50%);
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: translate(-50%, -50%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: auto;
  filter:
    drop-shadow(0 6px 12px rgba(255, 255, 255, 0.22))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45))
    brightness(1)
    contrast(var(--ld-fg-contrast))
    saturate(var(--ld-fg-saturate));
  transition: filter 0.12s ease-out, left 0.05s linear, top 0.05s linear;
}

/* Rendus ?l?ment */
.ld-holo-test__art--fg.ld-holo-test__art--fg-crisp {
  --ld-fg-contrast: 1.28;
  --ld-fg-saturate: 1.1;
  --ld-fg-blur: 0px;
  image-rendering: auto;
  filter:
    drop-shadow(0 6px 12px rgba(255, 255, 255, 0.22))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45))
    brightness(1.02)
    contrast(var(--ld-fg-contrast))
    saturate(var(--ld-fg-saturate));
}

.ld-holo-test__art--fg.ld-holo-test__art--fg-soft {
  --ld-fg-contrast: 0.94;
  --ld-fg-saturate: 0.96;
  --ld-fg-blur: 0px;
  opacity: 0.92;
}

.ld-holo-test__art--fg.ld-holo-test__art--fg-outline {
  filter:
    drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.85))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    brightness(1)
    contrast(var(--ld-fg-contrast))
    saturate(var(--ld-fg-saturate));
}

.ld-holo-test__art--fg.ld-holo-test__art--fg-glow {
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 70%, transparent))
    drop-shadow(0 0 16px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 45%, transparent))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
    brightness(1.04)
    contrast(var(--ld-fg-contrast))
    saturate(calc(var(--ld-fg-saturate) * 1.08));
}

/* Effets texture (m?mes options que calque 2) */
.ld-holo-test__fg-stack--glow {
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 65%, transparent))
    drop-shadow(0 0 14px color-mix(in srgb, var(--ld-glow-c1, #f7c948) 35%, transparent));
}

.ld-holo-test__fg-stack--screen .ld-holo-test__art--fg {
  mix-blend-mode: screen;
  opacity: calc(0.75 + var(--ld-fg-fx-str, 0.55) * 0.25);
}

.ld-holo-test__fg-stack--soft .ld-holo-test__art--fg {
  mix-blend-mode: soft-light;
  opacity: calc(0.8 + var(--ld-fg-fx-str, 0.55) * 0.2);
}

.ld-holo-test__fg-fx {
  grid-area: 1 / 1;
  position: absolute;
  z-index: 1;
  width: calc(100% * var(--ld-fg-zoom, 1));
  height: calc(100% * var(--ld-fg-zoom, 1));
  max-width: none;
  max-height: none;
  left: var(--ld-fg-pos-x, 50%);
  top: var(--ld-fg-pos-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: var(--ld-fg-mask);
  mask-image: var(--ld-fg-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  opacity: calc(var(--ld-fg-fx-str, 0.55) * 0.85);
}

.ld-holo-test__fg-fx[hidden] {
  display: none;
}

.ld-holo-test__fg-fx--shimmer,
.ld-holo-test__mid-fx--shimmer{
  background-image:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(255, 255, 255, 0.55) 45%,
      transparent 70%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      rgba(255, 255, 255, 0.45) 0%,
      transparent 55%
    );
  background-size: 220% 220%, 160% 160%;
  background-position:
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    var(--ld-mx, 50%) var(--ld-my, 50%);
  animation: ld-mid-shimmer 4.5s ease-in-out infinite;
}

.ld-holo-test__fg-fx--rainbow,
.ld-holo-test__mid-fx--rainbow{
  background-image:
    repeating-linear-gradient(
      120deg,
      #ff6b6b 0%,
      #ffd93d 16%,
      #6bcb77 32%,
      #4d96ff 48%,
      #c77dff 64%,
      #ff6b6b 80%
    );
  background-size: 260% 260%;
  background-position: var(--ld-posx, 50%) var(--ld-posy, 50%);
  animation: ld-mid-shimmer 5.5s linear infinite;
}

.ld-holo-test__fg-fx--sparkle,
.ld-holo-test__mid-fx--sparkle{
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 55%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 75%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      rgba(255, 255, 255, 0.35) 0%,
      transparent 50%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 160% 160%;
  animation: ld-fg-sparkle 2.8s steps(2, end) infinite;
}

@keyframes ld-fg-sparkle {
  0%,
  100% {
    opacity: calc(var(--ld-fg-fx-str, 0.55) * 0.45);
  }
  50% {
    opacity: calc(var(--ld-fg-fx-str, 0.55) * 0.95);
  }
}

@keyframes ld-mid-sparkle {
  0%,
  100% {
    opacity: calc(var(--ld-mid-fx-str, 0.55) * 0.45);
  }
  50% {
    opacity: calc(var(--ld-mid-fx-str, 0.55) * 0.95);
  }
}

.ld-holo-test__mid-fx--sparkle {
  animation: ld-mid-sparkle 2.8s steps(2, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__fg-fx--shimmer,
  .ld-holo-test__mid-fx--shimmer,
  .ld-holo-test__fg-fx--rainbow,
  .ld-holo-test__mid-fx--rainbow,
  .ld-holo-test__fg-fx--sparkle,
  .ld-holo-test__mid-fx--sparkle {
    animation: none;
  }
}

/* Holo strictement d?coup? ? l?alpha du PNG (pas de mix-blend qui fuit) */
.ld-holo-test__fg-holo {
  grid-area: 1 / 1;
  position: absolute;
  z-index: 2;
  width: calc(100% * var(--ld-fg-zoom, 1));
  height: calc(100% * var(--ld-fg-zoom, 1));
  max-width: none;
  max-height: none;
  left: var(--ld-fg-pos-x, 50%);
  top: var(--ld-fg-pos-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: var(--ld-fg-mask);
  mask-image: var(--ld-fg-mask);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  opacity: calc(var(--ld-fg-holo-str, 0) * 0.006);
  /* screen = n?assombrit jamais l?image (ajoute seulement de la lumi?re) */
  mix-blend-mode: screen;
  transition: opacity 0.15s ease, left 0.05s linear, top 0.05s linear;
  overflow: hidden;
}

/* Option Lab : garder le holo sans ?claircir le PNG */
.ld-holo-test__fg-holo--nolight {
  mix-blend-mode: soft-light;
  opacity: calc(var(--ld-fg-holo-str, 0) * 0.012);
}

.ld-holo-test__fg-holo--nolight::before,
.ld-holo-test__mid-holo--nolight::before,
.ld-holo-test__fg-holo--nolight::after,
.ld-holo-test__mid-holo--nolight::after{
  filter: none;
}

.ld-holo-test__fg-holo[hidden] {
  display: none;
}

.ld-holo-test__fg-holo::before,
.ld-holo-test__fg-holo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  filter: brightness(1.25) contrast(1.05) saturate(1.05);
}

.ld-holo-test__fg-holo--classic::before,
.ld-holo-test__mid-holo--classic::before{
  background-image:
    repeating-linear-gradient(
      110deg,
      hsla(0, 0%, 100%, 0.08) 0%,
      color-mix(in srgb, var(--ld-holo-c1, #f7c948) 75%, #fff) 14%,
      color-mix(in srgb, var(--ld-holo-c2, #ff9f43) 70%, #fff) 22%,
      hsla(0, 0%, 100%, 0.1) 34%,
      transparent 50%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.18) 36%,
      transparent 70%
    );
  background-size: 240% 240%, 170% 170%;
  background-position:
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    var(--ld-mx, 50%) var(--ld-my, 50%);
}

.ld-holo-test__fg-holo--common::before,
.ld-holo-test__mid-holo--common::before{
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    hsla(210, 18%, 92%, 0.4) 42%,
    hsla(0, 0%, 100%, 0.65) 50%,
    hsla(210, 18%, 92%, 0.4) 58%,
    transparent 100%
  );
  background-size: 220% 220%;
  background-position: var(--ld-posx, 50%) var(--ld-posy, 50%);
}

.ld-holo-test__fg-holo--common::after,
.ld-holo-test__mid-holo--common::after{
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    hsla(0, 0%, 100%, 0.85) 8%,
    hsla(0, 0%, 100%, 0.35) 22%,
    transparent 55%
  );
  background-size: cover;
}

.ld-holo-test__fg-holo--holofoil::before,
.ld-holo-test__mid-holo--holofoil::before{
  background-image:
    repeating-linear-gradient(
      110deg,
      #c929f1,
      #0dbde9,
      #21e985,
      #eedf10,
      #f80e7b,
      #c929f1
    ),
    repeating-linear-gradient(
      90deg,
      hsla(0, 0%, 85%, 0.35) 0,
      hsla(0, 0%, 85%, 0.35) 1px,
      hsla(0, 0%, 100%, 0.55) 1px,
      hsla(0, 0%, 100%, 0.55) 2px
    );
  background-size: 400% 400%, cover;
  background-position:
    calc(((50% - var(--ld-posx, 50%)) * 2.2) + 50%) calc(((50% - var(--ld-posy, 50%)) * 2.8) + 50%),
    center;
  background-blend-mode: screen, soft-light;
  filter: brightness(1.3) contrast(1.08) saturate(1);
}

.ld-holo-test__fg-holo--holofoil::after,
.ld-holo-test__mid-holo--holofoil::after{
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    hsla(0, 0%, 96%, 0.75) 0%,
    hsla(0, 0%, 85%, 0.15) 28%,
    transparent 70%
  );
  background-size: cover;
}

.ld-holo-test__fg-holo--galaxy::before,
.ld-holo-test__mid-holo--galaxy::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    repeating-linear-gradient(
      82deg,
      rgb(218, 56, 50) 80px,
      rgb(219, 204, 86) 160px,
      rgb(121, 199, 58) 240px,
      rgb(58, 192, 183) 320px,
      rgb(71, 98, 207) 400px,
      rgb(170, 69, 209) 480px,
      rgb(218, 56, 50) 800px
    );
  background-size: 80% 80%, 600% 1200%;
  background-position: center, var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-repeat: repeat, repeat;
  background-blend-mode: screen, soft-light;
  filter: brightness(1.35) contrast(1.08) saturate(1.15);
}

.ld-holo-test__fg-holo--galaxy::after,
.ld-holo-test__mid-holo--galaxy::after{
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      rgba(255, 255, 255, 0.5) 5%,
      transparent 55%
    );
  background-size: 42% 42%, 160% 160%;
  background-position: center, var(--ld-mx, 50%) var(--ld-my, 50%);
  background-repeat: repeat, no-repeat;
  background-blend-mode: screen, soft-light;
}

/* Cosmos Holofoil ? simey rare holo galaxy (?l?ment) */
.ld-holo-test__fg-holo--cosmos::before,
.ld-holo-test__mid-holo--cosmos::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    repeating-linear-gradient(
      82deg,
      rgb(218, 56, 50) 80px,
      rgb(219, 204, 86) 160px,
      rgb(121, 199, 58) 240px,
      rgb(58, 192, 183) 320px,
      rgb(71, 98, 207) 400px,
      rgb(170, 69, 209) 480px,
      rgb(218, 56, 50) 800px
    );
  background-size: cover, cover, cover, 600% 1200%;
  background-position:
    center,
    center,
    center,
    calc(((50% - var(--ld-posx, 50%)) * 2.5) + 50%)
      calc(((50% - var(--ld-posy, 50%)) * 2.5) + 50%);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-blend-mode: color-dodge, color-burn, saturation, screen;
  filter: brightness(0.85) contrast(1.15) saturate(1.4);
}

.ld-holo-test__fg-holo--cosmos::after,
.ld-holo-test__mid-holo--cosmos::after{
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    rgba(255, 255, 255, 0.6) 5%,
    rgba(150, 150, 150, 0.3) 40%,
    rgb(0, 0, 0) 100%
  );
  background-size: cover;
  background-position: center;
  background-blend-mode: screen;
  mix-blend-mode: color-dodge;
}

.ld-holo-test__fg-holo--rainbow::before,
.ld-holo-test__mid-holo--rainbow::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/rainbow2.jpg"),
    repeating-linear-gradient(
      -20deg,
      rgba(253, 71, 65, 0.75) 7%,
      rgba(255, 243, 151, 0.75) 14%,
      rgba(168, 255, 95, 0.7) 21%,
      rgba(131, 255, 247, 0.7) 28%,
      rgba(75, 198, 255, 0.75) 35%,
      rgba(255, 73, 246, 0.7) 42%,
      rgba(255, 56, 49, 0.75) 49%
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion2.webp");
  background-size: 24% 24%, 500% 500%, 26% 26%;
  background-position: center, var(--ld-posx, 50%) var(--ld-posy, 50%), center;
  background-repeat: repeat, repeat, repeat;
  background-blend-mode: screen, soft-light, soft-light;
  filter: brightness(1.35) contrast(1.05) saturate(0.95);
}

.ld-holo-test__fg-holo--rainbow::after,
.ld-holo-test__mid-holo--rainbow::after{
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      rgba(255, 255, 255, 0.45) 0%,
      transparent 55%
    );
  background-size: 28% 28%, 150% 150%;
  background-position: center, var(--ld-mx, 50%) var(--ld-my, 50%);
  background-repeat: repeat, no-repeat;
}

.ld-holo-test__fg-holo--rainbowrare,
.ld-holo-test__mid-holo--rainbowrare{
  --ld-rr-1: hsl(0, 70%, 72%);
  --ld-rr-2: hsl(40, 75%, 72%);
  --ld-rr-3: hsl(90, 70%, 70%);
  --ld-rr-4: hsl(180, 70%, 72%);
  --ld-rr-5: hsl(180, 70%, 72%);
  --ld-rr-6: hsl(210, 70%, 74%);
  --ld-rr-7: hsl(280, 65%, 74%);
}

.ld-holo-test__fg-holo--rainbowrare::before,
.ld-holo-test__mid-holo--rainbowrare::before{
  background-image:
    linear-gradient(-45deg, var(--ld-rr-1), var(--ld-rr-5)),
    url("https://assets.codepen.io/13471/sparkles.gif"),
    linear-gradient(
      -30deg,
      var(--ld-rr-1),
      var(--ld-rr-2),
      var(--ld-rr-3),
      var(--ld-rr-4),
      var(--ld-rr-5),
      var(--ld-rr-6),
      var(--ld-rr-7),
      var(--ld-rr-1)
    );
  background-size: 200% 200%, 28% 28%, 400% 400%;
  background-position:
    calc(25% + (50% - var(--ld-mx, 50%)) * 0.5) calc(25% + (50% - var(--ld-my, 50%)) * 0.5),
    center,
    var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: screen, soft-light, soft-light;
  filter: brightness(1.35) contrast(1.1) saturate(1);
}

.ld-holo-test__fg-holo--rainbowrare::after,
.ld-holo-test__mid-holo--rainbowrare::after{
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsl(0, 0%, 90%) 0%,
      transparent 55%
    );
  background-size: 28% 28%, cover;
  background-position: center, center;
  background-repeat: repeat, no-repeat;
}

.ld-holo-test__fg-holo--radiant,
.ld-holo-test__mid-holo--radiant{
  --ld-barw: 1.2%;
  --ld-r-space: 200px;
}

.ld-holo-test__fg-holo--radiant::before,
.ld-holo-test__mid-holo--radiant::before{
  background-image:
    radial-gradient(
      farthest-corner ellipse at calc((var(--ld-mx, 50%) * 0.5) + 25%) calc((var(--ld-my, 50%) * 0.5) + 25%),
      hsl(0, 0%, 95%) 20%,
      var(--ld-card-glow, hsl(175, 100%, 90%)) 130%
    ),
    repeating-linear-gradient(
      45deg,
      hsl(0, 0%, 10%) 0%,
      hsl(0, 0%, 10%) var(--ld-barw),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 2),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 3),
      hsl(0, 0%, 50%) calc(var(--ld-barw) * 5),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 7),
      hsl(0, 0%, 10%) calc(var(--ld-barw) * 9),
      hsl(0, 0%, 0%) calc(var(--ld-barw) * 10)
    ),
    repeating-linear-gradient(
      -45deg,
      hsl(0, 0%, 10%) 0%,
      hsl(0, 0%, 10%) var(--ld-barw),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 2),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 3),
      hsl(0, 0%, 50%) calc(var(--ld-barw) * 5),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 7),
      hsl(0, 0%, 10%) calc(var(--ld-barw) * 9),
      hsl(0, 0%, 0%) calc(var(--ld-barw) * 10)
    );
  background-size: cover, 210% 210%, 210% 210%;
  background-position:
    center,
    calc(((var(--ld-posx, 50%) - 50%) * 1.5) + 50%) calc(((var(--ld-posy, 50%) - 50%) * 1.5) + 50%),
    calc(((var(--ld-posx, 50%) - 50%) * 1.5) + 50%) calc(((var(--ld-posy, 50%) - 50%) * 1.5) + 50%);
  background-blend-mode: exclusion, darken, color-dodge;
  filter: brightness(0.7) contrast(1.8) saturate(1.4);
}

.ld-holo-test__fg-holo--radiant::after,
.ld-holo-test__mid-holo--radiant::after{
  background-image:
    var(--ld-glitter, url("https://poke-holo.simey.me/img/glitter.png")),
    var(--ld-foil-tex, url("https://poke-holo.simey.me/img/trainerbg.png")),
    repeating-linear-gradient(
      55deg,
      hsl(3, 95%, 85%) calc(var(--ld-r-space) * 1),
      hsl(207, 100%, 84%) calc(var(--ld-r-space) * 2),
      hsl(29, 100%, 85%) calc(var(--ld-r-space) * 3),
      hsl(160, 100%, 86%) calc(var(--ld-r-space) * 4),
      hsl(309, 94%, 87%) calc(var(--ld-r-space) * 5),
      hsl(188, 95%, 85%) calc(var(--ld-r-space) * 6),
      hsl(3, 95%, 85%) calc(var(--ld-r-space) * 7)
    );
  background-size: 15% 15%, 25% auto, 400% 100%;
  background-position:
    center,
    center,
    calc(((var(--ld-posx, 50%) - 50%) * -2.5) + 50%) calc(((var(--ld-posy, 50%) - 50%) * -2.5) + 50%);
  background-repeat: repeat, repeat, repeat;
  background-blend-mode: color-dodge, difference;
  filter: brightness(0.75) contrast(2) saturate(1.5);
}

.ld-holo-test__fg-holo--pokev,
.ld-holo-test__mid-holo--pokev{
  --ld-v-space: 5%;
  --ld-v-angle: 133deg;
}

.ld-holo-test__fg-holo--pokev::before,
.ld-holo-test__mid-holo--pokev::before{
  background-image:
    var(--ld-grain, url("https://poke-holo.simey.me/img/grain.webp")),
    repeating-linear-gradient(
      0deg,
      var(--ld-sun-1) calc(var(--ld-v-space) * 1),
      var(--ld-sun-2) calc(var(--ld-v-space) * 2),
      var(--ld-sun-3) calc(var(--ld-v-space) * 3),
      var(--ld-sun-4) calc(var(--ld-v-space) * 4),
      var(--ld-sun-5) calc(var(--ld-v-space) * 5),
      var(--ld-sun-6) calc(var(--ld-v-space) * 6),
      var(--ld-sun-1) calc(var(--ld-v-space) * 7)
    ),
    repeating-linear-gradient(
      var(--ld-v-angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 0%, 0.1) 12%,
      hsla(0, 0%, 0%, 0.25) 120%
    );
  background-size: 500px 100%, 200% 700%, 300% 100%, 200% 100%;
  background-position:
    center,
    0% var(--ld-posy, 50%),
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-blend-mode: screen, hue, hard-light;
  filter: brightness(0.95) contrast(2.2) saturate(0.7);
}

.ld-holo-test__fg-holo--pokev::after,
.ld-holo-test__mid-holo--pokev::after{
  background-image:
    var(--ld-grain, url("https://poke-holo.simey.me/img/grain.webp")),
    repeating-linear-gradient(
      var(--ld-v-angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsl(0, 0%, 100%) 0%,
      transparent 55%
    );
  background-size: 500px 100%, 195% 100%, 160% 160%;
  background-position:
    center,
    calc(var(--ld-posx, 50%) * -1) calc(var(--ld-posy, 50%) * -1),
    center;
  background-blend-mode: screen, hard-light, soft-light;
  opacity: 0.8;
  filter: brightness(1.05) contrast(2) saturate(1.2);
}

.ld-holo-test__fg-holo--vstar::before,
.ld-holo-test__mid-holo--vstar::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/ancient.webp"),
    repeating-linear-gradient(
      0deg,
      rgba(255, 119, 115, 0.45) 5%,
      rgba(255, 237, 95, 0.4) 10%,
      rgba(168, 255, 95, 0.4) 15%,
      rgba(131, 255, 247, 0.4) 20%,
      rgba(120, 148, 255, 0.4) 25%,
      rgba(216, 117, 255, 0.45) 30%,
      rgba(255, 119, 115, 0.45) 35%
    );
  background-size: 42% 42%, 200% 700%;
  background-position: center, 0% var(--ld-posy, 50%);
  background-repeat: repeat, repeat;
  background-blend-mode: screen, soft-light;
  filter: brightness(1.3) contrast(1.05) saturate(0.9);
}

.ld-holo-test__fg-holo--vmax::before,
.ld-holo-test__mid-holo--vmax::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/vmaxbg.webp"),
    repeating-linear-gradient(
      -33deg,
      rgb(206, 42, 36) 6%,
      rgb(157, 170, 223) 12%,
      rgb(45, 153, 146) 18%,
      rgb(29, 151, 36) 24%,
      rgb(181, 64, 228) 30%,
      rgb(206, 42, 36) 36%
    );
  background-size: 40% 40%, 800% 800%;
  background-position: center, var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-repeat: repeat, repeat;
  background-blend-mode: screen, soft-light;
  filter: brightness(1.35) contrast(1.1) saturate(0.95);
}

.ld-holo-test__fg-holo--vmax::after,
.ld-holo-test__mid-holo--vmax::after{
  background-image: url("https://assets.codepen.io/13471/sparkles.gif");
  background-size: 42% 42%;
  background-repeat: repeat;
  opacity: 0.7;
}

.ld-holo-test__fg-holo--trainer::before,
.ld-holo-test__mid-holo--trainer::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp"),
    repeating-linear-gradient(
      0deg,
      rgba(255, 180, 120, 0.4) 5%,
      rgba(255, 220, 160, 0.35) 12%,
      rgba(180, 220, 255, 0.4) 20%,
      rgba(255, 180, 120, 0.4) 28%
    );
  background-size: 28% 28%, 200% 700%;
  background-position: center, 0% var(--ld-posy, 50%);
  background-repeat: repeat, repeat;
  background-blend-mode: screen, soft-light;
  filter: brightness(1.28) contrast(1.05) saturate(0.95);
}

.ld-holo-test__fg-holo--gallery,
.ld-holo-test__mid-holo--gallery{
  --ld-g-space: 5%;
  --ld-g-angle: -22deg;
}

.ld-holo-test__fg-holo--gallery::before,
.ld-holo-test__mid-holo--gallery::before{
  background-image: repeating-linear-gradient(
    var(--ld-g-angle),
    hsla(283, 49%, 60%, 0.75) calc(var(--ld-g-space) * 1),
    hsla(2, 74%, 59%, 0.75) calc(var(--ld-g-space) * 2),
    hsla(53, 67%, 53%, 0.75) calc(var(--ld-g-space) * 3),
    hsla(93, 56%, 52%, 0.75) calc(var(--ld-g-space) * 4),
    hsla(176, 38%, 50%, 0.75) calc(var(--ld-g-space) * 5),
    hsla(228, 100%, 77%, 0.75) calc(var(--ld-g-space) * 6),
    hsla(283, 49%, 61%, 0.75) calc(var(--ld-g-space) * 7)
  );
  background-size: 300% 400%;
  background-position: 0% var(--ld-posy, 50%), var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-blend-mode: color-dodge;
  filter: brightness(calc((var(--ld-pfc, 0) * 0.3) + 0.7)) contrast(2) saturate(1);
}

.ld-holo-test__fg-holo--gallery::after,
.ld-holo-test__mid-holo--gallery::after{
  background-image: radial-gradient(
    farthest-corner ellipse at calc((var(--ld-mx, 50%) * 0.5) + 25%) calc((var(--ld-my, 50%) * 0.5) + 25%),
    hsl(0, 0%, 100%) 5%,
    hsla(300, 100%, 11%, 0.6) 40%,
    hsl(0, 0%, 22%) 120%
  );
  background-size: 400% 500%;
  background-position: center;
  mix-blend-mode: hard-light;
  filter: brightness(calc((var(--ld-pfc, 0) * 0.2) + 0.5)) contrast(0.9) saturate(1.1);
}

.ld-holo-test__fg-holo--secret::before,
.ld-holo-test__mid-holo--secret::before{
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    conic-gradient(
      from 0deg at 50% 50%,
      hsl(46, 95%, 55%),
      hsl(52, 100%, 70%),
      hsl(38, 90%, 48%),
      hsl(46, 95%, 55%)
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/metal.webp");
  background-size: 40% 40%, cover, 50% 50%;
  background-position: 45% 45%, center, center;
  background-repeat: repeat, no-repeat, repeat;
  background-blend-mode: screen, soft-light, soft-light;
  filter: brightness(1.3) contrast(1.1) saturate(1.25);
}

.ld-holo-test__fg-holo--shiny::before,
.ld-holo-test__mid-holo--shiny::before{
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp"),
    repeating-linear-gradient(
      0deg,
      rgb(255, 119, 115) 5%,
      rgba(255, 237, 95, 1) 10%,
      rgba(168, 255, 95, 1) 15%,
      rgba(131, 255, 247, 1) 20%,
      rgba(120, 148, 255, 1) 25%,
      rgb(216, 117, 255) 30%,
      rgb(255, 119, 115) 35%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.45) 0%,
      transparent 55%
    );
  background-size: 48% 48%, 200% 700%, cover;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0% 0%, 0% var(--ld-posy, 50%), center;
  background-blend-mode: screen, soft-light, soft-light;
  filter: brightness(1.32) contrast(1.08) saturate(1);
}

.ld-holo-test__fg-holo--neondrive::before,
.ld-holo-test__mid-holo--neondrive::before{
  background-image:
    repeating-linear-gradient(
      118deg,
      #00d4ff 0%,
      #ff2d95 22%,
      #7af0ff 44%,
      #a855f7 66%,
      #00d4ff 88%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.55) 0%,
      transparent 55%
    );
  background-size: 220% 700%, cover;
  background-position: 0% var(--ld-posy, 50%), center;
  background-blend-mode: soft-light, soft-light;
  filter: brightness(1.28) contrast(1.15) saturate(1.35);
}

.ld-holo-test__fg-holo--aurora::before,
.ld-holo-test__mid-holo--aurora::before{
  background-image:
    linear-gradient(
      105deg,
      hsla(160, 90%, 55%, 0.75),
      hsla(190, 85%, 60%, 0.7),
      hsla(280, 80%, 65%, 0.75),
      hsla(160, 90%, 55%, 0.75)
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.5) 0%,
      transparent 55%
    );
  background-size: 260% 160%, cover;
  background-position: var(--ld-posx, 50%) var(--ld-posy, 50%), center;
  background-blend-mode: soft-light, soft-light;
  filter: brightness(1.25) contrast(1.08) saturate(1.2);
}

.ld-holo-test__fg-holo--ember::before,
.ld-holo-test__mid-holo--ember::before{
  background-image:
    repeating-linear-gradient(
      125deg,
      #ffb347 0%,
      #ff6b35 18%,
      #ffd166 34%,
      #c1121f 50%,
      #ffb347 70%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(40, 100%, 85%, 0.55) 0%,
      transparent 55%
    );
  background-size: 220% 700%, cover;
  background-position: 0% var(--ld-posy, 50%), center;
  background-blend-mode: soft-light, soft-light;
  filter: brightness(1.28) contrast(1.12) saturate(1.3);
}

.ld-holo-test__fg-holo--ion::before,
.ld-holo-test__mid-holo--ion::before{
  background-image:
    repeating-conic-gradient(
      from 0deg at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(200, 100%, 70%, 0.75) 0deg 5deg,
      transparent 5deg 20deg
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.55) 0%,
      transparent 55%
    );
  background-size: 140% 140%, cover;
  background-position: center, center;
  background-blend-mode: screen, soft-light;
  filter: brightness(1.3) contrast(1.2) saturate(1.4);
}

.ld-holo-test__fg-holo--crystal::before,
.ld-holo-test__mid-holo--crystal::before{
  background-image:
    linear-gradient(
      125deg,
      hsla(200, 80%, 95%, 0.75),
      hsla(190, 70%, 70%, 0.55),
      hsla(280, 50%, 85%, 0.65),
      hsla(200, 80%, 95%, 0.75)
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.6) 0%,
      transparent 55%
    );
  background-size: 240% 180%, cover;
  background-position: var(--ld-posx, 50%) var(--ld-posy, 50%), center;
  background-blend-mode: soft-light, soft-light;
  filter: brightness(1.3) contrast(1.12) saturate(1);
}

.ld-holo-test__fg-holo--phantom::before,
.ld-holo-test__mid-holo--phantom::before{
  background-image:
    radial-gradient(
      90% 70% at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.7) 0%,
      hsla(270, 40%, 75%, 0.45) 35%,
      transparent 70%
    ),
    linear-gradient(
      200deg,
      hsla(260, 35%, 75%, 0.55),
      hsla(200, 25%, 85%, 0.4),
      hsla(300, 30%, 70%, 0.5)
    );
  background-size: cover, 180% 180%;
  background-position: center, var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-blend-mode: soft-light, soft-light;
  filter: brightness(1.22) contrast(1.08) saturate(0.9);
}

.ld-holo-test__fg-holo--stardust::before,
.ld-holo-test__mid-holo--stardust::before{
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(1.5px 1.5px at 25% 35%, #fff 40%, transparent 50%),
    radial-gradient(1px 1px at 65% 50%, #cfe9ff 40%, transparent 50%),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.55) 0%,
      transparent 55%
    );
  background-size: 40% 40%, 180% 180%, 180% 180%, cover;
  background-position: center, var(--ld-posx, 50%) var(--ld-posy, 50%), calc(100% - var(--ld-posx, 50%)) var(--ld-posy, 50%), center;
  background-repeat: repeat, repeat, repeat, no-repeat;
  background-blend-mode: screen, screen, screen, soft-light;
  filter: brightness(1.3) contrast(1.15) saturate(1.15);
}

.ld-holo-test__fg-holo--constellation::before,
.ld-holo-test__mid-holo--constellation::before{
  background-image:
    linear-gradient(32deg, transparent 42%, hsla(200, 100%, 85%, 0.6) 42.5%, transparent 43%),
    linear-gradient(-18deg, transparent 55%, hsla(280, 80%, 80%, 0.55) 55.5%, transparent 56%),
    radial-gradient(2px 2px at 35% 40%, #fff 45%, transparent 55%),
    radial-gradient(2px 2px at 65% 45%, #cfe9ff 45%, transparent 55%),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.55) 0%,
      transparent 55%
    );
  background-size: 160% 160%, 160% 160%, 170% 170%, 170% 170%, cover;
  background-position:
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    calc(100% - var(--ld-posx, 50%)) var(--ld-posy, 50%),
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    calc(100% - var(--ld-posx, 50%)) var(--ld-posy, 50%),
    center;
  background-repeat: no-repeat;
  background-blend-mode: screen, screen, screen, screen, soft-light;
  filter: brightness(1.28) contrast(1.18) saturate(1.1);
}

.ld-holo-test__fg-holo--nova::before,
.ld-holo-test__mid-holo--nova::before{
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    conic-gradient(
      from 0deg at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(45, 100%, 80%, 0.85) 0deg,
      transparent 10deg,
      hsla(200, 100%, 80%, 0.55) 45deg,
      transparent 55deg,
      hsla(320, 90%, 75%, 0.55) 90deg,
      transparent 100deg,
      hsla(45, 100%, 80%, 0.85) 360deg
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 100%, 0.65) 0%,
      transparent 50%
    );
  background-size: 40% 40%, 130% 130%, cover;
  background-position: center, center, center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-blend-mode: screen, screen, soft-light;
  filter: brightness(1.32) contrast(1.2) saturate(1.3);
}

.ld-holo-test__card--has-fg.is-active .ld-holo-test__fg-holo,
.ld-holo-test__card--has-fg:hover .ld-holo-test__fg-holo {
  opacity: calc(var(--ld-fg-holo-str, 0) * 0.01);
}

.ld-holo-test__card--has-mid.is-active .ld-holo-test__mid-holo,
.ld-holo-test__card--has-mid:hover .ld-holo-test__mid-holo {
  opacity: calc(var(--ld-mid-holo-str, 0) * 0.01);
}

.ld-holo-test__card--has-fg.is-active .ld-holo-test__fg-holo--nolight,
.ld-holo-test__card--has-fg:hover .ld-holo-test__fg-holo--nolight {
  opacity: calc(var(--ld-fg-holo-str, 0) * 0.02);
}

.ld-holo-test__card--has-mid.is-active .ld-holo-test__mid-holo--nolight,
.ld-holo-test__card--has-mid:hover .ld-holo-test__mid-holo--nolight {
  opacity: calc(var(--ld-mid-holo-str, 0) * 0.02);
}
.ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-holo::before {
  animation: ld-holo-fg-holo-drift 10s ease-in-out infinite;
}
.ld-holo-test__card--has-mid.is-animated .ld-holo-test__mid-holo::before {
  animation: ld-holo-fg-holo-drift 10s ease-in-out infinite;
}

@keyframes ld-holo-fg-holo-drift {
  0%,
  100% {
    background-position: 30% 40%, 40% 45%;
  }
  50% {
    background-position: 70% 55%, 60% 40%;
  }
}

.ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-holo--radiant {
  animation: ld-holo-fg-holo-spin 10s ease-in-out infinite;
}
.ld-holo-test__card--has-mid.is-animated .ld-holo-test__mid-holo--radiant {
  animation: ld-holo-mid-holo-spin 10s ease-in-out infinite;
}

@keyframes ld-holo-fg-holo-spin {
  0%,
  100% {
    opacity: calc(var(--ld-fg-holo-str, 0) * 0.007);
  }
  50% {
    opacity: calc(var(--ld-fg-holo-str, 0) * 0.011);
  }
}

@keyframes ld-holo-mid-holo-spin {
  0%,
  100% {
    opacity: calc(var(--ld-mid-holo-str, 0) * 0.007);
  }
  50% {
    opacity: calc(var(--ld-mid-holo-str, 0) * 0.011);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-holo::before,
  .ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-holo--radiant,
  .ld-holo-test__card--has-mid.is-animated .ld-holo-test__mid-holo::before,
  .ld-holo-test__card--has-mid.is-animated .ld-holo-test__mid-holo--radiant {
    animation: none;
  }
}

/* Reflet soft sur l??l?ment (pas du foil) */
.ld-holo-test__fg-glare {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.12) 28%,
    transparent 58%
  );
  background-size: 140% 140%;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  transition: opacity 0.18s ease;
}

.ld-holo-test__fg-glare[hidden] {
  display: none;
}

.ld-holo-test__card--has-fg.is-active .ld-holo-test__fg-glare,
.ld-holo-test__card--has-fg:hover .ld-holo-test__fg-glare {
  opacity: 0.85;
}

/* ?l?ment toujours fixe (comme le fond) ? zoom via width/height, pas transform */
.ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-stack {
  transform: none;
}

.ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-glare {
  animation: ld-holo-fg-glare 12s ease 0s 1;
}

@keyframes ld-holo-fg-glare {
  0%,
  100% {
    opacity: 0.15;
    background-position: 50% 45%;
  }
  5%,
  8% {
    opacity: 0.55;
    background-position: 28% 35%;
  }
  13%,
  16% {
    opacity: 0.5;
    background-position: 72% 40%;
  }
  35%,
  38% {
    opacity: 0.6;
    background-position: 65% 30%;
  }
  55% {
    opacity: 0.4;
    background-position: 30% 55%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__card--has-fg.is-animated .ld-holo-test__fg-glare {
    animation: none;
  }
}

.ld-holo-test__card--cover .ld-holo-test__art--bg {
  object-fit: cover;
  /* Toujours remplir : le zoom ne descend pas sous 100 % (g?r? en JS) */
  transform: translate(
      calc(var(--ld-holo-pos-x, 50%) - 50%),
      calc(var(--ld-holo-pos-y, 50%) - 50%)
    )
    scale(max(1, var(--ld-holo-zoom, 1)));
  transform-origin: center center;
}

.ld-holo-test__card--contain .ld-holo-test__art--bg {
  object-fit: contain;
  padding: 6%;
  box-sizing: border-box;
  /* En ?image enti?re?, le d?zoom r?duit l?image dans la carte */
  transform: translate(
      calc(var(--ld-holo-pos-x, 50%) - 50%),
      calc(var(--ld-holo-pos-y, 50%) - 50%)
    )
    scale(var(--ld-holo-zoom, 1));
  transform-origin: center center;
}

/* Badge au-dessus du holo (d?faut builder si option d?coch?e) */
.ld-holo-test__card--builder .ld-collect-card__rarity {
  z-index: 8;
}

/* Badge sous le foil (z 3?4) ? au-dessus du fond */
.ld-holo-test__card--builder.ld-holo-test__card--badge-under-foil .ld-collect-card__rarity {
  z-index: 2;
}

/* Texte sous le foil (sinon z 7, au-dessus) */
.ld-holo-test__card--meta-under-foil .ld-holo-test__meta {
  z-index: 2;
}

.ld-holo-test__card--cyan {
  --ld-holo-c1: #00e7ff;
  --ld-holo-c2: #7dffb0;
}

.ld-holo-test__card--magenta {
  --ld-holo-c1: #ff2d95;
  --ld-holo-c2: #a78bfa;
}

.ld-holo-test__card--gold {
  --ld-holo-c1: #f7c948;
  --ld-holo-c2: #ff9f43;
}

.ld-holo-test__card--prism {
  --ld-holo-c1: #ec9bb6;
  --ld-holo-c2: #69e4a5;
  --ld-holo-c3: #8ec5d6;
  --ld-holo-c4: #b98cce;
  --ld-holo-c5: #ccac6f;
}

/* Black Edition ? N&B chrome (argent?, moins ?cras?) */
.ld-holo-test__card--obsidian {
  --ld-holo-c1: #f4f6fa;
  --ld-holo-c2: #b8c0cc;
  --ld-frame-c: #9aa3b0;
  background-color: #12151c;
}

.ld-holo-test__card--obsidian .ld-holo-test__art--bg {
  filter:
    grayscale(1)
    contrast(calc(var(--ld-bg-contrast, 1) * 1.02))
    brightness(calc(var(--ld-bg-bright, 1) * 1.28))
    blur(var(--ld-bg-blur, 0px));
}

/* Black Edition ? calque 3 (?l?ment) aussi N&B ; le holo FG garde ses couleurs */
.ld-holo-test__card--obsidian .ld-holo-test__art--fg {
  filter:
    grayscale(1)
    drop-shadow(0 6px 12px rgba(255, 255, 255, 0.28))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35))
    brightness(1.22)
    contrast(calc(var(--ld-fg-contrast, 1) * 1.02))
    saturate(0);
}

.ld-holo-test__card--obsidian .ld-holo-test__art--fg.ld-holo-test__art--fg-outline {
  filter:
    grayscale(1)
    drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.75))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.22))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35))
    brightness(1.18)
    contrast(calc(var(--ld-fg-contrast, 1) * 1.02))
    saturate(0);
}

.ld-holo-test__card--obsidian .ld-holo-test__art--fg.ld-holo-test__art--fg-glow {
  filter:
    grayscale(1)
    drop-shadow(0 0 6px rgba(230, 235, 245, 0.7))
    drop-shadow(0 0 16px rgba(200, 210, 225, 0.45))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.22))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35))
    brightness(1.24)
    contrast(calc(var(--ld-fg-contrast, 1) * 1.02))
    saturate(0);
}

/* Black Edition — calque 2 (milieu) aussi N&B */
.ld-holo-test__card--obsidian .ld-holo-test__art--mid {
  filter:
    grayscale(1)
    drop-shadow(0 6px 12px rgba(255, 255, 255, 0.28))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35))
    brightness(1.22)
    contrast(calc(var(--ld-mid-contrast, 1) * 1.02))
    saturate(0);
}

.ld-holo-test__card--obsidian .ld-holo-test__art--mid.ld-holo-test__art--mid-outline {
  filter:
    grayscale(1)
    drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.75))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.22))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35))
    brightness(1.18)
    contrast(calc(var(--ld-mid-contrast, 1) * 1.02))
    saturate(0);
}

.ld-holo-test__card--obsidian .ld-holo-test__art--mid.ld-holo-test__art--mid-glow {
  filter:
    grayscale(1)
    drop-shadow(0 0 6px rgba(230, 235, 245, 0.7))
    drop-shadow(0 0 16px rgba(200, 210, 225, 0.45))
    drop-shadow(0 6px 10px rgba(255, 255, 255, 0.22))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35))
    brightness(1.24)
    contrast(calc(var(--ld-mid-contrast, 1) * 1.02))
    saturate(0);
}

.ld-holo-test__card--limited {
  --ld-holo-c1: #ff4d6d;
  --ld-holo-c2: #f7c948;
}

.ld-holo-test__card:hover,
.ld-holo-test__card.is-active {
  /* Pas de transition transform pendant le tilt (sinon lag / ?-coups mobile) */
  transition: box-shadow 0.2s ease;
  box-shadow:
    0 0 0 1px #f7f4ea,
    0 0 0 2px #9a9588,
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 16px 28px rgba(0, 0, 0, 0.48),
    0 32px 52px -6px rgba(0, 0, 0, 0.58),
    0 48px 80px -14px rgba(0, 0, 0, 0.5);
}

.ld-holo-test__card--no-frame:hover,
.ld-holo-test__card--no-frame.is-active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 16px 28px rgba(0, 0, 0, 0.48),
    0 32px 52px -6px rgba(0, 0, 0, 0.58),
    0 48px 80px -14px rgba(0, 0, 0, 0.5);
}
/* Glare type simey (.card__glare) ? spot lumineux au curseur */
.ld-holo-test__glare {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    hsla(0, 0%, 100%, 0.8) 10%,
    hsla(0, 0%, 100%, 0.55) 22%,
    hsla(0, 0%, 0%, 0.45) 90%
  );
  transition: opacity 0.33s ease;
}
.ld-holo-test__card:hover .ld-holo-test__glare,
.ld-holo-test__card.is-active .ld-holo-test__glare {
  opacity: calc(0.55 * var(--ld-foil-str, 1) * (0.35 + var(--ld-pfc, 0) * 0.65));
}

.ld-holo-test__card::before,
.ld-holo-test__card .ld-holo-test__rim-foil--grad,
.ld-holo-test__card::after,
.ld-holo-test__card .ld-holo-test__rim-foil--spark {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-repeat: no-repeat;
  mix-blend-mode: color-dodge;
  transition: opacity 0.33s ease, filter 0.33s ease;
  pointer-events: none;
  transform: scale(var(--ld-foil-zoom, 1));
  transform-origin: var(--ld-holo-pos-x, 50%) var(--ld-holo-pos-y, 50%);
}
/* Shine ? color-dodge (simey .card__shine) — position via vars (souris + idle) */
.ld-holo-test__card::before,
.ld-holo-test__card .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-classic .ld-holo-test__text-foil--grad {
  background-position: var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-size: 300% 300%;
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    var(--ld-holo-c1) 25%,
    transparent 47%,
    transparent 53%,
    var(--ld-holo-c2) 75%,
    transparent 100%
  );
  opacity: calc(0.32 * var(--ld-foil-str, 1));
  filter: brightness(0.42) contrast(1);
  z-index: 3;
}
/* Texture foil ? luminosity (simey shine:after) + sparkles */
.ld-holo-test__card::after,
.ld-holo-test__card .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-classic .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
      hsla(0, 0%, 92%, 0.75) 0%,
      hsla(0, 0%, 70%, 0.12) 28%,
      hsl(0, 0%, 0%) 90%
    ),
    url("https://assets.codepen.io/13471/sparkles.gif"),
    url("https://assets.codepen.io/13471/holo.png"),
    linear-gradient(
      125deg,
      #ff008450 15%,
      #fca40040 30%,
      #ffff0030 40%,
      #00ff8a20 60%,
      #00cfff40 70%,
      #cc4cfa50 85%
    );
  background-position:
    center,
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    var(--ld-posx, 50%) var(--ld-posy, 50%),
    var(--ld-posx, 50%) var(--ld-posy, 50%);
  background-size: cover, 160%, 160%, 160%;
  background-blend-mode: luminosity, overlay, soft-light, overlay;
  mix-blend-mode: color-dodge;
  z-index: 4;
  filter: brightness(0.72) contrast(1.35) saturate(0.9);
  opacity: calc(0.4 * var(--ld-foil-str, 1));
}
.ld-holo-test__card:hover::after,
.ld-holo-test__card:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card.is-active::after,
.ld-holo-test__card.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-classic.is-active .ld-holo-test__text-foil--spark {
  filter: brightness(0.82) contrast(1.45) saturate(1);
  opacity: calc(0.55 * var(--ld-foil-str, 1));
}
.ld-holo-test__card:hover::before,
.ld-holo-test__card:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card.is-active::before,
.ld-holo-test__card.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-classic.is-active .ld-holo-test__text-foil--grad {
  background-image: linear-gradient(
    110deg,
    transparent 25%,
    var(--ld-holo-c1) 48%,
    var(--ld-holo-c2) 52%,
    transparent 75%
  );
  background-size: 250% 250%;
  opacity: calc(0.48 * var(--ld-foil-str, 1));
  filter: brightness(0.5) contrast(1.15);
  transition: none;
}
.ld-holo-test__card--prism:hover::before,
.ld-holo-test__card--prism:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--prism.is-active::before,
.ld-holo-test__card--prism.is-active .ld-holo-test__rim-foil--grad {
  background-image: linear-gradient(
    115deg,
    transparent 20%,
    var(--ld-holo-c1) 36%,
    var(--ld-holo-c2) 43%,
    var(--ld-holo-c3) 50%,
    var(--ld-holo-c4) 57%,
    var(--ld-holo-c5) 64%,
    transparent 80%
  );
}

/* ?? Types d?effet foil (inspir?s CodePen simeydotme) ?? */

/* Common & Uncommon ? glare soft, pas de foil lourd (cartes basic) */
.ld-holo-test__card--fx-common,
.ld-holo-test__card--text-fx-common {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-common::before,
.ld-holo-test__card--fx-common .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-common .ld-holo-test__text-foil--grad {
  background-image: linear-gradient(
    115deg,
    transparent 0%,
    hsla(210, 18%, 88%, 0.28) 40%,
    hsla(0, 0%, 100%, 0.5) 50%,
    hsla(210, 18%, 88%, 0.28) 60%,
    transparent 100%
  );
  background-size: 240% 240%;
  background-position: var(--ld-posx) var(--ld-posy);
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  opacity: calc(0.2 * var(--ld-foil-str, 1));
  filter: brightness(1.08) contrast(1.05);
  z-index: 3;
}
.ld-holo-test__card--fx-common::after,
.ld-holo-test__card--fx-common .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-common .ld-holo-test__text-foil--spark {
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx) var(--ld-my),
    hsla(0, 0%, 100%, 0.8) 8%,
    hsla(0, 0%, 100%, 0.45) 18%,
    hsla(0, 0%, 100%, 0.12) 32%,
    hsla(0, 0%, 0%, 0.35) 72%,
    hsla(0, 0%, 0%, 0.55) 100%
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: overlay;
  opacity: calc(0.42 * var(--ld-foil-str, 1));
  filter: brightness(0.92) contrast(1.2);
  z-index: 4;
}
.ld-holo-test__card--fx-common:hover::before,
.ld-holo-test__card--fx-common:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-common.is-active::before,
.ld-holo-test__card--fx-common.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-common.is-active .ld-holo-test__text-foil--grad {
  background-image: linear-gradient(
    110deg,
    transparent 22%,
    hsla(210, 18%, 92%, 0.35) 45%,
    hsla(0, 0%, 100%, 0.62) 50%,
    hsla(210, 18%, 92%, 0.35) 55%,
    transparent 78%
  );
  background-size: 200% 200%;
  opacity: calc(0.3 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.08);
  transition: none;
}
.ld-holo-test__card--fx-common:hover::after,
.ld-holo-test__card--fx-common:hover .ld-holo-test__glare,
.ld-holo-test__card--fx-common.is-active .ld-holo-test__glare {
  opacity: calc(0.42 * var(--ld-foil-str, 1) * (0.4 + var(--ld-pfc, 0) * 0.5));
  mix-blend-mode: soft-light;
}
.ld-holo-test__card--fx-common:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-common.is-active::after,
.ld-holo-test__card--fx-common.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-common.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.58 * var(--ld-foil-str, 1));
  filter: brightness(1) contrast(1.28);
}

/* Holofoil Rare ? calqu? sur simey regular-holo (shine color-dodge + bars hard-light + luminosity) */
.ld-holo-test__card--fx-holofoil,
.ld-holo-test__card--text-fx-holofoil {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
  --ld-holo-red: #f80e35;
  --ld-holo-yel: #eedf10;
  --ld-holo-gre: #21e985;
  --ld-holo-blu: #0dbde9;
  --ld-holo-vio: #c929f1;
  --ld-holo-bars: 3%;
  --ld-holo-bar-color: hsla(0, 0%, 70%, 1);
  --ld-holo-bar-bg: hsla(0, 0%, 0%, 1);
  --ld-scan-light: #666;
  --ld-scan-dark: black;
}
/* Shine principal = rainbow + scanlines ? color-dodge (carte / cadre uniquement) */
.ld-holo-test__card--fx-holofoil::before,
.ld-holo-test__card--fx-holofoil .ld-holo-test__rim-foil--grad {
  background-image:
    repeating-linear-gradient(
      110deg,
      var(--ld-holo-vio),
      var(--ld-holo-blu),
      var(--ld-holo-gre),
      var(--ld-holo-yel),
      var(--ld-holo-red),
      var(--ld-holo-vio),
      var(--ld-holo-blu),
      var(--ld-holo-gre),
      var(--ld-holo-yel),
      var(--ld-holo-red),
      var(--ld-holo-vio),
      var(--ld-holo-blu),
      var(--ld-holo-gre),
      var(--ld-holo-yel),
      var(--ld-holo-red)
    ),
    repeating-linear-gradient(
      90deg,
      var(--ld-scan-dark) 0,
      var(--ld-scan-dark) 2px,
      var(--ld-scan-light) 2px,
      var(--ld-scan-light) 4px
    );
  background-size: 400% 400%, cover;
  background-position:
    calc(((50% - var(--ld-posx)) * 2.6) + 50%) calc(((50% - var(--ld-posy)) * 3.5) + 50%),
    center center;
  background-blend-mode: overlay;
  mix-blend-mode: color-dodge;
  opacity: calc(0.85 * var(--ld-foil-str, 1));
  filter: brightness(1.05) contrast(1.12) saturate(1.15);
}
/* Texte Holofoil : rainbow lisse, sans scanlines */
.ld-holo-test__card--text-fx-holofoil .ld-holo-test__text-foil--grad {
  background-image: repeating-linear-gradient(
    110deg,
    var(--ld-holo-vio),
    var(--ld-holo-blu),
    var(--ld-holo-gre),
    var(--ld-holo-yel),
    var(--ld-holo-red),
    var(--ld-holo-vio),
    var(--ld-holo-blu),
    var(--ld-holo-gre),
    var(--ld-holo-yel),
    var(--ld-holo-red),
    var(--ld-holo-vio),
    var(--ld-holo-blu),
    var(--ld-holo-gre),
    var(--ld-holo-yel),
    var(--ld-holo-red)
  );
  background-size: 400% 400%;
  background-position: calc(((50% - var(--ld-posx)) * 2.6) + 50%) calc(((50% - var(--ld-posy)) * 3.5) + 50%);
  background-blend-mode: normal;
  mix-blend-mode: color-dodge;
  opacity: calc(0.85 * var(--ld-foil-str, 1));
  filter: brightness(1.05) contrast(1.12) saturate(1.15);
}
/* Bars hard-light + spot luminosity (carte / cadre uniquement) */
.ld-holo-test__card--fx-holofoil::after,
.ld-holo-test__card--fx-holofoil .ld-holo-test__rim-foil--spark {
  background-image:
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 90%, 0.8) 0%,
      hsla(0, 0%, 78%, 0.1) 25%,
      hsl(0, 0%, 0%) 90%
    ),
    repeating-linear-gradient(
      90deg,
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 2),
      var(--ld-holo-bar-color) calc(var(--ld-holo-bars) * 3),
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 3.5),
      var(--ld-holo-bar-color) calc(var(--ld-holo-bars) * 4),
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 5),
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 14)
    ),
    repeating-linear-gradient(
      90deg,
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 2),
      var(--ld-holo-bar-color) calc(var(--ld-holo-bars) * 3),
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 3.5),
      var(--ld-holo-bar-color) calc(var(--ld-holo-bars) * 4),
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 5),
      var(--ld-holo-bar-bg) calc(var(--ld-holo-bars) * 10)
    );
  background-size: cover, 200% 200%, 200% 200%;
  background-position:
    center center,
    calc((((50% - var(--ld-posx)) * 1.65) + 50%) + (var(--ld-posy) * 0.5)) var(--ld-posx),
    calc((((50% - var(--ld-posx)) * -0.9) + 50%) - (var(--ld-posy) * 0.75)) var(--ld-posy);
  background-blend-mode: luminosity, screen, screen;
  mix-blend-mode: hard-light;
  opacity: calc(0.75 * var(--ld-foil-str, 1));
  filter: brightness(0.85) contrast(1.35);
}
/* Texte Holofoil : reflet doux, sans barres */
.ld-holo-test__card--text-fx-holofoil .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 95%, 0.85) 0%,
      hsla(0, 0%, 78%, 0.18) 28%,
      hsl(0, 0%, 0%) 88%
    ),
    linear-gradient(
      125deg,
      #ff008450 15%,
      #fca40040 30%,
      #ffff0030 40%,
      #00ff8a20 60%,
      #00cfff40 70%,
      #cc4cfa50 85%
    );
  background-size: cover, 200% 200%;
  background-position:
    center center,
    calc(((50% - var(--ld-posx)) * 1.4) + 50%) calc(((50% - var(--ld-posy)) * 1.4) + 50%);
  background-blend-mode: soft-light, overlay;
  mix-blend-mode: hard-light;
  opacity: calc(0.7 * var(--ld-foil-str, 1));
  filter: brightness(0.95) contrast(1.2) saturate(1.1);
}
.ld-holo-test__card--fx-holofoil:hover::before,
.ld-holo-test__card--fx-holofoil:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-holofoil.is-active::before,
.ld-holo-test__card--fx-holofoil.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-holofoil.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(1 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.18) saturate(1.2);
  transition: none;
}
.ld-holo-test__card--fx-holofoil:hover::after,
.ld-holo-test__card--fx-holofoil:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-holofoil.is-active::after,
.ld-holo-test__card--fx-holofoil.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-holofoil.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.9 * var(--ld-foil-str, 1));
  filter: brightness(0.95) contrast(1.5);
}
/* Glare holofoil un peu plus marqu? (simey overlay) */
.ld-holo-test__card--fx-holofoil:hover .ld-holo-test__glare,
.ld-holo-test__card--fx-holofoil.is-active .ld-holo-test__glare {
  opacity: calc(0.7 * var(--ld-foil-str, 1) * (0.4 + var(--ld-pfc, 0) * 0.6));
  filter: brightness(0.85) contrast(1.4);
}
.ld-holo-test__card--fx-galaxy::before,
.ld-holo-test__card--fx-galaxy .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-galaxy .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    repeating-linear-gradient(
      82deg,
      rgb(218, 56, 50) 80px,
      rgb(219, 204, 86) 160px,
      rgb(121, 199, 58) 240px,
      rgb(58, 192, 183) 320px,
      rgb(71, 98, 207) 400px,
      rgb(170, 69, 209) 480px,
      rgb(218, 56, 50) 800px
    );
  background-size: cover, cover, 600% 1200%;
  background-position: center, center, 50% 50%;
  background-blend-mode: color-dodge, color-burn, screen;
  mix-blend-mode: color-dodge;
  opacity: calc(0.38 * var(--ld-foil-str, 1));
  filter: brightness(0.7) contrast(1.15) saturate(1.2);
}
.ld-holo-test__card--fx-galaxy::after,
.ld-holo-test__card--fx-galaxy .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-galaxy .ld-holo-test__text-foil--spark {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(
      farthest-corner circle at 50% 40%,
      rgba(255, 255, 255, 0.45) 5%,
      rgba(150, 200, 255, 0.2) 40%,
      transparent 70%
    );
  background-size: 140%, 200%;
  background-blend-mode: screen, soft-light;
  mix-blend-mode: color-dodge;
  opacity: calc(0.4 * var(--ld-foil-str, 1));
  filter: brightness(0.85) contrast(1.05);
}
.ld-holo-test__card--fx-galaxy:hover::before,
.ld-holo-test__card--fx-galaxy:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-galaxy.is-active::before,
.ld-holo-test__card--fx-galaxy.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-galaxy.is-active .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    repeating-linear-gradient(
      82deg,
      rgb(218, 56, 50) 80px,
      rgb(219, 204, 86) 160px,
      rgb(121, 199, 58) 240px,
      rgb(58, 192, 183) 320px,
      rgb(71, 98, 207) 400px,
      rgb(170, 69, 209) 480px,
      rgb(218, 56, 50) 800px
    );
  background-size: cover, cover, 600% 1200%;
  opacity: calc(0.52 * var(--ld-foil-str, 1));
  filter: brightness(0.78) contrast(1.2) saturate(1.25);
}
.ld-holo-test__card--fx-galaxy:hover::after,
.ld-holo-test__card--fx-galaxy:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-galaxy.is-active::after,
.ld-holo-test__card--fx-galaxy.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-galaxy.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.55 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.08);
}

/* Cosmos Holofoil ? simey rare holo galaxy (3? galaxy.png + rainbow color-dodge/burn) */
.ld-holo-test__card--fx-cosmos,
.ld-holo-test__card--text-fx-cosmos {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-cosmos::before,
.ld-holo-test__card--fx-cosmos .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-cosmos .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/galaxy.png"),
    repeating-linear-gradient(
      82deg,
      rgb(218, 56, 50) 80px,
      rgb(219, 204, 86) 160px,
      rgb(121, 199, 58) 240px,
      rgb(58, 192, 183) 320px,
      rgb(71, 98, 207) 400px,
      rgb(170, 69, 209) 480px,
      rgb(218, 56, 50) 800px
    );
  background-size: cover, cover, cover, 600% 1200%;
  background-position:
    center,
    center,
    center,
    calc(((50% - var(--ld-posx, 50%)) * 2.5) + 50%)
      calc(((50% - var(--ld-posy, 50%)) * 2.5) + 50%);
  background-blend-mode: color-dodge, color-burn, saturation, screen;
  mix-blend-mode: color-dodge;
  opacity: calc(0.72 * var(--ld-foil-str, 1));
  filter: brightness(0.75) contrast(1.2) saturate(1.5);
}
.ld-holo-test__card--fx-cosmos::after,
.ld-holo-test__card--fx-cosmos .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-cosmos .ld-holo-test__text-foil--spark {
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    rgba(255, 255, 255, 0.6) 5%,
    rgba(150, 150, 150, 0.3) 40%,
    rgb(0, 0, 0) 100%
  );
  background-size: cover;
  background-position: center;
  background-blend-mode: screen;
  mix-blend-mode: color-dodge;
  opacity: calc(0.55 * var(--ld-foil-str, 1));
  filter: brightness(0.8) contrast(1.15);
}
.ld-holo-test__card--fx-cosmos:hover::before,
.ld-holo-test__card--fx-cosmos:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-cosmos.is-active::before,
.ld-holo-test__card--fx-cosmos.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-cosmos.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.9 * var(--ld-foil-str, 1));
  filter: brightness(0.8) contrast(1.25) saturate(1.55);
}
.ld-holo-test__card--fx-cosmos:hover::after,
.ld-holo-test__card--fx-cosmos:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-cosmos.is-active::after,
.ld-holo-test__card--fx-cosmos.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-cosmos.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.7 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.2);
}
.ld-holo-test__card--fx-cosmos:hover .ld-holo-test__glare,
.ld-holo-test__card--fx-cosmos.is-active .ld-holo-test__glare {
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    rgba(222, 245, 250, 0.7) 10%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(0, 0, 0, 0.5) 90%
  );
  opacity: calc(0.75 * var(--ld-foil-str, 1) * (0.4 + var(--ld-pfc, 0) * 0.6));
  filter: brightness(0.9) contrast(1.25);
}
.ld-holo-test__card--fx-rainbow::before,
.ld-holo-test__card--fx-rainbow .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-rainbow .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/rainbow2.jpg"),
    repeating-linear-gradient(
      -20deg,
      rgba(253, 71, 65, 0.75) 7%,
      rgba(255, 243, 151, 0.75) 14%,
      rgba(168, 255, 95, 0.7) 21%,
      rgba(131, 255, 247, 0.7) 28%,
      rgba(75, 198, 255, 0.75) 35%,
      rgba(255, 73, 246, 0.7) 42%,
      rgba(255, 56, 49, 0.75) 49%
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion2.webp");
  /* Zoom motif ? (tuiles plus grosses) */
  background-size: 48% 48%, 320% 320%, 52% 52%;
  background-position: center, 0% 50%, center;
  background-repeat: repeat, repeat, repeat;
  background-blend-mode: soft-light, soft-light, normal;
  mix-blend-mode: soft-light;
  opacity: calc(0.28 * var(--ld-foil-str, 1));
  filter: brightness(0.85) contrast(1.08) saturate(0.65);
}
.ld-holo-test__card--fx-rainbow::after,
.ld-holo-test__card--fx-rainbow .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-rainbow .ld-holo-test__text-foil--spark {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    repeating-linear-gradient(
      130deg,
      rgba(89, 46, 80, 0.3) 0%,
      hsla(118, 43%, 76%, 0.45) 2.5%,
      rgba(223, 96, 202, 0.4) 5%,
      hsla(180, 57%, 56%, 0.4) 7.5%,
      rgba(14, 21, 46, 0.3) 10%,
      rgba(14, 21, 46, 0.3) 15%
    );
  background-size: 55% 55%, 620% 620%;
  background-repeat: repeat, repeat;
  background-blend-mode: overlay, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.26 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.05) saturate(0.75);
}
.ld-holo-test__card--fx-rainbow:hover::before,
.ld-holo-test__card--fx-rainbow:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-rainbow.is-active::before,
.ld-holo-test__card--fx-rainbow.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-rainbow.is-active .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/rainbow2.jpg"),
    repeating-linear-gradient(
      -20deg,
      rgba(253, 71, 65, 0.75) 7%,
      rgba(255, 243, 151, 0.75) 14%,
      rgba(168, 255, 95, 0.7) 21%,
      rgba(131, 255, 247, 0.7) 28%,
      rgba(75, 198, 255, 0.75) 35%,
      rgba(255, 73, 246, 0.7) 42%,
      rgba(255, 56, 49, 0.75) 49%
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion2.webp");
  background-size: 48% 48%, 320% 320%, 52% 52%;
  opacity: calc(0.38 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.12) saturate(0.72);
}
.ld-holo-test__card--fx-rainbow:hover::after,
.ld-holo-test__card--fx-rainbow:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-rainbow.is-active::after,
.ld-holo-test__card--fx-rainbow.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-rainbow.is-active .ld-holo-test__text-foil--spark {
  background-size: 55% 55%, 620% 620%;
  opacity: calc(0.34 * var(--ld-foil-str, 1));
  filter: brightness(0.92) contrast(1.08) saturate(0.8);
}

/* Rainbow Rare ? secret rainbow (simeydotme) */
.ld-holo-test__card--fx-rainbowrare,
.ld-holo-test__card--text-fx-rainbowrare {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
  --ld-rr-1: hsl(0, 57%, 37%);
  --ld-rr-2: hsl(40, 53%, 39%);
  --ld-rr-3: hsl(90, 60%, 35%);
  --ld-rr-4: hsl(180, 60%, 35%);
  --ld-rr-5: hsl(180, 60%, 35%);
  --ld-rr-6: hsl(210, 57%, 39%);
  --ld-rr-7: hsl(280, 55%, 31%);
}
.ld-holo-test__card--fx-rainbowrare::before,
.ld-holo-test__card--fx-rainbowrare .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-rainbowrare .ld-holo-test__text-foil--grad {
  background-image:
    linear-gradient(-45deg, var(--ld-rr-1), var(--ld-rr-5)),
    url("https://assets.codepen.io/13471/sparkles.gif"),
    linear-gradient(
      -30deg,
      var(--ld-rr-1),
      var(--ld-rr-2),
      var(--ld-rr-3),
      var(--ld-rr-4),
      var(--ld-rr-5),
      var(--ld-rr-6),
      var(--ld-rr-7),
      var(--ld-rr-1),
      var(--ld-rr-2),
      var(--ld-rr-3),
      var(--ld-rr-4),
      var(--ld-rr-5),
      var(--ld-rr-6),
      var(--ld-rr-7),
      var(--ld-rr-1)
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp");
  background-size: 200% 200%, 28% 28%, 400% 400%, 33% 33%;
  background-position:
    calc(25% + (50% - var(--ld-mx)) * 0.5) calc(25% + (50% - var(--ld-my)) * 0.5),
    center,
    var(--ld-posx) var(--ld-posy),
    center;
  background-repeat: no-repeat, repeat, no-repeat, repeat;
  background-blend-mode: luminosity, soft-light, soft-light, difference;
  mix-blend-mode: color-dodge;
  opacity: calc(0.42 * var(--ld-foil-str, 1));
  filter: brightness(0.72) contrast(1.85) saturate(0.78);
}
.ld-holo-test__card--fx-rainbowrare::after,
.ld-holo-test__card--fx-rainbowrare .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-rainbowrare .ld-holo-test__text-foil--spark {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    linear-gradient(
      -60deg,
      var(--ld-rr-1),
      var(--ld-rr-2),
      var(--ld-rr-3),
      var(--ld-rr-4),
      var(--ld-rr-5),
      var(--ld-rr-6),
      var(--ld-rr-7),
      var(--ld-rr-1),
      var(--ld-rr-2),
      var(--ld-rr-3),
      var(--ld-rr-4),
      var(--ld-rr-5),
      var(--ld-rr-6),
      var(--ld-rr-7),
      var(--ld-rr-1)
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsl(0, 0%, 80%) 0%,
      hsla(187, 10%, 85%, 0.25) 30%,
      hsl(197, 6%, 25%) 120%
    );
  background-size: 28% 28%, 400% 400%, cover;
  background-position: center, var(--ld-mx) var(--ld-my), center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-blend-mode: soft-light, soft-light, hard-light;
  mix-blend-mode: color-dodge;
  opacity: calc(0.36 * var(--ld-foil-str, 1));
  filter: brightness(0.7) contrast(1.7) saturate(0.95);
}
.ld-holo-test__card--fx-rainbowrare:hover::before,
.ld-holo-test__card--fx-rainbowrare:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-rainbowrare.is-active::before,
.ld-holo-test__card--fx-rainbowrare.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-rainbowrare.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.56 * var(--ld-foil-str, 1));
  filter: brightness(0.82) contrast(2.1) saturate(0.85);
}
.ld-holo-test__card--fx-rainbowrare:hover::after,
.ld-holo-test__card--fx-rainbowrare:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-rainbowrare.is-active::after,
.ld-holo-test__card--fx-rainbowrare.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-rainbowrare.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.5 * var(--ld-foil-str, 1));
  filter: brightness(0.78) contrast(1.9) saturate(1.05);
}
/* Radiant Holofoil ? port fid?le poke-holo.simey.me/radiant-holo.css */
.ld-holo-test__card--fx-radiant,
.ld-holo-test__card--text-fx-radiant {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
  --ld-barw: 1.2%;
  --ld-r-space: 200px;
}
.ld-holo-test__card--fx-radiant::before,
.ld-holo-test__card--fx-radiant .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-radiant .ld-holo-test__text-foil--grad {
  background-image:
    radial-gradient(
      farthest-corner ellipse at calc((var(--ld-mx) * 0.5) + 25%) calc((var(--ld-my) * 0.5) + 25%),
      hsl(0, 0%, 95%) 20%,
      var(--ld-card-glow) 130%
    ),
    repeating-linear-gradient(
      45deg,
      hsl(0, 0%, 10%) 0%,
      hsl(0, 0%, 10%) 1%,
      hsl(0, 0%, 10%) var(--ld-barw),
      hsl(0, 0%, 20%) calc(var(--ld-barw) + 0.01%),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 2),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 2 + 0.01%),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 3),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 3 + 0.01%),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 4),
      hsl(0, 0%, 50%) calc(var(--ld-barw) * 4 + 0.01%),
      hsl(0, 0%, 50%) calc(var(--ld-barw) * 5),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 5 + 0.01%),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 6),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 6 + 0.01%),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 7),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 7 + 0.01%),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 8),
      hsl(0, 0%, 10%) calc(var(--ld-barw) * 8 + 0.01%),
      hsl(0, 0%, 10%) calc(var(--ld-barw) * 9),
      hsl(0, 0%, 0%) calc(var(--ld-barw) * 9 + 0.01%),
      hsl(0, 0%, 0%) calc(var(--ld-barw) * 10)
    ),
    repeating-linear-gradient(
      -45deg,
      hsl(0, 0%, 10%) 0%,
      hsl(0, 0%, 10%) 1%,
      hsl(0, 0%, 10%) var(--ld-barw),
      hsl(0, 0%, 20%) calc(var(--ld-barw) + 0.01%),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 2),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 2 + 0.01%),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 3),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 3 + 0.01%),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 4),
      hsl(0, 0%, 50%) calc(var(--ld-barw) * 4 + 0.01%),
      hsl(0, 0%, 50%) calc(var(--ld-barw) * 5),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 5 + 0.01%),
      hsl(0, 0%, 42.5%) calc(var(--ld-barw) * 6),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 6 + 0.01%),
      hsl(0, 0%, 35%) calc(var(--ld-barw) * 7),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 7 + 0.01%),
      hsl(0, 0%, 20%) calc(var(--ld-barw) * 8),
      hsl(0, 0%, 10%) calc(var(--ld-barw) * 8 + 0.01%),
      hsl(0, 0%, 10%) calc(var(--ld-barw) * 9),
      hsl(0, 0%, 0%) calc(var(--ld-barw) * 9 + 0.01%),
      hsl(0, 0%, 0%) calc(var(--ld-barw) * 10)
    );
  background-size: cover, 210% 210%, 210% 210%;
  background-position:
    center,
    calc(((var(--ld-posx) - 50%) * 1.5) + 50%) calc(((var(--ld-posy) - 50%) * 1.5) + 50%),
    calc(((var(--ld-posx) - 50%) * 1.5) + 50%) calc(((var(--ld-posy) - 50%) * 1.5) + 50%);
  background-blend-mode: exclusion, darken, color-dodge;
  mix-blend-mode: color-dodge;
  opacity: calc(0.85 * var(--ld-foil-str, 1));
  filter: brightness(0.5) contrast(2) saturate(1.75);
}
.ld-holo-test__card--fx-radiant::after,
.ld-holo-test__card--fx-radiant .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-radiant .ld-holo-test__text-foil--spark {
  background-image:
    var(--ld-glitter),
    var(--ld-foil-tex),
    repeating-linear-gradient(
      55deg,
      hsl(3, 95%, 85%) calc(var(--ld-r-space) * 1),
      hsl(207, 100%, 84%) calc(var(--ld-r-space) * 2),
      hsl(29, 100%, 85%) calc(var(--ld-r-space) * 3),
      hsl(160, 100%, 86%) calc(var(--ld-r-space) * 4),
      hsl(309, 94%, 87%) calc(var(--ld-r-space) * 5),
      hsl(188, 95%, 85%) calc(var(--ld-r-space) * 6),
      hsl(3, 95%, 85%) calc(var(--ld-r-space) * 7)
    ),
    radial-gradient(
      farthest-corner ellipse at calc((var(--ld-mx) * 0.5) + 25%) calc((var(--ld-my) * 0.5) + 25%),
      hsla(0, 0%, 58%, 0.8) 10%,
      hsla(0, 0%, 20%, 0.9) 20%,
      hsla(0, 0%, 20%, 0.5) 50%
    );
  background-size: 15% 15%, 25% auto, 400% 100%, 350% 350%;
  background-position:
    center,
    center,
    calc(((var(--ld-posx) - 50%) * -2.5) + 50%) calc(((var(--ld-posy) - 50%) * -2.5) + 50%),
    center;
  background-repeat: repeat, repeat, repeat, no-repeat;
  background-blend-mode: color-dodge, difference, soft-light;
  mix-blend-mode: color-dodge;
  opacity: calc(0.75 * var(--ld-foil-str, 1));
  filter: brightness(0.6) contrast(2.6) saturate(1.75);
}
.ld-holo-test__card--fx-radiant:hover::before,
.ld-holo-test__card--fx-radiant:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-radiant.is-active::before,
.ld-holo-test__card--fx-radiant.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-radiant.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(1 * var(--ld-foil-str, 1));
  transition: none;
}
.ld-holo-test__card--fx-radiant:hover::after,
.ld-holo-test__card--fx-radiant:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-radiant.is-active::after,
.ld-holo-test__card--fx-radiant.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-radiant.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.9 * var(--ld-foil-str, 1));
}

/* VStar ? texture ancient + piliers pastel */
.ld-holo-test__card--fx-vstar,
.ld-holo-test__card--text-fx-vstar {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-vstar::before,
.ld-holo-test__card--fx-vstar .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-vstar .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/ancient.webp"),
    repeating-linear-gradient(
      0deg,
      rgba(255, 119, 115, 0.4) 5%,
      rgba(255, 237, 95, 0.35) 10%,
      rgba(168, 255, 95, 0.35) 15%,
      rgba(131, 255, 247, 0.35) 20%,
      rgba(120, 148, 255, 0.35) 25%,
      rgba(216, 117, 255, 0.4) 30%,
      rgba(255, 119, 115, 0.4) 35%
    ),
    repeating-linear-gradient(
      133deg,
      #0e152e 0%,
      hsl(180, 10%, 55%) 3.8%,
      hsl(180, 20%, 60%) 4.5%,
      hsl(180, 10%, 55%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      rgba(0, 0, 0, 0.08) 12%,
      rgba(0, 0, 0, 0.12) 20%,
      rgba(0, 0, 0, 0.2) 120%
    );
  /* Zoom motif ? */
  background-size: 68% 68%, 140% 420%, 200% 100%, 200% 100%;
  background-position:
    center,
    0% var(--ld-posy),
    var(--ld-posx) var(--ld-posy),
    var(--ld-posx) var(--ld-posy);
  background-repeat: repeat, repeat, repeat, no-repeat;
  background-blend-mode: soft-light, soft-light, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.18 * var(--ld-foil-str, 1));
  filter: brightness(0.92) contrast(1.06) saturate(0.55);
}
.ld-holo-test__card--fx-vstar::after,
.ld-holo-test__card--fx-vstar .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-vstar .ld-holo-test__text-foil--spark {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/ancient.webp"),
    repeating-linear-gradient(
      0deg,
      rgba(255, 119, 115, 0.28) 5%,
      rgba(255, 237, 95, 0.24) 10%,
      rgba(168, 255, 95, 0.24) 15%,
      rgba(131, 255, 247, 0.24) 20%,
      rgba(120, 148, 255, 0.24) 25%,
      rgba(216, 117, 255, 0.28) 30%,
      rgba(255, 119, 115, 0.28) 35%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(190, 7%, 80%, 0.28) 0%,
      hsla(260, 7%, 50%, 0.1) 45%,
      transparent 70%
    );
  background-size: 62% 62%, 140% 280%, cover;
  background-position:
    center,
    0% var(--ld-posy),
    center;
  background-repeat: repeat, repeat, no-repeat;
  background-blend-mode: soft-light, soft-light, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.14 * var(--ld-foil-str, 1));
  filter: brightness(0.96) contrast(1.04) saturate(0.6);
}
.ld-holo-test__card--fx-vstar:hover::before,
.ld-holo-test__card--fx-vstar:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-vstar.is-active::before,
.ld-holo-test__card--fx-vstar.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-vstar.is-active .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/ancient.webp"),
    repeating-linear-gradient(
      0deg,
      rgba(255, 119, 115, 0.4) 5%,
      rgba(255, 237, 95, 0.35) 10%,
      rgba(168, 255, 95, 0.35) 15%,
      rgba(131, 255, 247, 0.35) 20%,
      rgba(120, 148, 255, 0.35) 25%,
      rgba(216, 117, 255, 0.4) 30%,
      rgba(255, 119, 115, 0.4) 35%
    ),
    repeating-linear-gradient(
      133deg,
      #0e152e 0%,
      hsl(180, 10%, 55%) 3.8%,
      hsl(180, 20%, 60%) 4.5%,
      hsl(180, 10%, 55%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      rgba(0, 0, 0, 0.08) 12%,
      rgba(0, 0, 0, 0.12) 20%,
      rgba(0, 0, 0, 0.2) 120%
    );
  background-size: 68% 68%, 140% 420%, 200% 100%, 200% 100%;
  opacity: calc(0.26 * var(--ld-foil-str, 1));
  filter: brightness(0.96) contrast(1.1) saturate(0.65);
  transition: none;
}
.ld-holo-test__card--fx-vstar:hover::after,
.ld-holo-test__card--fx-vstar:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-vstar.is-active::after,
.ld-holo-test__card--fx-vstar.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-vstar.is-active .ld-holo-test__text-foil--spark {
  background-size: 62% 62%, 140% 280%, cover;
  opacity: calc(0.2 * var(--ld-foil-str, 1));
  filter: brightness(1) contrast(1.06) saturate(0.7);
}

/* Secret Rare ? or / glitter */
.ld-holo-test__card--fx-secret,
.ld-holo-test__card--text-fx-secret {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-secret::before,
.ld-holo-test__card--fx-secret .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-secret .ld-holo-test__text-foil--grad {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    url("https://assets.codepen.io/13471/sparkles.gif"),
    conic-gradient(
      from 0deg at 50% 50%,
      hsl(46, 95%, 55%),
      hsl(52, 100%, 70%),
      hsl(38, 90%, 48%),
      hsl(46, 95%, 55%)
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/metal.webp"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(150, 0%, 0%, 0.9) 10%,
      hsla(0, 0%, 95%, 0.15) 90%
    );
  background-size: 40% 40%, 40% 40%, cover, cover, cover;
  background-position: 45% 45%, 55% 55%, center, center, center;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-blend-mode: soft-light, hard-light, overlay, multiply;
  mix-blend-mode: color-dodge;
  opacity: calc(0.45 * var(--ld-foil-str, 1));
  filter: brightness(0.72) contrast(1.25) saturate(1.4);
}
.ld-holo-test__card--fx-secret::after,
.ld-holo-test__card--fx-secret .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-secret .ld-holo-test__text-foil--spark {
  background-image:
    linear-gradient(45deg, hsl(46, 95%, 50%), hsl(52, 100%, 69%)),
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(45, 20%, 90%, 0.7) 10%,
      hsl(0, 0%, 0%) 70%
    );
  background-size: cover, 35% 35%, cover;
  background-position:
    center,
    calc(50% + (50% - var(--ld-posx)) * 0.15) calc(50% + (50% - var(--ld-posy)) * 0.15),
    center;
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: hard-light, overlay, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.4 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.2) saturate(0.85);
}
.ld-holo-test__card--fx-secret:hover::before,
.ld-holo-test__card--fx-secret:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-secret.is-active::before,
.ld-holo-test__card--fx-secret.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-secret.is-active .ld-holo-test__text-foil--grad {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    url("https://assets.codepen.io/13471/sparkles.gif"),
    conic-gradient(
      from 0deg at 50% 50%,
      hsl(46, 95%, 55%),
      hsl(52, 100%, 70%),
      hsl(38, 90%, 48%),
      hsl(46, 95%, 55%)
    ),
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/metal.webp"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(150, 0%, 0%, 0.9) 10%,
      hsla(0, 0%, 95%, 0.15) 90%
    );
  background-size: 40% 40%, 40% 40%, cover, cover, cover;
  opacity: calc(0.58 * var(--ld-foil-str, 1));
  filter: brightness(0.82) contrast(1.35) saturate(1.55);
  transition: none;
}
.ld-holo-test__card--fx-secret:hover::after,
.ld-holo-test__card--fx-secret:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-secret.is-active::after,
.ld-holo-test__card--fx-secret.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-secret.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.52 * var(--ld-foil-str, 1));
  filter: brightness(1) contrast(1.3) saturate(0.9);
}

/* Shiny Vault ? foil argent? illusion */
.ld-holo-test__card--fx-shiny,
.ld-holo-test__card--text-fx-shiny {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-shiny::before,
.ld-holo-test__card--fx-shiny .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-shiny .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp"),
    repeating-linear-gradient(
      0deg,
      rgb(255, 119, 115) 5%,
      rgba(255, 237, 95, 1) 10%,
      rgba(168, 255, 95, 1) 15%,
      rgba(131, 255, 247, 1) 20%,
      rgba(120, 148, 255, 1) 25%,
      rgb(216, 117, 255) 30%,
      rgb(255, 119, 115) 35%
    ),
    repeating-linear-gradient(
      133deg,
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.22) 0%,
      hsla(0, 0%, 0%, 0.25) 42%,
      hsla(0, 0%, 0%, 0.5) 120%
    );
  /* Texture plus fine (moins zoom?e) */
  background-size: 48% 48%, 200% 700%, 300% 100%, cover;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    0% 0%,
    0% var(--ld-posy),
    var(--ld-posx) var(--ld-posy),
    center;
  background-blend-mode: soft-light, soft-light, soft-light, multiply;
  mix-blend-mode: soft-light;
  opacity: calc(0.3 * var(--ld-foil-str, 1));
  filter: brightness(0.84) contrast(1.12) saturate(0.85);
}
.ld-holo-test__card--fx-shiny::after,
.ld-holo-test__card--fx-shiny .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-shiny .ld-holo-test__text-foil--spark {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp"),
    repeating-linear-gradient(
      0deg,
      rgb(255, 119, 115) 5%,
      rgba(255, 237, 95, 1) 10%,
      rgba(168, 255, 95, 1) 15%,
      rgba(131, 255, 247, 1) 20%,
      rgba(120, 148, 255, 1) 25%,
      rgb(216, 117, 255) 30%,
      rgb(255, 119, 115) 35%
    ),
    repeating-linear-gradient(
      133deg,
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.55) 0%,
      hsla(0, 0%, 0%, 0) 42%
    );
  background-size: 42% 42%, 200% 400%, 195% 100%, cover;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    8% 12%,
    0% var(--ld-posy),
    var(--ld-posx) var(--ld-posy),
    center;
  background-blend-mode: soft-light, soft-light, soft-light, overlay;
  mix-blend-mode: soft-light;
  opacity: calc(0.24 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.1) saturate(0.8);
}
.ld-holo-test__card--fx-shiny:hover::before,
.ld-holo-test__card--fx-shiny:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-shiny.is-active::before,
.ld-holo-test__card--fx-shiny.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-shiny.is-active .ld-holo-test__text-foil--grad {
  background-size: 48% 48%, 200% 700%, 300% 100%, cover;
  opacity: calc(0.4 * var(--ld-foil-str, 1));
  filter: brightness(0.9) contrast(1.18) saturate(0.95);
  transition: none;
}
.ld-holo-test__card--fx-shiny:hover::after,
.ld-holo-test__card--fx-shiny:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-shiny.is-active::after,
.ld-holo-test__card--fx-shiny.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-shiny.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.32 * var(--ld-foil-str, 1));
  filter: brightness(0.94) contrast(1.15) saturate(0.9);
}

/* Neon Drive ? cyan / magenta LD, scanlines ?lectriques */
.ld-holo-test__card--fx-neondrive,
.ld-holo-test__card--text-fx-neondrive {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-neondrive::before,
.ld-holo-test__card--fx-neondrive .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-neondrive .ld-holo-test__text-foil--grad {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 2px,
      rgba(0, 212, 255, 0.14) 2px 3px
    ),
    repeating-linear-gradient(
      118deg,
      #00d4ff 0%,
      #7af0ff 10%,
      #ff2d95 22%,
      #ff6ec7 34%,
      #00d4ff 48%,
      #a855f7 62%,
      #00d4ff 78%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(190, 100%, 80%, 0.55) 0%,
      hsla(320, 100%, 60%, 0.18) 42%,
      hsla(0, 0%, 0%, 0.55) 120%
    );
  background-size: 100% 100%, 220% 700%, cover;
  background-position:
    center,
    0% var(--ld-posy),
    var(--ld-mx) var(--ld-my);
  background-blend-mode: overlay, soft-light, multiply;
  mix-blend-mode: screen;
  opacity: calc(0.42 * var(--ld-foil-str, 1));
  filter: brightness(1.05) contrast(1.25) saturate(1.35);
}
.ld-holo-test__card--fx-neondrive::after,
.ld-holo-test__card--fx-neondrive .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-neondrive .ld-holo-test__text-foil--spark {
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent 0 10%,
      rgba(0, 212, 255, 0.55) 12%,
      transparent 14% 28%,
      rgba(255, 45, 149, 0.5) 30%,
      transparent 32% 48%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.7) 0%,
      transparent 45%
    );
  background-size: 180% 180%, cover;
  background-position: var(--ld-posx) var(--ld-posy), center;
  mix-blend-mode: soft-light;
  opacity: calc(0.35 * var(--ld-foil-str, 1));
  filter: brightness(1.1) contrast(1.15) saturate(1.2);
}
.ld-holo-test__card--fx-neondrive:hover::before,
.ld-holo-test__card--fx-neondrive:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-neondrive.is-active::before,
.ld-holo-test__card--fx-neondrive.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-neondrive.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.55 * var(--ld-foil-str, 1));
  filter: brightness(1.15) contrast(1.3) saturate(1.45);
}
.ld-holo-test__card--fx-neondrive:hover::after,
.ld-holo-test__card--fx-neondrive:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-neondrive.is-active::after,
.ld-holo-test__card--fx-neondrive.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-neondrive.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.48 * var(--ld-foil-str, 1));
}

/* Aurora ? voiles verts / violets type aurore */
.ld-holo-test__card--fx-aurora,
.ld-holo-test__card--text-fx-aurora {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-aurora::before,
.ld-holo-test__card--fx-aurora .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-aurora .ld-holo-test__text-foil--grad {
  background-image:
    linear-gradient(
      105deg,
      transparent 0%,
      hsla(160, 90%, 55%, 0.35) 18%,
      hsla(190, 85%, 60%, 0.45) 32%,
      hsla(280, 80%, 65%, 0.4) 48%,
      hsla(320, 75%, 62%, 0.3) 62%,
      transparent 82%
    ),
    linear-gradient(
      195deg,
      transparent 10%,
      hsla(170, 70%, 50%, 0.25) 35%,
      hsla(250, 70%, 60%, 0.3) 55%,
      transparent 85%
    ),
    radial-gradient(
      farthest-corner ellipse at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.4) 0%,
      hsla(180, 60%, 50%, 0.12) 40%,
      hsla(0, 0%, 0%, 0.45) 120%
    );
  background-size: 280% 160%, 220% 200%, cover;
  background-position:
    var(--ld-posx) var(--ld-posy),
    calc(100% - var(--ld-posx)) calc(100% - var(--ld-posy)),
    center;
  background-blend-mode: screen, soft-light, multiply;
  mix-blend-mode: soft-light;
  opacity: calc(0.48 * var(--ld-foil-str, 1));
  filter: brightness(1.08) contrast(1.12) saturate(1.25);
}
.ld-holo-test__card--fx-aurora::after,
.ld-holo-test__card--fx-aurora .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-aurora .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      120% 60% at var(--ld-mx) var(--ld-my),
      hsla(160, 100%, 75%, 0.55) 0%,
      transparent 55%
    ),
    repeating-linear-gradient(
      100deg,
      transparent 0 8%,
      hsla(280, 90%, 70%, 0.25) 10%,
      transparent 12% 22%
    );
  background-size: cover, 200% 200%;
  background-position: center, var(--ld-posx) var(--ld-posy);
  mix-blend-mode: screen;
  opacity: calc(0.28 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.05) saturate(1.15);
}
.ld-holo-test__card--fx-aurora:hover::before,
.ld-holo-test__card--fx-aurora:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-aurora.is-active::before,
.ld-holo-test__card--fx-aurora.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-aurora.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.62 * var(--ld-foil-str, 1));
  filter: brightness(1.15) contrast(1.18) saturate(1.35);
}
.ld-holo-test__card--fx-aurora:hover::after,
.ld-holo-test__card--fx-aurora:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-aurora.is-active::after,
.ld-holo-test__card--fx-aurora.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-aurora.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.4 * var(--ld-foil-str, 1));
}

/* Ember ? braise or / orange / cramoisi */
.ld-holo-test__card--fx-ember,
.ld-holo-test__card--text-fx-ember {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-ember::before,
.ld-holo-test__card--fx-ember .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-ember .ld-holo-test__text-foil--grad {
  background-image:
    repeating-linear-gradient(
      125deg,
      #ffb347 0%,
      #ff6b35 12%,
      #ffd166 22%,
      #c1121f 34%,
      #f0800e 48%,
      #ffe29a 58%,
      #ff6b35 72%
    ),
    repeating-linear-gradient(
      -40deg,
      #1a0a05 0%,
      hsl(30, 40%, 45%) 3.5%,
      hsl(40, 70%, 62%) 4.5%,
      hsl(30, 40%, 45%) 5.5%,
      #1a0a05 11%,
      #1a0a05 14%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(40, 100%, 80%, 0.55) 0%,
      hsla(15, 90%, 40%, 0.2) 40%,
      hsla(0, 0%, 0%, 0.55) 120%
    );
  background-size: 200% 700%, 280% 100%, cover;
  background-position:
    0% var(--ld-posy),
    var(--ld-posx) var(--ld-posy),
    center;
  background-blend-mode: soft-light, soft-light, multiply;
  mix-blend-mode: soft-light;
  opacity: calc(0.44 * var(--ld-foil-str, 1));
  filter: brightness(1.02) contrast(1.22) saturate(1.3);
}
.ld-holo-test__card--fx-ember::after,
.ld-holo-test__card--fx-ember .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-ember .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(45, 100%, 90%, 0.75) 0%,
      hsla(25, 100%, 55%, 0.25) 35%,
      transparent 60%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 6%,
      rgba(255, 200, 100, 0.35) 7%,
      transparent 8% 18%
    );
  background-size: cover, 160% 160%;
  background-position: center, var(--ld-posx) var(--ld-posy);
  mix-blend-mode: color-dodge;
  opacity: calc(0.3 * var(--ld-foil-str, 1));
  filter: brightness(1.08) contrast(1.15) saturate(1.2);
}
.ld-holo-test__card--fx-ember:hover::before,
.ld-holo-test__card--fx-ember:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-ember.is-active::before,
.ld-holo-test__card--fx-ember.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-ember.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.58 * var(--ld-foil-str, 1));
  filter: brightness(1.1) contrast(1.28) saturate(1.4);
}
.ld-holo-test__card--fx-ember:hover::after,
.ld-holo-test__card--fx-ember:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-ember.is-active::after,
.ld-holo-test__card--fx-ember.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-ember.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.42 * var(--ld-foil-str, 1));
}

/* Ion ? arcs ?lectriques bleus */
.ld-holo-test__card--fx-ion,
.ld-holo-test__card--text-fx-ion {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-ion::before,
.ld-holo-test__card--fx-ion .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-ion .ld-holo-test__text-foil--grad {
  background-image:
    repeating-conic-gradient(
      from 0deg at var(--ld-mx) var(--ld-my),
      hsla(200, 100%, 70%, 0.55) 0deg 4deg,
      transparent 4deg 18deg,
      hsla(185, 100%, 65%, 0.4) 18deg 22deg,
      transparent 22deg 40deg
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(190, 100%, 85%, 0.65) 0%,
      hsla(210, 100%, 50%, 0.2) 35%,
      hsla(0, 0%, 0%, 0.55) 120%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 3%,
      rgba(120, 220, 255, 0.35) 3.5%,
      transparent 4% 9%
    );
  background-size: 140% 140%, cover, 180% 180%;
  background-position: center, center, var(--ld-posx) var(--ld-posy);
  background-blend-mode: screen, multiply, overlay;
  mix-blend-mode: screen;
  opacity: calc(0.4 * var(--ld-foil-str, 1));
  filter: brightness(1.1) contrast(1.3) saturate(1.4);
}
.ld-holo-test__card--fx-ion::after,
.ld-holo-test__card--fx-ion .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-ion .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.85) 0%,
      hsla(190, 100%, 70%, 0.35) 18%,
      transparent 42%
    ),
    repeating-linear-gradient(
      -35deg,
      transparent 0 12%,
      rgba(80, 200, 255, 0.55) 13%,
      transparent 14% 30%
    );
  background-size: cover, 200% 200%;
  background-position: center, var(--ld-posx) var(--ld-posy);
  mix-blend-mode: soft-light;
  opacity: calc(0.32 * var(--ld-foil-str, 1));
  filter: brightness(1.15) contrast(1.2) saturate(1.25);
}
.ld-holo-test__card--fx-ion:hover::before,
.ld-holo-test__card--fx-ion:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-ion.is-active::before,
.ld-holo-test__card--fx-ion.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-ion.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.55 * var(--ld-foil-str, 1));
  filter: brightness(1.2) contrast(1.35) saturate(1.5);
}
.ld-holo-test__card--fx-ion:hover::after,
.ld-holo-test__card--fx-ion:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-ion.is-active::after,
.ld-holo-test__card--fx-ion.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-ion.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.45 * var(--ld-foil-str, 1));
}

/* Crystal ? glace / facettes prismatiques */
.ld-holo-test__card--fx-crystal,
.ld-holo-test__card--text-fx-crystal {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-crystal::before,
.ld-holo-test__card--fx-crystal .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-crystal .ld-holo-test__text-foil--grad {
  background-image:
    linear-gradient(
      125deg,
      hsla(200, 80%, 95%, 0.5) 0%,
      hsla(190, 70%, 70%, 0.35) 18%,
      hsla(220, 60%, 85%, 0.45) 36%,
      hsla(280, 50%, 80%, 0.3) 54%,
      hsla(190, 80%, 90%, 0.5) 72%,
      transparent 100%
    ),
    repeating-linear-gradient(
      55deg,
      hsla(0, 0%, 100%, 0.35) 0 2%,
      transparent 2% 8%,
      hsla(200, 80%, 80%, 0.25) 8% 10%,
      transparent 10% 18%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.7) 0%,
      hsla(200, 60%, 80%, 0.2) 40%,
      hsla(220, 40%, 10%, 0.5) 120%
    );
  background-size: 240% 180%, 160% 160%, cover;
  background-position:
    var(--ld-posx) var(--ld-posy),
    calc(100% - var(--ld-posx)) var(--ld-posy),
    center;
  background-blend-mode: screen, overlay, multiply;
  mix-blend-mode: soft-light;
  opacity: calc(0.46 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.18) saturate(0.95);
}
.ld-holo-test__card--fx-crystal::after,
.ld-holo-test__card--fx-crystal .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-crystal .ld-holo-test__text-foil--spark {
  background-image:
    conic-gradient(
      from 200deg at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.7),
      hsla(190, 80%, 75%, 0.35),
      hsla(260, 60%, 80%, 0.4),
      hsla(0, 0%, 100%, 0.7)
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.8) 0%,
      transparent 48%
    );
  background-size: 100% 100%, cover;
  background-position: center, center;
  mix-blend-mode: soft-light;
  opacity: calc(0.3 * var(--ld-foil-str, 1));
  filter: brightness(1.18) contrast(1.1) saturate(1.05);
}
.ld-holo-test__card--fx-crystal:hover::before,
.ld-holo-test__card--fx-crystal:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-crystal.is-active::before,
.ld-holo-test__card--fx-crystal.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-crystal.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.6 * var(--ld-foil-str, 1));
  filter: brightness(1.2) contrast(1.22) saturate(1.05);
}
.ld-holo-test__card--fx-crystal:hover::after,
.ld-holo-test__card--fx-crystal:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-crystal.is-active::after,
.ld-holo-test__card--fx-crystal.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-crystal.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.42 * var(--ld-foil-str, 1));
}

/* Phantom ? voile spectral argent / lavande */
.ld-holo-test__card--fx-phantom,
.ld-holo-test__card--text-fx-phantom {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-phantom::before,
.ld-holo-test__card--fx-phantom .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-phantom .ld-holo-test__text-foil--grad {
  background-image:
    radial-gradient(
      90% 70% at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.45) 0%,
      hsla(270, 40%, 75%, 0.28) 28%,
      hsla(220, 30%, 40%, 0.15) 55%,
      transparent 78%
    ),
    repeating-linear-gradient(
      160deg,
      hsla(0, 0%, 100%, 0.2) 0 3%,
      transparent 3% 11%,
      hsla(280, 50%, 75%, 0.22) 11% 13%,
      transparent 13% 22%
    ),
    linear-gradient(
      200deg,
      hsla(260, 35%, 70%, 0.35),
      hsla(200, 25%, 80%, 0.25),
      hsla(300, 30%, 65%, 0.3)
    );
  background-size: cover, 200% 200%, 180% 180%;
  background-position:
    center,
    var(--ld-posx) var(--ld-posy),
    calc(100% - var(--ld-posx)) calc(100% - var(--ld-posy));
  background-blend-mode: screen, soft-light, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.44 * var(--ld-foil-str, 1));
  filter: brightness(1.05) contrast(1.1) saturate(0.85);
}
.ld-holo-test__card--fx-phantom::after,
.ld-holo-test__card--fx-phantom .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-phantom .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.65) 0%,
      hsla(270, 60%, 80%, 0.2) 35%,
      transparent 58%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 14%,
      hsla(0, 0%, 100%, 0.3) 15%,
      transparent 16% 32%
    );
  background-size: cover, 170% 170%;
  background-position: center, var(--ld-posx) var(--ld-posy);
  mix-blend-mode: screen;
  opacity: calc(0.26 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.05) saturate(0.9);
}
.ld-holo-test__card--fx-phantom:hover::before,
.ld-holo-test__card--fx-phantom:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-phantom.is-active::before,
.ld-holo-test__card--fx-phantom.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-phantom.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.58 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.15) saturate(0.95);
}
.ld-holo-test__card--fx-phantom:hover::after,
.ld-holo-test__card--fx-phantom:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-phantom.is-active::after,
.ld-holo-test__card--fx-phantom.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-phantom.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.38 * var(--ld-foil-str, 1));
}

/* Stardust ? ciel ?toil? + scintillement */
.ld-holo-test__card--fx-stardust,
.ld-holo-test__card--text-fx-stardust {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-stardust::before,
.ld-holo-test__card--fx-stardust .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-stardust .ld-holo-test__text-foil--grad {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 40%, transparent 50%),
    radial-gradient(1px 1px at 28% 62%, #fff 40%, transparent 50%),
    radial-gradient(1.8px 1.8px at 44% 30%, #cfe9ff 40%, transparent 50%),
    radial-gradient(1px 1px at 58% 78%, #fff 40%, transparent 50%),
    radial-gradient(1.4px 1.4px at 72% 22%, #ffd6ff 40%, transparent 50%),
    radial-gradient(1px 1px at 86% 54%, #fff 40%, transparent 50%),
    radial-gradient(1.6px 1.6px at 18% 84%, #b8f0ff 40%, transparent 50%),
    radial-gradient(1px 1px at 66% 48%, #fff 40%, transparent 50%),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(220, 80%, 80%, 0.35) 0%,
      hsla(260, 50%, 20%, 0.35) 50%,
      hsla(0, 0%, 0%, 0.55) 120%
    );
  background-size:
    36% 36%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    180% 180%,
    cover;
  background-position:
    40% 42%,
    var(--ld-posx) var(--ld-posy),
    calc(100% - var(--ld-posx)) var(--ld-posy),
    var(--ld-posx) calc(100% - var(--ld-posy)),
    calc(100% - var(--ld-posx)) calc(100% - var(--ld-posy)),
    var(--ld-mx) var(--ld-my),
    30% 70%,
    70% 25%,
    55% 55%,
    center;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
  background-blend-mode: screen, screen, screen, screen, screen, screen, screen, screen, screen, multiply;
  mix-blend-mode: screen;
  opacity: calc(0.48 * var(--ld-foil-str, 1));
  filter: brightness(1.15) contrast(1.2) saturate(1.15);
}
.ld-holo-test__card--fx-stardust::after,
.ld-holo-test__card--fx-stardust .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-stardust .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(circle at var(--ld-mx) var(--ld-my), hsla(0, 0%, 100%, 0.75) 0%, transparent 28%),
    repeating-linear-gradient(
      115deg,
      transparent 0 10%,
      hsla(200, 100%, 85%, 0.35) 11%,
      transparent 12% 24%
    );
  background-size: cover, 200% 200%;
  background-position: center, var(--ld-posx) var(--ld-posy);
  mix-blend-mode: soft-light;
  opacity: calc(0.3 * var(--ld-foil-str, 1));
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
}
.ld-holo-test__card--fx-stardust:hover::before,
.ld-holo-test__card--fx-stardust:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-stardust.is-active::before,
.ld-holo-test__card--fx-stardust.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-stardust.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.62 * var(--ld-foil-str, 1));
  filter: brightness(1.25) contrast(1.25) saturate(1.25);
}
.ld-holo-test__card--fx-stardust:hover::after,
.ld-holo-test__card--fx-stardust:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-stardust.is-active::after,
.ld-holo-test__card--fx-stardust.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-stardust.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.42 * var(--ld-foil-str, 1));
}

/* Constellation ? ?toiles + traits de liaison */
.ld-holo-test__card--fx-constellation,
.ld-holo-test__card--text-fx-constellation {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-constellation::before,
.ld-holo-test__card--fx-constellation .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-constellation .ld-holo-test__text-foil--grad {
  background-image:
    linear-gradient(
      32deg,
      transparent 0 42%,
      hsla(200, 100%, 85%, 0.45) 42.5%,
      transparent 43% 100%
    ),
    linear-gradient(
      -18deg,
      transparent 0 55%,
      hsla(280, 80%, 80%, 0.4) 55.5%,
      transparent 56% 100%
    ),
    linear-gradient(
      78deg,
      transparent 0 30%,
      hsla(190, 90%, 80%, 0.35) 30.5%,
      transparent 31% 100%
    ),
    radial-gradient(2px 2px at 22% 28%, #fff 45%, transparent 55%),
    radial-gradient(2.2px 2.2px at 48% 18%, #cfe9ff 45%, transparent 55%),
    radial-gradient(1.8px 1.8px at 68% 36%, #fff 45%, transparent 55%),
    radial-gradient(2px 2px at 38% 58%, #ffd6ff 45%, transparent 55%),
    radial-gradient(1.6px 1.6px at 74% 68%, #fff 45%, transparent 55%),
    radial-gradient(2px 2px at 30% 78%, #b8f0ff 45%, transparent 55%),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(210, 70%, 70%, 0.3) 0%,
      hsla(240, 40%, 15%, 0.45) 55%,
      hsla(0, 0%, 0%, 0.55) 120%
    );
  background-size:
    160% 160%,
    160% 160%,
    160% 160%,
    170% 170%,
    170% 170%,
    170% 170%,
    170% 170%,
    170% 170%,
    170% 170%,
    cover;
  background-position:
    var(--ld-posx) var(--ld-posy),
    calc(100% - var(--ld-posx)) var(--ld-posy),
    var(--ld-posx) calc(100% - var(--ld-posy)),
    var(--ld-posx) var(--ld-posy),
    calc(100% - var(--ld-posx)) var(--ld-posy),
    var(--ld-mx) var(--ld-my),
    40% 60%,
    65% 40%,
    25% 75%,
    center;
  background-repeat: no-repeat;
  background-blend-mode: screen, screen, screen, screen, screen, screen, screen, screen, screen, multiply;
  mix-blend-mode: screen;
  opacity: calc(0.46 * var(--ld-foil-str, 1));
  filter: brightness(1.12) contrast(1.22) saturate(1.1);
}
.ld-holo-test__card--fx-constellation::after,
.ld-holo-test__card--fx-constellation .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-constellation .ld-holo-test__text-foil--spark {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    radial-gradient(circle at var(--ld-mx) var(--ld-my), hsla(0, 0%, 100%, 0.7) 0%, transparent 32%);
  background-size: 42% 42%, cover;
  background-position: 45% 45%, center;
  background-repeat: repeat, no-repeat;
  mix-blend-mode: soft-light;
  opacity: calc(0.28 * var(--ld-foil-str, 1));
  filter: brightness(1.18) contrast(1.1) saturate(1.05);
}
.ld-holo-test__card--fx-constellation:hover::before,
.ld-holo-test__card--fx-constellation:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-constellation.is-active::before,
.ld-holo-test__card--fx-constellation.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-constellation.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.6 * var(--ld-foil-str, 1));
  filter: brightness(1.22) contrast(1.28) saturate(1.2);
}
.ld-holo-test__card--fx-constellation:hover::after,
.ld-holo-test__card--fx-constellation:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-constellation.is-active::after,
.ld-holo-test__card--fx-constellation.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-constellation.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.4 * var(--ld-foil-str, 1));
}

/* Nova ? explosion stellaire / croix de diffraction */
.ld-holo-test__card--fx-nova,
.ld-holo-test__card--text-fx-nova {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-nova::before,
.ld-holo-test__card--fx-nova .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-nova .ld-holo-test__text-foil--grad {
  background-image:
    conic-gradient(
      from 0deg at var(--ld-mx) var(--ld-my),
      hsla(45, 100%, 80%, 0.85) 0deg,
      transparent 8deg,
      hsla(200, 100%, 80%, 0.55) 45deg,
      transparent 55deg,
      hsla(320, 90%, 75%, 0.55) 90deg,
      transparent 100deg,
      hsla(45, 100%, 80%, 0.7) 135deg,
      transparent 145deg,
      hsla(190, 100%, 80%, 0.5) 180deg,
      transparent 190deg,
      hsla(280, 90%, 75%, 0.55) 225deg,
      transparent 235deg,
      hsla(45, 100%, 85%, 0.75) 270deg,
      transparent 280deg,
      hsla(200, 100%, 80%, 0.5) 315deg,
      transparent 325deg,
      hsla(45, 100%, 80%, 0.85) 360deg
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.85) 0%,
      hsla(45, 100%, 70%, 0.35) 18%,
      hsla(280, 80%, 60%, 0.18) 42%,
      hsla(0, 0%, 0%, 0.55) 120%
    );
  background-size: 130% 130%, cover;
  background-position: center, center;
  background-blend-mode: screen, multiply;
  mix-blend-mode: screen;
  opacity: calc(0.42 * var(--ld-foil-str, 1));
  filter: brightness(1.15) contrast(1.25) saturate(1.3);
}
.ld-holo-test__card--fx-nova::after,
.ld-holo-test__card--fx-nova .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-nova .ld-holo-test__text-foil--spark {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    linear-gradient(
      90deg,
      transparent 0 46%,
      hsla(0, 0%, 100%, 0.55) 49.5%,
      hsla(0, 0%, 100%, 0.55) 50.5%,
      transparent 54% 100%
    ),
    linear-gradient(
      0deg,
      transparent 0 46%,
      hsla(0, 0%, 100%, 0.45) 49.5%,
      hsla(0, 0%, 100%, 0.45) 50.5%,
      transparent 54% 100%
    );
  background-size: 40% 40%, 160% 160%, 160% 160%;
  background-position:
    42% 42%,
    var(--ld-mx) var(--ld-my),
    var(--ld-mx) var(--ld-my);
  background-repeat: repeat, no-repeat, no-repeat;
  background-blend-mode: screen, soft-light, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.34 * var(--ld-foil-str, 1));
  filter: brightness(1.2) contrast(1.15) saturate(1.15);
}
.ld-holo-test__card--fx-nova:hover::before,
.ld-holo-test__card--fx-nova:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-nova.is-active::before,
.ld-holo-test__card--fx-nova.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-nova.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.58 * var(--ld-foil-str, 1));
  filter: brightness(1.25) contrast(1.32) saturate(1.4);
}
.ld-holo-test__card--fx-nova:hover::after,
.ld-holo-test__card--fx-nova:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-nova.is-active::after,
.ld-holo-test__card--fx-nova.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-nova.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.46 * var(--ld-foil-str, 1));
}

/* Pok?mon V ? port poke-holo v-regular + foil plein cadre (pas de d?coupe au tilt) */
.ld-holo-test__card--fx-pokev,
.ld-holo-test__card--text-fx-pokev {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
  --ld-v-space: 5%;
  --ld-v-angle: 133deg;
}
/*
 * Le foil cadre (rim-foil) cr?ait une 2e d?coupe qui bougeait ? part.
 * Sur V : foil continu sur toute la face ; cadre en soft-light par-dessus.
 */
.ld-holo-test__card--fx-pokev .ld-holo-test__rim {
  isolation: auto;
  mix-blend-mode: soft-light;
  opacity: calc(0.72 * var(--ld-frame-alpha, 0.88) / 0.88);
}
.ld-holo-test__card--fx-pokev .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-pokev .ld-holo-test__rim-foil--spark {
  opacity: 0 !important;
  background-image: none !important;
  filter: none !important;
}
.ld-holo-test__card--fx-pokev::before,
.ld-holo-test__card--fx-pokev::after,
.ld-holo-test__card--text-fx-pokev .ld-holo-test__text-foil--grad,
.ld-holo-test__card--text-fx-pokev .ld-holo-test__text-foil--spark {
  /* D?borde pour que le tilt ne montre jamais le bord du calque */
  inset: -14%;
  border-radius: 0;
  transform: none;
  transform-origin: center;
}
.ld-holo-test__card--fx-pokev::before,
.ld-holo-test__card--text-fx-pokev .ld-holo-test__text-foil--grad {
  background-image:
    var(--ld-grain),
    repeating-linear-gradient(
      0deg,
      var(--ld-sun-1) calc(var(--ld-v-space) * 1),
      var(--ld-sun-2) calc(var(--ld-v-space) * 2),
      var(--ld-sun-3) calc(var(--ld-v-space) * 3),
      var(--ld-sun-4) calc(var(--ld-v-space) * 4),
      var(--ld-sun-5) calc(var(--ld-v-space) * 5),
      var(--ld-sun-6) calc(var(--ld-v-space) * 6),
      var(--ld-sun-1) calc(var(--ld-v-space) * 7)
    ),
    repeating-linear-gradient(
      var(--ld-v-angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 0%, 0.1) 12%,
      hsla(0, 0%, 0%, 0.15) 20%,
      hsla(0, 0%, 0%, 0.25) 120%
    );
  background-size: 500px 100%, 200% 700%, 320% 120%, 220% 120%;
  background-position:
    center,
    0% var(--ld-posy),
    var(--ld-posx) var(--ld-posy),
    var(--ld-posx) var(--ld-posy);
  background-blend-mode: screen, hue, hard-light;
  mix-blend-mode: color-dodge;
  opacity: calc(0.85 * var(--ld-foil-str, 1));
  filter: brightness(0.8) contrast(2.95) saturate(0.65);
}
.ld-holo-test__card--fx-pokev::after,
.ld-holo-test__card--text-fx-pokev .ld-holo-test__text-foil--spark {
  --ld-sun-1: var(--ld-sun-6);
  --ld-sun-2: hsl(2, 100%, 73%);
  --ld-sun-3: hsl(53, 100%, 69%);
  --ld-sun-4: hsl(93, 100%, 69%);
  --ld-sun-5: hsl(176, 100%, 76%);
  --ld-sun-6: hsl(228, 100%, 74%);
  background-image:
    var(--ld-grain),
    repeating-linear-gradient(
      0deg,
      var(--ld-sun-1) calc(var(--ld-v-space) * 1),
      var(--ld-sun-2) calc(var(--ld-v-space) * 2),
      var(--ld-sun-3) calc(var(--ld-v-space) * 3),
      var(--ld-sun-4) calc(var(--ld-v-space) * 4),
      var(--ld-sun-5) calc(var(--ld-v-space) * 5),
      var(--ld-sun-6) calc(var(--ld-v-space) * 6),
      var(--ld-sun-1) calc(var(--ld-v-space) * 7)
    ),
    repeating-linear-gradient(
      var(--ld-v-angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 0.55) 0%,
      hsla(210, 3%, 54%, 0.22) 45%,
      hsla(0, 0%, 20%, 0.75) 130%
    );
  /* Diagonales en sens oppos? au tilt (simey) */
  background-size: 500px 100%, 200% 400%, 220% 120%, 220% 120%;
  background-position:
    center,
    0% var(--ld-posy),
    calc(var(--ld-posx) * -1) calc(var(--ld-posy) * -1),
    var(--ld-posx) var(--ld-posy);
  background-blend-mode: screen, hue, hard-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.7 * var(--ld-foil-str, 1));
  filter: brightness(1) contrast(2.5) saturate(1.75);
}
.ld-holo-test__card--fx-pokev:hover::before,
.ld-holo-test__card--fx-pokev.is-active::before,
.ld-holo-test__card--text-fx-pokev.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(1 * var(--ld-foil-str, 1));
  transition: none;
}
.ld-holo-test__card--fx-pokev:hover::after,
.ld-holo-test__card--fx-pokev.is-active::after,
.ld-holo-test__card--text-fx-pokev.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.85 * var(--ld-foil-str, 1));
}
/* Glare V = hard-light doux (simey), sans barre blanche d?coup?e */
.ld-holo-test__card--fx-pokev .ld-holo-test__glare {
  mix-blend-mode: hard-light;
  filter: brightness(0.9) contrast(1.55);
  background-image: radial-gradient(
    farthest-corner circle at var(--ld-mx, 50%) var(--ld-my, 50%),
    hsl(0, 0%, 100%) 0%,
    hsla(210, 3%, 54%, 0.28) 45%,
    hsla(0, 0%, 20%, 0.85) 130%
  );
}
.ld-holo-test__card--fx-pokev:hover .ld-holo-test__glare,
.ld-holo-test__card--fx-pokev.is-active .ld-holo-test__glare {
  opacity: calc(0.45 * var(--ld-foil-str, 1));
}

/* Trainer Holo ? full art supporter (texture + sunpillar doux) */
.ld-holo-test__card--fx-trainer,
.ld-holo-test__card--text-fx-trainer {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
}
.ld-holo-test__card--fx-trainer::before,
.ld-holo-test__card--fx-trainer .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-trainer .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp"),
    repeating-linear-gradient(
      0deg,
      rgba(255, 119, 115, 0.45) 5%,
      rgba(255, 237, 95, 0.4) 10%,
      rgba(168, 255, 95, 0.4) 15%,
      rgba(131, 255, 247, 0.4) 20%,
      rgba(120, 148, 255, 0.4) 25%,
      rgba(216, 117, 255, 0.45) 30%,
      rgba(255, 119, 115, 0.45) 35%
    ),
    repeating-linear-gradient(
      133deg,
      #0e152e 0%,
      hsl(180, 10%, 55%) 3.8%,
      hsl(180, 22%, 60%) 4.5%,
      hsl(180, 10%, 55%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      rgba(255, 255, 255, 0.2) 0%,
      rgba(0, 0, 0, 0.12) 40%,
      rgba(0, 0, 0, 0.4) 120%
    );
  /* Texture tiled plein cadre (plus de carr? central) */
  background-size: 28% 28%, 200% 700%, 300% 100%, 200% 100%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-position:
    0% 0%,
    0% var(--ld-posy),
    var(--ld-posx) var(--ld-posy),
    var(--ld-mx) var(--ld-my);
  background-blend-mode: soft-light, hue, soft-light, multiply;
  mix-blend-mode: soft-light;
  opacity: calc(0.34 * var(--ld-foil-str, 1));
  filter: brightness(0.85) contrast(1.25) saturate(0.9);
}
.ld-holo-test__card--fx-trainer::after,
.ld-holo-test__card--fx-trainer .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-trainer .ld-holo-test__text-foil--spark {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/illusion.webp"),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsl(0, 0%, 100%) 0%,
      hsla(0, 0%, 0%, 0) 55%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsl(0, 0%, 78%) 5%,
      hsl(200, 8%, 32%) 55%,
      hsl(320, 30%, 12%) 140%
    );
  background-size: 24% 24%, cover, 160% 160%;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 10% 10%, center, var(--ld-mx) var(--ld-my);
  background-blend-mode: soft-light, screen, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.3 * var(--ld-foil-str, 1));
  filter: brightness(0.95) contrast(1.15) saturate(0.85);
}
.ld-holo-test__card--fx-trainer:hover::before,
.ld-holo-test__card--fx-trainer:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-trainer.is-active::before,
.ld-holo-test__card--fx-trainer.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-trainer.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(0.4 * var(--ld-foil-str, 1));
  filter: brightness(0.92) contrast(1.32) saturate(1);
  transition: none;
}
.ld-holo-test__card--fx-trainer:hover::after,
.ld-holo-test__card--fx-trainer:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-trainer.is-active::after,
.ld-holo-test__card--fx-trainer.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-trainer.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.38 * var(--ld-foil-str, 1));
  filter: brightness(1.02) contrast(1.22) saturate(0.95);
}

/* Trainer Gallery Holofoil ? port fid?le poke-holo.simey.me/trainer-gallery-holo.css */
.ld-holo-test__card--fx-gallery,
.ld-holo-test__card--text-fx-gallery {
  --ld-posx: 50%;
  --ld-posy: 50%;
  --ld-mx: 50%;
  --ld-my: 50%;
  --ld-g-space: 5%;
  --ld-g-angle: -22deg;
}
.ld-holo-test__card--fx-gallery::before,
.ld-holo-test__card--fx-gallery .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-gallery .ld-holo-test__text-foil--grad {
  background-image: repeating-linear-gradient(
    var(--ld-g-angle),
    hsla(283, 49%, 60%, 0.75) calc(var(--ld-g-space) * 1),
    hsla(2, 74%, 59%, 0.75) calc(var(--ld-g-space) * 2),
    hsla(53, 67%, 53%, 0.75) calc(var(--ld-g-space) * 3),
    hsla(93, 56%, 52%, 0.75) calc(var(--ld-g-space) * 4),
    hsla(176, 38%, 50%, 0.75) calc(var(--ld-g-space) * 5),
    hsla(228, 100%, 77%, 0.75) calc(var(--ld-g-space) * 6),
    hsla(283, 49%, 61%, 0.75) calc(var(--ld-g-space) * 7)
  );
  background-size: 300% 400%;
  background-position: 0% calc(var(--ld-posy) * 1), var(--ld-posx) var(--ld-posy);
  background-blend-mode: color-dodge;
  mix-blend-mode: color-dodge;
  opacity: calc(0.85 * var(--ld-foil-str, 1));
  filter: brightness(calc((var(--ld-pfc) * 0.3) + 0.5)) contrast(2.3) saturate(1);
}
.ld-holo-test__card--fx-gallery::after,
.ld-holo-test__card--fx-gallery .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-gallery .ld-holo-test__text-foil--spark {
  background-image:
    radial-gradient(
      farthest-corner ellipse at calc((var(--ld-mx) * 0.5) + 25%) calc((var(--ld-my) * 0.5) + 25%),
      hsl(0, 0%, 100%) 5%,
      hsla(300, 100%, 11%, 0.6) 40%,
      hsl(0, 0%, 22%) 120%
    ),
    radial-gradient(
      farthest-corner circle at var(--ld-mx) var(--ld-my),
      hsla(0, 0%, 100%, 1) 10%,
      hsla(0, 0%, 100%, 0.6) 35%,
      hsla(180, 11%, 35%, 1) 60%
    );
  background-size: 400% 500%, 160% 160%;
  background-position: center center, var(--ld-mx) var(--ld-my);
  background-blend-mode: soft-light, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.65 * var(--ld-foil-str, 1));
  filter: brightness(calc((var(--ld-pfc) * 0.2) + 0.4)) contrast(0.9) saturate(1.1);
}
.ld-holo-test__card--fx-gallery:hover::before,
.ld-holo-test__card--fx-gallery:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-gallery.is-active::before,
.ld-holo-test__card--fx-gallery.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-gallery.is-active .ld-holo-test__text-foil--grad {
  opacity: calc(1 * var(--ld-foil-str, 1));
  transition: none;
}
.ld-holo-test__card--fx-gallery:hover::after,
.ld-holo-test__card--fx-gallery:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-gallery.is-active::after,
.ld-holo-test__card--fx-gallery.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-gallery.is-active .ld-holo-test__text-foil--spark {
  opacity: calc(0.8 * var(--ld-foil-str, 1));
}

.ld-holo-test__card--fx-vmax::before,
.ld-holo-test__card--fx-vmax .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-vmax .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/vmaxbg.webp"),
    repeating-linear-gradient(
      -33deg,
      rgb(206, 42, 36) 6%,
      rgb(157, 170, 223) 12%,
      rgb(45, 153, 146) 18%,
      rgb(29, 151, 36) 24%,
      rgb(181, 64, 228) 30%,
      rgb(206, 42, 36) 36%
    ),
    radial-gradient(
      farthest-corner circle at 50% 40%,
      rgba(6, 218, 255, 0.45) 0%,
      rgba(38, 235, 127, 0.35) 25%,
      rgba(155, 78, 228, 0.35) 50%,
      rgba(228, 78, 90, 0.3) 75%,
      transparent 100%
    );
  /* Zoom motif ? */
  background-size: 65% 65%, 680% 680%, cover;
  background-position: center, 0% 50%, 50% 50%;
  background-repeat: repeat, repeat, no-repeat;
  background-blend-mode: color-burn, screen, soft-light;
  mix-blend-mode: color-dodge;
  opacity: calc(0.4 * var(--ld-foil-str, 1));
  filter: brightness(0.7) contrast(1.35) saturate(0.75);
}
.ld-holo-test__card--fx-vmax::after,
.ld-holo-test__card--fx-vmax .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-vmax .ld-holo-test__text-foil--spark {
  background-image:
    url("https://assets.codepen.io/13471/sparkles.gif"),
    repeating-linear-gradient(
      133deg,
      rgba(14, 21, 46, 0.5) 0%,
      hsl(180, 10%, 50%) 2.5%,
      hsl(83, 50%, 35%) 5%,
      hsl(180, 10%, 50%) 7.5%,
      rgba(14, 21, 46, 0.5) 10%,
      rgba(14, 21, 46, 0.5) 15%
    );
  background-size: 68% 68%, 380% 380%;
  background-repeat: repeat, repeat;
  background-blend-mode: screen, soft-light;
  mix-blend-mode: soft-light;
  opacity: calc(0.44 * var(--ld-foil-str, 1));
  filter: brightness(0.88) contrast(1.15);
}
.ld-holo-test__card--fx-vmax:hover::before,
.ld-holo-test__card--fx-vmax:hover .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--fx-vmax.is-active::before,
.ld-holo-test__card--fx-vmax.is-active .ld-holo-test__rim-foil--grad,
.ld-holo-test__card--text-fx-vmax.is-active .ld-holo-test__text-foil--grad {
  background-image:
    url("https://res.cloudinary.com/simey/image/upload/Dev/PokemonCards/vmaxbg.webp"),
    repeating-linear-gradient(
      -33deg,
      rgb(206, 42, 36) 6%,
      rgb(157, 170, 223) 12%,
      rgb(45, 153, 146) 18%,
      rgb(29, 151, 36) 24%,
      rgb(181, 64, 228) 30%,
      rgb(206, 42, 36) 36%
    ),
    radial-gradient(
      farthest-corner circle at 50% 40%,
      rgba(6, 218, 255, 0.45) 0%,
      rgba(38, 235, 127, 0.35) 25%,
      rgba(155, 78, 228, 0.35) 50%,
      rgba(228, 78, 90, 0.3) 75%,
      transparent 100%
    );
  background-size: 65% 65%, 680% 680%, cover;
  opacity: calc(0.54 * var(--ld-foil-str, 1));
  filter: brightness(0.78) contrast(1.45) saturate(0.8);
}
.ld-holo-test__card--fx-vmax:hover::after,
.ld-holo-test__card--fx-vmax:hover .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--fx-vmax.is-active::after,
.ld-holo-test__card--fx-vmax.is-active .ld-holo-test__rim-foil--spark,
.ld-holo-test__card--text-fx-vmax.is-active .ld-holo-test__text-foil--spark {
  background-size: 68% 68%, 380% 380%;
  opacity: calc(0.56 * var(--ld-foil-str, 1));
  filter: brightness(0.95) contrast(1.2);
}

.ld-holo-test__card.is-animated {
  transition: none;
  /* Tilt 3D + balayage vars foil (même timing que la souris) */
  animation:
    ld-holo-test-card 12s ease 0s 1,
    ld-holo-test-foil-vars 12s ease 0s 1;
}
.ld-holo-test__card.is-animated::before,
.ld-holo-test__card.is-animated .ld-holo-test__rim-foil--grad {
  transition: none;
  /* Opacity/filter seulement — ne plus écraser background-position (casse holofoil etc.) */
  animation: ld-holo-test-grad 12s ease 0s 1;
}
.ld-holo-test__card.is-animated::after,
.ld-holo-test__card.is-animated .ld-holo-test__rim-foil--spark {
  transition: none;
  animation: ld-holo-test-spark 12s ease 0s 1;
}
.ld-holo-test__card:nth-child(2).is-animated,
.ld-holo-test__wrap:nth-child(2) .ld-holo-test__card.is-animated,
.ld-holo-test__wrap:nth-child(2) .ld-holo-test__card.is-animated::before,
.ld-holo-test__wrap:nth-child(2) .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--grad,
.ld-holo-test__wrap:nth-child(2) .ld-holo-test__card.is-animated::after,
.ld-holo-test__wrap:nth-child(2) .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--spark {
  animation-delay: 0.25s;
}
.ld-holo-test__wrap:nth-child(3) .ld-holo-test__card.is-animated,
.ld-holo-test__wrap:nth-child(3) .ld-holo-test__card.is-animated::before,
.ld-holo-test__wrap:nth-child(3) .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--grad,
.ld-holo-test__wrap:nth-child(3) .ld-holo-test__card.is-animated::after,
.ld-holo-test__wrap:nth-child(3) .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--spark {
  animation-delay: 0.5s;
}
.ld-holo-test__wrap:nth-child(4) .ld-holo-test__card.is-animated,
.ld-holo-test__wrap:nth-child(4) .ld-holo-test__card.is-animated::before,
.ld-holo-test__wrap:nth-child(4) .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--grad,
.ld-holo-test__wrap:nth-child(4) .ld-holo-test__card.is-animated::after,
.ld-holo-test__wrap:nth-child(4) .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--spark {
  animation-delay: 0.75s;
}

.ld-holo-test__meta {
  --ld-text-stroke-w: 0.07em;
  --ld-text-stroke-c: #f7c948;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 0.65cqw;
  /* Padding / offset en cqw = m?me proportion en aper?u, grille et zoom */
  padding: 14cqw 3.5cqw 4.25cqw;
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 7, 15, 0.62) 36%,
    rgba(5, 7, 15, 0.94) 100%
  );
  pointer-events: none;
}

.ld-holo-test__series {
  font-family: var(--ld-card-font, var(--ld-font-display));
  font-size: calc(4.4cqw * var(--ld-series-scale, 1));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* M?me intensit? que le titre (plus de teinte trop p?le) */
  color: var(--ld-card-text, #ffffff);
  transform: translateY(-7.75cqw);
  paint-order: stroke fill;
  -webkit-text-stroke: var(--ld-text-stroke-w) var(--ld-text-stroke-c);
  text-shadow:
    0 -0.02em 0.02em rgba(255, 255, 255, 0.55),
    0 0.05em 0.08em rgba(0, 0, 0, 0.85),
    0 0.08em 0.18em rgba(0, 0, 0, 0.55),
    0 0 0.14em color-mix(in srgb, var(--ld-text-stroke-c) 70%, transparent),
    0 0 0.32em color-mix(in srgb, var(--ld-text-stroke-c) 40%, transparent);
}

.ld-holo-test__title {
  font-family: var(--ld-card-font, var(--ld-font-display));
  font-size: calc(7cqw * var(--ld-title-scale, 1));
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--ld-card-text, #ffffff);
  text-wrap: balance;
  transform: translateY(-7.75cqw);
  paint-order: stroke fill;
  -webkit-text-stroke: calc(var(--ld-text-stroke-w) * 1.15) var(--ld-text-stroke-c);
  /* Relief + lueur (suit la couleur de contour) */
  text-shadow:
    0 -0.025em 0.03em rgba(255, 255, 255, 0.65),
    0 0.04em 0.02em rgba(0, 0, 0, 0.9),
    0 0.08em 0.14em rgba(0, 0, 0, 0.7),
    0 0.12em 0.28em rgba(0, 0, 0, 0.45),
    0 0 0.18em color-mix(in srgb, var(--ld-text-stroke-c) 75%, transparent),
    0 0 0.42em color-mix(in srgb, var(--ld-text-stroke-c) 45%, transparent),
    0 0 0.7em color-mix(in srgb, var(--ld-holo-c1, #f7c948) 28%, transparent);
}

.ld-holo-test__card--no-text-stroke .ld-holo-test__series,
.ld-holo-test__card--no-text-stroke .ld-holo-test__title {
  -webkit-text-stroke: 0 transparent;
  text-shadow:
    0 -0.02em 0.02em rgba(255, 255, 255, 0.4),
    0 0.05em 0.1em rgba(0, 0, 0, 0.85),
    0 0 0.2em color-mix(in srgb, var(--ld-card-text, #fff) 35%, transparent);
}

.ld-holo-test__owned {
  /* Hauteur r?serv?e m?me vide ? ?vite le d?calage titre/?uf sans ? Mod?le ?. */
  min-height: 1.2em;
  font-size: 3.8cqw;
  font-weight: 600;
  line-height: 1.2;
  color: color-mix(in srgb, var(--ld-card-text, #ffffff) 55%, #7dffb0);
  text-shadow: 0 0.04em 0.1em rgba(0, 0, 0, 0.75);
}

.ld-holo-test__owned.is-empty {
  visibility: hidden;
}

/* Quantit? (Mes cartes) ? bas gauche */
.ld-holo-test__qty {
  position: absolute;
  left: 4.2cqw;
  bottom: 3.6cqw;
  z-index: 9;
  pointer-events: none;
  font-family: var(--ld-card-font, "Chakra Petch", sans-serif);
  font-size: 4.2cqw;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0.05em 0.12em rgba(0, 0, 0, 0.9),
    0 0 0.35em rgba(92, 225, 255, 0.45);
}

/* Num?ro d??dition ? bas droite */
.ld-holo-test__edition {
  --ld-edition-holo: #f7c948;
  position: absolute;
  right: 4.2cqw;
  bottom: 3.6cqw;
  z-index: 8;
  display: grid;
  justify-items: end;
  align-items: center;
  pointer-events: none;
  font-family: var(--ld-card-font, var(--ld-font-display));
  font-size: 3.4cqw;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.ld-holo-test__edition[hidden] {
  display: none !important;
}

.ld-holo-test__edition--inf {
  font-size: 4.6cqw;
  letter-spacing: 0;
  font-weight: 800;
}

.ld-holo-test__edition--specimen {
  font-size: 2.85cqw;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ld-collect-specimen__owner {
  margin: 0.25rem 0 0.55rem;
  max-width: 22rem;
  padding-inline: 0.75rem;
  font-family: var(--ld-font-display, "Rajdhani", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  color: var(--ld-text, #f4f7ff);
}

.ld-collect-specimen__stock {
  margin: 0.15rem 0 0;
  max-width: 22rem;
  padding-inline: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  color: transparent;
  background: linear-gradient(105deg, #7dffb0, #00e7ff 45%, #7ec8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--common {
  background: linear-gradient(105deg, #9dceb0, #7dffb0 50%, #eef6f1);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--uncommon {
  background: linear-gradient(105deg, #9bc8e8, #00e7ff 50%, #f0f8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--rare {
  background: linear-gradient(105deg, #6ed7f0, #00e7ff 40%, #ff2d95);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--epic {
  background: linear-gradient(105deg, #c084fc, #a78bfa 45%, #ff2d95);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--legendary {
  background: linear-gradient(105deg, #f7c948, #ff9f43 50%, #ffe08a);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--black {
  background: linear-gradient(105deg, #e8eaef, #8a919c 55%, #f5f6f8);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--prism {
  background: linear-gradient(105deg, #ec9bb6, #b98cce 35%, #69e4a5 70%, #8ec5d6);
  -webkit-background-clip: text;
  background-clip: text;
}

.ld-collect-specimen__stock--limited {
  background: linear-gradient(105deg, #ff7a92, #ff4d6d 30%, #ff8a5c 55%, #f7c948);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 77, 109, 0.3));
}

.ld-holo-test__edition-face,
.ld-holo-test__edition-foil {
  grid-area: 1 / 1;
  justify-self: end;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

.ld-holo-test__edition-face {
  position: relative;
  z-index: 0;
  color: color-mix(in srgb, var(--ld-edition-holo) 35%, #1a1a22);
  -webkit-text-fill-color: color-mix(in srgb, var(--ld-edition-holo) 35%, #1a1a22);
  -webkit-text-stroke: 0.04em rgba(0, 0, 0, 0.85);
}

.ld-holo-test__edition-foil {
  position: relative;
  z-index: 1;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-background-clip: text;
  background-clip: text;
  background-image:
    linear-gradient(
      115deg,
      transparent 0%,
      #fff 28%,
      transparent 42%,
      transparent 58%,
      color-mix(in srgb, var(--ld-edition-holo) 80%, #fff) 72%,
      transparent 88%
    ),
    linear-gradient(
      125deg,
      color-mix(in srgb, var(--ld-edition-holo) 55%, #fff) 0%,
      var(--ld-edition-holo) 28%,
      #fff 48%,
      color-mix(in srgb, var(--ld-edition-holo) 70%, #000) 68%,
      var(--ld-edition-holo) 88%,
      #fff 100%
    );
  background-size: 220% 100%, calc(200% * var(--ld-text-foil-zoom, 1)) calc(200% * var(--ld-text-foil-zoom, 1));
  background-position: 130% 0, 0% 40%;
  mix-blend-mode: color-dodge;
  filter: brightness(1.45) contrast(1.35) saturate(1.4);
  animation: ld-edition-holo-shine 4.5s ease-in-out infinite;
}

.ld-holo-test__card.is-active .ld-holo-test__edition-foil {
  animation: none;
  filter: brightness(1.65) contrast(1.45) saturate(1.55);
}

@keyframes ld-edition-holo-shine {
  0%,
  100% {
    background-position: 140% 0, 0% 35%;
  }
  50% {
    background-position: -40% 0, 100% 65%;
  }
}

.ld-holo-test__card--obsidian .ld-holo-test__edition-face {
  color: #dce2ea;
  -webkit-text-fill-color: #dce2ea;
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__edition-foil {
    animation: none;
  }
}

/* Black Edition ? texte acier / argent, pas de glow or ni vert */
.ld-holo-test__card--obsidian .ld-holo-test__meta {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 12, 18, 0.28) 42%,
    rgba(10, 12, 18, 0.62) 100%
  );
}

.ld-holo-test__card--obsidian .ld-holo-test__series {
  color: #e4e8ef;
  letter-spacing: 0.14em;
  -webkit-text-stroke: calc(var(--ld-text-stroke-w, 0.07em) * 0.7) #8a93a0;
  text-shadow:
    0 0.02em 0.04em rgba(0, 0, 0, 0.7),
    0 0 0.12em rgba(210, 220, 235, 0.35);
}

.ld-holo-test__card--obsidian .ld-holo-test__title {
  color: #f5f7fb;
  -webkit-text-stroke: calc(var(--ld-text-stroke-w, 0.07em) * 0.85) #7a8492;
  text-shadow:
    0 -0.015em 0.02em rgba(255, 255, 255, 0.4),
    0 0.035em 0.06em rgba(0, 0, 0, 0.75),
    0 0 0.14em rgba(200, 210, 225, 0.4),
    0 0 0.3em rgba(160, 170, 190, 0.28);
}

.ld-holo-test__card--obsidian.ld-holo-test__card--no-text-stroke .ld-holo-test__series,
.ld-holo-test__card--obsidian.ld-holo-test__card--no-text-stroke .ld-holo-test__title {
  -webkit-text-stroke: 0 transparent;
  text-shadow:
    0 0.03em 0.06em rgba(0, 0, 0, 0.7),
    0 0 0.16em rgba(210, 220, 235, 0.28);
}

.ld-holo-test__card--obsidian .ld-holo-test__owned {
  color: #c5ccd6;
  text-shadow: 0 0.03em 0.06em rgba(0, 0, 0, 0.7);
}

/* Texte holo = foil carte en remplissage (1 seul texte visible, calques empil?s) */
.ld-holo-test__card.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__series,
.ld-holo-test__card.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__title {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  isolation: isolate;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: none !important;
  text-shadow: none;
  filter: none;
  transform: translateY(-7.75cqw);
  -webkit-text-stroke: 0 transparent;
  animation: none;
}

.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-face,
.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  grid-area: 1 / 1;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: center;
  white-space: nowrap;
  transform: none !important;
  inset: auto !important;
  content: none;
}

/* Base sombre : le foil color-dodge / screen r?v?le les couleurs */
.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-face {
  position: relative;
  z-index: 0;
  color: #1c222c;
  -webkit-text-fill-color: #1c222c;
  background: none;
  -webkit-text-stroke: 0.05em rgba(0, 0, 0, 0.9);
}

.ld-holo-test__card.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__title .ld-holo-test__text-face {
  -webkit-text-stroke-width: 0.06em;
}

.ld-holo-test__card.ld-holo-test__card--text-holo.ld-holo-test__card--no-text-stroke .ld-holo-test__text-face {
  -webkit-text-stroke: 0 transparent;
}

.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  position: relative;
  z-index: 1;
  pointer-events: none;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-stroke: 0 transparent !important;
  text-shadow: none;
  /* Remplissage holo visible (pas soft-light lav?) */
  mix-blend-mode: color-dodge !important;
  opacity: var(--ld-text-foil-str, 1) !important;
  filter:
    brightness(calc(1 + 0.55 * var(--ld-text-foil-str, 1)))
    contrast(calc(1 + 0.45 * var(--ld-text-foil-str, 1)))
    saturate(calc(1 + 0.55 * var(--ld-text-foil-str, 1))) !important;
  animation: ld-text-foil-shift 5s ease-in-out infinite;
  transform: none !important;
  /* Zoom motif holo (? = motif plus gros), ind?pendant du foil carte */
  background-size: calc(300% / var(--ld-text-foil-zoom, 1)) calc(300% / var(--ld-text-foil-zoom, 1)) !important;
}

.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  z-index: 2;
  mix-blend-mode: screen !important;
  filter:
    brightness(calc(1 + 0.65 * var(--ld-text-foil-str, 1)))
    contrast(calc(1 + 0.35 * var(--ld-text-foil-str, 1)))
    saturate(calc(1 + 0.4 * var(--ld-text-foil-str, 1))) !important;
  animation-duration: 3.8s;
  animation-name: ld-text-foil-spark;
}

/* Suivi souris uniquement (pas en idle anim?) ? sinon le texte holo reste fig? / invisible */
.ld-holo-test__card.is-active:not(.is-animated).ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
.ld-holo-test__card.is-active:not(.is-animated).ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  filter: brightness(1.75) contrast(1.55) saturate(1.7) !important;
  animation: none;
}

/* Idle + zoom : texte holo bien visible (anim shift/spark) */
.ld-holo-test__card.is-animated.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
.ld-holo-test__card.is-animated.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  filter:
    brightness(calc(1.35 + 0.55 * var(--ld-text-foil-str, 1)))
    contrast(calc(1.25 + 0.45 * var(--ld-text-foil-str, 1)))
    saturate(calc(1.25 + 0.55 * var(--ld-text-foil-str, 1))) !important;
}

@keyframes ld-text-foil-shift {
  0%,
  100% {
    background-position: 20% 40%, center, 30% 50%, center;
  }
  50% {
    background-position: 80% 60%, center, 70% 40%, center;
  }
}

@keyframes ld-text-foil-spark {
  0%,
  100% {
    background-position: 40% 50%, 30% 40%, center;
    opacity: 0.85;
  }
  50% {
    background-position: 60% 45%, 70% 55%, center;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
  .ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
    animation: none;
  }
}

/* Cache les calques foil texte hors mode holo carte */
.ld-holo-test__card:not(.ld-holo-test__card--text-holo) .ld-holo-test__text-foil--grad,
.ld-holo-test__card:not(.ld-holo-test__card--text-holo) .ld-holo-test__text-foil--spark,
.ld-holo-test__card--text-fx-chrome .ld-holo-test__text-foil--grad,
.ld-holo-test__card--text-fx-chrome .ld-holo-test__text-foil--spark {
  display: none;
}

/* Chrome argent (effet d?di?, pas un type foil carte) */
.ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__series,
.ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__title,
.ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__text-face {
  background-image:
    linear-gradient(105deg, transparent 0%, transparent 34%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0.35) 52%, transparent 64%, transparent 100%),
    linear-gradient(118deg, transparent 0%, rgba(180, 220, 255, 0.55) 18%, rgba(255, 255, 255, 0.7) 28%, rgba(210, 180, 255, 0.5) 38%, rgba(160, 255, 230, 0.45) 48%, rgba(255, 220, 180, 0.4) 58%, transparent 72%, transparent 100%),
    linear-gradient(125deg, #fff 0%, #e8eef8 12%, #a8b4c8 26%, #f5f8fc 38%, #7a889c 48%, #dce4f0 58%, #9aa8bc 70%, #fff 84%, #c8d2e0 100%);
  background-size:
    calc(240% / var(--ld-text-foil-zoom, 1)) 100%,
    calc(280% / var(--ld-text-foil-zoom, 1)) 100%,
    calc(240% / var(--ld-text-foil-zoom, 1)) calc(240% / var(--ld-text-foil-zoom, 1));
  background-position: 130% 0, 120% 0, 0% 40%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.05em rgba(8, 10, 14, 0.88);
  text-shadow: none;
  filter: none;
  opacity: var(--ld-text-foil-str, 1);
  transform: translateY(-7.75cqw);
  animation: ld-text-holo-shine 4.2s ease-in-out infinite;
}

.ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__title,
.ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__title .ld-holo-test__text-face {
  -webkit-text-stroke-width: 0.06em;
  animation-duration: 3.6s;
}

/* Intensit? + zoom texte : priorit? sur les variants d?effet */
.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
.ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  opacity: var(--ld-text-foil-str, 1) !important;
  background-size: calc(300% / var(--ld-text-foil-zoom, 1)) calc(300% / var(--ld-text-foil-zoom, 1)) !important;
}

.ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__series {
  animation-duration: 4.8s;
}

.ld-holo-test__card.ld-holo-test__card--text-fx-chrome.ld-holo-test__card--no-text-stroke .ld-holo-test__series,
.ld-holo-test__card.ld-holo-test__card--text-fx-chrome.ld-holo-test__card--no-text-stroke .ld-holo-test__title,
.ld-holo-test__card.ld-holo-test__card--text-fx-chrome.ld-holo-test__card--no-text-stroke .ld-holo-test__text-face {
  -webkit-text-stroke: 0 transparent;
}

@keyframes ld-text-holo-shine {
  0%,
  100% {
    background-position: 140% 0, 130% 0, 0% 35%;
  }
  50% {
    background-position: -50% 0, -30% 0, 100% 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__series,
  .ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__title,
  .ld-holo-test__card.ld-holo-test__card--text-fx-chrome .ld-holo-test__text-face {
    animation: none;
  }
}


.ld-collection-lab__controls-lead {
  margin: -0.35rem 0 1rem;
  font-size: 0.85rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab__preview-wrap {
  margin-top: 0.25rem;
  width: 280px;
  max-width: min(280px, 100%);
  flex: none;
}

/* Aper?u live : taille fixe, ne pas s??tirer dans la colonne */
.ld-collection-lab__preview .ld-holo-test__wrap.ld-collection-lab__preview-wrap {
  width: 280px;
  max-width: min(280px, 100%);
}

.ld-collection-lab__preview .ld-holo-test__card {
  width: 100%;
  max-width: 280px;
}

.ld-collection-lab__creations .ld-holo-test__wrap {
  width: var(--ld-collect-card-w, 220px);
}

.ld-collection-lab__creations .ld-holo-test__card {
  width: 100%;
}

/* Intensité foil pendant idle — position gérée par ld-holo-test-foil-vars */
@keyframes ld-holo-test-spark {
  0%,
  100% {
    opacity: calc(0.42 * var(--ld-foil-str, 1));
    filter: brightness(0.9) contrast(1.05);
  }
  5%,
  8% {
    opacity: calc(0.72 * var(--ld-foil-str, 1));
    filter: brightness(1.05) contrast(1.15);
  }
  13%,
  16% {
    opacity: calc(0.55 * var(--ld-foil-str, 1));
    filter: brightness(0.95) contrast(1.08);
  }
  35%,
  38% {
    opacity: calc(0.78 * var(--ld-foil-str, 1));
    filter: brightness(1.1) contrast(1.18);
  }
  55% {
    opacity: calc(0.5 * var(--ld-foil-str, 1));
    filter: brightness(0.92) contrast(1.1);
  }
}

@keyframes ld-holo-test-grad {
  0%,
  100% {
    opacity: calc(0.36 * var(--ld-foil-str, 1));
    filter: brightness(0.48) contrast(1);
  }
  5%,
  9% {
    opacity: calc(0.7 * var(--ld-foil-str, 1));
    filter: brightness(0.62) contrast(1.16);
  }
  13%,
  17% {
    opacity: calc(0.62 * var(--ld-foil-str, 1));
    filter: brightness(0.58) contrast(1.12);
  }
  35%,
  39% {
    opacity: calc(0.74 * var(--ld-foil-str, 1));
    filter: brightness(0.65) contrast(1.18);
  }
  55% {
    opacity: calc(0.58 * var(--ld-foil-str, 1));
    filter: brightness(0.55) contrast(1.1);
  }
}

/* Reflet bande Classique : morph gradient, position via vars */
@keyframes ld-holo-test-grad-classic {
  0%,
  100% {
    opacity: calc(0.36 * var(--ld-foil-str, 1));
    filter: brightness(0.48) contrast(1);
    background-image: linear-gradient(
      115deg,
      transparent 0%,
      var(--ld-holo-c1) 25%,
      transparent 47%,
      transparent 53%,
      var(--ld-holo-c2) 75%,
      transparent 100%
    );
  }
  5%,
  9% {
    opacity: calc(0.7 * var(--ld-foil-str, 1));
    filter: brightness(0.62) contrast(1.16);
    background-image: linear-gradient(
      110deg,
      transparent 22%,
      var(--ld-holo-c1) 46%,
      var(--ld-holo-c2) 54%,
      transparent 78%
    );
  }
  13%,
  17% {
    opacity: calc(0.62 * var(--ld-foil-str, 1));
    filter: brightness(0.58) contrast(1.12);
    background-image: linear-gradient(
      110deg,
      transparent 22%,
      var(--ld-holo-c1) 46%,
      var(--ld-holo-c2) 54%,
      transparent 78%
    );
  }
  35%,
  39% {
    opacity: calc(0.74 * var(--ld-foil-str, 1));
    filter: brightness(0.65) contrast(1.18);
    background-image: linear-gradient(
      110deg,
      transparent 22%,
      var(--ld-holo-c1) 46%,
      var(--ld-holo-c2) 54%,
      transparent 78%
    );
  }
  55% {
    opacity: calc(0.58 * var(--ld-foil-str, 1));
    filter: brightness(0.55) contrast(1.1);
    background-image: linear-gradient(
      110deg,
      transparent 22%,
      var(--ld-holo-c1) 46%,
      var(--ld-holo-c2) 54%,
      transparent 78%
    );
  }
}
.ld-holo-test__card--fx-classic.is-animated::before,
.ld-holo-test__card--fx-classic.is-animated .ld-holo-test__rim-foil--grad {
  animation-name: ld-holo-test-grad-classic;
}

/* Interpolation des vars foil (Chrome / Safari / Firefox récents) */
@property --ld-posx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --ld-posy {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --ld-mx {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --ld-my {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --ld-pfc {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/*
 * Idle : balayage reflet synchronisé au tilt 3D
 * (même logique que le suivi souris : lumière opposée à l’inclinaison)
 */
@keyframes ld-holo-test-foil-vars {
  0%,
  100% {
    --ld-posx: 50%;
    --ld-posy: 50%;
    --ld-mx: 50%;
    --ld-my: 50%;
    --ld-pfc: 0.32;
  }
  5%,
  8% {
    --ld-posx: 82%;
    --ld-posy: 28%;
    --ld-mx: 86%;
    --ld-my: 22%;
    --ld-pfc: 0.78;
  }
  13%,
  16% {
    --ld-posx: 18%;
    --ld-posy: 72%;
    --ld-mx: 14%;
    --ld-my: 78%;
    --ld-pfc: 0.88;
  }
  35%,
  38% {
    --ld-posx: 68%;
    --ld-posy: 22%;
    --ld-mx: 74%;
    --ld-my: 18%;
    --ld-pfc: 0.82;
  }
  55% {
    --ld-posx: 24%;
    --ld-posy: 78%;
    --ld-mx: 18%;
    --ld-my: 84%;
    --ld-pfc: 0.8;
  }
}

/* Idle : tilt 3D auto + foil (sans souris) */
@keyframes ld-holo-test-card {
  0%,
  100% {
    transform: rotateZ(0deg) rotateX(0deg) rotateY(0deg);
  }
  5%,
  8% {
    transform: rotateZ(0deg) rotateX(6deg) rotateY(-20deg);
  }
  13%,
  16% {
    transform: rotateZ(0deg) rotateX(-9deg) rotateY(32deg);
  }
  35%,
  38% {
    transform: rotateZ(3deg) rotateX(12deg) rotateY(20deg);
  }
  55% {
    transform: rotateZ(-3deg) rotateX(-12deg) rotateY(-27deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-holo-test__card.is-animated,
  .ld-holo-test__card.is-animated::before,
  .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--grad,
  .ld-holo-test__card.is-animated::after,
  .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--spark,
  .ld-holo-test__card--fx-classic.is-animated::before,
  .ld-holo-test__card--fx-classic.is-animated .ld-holo-test__rim-foil--grad {
    animation: none;
  }
}

/* Cadre foil : couvrir l?anneau (apr?s les r?gles card::before/after) */
.ld-holo-test__card .ld-holo-test__rim .ld-holo-test__rim-foil {
  inset: calc(-1 * var(--ld-frame-w, 3.2cqw));
}

.ld-holo-test__card .ld-holo-test__rim .ld-holo-test__rim-foil--grad {
  z-index: 1;
}

.ld-holo-test__card .ld-holo-test__rim .ld-holo-test__rim-foil--spark {
  z-index: 2;
}

/* ?? Atelier cr?ation (rendu LD Cartes Studio) ?? */
.ld-collection-lab__atelier {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(300px, 1fr);
  grid-template-areas: "controls preview";
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ld-radius, 12px);
  background: rgba(5, 7, 15, 0.45);
  overflow: visible;
}

.ld-collection-lab__atelier.ld-studio-atelier {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(280px, 360px);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "layers canvas inspector";
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
  padding: 0.75rem;
  min-height: 0;
  height: calc(100dvh - var(--ld-header-h, 76px) - 10rem);
  max-height: calc(100dvh - var(--ld-header-h, 76px) - 4rem);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(0, 212, 255, 0.07), transparent 42%),
    radial-gradient(ellipse at 92% 8%, rgba(255, 45, 149, 0.06), transparent 38%),
    rgba(5, 7, 15, 0.55);
  overflow: hidden;
}

.ld-studio-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.65rem 0.55rem 0.55rem 0.7rem;
}

.ld-studio-panel--layers {
  grid-area: layers;
}

.ld-studio-panel--inspector {
  grid-area: inspector;
}

.ld-studio-panel h2 {
  flex: 0 0 auto;
  margin: 0 0 0.2rem;
  font-family: var(--ld-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.ld-studio-panel__hint {
  flex: 0 0 auto;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-studio-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 0.25rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 255, 0.45) rgba(255, 255, 255, 0.06);
}

.ld-studio-panel__scroll::-webkit-scrollbar {
  width: 8px;
}

.ld-studio-panel__scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.ld-studio-panel__scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.4);
  border-radius: 8px;
}

.ld-studio-canvas {
  grid-area: canvas;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #2a3142 0%, #1c2230 55%, #151a26 100%);
}

.ld-studio-canvas .ld-collection-lab__preview {
  position: static;
  grid-area: unset;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  align-self: center;
}

.ld-studio-canvas .ld-collection-lab__preview-wrap,
.ld-studio-canvas .ld-holo-test__wrap.ld-collection-lab__preview-wrap {
  width: min(320px, 100%);
  max-width: min(320px, 100%);
}

.ld-studio-canvas .ld-collection-lab__preview .ld-holo-test__card {
  max-width: min(320px, 100%);
}

.ld-studio-canvas__tools {
  width: 100%;
  max-width: 440px;
}

.ld-studio-canvas__tools .ld-collection-lab__actions {
  justify-content: center;
}

.ld-collection-lab:not(.ld-collection-lab--library) .ld-collection-lab-hero p {
  max-width: 40rem;
}

/* Lab admin : barre chrome propre + boutons dessous + atelier plein ?cran */
body.ld-collection-lab-page:has(.ld-studio-atelier:not([hidden])) .ld-footer {
  display: none;
}

.ld-collection-lab-chrome {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 15, 0.92);
}

.ld-collection-lab-chrome__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}

.ld-collection-lab-chrome__collection {
  margin-left: auto;
  min-height: 2.1rem;
  text-decoration: none;
}

.ld-collection-lab-chrome__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.ld-collection-lab-chrome__title .ld-eyebrow {
  margin: 0;
}

.ld-collection-lab-chrome__title strong {
  font-family: var(--ld-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.ld-collection-lab-chrome__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab-chrome__meta .ld-collection-lab-hero__link {
  margin-left: 0.35rem;
}

body.ld-collection-lab-page .ld-collection-lab:not(.ld-collection-lab--library) > .ld-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

body.ld-collection-lab-page .ld-collection-lab:not(.ld-collection-lab--library).ld-section {
  padding: 0 0 0.75rem;
  margin: 0;
}

body.ld-collection-lab-page .ld-collection-lab__atelier.ld-studio-atelier {
  width: 100%;
  max-width: none;
  margin: 0 0 0.5rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  padding: 0.4rem;
  height: calc(100dvh - var(--ld-header-h, 76px) - 5.5rem);
  min-height: 480px;
  box-sizing: border-box;
}

body.ld-collection-lab-page:has(.ld-studio-atelier:not([hidden])) {
  overflow-x: hidden;
}

body.ld-collection-lab-page .ld-studio-panel,
body.ld-collection-lab-page .ld-studio-panel__scroll,
body.ld-collection-lab-page .ld-studio-canvas {
  min-height: 0;
}

body.ld-collection-lab-page .ld-collection-lab:not(.ld-collection-lab--library) .ld-collection-lab__missions,
body.ld-collection-lab-page .ld-collection-lab:not(.ld-collection-lab--library) .ld-collection-lab__creations {
  margin-inline: 0.5rem;
  max-width: none;
}

.ld-collection-lab__controls {
  grid-area: controls;
  max-height: calc(100dvh - var(--ld-header-h, 76px) - 2.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
}

.ld-collection-lab__preview {
  grid-area: preview;
}

.ld-collection-lab__controls h2 {
  margin: 0 0 1rem;
  font-family: var(--ld-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.ld-collection-lab__group {
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.ld-collection-lab__group > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 0.85rem;
  font-family: var(--ld-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  user-select: none;
}

.ld-collection-lab__group > summary::-webkit-details-marker {
  display: none;
}

.ld-collection-lab__group > summary::after {
  content: "+";
  float: right;
  color: var(--ld-cyan, #00d4ff);
  font-weight: 700;
}

.ld-collection-lab__group[open] > summary::after {
  content: "?";
}

.ld-collection-lab__group-body {
  padding: 0.35rem 0.85rem 0.55rem;
}

.ld-collection-lab__group-note {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab__file-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ld-collection-lab__file-row input[type="file"] {
  flex: 1 1 auto;
  min-width: 0;
}

.ld-collect-clear-layer {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.ld-collect-clear-layer[hidden] {
  display: none !important;
}

.ld-collection-lab__field span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--ld-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-cyan, #00d4ff);
}

.ld-collection-lab__field em {
  font-style: normal;
  color: #fff;
}

.ld-collection-lab__pos-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.ld-collection-lab__pos-row input[type="range"] {
  flex: 1 1 auto;
  min-width: 0;
}

.ld-collection-lab__pos-num {
  flex: 0 0 4.25rem;
  width: 4.25rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font: inherit;
  text-align: center;
}

.ld-collection-lab__field input[type="text"],
.ld-collection-lab__field input[type="color"],
.ld-collection-lab__field input[type="file"],
.ld-collection-lab__field select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
}

/* Selects Lab : fond bleu nuit + s?lection cyan (comme LD Cartes Studio) */
.ld-collection-lab,
.ld-collection-lab--library {
  color-scheme: dark;
}

.ld-collection-lab select,
.ld-collection-lab .ld-collection-lab__field select,
.ld-collection-lab .ld-collect-missions__card,
.ld-collection-lab--library select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #0d1424;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0, 212, 255, 0.85) 50%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.85) 50%, transparent 50%),
    linear-gradient(180deg, #151c2e 0%, #0a101c 100%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 11px) calc(50% - 3px),
    0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 212, 255, 0.28);
  color: #f4f7ff;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ld-collection-lab select:hover,
.ld-collection-lab .ld-collection-lab__field select:hover,
.ld-collection-lab .ld-collect-missions__card:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background-color: #121a2e;
}

.ld-collection-lab select:focus,
.ld-collection-lab .ld-collection-lab__field select:focus,
.ld-collection-lab .ld-collect-missions__card:focus {
  outline: none;
  border-color: var(--ld-cyan, #00d4ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 2px rgba(0, 212, 255, 0.22);
}

.ld-collection-lab select option,
.ld-collection-lab .ld-collection-lab__field select option,
.ld-collection-lab .ld-collect-missions__card option {
  background-color: #0d1424;
  color: #f4f7ff;
}

.ld-collection-lab select option:checked,
.ld-collection-lab .ld-collection-lab__field select option:checked,
.ld-collection-lab .ld-collect-missions__card option:checked {
  background-color: #0a3a48;
  background: linear-gradient(90deg, #0a4a5c 0%, #0d1424 100%);
  color: #e8fbff;
}

.ld-collection-lab__field input[type="color"] {
  padding: 0.25rem;
  height: 2.5rem;
  cursor: pointer;
}

.ld-collection-lab__field input[type="range"] {
  width: 100%;
  accent-color: var(--ld-cyan, #00d4ff);
}

.ld-collection-lab__field--check {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ld-collection-lab__field--check span {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.ld-collection-lab__field--check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ld-cyan, #00d4ff);
  cursor: pointer;
  flex: 0 0 auto;
}

.ld-collection-lab__field.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ld-collection-lab__hint-drag {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.ld-collect-stock__export {
  align-self: flex-start;
  min-height: 1.75rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ld-collection-lab__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 280px;
  align-self: start;
  position: sticky;
  top: calc(var(--ld-header-h, 76px) + 1rem);
  z-index: 3;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.1), transparent 62%),
    linear-gradient(180deg, #2a3142 0%, #1c2230 55%, #151a26 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ld-collection-lab__stage-label {
  font-family: var(--ld-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-holo-test__card {
  cursor: default;
}

/* Zoom lightbox dispo : grille Lab / bibliothèque / fiche joueur */
.ld-collection-lab .ld-holo-test__card,
.ld-collection-cards-page .ld-holo-test__card,
#ld-player-collection .ld-holo-test__card {
  cursor: zoom-in;
}

/* Page « Voir ma carte » : déjà en grand, pas de zoom */
.ld-collect-specimen .ld-holo-test__card {
  cursor: default;
}

/* Mes cartes : le clic carte n’ouvre pas le zoom (opts / liens à côté) */
#ld-mes-cartes-grid .ld-holo-test__card {
  cursor: default;
}

/* Lightbox plein ?cran ? plus de petit cadre serr? */
/* Empêche le pinch / scroll page pendant le zoom carte */
html.ld-collect-zoom-open,
html.ld-collect-zoom-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

.ld-collect-zoom {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  touch-action: none;
}

/* Sans [open], display:flex cassait le dialog ferm? ? hint visible sur la fiche */
.ld-collect-zoom:not([open]) {
  display: none !important;
}

.ld-collect-zoom[open] {
  display: flex;
}

.ld-collect-zoom::backdrop {
  background: rgba(28, 34, 48, 0.92);
  backdrop-filter: blur(8px);
}

.ld-collect-zoom__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.72);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.ld-collect-zoom__close:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.ld-collect-zoom__stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding: 3.5rem 1.5rem 2.75rem;
  box-sizing: border-box;
  /* Perspective uniquement sur le wrap carte (?vite double perspective) */
  perspective: none;
  touch-action: none;
  overscroll-behavior: contain;
}

@media (max-width: 720px) {
  .ld-collect-zoom__stage {
    padding: 2.75rem 0.45rem 2.85rem;
    gap: 0.55rem;
  }

  .ld-collect-zoom__close {
    top: 0.55rem;
    right: 0.55rem;
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.25rem;
  }

  .ld-collect-zoom__hint {
    bottom: 0.45rem;
    padding: 0 0.65rem;
    font-size: 0.66rem;
  }

  .ld-collect-zoom__stage .ld-collect-zoom__unlock {
    max-width: min(94vw, 420px);
    padding: 0.4rem 0.45rem;
  }

  .ld-collect-zoom__stage .ld-collect-zoom__unlock-date {
    font-size: 0.68rem;
  }

  .ld-collect-zoom__stage .ld-collect-zoom__unlock-how {
    font-size: 0.8rem;
  }
}

.ld-collect-zoom__stage .ld-collect-zoom__unlock {
  flex: 0 0 auto;
  margin: 0;
  max-width: var(--ld-zoom-w, min(92vw, 560px));
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(5, 7, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.ld-collect-zoom__stage .ld-collect-zoom__unlock-date {
  display: block;
  margin: 0 0 0.3rem;
  font-family: var(--ld-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.ld-collect-zoom__stage .ld-collect-zoom__unlock-how {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.ld-collect-zoom__stage .ld-holo-test__wrap {
  width: var(--ld-zoom-w, min(86vw, 560px));
  max-width: min(100%, 92vw);
  max-height: min(78dvh, 92svh);
  flex: 0 0 auto;
  perspective: 900px;
  transform-style: preserve-3d;
  /* Ombre CSS box (pas filter) : beaucoup moins cher pendant le tilt mobile */
  filter: none;
}

.ld-holo-test__card.ld-holo-test__card--zoomed {
  touch-action: none;
}

.ld-collect-zoom__stage .ld-holo-test__card {
  width: var(--ld-zoom-w, 100%);
  height: var(--ld-zoom-h, auto);
  max-width: min(100%, var(--ld-zoom-w, 100%));
  max-height: min(78dvh, var(--ld-zoom-h, 78dvh));
  cursor: grab;
  will-change: transform;
  transition: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  overflow: hidden;
  border-radius: var(--ld-card-radius, 5% / 3.5%);
  /* iOS zoom/tilt : clip plus ferme (?vite fuite bas de photo) */
  -webkit-clip-path: inset(0.35px round var(--ld-card-radius, 5% / 3.5%));
  clip-path: inset(0.35px round var(--ld-card-radius, 5% / 3.5%));
  box-shadow:
    0 0 0 1px #f3f0e6,
    0 0 0 2px #8f8a7c,
    0 18px 36px rgba(0, 0, 0, 0.45);
}

.ld-collect-zoom__stage .ld-holo-test__card.is-active {
  will-change: transform;
}

/*
 * Mobile zoom-idle : calques foil/holo + 3D CSS auto.
 * clip-path OBLIGATOIRE sur iOS (overflow:hidden ne clippe pas en preserve-3d
 * → le cadre / foil déborde sur les côtés).
 */
.ld-collect-zoom__stage .ld-holo-test__wrap--zoom-idle {
  perspective: 900px;
  filter: none;
  pointer-events: none;
  overflow: visible;
}

.ld-collect-zoom__stage .ld-holo-test__card--zoom-idle {
  cursor: default;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--ld-card-radius, 5% / 3.5%);
  -webkit-clip-path: inset(0 round var(--ld-card-radius, 5% / 3.5%));
  clip-path: inset(0 round var(--ld-card-radius, 5% / 3.5%));
  /* Anim plus douce : moins de fuite perspective sur les bords */
  animation-name: ld-holo-test-card-mobile, ld-holo-test-foil-vars;
}

@keyframes ld-holo-test-card-mobile {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
  }
  20% {
    transform: translate3d(0, 0, 0) rotateX(5deg) rotateY(-10deg);
  }
  45% {
    transform: translate3d(0, 0, 0) rotateX(-6deg) rotateY(12deg);
  }
  70% {
    transform: translate3d(0, 0, 0) rotateX(4deg) rotateY(8deg);
  }
}

/* Cadre : rester strictement dans la carte en zoom mobile */
.ld-collect-zoom__stage .ld-holo-test__card--zoom-idle .ld-holo-test__rim {
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.ld-collect-zoom__stage .ld-holo-test__card--zoom-idle .ld-holo-test__rim-foil,
.ld-collect-zoom__stage .ld-holo-test__card--zoom-idle .ld-holo-test__rim-edge {
  inset: calc(-1 * var(--ld-frame-w, 3.2cqw));
  max-width: none;
}

@media (hover: none), (pointer: coarse) {
  .ld-collect-zoom::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(18, 22, 32, 0.94);
  }

  .ld-collect-zoom__stage .ld-holo-test__card.is-active::before,
  .ld-collect-zoom__stage .ld-holo-test__card.is-active .ld-holo-test__rim-foil--grad,
  .ld-collect-zoom__stage .ld-holo-test__card.is-active::after,
  .ld-collect-zoom__stage .ld-holo-test__card.is-active .ld-holo-test__rim-foil--spark {
    filter: none;
  }

  .ld-collect-zoom__stage .ld-holo-test__art--bg,
  .ld-collect-zoom__stage .ld-holo-test__art--mid,
  .ld-collect-zoom__stage .ld-holo-test__art--fg {
    filter: none !important;
  }

  .ld-collect-zoom__stage .ld-holo-test__card--obsidian .ld-holo-test__art--bg,
  .ld-collect-zoom__stage .ld-holo-test__card--obsidian .ld-holo-test__art--mid,
  .ld-collect-zoom__stage .ld-holo-test__card--obsidian .ld-holo-test__art--fg {
    filter: grayscale(1) brightness(1.15) !important;
  }
}

.ld-collect-zoom__stage .ld-holo-test__card:active,
.ld-collect-zoom__stage .ld-holo-test__card.is-active {
  cursor: grabbing;
}

.ld-collect-zoom__stage .ld-holo-test__art--bg,
.ld-collect-zoom__stage .ld-holo-test__art--mid,
.ld-collect-zoom__stage .ld-holo-test__art--fg {
  /* high-quality / auto : ?vite le rendu ? pixel ? de optimize-contrast */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fond net en zoom : pas de blur CSS ? le clip des coins est sur la carte */
.ld-collect-zoom__stage .ld-holo-test__art--bg {
  --ld-bg-blur: 0px;
  border-radius: 0;
  filter:
    contrast(calc(var(--ld-bg-contrast, 1) * 1.06))
    saturate(var(--ld-bg-saturate, 1))
    brightness(calc(var(--ld-bg-bright, 1) * 1.02))
    blur(0px) !important;
  transform: translate(
      calc(var(--ld-holo-pos-x, 50%) - 50%),
      calc(var(--ld-holo-pos-y, 50%) - 50%)
    )
    scale(var(--ld-holo-zoom, 1));
  transform-origin: center center;
}

.ld-collect-zoom__stage .ld-holo-test__card--cover .ld-holo-test__art--bg {
  transform: translate(
      calc(var(--ld-holo-pos-x, 50%) - 50%),
      calc(var(--ld-holo-pos-y, 50%) - 50%)
    )
    scale(max(1, var(--ld-holo-zoom, 1)));
  transform-origin: center center;
}

.ld-collect-zoom__stage .ld-holo-test__card--obsidian .ld-holo-test__art--bg {
  filter:
    grayscale(1)
    contrast(calc(var(--ld-bg-contrast, 1) * 1.02))
    brightness(calc(var(--ld-bg-bright, 1) * 1.28))
    blur(0px) !important;
}

/* Texte ? plat en zoom (pas de translateZ) + chrome complet conserv? */
.ld-collect-zoom__stage .ld-holo-test__meta {
  transform: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ld-collect-zoom__stage .ld-holo-test__series,
.ld-collect-zoom__stage .ld-holo-test__title {
  transform: translateY(-7.75cqw);
}

/* Zoom : texte holo ? plat (les calques foil gardent leur rendu) */
.ld-collect-zoom__stage .ld-holo-test__card.ld-holo-test__card--text-holo .ld-holo-test__series,
.ld-collect-zoom__stage .ld-holo-test__card.ld-holo-test__card--text-holo .ld-holo-test__title {
  transform: translateY(-7.75cqw);
  filter: none;
  text-shadow: none;
}

/* Zoom : foil carte + anim plus pr?sents */
.ld-collect-zoom__stage .ld-holo-test__card {
  --ld-zoom-foil-boost: 1.25;
}

.ld-collect-zoom__stage .ld-holo-test__card.is-animated,
.ld-collect-zoom__stage .ld-holo-test__card.is-animated::before,
.ld-collect-zoom__stage .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--grad,
.ld-collect-zoom__stage .ld-holo-test__card.is-animated::after,
.ld-collect-zoom__stage .ld-holo-test__card.is-animated .ld-holo-test__rim-foil--spark,
.ld-collect-zoom__stage .ld-holo-test__card--fx-classic.is-animated::before,
.ld-collect-zoom__stage .ld-holo-test__card--fx-classic.is-animated .ld-holo-test__rim-foil--grad {
  animation-iteration-count: infinite;
}

.ld-collect-zoom__stage .ld-holo-test__card.is-active::before,
.ld-collect-zoom__stage .ld-holo-test__card.is-active .ld-holo-test__rim-foil--grad {
  opacity: calc(0.62 * var(--ld-foil-str, 1) * var(--ld-zoom-foil-boost, 1));
  filter: brightness(0.62) contrast(1.28) saturate(1.15);
}

.ld-collect-zoom__stage .ld-holo-test__card.is-active::after,
.ld-collect-zoom__stage .ld-holo-test__card.is-active .ld-holo-test__rim-foil--spark {
  opacity: calc(0.72 * var(--ld-foil-str, 1) * var(--ld-zoom-foil-boost, 1));
  filter: brightness(0.95) contrast(1.5) saturate(1.15);
}

.ld-collect-zoom__stage .ld-holo-test__card.is-active .ld-holo-test__glare {
  opacity: calc(0.7 * var(--ld-foil-str, 1) * (0.4 + var(--ld-pfc, 0) * 0.65));
}

.ld-collect-zoom__stage .ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--grad,
.ld-collect-zoom__stage .ld-holo-test__card--text-holo:not(.ld-holo-test__card--text-fx-chrome) .ld-holo-test__text-foil--spark {
  opacity: max(0.85, var(--ld-text-foil-str, 1)) !important;
  filter:
    brightness(calc(1.45 + 0.6 * var(--ld-text-foil-str, 1)))
    contrast(calc(1.35 + 0.5 * var(--ld-text-foil-str, 1)))
    saturate(calc(1.35 + 0.6 * var(--ld-text-foil-str, 1))) !important;
}

.ld-collect-zoom__stage .ld-holo-test__card--no-text-stroke .ld-holo-test__series,
.ld-collect-zoom__stage .ld-holo-test__card--no-text-stroke .ld-holo-test__title,
.ld-collect-zoom__stage .ld-holo-test__card--text-holo.ld-holo-test__card--no-text-stroke .ld-holo-test__series,
.ld-collect-zoom__stage .ld-holo-test__card--text-holo.ld-holo-test__card--no-text-stroke .ld-holo-test__title {
  -webkit-text-stroke: 0 transparent;
}

.ld-collect-zoom__stage .ld-holo-test__art--fg {
  --ld-fg-blur: 0px;
  --ld-fg-contrast: 1.28;
  --ld-fg-saturate: 1.1;
  filter:
    drop-shadow(0 2px 4px rgba(255, 255, 255, 0.16))
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.42))
    brightness(1.03)
    contrast(var(--ld-fg-contrast))
    saturate(var(--ld-fg-saturate))
    blur(0px);
}

.ld-collect-zoom__stage .ld-holo-test__card--obsidian .ld-holo-test__art--fg {
  filter:
    grayscale(1)
    drop-shadow(0 2px 4px rgba(255, 255, 255, 0.22))
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35))
    brightness(1.22)
    contrast(calc(var(--ld-fg-contrast, 1.28) * 1.02))
    saturate(0)
    blur(0px);
}

.ld-collect-zoom__stage .ld-holo-test__card--obsidian .ld-holo-test__art--mid {
  filter:
    grayscale(1)
    drop-shadow(0 2px 4px rgba(255, 255, 255, 0.22))
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35))
    brightness(1.22)
    contrast(calc(var(--ld-mid-contrast, 1) * 1.02))
    saturate(0)
    blur(0px);
}

/* Badge net en zoom ? m?me proportion PC / mobile (cqw uniquement) */
.ld-collect-zoom__stage .ld-holo-test__card .ld-collect-card__rarity.ld-rarity-badge {
  transform: translate3d(0, 0, 1px);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-size: 3.05cqw;
  letter-spacing: 0.09em;
  padding: 1cqw 2cqw;
}

.ld-collect-zoom__stage .ld-holo-test__card--builder:not(.ld-holo-test__card--badge-under-foil) .ld-collect-card__rarity.ld-rarity-badge {
  z-index: 9;
}

.ld-collect-zoom__stage .ld-holo-test__card--builder.ld-holo-test__card--badge-under-foil .ld-collect-card__rarity.ld-rarity-badge {
  z-index: 2;
}

.ld-collect-zoom__stage .ld-collect-card__rarity.ld-rarity-badge--metal {
  font-size: 2.9cqw;
  padding: 0.9cqw 1.85cqw;
  border-width: max(1px, 0.3cqw);
  border-radius: 0.65cqw;
  box-shadow: 0 0 0.5cqw var(--ld-metal-glow);
  filter: contrast(1.08) saturate(1.05);
}

.ld-collect-zoom__stage .ld-collect-card__rarity.ld-rarity-badge--metal::before,
.ld-collect-zoom__stage .ld-collect-card__rarity.ld-rarity-badge--metal::after {
  transform: translateZ(0);
}

.ld-collect-zoom__hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  z-index: 4;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* PC : message clavier/souris ? tactile : inclinaison / doigt */
.ld-collect-zoom__hint-touch {
  display: none;
}

.ld-collect-zoom__hint-desk {
  display: inline;
}

@media (hover: none), (pointer: coarse) {
  .ld-collect-zoom__hint-touch {
    display: inline;
  }

  .ld-collect-zoom__hint-desk {
    display: none;
  }
}

/*
 * Zoom : all?ger filter carte (GPU) ? sans toucher au texte holo
 * (les calques .text-foil gardent color-dodge / screen).
 */
.ld-collect-zoom__stage .ld-holo-test__card--fx-radiant::before,
.ld-collect-zoom__stage .ld-holo-test__card--fx-radiant .ld-holo-test__rim-foil--grad {
  filter: brightness(0.7) contrast(1.5) saturate(1.2);
}
.ld-collect-zoom__stage .ld-holo-test__card--fx-radiant::after,
.ld-collect-zoom__stage .ld-holo-test__card--fx-radiant .ld-holo-test__rim-foil--spark {
  mix-blend-mode: soft-light;
  filter: brightness(0.95) contrast(1.4) saturate(1.2);
  background-blend-mode: soft-light, soft-light, soft-light;
}

.ld-collect-zoom__stage .ld-holo-test__card--fx-pokev::before,
.ld-collect-zoom__stage .ld-holo-test__card--fx-pokev .ld-holo-test__rim-foil--grad {
  mix-blend-mode: soft-light;
  filter: brightness(0.98) contrast(1.55) saturate(0.85);
}
.ld-collect-zoom__stage .ld-holo-test__card--fx-pokev::after,
.ld-collect-zoom__stage .ld-holo-test__card--fx-pokev .ld-holo-test__rim-foil--spark {
  filter: brightness(1.08) contrast(1.45) saturate(1.15);
}

.ld-collect-zoom__stage .ld-holo-test__card--fx-gallery::before,
.ld-collect-zoom__stage .ld-holo-test__card--fx-gallery .ld-holo-test__rim-foil--grad {
  mix-blend-mode: soft-light;
  filter: brightness(calc((var(--ld-pfc) * 0.25) + 0.82)) contrast(1.5) saturate(1);
}
.ld-collect-zoom__stage .ld-holo-test__card--fx-gallery::after,
.ld-collect-zoom__stage .ld-holo-test__card--fx-gallery .ld-holo-test__rim-foil--spark {
  filter: brightness(calc((var(--ld-pfc) * 0.2) + 0.78)) contrast(1.15) saturate(1.05);
}

.ld-collect-zoom__stage .ld-holo-test__fg-holo--radiant::before,
.ld-collect-zoom__stage .ld-holo-test__mid-holo--radiant::before,
.ld-collect-zoom__stage .ld-holo-test__fg-holo--radiant::after,
.ld-collect-zoom__stage .ld-holo-test__mid-holo--radiant::after,
.ld-collect-zoom__stage .ld-holo-test__fg-holo--pokev::before,
.ld-collect-zoom__stage .ld-holo-test__mid-holo--pokev::before,
.ld-collect-zoom__stage .ld-holo-test__fg-holo--pokev::after,
.ld-collect-zoom__stage .ld-holo-test__mid-holo--pokev::after,
.ld-collect-zoom__stage .ld-holo-test__fg-holo--gallery::before,
.ld-collect-zoom__stage .ld-holo-test__mid-holo--gallery::before,
.ld-collect-zoom__stage .ld-holo-test__fg-holo--gallery::after,
.ld-collect-zoom__stage .ld-holo-test__mid-holo--gallery::after{
  filter: brightness(1.05) contrast(1.25) saturate(0.95);
}

.ld-collect-lab-toggles {
  margin: 1.35rem 0 0;
  padding: 1.1rem 1.15rem 1.2rem;
  max-width: 56rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(18, 24, 42, 0.72), rgba(5, 7, 15, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.ld-collect-lab-toggles::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--ld-gradient, linear-gradient(135deg, #00d4ff, #ff2d95));
  opacity: 0.7;
  pointer-events: none;
}

.ld-collect-lab-toggles__head {
  margin: 0 0 0.95rem;
  padding-right: 0.25rem;
}

.ld-collect-lab-toggles__k {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--ld-font-display, "Rajdhani", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ld-gradient, linear-gradient(135deg, #00d4ff, #ff2d95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ld-collect-lab-toggles__head p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ld-collect-lab-toggles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ld-collect-public-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin: 0;
  padding: 0.95rem 1rem;
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(5, 7, 15, 0.42);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ld-collect-public-toggle:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(5, 7, 15, 0.58);
}

.ld-collect-public-toggle:has(input:checked) {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.08);
}

.ld-collect-public-toggle__copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.ld-collect-public-toggle strong {
  color: #fff;
  font-family: var(--ld-font-display, "Rajdhani", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.ld-collect-public-toggle em {
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.ld-collect-public-toggle__switch {
  position: relative;
  flex: none;
  width: 2.7rem;
  height: 1.5rem;
}

.ld-collect-public-toggle__switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ld-collect-public-toggle__switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ld-collect-public-toggle__switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.ld-collect-public-toggle__switch input:checked + i {
  background: rgba(0, 212, 255, 0.35);
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.ld-collect-public-toggle__switch input:checked + i::after {
  transform: translateX(1.15rem);
}

.ld-collect-public-toggle__switch input:focus-visible + i {
  outline: 2px solid var(--ld-cyan, #00d4ff);
  outline-offset: 2px;
}

.ld-collect-public-toggle__switch input:disabled + i {
  opacity: 0.45;
}

@media (max-width: 719px) {
  .ld-collect-lab-toggles {
    padding: 0.95rem 0.85rem 1rem;
  }

  .ld-collect-lab-toggles__grid {
    grid-template-columns: 1fr;
  }
}

.ld-collection-lab__missions {
  margin: 0 0 2rem;
}

.ld-collect-missions__panel {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(5, 7, 15, 0.45);
}

.ld-collect-missions__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.ld-collect-missions__summary-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.ld-collect-missions__summary-main strong {
  font-family: var(--ld-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ld-collect-missions__summary-main em {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.ld-collect-missions__panel > .ld-collect-missions__summary::after {
  content: "+";
  float: none;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ld-cyan, #00d4ff);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.ld-collect-missions__panel[open] > .ld-collect-missions__summary::after {
  content: "?";
}

.ld-collect-missions__body {
  padding: 0.15rem 0.65rem 0.65rem;
}

.ld-collect-missions__table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(5, 7, 15, 0.45);
}

.ld-collect-missions__panel .ld-collect-missions__table {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ld-collect-missions__row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ld-collect-missions__row:last-child {
  border-bottom: 0;
}

.ld-collect-missions__row.is-linked {
  background: rgba(247, 201, 72, 0.06);
}

.ld-collect-missions__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ld-collect-missions__action {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ld-collect-missions__title {
  font-family: var(--ld-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ld-collect-missions__meta {
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}

.ld-collect-missions__prep {
  white-space: nowrap;
  min-height: 2.1rem;
  padding-inline: 0.75rem;
  font-size: 0.78rem;
}

.ld-collect-missions__hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.ld-collect-missions__hint:not([hidden]) {
  display: block;
}

.ld-collect-missions__status {
  grid-column: 1 / -1;
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(122, 240, 255, 0.95);
  margin-top: -0.2rem;
}

.ld-collect-missions__status.is-error {
  color: #ff9eb0;
}

.ld-collect-missions__card {
  width: 100%;
  min-height: 2.1rem;
  font-size: 0.82rem;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .ld-collect-missions__row {
    grid-template-columns: 1fr;
  }

  .ld-collect-missions__prep {
    width: 100%;
  }
}

.ld-collection-lab__creations {
  margin-bottom: 2.5rem;
}

.ld-collect-creations__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1.1rem;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ld-collect-creations__filter {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.15rem 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--ld-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ld-collect-creations__filter:hover,
.ld-collect-creations__filter:focus-visible {
  color: #fff;
  outline: none;
}

.ld-collect-creations__filter.is-active {
  color: #fff;
  border-bottom-color: var(--ld-cyan, #3de0ff);
}

.ld-collect-creations__groups {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.ld-collect-creations__group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.ld-collect-creations__group-head h3 {
  margin: 0;
  font-family: var(--ld-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.ld-collect-creations__group-head span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
}

.ld-collect-creations__group[hidden] {
  display: none !important;
}

.ld-collect-qty {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 12;
  min-width: 1.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 7, 15, 0.82);
  color: #fff;
  font-family: var(--ld-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

.ld-holo-test__card-delete {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 20;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.72);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.ld-holo-test__card-delete:hover {
  border-color: rgba(255, 77, 109, 0.7);
  background: rgba(255, 77, 109, 0.35);
}

.ld-collect-stock {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(5, 7, 15, 0.55);
}

/* Panneau biblioth?que ? hi?rarchie claire */
.ld-collect-stock--library {
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 24, 42, 0.92), rgba(8, 11, 22, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ld-collect-stock--library .ld-collect-stock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ld-collect-stock--library .ld-collect-stock__meta {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c5cddf;
  line-height: 1.3;
}

.ld-collect-stock--library .ld-collect-stock__visibility {
  flex: none;
  align-self: center;
  min-height: 1.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
}

.ld-collect-stock--library .ld-collect-stock__primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.ld-collect-stock--library .ld-collect-stock__primary .ld-btn {
  width: 100%;
  min-height: 2.35rem;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 9px;
}

.ld-collect-stock--library .ld-collect-stock__btn--primary {
  color: #041018;
  background: linear-gradient(135deg, #00d4ff, #5ce1ff);
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.2);
}

.ld-collect-stock--library .ld-collect-stock__btn--primary:hover {
  filter: brightness(1.06);
}

.ld-collect-stock--library .ld-collect-stock__btn--accent {
  color: #fff;
  background: rgba(255, 45, 149, 0.16);
  border-color: rgba(255, 45, 149, 0.45);
}

.ld-collect-stock--library .ld-collect-stock__btn--accent:hover {
  background: rgba(255, 45, 149, 0.26);
}

.ld-collect-stock--library .ld-collect-stock__btn--accent:disabled,
.ld-collect-stock--library .ld-collect-stock__btn--accent.is-sold-out {
  opacity: 0.45;
  filter: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
}

.ld-collect-stock--library .ld-collect-stock__tools {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.35rem;
}

.ld-collect-stock--library .ld-collect-stock__tools .ld-btn {
  width: 100%;
  min-height: 2rem;
  justify-content: center;
  padding: 0.35rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: none;
  border-radius: 8px;
  color: #d6dcec;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.ld-collect-stock--library .ld-collect-stock__tools .ld-btn:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.1);
}

.ld-collect-stock--library .ld-collect-stock__holders.is-empty {
  opacity: 0.65;
}

.ld-collect-stock--library .ld-collect-stock__link.is-copied {
  color: #7af0ff;
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.14);
}

.ld-collect-stock--library.ld-collect-stock--auto .ld-collect-stock__primary {
  grid-template-columns: 1fr;
}

.ld-collect-stock__meta {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.ld-collect-stock__visibility {
  appearance: none;
  align-self: flex-start;
  margin: 0;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ld-collect-stock__visibility:hover,
.ld-collect-stock__visibility:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.ld-collect-stock__visibility.is-public {
  color: rgba(122, 240, 255, 0.95);
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
}

.ld-collect-stock__visibility.is-public:hover,
.ld-collect-stock__visibility.is-public:focus-visible {
  color: #b8f7ff;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.16);
}

.ld-collect-stock__visibility.is-private {
  color: rgba(255, 255, 255, 0.45);
}

.ld-collect-stock__link {
  align-self: flex-start;
  min-height: 1.75rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ld-collect-stock__link.is-copied {
  color: rgba(122, 240, 255, 0.95);
  border-color: rgba(0, 212, 255, 0.45);
}

.ld-collect-specimen {
  --ld-specimen-card-w: min(72vw, 300px);
  /* Header fixe : laisser la place sous le menu */
  padding: calc(var(--ld-header-h, 76px) + 2rem) 0 3.25rem;
  text-align: center;
}

.ld-collect-specimen__inner {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ld-collect-specimen__head {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ld-collect-specimen__head .ld-eyebrow {
  margin-bottom: 0.55rem;
}

.ld-collect-specimen__head h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.55rem, 6.2vw, 2.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

.ld-collect-specimen__meta {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ld-collect-specimen__value {
  margin: 0.35rem 0 0;
  color: #7ee9ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Limited Edition : d?grad? rose ? or (couleurs foil limited) */
.ld-collect-specimen__meta--limited {
  color: transparent;
  background: linear-gradient(
    105deg,
    #ff7a92 0%,
    #ff4d6d 28%,
    #ff8a5c 52%,
    #f7c948 78%,
    #ffe08a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 77, 109, 0.35));
}

.ld-collect-specimen__preview {
  margin: 0.85rem 0 0;
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 210, 120, 0.95);
  border: 1px solid rgba(255, 180, 60, 0.35);
  background: rgba(255, 160, 40, 0.1);
}

.ld-collect-specimen__stage {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 1.75rem;
  box-sizing: border-box;
  /* Marge pour le tilt 3D sans d?caler visuellement */
  overflow: visible;
}

.ld-collect-specimen__stage .ld-holo-test__wrap {
  width: var(--ld-specimen-card-w);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 22px rgba(0, 212, 255, 0.12));
}

.ld-collect-specimen__stage .ld-holo-test__card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  transform-origin: center center;
}

/* Tilt auto plus doux sur la page specimen (?vite le d?calage visuel) */
.ld-collect-specimen__stage .ld-holo-test__card.is-animated {
  animation-duration: 14s;
}

@media (max-width: 640px) {
  .ld-collect-specimen {
    --ld-specimen-card-w: min(78vw, 260px);
    padding: calc(var(--ld-header-h, 76px) + 1.35rem) 0 2.5rem;
  }

  .ld-collect-specimen__inner {
    padding-inline: 0;
  }

  .ld-collect-specimen__head {
    max-width: 18.5rem;
    margin-bottom: 0.85rem;
    padding-inline: 0.25rem;
  }

  .ld-collect-specimen__stage {
    padding: 0.85rem 0.75rem 1.35rem;
  }

  /* Sur mobile : tilt plus l?ger pour rester bien centr? */
  .ld-collect-specimen__stage .ld-holo-test__card.is-animated {
    animation-name: ld-holo-test-idle-soft;
  }
}

@keyframes ld-holo-test-idle-soft {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  35% {
    transform: rotateX(4deg) rotateY(-10deg);
  }
  70% {
    transform: rotateX(-5deg) rotateY(12deg);
  }
}

.ld-collect-stock__give {
  width: 100%;
  justify-content: center;
  min-height: 2rem;
  font-size: 0.82rem;
}

.ld-collect-stock__give:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ld-collect-stock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ld-collect-stock__actions .ld-btn {
  flex: 1 1 auto;
  min-height: 2rem;
  font-size: 0.78rem;
  justify-content: center;
}

.ld-collect-stock__meta.is-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.ld-collect-stock__meta.is-clickable:hover {
  color: #fff;
  text-decoration-color: rgba(0, 212, 255, 0.65);
}

.ld-collect-creations__more {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0.25rem;
}

.ld-collect-creations__more .ld-btn {
  min-height: 2.2rem;
  font-size: 0.82rem;
}

/* Catalogue plein ?cran */
.ld-collect-catalog {
  width: min(1120px, 96vw);
  max-width: 96vw;
  height: min(90vh, 900px);
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at 88% 0%, rgba(255, 45, 149, 0.08), transparent 45%),
    #0a0e18;
  color: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ld-collect-catalog:not([open]) {
  display: none !important;
}

.ld-collect-catalog[open] {
  display: flex;
  flex-direction: column;
}

.ld-collect-catalog::backdrop {
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(6px);
}

.ld-collect-catalog__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex: none;
}

.ld-collect-catalog__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.ld-collect-catalog__titles h2 {
  margin: 0;
  font-size: 1.15rem;
}

.ld-collect-catalog__titles p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.ld-collect-catalog__filters {
  padding: 0.75rem 1.15rem 0;
  flex: none;
}

.ld-collect-catalog__grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.15rem;
  margin: 0;
  list-style: none;
}

.ld-collect-catalog__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.15rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex: none;
}

.ld-collect-catalog__pager .ld-btn {
  min-height: 2rem;
  font-size: 0.78rem;
}

.ld-collect-catalog__pager-info {
  flex: 1 1 100%;
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Modales d?tenteurs / distribution */
.ld-collect-manage {
  width: min(440px, 94vw);
  max-width: 94vw;
  max-height: min(82vh, 640px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #0c1220;
  color: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ld-collect-manage:not([open]) {
  display: none !important;
}

.ld-collect-manage[open] {
  display: block;
}

.ld-collect-manage::backdrop {
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(5px);
}

.ld-collect-manage__panel {
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 640px);
  margin: 0;
}

.ld-collect-manage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex: none;
}

.ld-collect-manage__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ld-collect-manage__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.ld-collect-manage__close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.ld-collect-manage__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ld-collect-manage .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ld-collect-manage__search {
  display: block;
  padding: 0.75rem 1rem 0.35rem;
  flex: none;
}

.ld-collect-manage__search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 7, 15, 0.65);
  color: #fff;
  font-size: 0.9rem;
}

.ld-collect-manage__search input:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
}

.ld-collect-manage__alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  padding: 0.35rem 1rem 0.15rem;
  flex: none;
}

.ld-collect-manage__alpha-btn {
  appearance: none;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1;
}

.ld-collect-manage__alpha-btn:hover {
  border-color: rgba(0, 212, 255, 0.45);
  color: #fff;
}

.ld-collect-manage__alpha-btn.is-active {
  border-color: rgba(0, 212, 255, 0.65);
  background: rgba(0, 212, 255, 0.18);
  color: #fff;
}

.ld-collect-manage__alpha.is-searching .ld-collect-manage__alpha-btn {
  opacity: 0.45;
}

.ld-collect-manage__alpha.is-searching .ld-collect-manage__alpha-btn.is-active {
  opacity: 1;
}

.ld-collect-manage__quota {
  margin: 0;
  padding: 0.35rem 1rem 0.55rem;
  font-size: 0.78rem;
  color: rgba(180, 235, 255, 0.9);
  flex: none;
}

.ld-collect-manage__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.65rem 0.85rem;
  flex: 1 1 auto;
  min-height: 8rem;
  max-height: 22rem;
  overflow: auto;
}

.ld-collect-manage__list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
}

.ld-collect-manage__list > li:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ld-collect-manage__list > li.is-empty {
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.ld-collect-manage__list > li.ld-collect-manage__letter-head {
  justify-content: flex-start;
  color: rgba(180, 235, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.ld-collect-manage__list--pick > li {
  cursor: pointer;
}

.ld-collect-manage__list--pick label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  font-size: 0.88rem;
}

.ld-collect-manage__list--pick input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ld-cyan, #00d4ff);
}

.ld-collect-manage__list--pick > li.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.ld-collect-manage__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-collect-manage__revoke {
  appearance: none;
  border: 1px solid rgba(255, 120, 140, 0.35);
  border-radius: 6px;
  background: rgba(255, 77, 109, 0.12);
  color: #ffb3c0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  flex: none;
}

.ld-collect-manage__revoke:hover {
  background: rgba(255, 77, 109, 0.28);
  color: #fff;
}

.ld-collect-manage__foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex: none;
}

#ld-collect-distribute-confirm.ld-btn--primary:not(:disabled) {
  background: linear-gradient(135deg, #00d4ff 0%, #3b82f6 100%);
  color: #05070f;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.28);
}

#ld-collect-distribute-confirm.ld-btn--primary:not(:disabled):hover {
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.4);
  color: #05070f;
}

#ld-collect-distribute-confirm:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.38);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.ld-holo-test__card-delete.is-locked,
.ld-holo-test__card-delete:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.ld-collect-stock--auto {
  border-color: rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.06);
}

.ld-collect-stock--auto .ld-collect-stock__meta {
  color: rgba(180, 235, 255, 0.92);
  line-height: 1.35;
}

.ld-collection-lab__grid > li.is-mission-auto .ld-collect-qty {
  display: none;
}

.ld-collection-lab__grid > li.is-stock-empty .ld-collect-stock {
  border-color: rgba(255, 77, 109, 0.35);
}

.ld-collection-lab__grid > li.ld-collect-card--copy .ld-holo-test__wrap {
  outline: 1px solid rgba(247, 201, 72, 0.22);
  outline-offset: 2px;
  border-radius: 14px;
}

.ld-collection-lab__fiche {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ld-radius, 12px);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(ellipse at 88% 0%, rgba(255, 45, 149, 0.08), transparent 45%),
    rgba(5, 7, 15, 0.55);
  overflow: hidden;
}

.ld-collection-lab__fiche-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ld-collection-lab__fiche-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: calc(var(--ld-radius, 12px) - 2px);
  border: 1px solid transparent;
  background:
    linear-gradient(#0a0e18, #0a0e18) padding-box,
    linear-gradient(145deg, rgba(0, 212, 255, 0.7), rgba(255, 255, 255, 0.2), rgba(255, 45, 149, 0.7)) border-box;
}

.ld-collection-lab__fiche-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
}

.ld-collection-lab__fiche-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.ld-collection-lab__fiche-eyebrow {
  font-family: var(--ld-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ld-cyan, #00d4ff);
}

.ld-collection-lab__fiche-name {
  font-family: var(--ld-font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.ld-collection-lab__fiche-stats {
  font-size: 0.9rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.ld-collection-lab__tab {
  appearance: none;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: calc(var(--ld-radius, 12px) - 2px);
  background: transparent;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
  font-family: var(--ld-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
}

.ld-collection-lab__tab.is-active {
  background: rgba(0, 212, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.35);
}

.ld-collection-lab__tab:disabled:not(.is-active) {
  opacity: 0.45;
}

.ld-collection-lab__panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1.35rem 1.25rem 1.75rem;
}

.ld-collection-lab__series-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.ld-collection-lab__series-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--ld-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ld-collection-lab__series-head p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.92rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collection-lab__series-progress {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  font-family: var(--ld-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ld-cyan, #00d4ff);
}

.ld-collection-lab__grid {
  --ld-collect-card-w: 220px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--ld-collect-card-w));
  gap: 1.15rem;
  justify-content: start;
}

.ld-collection-lab__grid--large {
  --ld-collect-card-w: 220px;
  grid-template-columns: repeat(auto-fill, var(--ld-collect-card-w));
  gap: 1.25rem;
}

.ld-collection-lab__grid > li {
  position: relative;
  width: var(--ld-collect-card-w);
}

/* ?? Cartes collector (taille unique + coins type Pok?mon) ?? */
.ld-collect-card {
  --ld-holo-x: 50%;
  --ld-holo-y: 40%;
  --ld-collect-accent: var(--ld-cyan, #00d4ff);
  --ld-art-x: 0px;
  --ld-art-y: 0px;
  --ld-art-scale: 1;
  --ld-collect-card-w: 220px;
  --ld-collect-radius: 1.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: var(--ld-collect-card-w);
  max-width: var(--ld-collect-card-w);
  aspect-ratio: 63 / 88;
  min-height: 0;
  border-radius: var(--ld-collect-radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.96), rgba(5, 7, 15, 0.98)) padding-box,
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--ld-collect-accent) 80%, #fff),
      rgba(255, 255, 255, 0.35),
      rgba(255, 45, 149, 0.65),
      color-mix(in srgb, var(--ld-collect-accent) 55%, transparent)
    ) border-box;
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, 0% 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    box-shadow 0.25s var(--ld-ease, ease),
    background-position 0.45s var(--ld-ease, ease),
    transform 0.35s var(--ld-ease, ease);
  animation: ld-collect-border 8s ease-in-out infinite;
}

/* Aper?u = m?me taille que les cartes termin?es
   (pas de flex-basis en px : en colonne ?a for?ait une hauteur carr?e) */
.ld-collect-card.ld-collect-card--preview {
  flex: 0 0 auto;
  align-self: center;
  width: var(--ld-collect-card-w);
  max-width: var(--ld-collect-card-w);
  height: auto;
  aspect-ratio: 63 / 88;
}

.ld-collect-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(
      118deg,
      transparent 0%,
      transparent 36%,
      rgba(0, 212, 255, 0.14) 44%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 45, 149, 0.16) 56%,
      transparent 68%,
      transparent 100%
    ),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 220% 100%, 24px 24px, 24px 24px;
  background-position: 130% 0, 0 0, 0 0;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 25%, #000 25%, transparent 75%);
  animation: ld-holo-sweep 6.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

.ld-collect-card.ld-holo::after {
  z-index: 4;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 28%,
    rgba(0, 212, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 45, 149, 0.4) 54%,
    rgba(184, 255, 60, 0.28) 60%,
    transparent 72%,
    transparent 100%
  );
  background-size: 240% 240%;
  background-position: var(--ld-holo-x) var(--ld-holo-y);
  mix-blend-mode: color-dodge;
  opacity: 0.2;
}

.ld-collect-card.ld-holo:hover::after,
.ld-collect-card.ld-holo.is-holo-active::after {
  opacity: 0.85;
}

.ld-collect-card.is-holo-active {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ld-collect-accent) 45%, transparent),
    0 0 28px color-mix(in srgb, var(--ld-collect-accent) 28%, transparent),
    0 0 42px rgba(255, 45, 149, 0.14),
    0 18px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ld-collect-card--rare {
  animation-duration: 6.5s;
}

.ld-collect-card--legendary {
  animation-duration: 5s;
  box-shadow:
    0 0 0 1px rgba(247, 201, 72, 0.25),
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(247, 201, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ld-collect-card--locked {
  filter: saturate(0.35) brightness(0.72);
  animation: none;
  cursor: default;
}

.ld-collect-card--locked::before {
  opacity: 0.2;
  animation: none;
}

.ld-collect-card__rarity {
  position: absolute;
  /* Proportionnel ? la largeur carte (cqw) ? pas de min rem qui grossit le badge sur mobile */
  top: 0.55rem;
  left: 0.55rem;
  top: 3cqw;
  left: 3cqw;
  z-index: 2;
  padding: 0.28rem 0.5rem;
  padding: 1.15cqw 2.1cqw;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.72);
  font-family: var(--ld-font-display);
  font-size: 0.62rem;
  font-size: 3.2cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

/* Badge builder : m?me ?chelle relative en grille et en zoom */
.ld-holo-test__card .ld-collect-card__rarity.ld-rarity-badge {
  font-size: 0.6rem;
  font-size: 3.05cqw;
}

/* Valeur LD (?conomie) */
.ld-holo-test__value {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 6;
  padding: 0.22rem 0.4rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(5, 10, 22, 0.78);
  color: #7ee9ff;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.58rem;
  font-size: 2.85cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.ld-collect-card--rare .ld-collect-card__rarity {
  border-color: rgba(0, 212, 255, 0.45);
  color: var(--ld-cyan, #00d4ff);
}

.ld-collect-card--legendary .ld-collect-card__rarity {
  border-color: rgba(247, 201, 72, 0.55);
  color: #f7c948;
}

.ld-collect-card--black .ld-collect-card__rarity {
  border-color: rgba(210, 218, 230, 0.55);
  background: rgba(36, 42, 54, 0.82);
  color: #f2f4f8;
}

.ld-collect-card--limited .ld-collect-card__rarity {
  border-color: rgba(255, 77, 109, 0.55);
  color: #ff4d6d;
}

/* Formats badge (sp?cificit? > .ld-collect-card__rarity) */
.ld-collect-card__rarity.ld-rarity-badge {
  --ld-rarity: #f4f7ff;
  --ld-rarity-rgb: 244, 247, 255;
  z-index: 5;
  line-height: 1;
  color: var(--ld-rarity);
  pointer-events: none;
}

.ld-collect-card__rarity.ld-rarity-badge--common {
  --ld-rarity: #7dffb0;
  --ld-rarity-rgb: 125, 255, 176;
}

.ld-collect-card__rarity.ld-rarity-badge--uncommon {
  --ld-rarity: #8fd4ff;
  --ld-rarity-rgb: 143, 212, 255;
}

.ld-collect-card__rarity.ld-rarity-badge--rare {
  --ld-rarity: #00d4ff;
  --ld-rarity-rgb: 0, 212, 255;
}

.ld-collect-card__rarity.ld-rarity-badge--epic {
  --ld-rarity: #c084fc;
  --ld-rarity-rgb: 192, 132, 252;
}

.ld-collect-card__rarity.ld-rarity-badge--legendary {
  --ld-rarity: #f7c948;
  --ld-rarity-rgb: 247, 201, 72;
}

.ld-collect-card__rarity.ld-rarity-badge--black {
  --ld-rarity: #e8eaef;
  --ld-rarity-rgb: 200, 205, 214;
}

.ld-collect-card__rarity.ld-rarity-badge--prism {
  --ld-rarity: #ec9bb6;
  --ld-rarity-rgb: 236, 155, 182;
}

.ld-collect-card__rarity.ld-rarity-badge--limited {
  --ld-rarity: #ff4d6d;
  --ld-rarity-rgb: 255, 77, 109;
}

.ld-collect-card__rarity.ld-rarity-badge--pill {
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(var(--ld-rarity-rgb), 0.45);
  border-radius: 999px;
  background: rgba(5, 7, 15, 0.78);
  color: var(--ld-rarity);
  box-shadow: none;
  text-shadow: none;
  transform: none;
}

.ld-collect-card__rarity.ld-rarity-badge--chip {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.34rem 0.5rem;
  border: 1px solid rgba(var(--ld-rarity-rgb), 0.55);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(var(--ld-rarity-rgb), 0.22), rgba(5, 7, 15, 0.88));
  color: var(--ld-rarity);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  text-shadow: none;
  transform: none;
}

.ld-collect-card__rarity.ld-rarity-badge--ribbon {
  top: 0;
  left: 0;
  padding: 0.55rem 0.85rem 0.4rem 0.55rem;
  border: 0;
  border-radius: 0 0 0.65rem 0;
  background: linear-gradient(135deg, rgba(var(--ld-rarity-rgb), 0.95), rgba(var(--ld-rarity-rgb), 0.55));
  color: #0a0e18;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35);
  text-shadow: none;
  transform: none;
}

.ld-collect-card__rarity.ld-rarity-badge--stamp {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.38rem 0.45rem;
  border: 2px solid rgba(var(--ld-rarity-rgb), 0.85);
  border-radius: 2px;
  background: rgba(5, 7, 15, 0.35);
  color: var(--ld-rarity);
  letter-spacing: 0.14em;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(var(--ld-rarity-rgb), 0.25);
  text-shadow: none;
}

.ld-collect-card__rarity.ld-rarity-badge--banner {
  top: 0.85rem;
  left: 0;
  padding: 0.38rem 0.75rem 0.38rem 0.65rem;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: rgba(var(--ld-rarity-rgb), 0.92);
  color: #0a0e18;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-shadow: none;
  transform: none;
}

.ld-collect-card__rarity.ld-rarity-badge--slash {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.36rem 0.7rem;
  border: 0;
  border-radius: 0;
  background: rgba(5, 7, 15, 0.82);
  color: var(--ld-rarity);
  transform: skewX(-12deg);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ld-rarity-rgb), 0.55),
    0 3px 10px rgba(0, 0, 0, 0.35);
  text-shadow: none;
}

.ld-collect-card__rarity.ld-rarity-badge--glow {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.34rem 0.6rem;
  border: 1px solid rgba(var(--ld-rarity-rgb), 0.75);
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--ld-rarity-rgb), 0.45), rgba(5, 7, 15, 0.9) 70%);
  color: #fff;
  text-shadow: 0 0 10px rgba(var(--ld-rarity-rgb), 0.85);
  box-shadow:
    0 0 12px rgba(var(--ld-rarity-rgb), 0.45),
    0 0 22px rgba(var(--ld-rarity-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: none;
}

.ld-collect-card__rarity.ld-rarity-badge--metal {
  --ld-metal-hi: #f4f6f8;
  --ld-metal-mid: #b8c6db;
  --ld-metal-lo: #7a8799;
  --ld-metal-ink: #1a1f28;
  --ld-metal-glow: rgba(180, 200, 220, 0.35);
  top: 0.5rem;
  left: 0.5rem;
  top: 2.75cqw;
  left: 2.75cqw;
  overflow: hidden;
  isolation: isolate;
  padding: 0.2rem 0.45rem;
  padding: 0.95cqw 1.95cqw;
  border: 1px solid color-mix(in srgb, var(--ld-metal-hi) 55%, #000);
  border-radius: 3px;
  border-radius: 0.7cqw;
  font-size: 0.58rem;
  font-size: 2.95cqw;
  background: linear-gradient(
    125deg,
    var(--ld-metal-hi) 0%,
    var(--ld-metal-mid) 32%,
    var(--ld-metal-lo) 48%,
    var(--ld-metal-mid) 64%,
    var(--ld-metal-hi) 100%
  );
  background-size: 220% 220%;
  color: var(--ld-metal-ink) !important;
  letter-spacing: 0.11em;
  text-shadow: none;
  box-shadow: 0 0 10px var(--ld-metal-glow);
  transform: none;
  animation: ld-rarity-metal-shift 5.5s ease-in-out infinite;
}

/* Commune = acier froid */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--common {
  --ld-metal-hi: #eef6f1;
  --ld-metal-mid: #9dceb0;
  --ld-metal-lo: #4f8a66;
  --ld-metal-ink: #0f2418;
  --ld-metal-glow: rgba(125, 255, 176, 0.35);
  animation-duration: 7s;
}

/* Peu commune = acier bleu clair */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--uncommon {
  --ld-metal-hi: #f0f8ff;
  --ld-metal-mid: #9bc8e8;
  --ld-metal-lo: #4a7fa8;
  --ld-metal-ink: #0c1e2e;
  --ld-metal-glow: rgba(143, 212, 255, 0.4);
  animation-duration: 6.2s;
}

/* Rare = chrome cyan */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--rare {
  --ld-metal-hi: #e8fbff;
  --ld-metal-mid: #6ed7f0;
  --ld-metal-lo: #1287a8;
  --ld-metal-ink: #04242e;
  --ld-metal-glow: rgba(0, 212, 255, 0.45);
  animation-duration: 5s;
}

/* ?pique = violet */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--epic {
  --ld-metal-hi: #f5eaff;
  --ld-metal-mid: #c084fc;
  --ld-metal-lo: #7c3aed;
  --ld-metal-ink: #1a0a2e;
  --ld-metal-glow: rgba(192, 132, 252, 0.5);
  animation-duration: 4.5s;
}

/* L?gendaire = or */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--legendary {
  --ld-metal-hi: #fff8e8;
  --ld-metal-mid: #e8c85a;
  --ld-metal-lo: #a67c1a;
  --ld-metal-ink: #1a1204;
  --ld-metal-glow: rgba(247, 201, 72, 0.5);
  animation-duration: 4.2s;
}

/* Prism = iris? rose / violet */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--prism {
  --ld-metal-hi: #fff0f7;
  --ld-metal-mid: #d9a8ff;
  --ld-metal-lo: #ec9bb6;
  --ld-metal-ink: #2a1030;
  --ld-metal-glow: rgba(236, 155, 182, 0.5);
  animation-duration: 3.6s;
}

/* Black Edition = chrome graphite / argent */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--black {
  --ld-metal-hi: #f0f3f8;
  --ld-metal-mid: #9aa3b0;
  --ld-metal-lo: #4a5260;
  --ld-metal-ink: #12151c;
  --ld-metal-glow: rgba(210, 220, 235, 0.55);
  border-color: color-mix(in srgb, #e8ecf2 65%, #6a7380);
  animation-duration: 5.2s;
}

.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--black::before {
  animation-duration: 4s;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 34%,
    rgba(245, 248, 255, 0.7) 48%,
    rgba(180, 190, 210, 0.28) 58%,
    transparent 70%,
    transparent 100%
  );
  background-size: 220% 100%;
}

/* Limited Edition = m?tal rouge / or */
.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--limited {
  --ld-metal-hi: #ffe8ec;
  --ld-metal-mid: #ff4d6d;
  --ld-metal-lo: #a01830;
  --ld-metal-ink: #1a0408;
  --ld-metal-glow: rgba(255, 77, 109, 0.5);
  animation-duration: 3.8s;
}

.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--limited::before {
  animation-duration: 2.8s;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(247, 201, 72, 0.35) 40%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 77, 109, 0.4) 60%,
    transparent 100%
  );
  background-size: 220% 100%;
}

.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--prism::after {
  background:
    linear-gradient(
      110deg,
      rgba(236, 155, 182, 0.25),
      rgba(167, 139, 250, 0.2),
      rgba(110, 215, 240, 0.25),
      rgba(125, 255, 176, 0.15)
    ),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 1px,
      rgba(255, 255, 255, 0.08) 1px,
      rgba(255, 255, 255, 0.08) 2px
    );
  opacity: 0.85;
}

.ld-collect-card__rarity.ld-rarity-badge--metal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.15) 54%,
    transparent 64%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: ld-rarity-metal-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}

.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--legendary::before {
  animation-duration: 3s;
}

.ld-collect-card__rarity.ld-rarity-badge--metal.ld-rarity-badge--prism::before {
  animation-duration: 2.6s;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(236, 155, 182, 0.35) 40%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(110, 215, 240, 0.35) 60%,
    transparent 100%
  );
  background-size: 220% 100%;
}

.ld-collect-card__rarity.ld-rarity-badge--metal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0,
    transparent 1px,
    rgba(255, 255, 255, 0.06) 1px,
    rgba(255, 255, 255, 0.06) 2px
  );
  mix-blend-mode: soft-light;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes ld-rarity-metal-shift {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

@keyframes ld-rarity-metal-sheen {
  0%,
  100% {
    background-position: 130% 0;
    opacity: 0.35;
  }
  45%,
  55% {
    background-position: -40% 0;
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-collect-card__rarity.ld-rarity-badge--metal,
  .ld-collect-card__rarity.ld-rarity-badge--metal::before {
    animation: none;
  }
}

/* Photo quasi plein cadre ; texte en overlay bas */
.ld-collect-card__art {
  position: absolute;
  inset: 0.5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: calc(var(--ld-collect-radius) - 0.4rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--ld-collect-accent) 22%, transparent), transparent 70%),
    rgba(0, 0, 0, 0.28);
  touch-action: none;
}

.ld-collect-card__art--editable {
  cursor: grab;
}

.ld-collect-card__art--editable.is-dragging {
  cursor: grabbing;
}

.ld-collect-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: translate(var(--ld-art-x), var(--ld-art-y)) scale(var(--ld-art-scale));
  transform-origin: center center;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--ld-collect-accent) 40%, transparent));
  transition: filter 0.35s var(--ld-ease, ease);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ld-collect-card__art--editable img {
  pointer-events: none;
}

.ld-collect-card--locked .ld-collect-card__art img {
  opacity: 0.22;
  filter: grayscale(1) brightness(0.5);
}

.ld-collect-card__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 15, 0.35);
}

.ld-collect-card__lock::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px 6px 8px 8px;
  box-shadow: inset 0 -10px 0 -8px rgba(255, 255, 255, 0.45);
  background:
    radial-gradient(circle at 50% 38%, transparent 0 5px, rgba(255, 255, 255, 0.5) 5.5px 7px, transparent 7.5px),
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35));
  background-size: 100% 100%, 12px 10px;
  background-position: 0 0, 50% 72%;
  background-repeat: no-repeat;
  opacity: 0.85;
}

.ld-collect-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 2.75rem 0.95rem 0.95rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 7, 15, 0.55) 35%,
    rgba(5, 7, 15, 0.92) 100%
  );
  pointer-events: none;
}

.ld-collect-card__series {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ld-collect-accent) 75%, #fff);
  opacity: 0.85;
}

.ld-collect-card__title {
  margin: 0;
  font-family: var(--ld-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}

.ld-collect-card__hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
}

.ld-collect-card__hint--owned {
  color: #7dffb0;
}

.ld-collection-lab__note {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ld-muted, rgba(255, 255, 255, 0.55));
  text-align: center;
}

@keyframes ld-collect-border {
  0%,
  100% {
    background-position: 0 0, 0% 40%;
  }
  50% {
    background-position: 0 0, 100% 60%;
  }
}

@media (max-width: 1100px) {
  .ld-collection-lab__atelier.ld-studio-atelier {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "canvas canvas"
      "layers inspector";
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .ld-collection-lab__atelier {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "controls";
  }

  .ld-collection-lab__atelier.ld-studio-atelier {
    grid-template-columns: 1fr;
    grid-template-areas:
      "canvas"
      "layers"
      "inspector";
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .ld-collection-lab__controls {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .ld-collection-lab__preview {
    position: sticky;
    top: calc(var(--ld-header-h, 76px) + 0.5rem);
    min-width: 0;
    padding: 0.85rem 0.9rem 1rem;
    margin: 0 0 0.5rem;
    background:
      radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, 0.1), transparent 62%),
      linear-gradient(180deg, #2a3142 0%, #1c2230 55%, #151a26 100%);
    backdrop-filter: blur(8px);
  }

  .ld-studio-canvas .ld-collection-lab__preview {
    position: static;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .ld-collection-lab__preview-wrap,
  .ld-collection-lab__preview .ld-holo-test__wrap.ld-collection-lab__preview-wrap {
    width: min(260px, 72vw);
    max-width: min(260px, 72vw);
  }

  .ld-collection-lab__preview .ld-holo-test__card {
    max-width: min(260px, 72vw);
  }
}

@media (max-width: 640px) {
  .ld-collection-lab,
  .ld-collection-lab__grid,
  .ld-collect-card {
    --ld-collect-card-w: 160px;
    --ld-collect-radius: 1rem;
  }

  .ld-collection-lab__fiche-banner {
    flex-direction: column;
    text-align: center;
  }

  .ld-collection-lab__tabs {
    justify-content: center;
  }

  .ld-collection-lab__series-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ld-collection-lab__series-head p {
    margin-inline: auto;
  }

  .ld-collection-lab__grid,
  .ld-collection-lab__grid--large {
    grid-template-columns: repeat(2, var(--ld-collect-card-w));
    gap: 0.85rem;
    justify-content: center;
  }

  .ld-collection-lab__grid > li {
    width: var(--ld-collect-card-w);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ld-collect-card,
  .ld-collect-card::before {
    animation: none;
  }
}

/* ?? Dossiers Cartes cr??es ?? */
.ld-collect-creations__head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 0.85rem;
}

.ld-collect-creations__folder-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ld-collect-sync-banner {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.ld-collect-sync-banner[hidden] {
  display: none !important;
}

.ld-collect-sync-banner.is-warn {
  color: #5c3b00;
  background: rgba(255, 196, 60, 0.16);
  border-color: rgba(255, 170, 0, 0.35);
}

.ld-collect-sync-banner.is-error {
  color: #6b1020;
  background: rgba(255, 60, 90, 0.12);
  border-color: rgba(255, 60, 90, 0.28);
}

.ld-lab-folders__icon.is-incomplete .ld-lab-folders__count {
  color: #c47a00;
  font-weight: 600;
}

.ld-collect-stock__visibility.is-local-only {
  color: #5c3b00;
  background: rgba(255, 196, 60, 0.2);
  border-color: rgba(255, 170, 0, 0.4);
}

.ld-lab-folders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.75rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0.25rem 0 0.95rem;
  border-bottom: 1px solid rgba(15, 35, 55, 0.12);
  width: 100%;
}

.ld-lab-folders__icon,
.ld-lab-folders__current {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.4rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.ld-lab-folders__current {
  cursor: default;
  border-color: rgba(0, 180, 220, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

.ld-lab-folders__icon:hover {
  border-color: rgba(0, 180, 220, 0.35);
  background: rgba(0, 212, 255, 0.06);
}

.ld-lab-folders__icon.is-active {
  border-color: rgba(0, 180, 220, 0.55);
  background: rgba(0, 212, 255, 0.12);
}

.ld-lab-folders__glyph-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 58px;
  font-size: 1.6rem;
  line-height: 1;
}

.ld-lab-folders__glyph {
  width: 64px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.ld-lab-folders__glyph-back { fill: #c9a24a; }
.ld-lab-folders__glyph-tab { fill: #e0b65a; }
.ld-lab-folders__glyph-front { fill: #f0c96a; }

.ld-lab-folders__icon--new .ld-lab-folders__glyph-back { fill: #d6dee8; }
.ld-lab-folders__icon--new .ld-lab-folders__glyph-tab { fill: #e4ebf3; }
.ld-lab-folders__icon--new .ld-lab-folders__glyph-front {
  fill: #eef3f8;
  stroke: rgba(0, 180, 220, 0.45);
  stroke-width: 1.2;
}

.ld-lab-folders__plus {
  position: absolute;
  z-index: 1;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0090b0;
  pointer-events: none;
}

.ld-lab-folders__icon--back .ld-lab-folders__glyph-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 220, 0.35);
  background: rgba(0, 212, 255, 0.08);
  font-size: 1.35rem;
}

.ld-lab-folders__label {
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-lab-folders__count {
  font-size: 0.7rem;
  opacity: 0.65;
  line-height: 1;
}

.ld-lab-folders.is-drop-ready .ld-lab-folders__icon[data-folder]:not([data-folder="all"]) {
  outline: 1px dashed rgba(0, 180, 220, 0.5);
  outline-offset: 2px;
}

.ld-lab-folders__icon.is-drop-target {
  border-color: #2bb673 !important;
  background: rgba(43, 182, 115, 0.14) !important;
  transform: scale(1.05);
}

.ld-lab-card--draggable {
  cursor: grab;
}

.ld-lab-card--draggable.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.ld-lab-prompt {
  border: 1px solid rgba(0, 180, 220, 0.35);
  border-radius: 12px;
  padding: 0;
  max-width: min(92vw, 22rem);
  background: #fff;
  color: #122033;
  box-shadow: 0 18px 48px rgba(10, 24, 40, 0.22);
}

.ld-lab-prompt::backdrop {
  background: rgba(8, 18, 32, 0.45);
}

.ld-lab-prompt__form {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 1.05rem;
}

.ld-lab-prompt__form h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ld-lab-prompt__hint {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.35;
}

.ld-lab-prompt__field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.ld-lab-prompt__field input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(15, 35, 55, 0.18);
  border-radius: 8px;
  font: inherit;
}

.ld-lab-prompt__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.ld-lab-prompt--choice {
  max-width: min(92vw, 26rem);
}

.ld-lab-prompt__choices {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.ld-lab-prompt__choices .ld-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
}

.ld-lab-prompt__danger {
  color: #c62828 !important;
  border-color: rgba(198, 40, 40, 0.45) !important;
}

.ld-lab-prompt__danger:hover,
.ld-lab-prompt__danger:focus-visible {
  color: #fff !important;
  background: rgba(198, 40, 40, 0.88) !important;
  border-color: #c62828 !important;
}
