Haiba Sumio is a student at a high school in Tokyo. He has the power to write a "Dream Diary," where he falls asleep and his hand scratches out a premonition of the future in his diary before he wakes up. With this ability, Sumio helps out people in trouble before anything bad happens, until one day when his peaceful life completely changes.
A mysterious being calling itself "enigma" locks him in the school with several other students. Enigma enters them in a deadly game to find the passwords scattered around the school to escape the lockdown before they are caught by a shadowy creature. The winners will have their one wish fulfilled, while the losers will be trapped forever. Can they band together to beat enigma's challenge?