/* Feedback de conjuração leve: anima apenas o card do ninja, nunca o mapa. */
.nrmt-bi-team-loadout{--nrmt-cast-color:#68e9f1;isolation:isolate}
.nrmt-bi-team-loadout.is-casting-damage{--nrmt-cast-color:#5eeaff}
.nrmt-bi-team-loadout.is-casting-heal{--nrmt-cast-color:#65f08b}
.nrmt-bi-team-loadout.is-casting-buff{--nrmt-cast-color:#ffd45c}
.nrmt-bi-team-loadout.is-casting-damage,
.nrmt-bi-team-loadout.is-casting-heal,
.nrmt-bi-team-loadout.is-casting-buff{animation:nrmt-cast-card-pulse .4s ease-out}
.nrmt-bi-team-loadout.is-casting-damage:after,
.nrmt-bi-team-loadout.is-casting-heal:after,
.nrmt-bi-team-loadout.is-casting-buff:after{content:"";position:absolute;z-index:8;inset:2px;border:1px solid var(--nrmt-cast-color);pointer-events:none;animation:nrmt-cast-card-line .4s ease-out both}
.nrmt-bi-team-loadout.is-casting-damage [data-jutsu-id],
.nrmt-bi-team-loadout.is-casting-heal [data-jutsu-id],
.nrmt-bi-team-loadout.is-casting-buff [data-jutsu-id]{box-shadow:0 0 8px color-mix(in srgb,var(--nrmt-cast-color) 60%,transparent)}
@keyframes nrmt-cast-card-pulse{0%{box-shadow:inset 0 0 0 transparent}35%{box-shadow:inset 0 0 25px color-mix(in srgb,var(--nrmt-cast-color) 20%,transparent)}100%{box-shadow:inset 0 0 0 transparent}}
@keyframes nrmt-cast-card-line{0%{opacity:0;transform:scaleX(.72)}35%{opacity:1}100%{opacity:0;transform:scaleX(1)}}
body.nrmt-battle-lq .nrmt-bi-team-loadout[class*="is-casting-"],
body.nrmt-low-fx .nrmt-bi-team-loadout[class*="is-casting-"]{animation:none!important}
body.nrmt-battle-lq .nrmt-bi-team-loadout[class*="is-casting-"]:after,
body.nrmt-low-fx .nrmt-bi-team-loadout[class*="is-casting-"]:after{display:none!important}
@media(prefers-reduced-motion:reduce){.nrmt-bi-team-loadout[class*="is-casting-"]{animation:none!important}.nrmt-bi-team-loadout[class*="is-casting-"]:after{display:none!important}}

/* Grade de batalha: cada ferramenta ganha sua propria faixa e nenhuma
   invade o mapa central, o menu inferior ou outra janela flutuante. */
body:has(.nrmt-hunt-analyzer-fab:not([hidden])){
  --nrmt-notify-right:16px;--nrmt-notify-top:58px;--nrmt-notify-width:286px
}
body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-quick-menu{
  top:252px!important;max-height:calc(100vh - 270px)!important
}
body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-quick-footer{
  bottom:12px!important;gap:10px!important
}
body:has(.nrmt-hunt-analyzer-fab:not([hidden])) #nrmt-battle-combo{
  --nrmt-combo-x:50%!important;--nrmt-combo-y:auto!important;--nrmt-combo-translate-x:-50%!important;
  left:50%!important;right:auto!important;top:auto!important;bottom:106px!important;
  transform:translateX(-50%) scale(.94)!important
}
body:has(.nrmt-hunt-analyzer-fab:not([hidden])) #nrmt-battle-combo:not([hidden]){
  transform:translateX(-50%) scale(1)!important
}
body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-manual-hunt-food{
  box-sizing:border-box!important;right:16px!important;left:auto!important;top:auto!important;
  bottom:146px!important;width:286px!important;border-radius:2px!important
}
body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-hunt-analyzer-fab{
  box-sizing:border-box!important;right:16px!important;left:auto!important;top:auto!important;
  bottom:92px!important;width:146px!important;min-width:146px!important
}

@media(max-width:900px){
  body:has(.nrmt-hunt-analyzer-fab:not([hidden])){--nrmt-notify-right:8px;--nrmt-notify-top:52px;--nrmt-notify-width:min(278px,calc(100vw - 16px))}
  body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-quick-menu{top:226px!important;transform:scale(.9);transform-origin:top left}
  body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-quick-footer{gap:3px!important;transform:translateX(-50%) scale(.78)!important;transform-origin:bottom center}
  body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-manual-hunt-food{right:8px!important;bottom:134px!important;width:min(278px,calc(100vw - 16px))!important}
  body:has(.nrmt-hunt-analyzer-fab:not([hidden])) .nrmt-hunt-analyzer-fab{right:8px!important;bottom:78px!important}
  body:has(.nrmt-hunt-analyzer-fab:not([hidden])) #nrmt-battle-combo{bottom:88px!important}
}
