Capitals Quiz
(showAchievements = true)} />
(showAchievements = false)} on:achievementsUnlocked={handleAchievementsUnlocked} /> {#if quizSubpage === "welcome"} (showSettings = true)} on:closeResults={() => (showSessionResults = false)} /> 0} on:action={handleActionButtonClick} /> {:else if quizSubpage === "quiz"} {#if gameState === "loading"}
Loading countries...
{:else if currentQuestion}
Question {currentSessionQuestions + 1} from {sessionLength}
What is the capital of this country?
Flag

{getCountryName(currentQuestion.correct)}

{#each currentQuestion.options as option, index} {/each}
{#if gameState === "question"} {:else if (!autoAdvance && gameState === "answered") || (autoAdvance && gameState === "answered" && sessionRestoredFromReload)} {/if} {#if autoAdvance && gameState === "answered" && timerProgress > 0 && !sessionRestoredFromReload}
Next question in {Math.ceil( (timerDuration - (timerProgress / 100) * timerDuration) / 1000, )}s
{/if}
{/if} {/if}