When I was playing Pokemon Showdown, I experienced some people using Z-Happy Hour on a Malamar to boost all of their stats, only to use superpower and contrary to boost even more. Why doesn't contrary affect Z-Happy Hour?
Stat stage increases caused by the Z-Power effects of status Z-Moves are not inverted by Contrary. However, the stat stage increases as a result of Extreme Evoboost are inverted.
source