/* Keep the phone control layer stable while the arena canvas animates underneath. */
.control-progress{position:absolute;inset:-4px;pointer-events:none;z-index:3;transform:rotate(-90deg)}
.control-progress svg{display:block;width:100%;height:100%;overflow:visible}
.control-progress circle{display:none;stroke-width:3;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--cooldown-progress,0)*100)}
.cooling .cooldown-ring{display:block;stroke:#f2d598}
.rescuing .rescue-ring{display:block;stroke:#baf3c8;stroke-dashoffset:calc(100 - var(--rescue-progress,0)*100)}
#battle .action-button{isolation:isolate;animation:none!important;filter:none!important;transition:transform 70ms ease-out,border-color 90ms ease-out;box-shadow:0 2px 5px #0003}
#battle .action-button:before{z-index:0}
#battle .action-button>.action-icon,#battle .action-button>b,#battle .action-button>small{position:relative;z-index:1}
#battle .action-button>.control-state{z-index:4}
#battle .action-button.pressed{transform:scale(.94);border-color:#fff4cf;filter:none!important}
#battle .action-button[data-control-state=executed]:not(.pressed){border-color:#bfeace;box-shadow:0 2px 5px #0003}
#battle .action-button[data-control-state=refused]{border-color:#eda67d}
#battle .action-button.ultimate.ready{animation:none!important;box-shadow:0 0 0 2px #f7df9c66!important}
@media(prefers-reduced-motion:reduce){#battle .action-button{transition:none}}
.reduced-motion #battle .action-button{transition:none}
#battle .action-button.manual-stop{border-color:#bdebd6;box-shadow:0 0 0 2px #a7d6bd33}
#battle .action-button.manual-stop .action-icon{color:#c8f4df}
