Nintendo has been sued in the state of California over its use of loot boxes in the mobile game Mario Kart Tour.