It’s a cash advance since you’re not purchasing goods or services with the card.
Gambling is always classed as a cash advance. The gift cards trick has been tapped and closed, the credit companies figured it out decades ago.
Legal what-ifs have a much lower bar than a C++ if clause or the assembly conditional it compiles to.
Many banks do, but there's no hard rule of the sort you're implying.
> The gift cards trick has been tapped and closed, the credit companies figured it out decades ago.
What do you mean? Buying gift cards using credit cards is absolutely possible.