Thanks for the feedback! Gems are automatically spent whenever you try to spend more energy than you have available.