Criticality and phase diagram of quantum long-range O(N) models