How is ENERGY consumed?

Energy is consumed each time you enter a level. If you achieve 3 Stars on the level that Energy will be restored otherwise the consumption is permanent.