Combining local and global evolutionary trajectories of brain–behaviour relationships through game theory