During a flow experience, the brain appears to optimize attention through a 'shielding mechanism,' minimizing distractions and prioritizing task-related cognitive processes.