/* Each isolated action drawing has a different transparent margin. Keep the
   visible hero at the idle model's height and anchor the feet to the ring. */
#battle-root .spell-panel-battle .battle-hero-sprite.action-pose {
  --pose-size:calc(var(--actor-height) * var(--pose-scale,1.4));
  --pose-foot:.85;
  top:calc(var(--actor-height) - var(--pose-size) * var(--pose-foot));
  width:var(--pose-size);
  height:var(--pose-size);
  background-size:100% 100%;
  filter:drop-shadow(0 1px 1px #243a3540);
}
#battle-root .spell-panel-battle [data-role="warrior"][data-action-frame="wait"].action-pose{--pose-scale:1.34;--pose-foot:.872;}
#battle-root .spell-panel-battle [data-role="warrior"][data-action-frame="dodge"].action-pose{--pose-scale:1.53;--pose-foot:.849;}
#battle-root .spell-panel-battle [data-role="warrior"][data-action-frame="windup"].action-pose{--pose-scale:1.26;--pose-foot:.892;}
#battle-root .spell-panel-battle [data-role="warrior"][data-action-frame="release"].action-pose{--pose-scale:1.67;--pose-foot:.817;}
#battle-root .spell-panel-battle [data-role="mage"][data-action-frame="wait"].action-pose{--pose-scale:1.30;--pose-foot:.880;}
#battle-root .spell-panel-battle [data-role="mage"][data-action-frame="dodge"].action-pose{--pose-scale:1.55;--pose-foot:.807;}
#battle-root .spell-panel-battle [data-role="mage"][data-action-frame="windup"].action-pose{--pose-scale:1.26;--pose-foot:.877;}
#battle-root .spell-panel-battle [data-role="mage"][data-action-frame="release"].action-pose{--pose-scale:1.75;--pose-foot:.788;}

/* The ally label stays above its optional meters, even in a compact formation. */
#battle-root .spell-panel-battle .party-ally .unit-name {
  top:calc(var(--actor-height) + 5px);
  bottom:auto;
  height:14px;
  line-height:12px;
  max-width:calc(100% + 22px);
  z-index:5;
}
#battle-root .spell-panel-battle .party-ally .unit-health {
  top:calc(var(--actor-height) + 22px);
  bottom:auto;
  z-index:6;
}
#battle-root .spell-panel-battle .party-ally.model-inspected {z-index:17!important;}

/* Keep the effect image inside its own silhouette without a bright rectangular edge. */
#battle-root .spell-panel-battle .battle-effect .effect-painting {
  -webkit-mask-image:radial-gradient(ellipse 64% 64% at center,#000 52%,#000e 66%,transparent 93%);
  mask-image:radial-gradient(ellipse 64% 64% at center,#000 52%,#000e 66%,transparent 93%);
}
#battle-root .spell-panel-battle .battle-effect.effect-unpainted::before {
  content:'';position:absolute;inset:18%;border:2px solid #efcf90a8;border-radius:50%;
  background:radial-gradient(circle,#fff5cdad,#dca66e38 53%,transparent 78%);
}
#battle-root .spell-panel-battle .battle-effect.effect-unpainted.effect-frost::before,
#battle-root .spell-panel-battle .battle-effect.effect-unpainted.effect-tidebolt::before,
#battle-root .spell-panel-battle .battle-effect.effect-unpainted.effect-wave::before,
#battle-root .spell-panel-battle .battle-effect.effect-unpainted.effect-barrier::before {
  border-color:#b8e8edb0;background:radial-gradient(circle,#e1faffba,#79c9de42 53%,transparent 78%);
}
