/* Jaffar: soul witch / emerald academy / celestial cartographer.
   State artwork stays in the established narrow portrait orbit. */
.jaffar-rune-card-fx .jaffar-depth-arc {
    fill:none; stroke:var(--jaffar-gold,var(--jaffar-c3));
    stroke-width:2.4; stroke-linecap:round;
    transition:opacity .3s,stroke-width .3s;
}
.jaffar-rune-card-fx .jaffar-depth-arc.is-back {
    opacity:.26; stroke-width:1.2; stroke-dasharray:3 12;
}
.jaffar-rune-card-fx .jaffar-depth-arc.is-front {
    opacity:.9; stroke-width:3.6;
    filter:drop-shadow(0 0 4px var(--jaffar-c5));
}
.jaffar-depth-plate { opacity:.85; }
.jaffar-depth-plate.is-back { opacity:.32; }
.jaffar-depth-front { animation:jaffarDepthBreathe 4s ease-in-out infinite; }
.jaffar-rune-card-fx[data-jaffar-theme="akademia"] .jaffar-depth-arc.is-front {
    stroke-dasharray:55 9 3 9; stroke:var(--jaffar-gold);
}
.jaffar-rune-card-fx[data-jaffar-theme="akademia"] .jaffar-depth-front { animation-duration:5.5s; }
.jaffar-rune-card-fx[data-jaffar-theme="kalandor"] .jaffar-depth-arc.is-front {
    stroke-dasharray:1 10 25 10; animation:jaffarChartNavigate 10s linear infinite;
}
.jaffar-rune-card-fx[data-tier="0"] .jaffar-depth-back,
.jaffar-rune-card-fx[data-tier="0"] .jaffar-depth-front { opacity:0; }
.jaffar-rune-card-fx[data-tier="1"] .jaffar-depth-plate:nth-of-type(2n),
.jaffar-rune-card-fx[data-tier="2"] .jaffar-depth-plate:nth-of-type(3n) { opacity:.12; }
.jaffar-rune-card-fx[data-tier="1"] .jaffar-depth-arc { stroke-dasharray:20 60; opacity:.25; }
.jaffar-rune-card-fx .jaffar-skin-familiars { display:none; }
.jaffar-rune-card-fx.has-shadow-spirits .jaffar-skin-familiars { display:block; }
.jaffar-shadow-engraving { opacity:.86; }
.jaffar-shadow-script {
    stroke-dasharray:25 7; animation:jaffarShadowInscription 11s linear infinite;
}
.jaffar-shadow-bearing {
    stroke-dasharray:3 9; animation:jaffarShadowBearing 12s linear infinite;
}
.jaffar-rune-card-fx .jaffar-shadow-edge { stroke-width:2.4; opacity:.65; }
.jaffar-rune-card-fx .jaffar-shadow-plasma { fill-opacity:.35; stroke-width:3; }
.jaffar-pain-seal { opacity:.12; transition:opacity .45s; }
.jaffar-pain-seal.is-awake {
    opacity:1; filter:drop-shadow(0 0 7px var(--jaffar-c5));
}
.jaffar-pain-constellation>path {
    fill:none; stroke:var(--jaffar-gold); stroke-width:1;
    stroke-dasharray:4 12; opacity:0; transition:opacity .5s;
}
.jaffar-rune-card-fx[data-pain="3"] .jaffar-pain-constellation>path {
    opacity:.2; animation:jaffarPainCircuit 7s linear infinite;
}
.jaffar-ultimate-residue {
    opacity:0; pointer-events:none; transition:opacity .65s;
    filter:drop-shadow(0 0 3px var(--jaffar-c5));
}
.jaffar-rune-card-fx.has-clone .jaffar-ultimate-residue {
    opacity:.76;
}
.jaffar-dominion-scar {
    stroke-dasharray:70 120; animation:jaffarDominionScar 12s linear infinite;
}
.jaffar-dominion-script {
    animation:jaffarDominionScript 14s linear infinite;
}
.jaffar-dominion-meridian {
    transform-origin:300px 300px;
    animation:jaffarDominionMeridian 15s ease-in-out infinite;
}
.jaffar-rune-card-fx.jaffar-summoning .jaffar-ultimate-residue { opacity:0; }
.jaffar-rune-card-fx.is-rune-exhausted .jaffar-depth-front,
.jaffar-rune-card-fx.is-rune-exhausted .jaffar-depth-back { opacity:.2; filter:grayscale(.7); }
.jaffar-rune-card-fx.is-shattering .jaffar-depth-front,
.jaffar-rune-card-fx.is-shattering .jaffar-depth-back { animation:jaffarDepthShatter 1.5s ease-out both; }
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-orbit-shard {
    animation:jaffarPerfectReturn 2s cubic-bezier(.2,.6,.2,1) both;
}
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-depth-front,
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-depth-back {
    animation:jaffarDepthRebirth 2s ease-out both;
}
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-orbit-live {
    animation:jaffarPerfectSeal 2s ease-out both;
}
.jaffar-rune-card-fx.is-dead { opacity:0; }
.jaffar-pain-seal:not(.is-awake) .jvm-part,
.jaffar-rune-card-fx[data-tier="0"] [data-motif="ward"] .jvm-part { animation-play-state:paused; }
body.v3-vfx-disabled .jaffar-rune-card-fx,
body.v3-vfx-disabled .jaffar-premium-vfx { display:none!important; }
body.v3-ultimate-vfx-disabled .jaffar-ultimate-residue { display:none!important; }
@keyframes jaffarDepthBreathe { 50% { opacity:.65; } }
@keyframes jaffarChartNavigate { to { stroke-dashoffset:-460; } }
@keyframes jaffarShadowInscription { to { stroke-dashoffset:-128; } }
@keyframes jaffarShadowBearing { to { stroke-dashoffset:-120; } }
@keyframes jaffarPainCircuit { to { stroke-dashoffset:-160; } }
@keyframes jaffarDominionScar { to { stroke-dashoffset:-380; } }
@keyframes jaffarDominionScript { to { stroke-dashoffset:-56; } }
@keyframes jaffarDominionMeridian {
    0%,100% { transform:rotate(-11deg) scaleX(.88); opacity:.4; }
    50% { transform:rotate(11deg) scaleX(1); opacity:.85; }
}
@keyframes jaffarDepthShatter { 0% { opacity:1; } 15%,100% { opacity:0; } }
@keyframes jaffarDepthRebirth { 0% { opacity:1; } 25%,50% { opacity:0; } 100% { opacity:1; } }
@keyframes jaffarPerfectReturn {
    0% { opacity:1; transform:translateY(0) rotate(0); }
    35%,50% { opacity:1; transform:translateY(-42px) rotate(var(--shard-turn)); }
    92% { opacity:1; transform:translateY(0) rotate(0); }
    100% { opacity:0; transform:translateY(0) rotate(0); }
}
@keyframes jaffarPerfectSeal { 0%,48% { opacity:0; } 85%,100% { opacity:1; } }
/* A fine, transparent membrane. Moving light fronts carry the animation;
   there are no illustrated badges mounted on the circumference. */
