Classic Tetris game as a reusable React 18+ component, fully typed with TypeScript and controllable via ref.