/* guildle's styles: the Mythic finishes (finish-mythic.js draws their textures; finish.js lists them). Stormcaller,
   Leviathan, Clockwork, Aurora, Crystal, Wraithlight, Blood Moon, Wildwood, Opaline and Wild Magic, built in the Finish
   Lab prototype on the same layers as finishes.css. Loads after finishes.css. */
:is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) :is(.fin-back, .fin-fx)::before, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) :is(.fin-back, .fin-fx)::after { content: none; position: absolute; pointer-events: none; }
:is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .fin-foil { background-blend-mode: normal; filter: none; }
/* The "plain" foil every new finish starts from: a soft light that follows the pointer. */
:is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .fin-foil { background: radial-gradient(circle at var(--mx) var(--my), var(--nf-light, rgba(255,255,255,.7)), transparent 46%); mix-blend-mode: color-dodge; opacity: calc((.12 + var(--on) * .5) * var(--amt)); }

/* The rarity label keeps the card's rarity colour over every new finish. */
.card.face:is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .f-rarity { background: color-mix(in srgb, var(--rc) 75%, #000); border-color: color-mix(in srgb, var(--rc) 40%, #fff); color: #fff; }
.card.legendary.face:is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .f-rarity { background: linear-gradient(105deg, #8a5d0c, #f6dc85 45%, #c8921c 70%, #fff4c8); border-color: #5e410b; color: #2a1804; }

/* ---------------------------------------------------------------- Stormcaller
   Storm clouds roil across a darkened card; rain slants down; lightning forks across it now and then, lighting the
   whole card as it strikes; a crackle of live arcs runs round the border and never sits still. */
.card.fin-storm { --nf-light: rgba(170, 215, 255, .8); }
.fin-storm .fin-back { opacity: var(--amt); background: var(--nf-clouds) 0 0 / 220px 220px, linear-gradient(170deg, #1a2336, #070b16 70%, #121a2c);
  animation: nf-drift 60s linear infinite; }
@keyframes nf-drift { to { background-position: -440px 110px, 0 0; } }
.fin-storm .fin-back::after { content: ""; inset: 0; background: var(--nf-clouds) 60px 30px / 300px 300px; opacity: .45; mix-blend-mode: screen; animation: nf-drift2 38s linear infinite; }
@keyframes nf-drift2 { to { background-position: -540px 30px; } }
.fin-storm .fin-back::before { content: ""; inset: -10%; background: var(--nf-rain) 0 0 / 70px 70px; opacity: .55; animation: nf-rain .5s linear infinite; }
@keyframes nf-rain { to { background-position: -19px 70px; } }
.fin-storm .fin-fx { opacity: var(--amt); }
.fin-storm .fin-fx::before, .fin-storm .fin-fx::after { content: ""; inset: 0; border-radius: inherit; opacity: 0; mix-blend-mode: screen; }
.fin-storm .fin-fx::before { background: var(--nf-bolt1) 0 0 / 100% 100%, radial-gradient(ellipse at 45% 30%, rgba(190, 225, 255, .55), rgba(120, 170, 255, .12) 70%); animation: nf-strike 6.3s linear infinite 1.2s; }
.fin-storm .fin-fx::after { background: var(--nf-bolt2) 0 0 / 100% 100%, radial-gradient(ellipse at 60% 40%, rgba(190, 225, 255, .5), rgba(120, 170, 255, .1) 70%); animation: nf-strike 9.1s linear infinite 4.4s; }
@keyframes nf-strike { 0%, 70% { opacity: 0; } 70.6% { opacity: 1; } 71.4% { opacity: .1; } 72.2% { opacity: .95; } 73% { opacity: .6; } 76% { opacity: 0; } 100% { opacity: 0; } }
.fin-storm .fx-text { --tx: #eef6ff !important; --tsh: rgba(0, 8, 25, .9) !important; --tg: repeating-linear-gradient(115deg, hsl(205 100% 80% / var(--ta)) 0%, hsl(190 100% 95% / var(--ta)) 6%, hsl(220 90% 70% / var(--ta)) 12%, hsl(205 100% 80% / var(--ta)) 18%); }
.card.fin-storm .f-emblem svg { color: #bfe2ff; }
.card.fin-storm .f-emblem { --eg: linear-gradient(115deg, #ffffff, #9fd4ff 40%, #3a6aaa 60%, #e8f6ff); --eo: .55; --glow: rgba(110, 190, 255, .95); }
.card.fin-storm .f-emblem svg { animation: nf-charge 6.3s linear infinite 1.2s; }
@keyframes nf-charge { 0%, 70% { filter: drop-shadow(0 0 .6cqw rgba(110, 190, 255, .7)); } 71% { filter: drop-shadow(0 0 4cqw #e6f4ff) brightness(1.6); } 76%, 100% { filter: drop-shadow(0 0 .6cqw rgba(110, 190, 255, .7)); } }

/* ---------------------------------------------------------------- Leviathan
   The card sinks into deep water: light falls in shafts that sway with the swell, caustics ripple over it, bubbles
   rise, and far below, something vast and long glides slowly past. */
.card.fin-deep { --nf-light: rgba(120, 255, 235, .7); }
.fin-deep .fin-back { opacity: var(--amt); background: radial-gradient(ellipse at 50% -10%, rgba(80, 220, 210, .55), transparent 60%), linear-gradient(#0f6a80, #08465a 50%, #04222f 100%); }
.fin-deep .fin-back::before { content: ""; inset: -20% -30% 10%; transform-origin: 50% 0;
  background: repeating-linear-gradient(97deg, transparent 0 5%, rgba(170, 255, 245, .22) 6.5%, transparent 8.5%, transparent 12%, rgba(170, 255, 245, .12) 13%, transparent 15%);
  -webkit-mask: linear-gradient(#000, transparent 80%); mask: linear-gradient(#000, transparent 80%); filter: blur(.8cqw); animation: nf-sway 9s ease-in-out infinite alternate; }
@keyframes nf-sway { from { transform: skewX(-8deg) translateX(-3%); } to { transform: skewX(8deg) translateX(3%); } }
.fin-deep .fin-fx { opacity: var(--amt); }
.fin-deep .fin-fx::before { content: ""; inset: 0; border-radius: inherit; opacity: calc(.42 + var(--on) * .25); mix-blend-mode: screen;
  background: var(--nf-caustic1) 0 0 / 150px 150px, var(--nf-caustic2) 0 0 / 190px 190px; animation: nf-caustic 22s linear infinite;
  -webkit-mask: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 85%); mask: linear-gradient(#000 0%, rgba(0,0,0,.6) 45%, transparent 85%); }
@keyframes nf-caustic { to { background-position: 150px 75px, -190px 95px; } }
.fin-deep .fin-fx::after { content: ""; inset: 0; border-radius: inherit; background: var(--nf-bubbles) 0 0 / 45% auto; opacity: 1; z-index: 1; animation: nf-bubble 11s linear infinite; }
@keyframes nf-bubble { to { background-position: 0 -150%; } }
.fin-deep .fx-text { --tx: #e8fffb !important; --tsh: rgba(0, 18, 26, .9) !important; --tg: repeating-linear-gradient(115deg, hsl(170 100% 75% / var(--ta)) 0%, hsl(190 100% 88% / var(--ta)) 8%, hsl(160 80% 60% / var(--ta)) 16%, hsl(170 100% 75% / var(--ta)) 24%); }
.card.fin-deep .f-emblem { --eg: linear-gradient(160deg, #c8fff5, #2ad1c9 45%, #0a6f8a 70%, #c8fff5); --eo: .55; --glow: rgba(60, 230, 210, .85); }
.card.fin-deep .f-emblem svg { animation: nf-bob 6s ease-in-out infinite; }
@keyframes nf-bob { 50% { transform: translateY(-1.4cqw) rotate(1.5deg); } }

/* ---------------------------------------------------------------- Clockwork
   The face of a fine watch: a sunburst dial whose brushed rays throw two bright wedges of light that swing round as
   the card turns, engine-turned guilloché rings that shimmer against each other, an engraved chapter ring of Roman
   numerals round the emblem, a riveted frame and four ruby jewels that glint when the light reaches them. */
.card.fin-clockwork { --nf-light: rgba(255, 230, 160, .75); }
.fin-clockwork .fin-back { opacity: var(--amt);
  background: radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(40, 20, 0, .55) 100%),
    repeating-conic-gradient(from 0deg at 50% 48%, rgba(255, 244, 210, .12) 0 .6deg, rgba(70, 40, 0, .12) .6deg 1.2deg),
    linear-gradient(150deg, #d6a84e, #9a6a22 40%, #e0b860 60%, #7a5216); }
@property --nf-sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fin-clockwork .fin-back::before { content: ""; inset: 0; mix-blend-mode: overlay; z-index: 1; animation: nf-sweep 9s linear infinite;
  background: conic-gradient(from calc(var(--ox) * 70deg + var(--oy) * 50deg + var(--nf-sweep)) at 50% 48%, transparent 0deg, rgba(255, 250, 225, .95) 18deg, transparent 40deg, transparent 180deg, rgba(255, 250, 225, .95) 198deg, transparent 220deg); }
@keyframes nf-sweep { to { --nf-sweep: 360deg; } }
/* the engine-turned rings, turning very slowly against the still ones, so the moiré between them shifts */
.fin-clockwork .fin-back .fin-rot { width: 100%; }
.fin-clockwork .fin-back .fin-rot::before, .fin-clockwork .fin-back .fin-rot::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.fin-clockwork .fin-back .fin-rot::before { background: var(--nf-guil-sq) center / 100% 100% no-repeat; mix-blend-mode: overlay; animation: fin-spin 40s linear infinite; }
/* a blued-steel seconds hand ticking round behind the emblem */
.fin-clockwork .fin-back .fin-rot::after { z-index: 2; background: var(--nf-hand) center / 100% 100% no-repeat; filter: drop-shadow(.3cqw .5cqw .3cqw rgba(40, 20, 0, .45)); animation: fin-spin 60s linear infinite; }
.fin-clockwork .fin-back::after { content: ""; inset: 0; z-index: 1; background: var(--nf-guil2) calc(var(--ox) * 4px) calc(var(--oy) * 4px) / 100% 100%, var(--nf-dial) 0 0 / 100% 100%; }
.fin-clockwork .fin-fx { opacity: var(--amt); background: var(--nf-jewels) 0 0 / 100% 100%, var(--nf-rivets) 0 0 / 100% 100%; }
.fin-clockwork .fin-fx::before { content: ""; inset: 0; border-radius: inherit; mix-blend-mode: screen;
  background: radial-gradient(circle at 8% 15.7%, rgba(255, 120, 140, .95), transparent 4%), radial-gradient(circle at 92% 15.7%, rgba(255, 120, 140, .95), transparent 4%),
    radial-gradient(circle at 8% 91.4%, rgba(255, 120, 140, .95), transparent 4%), radial-gradient(circle at 92% 91.4%, rgba(255, 120, 140, .95), transparent 4%);
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 30%); mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 30%); opacity: calc(.4 + var(--on) * .6); }
.fin-clockwork .fin-fx::after { content: ""; inset: 0; border-radius: inherit; mix-blend-mode: screen; background: var(--nf-ruby-glints) 0 0 / 100% 100%; }
/* a second set of engine-turned rings, turning the other way, so the moiré between them ripples */
.fin-clockwork .fin-back .fin-rot { isolation: isolate; }
.fin-clockwork .fin-back::after { animation: nf-guil 30s linear infinite; }
@keyframes nf-guil { to { filter: hue-rotate(0deg); } }
.fin-clockwork .f-emblem::before { content: ""; position: absolute; left: 50%; top: 50%; width: 175%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none;
  background: var(--nf-guil-sq2) center / 100% 100% no-repeat; mix-blend-mode: overlay; animation: fin-spin 26s linear infinite reverse; }
/* a hairline of light chasing round the chapter ring */
.fin-clockwork .fin-foil::after { content: ""; position: absolute; left: 50%; top: 48%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 252, 230, .95) 8deg, transparent 30deg);
  -webkit-mask: radial-gradient(circle, transparent 86%, #000 88%, #000 99%, transparent 100%); mask: radial-gradient(circle, transparent 86%, #000 88%, #000 99%, transparent 100%);
  animation: fin-spin 4s linear infinite; mix-blend-mode: screen; }
.fin-clockwork .fin-foil { background-image: linear-gradient(105deg, transparent 30%, rgba(255, 244, 205, .95) 46%, rgba(255, 220, 140, .35) 54%, transparent 70%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: var(--mx) 0; mix-blend-mode: overlay; opacity: calc((.3 + var(--on) * .55) * var(--amt)); }
.fin-clockwork .fx-text { --tx: #2a1804 !important; --tsh: rgba(255, 236, 190, .8) !important; --tg: linear-gradient(105deg, hsl(38 80% 22% / var(--ta)) 30%, hsl(45 100% 60% / var(--ta)) 46%, hsl(32 80% 20% / var(--ta)) 58%); }
.card.fin-clockwork .f-emblem { --eg: linear-gradient(105deg, #5c380a 25%, #fff0b8 45%, #b4802a 55%, #3a2405 75%); --eo: .85; --glow: rgba(40, 20, 0, .4); }
.card.fin-clockwork .f-emblem svg { color: #3a2405; filter: drop-shadow(.25cqw .25cqw 0 rgba(255, 245, 210, .6)) drop-shadow(0 1cqw 1.2cqw rgba(40, 20, 0, .35)); }
.card.fin-clockwork .f-lvl { color: #2a1804; }

/* ---------------------------------------------------------------- Aurora
   Northern lights: two curtains of colour ripple and drift over a night sky above snow-capped peaks; the colours
   breathe, and every so often a star falls. */
.card.fin-aurora { --nf-light: rgba(150, 255, 210, .7); }
.fin-aurora .fin-back { opacity: var(--amt); background: var(--stars) calc(var(--ox) * -3px) calc(var(--oy) * -3px) / 100% 100%, linear-gradient(#050a1e, #0b1d36 55%, #123a46); }
.fin-aurora .fin-back::before, .fin-aurora .fin-back::after { content: ""; inset: -5% -40% 25% -40%; mix-blend-mode: screen; filter: blur(.9cqw); transform-origin: 50% 100%; }
.fin-aurora .fin-back::before { background: var(--nf-aurora1) 0 0 / 50% 100% repeat-x; animation: nf-curtain 26s linear infinite, nf-ripple 7s ease-in-out infinite alternate, nf-breathe 5s ease-in-out infinite alternate; }
.fin-aurora .fin-back::after { top: -15%; bottom: 38%; background: var(--nf-aurora2) 0 0 / 60% 100% repeat-x; opacity: .75; animation: nf-curtain 41s linear infinite reverse, nf-ripple 9s ease-in-out infinite alternate-reverse, nf-breathe 6.5s ease-in-out infinite alternate-reverse; }
@keyframes nf-curtain { to { background-position: 100% 0; } }
@keyframes nf-ripple { from { transform: skewX(-12deg) scaleY(.92); } to { transform: skewX(10deg) scaleY(1.06); } }
@keyframes nf-breathe { from { filter: blur(.9cqw) hue-rotate(-14deg) brightness(.85); } to { filter: blur(.6cqw) hue-rotate(18deg) brightness(1.25); } }
.fin-aurora .fin-fx { opacity: var(--amt); }
.fin-aurora .fin-fx::after { content: ""; inset: 0; border-radius: inherit; background: var(--nf-peaks) 0 0 / 100% 100%; }
.fin-aurora .fin-fx::before { content: ""; width: 26%; height: .5cqw; top: 14%; left: 70%; border-radius: 1cqw; rotate: -28deg; opacity: 0;
  background: linear-gradient(90deg, #fff, rgba(200, 255, 240, .6) 30%, transparent); filter: drop-shadow(0 0 .6cqw #bff); animation: nf-falling 7.5s ease-in infinite 2s; }
@keyframes nf-falling { 0%, 82% { opacity: 0; translate: 0 0; } 84% { opacity: 1; } 92% { opacity: 0; translate: -90cqw 50cqw; } 100% { opacity: 0; translate: -90cqw 50cqw; } }
.fin-aurora .fx-text { --tx: #effff8 !important; --tsh: rgba(0, 10, 25, .9) !important; --tg: repeating-linear-gradient(115deg, hsl(155 100% 70% / var(--ta)) 0%, hsl(280 100% 80% / var(--ta)) 9%, hsl(190 100% 75% / var(--ta)) 18%, hsl(155 100% 70% / var(--ta)) 27%); }
.card.fin-aurora .f-emblem { --eg: linear-gradient(180deg, #b46bff, #4dd8ff 45%, #3dffb0 80%); --eo: .6; --glow: rgba(80, 255, 190, .8); }

/* ---------------------------------------------------------------- Crystal
   The card is cut like a gem: a brilliant cut of amethyst facets radiating from a table where the emblem sits.
   Effects only, driven by the light: each facet catches and loses it on its own as the card tilts (its grey, set
   against a band of light that moves with the tilt), the light splits into rainbow fire where it falls, the facet
   edges gleam, and points of light sparkle at the facets' corners near it. */
.card.fin-crystal { --nf-light: rgba(255, 250, 255, .9); }
/* Depth: the surface's facets are half clear, and through them two deeper layers of facets, each smaller (further
   in) and sliding further against the tilt, over a glowing core; so the card looks like the inside of the stone. */
.fin-crystal .fin-back { opacity: var(--amt);
  background: var(--nf-cfaces-clear) 0 0 / 100% 100%,
    radial-gradient(ellipse 55% 45% at calc(50% + var(--ox) * -4%) calc(48% + var(--oy) * -4%), #f0dcff 0%, #a070e0 30%, #4a2088 60%, #1c0a38 100%); }
/* the pavilion: facets converging on the gem's point far below, seen through it, sliding deepest of all */
.fin-crystal .fin-back .fin-rot { width: 120%; mix-blend-mode: screen; opacity: .55; filter: blur(.25cqw);
  translate: calc(-50% + var(--ox) * -6cqw) calc(-50% + var(--oy) * -6cqw);
  background: repeating-conic-gradient(from 11.25deg, rgba(255, 240, 255, .7) 0deg .6deg, transparent 1.2deg 22.5deg), radial-gradient(circle, rgba(255, 240, 255, .9) 0 3%, transparent 12%);
  -webkit-mask: radial-gradient(circle, #000 4%, rgba(0, 0, 0, .6) 30%, transparent 60%); mask: radial-gradient(circle, #000 4%, rgba(0, 0, 0, .6) 30%, transparent 60%); }
/* two deeper layers of facets inside the stone: each smaller, softer (out of focus) and sliding further against the
   tilt than the one above it */
.fin-crystal .fin-back > .fin-rot::after { content: ""; position: absolute; pointer-events: none; left: 50%; top: 50%; width: 45%; aspect-ratio: 100 / 140; translate: -50% -50%;
  background: var(--nf-cfaces) 0 0 / 100% 100%, var(--nf-cedges) 0 0 / 100% 100%; opacity: .8;
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%); }
/* the stone's edges fall away into the dark */
.fin-crystal .fin-fx::before { content: ""; inset: 0; border-radius: inherit; background: radial-gradient(ellipse 70% 62% at 50% 48%, transparent 55%, rgba(14, 4, 30, .6) 100%); }
/* each facet catching the light as the card tilts: its grey against a moving band of light (difference) */
.fin-crystal .fin-back::after { content: ""; inset: 0; mix-blend-mode: soft-light; opacity: .95;
  background: var(--nf-cgreys) 0 0 / 100% 100%,
    linear-gradient(calc(110deg + var(--ox) * 40deg), #000 0%, #fff 20%, #000 40%, #fff 60%, #000 80%, #fff 100%) calc(var(--mx) * 1) calc(var(--my) * 1) / 250% 250%;
  background-blend-mode: difference; }
/* the middle layer of facets, smaller and a little out of focus, sliding against the tilt */
.fin-crystal .fin-back::before { content: ""; inset: 0; z-index: 0; mix-blend-mode: overlay; opacity: .7; filter: blur(.12cqw);
  -webkit-mask: radial-gradient(ellipse 36% 34% at calc(50% + var(--ox) * -3cqw) calc(48% + var(--oy) * -3cqw), #000 55%, transparent 100%); mask: radial-gradient(ellipse 36% 34% at calc(50% + var(--ox) * -3cqw) calc(48% + var(--oy) * -3cqw), #000 55%, transparent 100%);
  background: var(--nf-cfaces) calc(50% + var(--ox) * -3cqw) calc(48% + var(--oy) * -3cqw) / 74% 74% no-repeat, var(--nf-cedges) calc(50% + var(--ox) * -3cqw) calc(48% + var(--oy) * -3cqw) / 74% 74% no-repeat; }
/* rainbow fire where the light falls, broken up by the facets */
.fin-crystal .fin-foil { opacity: calc((.3 + var(--on) * .6) * var(--amt)); mix-blend-mode: color-dodge;
  background: repeating-linear-gradient(calc(115deg + var(--ox) * 30deg), hsl(0 100% 65%) 0%, hsl(50 100% 60%) 3%, hsl(120 90% 60%) 6%, hsl(190 100% 62%) 9%, hsl(260 100% 70%) 12%, hsl(320 100% 66%) 15%, hsl(0 100% 65%) 18%) var(--mx) var(--my) / 300% 300%,
    var(--nf-cgreys) 0 0 / 100% 100%;
  background-blend-mode: multiply;
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000, rgba(0, 0, 0, .35) 35%, transparent 65%); mask: radial-gradient(circle at var(--mx) var(--my), #000, rgba(0, 0, 0, .35) 35%, transparent 65%); }
/* the facet edges, and the sparkles at their corners near the light */
.fin-crystal .fin-fx { opacity: var(--amt); background: var(--nf-cedges) 0 0 / 100% 100%; mix-blend-mode: screen; }
.fin-crystal .fin-fx::after { content: ""; inset: 0; border-radius: inherit; background: var(--nf-csparks) 0 0 / 100% 100%; filter: drop-shadow(0 0 .6cqw #fff);
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 26%); mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 26%); opacity: calc(.3 + var(--on) * .7); }
.fin-crystal .fin-glare { background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .7), rgba(255, 255, 255, .1) 30%, rgba(20, 0, 40, .35) 90%); opacity: calc(.2 + var(--on) * .6); }
.fin-crystal .fx-text { --tx: #fdf9ff !important; --tsh: rgba(25, 5, 50, .95) !important; --tg: repeating-linear-gradient(115deg, hsl(0 100% 80% / var(--ta)) 0%, hsl(60 100% 80% / var(--ta)) 5%, hsl(180 100% 80% / var(--ta)) 10%, hsl(280 100% 85% / var(--ta)) 15%, hsl(0 100% 80% / var(--ta)) 20%); }
.card.fin-crystal .f-emblem { z-index: 1; --eg: repeating-linear-gradient(115deg, #ffffff 0%, #ffd6f0 6%, #d8eaff 12%, #fff6d0 18%, #ffffff 24%); --eo: .55; --glow: rgba(235, 215, 255, .95); }
.card.fin-crystal .f-emblem svg { color: #fefcff; filter: drop-shadow(0 0 .4cqw #24104a) drop-shadow(0 0 .25cqw #24104a) drop-shadow(calc(var(--ox) * -3cqw) calc(1.2cqw + var(--oy) * -3cqw) .8cqw rgba(200, 160, 255, .55)) drop-shadow(calc(var(--ox) * -5.5cqw) calc(2cqw + var(--oy) * -5.5cqw) 1.6cqw rgba(160, 120, 255, .3)) drop-shadow(0 0 calc(1.4cqw + var(--on) * 2cqw) rgba(235, 215, 255, .9)); }

/* ---------------------------------------------------------------- Wraithlight
   Ghost light, in effects only. The card is cold and dark and keeps half-dissolving into drifting patches of pale
   spectral light; a cold, oily sheen of blue and violet follows the light; a chill glow breathes round its edge;
   now and then a pale wave passes down through it, as if something walked through the card; the emblem has ghostly
   afterimages in cyan and violet that slide apart as the card tilts, and echoes that lift off it and fade; and every
   few seconds the whole card flickers out of phase. */
.card.fin-wraith { --nf-light: rgba(190, 255, 245, .75); }
.fin-wraith .fin-back { opacity: var(--amt); background: radial-gradient(ellipse at 50% 48%, rgba(50, 100, 115, .5), transparent 65%), linear-gradient(#0e1922, #060c12 60%, #0b161e); animation: nf-phase 6.4s steps(1) infinite; }
@keyframes nf-phase { 0%, 84% { filter: none; } 85% { filter: invert(.12) hue-rotate(40deg) brightness(1.3); } 86% { filter: none; } 87.5% { filter: brightness(1.6) saturate(.4); } 89%, 100% { filter: none; } }
/* spectral ripples: rings of cold light pulsing out from the emblem, fading as they spread */
@property --nf-rp { syntax: "<length>"; inherits: false; initial-value: 0px; }
.fin-wraith .fin-back::before { content: ""; inset: 0; mix-blend-mode: screen;
  background: repeating-radial-gradient(circle at 50% 48%, rgba(170, 255, 240, 0) calc(var(--nf-rp) + 0cqw), rgba(190, 255, 245, .55) calc(var(--nf-rp) + .45cqw), rgba(150, 200, 255, .18) calc(var(--nf-rp) + 1.2cqw), rgba(170, 255, 240, 0) calc(var(--nf-rp) + 2.4cqw), rgba(170, 255, 240, 0) calc(var(--nf-rp) + 9cqw));
  -webkit-mask: radial-gradient(circle at 50% 48%, transparent 14%, #000 22%, rgba(0, 0, 0, .5) 42%, transparent 66%); mask: radial-gradient(circle at 50% 48%, transparent 14%, #000 22%, rgba(0, 0, 0, .5) 42%, transparent 66%);
  animation: nf-ripple 3.6s linear infinite; }
@keyframes nf-ripple { from { --nf-rp: 0cqw; } to { --nf-rp: 9cqw; } }
/* a cold, oily sheen of blue and violet that follows the light */
.fin-wraith .fin-back::after { content: ""; inset: 0; z-index: 2; mix-blend-mode: screen; opacity: calc(.3 + var(--on) * .45);
  background: repeating-linear-gradient(calc(120deg + var(--ox) * 25deg), rgba(140, 255, 235, 0) 0%, rgba(140, 255, 235, .35) 3%, rgba(150, 170, 255, .3) 6%, rgba(200, 150, 255, .25) 9%, rgba(140, 255, 235, 0) 12%) var(--mx) var(--my) / 300% 300%;
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 55%); mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 55%); }
/* a cold glow behind the emblem, breathing */
.fin-wraith .fin-back .fin-rot { width: 80%; z-index: 1; border-radius: 50%; background: radial-gradient(circle, rgba(170, 255, 240, .5), rgba(80, 200, 200, .15) 45%, transparent 70%); mix-blend-mode: screen; animation: nf-breath 4.5s ease-in-out infinite alternate; }
@keyframes nf-breath { from { opacity: .45; scale: .9; } to { opacity: 1; scale: 1.08; } }
/* the chill round the edge, breathing */
.fin-wraith .fin-fx { opacity: var(--amt); border-radius: inherit; box-shadow: inset 0 0 4cqw rgba(150, 255, 240, .45), inset 0 0 1cqw rgba(200, 255, 250, .5); animation: nf-chill 5.5s ease-in-out infinite alternate; }
@keyframes nf-chill { from { box-shadow: inset 0 0 2.5cqw rgba(150, 255, 240, .25), inset 0 0 .6cqw rgba(200, 255, 250, .3); } to { box-shadow: inset 0 0 6cqw rgba(150, 255, 240, .55), inset 0 0 1.2cqw rgba(200, 255, 250, .6); } }
/* ghostly static: a fine grain of interference flickering over the card, strongest towards its edges */
.fin-wraith .fin-fx::before { content: ""; inset: 0; border-radius: inherit; mix-blend-mode: screen; opacity: .5;
  background: var(--nf-wgrain) 0 0 / 90px 90px; animation: nf-static .55s steps(5) infinite;
  -webkit-mask: radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, .2) 30%, #000 85%); mask: radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, .2) 30%, #000 85%); }
@keyframes nf-static { to { background-position: 45px 70px; } }
/* something passing through: a pale wave down the card, now and then */
.fin-wraith .fin-fx::after { content: ""; inset: 0; border-radius: inherit; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(transparent 0%, rgba(190, 255, 245, .0) 38%, rgba(210, 255, 250, .55) 48%, rgba(170, 220, 255, .3) 52%, transparent 64%) 0 0 / 100% 300% no-repeat;
  animation: nf-pass-through 9s ease-in-out infinite 1.5s; }
@keyframes nf-pass-through { 0%, 60% { opacity: 0; background-position: 0 100%; } 64% { opacity: 1; } 84% { opacity: 1; } 88%, 100% { opacity: 0; background-position: 0 0%; } }
.fin-wraith .fin-foil { background: radial-gradient(circle at var(--mx) var(--my), rgba(190, 255, 245, .5), transparent 42%); mix-blend-mode: screen; opacity: calc((.08 + var(--on) * .4) * var(--amt)); }
.fin-wraith .fx-text { --tx: #e6fffb !important; --tsh: rgba(0, 15, 20, .95) !important; --tg: repeating-linear-gradient(115deg, hsl(170 100% 80% / var(--ta)) 0%, hsl(200 100% 88% / var(--ta)) 8%, hsl(160 80% 70% / var(--ta)) 16%, hsl(170 100% 80% / var(--ta)) 24%); }
/* the writing has faint afterimages too */
.card.fin-wraith .f-head, .card.fin-wraith .f-foot { filter: drop-shadow(calc(-.5cqw - var(--ox) * .8cqw) 0 0 rgba(120, 255, 235, .35)) drop-shadow(calc(.5cqw + var(--ox) * .8cqw) 0 0 rgba(190, 150, 255, .3)); }
.card.fin-wraith .f-emblem { z-index: 1; --eg: linear-gradient(180deg, #ffffff, #b8fff4 50%, #4fd0c0); --eo: .5; --glow: rgba(150, 255, 240, .9); animation: nf-phase-emb 6.4s steps(1) infinite; }
@keyframes nf-phase-emb { 0%, 84% { translate: 0 0; opacity: 1; } 85% { translate: 1.2cqw 0; opacity: .5; } 86% { translate: -.8cqw 0; opacity: .85; } 87.5% { translate: 0 0; opacity: .4; } 89%, 100% { translate: 0 0; opacity: 1; } }
/* the emblem: afterimages in cyan and violet that slide apart as it tilts, and echoes lifting off it and fading */
.card.fin-wraith .f-emblem svg { color: #eafffb; animation: nf-echo 3.2s linear infinite; }
@keyframes nf-echo {
  0% { filter: drop-shadow(calc(-1cqw - var(--ox) * 1.6cqw) 0 0 rgba(110, 255, 230, .45)) drop-shadow(calc(1cqw + var(--ox) * 1.6cqw) 0 0 rgba(190, 140, 255, .4)) drop-shadow(0 0 1.6cqw rgba(150, 255, 240, .8)) drop-shadow(0 0 0 rgba(170, 255, 240, 0)); }
  35% { filter: drop-shadow(calc(-1cqw - var(--ox) * 1.6cqw) 0 0 rgba(110, 255, 230, .45)) drop-shadow(calc(1cqw + var(--ox) * 1.6cqw) 0 0 rgba(190, 140, 255, .4)) drop-shadow(0 0 1.6cqw rgba(150, 255, 240, .8)) drop-shadow(0 -2.5cqw .5cqw rgba(170, 255, 240, .4)); }
  100% { filter: drop-shadow(calc(-1cqw - var(--ox) * 1.6cqw) 0 0 rgba(110, 255, 230, .45)) drop-shadow(calc(1cqw + var(--ox) * 1.6cqw) 0 0 rgba(190, 140, 255, .4)) drop-shadow(0 0 1.6cqw rgba(150, 255, 240, .8)) drop-shadow(0 -9cqw 1.8cqw rgba(170, 255, 240, 0)); } }

/* ---------------------------------------------------------------- Blood Moon
   A total eclipse gone red: a black moon behind the emblem, ringed by a ragged crimson corona with a single bead of
   white light on its rim; red mist hangs in the dark, veins of blood-light run in from the edges and burn where the
   light finds them, and the card's face has a dark red chrome that catches the light like wet lacquer. */
.card.fin-bloodmoon { --nf-light: rgba(255, 70, 60, .75); }
.fin-bloodmoon .fin-back { opacity: var(--amt); background: radial-gradient(circle at 50% 48%, rgba(120, 0, 10, .55), transparent 55%), linear-gradient(170deg, #1c0206, #0a0003 55%, #160106); }
.fin-bloodmoon .fin-back::before { content: ""; inset: 0; background: var(--nf-mist) 0 0 / 240px 240px; opacity: .85; animation: nf-mist 26s linear infinite; }
@keyframes nf-mist { to { background-position: 240px -120px; } }
.fin-bloodmoon .fin-back .fin-rot { width: 112%; z-index: 1; background-image: var(--nf-corona); filter: drop-shadow(0 0 3cqw rgba(255, 30, 20, .55)); animation: nf-corona 4s ease-in-out infinite alternate, fin-spin 40s linear infinite; }
/* a second corona, turning the other way under it, so the flames churn */
.fin-bloodmoon .fin-back .fin-rot::after { content: ""; position: absolute; inset: -4%; background: var(--nf-corona) center / contain no-repeat; mix-blend-mode: screen; opacity: .55; filter: blur(.4cqw) hue-rotate(-12deg); animation: nf-churn 22s linear infinite; }
@keyframes nf-churn { from { rotate: 40deg; scale: 1.04; } 50% { scale: .98; } to { rotate: -320deg; scale: 1.04; } }
@keyframes nf-corona { from { filter: drop-shadow(0 0 2cqw rgba(255, 30, 20, .45)) brightness(.92); } to { filter: drop-shadow(0 0 4.5cqw rgba(255, 40, 25, .7)) brightness(1.12); } }
.fin-bloodmoon .fin-fx { opacity: var(--amt); }
/* the whole network: a heartbeat, and now and then a flash that lights every vein at once */
.fin-bloodmoon .fin-back::after { content: ""; inset: 0; z-index: 2; background: var(--nf-veins) 0 0 / 100% 100%; mix-blend-mode: screen; opacity: .45; animation: nf-pulse 2.6s ease-out infinite, nf-flash 7.3s linear infinite 2s; }
@keyframes nf-flash { 0%, 88% { opacity: .45; } 89% { opacity: 1; } 90.5% { opacity: .3; } 91.5% { opacity: 1; } 95% { opacity: .45; } 100% { opacity: .45; } }
/* the veins pulse with a slow heartbeat */
@keyframes nf-pulse { 0%, 100% { filter: blur(.08cqw) brightness(.9); } 8% { filter: blur(.08cqw) brightness(2.4) drop-shadow(0 0 .6cqw #ff2a2a); } 18% { filter: blur(.08cqw) brightness(1.2); } 26% { filter: blur(.08cqw) brightness(2) drop-shadow(0 0 .5cqw #ff2a2a); } 45% { filter: blur(.08cqw) brightness(1); } }
/* pulses of light streaking in along the veins from the edges */
.fin-bloodmoon .fin-fx::after { content: ""; inset: 0; border-radius: inherit; background: var(--nf-veins-flow) 0 0 / 100% 100%; mix-blend-mode: screen; opacity: .95; filter: drop-shadow(0 0 .35cqw rgba(255, 50, 40, .7)); }
.fin-bloodmoon .fin-fx::before { content: ""; inset: 0; border-radius: inherit; background: var(--nf-veins) 0 0 / 100% 100%; filter: drop-shadow(0 0 .8cqw #ff2a2a) brightness(1.6);
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 38%); mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 38%); opacity: calc(1.6 + var(--on) * 1.2); }
.fin-bloodmoon .fin-foil { --k: calc(.12 + var(--on) * .4);
  background-image: linear-gradient(110deg, transparent 30%, rgba(255, 90, 80, calc(.9 * var(--k))) 45%, rgba(255, 220, 210, calc(.8 * var(--k))) 49%, rgba(140, 0, 20, calc(.6 * var(--k))) 56%, transparent 70%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: var(--mx) 0; mix-blend-mode: screen; opacity: var(--amt); }
.fin-bloodmoon .fin-foil::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 50% 48%, transparent 30%, rgba(255, 20, 20, .55)); opacity: 0; animation: nf-redflash 7.3s linear infinite 2s; }
@keyframes nf-redflash { 0%, 88% { opacity: 0; } 89% { opacity: 1; } 90.5% { opacity: .2; } 91.5% { opacity: .9; } 96%, 100% { opacity: 0; } }
.fin-bloodmoon .fin-glare { background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 120, 110, .55), transparent 40%, rgba(0, 0, 0, .45) 95%); }
.fin-bloodmoon .fx-text { --tx: #ffe9e4 !important; --tsh: rgba(20, 0, 2, .95) !important; --tg: repeating-linear-gradient(115deg, hsl(0 100% 62% / var(--ta)) 0%, hsl(12 100% 80% / var(--ta)) 8%, hsl(350 90% 40% / var(--ta)) 16%, hsl(0 100% 62% / var(--ta)) 24%); }
.card.fin-bloodmoon .f-emblem { z-index: 1; --eg: linear-gradient(170deg, #ff6a5a, #c3121a 40%, #4a0006 80%); --eo: .85; --glow: rgba(255, 30, 20, .9); }
.card.fin-bloodmoon .f-emblem svg { color: #ffd6cf; filter: drop-shadow(0 0 .3cqw #000) drop-shadow(0 0 calc(1.6cqw + var(--on) * 2cqw) rgba(255, 30, 20, .9)); animation: nf-throb 2.6s ease-out infinite; }
@keyframes nf-throb { 0%, 45%, 100% { filter: drop-shadow(0 0 .3cqw #000) drop-shadow(0 0 1.6cqw rgba(255, 30, 20, .8)); } 8% { filter: drop-shadow(0 0 .3cqw #000) drop-shadow(0 0 3.6cqw rgba(255, 40, 25, 1)); } 26% { filter: drop-shadow(0 0 .3cqw #000) drop-shadow(0 0 3cqw rgba(255, 40, 25, .95)); } }

/* ---------------------------------------------------------------- Wildwood
   The forest takes the card: vines climb all round it, leaves sway and flowers breathe on them, sunlight dapples
   through a canopy that shifts in the wind, fireflies blink, and leaves come spinning down. */
.card.fin-wildwood { --nf-light: rgba(255, 250, 190, .75); }
.fin-wildwood .fin-back { opacity: var(--amt); background: var(--nf-beds) calc(var(--ox) * -2px) calc(var(--oy) * -2px) / 100% 100%, radial-gradient(ellipse at 50% 40%, #5f9a44, #2c5a2a 70%, #163a1b); }
.fin-wildwood .fin-back::after { content: ""; inset: 0; background: var(--nf-dapple) 0 0 / 200px 200px; mix-blend-mode: soft-light; opacity: .55; animation: nf-canopy 40s ease-in-out infinite alternate; }
@keyframes nf-canopy { to { background-position: 60px -40px; } }
.fin-wildwood .fin-back::before { content: ""; inset: -10% -30%; background: repeating-linear-gradient(105deg, transparent 0 8%, rgba(255, 250, 200, .2) 10%, transparent 13%); filter: blur(1.2cqw);
  -webkit-mask: linear-gradient(#000, transparent 85%); mask: linear-gradient(#000, transparent 85%); animation: nf-sway 11s ease-in-out infinite alternate; transform-origin: 50% 0; }
.fin-wildwood .fin-fx { opacity: var(--amt); background: var(--nf-vines) 0 0 / 100% 100%; filter: drop-shadow(0 .3cqw .3cqw rgba(10, 30, 5, .5)); }
.fin-wildwood .fin-fx::before { content: ""; inset: 0; border-radius: inherit; background: var(--nf-fireflies) 0 0 / 65% auto; animation: nf-ffdrift 24s ease-in-out infinite alternate; }
@keyframes nf-ffdrift { to { background-position: 18% -24%; } }
.fin-wildwood .fin-fx::after { content: ""; inset: 0; border-radius: inherit; background: var(--nf-leaves) 0 0 / 70% auto; animation: nf-fall 14s linear infinite; }
@keyframes nf-fall { to { background-position: -35% 150%; } }
.fin-wildwood .fx-text { --tx: #fbfff0 !important; --tsh: rgba(8, 25, 5, .95) !important; --tg: repeating-linear-gradient(115deg, hsl(80 90% 70% / var(--ta)) 0%, hsl(50 100% 75% / var(--ta)) 8%, hsl(330 90% 85% / var(--ta)) 16%, hsl(80 90% 70% / var(--ta)) 24%); }
.card.fin-wildwood .f-emblem { --eg: linear-gradient(170deg, #e8ff7a, #78bf5a 40%, #2f7a35 75%); --eo: .65; --glow: rgba(220, 255, 120, .75); }

/* ---------------------------------------------------------------- Opaline
   Mother-of-pearl: the card turns to layered nacre whose colours run and shift as it tilts, a ring of rainbow
   (Newton's rings) blooms where the light touches it, and a string of pearls runs round the edge. */
.card.fin-pearl { --nf-light: rgba(255, 255, 255, .8); }
.fin-pearl .fin-back { opacity: var(--amt); background: var(--nf-nacre) calc(var(--ox) * -24px) calc(var(--oy) * -24px) / 230px 230px, #f4eff6;
  filter: hue-rotate(calc(var(--ox) * 70deg + var(--oy) * 50deg)) saturate(1.3); animation: nf-nacre 18s ease-in-out infinite alternate; }
@keyframes nf-nacre { from { filter: hue-rotate(calc(var(--ox) * 70deg + var(--oy) * 50deg - 20deg)) saturate(1.3); } to { filter: hue-rotate(calc(var(--ox) * 70deg + var(--oy) * 50deg + 25deg)) saturate(1.5); } }
.fin-pearl .fin-back::after { content: ""; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .7) 45%, transparent 60%) calc(var(--mx) * 1.5 - 25%) 0 / 250% 100% no-repeat; mix-blend-mode: soft-light; }
.fin-pearl .fin-foil { background: repeating-radial-gradient(circle at var(--mx) var(--my), rgba(255, 170, 215, 0) 0, rgba(255, 170, 215, .5) 1.4cqw, rgba(170, 255, 235, .5) 2.8cqw, rgba(190, 190, 255, .5) 4.2cqw, rgba(255, 240, 170, .45) 5.6cqw, rgba(255, 170, 215, 0) 7cqw);
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000 0, transparent 34%); mask: radial-gradient(circle at var(--mx) var(--my), #000 0, transparent 34%);
  mix-blend-mode: multiply; opacity: calc((.2 + var(--on) * .7) * var(--amt)); }
.fin-pearl .fin-fx { opacity: var(--amt); background: var(--nf-pearls) 0 0 / 100% 100%; filter: drop-shadow(0 .2cqw .2cqw rgba(60, 40, 80, .35)); }
.fin-pearl .fx-text { --tx: #2c2440 !important; --tsh: rgba(255, 255, 255, .85) !important; --tg: repeating-linear-gradient(115deg, hsl(320 60% 45% / var(--ta)) 0%, hsl(190 70% 38% / var(--ta)) 8%, hsl(260 60% 48% / var(--ta)) 16%, hsl(320 60% 45% / var(--ta)) 24%); }
.card.fin-pearl .f-emblem { --eg: linear-gradient(115deg, #ffffff, #ffd6ea 30%, #b9e8ff 55%, #e6dcff 75%, #ffffff); --eo: .7; --glow: rgba(255, 255, 255, .9); }
.card.fin-pearl .f-lvl { color: #2c2440; }
.card.fin-pearl .f-emblem svg { color: #5d4a96; filter: drop-shadow(0 0 .3cqw #fff) drop-shadow(0 .8cqw 1.2cqw rgba(60, 40, 90, .35)); }
.card.fin-pearl.legendary .fx-text { --tx: #2c2440 !important; }

/* ---------------------------------------------------------------- Wild Magic
   Raw magic, barely held: the card swirls with marbled colour that never settles, butterflies, flowers, stars and
   question marks wink in and out of being, and now and then the whole card glitches, its emblem and writing
   slipping apart into red and blue. */
.card.fin-wild { --nf-light: rgba(255, 255, 255, .7); }
.fin-wild .fin-back { opacity: var(--amt); background: var(--nf-marble) 0 0 / 170% auto no-repeat; animation: nf-marble 16s ease-in-out infinite alternate, nf-hue 7s linear infinite; }
@keyframes nf-marble { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes nf-hue { to { filter: hue-rotate(360deg) saturate(1.2); } }
.fin-wild .fin-back::after { content: ""; inset: 0; background: radial-gradient(ellipse at 50% 48%, rgba(20, 0, 40, .1) 20%, rgba(20, 0, 40, .55) 95%); }
.fin-wild .fin-fx { opacity: var(--amt); background: var(--nf-surge) 0 0 / 100% 100%; filter: drop-shadow(0 0 .8cqw rgba(255, 255, 255, .8)); }
.fin-wild .fin-fx::before { content: ""; inset: 0; border-radius: inherit; opacity: 0; mix-blend-mode: difference;
  background: linear-gradient(transparent 0 22%, #fff 22% 24%, transparent 24% 61%, #6ff 61% 62.5%, transparent 62.5% 80%, #f6f 80% 83%, transparent 83%);
  animation: nf-glitch-bars 4.3s steps(1) infinite; }
@keyframes nf-glitch-bars { 0%, 88% { opacity: 0; transform: none; } 89% { opacity: .8; transform: translateY(6cqw); } 91% { opacity: .6; transform: translateY(-14cqw) scaleY(.6); } 93% { opacity: .8; transform: translateY(22cqw); } 95%, 100% { opacity: 0; } }
.card.fin-wild .f-emblem svg { animation: nf-glitch 4.3s steps(1) infinite; }
@keyframes nf-glitch {
  0%, 88% { clip-path: none; transform: none; filter: drop-shadow(0 0 1.5cqw rgba(255, 255, 255, .7)); }
  89% { clip-path: inset(10% 0 55% 0); transform: translateX(4cqw) skewX(-12deg); filter: drop-shadow(-1.2cqw 0 0 #ff2a6a) drop-shadow(1.2cqw 0 0 #2affe0); }
  91% { clip-path: inset(48% 0 12% 0); transform: translateX(-5cqw); filter: drop-shadow(1.4cqw 0 0 #ff2a6a) drop-shadow(-1.4cqw 0 0 #2affe0); }
  93% { clip-path: inset(0 0 70% 0); transform: translateX(2cqw) scale(1.08); filter: hue-rotate(160deg) drop-shadow(0 0 2cqw #fff); }
  95%, 100% { clip-path: none; transform: none; filter: drop-shadow(0 0 1.5cqw rgba(255, 255, 255, .7)); } }
.card.fin-wild .f-head, .card.fin-wild .f-foot { animation: nf-glitch-text 4.3s steps(1) infinite; }
@keyframes nf-glitch-text { 0%, 89% { filter: none; } 90% { filter: drop-shadow(-.7cqw 0 0 #ff2a6a) drop-shadow(.7cqw 0 0 #2affe0); transform: translateX(-1.5cqw); } 92% { filter: drop-shadow(.9cqw 0 0 #ff2a6a) drop-shadow(-.9cqw 0 0 #2affe0); transform: translateX(2cqw); } 94%, 100% { filter: none; transform: none; } }
.fin-wild .fin-foil { background: conic-gradient(from calc(var(--ox) * 180deg) at var(--mx) var(--my), #ff3d6e, #ffb21f, #d4ff3a, #2dffc0, #3a8bff, #b14bff, #ff3d6e);
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 40%); mask: radial-gradient(circle at var(--mx) var(--my), #000, transparent 40%);
  mix-blend-mode: color-dodge; opacity: calc((.15 + var(--on) * .55) * var(--amt)); }
.fin-wild .fx-text { --tx: #ffffff !important; --tsh: rgba(30, 0, 50, .95) !important; --tg: repeating-linear-gradient(115deg, var(--rainbow)); }
.card.fin-wild .f-emblem { --eg: conic-gradient(from 0deg, #ff3d6e, #ffb21f, #d4ff3a, #2dffc0, #3a8bff, #b14bff, #ff3d6e); --eo: .75; --glow: rgba(255, 255, 255, .8); }

/* On a gold legendary card, the dark-ink styles keep their ink; the others keep light writing on their own dark ground. */
.card.legendary:is(.fin-storm, .fin-deep, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-wild) .fx-text { --tsh: rgba(0, 0, 0, .95) !important; }

@media (prefers-reduced-motion: reduce) {
  :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .fin-back::before, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .fin-back::after, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .fin-fx::before, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .fin-fx::after, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .f-emblem svg, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .f-head, :is(.fin-storm, .fin-deep, .fin-clockwork, .fin-aurora, .fin-crystal, .fin-wraith, .fin-bloodmoon, .fin-wildwood, .fin-pearl, .fin-wild) .f-foot { animation: none !important; }
}
/* (a Legendary card's own gold styling mustn't wash out these two emblems) */
.card.legendary.fin-pearl .f-emblem svg { color: #5d4a96; }
.card.legendary.fin-clockwork .f-emblem svg { color: #3a2405; }
/* (the seconds hand turns behind the emblem) */
.card.fin-clockwork .f-emblem { z-index: 1; }
/* Wildwood's emblem: pale and clear against the flower beds */
.card.fin-wildwood .f-emblem { z-index: 1; --eo: .45; }
.card.fin-wildwood .f-emblem svg { color: #fbffe8; filter: drop-shadow(0 0 .35cqw #143a10) drop-shadow(0 0 .2cqw #143a10) drop-shadow(0 0 calc(2cqw + var(--on) * 2cqw) rgba(220, 255, 120, .6)); }
.fin-wildwood .fin-foil { opacity: calc((.06 + var(--on) * .22) * var(--amt)); }
.card.fin-wildwood .f-emblem { --eo: .12; }
.card.fin-wildwood .f-emblem svg { color: #fffdf2; filter: drop-shadow(0 0 .45cqw #0f2e0c) drop-shadow(0 0 .3cqw #0f2e0c) drop-shadow(0 .8cqw 1.4cqw rgba(10, 40, 5, .55)) drop-shadow(0 0 calc(1.6cqw + var(--on) * 2cqw) rgba(230, 255, 150, .55)); }

/* In the small views (the mini cards: the party's hand, the roster, adventures), a Mythic finish holds still, and the
   layers that animate themselves are left out; it comes alive on a full-size card. */
.qv-mini .card.myth, .qv-mini .card.myth *, .qv-mini .card.myth *::before, .qv-mini .card.myth *::after { animation-play-state: paused !important; }
.qv-mini .card.myth:is(.fin-bloodmoon, .fin-clockwork, .fin-wildwood) .fin-fx::after, .qv-mini .card.myth.fin-wildwood .fin-fx::before { display: none; }