.jaffar-rune-architecture { opacity:.94; transition:opacity .25s; }
.jaffar-rune-architecture.is-back { opacity:.47; }
.jra-filament,.jra-light-front,.jra-rune {
    fill:none; vector-effect:non-scaling-stroke; stroke-linecap:round;
}
.jra-filament { stroke:var(--jaffar-c4); stroke-width:.45; opacity:.34; }
.jra-filament-1 { stroke-width:2.5; opacity:.12; filter:blur(1.8px); }
.jra-filament-2 { stroke:var(--jaffar-c3); stroke-width:.35; opacity:.2; }
.jra-light-front {
    stroke:var(--jaffar-c3); stroke-width:.8; stroke-dasharray:.5 2 5 92.5;
    animation:jaffarMembraneFlow 4.6s linear infinite;
    animation-delay:calc(var(--jra-phase) * -.57s);
    filter:drop-shadow(0 0 2px var(--jaffar-c5));
}
.jra-rune {
    stroke:var(--jaffar-c4); stroke-width:.4; opacity:.5;
    animation:jaffarRuneGlimmer 6s ease-in-out infinite;
    animation-delay:calc(var(--jra-phase) * -.8s);
}
.jra-dust {
    fill:var(--jaffar-c3); opacity:0; transform-box:fill-box; transform-origin:center;
    animation:jaffarMembraneDust 5.3s ease-out infinite;
    animation-delay:var(--dust-phase);
}
.jaffar-rune-card-fx[data-jaffar-theme="akademia"] .jra-light-front {
    stroke-dasharray:.4 1 1.5 1 7 89.1; animation-duration:5.8s; animation-direction:reverse;
}
.jaffar-rune-card-fx[data-jaffar-theme="kalandor"] .jra-light-front {
    stroke-dasharray:.3 1 3 1 1 93.7; animation-duration:7.2s;
}
.jaffar-rune-card-fx[data-jaffar-theme="akademia"] .jra-dust { animation-name:jaffarInkDust; }
.jaffar-rune-card-fx[data-jaffar-theme="kalandor"] .jra-dust { animation-name:jaffarStarDust; }
.jaffar-rune-segment.is-fractured .jra-filament { stroke-dasharray:12 7 3 8; opacity:.13; }
.jaffar-rune-segment.is-fractured .jra-light-front { opacity:.25; stroke-dasharray:.5 5 2 92.5; }
.jaffar-rune-segment.is-fractured .jra-rune { opacity:.16; }
.jaffar-rune-card-fx .jaffar-depth-front,
.jaffar-rune-card-fx .jaffar-depth-back { animation:none; }
.jaffar-rune-card-fx .jaffar-orbit-live,
.jaffar-rune-card-fx[data-tier="1"] .jaffar-orbit-live,
.jaffar-rune-card-fx.is-shattering:not([data-tier="0"]) .jaffar-orbit-live { animation:none; }
.jaffar-rune-card-fx[data-tier] .jaffar-orbit-glyphs text { animation:none; }
.jaffar-rune-card-fx .jaffar-orbit-main { stroke-width:.6; opacity:.25; }
.jaffar-rune-card-fx .jaffar-orbit-rings { opacity:.18; filter:none; }
.jaffar-rune-card-fx .jaffar-orbit-smoke { opacity:.45; }
.jaffar-rune-card-fx .jaffar-orbit-smoke circle { stroke-width:6; }
.jaffar-rune-card-fx .jaffar-orbit-glyphs,
.jaffar-rune-card-fx .jaffar-orbit-tendrils { display:none; }
.jaffar-rune-card-fx .jaffar-orbit-thread { stroke-width:.5; opacity:.3; }
.jaffar-rune-card-fx.is-shattering .jaffar-orbit-debris,
.jaffar-rune-card-fx.is-shattering .jaffar-orbit-shockwave { display:none; }
.jaffar-rune-card-fx.is-shattering .jaffar-depth-front,
.jaffar-rune-card-fx.is-shattering .jaffar-depth-back,
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-depth-front,
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-depth-back,
.jaffar-rune-card-fx.is-shattering.is-perfect-rebirth .jaffar-orbit-live { animation:none; }
.jaffar-rune-card-fx[data-rune-scene] .jaffar-depth-front,
.jaffar-rune-card-fx[data-rune-scene] .jaffar-depth-back,
.jaffar-rune-card-fx[data-rune-scene] .jaffar-orbit-live {
    opacity:0; transition:none;
}
.jaffar-rune-card-fx .jaffar-pain-charge {
    fill:none; stroke:var(--jaffar-c4); stroke-width:.6;
    stroke-dasharray:var(--jaffar-seal-charge,0) 1;
    transform:rotate(-90deg); opacity:0;
    transition:stroke-dasharray .45s,opacity .45s;
}
.jaffar-pain-seal.is-charging { opacity:calc(.2 + var(--jaffar-seal-charge,0) * .65); }
.jaffar-pain-seal.is-charging .jaffar-pain-charge { opacity:.9; }
.jaffar-pain-seal.is-awake .jaffar-pain-charge { stroke-dasharray:1 0; opacity:.65; }
.jaffar-pain-ember { fill:var(--jaffar-c3); }
.jaffar-pain-ember-halo { fill:var(--jaffar-c5); filter:blur(3px); opacity:.75; }
.jaffar-pain-seal.is-awake { filter:drop-shadow(0 0 3px var(--jaffar-c5)); }
.jaffar-pain-seal.is-awake .jaffar-pain-ember { animation:jaffarEmberBreath 3.8s ease-in-out infinite; }
.jaffar-rune-card-fx .jaffar-pain-constellation>path { stroke-width:.45; opacity:0; }
.jaffar-rune-card-fx[data-pain="3"] .jaffar-pain-constellation>path { opacity:.12; }
.jaffar-rune-card-fx .jaffar-shadow-engraving { opacity:.85; }
.jaffar-rune-card-fx.has-clone .jaffar-ultimate-residue { opacity:.8; }
.jaffar-rune-card-fx.is-rune-exhausted .jaffar-rune-architecture { filter:grayscale(.8); }
.jaffar-rune-card-fx[data-tier="0"] .jaffar-rune-architecture * { animation-play-state:paused; }
@keyframes jaffarMembraneFlow { to { stroke-dashoffset:-100; } }
@keyframes jaffarRuneGlimmer { 0%,100% { opacity:.16; } 40% { opacity:.65; } }
@keyframes jaffarMembraneDust { 0%,100% { opacity:0; transform:translate(0,0); } 28% { opacity:.85; } 85% { opacity:0; transform:translate(3px,-14px); } }
@keyframes jaffarInkDust { 0%,100% { opacity:0; transform:translate(0,0); } 35% { opacity:.7; } 85% { opacity:0; transform:translate(-4px,-19px); } }
@keyframes jaffarStarDust { 0%,100% { opacity:0; transform:scale(.5); } 45% { opacity:.9; transform:scale(1.3); } 85% { opacity:0; transform:scale(.5); } }
@keyframes jaffarEmberBreath { 50% { opacity:.45; } }
/* The default shield must read before any cast/buff. Keep its existing narrow
   footprint, but restore the reference's illuminated rim, smoke and runes. */
