{#if error}
Error connecting to game: {error}
{/if} {#if state}
{#if state.game.phase === 'lobby'}
{:else if state.game.phase === 'character_creation' || state.game.phase === 'swap_techniques' || state.game.phase === 'assign_techniques'}
{:else if state.game.phase === 'scene_setup'}
{:else if state.game.phase === 'scene'}
{:else if state.game.phase === 'between_scenes' || state.game.phase === 'deep_upkeep'}
{:else if state.game.phase === 'recruit_creation'}
{:else if state.game.phase === 'ended'}
{:else}
Unknown phase: {state.game.phase}
{/if}
{:else if !error}
Loading game state...
{/if}