I would think it refers to anything that indicates feeling oneself to be better than another. Consider the story of the Pharisee amd the tax collecter. The Pharisee thanked God for making him better than the tax collecter and told God how great he himself was. Bit the tax collecter sat in the back and just asked God to have mercy on him, a sinner.
If you are kidding around with a friend and are sarcastic about things with him, that does not necessarily indicate arrogance, sometimes that’s how people relate to each other, in a kidding sort of way, no? So your example may be a way of acting *or *a sign or arrogance (or both!); one just needs to look inside oneself, asking for God’s help in seeing one’s self clearly. Pride (arrogance) can be hard to detect in oneself.