{#if $gameState && $player}
{t('revealCards')} {#each Array(revealButtons) as _, i} {/each}
(dragIndex = null)} ondrop={onDrop}> {#each drawTopFirst as ref, i} {@const c = fullCard(ref)}
onDragStart(i)} ondragover={(e) => onDragOver(e, i)} onclick={() => (removeTarget = ref)} role="button" tabindex="0" onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') removeTarget = ref; }} > {#if c != null && i < revealedCount} {:else} {/if}
{/each}
{#each discardList as ref} {@const c = fullCard(ref)} {#if c != null}
(removeTarget = ref)} role="button" tabindex="0" onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') removeTarget = ref; }} >
{/if} {/each}
{:else if $gameState}

{t('web:spectator')}

{/if} {#if removeTarget} {@const rt = removeTarget} {@const card = fullCard(rt)} {/if}