Thanks for your reply, the game as a whole was actually developed in about one night and I didn't have time to think about the conditions for losing the game.
Now if I think about it in detail, in the game, the score decreases over time, and when it decreases to zero, the game ends if there is no score increase for a sustained period of time.
Thank you again for playing and replying. I also tried the game you submitted and it feels similar to a music game?