.jaffar-rune-card-fx { opacity:.96; }
.jaffar-rune-card-fx .jaffar-orbit-rings {
    opacity:.85; filter:drop-shadow(0 0 4px var(--jaffar-c5));
}
.jaffar-rune-card-fx .jaffar-orbit-main { stroke-width:var(--rune-width,6); opacity:1; }
.jaffar-rune-card-fx .jaffar-orbit-smoke { opacity:.8; }
.jaffar-rune-card-fx .jaffar-orbit-smoke circle { stroke-width:var(--rune-smoke-width,24); }
.jaffar-rune-card-fx .jaffar-orbit-glyphs { display:block; opacity:.85; }
.jaffar-rune-card-fx .jaffar-orbit-thread { stroke-width:1.1; opacity:.65; }
.jaffar-rune-card-fx .jra-filament { stroke-width:1.5; opacity:.8; }
.jaffar-rune-card-fx .jra-filament-1 { stroke-width:6; opacity:.3; }
.jaffar-rune-card-fx .jra-filament-2 { stroke-width:.9; opacity:.55; }
.jaffar-rune-card-fx .jra-light-front { stroke-width:1.8; }
.jaffar-rune-card-fx .jra-rune { stroke-width:1; }
.jaffar-rune-card-fx .jaffar-shadow-edge { stroke-width:5; opacity:.85; }
.jaffar-rune-card-fx .jaffar-shadow-plasma { fill-opacity:1; stroke-width:6; }
.jaffar-rune-card-fx .jaffar-rune-segment.is-fractured .jra-filament { opacity:.18; }
.jaffar-rune-card-fx[data-tier="0"] .jaffar-rune-architecture { opacity:0; }
@media(prefers-reduced-motion:reduce) {
    .jaffar-rune-card-fx .jaffar-premium-state,
    .jaffar-rune-card-fx .jaffar-premium-state * { animation:none!important; transition:none!important; }
}
