An 80-year-old patient develops sudden-onset confusion, disorientation, and fluctuating consciousness over hours after hip surgery.This presentation is most consistent with: