Tricky allegiances among China, Brazil and others