fileInput.click()} class="w-10 h-10 hover:opacity-80 transition-opacity bg-transparent border-none p-0 cursor-pointer text-kv-yellow" aria-label={m.kv_edit_load()} >
(showResetConfirm = true)} class="w-10 h-10 hover:opacity-80 transition-opacity bg-transparent border-none p-0 cursor-pointer text-kv-yellow" aria-label={m.kv_edit_reset()} >
(settingsOpen = true)} class="w-10 h-10 hover:opacity-80 transition-opacity bg-transparent border-none p-0 cursor-pointer text-kv-yellow" aria-label={m.kv_settings()} >
{isStarting ? "⏳" : "▶"} {m.kv_edit_start()}
{m.kv_edit_settings_teams()}
(showRulesModal = true)} size="md" > {m.kv_edit_rules()}
(showHowToModal = true)} size="md" > {m.kv_edit_how_to()}
{m.kv_edit_rounds()}
{m.kv_play_timer()}
{m.kv_play_timer_reveal()}
{m.kv_edit_final_round()}
setRoundCount(1)} class="w-12 h-12 border-4 border-kv-black flex items-center justify-center font-kv-body text-xl uppercase cursor-pointer bg-transparent transition-colors {settings.numberOfRounds === 1 ? 'text-kv-yellow' : 'text-kv-white'}">1
setRoundCount(2)} class="w-12 h-12 border-4 border-kv-black flex items-center justify-center font-kv-body text-xl uppercase cursor-pointer bg-transparent transition-colors {settings.numberOfRounds === 2 ? 'text-kv-yellow' : 'text-kv-white'}">2
{m.kv_play_seconds()}
{m.kv_play_seconds()}
(settings.enableFinalRound = !settings.enableFinalRound)} /> {#if settings.enableFinalRound}
{m.kv_edit_question()}
{/if}
{m.kv_edit_points()}
{m.kv_edit_values()}
{m.kv_edit_negative_scores()}
{m.kv_edit_teams_label()}
updatePreset("round1")} class="px-4 h-12 border-4 border-kv-black flex items-center justify-center font-kv-body text-xl uppercase cursor-pointer bg-transparent transition-colors {settings.pointValuePreset === 'round1' ? 'text-kv-yellow bg-kv-blue' : 'text-kv-white'}" >{m.kv_edit_preset_normal()}
updatePreset("custom")} class="px-4 h-12 border-4 border-kv-black flex items-center justify-center font-kv-body text-xl uppercase cursor-pointer bg-transparent transition-colors {settings.pointValuePreset === 'custom' ? 'text-kv-yellow bg-kv-blue' : 'text-kv-white'}">{m.kv_edit_custom()}
{#each settings.pointValues as val, i}
{#if settings.pointValuePreset === "custom"}
{:else}
{val}
{/if}
{/each}
(settings.allowNegativeScores = !settings.allowNegativeScores)} />
{#each teams as team (team.id)}
removeTeam(team.id)} class="w-8 h-8 bg-transparent border-none cursor-pointer p-0 flex items-center justify-center hover:opacity-70 flex-shrink-0 text-kv-yellow" aria-label={m.kv_edit_remove_team()} >
{/each} {#if teams.length < 6}
= 6} class="w-10 h-10 bg-transparent border-none cursor-pointer p-0 hover:opacity-70 flex items-center justify-center text-kv-yellow" aria-label={m.kv_edit_add_team()} >
{/if}
{#each rounds as round, ri}
{ri === 0 ? m.kv_edit_r1() : m.kv_edit_r2()}
({m.kv_edit_dd_count()} {countDailyDoubles(ri)}/{settings .dailyDoublesPerRound[ri] ?? 1})
{#each round.categories as cat, ci}
{/each}
{#each { length: settings.questionsPerCategory } as _, qi} {#each round.categories as cat, ci} {@const q = cat.questions[qi]}
openQuestion(ri, ci, qi)} class="bg-kv-blue flex items-center justify-center cursor-pointer border-none transition-opacity relative {q.question.trim() ? 'opacity-100' : 'opacity-50'} {q.isDailyDouble ? 'ring-2 ring-inset ring-kv-yellow' : ''} kv-shadow-text" >
{q.points}€
{/each} {/each}
{/each}
{#if editingQuestion} {@const q = rounds[editingQuestion.roundIndex].categories[editingQuestion.catIndex] .questions[editingQuestion.qIndex]} {@const cat = rounds[editingQuestion.roundIndex].categories[editingQuestion.catIndex]} {@const maxDD = settings.dailyDoublesPerRound[editingQuestion.roundIndex] ?? 1} {@const currentDD = countDailyDoubles(editingQuestion.roundIndex)}
e.target === e.currentTarget && handleQuestionCloseClick()} onkeydown={(e) => e.key === "Escape" && handleQuestionCloseClick()} role="dialog" tabindex="-1" >
{cat.name || m.kv_edit_category()} - {q.points}€
= maxDD} />
{m.kv_edit_daily_double()} ({currentDD}/{maxDD})
{m.kv_edit_save_exit()}
{ showQuestionCloseConfirm = false; saveQuestion(); }} /> {/if} {#if editingFinalQuestion}
e.target === e.currentTarget && handleFinalCloseClick()} onkeydown={(e) => e.key === "Escape" && handleFinalCloseClick()} role="dialog" tabindex="-1" >
{m.kv_edit_final_round()}
{m.kv_edit_save_exit()}
{ showFinalCloseConfirm = false; saveFinalQuestion(); }} /> {/if}
{#if isStarting}
{m.kv_edit_starting_game()}
{/if}