# CustomPlay Scene (Unranked Lobby) ## UI - Custom games list - Filter controls (open slots, format/rules tags, region, friends-only) - Game row indicators for key rule categories - Rules detail tooltip/panel on hover/focus with full ruleset display - Create custom game panel: - lobby name - privacy - ruleset configuration - deck/archspirit constraints - max players/spectators - Lobby chat subsection: - unranked/custom channels visible while in this scene ## Client - Fetch and render open custom games with summary rule indicators. - Show full ruleset details on hover/focus without requiring join. - Allow joining joinable games. - Allow creating custom game with configurable rules. - Transition to gameplay scene when lobby host starts match. ## Server - Return browseable custom game lobbies and summarized rule metadata. - Validate join permissions and slot availability. - Validate and persist custom ruleset configuration on create/update. - Publish lobby state changes and match start event. ## Data Exchange ### Client -> Server (`CustomLobbyListRequest`) - `requestId`, `filters`, `sort`, `page`, `pageSize` ### Server -> Client (`CustomLobbyListResponse`) - `requestId`, `results`, `totalCount` ### Client -> Server (`CustomLobbyRulesRequest`) - `requestId`, `customLobbyId` ### Server -> Client (`CustomLobbyRulesResponse`) - `requestId`, `customLobbyId`, `ruleset` ### Client -> Server (`CustomLobbyJoinRequest`) - `requestId`, `customLobbyId`, `deckId`, `archspiritId` ### Server -> Client (`CustomLobbyJoinResponse`) - `requestId`, `success`, `customLobbyState`, `errorCode` ### Client -> Server (`CustomLobbyCreateRequest`) - `requestId`, `name`, `privacy`, `ruleset`, `formatId`, `deckConstraints`, `archspiritConstraints`, `maxPlayers`, `maxSpectators` ### Server -> Client (`CustomLobbyCreateResponse`) - `requestId`, `success`, `customLobbyId`, `customLobbyState`, `errorCode` ### Server -> Client (`CustomMatchStarting`) - `requestId`, `customLobbyId`, `matchId`, `rulesetId`, `gameServerEndpoint`, `matchToken`