in star interiors, the balance between the gravitational force (due to the mass of the star) and the gas pressure (due to energy generation in the core of the star)