Conditional for mini-games?

Is there a conditional or other technique I can use to detect one one of the mini-games is being played, such as the shell game or the jewel games? Parts of my UI are currently prone to obscuring these games, and they need to be made to go away while I play them. I have the option to customize the conditionals that will make them come and go, I just need to know what to use and so far nothing has worked or seemed like an obvious candidate to try.

Thanks in advance!

You will probably need a combination of events depending on the game and know which games you want to rearrange your UI for.

QUEST_ACCEPTED/QUEST_REMOVED withe a table of questid to look up would be a start.

https://wow.gamepedia.com/QUEST_ACCEPTED

https://wow.gamepedia.com/QUEST_REMOVED

You might need to combine with other events like:
UNIT_ENTERED_VEHICLE/UNIT_EXITED_VEHICLE.