For the spotlight, one thing to check is which pointer query you use. (pointer: fine) reflects the primary input, so a touch laptop or a tablet with a mouse attached can report differently than you expect. If the overlay should only run when a real cursor exists, (hover: hover) and (pointer: fine) together, or any-pointer: fine, is the safer condition.