/* Quiet controls inside the existing harbor scene. No changes to the game layout. */
:root{--ui-paper:#fffdf6;--ui-ink:#26483f;--ui-muted:#587368;--ui-teal:#347d68;--ui-teal-dark:#245c4d;--ui-line:#d6e2d6;--ui-shadow:0 6px 22px #071c2420;--ui-radius:14px;--ui-control:10px}
button:hover:not(:disabled){transform:none;filter:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #98d8bc;outline-offset:3px}
header{border-bottom-color:#ffffff12}
header nav{background:transparent;border:0;padding:0;gap:4px}
header .nav{padding:9px 14px;border-radius:9px;font-size:12px}
header .nav.active{background:#dcecdf;color:#26483f;box-shadow:none}
.wallet b{background:#24423f;border:0;color:#e6d39f;border-radius:8px}
.play-toolbar{background:#15353beF;border:1px solid #b4d0bc25;border-radius:12px;backdrop-filter:blur(10px);box-shadow:none;gap:8px;padding:10px 12px}
.play-toolbar .toolbar-actions button{border:0;background:#ffffff08;color:#d5e3d7;border-radius:7px;padding:7px 10px;min-height:34px;font-size:11px}
.play-toolbar .toolbar-actions button:hover{background:#ffffff18}
.play-toolbar .player-level{background:#dbead7!important;border:0;color:#244e3e!important;border-radius:8px!important}
.play-toolbar .study-level-badge{background:#ffffff08;border:1px solid #afc7ad35;color:#dce9d9;border-radius:8px;font-weight:600}
.scene-tag{border:0;border-radius:7px;background:#143239cf;color:#e6eedf;font-weight:500;backdrop-filter:blur(6px)}
.scene-expand{border-color:#c8dec333;border-radius:6px}
/* A single quiet preparation panel replaces the pile of separate label backplates. */
#setup.fishing-orbit{padding:16px;gap:12px 8px;grid-template-columns:repeat(5,minmax(0,1fr));width:min(430px,48%);right:3%;top:30%;background:#14383ded;border:1px solid #b1d3ba40;border-radius:16px;box-shadow:0 8px 24px #0e2c3020;backdrop-filter:blur(8px)}
#setup .orbit-caption{width:100%;padding:0 0 10px;background:none;border:0;border-bottom:1px solid #bdd7bf26;border-radius:0;font-size:14px;gap:5px;text-shadow:none}
#setup .orbit-caption small{font-size:11px;color:#b4cdc2}
#setup .harbor-streak{font-size:10px;padding:5px 8px;margin-top:3px;background:#ffffff09;border:0;color:#c7dccb;border-radius:6px;width:max-content}
#setup .orbit-tool{border-radius:9px;padding:8px 3px!important;background:#ffffff06!important;transition:background .15s}
#setup .orbit-tool:hover,#setup .orbit-tool[aria-expanded=true]{background:#ffffff16!important}
#setup .orbit-tool canvas{width:43px!important;height:43px!important;background:transparent!important;border:0;border-radius:0;box-shadow:none;margin-bottom:4px;transform:none!important}
#setup .orbit-tool span{background:none;padding:0;margin:0;font-size:11px;font-weight:650;line-height:1.45;color:#f0f2e6;text-shadow:none}
#setup .orbit-tool small{display:none}
#setup #cast{background:#dce9cf!important;color:#234e3c}
#setup #cast span{color:#234e3c}
#setup #baitStockBadge{position:absolute;top:4px;right:3px;min-width:18px;padding:2px 5px;background:#e2eed5;border:0;border-radius:6px;font-size:11px;line-height:1.25;color:#305740;box-shadow:none}
#setup .harbor-shop-shortcuts{border:0;border-top:1px solid #bdd7bf26;border-radius:0;background:none;gap:6px;padding:11px 0 0;margin:0}
#setup .harbor-shop{border:0!important;border-radius:7px;background:transparent!important;padding:4px 0!important;color:#c6d9cb!important;font-size:10px;font-weight:500}
#setup .harbor-shop:hover{background:#ffffff12!important}
#setup .harbor-shop canvas{width:33px!important;height:26px!important;background:transparent!important}
#setup .harbor-open-restaurant{color:#f0e6be!important}
#setup #fishingNotice{border:0;background:none;padding:0;margin:0;font-size:11px;color:#aec9bc;line-height:1.6}
#setup .orbit-tray{background:#183c41f7;border:1px solid #9dc7b25c;box-shadow:0 8px 24px #082c3040;border-radius:12px;padding:14px}
#setup .orbit-tray::before{display:none}
#setup .orbit-tray #baitChoices button{border:1px solid #aac9b333;border-radius:10px;background:#ffffff05;padding:10px;gap:4px}
#setup .orbit-tray #baitChoices button[aria-pressed=true]{background:#416559;border-color:#abd3b7;box-shadow:none}
#setup .orbit-tray #baitChoices small{font-size:12px!important;border-radius:6px;background:#dce9ce;padding:3px 9px!important}
/* Learning stays in the game; clear surfaces and hierarchy do the simplifying. */
.study-card{border-radius:14px;box-shadow:none;padding:22px;gap:16px}
.study-card-meta{font-size:12px;font-weight:600;color:#688371}
.study-card .study-context{font-size:17px!important;line-height:1.7;color:#607969}
.study-card .study-meaning{font-size:20px!important;line-height:1.6}
.study-card .study-choice,.study-card .sentence-token{border-radius:10px;box-shadow:none;border:1px solid #c8dbca;background:#fffdf8;font-size:17px}
.study-card .study-choice{padding:13px 16px;min-height:50px}
.study-card .study-choice:hover:not(:disabled){border-color:#64a787;background:#edf5e8}
.study-card .study-input{border-radius:7px;border-bottom-width:2px;background:#eaf3e7}
.study-card .study-actions{padding-top:14px;border-top:1px solid #dfe7d7}
.study-card .study-hint{font-size:12px;color:#617e6a}
button.primary{box-shadow:none;border:0;border-radius:9px;min-height:44px}
.study-card .study-feedback.success{border:0;border-radius:10px;background:#e3f0df}
.study-card .study-feedback.incorrect{border:0;border-radius:10px;background:#fbefd9}
.cooking-progress{border:1px solid #a9c8af40;border-radius:10px;background:#17383beF;box-shadow:none}
.cooking-progress #stageSteps span{border:0;border-radius:6px;background:transparent;font-size:11px}
.cooking-progress #stageSteps .current{background:#dce9ce;color:#254f3b}
.cooking-progress #stageSteps .complete{color:#a1d4b1;background:transparent}
:is(.utility-dialog,.academy-dialog,.menu-dialog,.review-dialog){border:1px solid #99b8a45c;border-radius:16px;box-shadow:0 18px 60px #061b2460}
.journal-tabs,.academy-tabs{border-radius:10px;padding:5px;gap:5px}
.journal-tabs button,.academy-tabs button{border-radius:7px;border:0;font-size:13px;font-weight:600;min-height:42px}
:is(.catalog-card,.analytics-card,.streak-panel,.topic-cards button){box-shadow:none;border-radius:12px;border-color:#87ad9360}
.topic-cards button[aria-pressed=true]{box-shadow:none}
.table-hotspot.waiting{border:1px solid #d9d4b3;border-radius:12px;box-shadow:0 4px 12px #081f2820;background:#fff9e7;color:#294c40}
.table-hotspot.waiting:hover{background:#e6efdd;color:#294c40}
.scene-sink{border:1px solid #c4d8b966;border-radius:12px;background:#183b40eb;box-shadow:none}
/* Physical reel interaction: holding animates the reel, release safely recovers the line. */
#sceneActions[data-action=fight]{padding:20px;gap:13px;border-radius:16px;width:min(330px,calc(100% - 40px));box-shadow:0 8px 24px #072f3528}
#sceneActions[data-action=fight] #sceneActionTarget{touch-action:none;user-select:none;box-shadow:none;border:0;border-radius:10px;position:relative;overflow:hidden}
#sceneActions[data-action=fight] #sceneActionTarget::after{content:'';position:absolute;left:0;bottom:0;height:4px;width:var(--line-tension,0%);background:#f0c17c;transition:width .08s linear}
#sceneActions[data-action=fight] #sceneActionKeys{font-size:11px}
#sceneActions[data-action=fight][data-reel-state=pull] #sceneActionTarget{background:#285f4e}
#sceneActions[data-action=fight][data-reel-state=rest] #sceneActionTarget{box-shadow:none;background:#f4dfba;color:#73572d}
#sceneActions[data-action=fight] #sceneActionHint{min-height:44px}
@media(max-width:720px){#setup.fishing-orbit{width:250px;max-width:calc(100% - 20px);right:10px;top:28%;padding:11px;gap:9px 5px}#setup .orbit-tool canvas{width:33px!important;height:33px!important}#setup .orbit-tool span{font-size:9px}#setup .orbit-caption{font-size:12px;padding-bottom:7px}#setup .orbit-caption small{font-size:10px}#setup .harbor-shop canvas{width:26px!important;height:23px!important}#setup .harbor-shop span{font-size:9px}#setup #fishingNotice{font-size:10px}#setup .orbit-tray{right:0;top:calc(100% + 8px);width:min(330px,calc(100vw - 48px))}.study-card{padding:17px}.study-card .study-context{font-size:15px!important}.study-card .study-meaning{font-size:18px!important}#sceneActions[data-action=fight]{left:12px;bottom:12px;padding:17px;gap:10px;width:min(290px,calc(100% - 24px))}#sceneActions[data-action=fight] #sceneActionTitle{font-size:18px}}
@media(min-width:721px){#setup.fishing-orbit{top:auto;bottom:4%;width:min(400px,46%);padding:14px;gap:10px 7px}#setup .orbit-caption{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px}#setup .orbit-caption small{grid-column:1}#setup #harborStreak{grid-column:2;grid-row:1/3;margin:0;font-size:10px}#setup .orbit-tool{padding:6px 3px!important}#setup .harbor-shop-shortcuts{padding-top:8px}}
#setup .orbit-tray #baitChoices button{display:flex;flex-direction:column;align-items:center}
#setup .orbit-tray #baitChoices button b{display:block;width:100%;white-space:nowrap;font-size:12px;text-align:center}
#setup .orbit-tray #baitChoices small{display:block!important;position:static;min-width:26px;margin:4px auto 0!important;text-align:center}
/* Information hierarchy: one growth/resource HUD, one entry to all secondary pages. */
.focused-hud header{justify-content:space-between}
.header-controls{display:flex;align-items:center;gap:16px}
.open-game-menu,.header-back{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #98bcad45;border-radius:10px;background:#1c4043;color:#e4eee1;min-height:42px;padding:9px 16px;font-size:13px;font-weight:650}
.header-back{border:0;background:transparent;font-size:12px;color:#b9cec0}
.hud-icon{display:inline-flex;flex:none;width:28px;height:28px;align-items:center;justify-content:center;color:#a7d0b8}
.hud-icon svg{width:100%;height:100%}
.open-game-menu .hud-icon{width:20px;height:20px}
.focused-hud .play-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;min-height:96px;background:#13363ceb}
.focused-hud .play-toolbar .journey{display:flex;align-items:center;gap:24px;flex:1;min-width:0;white-space:normal;order:0}
.hud-learning{display:grid;gap:5px;min-width:195px;max-width:270px;flex:1}
.hud-caption{display:block;font-size:10px;color:#a9c6b7;letter-spacing:.03em;font-weight:500}
.focused-hud .play-toolbar .study-level-badge{display:block;text-align:left;padding:0;border:0;background:none;color:#f0edcf;font-size:18px;line-height:1.4;font-weight:750;white-space:normal;border-radius:3px;min-height:26px}
.hud-learning progress{width:100%;height:5px;accent-color:#b4d99e;border:0;border-radius:4px;overflow:hidden}
.hud-learning progress::-webkit-progress-bar{background:#46655d;border-radius:4px}
.hud-learning progress::-webkit-progress-value{background:#b4d99e;border-radius:4px}
.hud-learning small{font-size:10px;color:#c4d6c7;line-height:1.2}
.hud-adventure{border-left:1px solid #a8c6b32c;padding-left:24px;min-width:145px;display:grid;gap:5px}
.focused-hud .play-toolbar .player-level{background:transparent!important;border:0!important;box-shadow:none;padding:0!important;color:#dce9db!important;gap:5px;min-width:115px;border-radius:0!important}
.focused-hud .play-toolbar .player-level span{font-size:14px;font-weight:650}
.focused-hud .play-toolbar .player-level small{font-size:11px;color:#c1d3c4;text-align:left}
.focused-hud .play-toolbar .player-level progress{accent-color:#7eac9a;width:100%;height:5px}
.focused-hud .play-toolbar .stats.hud-resources{display:flex;align-items:center;gap:22px;margin:0;flex:none}
.focused-hud .play-toolbar .stats .hud-resource{display:flex;gap:10px;align-items:center}
.focused-hud .play-toolbar .hud-resource>div{display:grid;gap:4px}
.focused-hud .play-toolbar .stats .hud-resource small{display:block;color:#aec6b9;font-size:10px}
.focused-hud .play-toolbar .stats .hud-resource b{display:block;font-size:20px;line-height:1.3;color:#e9efdf;font-weight:700;margin:0;background:none;border:0;padding:0;white-space:nowrap}
.focused-hud .play-toolbar .stats .hud-resource em{font-size:11px;color:#bdd2c4;font-style:normal}
.hud-money .hud-icon{color:#e3c67e}
.focused-hud .play-toolbar .stats .hud-money b{color:#efda9f}
.settings-hub{max-width:1020px;margin:30px auto 50px;padding:0 12px}
.hub-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.hub-heading h1{font-size:30px;margin:5px 0;color:#f0ecd8}
.hub-heading .eyebrow{color:#98bbaa}
.hub-pause-note{color:#afc9bb;font-size:13px;margin:12px 0 25px}
.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.hub-group{padding:24px;border:1px solid #98baaa35;border-radius:15px;background:#17383e}
.hub-group h2{font-size:18px;color:#eae9d4;margin:0 0 6px}
.hub-group>p{font-size:12px;color:#a6c2b3;margin:0 0 18px}
.hub-links{display:grid;gap:8px}
.settings-hub .hub-link{display:flex!important;width:100%;height:auto;min-height:46px;align-items:center;justify-content:space-between;text-align:left;padding:12px 14px;border:1px solid #9abfad25;background:#ffffff04;color:#dce9dd;border-radius:9px;font-size:14px;font-weight:550;line-height:1.5}
.settings-hub .hub-link::after{content:'›';font-size:19px;color:#87af9c;margin-left:12px}
.settings-hub .hub-link:hover{background:#ffffff0b;border-color:#aacdb660}
.settings-hub .hub-link.active{background:#31534b;border-color:#82ab9245}
.settings-hub #sound{max-width:none;color:#dce9dd;font-size:14px}
.settings-hub .hub-link#pauseGame[aria-pressed=true]{background:#476149;color:#edf1d2}
.hub-day{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 4px;color:#9fbbac;font-size:12px}
.hub-day>div{display:flex;align-items:baseline;gap:10px}
.hub-day b{font-size:16px;color:#e0d3a4}.hub-day em{font-size:11px;font-style:normal}
@media(max-width:1000px){.focused-hud .play-toolbar{gap:12px;padding:12px}.focused-hud .play-toolbar .journey{gap:14px}.hud-adventure{padding-left:14px;min-width:110px}.hud-learning{min-width:145px}.focused-hud .play-toolbar .study-level-badge{font-size:15px}.focused-hud .play-toolbar .stats.hud-resources{gap:14px}.hud-icon{width:23px;height:23px}.focused-hud .play-toolbar .stats .hud-resource{gap:7px}}
@media(max-width:720px){.focused-hud header{flex-wrap:nowrap;min-height:64px}.open-game-menu{padding:8px 12px;font-size:12px;min-height:38px}.header-controls{gap:5px}.header-back{font-size:10px;padding:6px}.focused-hud .play-toolbar{display:grid;grid-template-columns:1fr;gap:10px;min-height:0;padding:10px 12px}.focused-hud .play-toolbar .journey{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;width:100%}.hud-learning{min-width:0;max-width:none}.hud-adventure{min-width:0;padding-left:14px}.focused-hud .play-toolbar .study-level-badge{font-size:14px}.focused-hud .play-toolbar .player-level{min-width:0}.focused-hud .play-toolbar .player-level span{font-size:12px}.focused-hud .play-toolbar .stats.hud-resources{display:flex;justify-content:space-between;width:100%;border-top:1px solid #bdd0be24;padding-top:8px;gap:14px}.focused-hud .play-toolbar .stats .hud-resource>div{display:flex;align-items:baseline;gap:7px}.focused-hud .play-toolbar .stats .hud-resource b{font-size:16px}.focused-hud .play-toolbar .stats .hud-resource small{font-size:9px}.hud-icon{width:21px;height:21px}.hud-caption{font-size:9px}.hub-grid{grid-template-columns:1fr;gap:12px}.settings-hub{margin:22px auto;padding:0 4px}.hub-group{padding:18px}.hub-heading h1{font-size:25px}.hub-heading .primary{font-size:12px;padding:10px 13px}.hub-pause-note{font-size:12px}.settings-hub .hub-link{font-size:13px}.hud-learning small{font-size:9px}.header-back{max-width:85px;line-height:1.4}}
.focused-hud .play-toolbar .journey{order:-1}
.focused-hud .play-toolbar .player-level span{color:#dce9db}
.settings-hub #openStory{position:static;transform:none;max-width:none;box-shadow:none;backdrop-filter:none;text-shadow:none}
.settings-hub #openStory b,.settings-hub #openStory span:last-child{display:none}
.settings-hub #openStory span:first-child{font-size:14px;color:inherit}

/* Adventure leads; language mastery remains a quiet, separate measure. */
.focused-hud .hud-adventure{display:flex;align-items:center;gap:12px;border:0;padding:0;min-width:215px}
.hud-adventure>.hud-icon{width:48px;height:48px;padding:9px;border-radius:14px;background:#ecd19218;color:#efd296;border:1px solid #e7c57e40}
.hud-adventure-info{display:grid;gap:4px;flex:1}
.focused-hud .play-toolbar .player-level span{font-size:23px;font-weight:800;color:#fff0c8}
.focused-hud .play-toolbar .player-level progress{height:7px;accent-color:#ebce8e}
.focused-hud .play-toolbar .player-level progress::-webkit-progress-bar{background:#42605a;border-radius:5px}
.focused-hud .play-toolbar .player-level progress::-webkit-progress-value{background:#ebce8e;border-radius:5px}
.focused-hud .play-toolbar .player-level small{font-size:12px;color:#e0d8b7}
.focused-hud .hud-learning{border-left:1px solid #aac6b32c;padding-left:22px;min-width:180px;max-width:240px;gap:4px}
.focused-hud .play-toolbar .study-level-badge{font-size:14px;font-weight:550;color:#c6d9cb;min-height:20px}
.focused-hud .hud-learning progress{height:3px;opacity:.65}
.focused-hud .hud-learning small{font-size:10px;color:#a3bdb0}
.focused-hud .scene-label{top:124px}

/* A protected stage above a shared learning tray: characters and tools stay visible. */
body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .game-layout{width:min(1100px,100%)}
body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .world-panel{display:flex;flex-direction:column;aspect-ratio:auto;padding-top:140px;overflow:hidden;background:#15373c}
body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .world-panel canvas#world{position:relative;inset:auto;order:0;width:100%;height:clamp(280px,40vh,440px);aspect-ratio:auto;object-fit:cover;object-position:center 25%}
body.focused-hud[data-phase=cook][data-mode=typing] .world-panel canvas#world{height:auto;aspect-ratio:2/1;object-fit:cover;object-position:center top}
body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .side{position:relative;inset:auto;order:2;transform:none;width:100%!important;max-width:none!important;display:block;padding:16px 22px 12px;border:0;border-top:1px solid #a8c5ae35;border-radius:0;background:#15373c;box-shadow:none;backdrop-filter:none;overflow:visible;max-height:none}
body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .side .action-card{padding:0;margin:0}
body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) #typing{margin:0}
body.focused-hud[data-mode=typing][data-exercise=study] #courseCaption,body.focused-hud[data-mode=typing][data-exercise=study] #lessonMeta #challengeLabel,body.focused-hud[data-mode=typing][data-exercise=study] #lessonMeta #time{display:none}
body.focused-hud[data-mode=typing][data-exercise=study] #lessonMeta{margin:0 0 10px}
body.focused-hud[data-mode=typing][data-exercise=study] #lessonMeta:not(:has(#stageSteps)){display:none}
body.focused-hud[data-mode=typing][data-exercise=study] #lessonMeta #stageSteps{margin:0;gap:5px}
body.focused-hud[data-mode=typing][data-exercise=study] #promptCard{border:0;padding:0}
body.focused-hud[data-mode=typing][data-exercise=study] .study-card{margin:0;max-width:none;padding:22px 26px;gap:12px 30px;border:1px solid #d8e4d2;border-radius:14px;background:#fffdf6;box-shadow:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:start}
body.focused-hud[data-mode=typing][data-exercise=study] .study-card-meta{grid-column:1/-1}
body.focused-hud[data-mode=typing][data-exercise=study] .study-context{grid-column:1;grid-row:2;font-size:15px!important;line-height:1.6!important;margin:0!important}
body.focused-hud[data-mode=typing][data-exercise=study] .study-meaning{grid-column:1;grid-row:3;font-size:19px!important;margin:0!important}
body.focused-hud[data-mode=typing][data-exercise=study] .study-sentence{grid-column:2;grid-row:2/5;font-size:25px;line-height:1.6;min-width:0;align-self:center}
body.focused-hud[data-mode=typing][data-exercise=study] .study-speech-status{grid-column:1;margin:0!important;font-size:12px!important}
body.focused-hud[data-mode=typing][data-exercise=study] .study-speech-status:empty{display:none}
body.focused-hud[data-mode=typing][data-exercise=study] .study-feedback{grid-column:1/-1;max-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
body.focused-hud[data-mode=typing][data-exercise=study] .study-card .study-actions{grid-column:1/-1;position:static;background:none;padding:12px 0 0;margin:4px 0 0}
body.focused-hud[data-mode=typing][data-exercise=study] .study-feedback .study-correct-sentence{font-size:23px!important;line-height:1.5!important}
body.focused-hud[data-mode=typing][data-exercise=study] .study-card .study-choice{min-height:44px;font-size:15px;padding:10px 12px}
body.focused-hud[data-mode=typing][data-exercise=study] .side .lesson-tools{display:flex;justify-content:flex-end;margin:8px 0 0}
body.focused-hud[data-mode=typing][data-exercise=study] #cancelRound{background:transparent;border:0;border-radius:8px;padding:6px 10px;color:#bbd2c5;font-size:11px}
body.focused-hud[data-mode=typing][data-exercise=study] #liveMetrics,body.focused-hud[data-mode=typing][data-exercise=study] #typing>.track{display:none}
body.focused-hud[data-mode=typing][data-exercise=study] #setup,body.focused-hud[data-mode=typing][data-exercise=study] #tableHotspots{display:none!important}
body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress{position:relative;inset:auto;order:1;width:100%;padding:12px 22px;margin:0;border:0;border-bottom:1px solid #a8c5ae35;border-radius:0;background:#20433f}
body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress #stageSteps{display:flex;flex-direction:row;gap:8px;margin:0}
body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress #stageSteps span{font-size:12px;padding:9px 12px;text-align:center;flex:1}
.focused-hud .hud-adventure{display:flex;align-items:center;gap:12px;border:0;padding:0;min-width:215px}
@media(max-width:1000px){.focused-hud .hud-adventure{min-width:185px}.focused-hud .hud-learning{min-width:145px;padding-left:14px}.focused-hud .play-toolbar .player-level span{font-size:21px}}
@media(max-width:720px){
 .focused-hud .play-toolbar .journey{grid-template-columns:1.2fr 1fr;gap:12px}.focused-hud .hud-adventure{min-width:0;gap:8px}.hud-adventure>.hud-icon{width:37px;height:37px;padding:7px;border-radius:10px}
 .focused-hud .play-toolbar .player-level span{font-size:18px}.focused-hud .play-toolbar .player-level small{font-size:10px}.focused-hud .hud-learning{min-width:0;padding-left:12px}.focused-hud .play-toolbar .study-level-badge{font-size:12px}.focused-hud .hud-learning small{font-size:9px}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .world-panel{padding-top:0}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .play-toolbar{position:relative;inset:auto;order:-1;margin:0;border-radius:0}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .world-panel canvas#world{height:270px;object-position:center 25%}
 body.focused-hud[data-phase=cook][data-mode=typing] .world-panel canvas#world{height:auto;aspect-ratio:2/1;object-position:top}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .side{padding:12px}
 body.focused-hud[data-mode=typing][data-exercise=study] .study-card{display:flex;flex-direction:column;padding:18px;gap:12px}
 body.focused-hud[data-mode=typing][data-exercise=study] .study-card>*{width:100%}
 body.focused-hud[data-mode=typing][data-exercise=study] .study-card .study-sentence{font-size:23px}
 body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress{padding:9px 12px}
 body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress #stageSteps{gap:4px}
 body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress #stageSteps span{font-size:10px;padding:7px 3px}
}
/* Translator check: labeled milestones, question and responses in one surface. */
.placement-dialog{width:min(820px,calc(100vw - 24px));border-radius:18px;background:#173b40}
.placement-banner{min-height:120px;padding:20px 28px;background-position:center 48%}
.placement-banner>b{font-size:19px;letter-spacing:2px;line-height:1.3;margin-top:8px}.placement-banner>span{font-size:10px;letter-spacing:2px}.placement-banner>i{display:none}
.placement-dialog[data-screen=question] .placement-banner{min-height:0;padding:14px 28px}.placement-dialog[data-screen=question] .placement-banner>b{display:none}
#placementContent{padding:24px 28px}#placementContent h2{font-size:23px;margin:0 0 6px}.placement-subtitle{font-size:13px;margin:0 0 16px;color:#b8d0c6}
.calibration-repair{list-style:none;display:flex;gap:10px;padding:0;margin:0 0 14px;justify-content:stretch}
.calibration-repair li{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:10px 12px;border:1px solid #8eafa12b;border-radius:9px;color:#8ca99e;font-size:12px;background:#ffffff03}
.calibration-repair li b{display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;background:#ffffff0b;font-size:11px}
.calibration-repair li span{display:block;font-size:12px;width:auto;height:auto;background:none;border:0;opacity:1;box-shadow:none}
.calibration-repair li.current{background:#dcebcf;color:#2f5b4d;border-color:#dcebcf}.calibration-repair li.current b{background:#396f5a;color:white}.calibration-repair li.complete{color:#c5e2bc}
#placementContent>progress{height:5px;margin:0 0 18px;border:0;border-radius:5px;overflow:hidden;accent-color:#a5ceb4}#placementContent>progress::-webkit-progress-bar{background:#345850}#placementContent>progress::-webkit-progress-value{background:#a5ceb4}
.placement-question{background:#fffdf6;border:1px solid #d8e4d2;border-radius:14px;padding:24px;color:#26483f;font-size:18px;line-height:1.6}
.placement-question>p:first-child{font-size:13px;color:#658071;margin-bottom:14px}.placement-question .study-sentence{font-size:26px;gap:8px;margin:20px 0}
.placement-question .study-input{font-size:24px;border-radius:9px;border:1px solid #94b7a1;border-bottom:3px solid #347d68;background:#edf5e8;padding:9px;max-width:100%}
.placement-question .placement-choices{margin:18px 0;gap:8px}
.placement-question .placement-choices button{margin:0;background:#fffdf6;color:#2b5045;border:1px solid #c5d8c7;border-radius:9px;min-height:48px;font-size:16px;padding:12px}
.placement-question .placement-choices [aria-pressed=true]{background:#dfeddb;border:2px solid #47836b;box-shadow:none}
.placement-question .placement-choices kbd{background:#eef3e8;color:#537362;border-color:#c8dacb;font-size:12px}
.placement-actions{justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid #dbe5d6;padding-top:16px;margin-top:18px}
.placement-question .placement-actions button{margin:0;min-width:120px;min-height:44px;border:1px solid #b6cdbb;border-radius:9px;background:transparent;color:#557464;font-weight:600;font-size:14px;padding:11px 18px}
.placement-question .placement-actions .primary{background:#347d68;border-color:#347d68;color:white;box-shadow:none}.placement-question .placement-actions .primary:disabled{opacity:1;background:#e2eadd;border-color:#e2eadd;color:#92a58f}
.placement-question>small{font-size:11px;line-height:1.5;margin-top:12px;color:#708777}
@media(max-width:600px){#placementContent{padding:18px}.placement-dialog[data-screen=question] .placement-banner{padding:12px 18px}.calibration-repair{gap:5px}.calibration-repair li{padding:8px 5px;gap:5px;flex-direction:column;text-align:center}.calibration-repair li span{font-size:10px}.placement-question{padding:18px;font-size:16px}.placement-question .study-sentence{font-size:22px}.placement-actions button{flex:1;min-width:0!important}.placement-banner{padding:18px;min-height:105px}}
.placement-question>button{border:1px solid #bed2be;border-radius:8px;background:#edf4e8;color:#315e4e;min-height:40px;font-size:13px;box-shadow:none}
@media(min-width:601px){.placement-question .placement-choices{grid-template-columns:1fr 1fr}.placement-question .placement-choices button{min-height:62px}}
body.focused-hud[data-phase=cook][data-mode=typing] .world-panel canvas#world{height:clamp(280px,42vh,440px);aspect-ratio:auto;object-fit:contain;object-position:center;background:#15373c}
@media(max-width:720px){body.focused-hud[data-phase=cook][data-mode=typing] .world-panel canvas#world{height:auto;aspect-ratio:768/372;object-fit:contain}}
/* On laptop-height screens, reserve room for the answer controls as well as the stage. */
@media(min-width:721px) and (max-height:850px){
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .world-panel{padding-top:114px}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .play-toolbar{min-height:80px;padding:10px 16px;top:8px}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .scene-label{top:96px}
 body.focused-hud[data-mode=typing][data-exercise=study] .world-panel canvas#world{height:clamp(225px,31vh,270px)}
 body.focused-hud[data-phase=cook][data-mode=typing] .world-panel canvas#world{height:clamp(320px,40vh,340px)}
 body.focused-hud[data-mode=typing]:is([data-exercise=study],[data-phase=cook]) .side{padding:12px 20px 8px}
 body.focused-hud[data-mode=typing][data-exercise=study] .study-card{padding:16px 22px;gap:8px 26px}
 body.focused-hud[data-mode=typing][data-exercise=study] .study-feedback{max-height:230px}
 body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress{padding:8px 20px}
 body.focused-hud[data-phase=cook][data-mode=typing] .cooking-progress #stageSteps span{padding:7px 10px}
}

/* Line danger is visible before a held reel can snap. */
.reel-tension-label{display:flex;justify-content:space-between;font-size:12px;margin:12px 0 6px;color:#587368}
#reelLineTension{display:block;width:100%;height:7px;appearance:none;border:0;border-radius:6px;overflow:hidden;background:#e3e9de;accent-color:#e6b563}
#reelLineTension::-webkit-progress-bar{background:#e3e9de;border-radius:6px}
#reelLineTension::-webkit-progress-value{background:#e6b563;border-radius:6px}
#sceneActions[data-action=fight][data-reel-state=danger]{border-color:#ed9a7c}
#sceneActions[data-action=fight][data-reel-state=danger] #sceneActionTitle{color:#a23e2b}
#sceneActions[data-action=fight][data-reel-state=danger] #sceneActionTarget{background:#984b39;color:#fff5ea;border-color:#ed9a7c}
#sceneActions[data-reel-state=danger] #reelLineTension::-webkit-progress-value{background:#ef8b6f}
#sceneActions[data-reel-state=danger] #sceneActionTarget::after{background:#ef8b6f}
.study-transfer-label{display:inline-block;margin-left:10px;padding:3px 8px;border-radius:6px;background:#e5f0e9;color:#326d5b;font-size:.8em;font-weight:600;vertical-align:middle}
.study-practice-note{font-size:.88rem;line-height:1.6;color:#456d60;margin:12px 0 0}

.study-review-plan{margin:14px 0 0;padding:10px 12px;border-radius:8px;background:#edf3e7;color:#365d4d;font-size:.88rem;line-height:1.6}

/* Short comprehension missions stay inside the existing course map. */
.foundation-missions { margin-top:16px; border-top:1px solid #b8cabc; padding-top:12px; }
.foundation-mission-actions,.foundation-mission-list { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.foundation-practice:not(:empty) { padding:16px; margin-top:12px; background:#fffdf5; color:#234945; border-radius:16px; border:1px solid #b8cabc; }
.foundation-transcript { white-space:pre-line; padding:14px; line-height:1.7; background:#edf3e6; border-radius:10px; }
.foundation-transcript[hidden] { display:none; }
.foundation-options { display:grid; gap:8px; margin:12px 0; }
.foundation-options button { text-align:left; padding:12px; white-space:normal; }
.course-units > section:has(.foundation-practice:not(:empty)) { grid-column:1 / -1; }
.course-units .foundation-missions { padding:14px 0 0; border:0; border-top:1px solid #c7d0be; border-radius:0; background:transparent; }
.course-units .foundation-mission-list button,.course-units .foundation-mission-actions button { width:auto; flex:1 1 150px; margin:0; padding:10px 14px; border:1px solid #a9bdb0; border-radius:10px; font-size:14px; }
.course-units .foundation-practice button { margin:0; padding:12px 16px; border:1px solid #a9bdb0; border-radius:10px; font:inherit; }
.course-units .foundation-options button { background:#f7f8ee; color:#254c47; }
.course-units .foundation-options button:disabled { opacity:1; color:#61736e; background:#f0f1e9; }
.course-units .foundation-options button[data-correct] { border-color:#397e6a; color:#195745; background:#dceedd; font-weight:700; }
.foundation-practice:focus { outline:2px solid #6b9e87; outline-offset:3px; }
.foundation-practice h4 { margin:4px 0 12px; font-size:20px; }
.course-units .foundation-practice .foundation-support,.course-units .foundation-practice .foundation-close { flex:0 1 auto; width:auto; background:transparent; color:#4d7064; border-color:transparent; font-size:14px; }
.course-units .foundation-mission-list [data-practice-status=due] { background:#eee0b8; color:#304f45; border-color:#c7ab65; }
/* Route assessments stay inside the paused course map. */
.promotion-panel{max-width:820px;margin:auto;padding:clamp(16px,3vw,32px);color:var(--ink,#244947);background:#fffdf4;border-radius:22px;display:grid;gap:16px}
.promotion-panel h2,.promotion-panel h3,.promotion-panel p{margin:0;line-height:1.6}
.promotion-panel h3{font-size:clamp(19px,2vw,25px)}
.promotion-panel progress{width:100%;height:10px;accent-color:#347d6b}
.promotion-panel input{width:100%;box-sizing:border-box;min-height:56px;padding:14px;border:2px solid #91b5a6;border-radius:12px;background:white;color:#244947;font-size:20px}
.promotion-passage{padding:18px;background:#edf3e7;border-radius:14px;white-space:pre-line;font-size:clamp(20px,2vw,26px)}
.promotion-actions{display:flex;gap:12px;flex-wrap:wrap}.promotion-actions button{min-height:48px}.promotion-panel .foundation-options button[aria-pressed=true]{border-color:#2e7e68;background:#d8eadc;box-shadow:inset 0 0 0 1px #2e7e68}
.promotion-panel button:disabled{opacity:.5;cursor:default}.promotion-skills{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.promotion-skills p{background:#edf3e7;border-radius:12px;padding:14px}.promotion-score{font-size:32px;font-weight:800;color:#26745c}.promotion-review-item{padding:16px 0;border-bottom:1px solid #cdd9c9;display:grid;gap:10px}.promotion-panel small{color:#567568;line-height:1.6}
.promotion-gate{padding:20px;margin:16px 0;background:#e8eedc;color:#244947;border:1px solid #adc2a9;border-radius:16px;display:grid;gap:10px}.promotion-gate p{margin:0}.promotion-gate button{justify-self:start}
@media(max-width:600px){.promotion-panel .row{align-items:flex-start;flex-wrap:wrap}.promotion-panel .row h2{font-size:23px}.promotion-actions button{flex:1}.promotion-skills{grid-template-columns:1fr 1fr}}
/* Assessment surfaces use dark ink even inside the game's dark dialogs. */
.promotion-panel{color:#244947;font-size:16px;gap:12px;width:100%}
.promotion-panel h2,.promotion-panel h3,.promotion-panel p{color:#244947}
.promotion-panel .muted,.promotion-panel small{color:#526d62}
.promotion-panel button,.promotion-gate button{font:inherit;font-weight:650;line-height:1.4;padding:12px 18px;min-height:46px;border:1px solid #a9bfb1;border-radius:12px;background:#f0f4e9;color:#244947;cursor:pointer}
.promotion-panel button:hover:not(:disabled),.promotion-gate button:hover:not(:disabled){background:#e1eddf;border-color:#52846e}
.promotion-panel button.primary,.promotion-gate button.primary{background:#327b67;color:#fffdf4;border-color:#26604f;box-shadow:0 3px 0 #235846}
.promotion-panel button.primary:hover:not(:disabled),.promotion-gate button.primary:hover:not(:disabled){background:#286b59}
.promotion-panel button:focus-visible,.promotion-gate button:focus-visible{outline:3px solid #cc9b42;outline-offset:3px}
.promotion-panel .row button{font-size:13px;background:transparent;min-height:40px;padding:8px 12px}
.promotion-panel .foundation-options{margin:4px 0}
.promotion-panel .foundation-options button{font-size:16px}
.promotion-panel .promotion-score{color:#26745c}
.promotion-panel details summary{cursor:pointer;font-weight:700;padding:12px 0}
.promotion-panel .promotion-passage{font-size:clamp(18px,1.7vw,23px)}
.promotion-panel .promotion-actions{padding-top:4px}
.promotion-gate button:disabled{opacity:.5;cursor:default}
