I play it differently. The detective investigates at night, before everybody wakes up. The angels pick someone to save at night, the mafia chooses who to kill, and then it is morning.
God tells everybody how the person died.
Townspeople accuse someone, then the accused people defend themselves, and the accused with the most votes is killed. God then informs the townspeople if they actually killed a Mafia member.