Role-separating ordering in social dilemmas controlled by topological frustration