Enjoyment appears at the boundary between boredom and anxiety, when the challenges are just balanced with the person’s capacity to act.

Flow: The Psychology of HappinessMihaly Csikszentmihalyi

There's so much more to explore