Ready Player One and Maltese Falcon, by way of the Thursday Next-series.
Literary characters were supposed to be immortal. When Dracula and Dorothy Gale are murdered and erased from their books, the rules of fiction change, and a gumshoe must risk everything to prevent the annihilation of the realm of fiction.