To the user, a game looks like a series of animations—spinning reels, falling cards, or a moving ball. However, the actual result is determined almost instantaneously on a secure server. When you click the "spin" or "deal" button, the game client sends a request to the server. In a fraction of a second, the server generates a result based on a mathematical algorithm and sends that result back to your device.
The animation you see on your screen is simply a visual representation of that pre-decided outcome. It is designed to build excitement and suspense, but the result was locked in the moment you placed your bet. You cannot influence the result by clicking faster, pausing the game, or following a perceived pattern. Once the animation finishes, the server calculates the payout based on the result and updates your PHP balance automatically.