type Rarity =
| 'common'
| 'rare holo'
| 'rare holo galaxy'
| 'rare holo v'
| 'rare holo vmax'
| 'rare holo vstar'
| 'rare rainbow'
| 'rare rainbow alt'
| 'rare secret'
| 'rare ultra'
| 'radiant'
| 'custom';The rarity prop also accepts arbitrary strings for forward compatibility with future CSS effects.
The component sets these CSS variables on the card rotator element in real-time during pointer interaction:
.card → Root container (data-rarity, data-supertype, data-subtypes, data-gallery)
.card__translater → Perspective container
.card__rotator → 3D transform target (receives CSS vars)
.card__front → Face container
[children] → Your content
.card__shine → Holographic gradient overlay
.card__glare → Specular glare overlay