Text this: Universal kinetics of imperfect reactions in confinement