Thanks for trying it, and keen eye! Fixing (with Claude code) but also taking time to try to learn a bit about the canvas drawing/pixel art, which I'm not super familiar with.
However, if you’re using pre-rendered sprite sheets, you’ll probably need to enforce integer scaling to avoid fringing or blurring.