Short answer: it's unsettled. Like the rest of the US, California has no law that squarely legalizes or bans online mystery boxes — but state gambling rules and each platform's own terms both matter. Here's the California-specific picture.
California has some of the strictest consumer-protection and gambling statutes in the country, and "loot box"-style mechanics have drawn repeated legislative attention. No statute squarely legalizes or bans online mystery boxes, so access sits in a gray zone and several operators restrict or monitor California traffic.
How US gambling law applies
California courts weigh the standard three-part test — consideration, chance, and prize. Mystery boxes arguably satisfy all three, which is the basis of the active lawsuits against Packdraw nationally. The counter-argument is that you always receive an item of value. Until the courts rule, California's position stays uncertain. See our national US legality guide and are mystery boxes gambling? for the full reasoning.