Magmas near the critical degassing pressure drive volcanic unrest towards a critical state