.boss-unit.boss-toxic-beast{width:186px;height:186px;margin:-93px 0 0 -93px;overflow:visible;border:0;border-radius:0;background:none;box-shadow:none}
.boss-unit.boss-toxic-beast::before,.boss-unit.boss-toxic-beast::after{inset:-9px;border:1px solid #9bff3b77;border-radius:48%;box-shadow:0 0 10px #81ff2877;animation:toxic-boss-ring 7s linear infinite}
.boss-unit.boss-toxic-beast::after{inset:8px;border-style:dashed;border-color:#d9ff9c45;animation-direction:reverse;animation-duration:5s}
.boss-unit.boss-toxic-beast .boss-sprite{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 8px #bdff5488) drop-shadow(0 0 21px #48d62588);animation:toxic-beast-idle 1.15s ease-in-out infinite alternate;transform-origin:50% 45%}
.toxic-beast-head,.toxic-beast-tail{position:absolute;z-index:3;inset:0;background:url("enemy-toxic-beast.png") center/contain no-repeat;pointer-events:none}
.toxic-beast-head{z-index:4;clip-path:polygon(39% 0,68% 0,74% 19%,68% 34%,62% 44%,50% 47%,39% 39%,34% 22%);transform-origin:53% 39%;filter:drop-shadow(0 0 5px #d7ff79)}
.toxic-beast-tail{z-index:2;left:4%;top:56%;width:56%;height:42%;inset:auto;background:none;border-left:4px solid #a3ef30;border-bottom:4px solid #c5ff3a;border-radius:0 0 0 88%;transform-origin:15% 82%;opacity:0;filter:drop-shadow(0 0 4px #caff69) drop-shadow(0 0 11px #52ed31)}
.boss-unit.boss-toxic-beast.toxic-charging .boss-sprite{filter:brightness(1.18) saturate(1.4) drop-shadow(0 0 12px #ddff81) drop-shadow(0 0 31px #62f233);animation:toxic-energy-gather .4s ease-in-out infinite alternate}
.boss-unit.boss-toxic-beast.toxic-charging .toxic-beast-head{animation:toxic-head-charge .7s ease-in-out infinite alternate;filter:brightness(1.42) drop-shadow(0 0 8px #e8ff98) drop-shadow(0 0 19px #64ef35)}
.boss-unit.boss-toxic-beast.toxic-charging::after{inset:-18px;border:2px solid #baff5188;box-shadow:0 0 13px #acff42,0 0 30px #54ff1b;animation:toxic-charge-ring .48s ease-in-out infinite alternate}
.boss-unit.boss-toxic-beast.toxic-breath-firing .boss-sprite{filter:brightness(1.5) saturate(1.55) drop-shadow(0 0 15px #ecff9e) drop-shadow(0 0 36px #50ec2e)}
.boss-unit.boss-toxic-beast.toxic-breath-firing .toxic-beast-head{animation:toxic-head-fire .44s ease-out 2;filter:brightness(1.65) drop-shadow(0 0 10px #f5ffbc) drop-shadow(0 0 28px #4eff28)}
.boss-unit.boss-toxic-beast.toxic-tail-firing .boss-sprite{animation:toxic-tail-recoil .42s ease-out}
.boss-unit.boss-toxic-beast.toxic-tail-firing .toxic-beast-tail{opacity:1;animation:toxic-tail-lash .42s ease-out forwards}
.fx-enemy.toxic-beast-venom{width:13px;height:16px;margin:-8px 0 0 -6px;border:1px solid #dcff91;border-radius:55% 45% 63% 37%;background:radial-gradient(circle at 35% 28%,#f7ffd1 0 10%,#baff55 28%,#4ddc25 62%,#187b24 85%);box-shadow:0 0 8px #efffb1,0 0 18px #6dff35,0 0 27px #39d82b}
.fx-toxic-tail-whip{position:absolute;z-index:27;width:50px;height:26px;margin:-13px 0 0 -20px;border-bottom:3px solid #caff59;border-left:2px solid #78e52c;border-radius:0 0 0 100%;transform:rotate(-24deg);filter:drop-shadow(0 0 5px #e6ff9a) drop-shadow(0 0 11px #4deb25);animation:toxic-whip-flash .42s ease-out forwards;pointer-events:none}
.fx-toxic-beast-breath{position:absolute;z-index:30;width:min(440px,88vw);height:min(250px,44vh);margin:-28px 0 0 0;border-radius:0 55% 55% 0;background:linear-gradient(90deg,#faffd9 0 2%,#e5ff9c 4%,#aaff4fe8 9%,#6dff3ab8 23%,#50eb2f70 46%,#3cce2e30 70%,transparent 100%);filter:blur(1.2px) drop-shadow(0 0 12px #baff53) drop-shadow(0 0 30px #52ed31);mix-blend-mode:screen;transform-origin:0 48%;animation:toxic-breath-wave 1.05s cubic-bezier(.12,.72,.22,1) forwards;pointer-events:none}
.fx-toxic-beast-breath::before,.fx-toxic-beast-breath::after{content:"";position:absolute;left:3%;top:24%;width:88%;height:52%;border-radius:50%;background:radial-gradient(ellipse at 0 50%,#f6ffd9 0 2%,#baff60 7%,#72f83c88 28%,#59d93433 58%,transparent 78%);filter:blur(5px);}
.fx-toxic-beast-breath::after{top:42%;height:19%;left:0;width:96%;background:linear-gradient(90deg,#fffde0,#d8ff84dd 12%,#a2ff4b80 44%,transparent);filter:blur(3px)}
.fx-toxic-beast-breath.reverse{margin-left:max(-440px,-88vw);border-radius:55% 0 0 55%;transform-origin:100% 48%;animation-name:toxic-breath-wave-reverse}
.fx-toxic-impact{position:absolute;z-index:29;width:30px;height:30px;margin:-15px;border:1px solid #deff96;border-radius:50%;background:radial-gradient(circle,#efffc4 0 9%,#a9ff45 20%,#4cdd2d55 49%,transparent 72%);box-shadow:0 0 9px #dfff9f,0 0 20px #51ef31;animation:toxic-poison-hit .54s ease-out forwards;pointer-events:none}
.fx-toxic-poison-detonation{position:absolute;z-index:40;inset:0;width:100%;height:100%;background:radial-gradient(circle at var(--toxic-blast-x) var(--toxic-blast-y),#f4ffbd 0 2%,#c5ff57aa 8%,#60ea364d 24%,#55d82a1c 52%,transparent 75%);mix-blend-mode:screen;animation:toxic-fleet-detonation .9s ease-out forwards;pointer-events:none}
.ally-unit.toxic-poisoned{filter:drop-shadow(0 0 5px #baff48) drop-shadow(0 0 12px #54db2c)}.toxic-poison-badge{position:absolute;z-index:38;left:50%;top:-6px;transform:translateX(-50%);padding:2px 4px;border:1px solid #baff6388;border-radius:5px;background:#15250de8;color:#d7ff88;font:900 7px/1 var(--font-body);text-shadow:0 0 5px #6ff230;white-space:nowrap;pointer-events:none}.ally-unit.toxic-overloaded .toxic-poison-badge{border-color:#fff4a0;background:#45320ceF;color:#fff5a2;box-shadow:0 0 8px #f6db46;animation:toxic-overload-flash .32s ease-in-out infinite alternate}
@keyframes toxic-boss-ring{to{transform:rotate(360deg)}}@keyframes toxic-beast-idle{from{transform:translateY(0) scale(1)}to{transform:translateY(-2px) scale(1.012)}}
@keyframes toxic-energy-gather{from{transform:translateY(0) scale(1);filter:brightness(1.06)}to{transform:translateY(-3px) scale(1.025);filter:brightness(1.35)}}@keyframes toxic-head-charge{from{transform:translateY(1px)}to{transform:translateY(-7px)}}@keyframes toxic-charge-ring{from{opacity:.25;transform:scale(.94)}to{opacity:.95;transform:scale(1.08)}}@keyframes toxic-head-fire{0%{transform:translateY(-7px)}38%{transform:translateY(4px) scaleY(.95)}100%{transform:translateY(0)}}
@keyframes toxic-tail-recoil{0%{transform:translateY(0)}35%{transform:translateY(-4px) rotate(-1deg)}100%{transform:translateY(0)}}@keyframes toxic-tail-lash{0%{opacity:0;transform:rotate(0) scale(.5)}32%{opacity:1}78%{opacity:1;transform:rotate(-36deg) scale(1.12)}100%{opacity:0;transform:rotate(-43deg) scale(1.2)}}@keyframes toxic-whip-flash{0%{opacity:0;transform:rotate(-14deg) scale(.45)}45%{opacity:1;transform:rotate(-42deg) scale(1.12)}100%{opacity:0;transform:rotate(-59deg) scale(.82)}}
@keyframes toxic-breath-wave{0%{opacity:0;transform:scaleX(.12) scaleY(.38) rotate(-4deg)}16%{opacity:1}46%{opacity:.96;transform:scaleX(.88) scaleY(1) rotate(1deg)}72%{opacity:.78;transform:scaleX(1.16) scaleY(.92) rotate(2deg)}100%{opacity:0;transform:scaleX(1.28) scaleY(.82) rotate(3deg)}}@keyframes toxic-poison-hit{0%{opacity:0;transform:scale(.4)}28%{opacity:1;transform:scale(1.3)}100%{opacity:0;transform:scale(2.1)}}@keyframes toxic-fleet-detonation{0%{opacity:0}18%{opacity:.95}55%{opacity:.7}100%{opacity:0}}@keyframes toxic-overload-flash{to{filter:brightness(1.65);transform:translateX(-50%) scale(1.12)}}
@keyframes toxic-breath-wave-reverse{0%{opacity:0;transform:scaleX(-.12) scaleY(.38) rotate(4deg)}16%{opacity:1}46%{opacity:.96;transform:scaleX(-.88) scaleY(1) rotate(-1deg)}72%{opacity:.78;transform:scaleX(-1.16) scaleY(.92) rotate(-2deg)}100%{opacity:0;transform:scaleX(-1.28) scaleY(.82) rotate(-3deg)}}
@media(max-width:560px){.boss-unit.boss-toxic-beast{width:148px;height:148px;margin:-74px 0 0 -74px}.fx-toxic-beast-breath{width:min(300px,82vw);height:min(210px,42vh)}}
@media(prefers-reduced-motion:reduce){.boss-unit.boss-toxic-beast .boss-sprite{animation:none}.boss-unit.boss-toxic-beast::before,.boss-unit.boss-toxic-beast::after{animation:none}}

/* 독성마수 동작 개편 (battle-engine.js fireToxicBeastVenom / launchToxicGlob / finishToxicBeastBreath)
   그림을 잘라 움직이던 머리·꼬리 사본과 CSS 곡선은 쓰지 않고, 몸 전체 동작 + 실제 꼬리 끝·입 위치 효과로 표현한다. */
.boss-unit.boss-toxic-beast .toxic-beast-head,.boss-unit.boss-toxic-beast .toxic-beast-tail{display:none!important}
.boss-unit.boss-toxic-beast .boss-sprite{animation:tb-flap 1.6s ease-in-out infinite;transition:transform .25s ease-in}
/* 독침: 몸 젖힘 → 반동 */
.boss-unit.boss-toxic-beast.toxic-tail-aiming .boss-sprite{animation:none;transform:translateY(-5px) rotate(-3deg) scale(1.02)}
.boss-unit.boss-toxic-beast.toxic-tail-firing .boss-sprite{animation:tb-recoil .42s cubic-bezier(.2,.8,.3,1)}
/* 브레스: 충전 중 날개를 펴고 몸을 듦 → 발사 때 머리를 숙이며 앞으로 */
.boss-unit.boss-toxic-beast.toxic-charging .boss-sprite{animation:tb-charge .4s ease-in-out infinite alternate}
.boss-unit.boss-toxic-beast.toxic-breath-firing .boss-sprite{animation:tb-lunge 1.1s cubic-bezier(.2,.8,.3,1)}
.fx-toxic-tail-glow,.fx-toxic-tail-burst,.fx-toxic-glob,.fx-toxic-drop,.fx-toxic-splash,.fx-toxic-puddle,.fx-toxic-mote,.fx-toxic-mouth-glow,.fx-toxic-breath-cone,.fx-toxic-cloud,.fx-toxic-mist{position:absolute;pointer-events:none}
.fx-toxic-tail-glow{z-index:29;width:34px;height:34px;transform:translate(-50%,-50%);border-radius:50%;mix-blend-mode:screen;background:radial-gradient(circle,#fbffe0 0 14%,#d7ff7a 30%,#7dff3a88 52%,transparent 72%);animation:tb-tail-glow .25s ease-in forwards}
.fx-toxic-tail-burst{z-index:29;width:48px;height:48px;transform:translate(-50%,-50%);border-radius:50%;mix-blend-mode:screen;background:radial-gradient(circle,#fff 0 10%,#e9ffa0 24%,#8cff3faa 46%,transparent 70%);animation:tb-burst .32s ease-out forwards}
.fx-toxic-glob{z-index:30;width:15px;height:17px;transform:translate(-50%,-50%);border:1px solid #dcff91;border-radius:55% 45% 63% 37%;
  background:radial-gradient(circle at 35% 28%,#f7ffd1 0 10%,#baff55 28%,#4ddc25 62%,#187b24 85%);box-shadow:0 0 8px #efffb1,0 0 18px #6dff35}
.fx-toxic-drop{z-index:29;width:5px;height:7px;transform:translate(-50%,-50%);border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:radial-gradient(circle at 40% 30%,#eaffb0,#7ee43a 60%,#2f8a1c);box-shadow:0 0 5px #8cff3f}
.fx-toxic-drop.trail{animation:tb-drop-trail .5s ease-out forwards}
.fx-toxic-drop.splash{animation:tb-drop-splash .45s cubic-bezier(.2,.8,.4,1) forwards}
.fx-toxic-drop.drip{z-index:24;animation:tb-drop-drip .9s cubic-bezier(.5,0,1,1) forwards}
.fx-toxic-splash{z-index:29;width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%;border:2px solid #d8ff8a;box-shadow:0 0 10px #8cff3f;animation:tb-burst .4s ease-out forwards}
.fx-toxic-puddle{z-index:23;width:44px;height:18px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,#c8ff6acc 0 18%,#6fdc32aa 45%,#2f8a1c55 65%,transparent 72%);animation:tb-puddle 1.3s ease-out forwards}
.fx-toxic-puddle::before,.fx-toxic-puddle::after{content:"";position:absolute;width:6px;height:6px;border-radius:50%;border:1px solid #e5ffb0;background:#b6ff6a44;opacity:0;animation:tb-bubble .5s ease-out .2s 2}
.fx-toxic-puddle::before{left:30%;top:20%}.fx-toxic-puddle::after{left:62%;top:35%;animation-delay:.45s}
.fx-toxic-mote{z-index:29;width:5px;height:5px;transform:translate(-50%,-50%);border-radius:50%;background:#d6ff8a;box-shadow:0 0 6px #8cff3f;animation:tb-mote .52s cubic-bezier(.5,0,.9,.5) forwards}
.fx-toxic-mouth-glow{z-index:30;width:26px;height:26px;border-radius:50%;mix-blend-mode:screen;transform:translate(-50%,-50%) scale(calc(.2 + var(--charge,0) * 1.4));
  background:radial-gradient(circle,#fff 0 14%,#e6ff9a 30%,#8cff3fbb 52%,transparent 72%);box-shadow:0 0 18px #8cff3f}
.fx-toxic-breath-cone{z-index:28;transform:translateX(-50%) rotate(var(--cone-angle,0rad));transform-origin:50% 0;mix-blend-mode:screen;filter:blur(5px);
  -webkit-mask:conic-gradient(from 148deg at 50% 0%,transparent 0deg,#000 16deg,#000 48deg,transparent 64deg);mask:conic-gradient(from 148deg at 50% 0%,transparent 0deg,#000 16deg,#000 48deg,transparent 64deg);
  background:radial-gradient(ellipse 40% 30% at 50% 0%,#f8ffd8 0%,transparent 100%),linear-gradient(180deg,#d8ff9acc 0%,#9cff4cb0 14%,#6fe636 40%,#4fd22d70 72%,transparent 100%);animation:tb-cone 1.1s cubic-bezier(.2,.7,.3,1) forwards}
.fx-toxic-cloud{z-index:29;width:64px;height:64px;transform:translate(-50%,-50%);border-radius:50%;mix-blend-mode:screen;opacity:0;background:radial-gradient(circle,#d4ff8a99 0%,#7ee43a66 40%,transparent 70%);filter:blur(4px);animation:tb-cloud 1.15s cubic-bezier(.2,.6,.4,1) forwards}
.fx-toxic-mist{z-index:24;width:86px;height:86px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#9bff3b00 30%,#8cff3f55 55%,transparent 72%);filter:blur(3px);animation:tb-mist 2s ease-out forwards}
@keyframes tb-flap{0%,100%{transform:scale(1,1) translateY(0)}50%{transform:scale(1.045,.985) translateY(-3px)}}
@keyframes tb-recoil{0%{transform:translateY(-5px) rotate(-3deg) scale(1.02)}30%{transform:translateY(6px) rotate(2deg) scale(.98)}100%{transform:none}}
@keyframes tb-charge{from{transform:translateY(-8px) scale(1.08,1.02);filter:brightness(1.08) drop-shadow(0 0 10px #d4ff7a)}to{transform:translateY(-9px) scale(1.1,1.02);filter:brightness(1.3) drop-shadow(0 0 22px #8cff3f)}}
@keyframes tb-lunge{0%{transform:translateY(-8px) scale(1.09,1.02)}25%{transform:translateY(10px) scale(1.04,1.06)}80%{transform:translateY(6px) scale(1.03)}100%{transform:none}}
@keyframes tb-tail-glow{from{transform:translate(-50%,-50%) scale(.3);opacity:.4}to{transform:translate(-50%,-50%) scale(1.3);opacity:1}}
@keyframes tb-burst{from{transform:translate(-50%,-50%) scale(.3);opacity:1}to{transform:translate(-50%,-50%) scale(1.6);opacity:0}}
@keyframes tb-drop-trail{from{opacity:.9}to{opacity:0;transform:translate(-50%,calc(-50% + 12px)) scale(.5)}}
@keyframes tb-drop-splash{from{opacity:1}to{opacity:0;transform:translate(calc(-50% + var(--drop-x,0px)),calc(-50% + var(--drop-y,0px)))}}
@keyframes tb-drop-drip{from{opacity:1}to{opacity:0;transform:translate(-50%,calc(-50% + 34px)) scaleY(1.3)}}
@keyframes tb-puddle{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}15%{transform:translate(-50%,-50%) scale(1);opacity:1}70%{opacity:.9}100%{transform:translate(-50%,-50%) scale(1.1);opacity:0}}
@keyframes tb-bubble{0%{opacity:0;transform:scale(.3)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.5)}}
@keyframes tb-mote{0%{opacity:0}20%{opacity:1}100%{opacity:.2;transform:translate(calc(-50% + var(--mote-x,0px)),calc(-50% + var(--mote-y,0px)))}}
@keyframes tb-cone{0%{opacity:0;transform:translateX(-50%) rotate(var(--cone-angle,0rad)) scale(.3,.05)}35%{opacity:1;transform:translateX(-50%) rotate(var(--cone-angle,0rad)) scale(1,1)}75%{opacity:.85}100%{opacity:0;transform:translateX(-50%) rotate(var(--cone-angle,0rad)) scale(1.05,1.04)}}
@keyframes tb-cloud{0%{opacity:0;transform:translate(-50%,-50%) scale(.3)}25%{opacity:.95}100%{opacity:0;transform:translate(calc(-50% + var(--cloud-x,0px)),calc(-50% + var(--cloud-y,0px))) scale(1.8)}}
@keyframes tb-mist{0%{opacity:0;transform:translate(-50%,-50%) scale(.6) rotate(0)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1.15) rotate(90deg)}}
@media (prefers-reduced-motion:reduce){.boss-unit.boss-toxic-beast .boss-sprite{animation:none!important}.fx-toxic-drop.drip,.fx-toxic-mote,.fx-toxic-cloud{display:none}}
