Add collection service — deck management + card inventory
SOR.Collection project (new):
- 8 message handlers over WebSocket: get_cards, get_decks, get_deck,
create_deck, rename_deck, delete_deck, add_card, remove_card
- Deck construction rules (DeckRules.cs): min 20 / max 40 cards,
max 4 copies per definition, max 20 decks per player
- add_card validates ownership (player must own enough physical copies),
copy limit, deck size limit, and rejects ArchSpirits from the card list
- RefreshValidityAsync recalculates Deck.IsValid after every mutation
- Cross-context lookups (CollectionDbContext + CatalogDbContext) with
batch queries — never N+1
Admin portal pages (new):
- /collection — overview stats (total cards, total decks, valid decks,
unique players) + account ID lookup
- /collection/player/{accountId} — full player collection viewer:
paginated card grid with name/type/affinity/rarity/foil/serial filters,
deck list with expanded card tables, Grant Card modal (search + foil
toggle, grants 1–100 copies), revoke individual card instances
Wiring:
- SOR.slnx + SOR.Host.csproj: added SOR.Collection project reference
- Program.cs: uncommented collection service registration
- NavMenu: added Collection item
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>