I found it! The game by Diana Wynne jones. I’ve been trying to find it for years
tags:
original: https://curlyhairedeith.tumblr.com/post/96717502067