An 82-yeаr-оld hоspitаlized with pneumоniа was oriented yesterday but is now intermittently drowsy, pulling at lines, seeing children in the room, and unable to sustain attention. Symptoms fluctuate throughout the day. Which diagnosis best fits this presentation?