There are vials near your totems. Complete rituals to fill a vial. Steal gems during an active ritual to fill the vial faster and to get more points. The amount of additional points depends on the gem’s value: you’ll get more points for more valuable gem. Unique gems always give the exact number of points.
For every full vial, you will get chests which contain different ingredients. Add them in “Magic Book” to craft rewards: potions, maze drops, unique gems and others.
Rewards can be consumable and permanent. It means that you can get the first ones only once. Also, there are secret rewards, they are marked as an icon with a question.
Remember that points in the vial won’t disappear if you change the totem.