Spoiler: it bounces an infinite amount of time in a finite space.
Actually, the horizontal distance it travels is proportionately decreased with the decreased time in the air. If the ball is now in the air for k<1 times as much time, it goes to the right a factor of k times as much. I forget but I think these recursive series converge to a finite sum, they definitely do if k<0.5. So the height and length of each bounce decays exponentially, and it bounces an infinite amount of time in a finite space.
---
Old, wrong answer.
Spoiler: It keeps going to the right to infinity, just at a height that is vanishing and asymptotically approaching zero.
Each time the ball bounces, it loses 40% of its vertical kinetic energy. But the problem statement ("the ground is flat, and each part of the ball’s path is a parabolic arc. Don’t consider friction, atoms, relativity, quantum, etc!") indicates that the horizontal energy doesn't change, even though the figure would suggest otherwise. So it will keep going to the right at the same rate.