Magic hats are gameplay elements introduced in the Magic Box. They teleport the candy to another hat. If a level has more than a pair of hats, they are color-coded, red and green, so that each hat has its counterpart. The candy retains its velocity when teleported. Magic hats can be challenging if they move themselves, as in level 4-25.