You pay the case price in Gems and receive one item from that case's drop table. The item is decided the moment you click β the spin is just the animation, so losing connection mid-spin never costs you the drop.
The result is a provably-fair roll you can recompute yourself.