/* A single pulse: palm charge, braided beam, then a local shockwave. */
.combat-fx { --pulse:var(--bracelet-color,#82faff); }
.combat-fx.retaliation { --pulse:#ffb478; }
.combat-fx .energy-link { animation:none; }
.combat-fx .energy-link [data-beam] { stroke-dasharray:1; stroke-dashoffset:0; animation:none; }
.combat-fx .beam-aura { stroke:var(--pulse); stroke-width:34; opacity:.65; filter:blur(8px); }
.combat-fx .beam-plasma { stroke:#65e9ff; stroke-width:13; opacity:.8; filter:drop-shadow(0 0 7px #a4faff); }
.combat-fx .beam-core { stroke:#f5ffff; stroke-width:5; filter:drop-shadow(0 0 4px #fff); }
.combat-fx .beam-thread { stroke:var(--pulse); stroke-width:2.5; filter:drop-shadow(0 0 5px #a9faff); }
.combat-fx .beam-thread-alt { stroke:#e4ffff; stroke-width:1.5; }
.combat-fx .beam-origin { fill:#fff9db; filter:drop-shadow(0 0 12px #baffff); transform-box:fill-box; transform-origin:center; }
.charge-ring { fill:none; stroke:#a2f8ff; stroke-width:1.5; transform-box:fill-box; transform-origin:center; filter:drop-shadow(0 0 5px #6ef7ff); }
.charge-ring-inner { stroke:var(--pulse); stroke-width:3; }
.muzzle-star { stroke:#fff7d3; stroke-width:2; filter:drop-shadow(0 0 5px #b3ffff); }
.combat-fx.attack .energy-link [data-beam],.combat-fx.retaliation .energy-link [data-beam] { animation:pulse-beam 1.2s ease-out both; }
.combat-fx.attack .charge-ring,.combat-fx.retaliation .charge-ring { animation:pulse-charge 1.2s ease-out both; }
.combat-fx.attack .charge-ring-inner,.combat-fx.retaliation .charge-ring-inner { animation-name:pulse-charge-inner; }
.attack .beam-origin,.retaliation .beam-origin { animation:pulse-origin 1.2s both; }
.attack .muzzle-star,.retaliation .muzzle-star { animation:pulse-star 1.2s both; }
.combat-fx .impact-bloom,.combat-fx .impact-wave { position:absolute; left:var(--impact-x); top:var(--impact-y); border-radius:50%; opacity:0; pointer-events:none; }
.combat-fx .impact-bloom { width:140px; height:140px; margin:-70px; background:radial-gradient(ellipse,#fffddd 0 4%,#d1fbff99 12%,#6feaff55 30%,transparent 68%); mix-blend-mode:screen; }
.combat-fx .impact-wave { width:140px; height:140px; margin:-70px; border:2px solid #d3fcff; box-shadow:inset 0 0 16px #6aedff88,0 0 18px #6aedff88; }
.combat-fx.attack .impact-ring { border-width:3px; border-color:#fff3bf; animation:pulse-impact .8s .24s ease-out both; }
.combat-fx.attack .impact-wave { animation:pulse-impact .85s .34s ease-out both; }
.combat-fx.attack .impact-bloom { animation:pulse-bloom .9s .2s ease-out both; }
.combat-fx.attack i { width:4px; height:28px; border-radius:50%; clip-path:none; background:linear-gradient(#fff9cc,#8aecff,transparent); box-shadow:0 0 7px #b7f5ff; --angle:calc(var(--i)*30deg); animation:pulse-spark .75s calc(.24s + var(--i)*.008s) ease-out both; }
.encounter-combat.is-correct .guardian-actor.hit { animation:impact .45s .24s ease-out both; }
.combat-fx.surge .beam-aura { stroke-width:46; }
.combat-fx.surge .beam-plasma { stroke-width:18; }
.combat-fx.surge .impact-bloom { width:190px; height:190px; margin:-95px; }
.combat-fx.retaliation .beam-plasma { stroke:#ffd19b; stroke-width:8; }
.combat-fx.retaliation .beam-core { stroke:#fff1d5; stroke-width:3; }
.combat-fx.retaliation .beam-aura { stroke-width:22; }
@keyframes pulse-beam {
 0%,13% { opacity:0; stroke-dashoffset:1; }
 16% { opacity:1; stroke-dashoffset:1; }
 31% { opacity:1; stroke-dashoffset:0; }
 63% { opacity:1; }
 100% { opacity:0; stroke-dashoffset:0; }
}
@keyframes pulse-charge { 0%{opacity:0;transform:scale(1.8) rotate(-25deg)} 15%{opacity:1;transform:scale(.7)} 28%{opacity:1;transform:scale(1.25)} 80%,100%{opacity:0;transform:scale(1.8) rotate(30deg)} }
@keyframes pulse-charge-inner { 0%{opacity:0;transform:scale(.2)} 16%{opacity:1;transform:scale(1.3)} 35%{opacity:1;transform:scale(.9)} 100%{opacity:0;transform:scale(1.5)} }
@keyframes pulse-origin { 0%{opacity:0;transform:scale(.2)} 16%{opacity:1;transform:scale(1.35)} 33%{opacity:1;transform:scale(.8)} 65%{opacity:.9} 100%{opacity:0;transform:scale(.3)} }
@keyframes pulse-star { 0%,14%{opacity:0} 22%,50%{opacity:1} 100%{opacity:0} }
@keyframes pulse-impact { 0%{opacity:0;transform:scale(.18) rotateX(25deg)} 15%{opacity:.95} 100%{opacity:0;transform:scale(1.65) rotateX(25deg)} }
@keyframes pulse-bloom { 0%{opacity:0;transform:scale(.3)} 18%{opacity:.95;transform:scale(1)} 100%{opacity:0;transform:scale(1.4)} }
@keyframes pulse-spark { 0%{opacity:0;transform:rotate(var(--angle)) translateY(-18px) scaleY(.3)} 15%{opacity:1} 100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-95px - mod(var(--i),3)*15px)) scaleY(.15)} }
.reduced-motion .combat-fx * { animation:none!important; }
.reduced-motion .combat-fx .charge-ring,.reduced-motion .combat-fx .muzzle-star,.reduced-motion .combat-fx .beam-thread,.reduced-motion .combat-fx .impact-ring,.reduced-motion .combat-fx .impact-wave,.reduced-motion .combat-fx i { display:none; }
.reduced-motion .combat-fx .beam-aura { stroke-width:15; opacity:.35; }
.reduced-motion .combat-fx .beam-plasma { stroke-width:7; }
.reduced-motion .combat-fx.attack .impact-bloom { opacity:.45; }
@media(prefers-reduced-motion:reduce) {
 .combat-fx * { animation:none!important; }
 .combat-fx .charge-ring,.combat-fx .muzzle-star,.combat-fx .beam-thread,.combat-fx .impact-ring,.combat-fx .impact-wave,.combat-fx i { display:none; }
 .combat-fx .beam-aura { stroke-width:15; opacity:.35; }
 .combat-fx .beam-plasma { stroke-width:7; }
 .combat-fx.attack .impact-bloom { opacity:.45; }
}
