Strivers face a far more uncertain future than in years past. China, which by Pew’s definition is home to one-third of the world’s middle class, appears to be recovering quickly, but many other developing countries face diminished economic prospects.