/* Keep the readouts in their own plane while the painted actor performs. */
#dungeon-mode .dungeon-monster {
    animation: none;
}

#dungeon-mode .dungeon-monster > .dungeon-monster-motion {
    position: absolute;
    inset: -20% -34%;
    display: block;
    width: 168%;
    height: 140%;
    pointer-events: none;
    visibility: hidden;
    filter:
        drop-shadow(0 0 22px rgba(var(--dungeon-scene-accent), .2))
        drop-shadow(0 12px 14px rgba(0, 0, 0, .48));
}

#dungeon-mode .dungeon-monster > .dungeon-monster-motion.is-visible {
    visibility: visible;
}

#dungeon-mode .dungeon-monster:has(> .dungeon-monster-motion.is-visible) > .dungeon-monster-art {
    opacity: 0;
}

#dungeon-mode .dungeon-monster-motion.is-visible[data-impact="magic"][data-phase="windup"] {
    filter: drop-shadow(0 0 19px rgba(118, 185, 255, .50)) drop-shadow(0 12px 14px rgba(0, 0, 0, .48));
}

#dungeon-mode .dungeon-encounter:has(.dungeon-monster-motion.is-visible):not(.is-resolved) {
    animation: none;
}
