๐ Card System
How cards are created, collected, stored, and rendered โ from cardMeta to inventory management.
Each card is a .tsx file in app/games/packs/cards/ with a cardMeta export and a CardDesign component.
{`export const cardMeta = ;`} โข id: Unique identifier, must match filename (e.g. card-024.tsx) โข name: Display name shown in shop and collection โข rarity: One of: common, uncommon, rare, epic, legendary โข emoji: Icon shown on board tiles and in lists โข set: Collection set name for grouping โข number: Card number within its set โข artist: Creator credit displayed on card โข description: Flavor text for the card Rarity System {[ , , , , , ].map(item => ( Rarity value: Shop: $ ))} Card Registry Cards are auto-detected by scanning the cards directory. The registry at data/packs/cards-registry.json caches all card metadata.
Each card has hand-coded SVG artwork in the CardDesign component. Cards feature: