.cv-vfx-art-parent { position:relative; }

.cv-card-vfx-layer {
  position:absolute;
  z-index:3;
  display:block;
  isolation:isolate;
  border-radius:inherit;
  overflow:hidden;
  pointer-events:none;
  contain:strict;
}
.cv-card-vfx-surface {
  mix-blend-mode:screen;
  --cv-vfx-x:50%;
  --cv-vfx-y:42%;
  --cv-film-opacity:calc(var(--cv-vfx-strength) * .57);
}
.cv-card-vfx-surface::before,
.cv-card-vfx-surface::after {
  content:"";
  position:absolute;
  pointer-events:none;
}
.cv-card-vfx-surface::before {
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(ellipse at 50% 120%,var(--cv-vfx-aura),transparent 64%),
    linear-gradient(131deg,var(--cv-vfx-ink),transparent 23%,transparent 81%,var(--cv-vfx-prism));
  box-shadow:inset 0 0 12px 1px var(--cv-vfx-ink);
  opacity:calc(var(--cv-vfx-strength) * .29);
  animation:cv-atmosphere-breathe var(--cv-vfx-pace) ease-in-out infinite;
}
.cv-card-vfx-surface::after {
  inset:-12%;
  background:
    radial-gradient(ellipse at var(--cv-vfx-x) var(--cv-vfx-y),#fff5,transparent 46%),
    radial-gradient(circle at 22% 21%,#fff 0 1px,transparent 2px),
    radial-gradient(circle at 71% 26%,var(--cv-vfx-prism) 0 1px,transparent 2px),
    radial-gradient(circle at 77% 68%,var(--cv-vfx-aura) 0 1px,transparent 2px),
    linear-gradient(110deg,transparent 40%,var(--cv-vfx-ink) 46%,var(--cv-vfx-prism) 48%,#fff 49%,transparent 53%);
  translate:-22%;
  opacity:var(--cv-film-opacity);
  animation:cv-film-idle var(--cv-vfx-pace) ease-in-out infinite;
}
.cv-card-vfx-surface[data-vfx-tier="legendary"]::before {
  background:radial-gradient(ellipse at 50% 125%,#ffc069 0 36%,transparent 63%),
    repeating-conic-gradient(from -44deg at 50% 112%,transparent 0 13deg,#ffe7a6 14deg,transparent 18deg 31deg);
}
.cv-card-vfx-surface[data-vfx-tier="mythic"]::before {
  background:radial-gradient(ellipse at 50% 95%,transparent 41%,#c58aff 48%,#8e48ff55 53%,transparent 66%),
    radial-gradient(ellipse at 35% 82%,var(--cv-vfx-aura),transparent 62%);
}
.cv-card-vfx-surface[data-vfx-tier="secret"]::before {
  background:radial-gradient(ellipse at 50% 87%,transparent 36%,#e9f8ff 43%,#9c9eff 45%,transparent 49%),
    radial-gradient(ellipse at 7% 84%,#9173ec,transparent 41%);
}
.cv-card-vfx-surface[data-vfx-paper="true"] {
  --cv-film-opacity:calc(var(--cv-vfx-strength) * .37);
}
[data-vfx-active] .cv-card-vfx-surface::after {
  --cv-film-opacity:calc(var(--cv-vfx-strength) * .82);
  translate:0;
  animation:none;
}
.cv-card-vfx-surface[data-vfx-gpu="true"]::after { opacity:0; }
.cv-vfx-shader {
  position:absolute;
  display:block;
  inset:0;
  width:100%;
  height:100%;
  mix-blend-mode:screen;
}
.cv-card-vfx-surface[data-vfx-paper="true"] > .cv-vfx-shader { opacity:.76; }
@keyframes cv-atmosphere-breathe {
  0%,100% { opacity:calc(var(--cv-vfx-strength) * .25); }
  55% { opacity:calc(var(--cv-vfx-strength) * .41); }
}
@keyframes cv-film-idle {
  0%,18%,100% { opacity:calc(var(--cv-film-opacity) * .44); translate:-24%; }
  58% { opacity:var(--cv-film-opacity); translate:22% -1.4%; }
  78% { opacity:calc(var(--cv-film-opacity) * .51); translate:29%; }
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html:not([data-reduced="true"]) :is(.character,.cv-draft-card)[data-vfx-active="pointer"] {
    transform:perspective(820px) translateY(-2px) rotateX(var(--cv-vfx-rx,0deg)) rotateY(var(--cv-vfx-ry,0deg));
  }
  html:not([data-reduced="true"]) .inspect-portrait[data-vfx-active="pointer"] {
    rotate:var(--cv-vfx-axis,0 1 0) var(--cv-vfx-angle,0deg);
    translate:0 -1px;
    transition:rotate 150ms ease-out,translate 150ms ease-out;
  }
  html:not([data-reduced="true"]) .character[data-vfx-active="pointer"] > :is([data-portrait],.cv-portrait-fallback) {
    translate:var(--cv-vfx-parallax-x,0px) var(--cv-vfx-parallax-y,0px);
  }
}
@media (pointer:coarse) and (prefers-reduced-motion:no-preference) {
  html:not([data-reduced="true"]) :is(.character,.cv-draft-card):active { scale:.992; }
}

.cv-card-vfx-burst { mix-blend-mode:screen; }
.cv-vfx-wave {
  position:absolute;
  inset:10%;
  border:1px solid var(--cv-vfx-prism);
  border-radius:50%;
  box-shadow:inset 0 0 18px var(--cv-vfx-ink);
  opacity:0;
  transform-origin:50% 58%;
  animation:cv-foil-wave var(--cv-vfx-burst-time) cubic-bezier(.16,.76,.25,1) both;
}
.cv-card-vfx-burst[data-vfx-tier="epic"] > .cv-vfx-wave {
  border-width:2px;
  border-radius:37% 53% 41% 48%;
}
.cv-card-vfx-burst[data-vfx-tier="legendary"] > .cv-vfx-wave {
  background:repeating-conic-gradient(from 12deg,transparent 0 14deg,#ffe4a67f 15deg,transparent 18deg 30deg);
  mask-image:radial-gradient(transparent 37%,#000 55%,transparent 70%);
}
.cv-card-vfx-burst[data-vfx-tier="mythic"] > .cv-vfx-wave {
  border-width:3px;
  border-style:double;
  background:radial-gradient(ellipse,transparent 40%,#e098ff8c 49%,transparent 65%);
}
.cv-card-vfx-burst[data-vfx-tier="secret"] > .cv-vfx-wave {
  background:radial-gradient(ellipse,transparent 45%,#d6ecff8b 48%,#8975ed64 51%,transparent 62%);
}
.cv-vfx-spark {
  position:absolute;
  left:50%;
  top:57%;
  width:var(--cv-vfx-size);
  height:var(--cv-vfx-size);
  border-radius:1px;
  background:var(--cv-vfx-prism);
  box-shadow:0 0 5px 1px var(--cv-vfx-aura);
  opacity:0;
  animation:cv-foil-spark var(--cv-vfx-burst-time) var(--cv-vfx-delay) cubic-bezier(.14,.69,.32,1) both;
}
@keyframes cv-foil-spark {
  0% { opacity:0; transform:translate(0,0) rotate(var(--cv-vfx-twist)) scale(.2); }
  18% { opacity:.86; }
  100% { opacity:0; transform:translate(var(--cv-vfx-dx),var(--cv-vfx-dy)) rotate(var(--cv-vfx-twist)) scale(.42); }
}
@keyframes cv-foil-wave {
  0% { opacity:0; transform:scale(.22); }
  15% { opacity:.57; }
  100% { opacity:0; transform:scale(1.45); }
}
html[data-vfx-quality="low"] .cv-card-vfx-surface::before { animation:none; }
html[data-vfx-quality="low"] .cv-card-vfx-surface::after {
  animation:none;
  opacity:calc(var(--cv-film-opacity) * .46);
}
html[data-vfx-hidden="true"] .cv-card-vfx-surface::before,
html[data-vfx-hidden="true"] .cv-card-vfx-surface::after,
html[data-vfx-hidden="true"] :is(.cv-vfx-spark,.cv-vfx-wave) {
  animation-play-state:paused;
}
html[data-reduced="true"] .cv-card-vfx-surface::before,
html[data-reduced="true"] .cv-card-vfx-surface::after,
html[data-reduced="true"] :is(.cv-vfx-spark,.cv-vfx-wave) {
  animation:none;
}
html[data-reduced="true"] :is(.cv-card-vfx-burst,.cv-vfx-shader) { display:none; }
@media (prefers-reduced-motion:reduce) {
  .cv-card-vfx-surface::before,.cv-card-vfx-surface::after,.cv-vfx-spark,.cv-vfx-wave { animation:none; }
  .cv-card-vfx-burst,.cv-vfx-shader { display:none; }
}

#screen[inert] .cv-card-vfx-surface::before,#screen[inert] .cv-card-vfx-surface::after,#screen[inert] .cv-card-vfx-layer * {animation-play-state:paused}
