Have you ever struggled to finish a level of Candy Crush or complete a Sudoku puzzle in the evening but breezed through it the following morning? The reason may please anyone who’s been told they spend too much time in bed asleep.

This article is part of a series, On Happiness, examining what it means and how it might be achieved in the 21st century.