(c) TCHOW 2020-2021. Inspired by Wild Arms 5's puzzle boxes. Source code available.