I read this book in the early 2000s. I remember the kid being in a field of wildflowers with a white gazebo that either faded into the air or into water. They were then transported to different numbered worlds. In one of the worlds she meets a man that wears a bunch of hats. I want to say he looked like a devil, but I’m not entirely sure..