.battle-arena, [data-terrain='forest'], [data-terrain='clearing'], [data-terrain='trail-ruins'] { --terrain: url('https://static.wixstatic.com/media/9932ce_737bbb5894c6469da092f208c284d8d1~mv2.png'); }
[data-terrain='rock'] { --terrain: url('https://static.wixstatic.com/media/9932ce_758c7d474e544fc3a46d7ad715713f5a~mv2.png'); }
[data-terrain='inferno'] { --terrain: url('https://static.wixstatic.com/media/9932ce_134cd0a0fe9f4dff9fd099ff37d72c20~mv2.png'); }
[data-terrain='sanctuary'] { --terrain: url('https://static.wixstatic.com/media/9932ce_a3feb4fd0ea148a5a1cbd4878b04cef0~mv2.png'); }
[data-terrain='birch'] { --terrain: url('https://static.wixstatic.com/media/9932ce_b23748539c6c4288a07b95dc71d9b330~mv2.png'); }
[data-terrain='roots'] { --terrain: url('https://static.wixstatic.com/media/9932ce_945929f48008459cab6aac1009424cff~mv2.png'); }
[data-terrain='stream'] { --terrain: url('https://static.wixstatic.com/media/9932ce_d519f3cb0b37407d85303def8f5a930e~mv2.png'); }
[data-terrain='pines'] { --terrain: url('https://static.wixstatic.com/media/9932ce_37f0f75c7f134195b66dc3768c3389c1~mv2.png'); }
[data-terrain='ancient'] { --terrain: url('https://static.wixstatic.com/media/9932ce_c7742ec618624f1bb822bd404d6d69fb~mv2.png'); }
[data-terrain='ruins'] { --terrain: url('https://static.wixstatic.com/media/9932ce_7f64404e5ea64fefa2bf703f9c7cee64~mv2.png'); }
[data-terrain='heart'] { --terrain: url('https://static.wixstatic.com/media/9932ce_837cbb5a006c46d789696ace19f3bfaf~mv2.png'); }
[data-terrain='clearing'] { --terrain-focus: center 36%; --terrain-tone: saturate(1.18) brightness(1.12); }
[data-terrain='trail-ruins'] { --terrain-focus: right 74%; --terrain-tone: saturate(.8) brightness(.89); }
/* Terras de Fogo: as 10 fases usam a mesma arena vulcânica com iluminação diferente. */
[data-terrain^='fire-'] { --terrain: url('https://static.wixstatic.com/media/9932ce_134cd0a0fe9f4dff9fd099ff37d72c20~mv2.png'); }
[data-terrain='fire-gate']    { --terrain-tone: saturate(.85) brightness(1.08); }
[data-terrain='fire-fields']  { --terrain-tone: sepia(.25) saturate(1.1) brightness(1.02); }
[data-terrain='fire-river']   { --terrain-tone: saturate(1.45) brightness(1.04) contrast(1.05); }
[data-terrain='fire-forge']   { --terrain-tone: hue-rotate(10deg) saturate(1.2) brightness(.95); }
[data-terrain='fire-caldera'] { --terrain-tone: hue-rotate(-8deg) saturate(1.6) brightness(.9) contrast(1.08); }
[data-terrain='fire-canyon']  { --terrain-tone: sepia(.4) saturate(1.3) brightness(.98); }
[data-terrain='fire-ruins']   { --terrain-tone: hue-rotate(-14deg) saturate(1.25) brightness(.9); }
[data-terrain='fire-altar']   { --terrain-tone: hue-rotate(18deg) saturate(1.5) brightness(.92); }
[data-terrain='fire-throne']  { --terrain-tone: saturate(1.1) brightness(.78) contrast(1.15); }
[data-terrain='fire-heart']   { --terrain-tone: hue-rotate(-18deg) saturate(1.8) brightness(.84) contrast(1.12); }
.battle-arena[data-region='fire'] { background-color: #2a1512; border-color: #7f3b22; }
.battle-arena[data-region='fire'] .arena-motes { filter: hue-rotate(-60deg) saturate(2.4); opacity: .45; }
.arena-terrain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--terrain) var(--terrain-focus, center 53%) / cover no-repeat;
  filter: var(--terrain-tone, none);
}
.battle-arena.foreground-framing .arena-terrain {
  background-size: auto 142%;
  background-position: center bottom;
}
.battle-arena.centered-trail .arena-terrain { background-position: center 74%; }
.arena-terrain::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 49% 66%, transparent 30%, #0a100c5c 100%);
  transition: opacity .45s ease;
}
.boss-mode .arena-terrain::after {
  background: radial-gradient(ellipse at 50% 55%, #b8481f23, #260a0a94 82%);
}
.battle-arena::after { mix-blend-mode: overlay; }
.arena-motes { opacity: .27; }

.entity :is(.rig-sprite, .pixel-sprite),
.entity.is-boss :is(.rig-sprite, .pixel-sprite),
.entity.facing-left :is(.rig-sprite, .pixel-sprite) {
  animation: none !important;
  transform: scaleX(var(--direction));
  transform-origin: center;
  overflow: visible;
}
.pixel-sprite { image-rendering: pixelated; }
.pixel-frame { overflow: hidden; }
.pixel-sprite[data-pixel='giantTree'] image { filter: var(--giant-tree-tint, none); }
/* Terras de Fogo: o chão é escuro, então a sombra precisa ser mais forte para os pés "pisarem" nele.
   O Brotu de Lava ainda ilumina o chão em volta com um brilho quente. */
.battle-arena[data-region='fire'] .entity .sprite-svg > ellipse { fill: #000; opacity: .72; }
.battle-arena[data-region='fire'] .pixel-sprite[data-pixel='lavaBrotu'] > ellipse {
  fill: #1a0603;
  opacity: .9;
  filter: drop-shadow(0 0 3px #ff5a1acc) drop-shadow(0 0 7px #ff3d1466);
}
.pet-choice-card .pixel-sprite, .entity .pixel-sprite { overflow: visible; }
.pet-choice-card.selected .pixel-sprite { animation: none; }
.entity .sprite-wrap { filter: drop-shadow(0 3px 3px #0f1513b0); }
.entity[data-kind='pet'] .sprite-wrap { filter: drop-shadow(0 2px 4px #070b0ace) drop-shadow(0 0 4px #f3e5c04d); }
.entity.is-boss .sprite-wrap { filter: drop-shadow(0 5px 6px #090302da) drop-shadow(0 0 9px #e4703f88); }
.entity[data-kind='pet'].is-attacking .sprite-wrap { filter: drop-shadow(0 3px 3px #1712179e) drop-shadow(0 0 7px var(--skill)); }
.entity .target-tile-ring { bottom: 8%; height: 15px; width: 57%; border-color: #ffce83; transform: scaleY(.72); }
.entity.is-boss .target-tile-ring { height: 27px; }
.entity[data-kind='mob']:not(:is(.is-current-target, .is-boss, .is-rare)) .rpg-name-mob { visibility: hidden; }
.entity[data-kind='mob']:not(:is(.is-current-target, .is-boss, .is-rare)) .rpg-hp-bar { opacity: .67; }
.entity.is-vino .pixel-frame image { filter: grayscale(1) brightness(.5) contrast(1.22); }
.entity.is-vino .rpg-name-mob { color: #e3e0ed; }
.entity.is-rare.is-vino .sprite-wrap { filter: drop-shadow(0 2px 3px #09080d) drop-shadow(0 0 5px #b3a8d559); }
.vino-gold-fx { color: #ffdd75; font-size: 17px; text-shadow: 0 1px 3px #22170c, 0 0 8px #754e24; }
.rpg-name-mob, .rpg-name-pet {
  padding: 1px 4px;
  border-radius: 4px;
  background: #090e0de0;
  color: #ffceab;
  font-size: 10px;
}
.rpg-name-pet { color: #b7f8d4; }
.rpg-hp-bar { width: 49px; background: #111817; }
.entity.is-boss .rpg-hp-bar { width: 128px; height: 8px; }
.entity.is-boss .sprite-wrap::before { width: 157px; height: 130px; opacity: .42; }

.choice-name { letter-spacing: .015em; }
.pet-choice-card .rig-sprite { overflow: visible; }
.pet-choice-card:hover [data-joint='front'],
.pet-choice-card:focus-visible [data-joint='front'] { animation: preview-front 1.2s ease-in-out infinite; }
.pet-choice-card:hover [data-joint='back'],
.pet-choice-card:focus-visible [data-joint='back'] { animation: preview-back 1.2s ease-in-out infinite; }
@keyframes preview-front { 50% { transform: rotate(-35deg); } }
@keyframes preview-back { 50% { transform: rotate(18deg); } }

.combat-projectile {
  position: absolute;
  z-index: 76;
  left: 0;
  top: 0;
  pointer-events: none;
  width: 55px;
  height: 17px;
}
.projectile-wolf {
  background: radial-gradient(ellipse at 77% 50%, #edfaff 0 11%, #b8eaff 17%, var(--skill) 34%, transparent 71%);
  filter: drop-shadow(0 0 6px var(--skill));
}
.projectile-dog {
  height: 12px;
  background: linear-gradient(90deg, #ffb92d55, #fff2ad 44%, var(--skill));
  clip-path: polygon(0 20%, 23% 42%, 77% 42%, 73% 6%, 100% 50%, 73% 94%, 77% 58%, 23% 58%, 0 80%, 8% 50%);
}
.projectile-rabbit {
  width: 43px;
  height: 28px;
  background: radial-gradient(ellipse at 64% 50%, #fffbe3 0 14%, var(--skill) 24%, #edaf21 41%, transparent 65%);
  filter: drop-shadow(0 0 8px var(--skill));
}
.projectile-rabbit::after {
  content: '';
  position: absolute;
  left: 36%;
  top: 1px;
  width: 25px;
  height: 25px;
  border: 1px solid var(--skill);
  border-radius: 50%;
  transform: rotate(-38deg) scaleX(.58);
}
.projectile-brotu {
  width: 31px;
  height: 20px;
  filter: drop-shadow(0 1px 2px #10210b) drop-shadow(0 0 3px #bef980);
}
.projectile-brotu::before {
  content: '';
  position: absolute;
  inset: 2px 1px 2px 4px;
  background: linear-gradient(152deg, #c9f592 6%, #8edb43 47%, #458c2c 51%, #296428 88%);
  clip-path: polygon(0 72%, 20% 29%, 47% 9%, 68% 7%, 100% 0, 83% 36%, 75% 65%, 53% 87%, 23% 92%);
}
.projectile-brotu::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 23px;
  height: 1px;
  background: #e6f9a9;
  transform: rotate(-24deg);
  transform-origin: left center;
}
.brotu-leaf-impact {
  position: absolute;
  z-index: 76;
  width: 61px;
  height: 45px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 31%, #dcff98 0 4%, transparent 6%),
    radial-gradient(ellipse at 52% 16%, #b3ea69 0 4%, transparent 6%),
    radial-gradient(ellipse at 79% 40%, #9cdd58 0 5%, transparent 7%),
    radial-gradient(ellipse at 65% 69%, #daed9b 0 4%, transparent 6%),
    radial-gradient(ellipse at 39% 72%, #8bd35a 0 4%, transparent 6%);
  animation: combat-burst .4s ease-out both;
}
/* Pedra de lava do Brotu de Lava: pedra escura com fendas acesas, brilho quente e brasas atrás. */
.combat-projectile.projectile-lava-rock {
  width: 20px;
  height: 18px;
  filter: drop-shadow(0 1px 1px #1a0603) drop-shadow(0 0 4px #ff6a1f);
}
.projectile-lava-rock::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(8% 34%, 30% 6%, 66% 2%, 92% 22%, 98% 58%, 78% 92%, 40% 100%, 10% 78%);
  background:
    radial-gradient(ellipse 22% 9% at 62% 60%, #ffd04a, #ff8a2e 60%, transparent),
    radial-gradient(ellipse 12% 7% at 40% 74%, #ff8a2e, transparent),
    radial-gradient(circle at 60% 62%, #ff5a1a66, transparent 42%),
    radial-gradient(ellipse at 32% 28%, #8a6450, transparent 46%),
    conic-gradient(from 150deg at 55% 55%, #3e2a26, #1f1513 30%, #4d3530 55%, #2a1c19 80%, #3e2a26);
}
/* Baforada da boca do Brotu de Lava ao cuspir a pedra. */
.lava-spit {
  position: absolute;
  z-index: 84;
  width: 22px;
  height: 16px;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffc24a 0 1.2px, transparent 2px),
    radial-gradient(circle at 75% 70%, #ff7a2a 0 1.2px, transparent 2px),
    radial-gradient(circle, #fff0a6 0 10%, #ff8a2e 28%, #ff5a1a55 48%, transparent 66%);
  animation: combat-burst .32s ease-out both;
}
.charged-projectile { width: 72px; height: 31px; }

.sword-slash-fx, .skill-burst-fx, .monster-swipe-fx, .monster-crush-fx, .arrow-rain-fx {
  position: absolute;
  pointer-events: none;
  z-index: 76;
  will-change: transform, opacity;
}
.sword-slash-fx {
  width: 66px;
  height: 86px;
  border-radius: 50%;
  border-right: 6px solid var(--skill);
  border-top: 2px solid #ff9897;
  background: radial-gradient(ellipse at 90% 50%, color-mix(in srgb, var(--skill) 72%, transparent), transparent 63%);
  filter: drop-shadow(0 0 7px var(--skill));
  animation: sword-arc .39s ease-out both;
}
.heavy-slash-fx { width: 87px; height: 103px; border-right-width: 9px; }
@keyframes sword-arc {
  from { opacity: .14; transform: translate(-50%, -50%) rotate(calc(var(--aim) - 45deg)) scale(.57); }
  34% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(calc(var(--aim) + 46deg)) scale(1.17); }
}
.skill-burst-fx, .monster-crush-fx {
  width: 133px;
  height: 70px;
  border: 2px solid var(--skill);
  border-radius: 50%;
  background: radial-gradient(ellipse, transparent 42%, color-mix(in srgb, var(--skill), transparent 45%) 64%, transparent 76%);
  box-shadow: 0 0 15px color-mix(in srgb, var(--skill), transparent 48%);
  animation: combat-burst .50s ease-out both;
}
.burst-dog { border-style: dashed; }
.arrow-rain-fx {
  width: 128px;
  height: 75px;
  background: repeating-linear-gradient(118deg, transparent 0 14px, var(--skill) 15px 16px, transparent 17px 23px);
  clip-path: polygon(0 49%, 89% 15%, 100% 54%, 21% 100%);
  animation: arrow-rain .50s ease-in both;
}
@keyframes arrow-rain {
  from { transform: translate(-38%, -140%); opacity: .25; }
  44% { opacity: .95; }
  to { transform: translate(-55%, -24%); opacity: 0; }
}
.burst-rabbit { border-style: double; border-width: 5px; }
.monster-crush-fx { --skill: #ff8e64; }
.forest-attack {
  --attack-color: #ffde8b;
  position: absolute;
  z-index: 74;
  top: 0;
  left: 0;
  pointer-events: none;
  transform-origin: 0 0;
}
.forest-attack:not(.is-live) {
  z-index: 8;
  border: 1px dashed color-mix(in srgb, var(--attack-color) 80%, transparent);
  background: color-mix(in srgb, var(--attack-color) 12%, transparent);
  box-shadow: inset 0 0 11px color-mix(in srgb, var(--attack-color) 26%, transparent);
}
.forest-shot:not(.is-live), .forest-lane { border-radius: 7px; }
.forest-zone, .forest-ring { border-radius: 50%; }
.forest-zone.is-live {
  border: 2px solid var(--attack-color);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--attack-color) 39%, transparent), transparent 70%);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--attack-color) 50%, transparent);
}
.forest-lane.is-live {
  border-block: 2px solid var(--attack-color);
  background: linear-gradient(0deg, transparent, color-mix(in srgb, var(--attack-color) 62%, #1a1a15) 52%, transparent);
  box-shadow: 0 0 13px color-mix(in srgb, var(--attack-color) 43%, transparent);
}
.attack-leaves { --attack-color: #cfee83; }
.attack-leaves.is-live {
  background: linear-gradient(153deg, #e3ff90 8%, #adc74f 40%, #5ba128 47%, #296122 87%);
  clip-path: polygon(0 70%, 16% 32%, 40% 12%, 76% 7%, 100% 0, 92% 45%, 65% 79%, 34% 91%, 10% 89%);
  filter: drop-shadow(0 0 5px #101d05);
}
.attack-log { --attack-color: #f4bb76; }
.attack-log.is-live {
  border: 2px solid #542e20;
  border-radius: 40% 25% 25% 40%;
  background: repeating-linear-gradient(0deg, #552718 0 2px, #9c5531 3px 5px, #c8844d 6px 7px);
  box-shadow: 0 4px 9px #191211ad;
}
.attack-log.is-live::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 37%;
  border: 2px solid #87512b;
  border-radius: 50%;
  background: radial-gradient(ellipse, #713a21 9%, #d39c66 12% 36%, #a46b41 39% 46%, #e9bc81 48%);
}
.attack-roots { --attack-color: #f6c188; }
.attack-roots.is-live::before {
  content: '';
  position: absolute;
  inset: -26% 4% 6%;
  background: linear-gradient(146deg, #f6c692, #b47545 61%, #794528);
  clip-path: polygon(5% 90%, 24% 68%, 28% 37%, 46% 24%, 44% 0, 61% 19%, 62% 55%, 85% 37%, 92% 22%, 96% 54%, 86% 70%, 100% 90%, 59% 78%, 37% 88%);
}
.attack-acorns { --attack-color: #f8db8d; }
.attack-acorns.is-live::before {
  content: '';
  position: absolute;
  inset: 32% 38% 24%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(#5f4424 0 28%, #c07a3d 31% 72%, #e8b26e);
  box-shadow: 0 0 10px #f8b87f;
  animation: acorn-fall .32s ease-out both;
}
@keyframes acorn-fall { from { transform: translateY(-32px) rotate(-18deg); } to { transform: translateY(0) rotate(0); opacity: .4; } }
.attack-thorns { --attack-color: #e5fbaa; }
.attack-thorns.is-live {
  background: linear-gradient(90deg, #3f6c44, #a4ce6c 40%, #efffba 81%);
  clip-path: polygon(0 31%, 35% 42%, 100% 50%, 35% 65%, 0 75%, 14% 50%);
}
.attack-pollen { --attack-color: #f5e68a; }
.attack-pollen.is-live {
  border-style: dotted;
  background: radial-gradient(ellipse, #e8bd5080, #eee28628 69%, transparent 73%);
  animation: pollen-breathe .9s ease-in-out infinite alternate;
}
@keyframes pollen-breathe { from { opacity: .65; } to { opacity: 1; } }
.attack-vine { --attack-color: #a8ec85; }
.attack-vine.is-live {
  background: repeating-linear-gradient(153deg, #2e5a29 0 10px, #659947 17px 23px, #b4e77d 26px 28px, #32663a 33px 38px);
  clip-path: polygon(0 20%, 17% 38%, 33% 9%, 50% 40%, 75% 13%, 100% 29%, 100% 64%, 75% 57%, 52% 84%, 33% 57%, 16% 83%, 0 65%);
}
.attack-seed { --attack-color: #e4f38b; }
.forest-shot.attack-seed.is-live {
  border: 1px solid #d5f381;
  border-radius: 55% 42% 60% 48%;
  background: radial-gradient(ellipse at 32% 34%, #d4ed87, #659326 47%, #3d5a1c 72%);
  box-shadow: 0 0 8px #d7e95978;
}
.forest-zone.attack-seed.is-live { background: radial-gradient(circle, #f4ffbaad, #afd0445e 50%, #e6f89204 72%); }
.attack-sap { --attack-color: #ffd176; }
.attack-sap.is-live {
  border: 4px double #ffd784;
  box-shadow: 0 0 12px #ffc466, inset 0 0 12px #ffc466;
  background: transparent;
}
.attack-rupture { --attack-color: #ffe1ad; }
.attack-rupture.is-live {
  background: repeating-linear-gradient(151deg, #82532e 0 12px, #d1aa69 17px 20px, #f4d6a0 23px 25px, #704125 29px 40px);
  clip-path: polygon(0 29%, 19% 12%, 34% 32%, 51% 10%, 65% 32%, 81% 7%, 100% 35%, 100% 73%, 84% 93%, 65% 66%, 49% 86%, 29% 67%, 15% 94%, 0 72%);
}
.monster-swipe-fx {
  width: 54px;
  height: 42px;
  background: repeating-linear-gradient(123deg, transparent 0 10px, #ffe0b5 11px 13px, transparent 14px 18px);
  clip-path: ellipse(46% 42%);
  animation: combat-burst .32s ease-out both;
}
@keyframes combat-burst {
  from { opacity: .85; transform: translate(-50%, -50%) scale(.43); }
  27% { opacity: 1; }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.49); }
}

@media (max-width: 640px) {
  .entity .rig-sprite { filter: none; }
  .entity.is-boss .rpg-hp-bar { width: min(128px, 40vw); }
  .pet-choice-card :is(.rig-sprite, .pixel-sprite) { width: 76px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .pet-choice-card [data-joint] { animation: none !important; }
  .skill-burst-fx, .monster-crush-fx { box-shadow: none; }
}


/* Regional lighting and creature effects are shared by the map and the battle arena. */
[data-region="sanctuary"] { --terrain-tone: saturate(.69) hue-rotate(14deg) brightness(1.14); }
[data-region="abyss"] { --terrain-tone: saturate(1.26) hue-rotate(-19deg) brightness(.82); }
[data-region="crystal"] { --terrain-tone: saturate(1.35) hue-rotate(70deg) brightness(.93); }
[data-region="storm"] { --terrain-tone: saturate(.46) hue-rotate(161deg) brightness(.90); }
[data-region="void"] { --terrain-tone: saturate(1.28) hue-rotate(106deg) brightness(.73); }
[data-region="runes"] { --terrain-tone: saturate(.75) hue-rotate(62deg) brightness(.93); }
[data-region="eclipse"] { --terrain-tone: saturate(1.22) hue-rotate(-34deg) brightness(.76); }

.region-sprite { image-rendering: pixelated; overflow: visible; }
.region-sprite [data-region-art] { filter: var(--giant-tree-tint, none); }
.region-sprite[data-region-sprite="storm-elemental"] [data-region-body] { filter: brightness(var(--cloud-light, 1)); }
.entity.entity .region-sprite, .entity.entity.mob-dead .region-sprite { animation: none !important; transform: none; }
.region-sprite { --mob-light: #ffb456; }
.region-sprite[data-region-sprite="ice-golem"],
.region-sprite[data-region-sprite="storm-elemental"] { --mob-light: #bcf1ff; }
.region-sprite[data-region-sprite="crystal-scorpion"],
.region-sprite[data-region-sprite="void-sentinel"] { --mob-light: #d5a3ff; }
.region-sprite[data-region-sprite="runic-colossus"] { --mob-light: #8dffd8; }
.region-sprite[data-region-sprite="eclipse-drake"] { --mob-light: #ff8792; }
.region-sprite [data-region-energy] {
  fill: none;
  stroke: var(--mob-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px var(--mob-light));
}
.region-sprite [data-region-step] ellipse { fill: #bb927e39; stroke: #e9c7a68f; }
.region-sprite [data-region-step] path { fill: none; stroke: var(--mob-light); stroke-linecap: round; }
.region-sprite [data-held-rock] {
  filter: drop-shadow(0 0 3px rgb(255 114 37 / var(--ember-strength, 0)));
}
.region-sprite [data-rock-embers] { opacity: var(--ember-strength, 0); }
/* Region abilities show their physical effect only once the attack is released. */
.elemental-attack.forest-shot.is-live {
  border-radius: 50%;
  background: radial-gradient(ellipse at 74% 50%, #fff8d7 1%, #ffc77d 23%, #f17732b3 47%, transparent 77%);
  filter: drop-shadow(0 0 5px #ff923e);
}
.elemental-attack.forest-roll.is-live::before {
  content: "";
  position: absolute;
  inset: auto 20% 6%;
  height: 16%;
  border-radius: 100%;
  background: #160907bc;
  box-shadow: 0 0 6px #342019;
}
.elemental-attack.forest-roll.is-live::after {
  content: "";
  position: absolute;
  top: -39%;
  left: 12%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 44% 53% 46% 49%;
  clip-path: polygon(4% 34%, 25% 10%, 62% 2%, 87% 15%, 98% 45%, 91% 75%, 68% 98%, 31% 95%, 8% 78%);
  background:
    radial-gradient(ellipse at 29% 17%, #bb8d6b7a, transparent 39%),
    linear-gradient(39deg, transparent 34%, #ba4225b0 37%, #ffaf54 40%, #822a20 43%, transparent 46%),
    linear-gradient(130deg, transparent 41%, #ce4528 44%, #ffd58b 47%, #ba3a24 50%, transparent 54%),
    conic-gradient(from 154deg at 58% 55%, #513429, #241719 19%, #76503d 35%, #352722 63%, #694736 84%, #513429);
  box-shadow: inset -4px -4px 7px #1e1212, 0 0 7px #f98d4566;
  transform: translateY(calc(-1 * var(--rock-lift, 0px))) rotate(var(--roll-angle, 0deg));
}
.elemental-attack:not(.is-live).regional-boss-attack {
  border-color: var(--attack-color);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--attack-color) 33%, transparent);
}
.elemental-attack:not(.is-live).regional-boss-attack:is(.forest-roll,.forest-charge,.forest-shot) {
  border-radius: 50%;
}
.regional-projectile-sparks { display: none; }
.elemental-attack.is-live .regional-projectile-sparks {
  display: block;
  position: absolute;
  z-index: -1;
  inset: 21% 34% 12% -40%;
  background:
    radial-gradient(circle at 17% 60%, #ff7b30 0 1px, transparent 2px),
    radial-gradient(circle at 29% 37%, #ffbd70 0 1px, transparent 2px),
    radial-gradient(circle at 46% 69%, #ff9b55 0 1px, transparent 2px),
    radial-gradient(circle at 66% 26%, #ffe4a2 0 1px, transparent 2px),
    radial-gradient(circle at 82% 56%, #ffb061 0 1.5px, transparent 2.5px);
  animation: regional-embers 330ms ease-out infinite;
}
.forest-roll .regional-projectile-sparks {
  inset: 12% 12% 15% 12%;
  transform: rotate(var(--flight-angle, 0deg)) translateX(-46%);
}
@keyframes regional-embers {
  from { opacity: .86; translate: 4px 3px; }
  to { opacity: .24; translate: -5px -3px; }
}
.elemental-attack.forest-zone.is-live {
  background: radial-gradient(ellipse, color-mix(in srgb, var(--attack-color) 37%, transparent), transparent 72%);
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--attack-color) 42%, transparent);
}
.elemental-attack.attack-magma.forest-zone.is-live::before {
  content: "";
  position: absolute;
  inset: -40% 20% 34%;
  background: radial-gradient(ellipse at 50% 86%, #fff5c0, #ff8c48 41%, #e84c24 63%, transparent 77%);
  clip-path: polygon(0 100%, 15% 45%, 33% 70%, 52% 0, 65% 50%, 83% 23%, 100% 100%);
  transform-origin: center bottom;
  animation: enemy-ice-lift 220ms ease-out both;
}
/* Erupção de Impacto: fendas incandescentes abrindo no chão, com lava espirrando e lascas. */
.elemental-attack.attack-lava.forest-zone.is-live {
  border: none;
  box-shadow: none;
  background: radial-gradient(ellipse 50% 32% at 50% 55%, #fff0a6, #ffbf3f 25%, #ff7f22b0 48%, #d9411a40 68%, transparent 78%);
  animation: lava-fissure-open 600ms ease-out both;
}
.elemental-attack.attack-lava.forest-zone.is-live::before {
  content: "";
  position: absolute;
  inset: 18% 2%;
  background: linear-gradient(90deg, #ffbf3f, #fff0a6 50%, #ffbf3f);
  clip-path: polygon(0 52%, 14% 38%, 26% 55%, 40% 30%, 52% 52%, 64% 36%, 78% 58%, 90% 40%, 100% 50%, 90% 56%, 78% 66%, 64% 46%, 52% 62%, 40% 42%, 26% 65%, 14% 48%, 0 60%);
  filter: drop-shadow(0 0 3px #ff7f22);
}
.elemental-attack.attack-lava.forest-zone.is-live::after {
  content: "";
  position: absolute;
  inset: -70% 24% 45%;
  background:
    radial-gradient(circle at 30% 30%, #45332e 0 6%, transparent 7%),
    radial-gradient(circle at 72% 18%, #634b41 0 5%, transparent 6%),
    radial-gradient(ellipse at 50% 100%, #fff0a6, #ff7f22 40%, #d9411a 62%, transparent 75%);
  clip-path: polygon(10% 100%, 22% 50%, 34% 70%, 48% 0, 60% 58%, 76% 28%, 90% 100%);
  transform-origin: 50% 100%;
  animation: lava-spurt 520ms ease-out both;
}
@keyframes lava-fissure-open { from { scale: .2 .6; opacity: .4; } 40% { scale: 1.08 1; opacity: 1; } to { scale: 1; opacity: .85; } }
@keyframes lava-spurt { from { transform: scaleY(.1); opacity: 1; } 45% { transform: scaleY(1.1); } to { transform: scaleY(.4) translateY(30%); opacity: 0; } }
.elemental-attack.attack-frost.forest-zone.is-live::before {
  content: "";
  position: absolute;
  inset: -38% 4% 12%;
  background: conic-gradient(from 162deg at 56% 45%, #497fae, #d4f7ff 24%, #a7d5ea 55%, #e5ffff 72%, #4d86a9);
  clip-path: polygon(6% 100%, 22% 58%, 25% 78%, 47% 14%, 54% 54%, 69% 2%, 76% 60%, 87% 37%, 90% 76%, 100% 100%);
  filter: drop-shadow(0 0 4px #e4ffff);
  transform-origin: 50% 100%;
  animation: enemy-ice-lift 200ms ease-out both;
}
@keyframes enemy-ice-lift { from { transform: scaleY(.12); opacity: .35; } }
.elemental-attack.attack-ember.forest-zone.is-live {
  background: radial-gradient(ellipse, #ffad524e, #f56b333f 45%, transparent 73%);
  border-style: dotted;
}
.elemental-attack.forest-charge.is-live {
  border-radius: 50%;
  background: radial-gradient(ellipse, #c4846c8c 6%, #5c393164 49%, transparent 76%);
  animation: enemy-bite-dust 220ms ease-out both;
}
@keyframes enemy-bite-dust { 0% { opacity: .28; } 55% { opacity: .86; } 100% { opacity: .49; } }
.elemental-attack.attack-amethyst.forest-lane.is-live {
  border: 0;
  background: linear-gradient(0deg, transparent 29%, #7d31a896 41%, #eec4ff 50%, #a663d288 61%, transparent 73%);
  clip-path: polygon(0 45%, 71% 41%, 100% 50%, 76% 61%, 0 57%);
}
.elemental-attack.attack-storm.forest-zone.is-live::before {
  content: "";
  position: absolute;
  inset: auto 22% 50%;
  height: clamp(105px, 16vw, 200px);
  background: linear-gradient(90deg, #5abdff65 10%, #e7ffff 51%, #86e0ff 68%, transparent 96%);
  filter: drop-shadow(0 0 5px #bbf7ff);
  clip-path: polygon(49% 0, 64% 0, 52% 34%, 74% 41%, 49% 100%, 43% 100%, 54% 52%, 35% 43%);
  animation: regional-bolt 310ms ease-out both;
}
@keyframes regional-bolt {
  0%, 22% { opacity: 1; }
  60%, 100% { opacity: .19; }
}
.enemy-lightning-link {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  height: 8px;
  translate: 0 -50%;
  transform-origin: left center;
  background: linear-gradient(0deg, transparent, #94e4ff 41%, #e8ffff 56%, transparent);
  clip-path: polygon(0 55%, 21% 8%, 47% 61%, 65% 17%, 79% 59%, 100% 33%, 100% 56%, 81% 83%, 67% 46%, 47% 86%, 24% 34%, 0 78%);
}
.elemental-attack.is-live .enemy-lightning-link { display: block; }
.elemental-attack.forest-ring.is-live {
  border: 3px solid var(--attack-color);
  box-shadow: 0 0 13px var(--attack-color), inset 0 0 16px var(--attack-color);
}
.elemental-attack.attack-void.forest-ring.is-live {
  border: 2px solid #aa70ec;
  background: radial-gradient(ellipse, #070315bc, #2e124b63 55%, #a958e7a1 70%, transparent);
}
.elemental-attack.attack-void.forest-zone.is-live {
  background: radial-gradient(ellipse, #190c30 16%, #310b66 33%, var(--attack-color) 47%, transparent 71%);
}
.elemental-attack.attack-jade.forest-zone { border-radius: 25%; }
.elemental-attack.attack-jade.forest-zone::after {
  content: "";
  position: absolute;
  inset: 14%;
  rotate: 45deg;
  border: 1px solid #b2ffd899;
  border-radius: 4px;
}
.elemental-attack.attack-jade.forest-zone.is-live {
  background: repeating-radial-gradient(ellipse, transparent 0 8px, #b7ffbd74 9px 11px, #28795154 12px 16px);
}
.elemental-attack.forest-cone {
  border: 0;
  clip-path: polygon(0 50%, var(--cone-edge) 0, 99% 25%, 100% 50%, 99% 75%, var(--cone-edge) 100%);
}
.elemental-attack.forest-cone.is-live {
  background:
    radial-gradient(ellipse at 10% 50%, #fff5ce, #ffa149 27%, transparent 66%),
    radial-gradient(ellipse at 38% 45%, #ff8d559e, #e52d5b91 38%, transparent 80%),
    radial-gradient(ellipse at 60% 58%, #ff557a87, transparent 70%);
  mask-image: radial-gradient(ellipse at 40% 50%, #000 30%, #000c 54%, transparent 86%);
}
.elemental-attack.attack-void.forest-cone.is-live {
  background: radial-gradient(ellipse at left center, #f0d5ff, #a759e4b0 36%, #5e207588 68%, transparent);
}
.regional-breath-plume {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 76;
  pointer-events: none;
  transform-origin: 0 0;
  background:
    radial-gradient(ellipse at 18% 50%, #fff6d0 4%, #ffaa61 18%, transparent 52%),
    radial-gradient(ellipse at 55% 38%, #ffac5d 6%, #ef5262a8 38%, transparent 72%),
    radial-gradient(ellipse at 67% 58%, #ff7d55ab 7%, #cb32746e 39%, transparent 69%);
  mask-image: radial-gradient(ellipse at 44% 50%, #000 26%, #000c 49%, transparent 75%);
}
.elemental-attack.enemy-meteor.is-live::after {
  content: "";
  position: absolute;
  inset: -76% 24% 43%;
  border-radius: 50%;
  background: radial-gradient(ellipse at bottom, #ffdfb6, #ff6a7c 32%, #bc2857 47%, transparent 69%);
  rotate: 12deg;
  animation: enemy-meteor-drop 350ms ease-in both;
}
@keyframes enemy-meteor-drop { from { transform: translateY(-60%); opacity: .3; } }
.enemy-chill-fx {
  position: absolute;
  z-index: 57;
  pointer-events: none;
  width: 55px;
  height: 26px;
  border: 2px dotted #a2e9f3;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #a2e9f3;
}
.enemy-venom-fx { color: #bbef85; }
.enemy-venom-contact {
  position: absolute;
  width: 30px;
  height: 27px;
  z-index: 84;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 20% 46%, #b7ea68 0 1px, transparent 3px),
    radial-gradient(circle at 39% 28%, #deff91 0 1px, transparent 3px),
    radial-gradient(circle at 71% 31%, #96b942 0 1px, transparent 3px),
    radial-gradient(circle at 66% 64%, #b7ea68 0 1.5px, transparent 3px),
    radial-gradient(circle at 48% 51%, #d3fb6180, transparent 59%);
  animation: enemy-venom-contact 430ms ease-out both;
}
@keyframes enemy-venom-contact {
  from { opacity: 1; scale: .6; }
  to { opacity: 0; scale: 1.3; translate: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .elemental-attack.is-live::before, .elemental-attack.is-live::after, .elemental-attack.is-live,
  .regional-projectile-sparks, .enemy-venom-contact { animation: none !important; }
}


.enemy-projectile-impact {
  position: absolute;
  z-index: 84;
  width: 37px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 46% 50%, #fff9ef 2%, var(--impact-tone) 18%, transparent 65%);
  transform: translate(-50%, -50%) rotate(var(--impact-angle));
  animation: projectile-contact .31s ease-out both;
}
.enemy-projectile-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff6d6, var(--impact-tone) 52%, transparent);
  clip-path: polygon(36% 41%, 61% 34%, 73% 5%, 73% 33%, 97% 27%, 83% 46%, 100% 59%, 72% 58%, 80% 92%, 58% 65%, 33% 57%);
}
@keyframes projectile-contact {
  from { opacity: 1; scale: .65; }
  42% { opacity: .85; scale: 1.08; }
  to { opacity: 0; scale: 1.26; }
}
@media (prefers-reduced-motion: reduce) {
  .enemy-projectile-impact { animation: none; opacity: .75; }
}
