Experience (XP) can be earned by playing minigames. Earn enough XP to level up and get gems. Each level requires more XP than the last, but will also reward you more gems.
The ... badge is unlocked at level ....