
/* ---------- VFX layer: projectiles, spells, impacts ---------- */
.vfx-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.vfx { position: absolute; transform: translate(-50%, -50%); pointer-events: none; will-change: transform, left, top, opacity; }
.vfx.particle { border-radius: 50%; }
.vfx.ring { border-style: solid; border-radius: 50%; }
.vfx.flashball { border-radius: 50%; mix-blend-mode: screen; }
.vfx.arrow { width: 64px; height: 12px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.6)); }
.vfx.arrow svg { display: block; }
.vfx.arrow.bigArrow { width: 88px; filter: drop-shadow(0 0 8px #ffd166) drop-shadow(0 0 3px #fff); }
.vfx.arrow.bigArrow svg { width: 88px; }
.vfx.arrow.shadowArrow { filter: drop-shadow(0 0 6px #8a6bd6) brightness(0.8); }
.vfx.orb { width: 30px; height: 30px; border-radius: 50%; }
.vfx.orb.fire { background: radial-gradient(circle at 40% 40%, #fff6c8 0%, #ffcf5a 25%, #ff7a1a 55%, rgba(200,40,0,0) 72%); box-shadow: 0 0 22px 8px rgba(255,120,30,0.6); }
.vfx.orb.fire.small { width: 20px; height: 20px; }
.vfx.orb.meteor { width: 74px; height: 74px; background: radial-gradient(circle at 42% 42%, #fff3c0 0%, #ffb640 22%, #ff5a12 50%, rgba(120,20,0,0) 72%); box-shadow: 0 0 40px 16px rgba(255,90,20,0.55); }
.vfx.orb.arcane { background: radial-gradient(circle, #fff 0%, #d9c2ff 25%, #9a6bff 55%, rgba(90,40,200,0) 72%); box-shadow: 0 0 20px 6px rgba(160,110,255,0.6); }
.vfx.orb.arcane::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(210,190,255,0.8); animation: spinRing .5s linear infinite; border-left-color: transparent; }
.vfx.orb.arcane.tiny { width: 10px; height: 10px; }
.vfx.orb.arcane.tiny::after { display: none; }
@keyframes spinRing { to { transform: rotate(360deg); } }
.vfx.orb.spark { width: 16px; height: 16px; background: radial-gradient(circle, #fff 0%, #fff07a 40%, rgba(255,230,80,0) 72%); box-shadow: 0 0 14px 4px rgba(255,240,120,0.7); }
.vfx.orb.siphon { width: 24px; height: 24px; background: radial-gradient(circle, #eafff0 0%, #7fe0a0 40%, rgba(40,120,70,0) 72%); box-shadow: 0 0 16px 5px rgba(120,220,150,0.55); }
.vfx.orb.siphon.small { width: 16px; height: 16px; }
.vfx.shard.ice { width: 34px; height: 12px; background: linear-gradient(90deg, rgba(220,245,255,0.2), #e6f7ff 60%, #fff); clip-path: polygon(0 50%, 70% 0, 100% 50%, 70% 100%); filter: drop-shadow(0 0 6px #9fd8ff); }
.vfx.shard.ice.small { width: 20px; height: 8px; }
.vfx.disc.shield { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2f5f9, #9aa7b8 45%, #5d6a7c 70%); border: 3px solid #b3232f; box-shadow: 0 0 12px rgba(160,200,255,0.6); }
.vfx.flame { width: 60px; height: 110px; transform: translate(-50%, -100%); background: radial-gradient(ellipse at 50% 85%, #fff4c0 0%, #ffb640 25%, #ff5a12 50%, rgba(160,20,0,0) 72%); border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; filter: blur(1px); animation: flameUp .6s ease-out forwards; mix-blend-mode: screen; }
@keyframes flameUp { 0% { transform: translate(-50%, -100%) scale(0.3, 0.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, -120%) scale(1, 1.3); opacity: 0; } }
.vfx.beam { transform-origin: 0 50%; height: 16px; border-radius: 999px; background: linear-gradient(90deg, rgba(200,170,255,0.2), #efe6ff 30%, #b58cff 70%, #fff); box-shadow: 0 0 24px 8px rgba(160,110,255,0.6); }
.vfx.flail-ball { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #d6d9de, #6c7178 60%, #38332f); box-shadow: 0 0 0 3px rgba(0,0,0,0.25), 0 0 10px rgba(255,210,150,0.5); }
.vfx.slash { width: 170px; height: 170px; border-radius: 50%; border-top: 7px solid #fff4d8; border-right: 3px solid rgba(255,220,160,0.6); box-shadow: 0 -6px 18px -6px rgba(255,220,150,0.9); transform: translate(-50%, -50%) rotate(var(--r, -25deg)); animation: slashArc .32s ease-out forwards; }
.vfx.slash.heavy { width: 230px; height: 230px; border-top-width: 11px; --r: 60deg; }
@keyframes slashArc { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 30% { opacity: 1; } 100% { opacity: 0; clip-path: inset(0 0 0 0); transform: translate(-50%, -50%) rotate(calc(var(--r, -25deg) + 40deg)) scale(1.1); } }
.vfx.thorn { width: 10px; height: 46px; transform-origin: 50% 100%; background: linear-gradient(180deg, #d8ffd9, #4f9a62 60%, #2c5e38); clip-path: polygon(50% 0, 100% 100%, 0 100%); animation: thornUp .45s ease-out forwards; }
@keyframes thornUp { 0% { transform: translate(-50%, -100%) rotate(var(--r)) scaleY(0); opacity: 1; } 50% { transform: translate(-50%, -100%) rotate(var(--r)) scaleY(1.1); } 100% { transform: translate(-50%, -100%) rotate(var(--r)) scaleY(1); opacity: 0; } }
.vfx.claw { width: 110px; height: 110px; transform: translate(-50%, -50%) rotate(-30deg); }
.vfx.claw i { position: absolute; left: 0; width: 100%; height: 5px; border-radius: 50%; background: linear-gradient(90deg, transparent, #ffd0b0 40%, #ff5a3c 70%, transparent); box-shadow: 0 0 10px #ff6a4a; animation: claw .34s ease-out forwards; }
.vfx.claw i:nth-child(1) { top: 30%; } .vfx.claw i:nth-child(2) { top: 50%; animation-delay: .03s; } .vfx.claw i:nth-child(3) { top: 70%; animation-delay: .06s; }
.vfx.claw.heavy { width: 160px; height: 160px; } .vfx.claw.heavy i { height: 9px; }
@keyframes claw { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 60% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { opacity: 0; } }
.vfx.shield-dome { width: 190px; height: 230px; border-radius: 50% 50% 45% 45%; border: 3px solid rgba(140,190,255,0.9); background: radial-gradient(ellipse, rgba(120,170,240,0.05) 40%, rgba(120,170,240,0.35) 100%); box-shadow: 0 0 24px rgba(110,170,240,0.7); animation: dome .6s ease-out forwards; }
@keyframes dome { 0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); } 100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0; } }
.vfx.reticle { width: 90px; height: 90px; border-radius: 50%; border: 3px solid #ff5a4e; box-shadow: 0 0 12px #ff5a4e; animation: reticle .9s ease-out forwards; }
.vfx.reticle::before, .vfx.reticle::after { content: ""; position: absolute; background: #ff5a4e; left: 50%; top: -14px; bottom: -14px; width: 3px; transform: translateX(-50%); }
.vfx.reticle::after { top: 50%; bottom: auto; left: -14px; right: -14px; width: auto; height: 3px; transform: translateY(-50%); }
@keyframes reticle { 0% { transform: translate(-50%, -50%) scale(2) rotate(-90deg); opacity: 0; } 35% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; } }
.sprite.shoot { animation: shoot .42s ease-out !important; }
@keyframes shoot { 0% { transform: none; } 30% { transform: translateX(-10px) scaleX(0.98); } 45% { transform: translateX(4px); } 100% { transform: none; } }
/* monster spells */
.vfx.bolt-sky { transform: none; filter: drop-shadow(0 0 10px #bfe4ff) drop-shadow(0 0 3px #fff); }
.vfx.bolt-sky svg { display: block; overflow: visible; }
.vfx.orb.tide { width: 40px; height: 40px; background: radial-gradient(circle at 38% 35%, #e9fbff 0%, #8fd3e6 30%, #2f6f8a 62%, rgba(20,60,80,0) 74%); box-shadow: 0 0 20px 6px rgba(110,190,215,0.55); }
.vfx.orb.hexskull { width: 30px; height: 30px; display: grid; place-items: center; background: radial-gradient(circle, rgba(220,255,200,0.9) 0%, #6fd04a 45%, rgba(40,110,30,0) 72%); box-shadow: 0 0 18px 6px rgba(130,230,90,0.55); }
.vfx.orb.hexskull b { font-size: 18px; line-height: 1; color: #1b3a12; text-shadow: 0 0 4px #d8ffc8; }
.vfx.orb.gblast { width: 44px; height: 44px; background: radial-gradient(circle, #fff 0%, #d8ffb8 25%, #7fe04a 55%, rgba(60,140,20,0) 74%); box-shadow: 0 0 30px 12px rgba(140,240,90,0.6); }
.vfx.orb.ghost { width: 22px; height: 22px; background: radial-gradient(circle, #fff 0%, #cbbcf0 40%, rgba(120,100,170,0) 72%); box-shadow: 0 0 16px 6px rgba(170,150,220,0.5); }
.vfx.orb.meteor.magma { width: 58px; height: 58px; background: radial-gradient(circle at 40% 38%, #fff0b0 0%, #ff9a2a 28%, #c8320a 55%, rgba(80,10,0,0) 74%); }
.vfx.shard.ice.glass { width: 28px; height: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.15), #f6fdff 55%, #fff); filter: drop-shadow(0 0 6px #e8fbff); }
.vfx.thorn.big { width: 14px; height: 74px; }
.vfx.bubble { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(170,200,110,0.9); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.6), rgba(110,140,60,0.25) 60%); }
.vfx.geyser { width: 96px; height: 250px; transform: translate(-50%, -100%); transform-origin: 50% 100%; border-radius: 50% 50% 18% 18% / 30% 30% 10% 10%; filter: blur(1.5px);
  background: radial-gradient(ellipse 60% 22% at 50% 10%, rgba(214,230,160,0.9), rgba(214,230,160,0) 100%), linear-gradient(0deg, rgba(74,59,29,0.95) 0%, rgba(111,106,50,0.85) 40%, rgba(150,170,90,0.55) 75%, rgba(200,220,150,0) 100%); animation: geyser .62s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes geyser { 0% { transform: translate(-50%, -100%) scale(.3, 0); opacity: 1; } 35% { transform: translate(-50%, -100%) scale(1.1, 1.08); opacity: 1; } 55% { transform: translate(-50%, -100%) scale(.92, .95); } 100% { transform: translate(-50%, -100%) scale(.6, .3); opacity: 0; } }
.vfx.wail { transform-origin: 0 50%; height: 170px; background: radial-gradient(ellipse at 0% 50%, rgba(40,20,60,0.9), rgba(90,70,130,0.55) 45%, rgba(150,130,200,0) 75%); filter: blur(1px); }
@media (max-width: 480px) { .vfx.slash { width: 120px; height: 120px; } .vfx.shield-dome { width: 130px; height: 160px; } .vfx.orb.meteor { width: 54px; height: 54px; } }
body.no-fx .vfx-layer { display: none; }

/* debuffs, stun, specialization */
.status.debuff { background: #2a1420; border-color: #b0405a; color: #ffc2d0; cursor: help; }
.status.stun { background: #2b2610; border-color: #e8c547; color: #fff0b0; cursor: help; }
.intent.stunned { border-color: #e8c547; color: #fff0b0; background: linear-gradient(180deg, #3a3312, #241f0c); }
.stun-stars { position: absolute; left: 50%; top: 8%; width: 110px; height: 34px; margin-left: -55px; z-index: 4; pointer-events: none; animation: starSpin 1.3s linear forwards; }
.stun-stars i { position: absolute; font-style: normal; font-size: 24px; color: #ffe27a; text-shadow: 0 0 8px #ffcc33; }
.stun-stars i:nth-child(1) { left: 0; top: 10px; } .stun-stars i:nth-child(2) { left: 44px; top: 0; } .stun-stars i:nth-child(3) { right: 0; top: 12px; }
@keyframes starSpin { 0% { transform: rotateY(0) scale(0.4); opacity: 0; } 15% { opacity: 1; transform: rotateY(90deg) scale(1); } 85% { opacity: 1; } 100% { transform: rotateY(720deg) scale(1); opacity: 0; } }
.stage .sprite .rig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55)); }
#playerPanel .sprite.rigged { animation: none; }
.sprite.hurt .rig-canvas { filter: brightness(1.5) sepia(0.6) hue-rotate(-30deg) saturate(2.5) drop-shadow(0 6px 10px rgba(0,0,0,0.55)); }
.sprite.guard .rig-canvas { filter: drop-shadow(0 0 14px rgba(110,170,240,0.95)) drop-shadow(0 6px 10px rgba(0,0,0,0.55)); }
.sprite.debuffed .rig-canvas { filter: drop-shadow(0 0 14px rgba(200,60,110,0.9)) drop-shadow(0 6px 10px rgba(0,0,0,0.55)); }

.vfx.orb.goop { width: 30px; height: 26px; border-radius: 55% 45% 50% 50%; background: radial-gradient(circle at 38% 35%, #f0ffd0 0%, #a6e85a 30%, #4f8a22 64%, rgba(40,80,20,0) 76%); box-shadow: 0 0 16px 5px rgba(140,220,80,0.5); }
