It's not applied in any layer since it's not an effect that changes the characteristics of an object, but the rules of the game itself (in this case: when spells can be played).
So when an opponent...