Once upon a time I came across a game, if I remember correctly - based on HTML. The main character, a man, fell into a magical trap with his sister and girlfriend. It seems to have been in the basement, and was connected to a witch. Then they passed tests, during which our hero could remain himself, or could turn into a girl, moreover, with different options.