Build a single self-contained `index.html` in the current directory: a Flappy Bird-style game where a little Deriv token flaps through the gaps of a live candlestick trading chart, made with three.js.
Make it feel like a polished, playful game skin on top of a real Deriv trading terminal: dark chart background, crisp grid, the Deriv red brand colour (#FF444F) on the player and logo, green (#4BB4B3) and red (#EC3F3F) candles.
Requirements:
- One file only. Load three.js (and addons, if you need them) from `https://t.co/JrFPqXshqF` via an import map. No other external assets: no textures, models, sounds or fonts to download. Generate everything procedurally (system fonts only).
- Gameplay: classic flappy loop. Gravity pulls the player down, each flap gives an upward kick. The "pipes" are candlesticks: each obstacle is a pair of tall candles, one hanging from the top and one rising from the bottom, with wicks, and the player must fly through the gap between them. The gap follows a believable random-walk price path, so the course reads like a moving market. Passing a pair scores +1. The scroll speed rises slowly and the gaps tighten a little as the score climbs. Touching a candle body or wick, or the top/bottom of the chart, ends the run.
- Player: a glossy round Deriv token in #FF444F with a white lowercase "d" on its face. It tilts up when it flaps and noses down as it falls, squashes and stretches on each flap, and leaves a short glowing trail like a price line behind it.
- World: a dark trading chart that scrolls right to left, with a subtle grid, a price axis on the right whose labels tick as the chart moves, and a thin live price line tracking the player's height. Candles are crisp, slightly beveled 3D boxes with wicks. Their colour (green or red) comes from whether the price went up or down from the previous candle. A small **"deriv"** wordmark in the top-left corner in the brand red, plus a ticker such as "Volatility 100 Index" with a live-looking price. Tiny details count: soft bloom on the price line, a faint depth parallax of background candles, and a "+1" pop when a gap is cleared.
- Controls: Space, Arrow Up or W flaps (click or tap also flaps). Arrow keys and WASD both work. Show the controls in a small hint on screen.
- Starts instantly: gameplay is running on page load, or starts on the first click or key press. No menus, no "press start" screen that blocks play.
- Attract mode: if there is no input for 1.5 seconds, a simple built-in autopilot plays the game convincingly by flapping to stay centred in the next gap. Any input hands control back to the player immediately.
- Never stalls: on game over, show the score briefly (styled like a trade result, e.g. "Position closed: 7") and restart automatically within 1.5 seconds.
- A score/HUD that fits the style, plus juice: particles on each flap, a red flash and small screen shake on a crash, and a smooth camera.
- No pointer lock, no fullscreen requirement, no sound before the first user input.
- It should run smoothly at 60 fps on a laptop and must have no console errors.
Write the file and stop. Do not ask questions.