There’s a countdown timer in the upper right. If you don’t use gems to buy time, the game is over. There’s a brief warning about this in the intro.
That someone is just me making sure people have a way to tell me what they do or don’t like :)