This renders the real production overlay component in each state. No session needed — click through the escalation ladder a student would see.
What you're looking at. In a live quiz, the student never clicks these — the service worker drives the overlay as their attention leaves the quiz. Grace is calm (accidental blurs recover). Yellow warns. Red pauses until a teacher PIN or the class-wide code. This is the deterrent layer; the teacher in the room is the real control.