import { translate } from "./i18n.js"; import { pictogram } from "./icons.js"; // Shared by the embedded BGS tutorial and the standalone /learn guide. // Keep both introductory overviews in place throughout planning and playback. export function tutorialMissionHeader(chapter, step, locale) { const t = (key, params) => translate(locale, key, params); const overview = ["basics", "planning-phases"].includes(chapter) ? missionOverview(t) : ""; const scope = ["basics", "first-shot", "energy", "planning-phases"].includes(chapter) ? `${t("timing.exercise", { turns: chapter === "planning-phases" ? 7 : chapter === "energy" ? 4 : 3 })}` : ""; return overview + scope; } function missionOverview(t) { return `