I don’t know why, but z-index always has to be the last declaration in a CSS rule. Anywhere else just feels wrong.