/* WebGL canvases replace the preview image only after a model renders successfully. */
.rig-3d{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.rig-3d canvas{display:block;width:100%;height:100%}
.rig-3d.rig-ready+.rig-fallback{display:none!important}
.character-stage-performer .rig-fallback{position:absolute;inset:0;margin:auto}
.character-stage-performer .rig-3d{inset:-6px 0 0}
.character-spotlight.casting .stage-spell,.character-spotlight.casting .stage-spell::after{animation-duration:1.35s}
.arena-character.wizard{position:relative;width:clamp(135px,18vw,220px);height:215px;flex:none}
.arena-character.wizard .rig-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.arena-character.wizard .rig-3d{filter:drop-shadow(0 14px 6px rgba(14,8,41,.4))}
.arena-character.wizard.casting .rig-3d{animation:rigArenaLunge 1.15s cubic-bezier(.18,.7,.3,1) both}
.arena-battlefield.ultimate-attack .arena-character.wizard.casting .rig-3d{animation:rigArenaUltimate 1.35s cubic-bezier(.18,.7,.3,1) both}
.scene-mage.scene-rig-host{width:220px;height:270px;right:22%;bottom:2px;transform:none;animation:none}
.scene-rig-host .rig-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@keyframes rigArenaLunge{0%,100%{transform:translate3d(0,0,0) scale(1)}45%{transform:translate3d(52px,-24px,0) scale(1.22)}}
@keyframes rigArenaUltimate{0%,100%{transform:translate3d(0,0,0) scale(1)}40%{transform:translate3d(36px,-48px,0) scale(1.38)}65%{transform:translate3d(73px,-30px,0) scale(1.43)}}
@media(max-width:800px){.scene-mage.scene-rig-host{width:170px;height:205px}.arena-character.wizard{height:180px;width:165px}}
@media(max-width:600px){.scene-mage.scene-rig-host{width:130px;height:165px;right:44%}.arena-character.wizard{height:125px;width:118px}}
@media(prefers-reduced-motion:reduce){.arena-character.wizard.casting .rig-3d,.arena-battlefield.ultimate-attack .arena-character.wizard.casting .rig-3d{animation:none!important}}
