Say I have a div and I rounded its corners so that it becomes a circle. Now I want to apply a pseudo-element to it :hover. But I have other elements surrounding him, which in turn has an effect :hover. I just want the circle freeze effect to activate if the mouse is effectively inside the circle.
To illustrate this problem:

The square was my div, and the circle was what it looked like after rounding its corners. Imagine that black areas are in front of other elements, an effect :hoverthat I also want to use. If I applied the hover pseudo-element to the circle when the mouse is in the black zone, the effect of the circle hovering will be activated, and not one of the elements behind the div ...
( ) ?