Why your sleeping brain replays new rewarding experiencesEmotions during success and failure condition future behaviors, with sleep playing a critical role in memory reinforcement.