Your story arc is complete! You went out in a blaze of glory (or retired honorably). You must now choose how your journey continues:
{#if !isRolling}
Ghosts look back into the living world, watch over friends, and help their crew. New recruits start fresh at Rank 1 with surprise Secret Techniques and a name based on their smell.
{:else}
Create Your New Recruit
{#if rollingError}
{rollingError}
{/if}
{/if}
{:else}
1. Pirate Ranking (Voting)
Every player (including the Deep) nominates one crewmate who best exemplified pirate qualities in the previous scene. Previous Deep players are ineligible to receive votes.
{#if state.game.phase === 'deep_upkeep'}
✔️ Voting complete! Results tallied.
{:else if state.votes.find(v => v.voter_player_id === state.player.id)}
✔️ Vote submitted! Waiting for other players to submit their nominations.
You controlled the Deep in the last scene and your Pi-Rat was resting. You will discard your current hand and redraw back up to your maximum hand size.
{#if state.game.phase === 'between_scenes'}
Voting is currently in progress. Hand refresh will begin after voting concludes.
{:else if state.game.phase === 'deep_upkeep'}
Your Hand Size Limit: {maxHandSize} cards.
Drag cards to the "Discard Pile" zone to discard them, or click them to move them.
Hand (Keep)
{#each keepCards as card}
handleDragStart(e, card)}
on:click={() => moveToDiscard(card)}
style="cursor: pointer;"
title="Click or drag to discard">
⚠️ Discard Required: You have selected {keepCards.length} cards to keep, which exceeds your maximum hand limit of {maxHandSize}. Please discard at least {keepCards.length - maxHandSize} card(s).