Reloading the page (and continuing the game) seemed to solve it; I don't know what happened. (I also don't know why itch.io keeps putting random line breaks in my comments.)