The Maze of Games
From the publisher:
The Maze of Games is a full-length puzzle novel with over 50 puzzles and a deeply engaging story, all woven together in a “solve your own adventure” style which will keep you jumping from page to page.
The main characters are teenagers Colleen and Samuel Quaice, who live in England in the year 1897. During a visit to the Upper Wolverhampton Library, they discover a musty book called The Maze of Games. This summons a mysterious skeletal guardian named the Gatekeeper, who plunges them into a series of dangerous mazes rife with monsters and bizarre puzzles.
Only by solving their way through the mazes will the Quaice children find their way home.