There is a visual issue where the energy numbers do not reflect the actual value of the energy, this usually happens after playing in the Secret Supply event.

Do not worry, the energy is calculated and used normally in the background. If you see a popup to buy more energy, this is because all available energy has been spent already, but the value hasn’t updated and shows a wrong value.

Restarting the game will fix this and will show the correct amount of energy.