The game over thing doesn't trigger unless you're in debug mode, even if you're at or over 365 "days." In debug mode, this is the script responsible for the game over screen; it's found in Urotsuki's (non-dream) room and shows a brief text message before pulling up the game over screen and then dumping you back to the main menu.