Game pauses on window.blur resumes on window.focus
Game locks and timer doesn't advance when paused
Adjust timings

You lose game after 8 minutes
You lose at 11pm (after which you would need late night working)