Somewhat working phantasmagoria…but refactoring ahead to fix rendering glitches