coraline slept uneasily that night , waking from time to time to plot and plan and ponder , then falling back into sleep , never quite certain where her pondering ended and the dream began , one ear always open for the sound of something scratching at her windowpane or at her bedroom door .