{{ define "content" }} {{ $g := .Data.Game }} {{ if $g.ChallengeId }}
{{/* latest activity flashes briefly without moving the layout or stealing focus; each event replaces the previous one */}}
{{ if $g.ChallengeTitle }}

{{ $g.ChallengeTitle }}

{{ end }}
← Lobby {{ $g.ChallengeId }} {{ if gt (int $g.NumRounds) 1 }} Round {{ int $g.Round }} of {{ int $g.NumRounds }} {{ else if not $g.ChallengeTitle }} {{ template "icon_swords" "w-4 h-4" }} Friendly match {{ end }}
{{ end }}
{{ template "game_main" . }}
{{ template "icon_type" "w-4 h-4" }} Letters tap to rule them out
{{ range splitList "" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" }} {{ end }}
{{ if $g.ChallengeId }}
{{ if .Data.Board }} {{ template "board_card" . }} {{ end }}
{{ else }}

{{ template "icon_refresh" "w-4 h-4" }} Play another?

{{ template "level_picker" . }}
{{ end }}

Game {{ $g.GameId }}{{ if $g.CreatedAgo }} · created {{ $g.CreatedAgo }} ago {{ end }} · guesses are 4-letter words, no repeated letters

{{ end }} {{ template "page" . }}