/* Private motion preview: Higgsfield-rendered atlases, native browser animation. */
.rift-rift-well{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.rift-orbit-atlas{position:absolute;left:50%;bottom:18%;width:clamp(90px,27%,250px);aspect-ratio:1;translate:-50% 0;background:url('/riftwalkers/motion/rift-orbit.webp') 0 0/800% 600% no-repeat;opacity:.62;filter:brightness(1.7);mix-blend-mode:screen}
.rift-rift-reflection{bottom:12%;height:13%;width:clamp(110px,29%,270px);opacity:.19;filter:blur(.7px) brightness(1.4)}
.rift-rift-light{position:absolute;left:50%;bottom:13%;width:32%;height:10%;translate:-50% 0;border-radius:50%;background:radial-gradient(ellipse,#87d8eb30,transparent 68%);filter:blur(5px)}
.rift-shell[data-theme=guild] .rift-orbit-atlas{filter:brightness(1.7) sepia(.5) saturate(.8);opacity:.54}.rift-shell[data-theme=guild] .rift-rift-reflection{opacity:.13}
.rift-shell[data-theme=riftforge] .rift-orbit-atlas{filter:brightness(1.5) hue-rotate(-125deg);opacity:.62}.rift-shell[data-theme=riftforge] .rift-rift-light{background:radial-gradient(ellipse,#df964536,transparent 68%)}
.rift-shell[data-theme=arcane] .rift-orbit-atlas{opacity:.78;filter:brightness(1.9)}.rift-shell[data-theme=arcane] .rift-rift-reflection{opacity:.2}
.rift-playing:not(.rift-still) .rift-orbit-atlas{animation:rift-orbit-frames 6s steps(1,end) infinite}
.rift-playing:not(.rift-still) .rift-rift-light{animation:rift-rift-glow 7s ease-in-out infinite}
.rift-playing .rift-motes i{left:calc(8% + var(--i)*10.4%);width:2px;height:2px;background:#eddeb7;box-shadow:0 0 8px #ffe0a8}
.rift-playing:not(.rift-still) .rift-motes i{animation:rift-dust-rise 11s linear infinite;animation-delay:calc(var(--i)*-1.3s)}
.rift-playing:not(.rift-still) .rift-stage[data-hero=wizard] .rift-hero:not(.rift-fallen) .rift-sprite{animation:rift-idle-wizard 4.8s ease-in-out infinite}
.rift-playing:not(.rift-still) .rift-stage[data-hero=knight] .rift-hero:not(.rift-fallen) .rift-sprite{animation:rift-idle-knight 5s ease-in-out infinite}
.rift-playing:not(.rift-still) .rift-stage[data-hero=ranger] .rift-hero:not(.rift-fallen) .rift-sprite{animation:rift-idle-ranger 4.6s ease-in-out infinite}
.rift-playing:not(.rift-still) .rift-stage[data-enemy=wraith] .rift-enemy:not(.rift-vanquished) .rift-sprite{animation:rift-idle-wraith 4s ease-in-out infinite}
.rift-playing:not(.rift-still) .rift-stage[data-enemy=imp] .rift-enemy:not(.rift-vanquished) .rift-sprite{animation:rift-idle-imp 3.8s ease-in-out infinite}
.rift-playing:not(.rift-still) .rift-stage[data-enemy=golem] .rift-enemy:not(.rift-vanquished) .rift-sprite{animation:rift-idle-knight 6s ease-in-out infinite}
.rift-playing:not(.rift-still) .rift-stage[data-enemy=regent] .rift-enemy:not(.rift-vanquished) .rift-sprite{animation:rift-idle-wraith 5.8s ease-in-out infinite}
@keyframes rift-idle-wizard{0%,100%{transform:translateY(0) rotate(-.3deg)}50%{transform:translateY(-4px) rotate(.3deg)}}
@keyframes rift-idle-knight{0%,100%{transform:translateY(0) rotate(-.25deg) scaleY(1)}50%{transform:translateY(-1px) rotate(.4deg) scaleY(1.012)}}
@keyframes rift-idle-ranger{0%,100%{transform:translateX(-.7px) rotate(-.35deg)}50%{transform:translateX(.7px) translateY(-2px) rotate(.35deg)}}
@keyframes rift-idle-wraith{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@keyframes rift-idle-imp{0%,100%{transform:translateY(0) rotate(1deg)}50%{transform:translateY(-4px) rotate(-1deg)}}
@keyframes rift-rift-glow{0%,100%{opacity:.45;scale:.96}50%{opacity:.8;scale:1.05}}
@keyframes rift-dust-rise{0%{opacity:0;transform:translate(0,8px)}15%{opacity:.55}65%{opacity:.45}100%{opacity:0;transform:translate(12px,-100px)}}
/* These decorations share the existing cancellable battle animation controller. */
[class*=rift-vfx-]{pointer-events:none}
.rift-vfx-wizard{--vfx-color:#d2b0ff;--vfx-hue:65deg}.rift-vfx-ranger{--vfx-color:#9cf1d0;--vfx-hue:-35deg}.rift-vfx-knight{--vfx-color:#f5d590;--vfx-hue:-125deg}.rift-vfx-healing{--vfx-color:#b2f7d6;--vfx-hue:-35deg}
.rift-vfx-bloom,.rift-vfx-casting,.rift-vfx-wave,.rift-vfx-projectile,.rift-vfx-trail,.rift-vfx-barrier,.rift-vfx-heal-ring,.rift-vfx-mote,.rift-vfx-critical,.rift-vfx-slash{position:absolute;pointer-events:none;color:var(--vfx-color,#bcecff)}
.rift-vfx-bloom{background:url('/riftwalkers/motion/spell-bloom.webp') 0 0/400% 400% no-repeat;transform:translate(-50%,-50%);filter:brightness(2) hue-rotate(var(--vfx-hue,0deg));mix-blend-mode:screen}
.rift-vfx-casting{background:url('/riftwalkers/motion/rift-orbit.webp') 0 0/800% 600% no-repeat;filter:brightness(2.3) hue-rotate(var(--vfx-hue,0deg));mix-blend-mode:screen}
.rift-vfx-wave{width:95px;height:45px;border:1px solid currentColor;border-radius:50%;box-shadow:0 0 9px currentColor,inset 0 0 7px #e2eeff40;opacity:0}
.rift-vfx-projectile{width:42px;height:42px;border-radius:50%;background:radial-gradient(circle,#fff9e2 0 5%,var(--vfx-color) 8%,#9acbff77 28%,transparent 65%);filter:drop-shadow(0 0 8px var(--vfx-color));opacity:0;mix-blend-mode:screen}
.rift-vfx-projectile.rift-vfx-bolt{width:43px;height:7px;border-radius:50%;background:linear-gradient(90deg,transparent,var(--vfx-color),#fffce2);filter:drop-shadow(0 0 4px var(--vfx-color))}
.rift-vfx-trail{height:2px;transform-origin:0 50%;background:linear-gradient(90deg,transparent,#aecafa40,var(--vfx-color));filter:drop-shadow(0 0 5px var(--vfx-color));opacity:0}
.rift-vfx-slash{width:clamp(85px,16vw,170px);height:clamp(75px,14vw,150px);filter:drop-shadow(0 0 7px currentColor);opacity:0}
.rift-vfx-barrier{filter:drop-shadow(0 0 9px #7bdeee80);opacity:0}.rift-vfx-barrier svg{width:100%;height:100%}
.rift-vfx-heal-ring{height:24px;border:1px solid #9cebd0;border-radius:50%;box-shadow:0 0 12px #93f3cc55,inset 0 0 12px #82e6c833;opacity:0}
.rift-vfx-mote{width:4px;height:8px;border-radius:50%;background:#d1ffe7;box-shadow:0 0 9px #7ce3b4;opacity:0}
.rift-vfx-critical{width:100px;height:100px;border:1px solid #f6dc9e;clip-path:polygon(50% 0,58% 38%,100% 50%,58% 58%,50% 100%,42% 58%,0 50%,42% 38%);background:radial-gradient(circle,#ffedb388,transparent 68%);opacity:0}
@media(max-width:760px){.rift-orbit-atlas{bottom:19%;width:clamp(80px,27%,160px)}.rift-rift-reflection{bottom:12%;height:12%;width:32%}.rift-vfx-projectile{width:28px;height:28px}.rift-vfx-mote{width:3px;height:6px}}
@media(prefers-reduced-motion:reduce){.rift-playing .rift-stage *{animation:none!important;transition:none!important}}
html[data-cs-reduce-motion] .rift-playing .rift-stage *,.rift-still .rift-stage *{animation:none!important}
.rift-menu-paused .rift-stage *{animation-play-state:paused!important}
@keyframes rift-orbit-frames{
0.0%{background-position:0.0% 0.0%}
2.08333%{background-position:14.28571% 0.0%}
4.16667%{background-position:28.57143% 0.0%}
6.25%{background-position:42.85714% 0.0%}
8.33333%{background-position:57.14286% 0.0%}
10.41667%{background-position:71.42857% 0.0%}
12.5%{background-position:85.71429% 0.0%}
14.58333%{background-position:100.0% 0.0%}
16.66667%{background-position:0.0% 20.0%}
18.75%{background-position:14.28571% 20.0%}
20.83333%{background-position:28.57143% 20.0%}
22.91667%{background-position:42.85714% 20.0%}
25.0%{background-position:57.14286% 20.0%}
27.08333%{background-position:71.42857% 20.0%}
29.16667%{background-position:85.71429% 20.0%}
31.25%{background-position:100.0% 20.0%}
33.33333%{background-position:0.0% 40.0%}
35.41667%{background-position:14.28571% 40.0%}
37.5%{background-position:28.57143% 40.0%}
39.58333%{background-position:42.85714% 40.0%}
41.66667%{background-position:57.14286% 40.0%}
43.75%{background-position:71.42857% 40.0%}
45.83333%{background-position:85.71429% 40.0%}
47.91667%{background-position:100.0% 40.0%}
50.0%{background-position:0.0% 60.0%}
52.08333%{background-position:14.28571% 60.0%}
54.16667%{background-position:28.57143% 60.0%}
56.25%{background-position:42.85714% 60.0%}
58.33333%{background-position:57.14286% 60.0%}
60.41667%{background-position:71.42857% 60.0%}
62.5%{background-position:85.71429% 60.0%}
64.58333%{background-position:100.0% 60.0%}
66.66667%{background-position:0.0% 80.0%}
68.75%{background-position:14.28571% 80.0%}
70.83333%{background-position:28.57143% 80.0%}
72.91667%{background-position:42.85714% 80.0%}
75.0%{background-position:57.14286% 80.0%}
77.08333%{background-position:71.42857% 80.0%}
79.16667%{background-position:85.71429% 80.0%}
81.25%{background-position:100.0% 80.0%}
83.33333%{background-position:0.0% 100.0%}
85.41667%{background-position:14.28571% 100.0%}
87.5%{background-position:28.57143% 100.0%}
89.58333%{background-position:42.85714% 100.0%}
91.66667%{background-position:57.14286% 100.0%}
93.75%{background-position:71.42857% 100.0%}
95.83333%{background-position:85.71429% 100.0%}
97.91667%{background-position:100.0% 100.0%}
100%{background-position:0% 0%}}

.rift-shell .rift-strike.skill-wizard,.rift-shell .rift-strike.skill-ranger{background:none;filter:none}

/* Registered full-character frames replace the static fallback after decoding. */
.rift-frame-sprite{position:absolute;pointer-events:none;animation:none!important;transform:none;z-index:1}
.rift-actor[data-frame-ready=true]>.rift-sprite{visibility:hidden;animation:none!important}
.rift-actor[data-frame-ready=true]>.rift-actor-aura{animation:none!important}

.rift-vfx-soul{--vfx-color:#9be4f4}.rift-vfx-void{--vfx-color:#da9eff}.rift-vfx-stone{--vfx-color:#c7b896}.rift-vfx-ember{--vfx-color:#f6ac74}
.rift-vfx-enemy-bolt,.rift-vfx-stone-shock,.rift-vfx-stone-chip,.rift-vfx-claw{position:absolute;pointer-events:none;color:var(--vfx-color);opacity:0}
.rift-vfx-enemy-bolt{width:48px;height:28px;border-radius:65% 20% 55% 40%;background:radial-gradient(ellipse,#fff2d4 0 6%,var(--vfx-color) 15%,transparent 70%);filter:drop-shadow(0 0 7px var(--vfx-color))}
.rift-vfx-stone-shock{width:140px;height:55px;clip-path:polygon(0 55%,28% 42%,18% 9%,45% 32%,55% 0,64% 36%,95% 12%,79% 48%,100% 75%,64% 64%,42% 100%,30% 65%);background:linear-gradient(0deg,transparent,#bba48188)}
.rift-vfx-stone-chip{width:9px;height:12px;background:#84715c;clip-path:polygon(15% 0,90% 12%,100% 70%,45% 100%,0 65%)}
.rift-vfx-claw{width:100px;height:100px;background:linear-gradient(125deg,transparent 37%,#ffd49c 39% 40%,transparent 42% 48%,#ed9a69 50% 51%,transparent 53% 58%,#ffd49c 60% 61%,transparent 63%);filter:drop-shadow(0 0 5px #ffb27188)}
/* Skill bursts use vector geometry and mathematical transforms, with no pose frames. */
.rift-fx [class^=rift-skill-]{position:absolute;pointer-events:none;color:var(--skill-color);z-index:2;transform:translate(-50%,-50%)}
.rift-skill-focus{background:radial-gradient(ellipse,transparent 25%,#051020 100%);z-index:0!important}
.rift-skill-sigil{filter:drop-shadow(0 0 5px var(--skill-color))}.rift-skill-sigil svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1;stroke-dasharray:18 3}
.rift-skill-ring{border:2px solid currentColor;border-radius:50%;box-shadow:0 0 12px currentColor,inset 0 0 9px currentColor}
.rift-skill-leaf{background:linear-gradient(35deg,#d3eca3,#52ab70);border-radius:0 80% 0 80%;box-shadow:0 0 6px currentColor}
.rift-skill-orb{border-radius:50%;background:radial-gradient(circle,#fff 5%,#b8efff 22%,#4aaedc80 55%,transparent 72%);filter:drop-shadow(0 0 13px #86c9ff)}
.rift-fx .rift-skill-beam{transform-origin:0 50%;border-radius:50%;background:linear-gradient(0deg,transparent,#7fb8f4 22%,#f2ffff 50%,#7fb8f4 78%,transparent);box-shadow:0 0 15px #88d0ff;z-index:3}
.rift-skill-pillar{background:linear-gradient(90deg,transparent,#8ac8ef50,#e4ffffa0,#8ac8ef50,transparent);border-radius:45% 45% 8% 8%;mask-image:linear-gradient(transparent,#000 30%)}
.rift-skill-spark{background:#e6ffff;box-shadow:0 0 7px #9ee9ff;clip-path:polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%)}
.rift-skill-cleave{border-top:7px solid #faf1ff;border-radius:50%;filter:drop-shadow(0 0 9px #c186f1)}

/* Combat callouts: labelled interactions, emphatic numbers and dark contours over every arena. */
.rift-shell .rift-stage .rift-float{--combat-ink:#ffb366;position:absolute;z-index:8;top:30%;left:27%;right:auto;translate:-50% 0;max-width:44%;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;white-space:normal;font:900 clamp(28px,4.5vw,56px)/1 Georgia,serif;color:var(--combat-ink);text-shadow:0 3px 0 #07101c,2px 0 #07101c,-2px 0 #07101c,0 -2px #07101c,0 0 15px #000;transform-origin:50% 70%;filter:drop-shadow(0 2px 3px #0009)}
.rift-shell .rift-stage .rift-float.enemy{left:74%;right:auto}
.rift-shell .rift-stage .rift-float .rift-float-label{font:800 clamp(9px,1.1vw,12px)/1.3 system-ui,sans-serif;letter-spacing:.15em;color:inherit;-webkit-text-stroke:0;text-shadow:0 2px 2px #000,1px 0 #000,-1px 0 #000}
.rift-shell .rift-stage .rift-float-value{display:block;font:inherit;font-size:min(1em,var(--combat-value-fit,1em));white-space:nowrap;-webkit-text-stroke:.65px #161320;paint-order:stroke fill}
.rift-shell .rift-stage .rift-float.critical{--combat-ink:#ffe16a;font-size:clamp(36px,6vw,72px);filter:drop-shadow(0 0 8px #d98b3880)}
.rift-shell .rift-stage .rift-float.skill{--combat-ink:#d8b0ff}
.rift-shell .rift-stage .rift-float.incoming{--combat-ink:#ff686f}
.rift-shell .rift-stage .rift-float.heal{--combat-ink:#80f5a9}
.rift-shell .rift-stage .rift-float.block{--combat-ink:#8ddfff}
.rift-shell .rift-stage .rift-float.reflect{--combat-ink:#69eedb}
.rift-shell .rift-stage .rift-float.energy{--combat-ink:#83f2ed}
.rift-shell .rift-stage .rift-float.gold{--combat-ink:#ffe4a3;font-size:clamp(20px,3vw,36px)}
.rift-shell .rift-stage .rift-float-secondary{top:57%;font-size:clamp(21px,3.3vw,38px)}
@media(max-width:760px){.rift-shell .rift-stage .rift-float{font-size:clamp(25px,7vw,38px);top:32%}.rift-shell .rift-stage .rift-float.critical{font-size:clamp(32px,9vw,46px)}.rift-shell .rift-stage .rift-float-secondary{top:59%;font-size:clamp(19px,5vw,28px)}}
.rift-shell .rift-stage .rift-float.heal{top:52%}
