Invert card detect logic.