Manage more state in CSS to avoid timeout dance

It might be less robust but it generally fares well and requires no
imperative code.