{#if outcome}

{duel.spectating ? (outcome.winner === null ? 'A draw.' : `${duel.state.wizards[outcome.winner].name} wins.`) : won ? 'You win.' : outcome.winner === null ? 'A draw.' : 'You lose.'}

{outcome.reason}

{#if duel.remote} Back to the hall {:else} {/if}
{:else} {#if duel.spectating}

You watch from the Peanut Gallery

{duel.awaitingText ? `${duel.awaitingText} ${duel.awaiting.length === 1 ? 'is' : 'are'} still writing turn ${duel.turnNumber}.` : `Turn ${duel.turnNumber} is being written.`} The gallery sees only what every wizard at the table can see.

{:else if duel.out}

{duel.you.alive ? 'You have yielded' : 'You have fallen'}

The duel goes on without you. Watch the ledger fill; {listText(duel.others.filter((id) => duel.state.wizards[id].alive && !duel.state.wizards[id].surrendered).map((id) => duel.state.wizards[id].name))} still stand.

{:else}
{#if duel.timeStopped}

Time stands still. Take your extra turn.

{duel.foe.name} cannot move, see this, or resist anything you do. Last turn's enchantments do not bind you.

{:else}

Turn {duel.turnNumber}: write your gestures{#if duel.hasted}, twice{/if}

{/if} {#if duel.threats.length && !duel.timeStopped}
{#if duel.threatsNow.length}

Their hands could finish this turn:

    {#each duel.threatsNow as t (duel.threatKey(t))} {@const active = duel.isHighlighted(t)}
  • {/each}
{/if} {#if duel.threatsNext.length}
Two gestures away ({duel.threatsNext.length})
    {#each duel.threatsNext as t (duel.threatKey(t))} {@const active = duel.isHighlighted(t)}
  • {/each}
{/if}
{:else if !duel.timeStopped}

Nothing hostile is one gesture away.

{/if}
{#if duel.hasted}

You are hastened: a second pair of gestures follows the first, and both take effect together.

{/if}
{#if duel.stabbing} {/if} {#each duel.yourMonsters as m (m.id)} {/each} {#if duel.bankedSpell} {/if} {#if duel.bankCandidates.length > 1} {/if} {#if duel.permanentCandidates.length > 1} {/if} {#each duel.charmedFoes as id (id)} {/each}
{#if duel.remote?.error}

{duel.remote.error}

{/if} {#if duel.intentText && !duel.moved}

{duel.intentText}

{/if} {#if duel.moved}

Your move is in. Waiting for {duel.awaitingText}.

{/if} {#if duel.surrendering}

Both palms at once is surrender. You will lose the duel.

{/if} {#if duel.conflict}

Those two spells share a gesture. A gesture can finish only one spell; let one of them pass.

{/if}
{/if} {/if}