Star, Room, and Spell cards are upgraded by collecting duplicates and spending Gold and PEP. When you upgrade a card you will make it stronger, a Star card will be able to cause more damage and have more health and the duration of a Spell card will become longer. You can level up a card overall, as well as level up the cards two individual abilities. You can only upgrade Ability cards to the same level as the Star it belongs to and you must upgrade your Star first if you want to upgrade their abilities.
We have questions and answers related to this topic which may also help you: