"""Magic Civilization RL self-play scaffold. Wraps `scripts/player-api-server.sh` (the generic JSON-Lines harness) as a Gymnasium environment, then trains a MaskablePPO policy against the harness's built-in AI. See `README.md` for the methodology and `train.py --help` for the CLI surface. """