/* Keep each activity together. Long content can grow; controls stay in reach. */
.lp-session.content-page,.quiz-page.content-page{padding-top:18px}
.lp-session>.breadcrumb,.quiz-page>.breadcrumb{margin-bottom:12px;font-size:.8rem}
.lp-session>.lp-heading{margin:0 0 8px}
.lp-session>.lp-heading h1,.quiz-page .page-heading h1{font-size:clamp(1.65rem,3vw,2.1rem);margin:0 0 8px;line-height:1.15}
.lp-session>.lp-heading>.eyebrow{display:none}
.lp-session>.lp-heading>p:last-child{font-size:.92rem;line-height:1.5;margin:0}
.lp-session>.lm-return{margin:8px 0 12px}
.lp-session>.lm-return a{display:inline-flex;align-items:center;min-height:44px}
.lp-page .lp-levels{margin-bottom:10px;gap:6px 12px;font-size:.85rem}
.lp-page .lp-levels small{display:none}
.lp-page .lp-levels .class-button{padding:8px 13px;min-height:44px}
.lp-page .lp-play-panel{padding:18px 20px;border-radius:16px;box-shadow:none}
.lp-page .lp-progress{margin:0 0 12px;padding:0 0 10px;gap:8px;font-size:.8rem}
.lp-page .lp-progress>span:last-child{display:none}
.lp-page .lp-game-layout,.lp-page .ct-layout,.lp-page .dt-layout{grid-template-columns:minmax(0,1fr);gap:10px;max-width:960px;margin-inline:auto}
.lp-page .lp-guide{padding:0 14px;margin:0;background:#f4fafb;border-radius:10px;display:block;position:static}
.lp-guide>summary,.lp-settings>summary,.dt-letter-help>summary,.lp-market-receipt>summary{cursor:pointer;min-height:44px;padding:11px 0;font-size:.9rem;font-weight:800;line-height:1.5}
.lp-page .lp-guide>div{display:flex;align-items:center;gap:12px;padding:0 0 12px}
.lp-page .lp-guide .lp-lily{width:42px;margin:0;flex:none}
.lp-page .lp-guide p{font-size:.9rem;line-height:1.5}
.lp-page .lp-settings{max-width:960px;margin:0 auto 8px;padding:0 14px;border:1px solid var(--line);border-radius:10px}
.lp-page .lp-table-settings{gap:10px 20px;margin:4px 0 12px}
.lp-page .lp-table-settings>small{flex-basis:100%}
.lp-page .lp-actions,.quiz-main .quiz-actions{position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 max(8px,env(safe-area-inset-bottom));margin:10px 0 0;background:var(--paper,#fff);border-top:1px solid var(--line);box-shadow:0 -8px 12px #ffffffeb}
.lp-page .lp-actions .button,.quiz-main .quiz-actions .button{min-height:46px;padding:10px 16px;line-height:1.4;font-size:.95rem;white-space:normal}
.lp-page .lp-actions .button:only-child,.quiz-main .quiz-actions .button:only-child{width:100%}
.lp-page .lp-actions>.button{flex:1}
.lp-page .lp-feedback{padding:12px 14px;margin-top:12px;font-size:.95rem;line-height:1.5}
.lp-page .lp-feedback p{font-size:.95rem;line-height:1.5}
.lp-page .lp-hint{padding:12px 14px;margin:6px 0 10px}
.lp-page .lp-hint-button{min-height:44px;font-size:.9rem;padding:8px 0}
.lp-page .lp-equation{font-size:clamp(2rem,5vw,3.2rem);padding:8px 0 16px;gap:16px}
.lp-page .lp-equation-unknown{min-width:64px;min-height:58px;border-radius:12px}
.lp-page .lp-table-answers{gap:10px;margin-bottom:6px}
.lp-page .lp-table-answers button{min-height:58px;font-size:1.5rem;border-bottom-width:3px}
.lp-page .lm-problem h2{font-size:clamp(1.12rem,2.5vw,1.4rem);line-height:1.45;margin:8px 0}
.lp-page .lm-problem>p:last-child{margin-bottom:12px;font-size:.9rem}
.lp-page .lp-answer-form{margin:12px 0 6px;gap:10px}
.lp-page .lp-result{padding:24px 18px}
.lp-page .lp-result h2{font-size:1.7rem;margin:10px 0}
/* Reading and dictation: the task comes first, advice opens when requested. */
.lp-page .ct-story-heading h2,.lp-page .dt-heading h2{font-size:1.35rem;line-height:1.25;margin:6px 0}
.lp-page .ct-story-heading .eyebrow,.lp-page .dt-heading .eyebrow{font-size:.7rem;margin:0}
.lp-page .ct-story-heading>p:last-child,.lp-page .dt-heading>p:last-child{font-size:.9rem;line-height:1.5;margin:6px 0}
.lp-page .ct-paper{padding:12px 16px;margin:12px 0;box-shadow:none}
.lp-page .ct-story{font-size:1.07rem!important;line-height:2.25!important}
.lp-page .ct-slot{min-width:72px;min-height:44px;padding:6px;margin:2px 1px;gap:4px;font-size:1rem}
.lp-page .ct-bank-heading{margin-bottom:8px;gap:4px 12px}
.lp-page .ct-bank{gap:6px}
.lp-page .ct-word{min-height:44px;font-size:1rem;padding:8px 12px}
.lp-page .ct-placement-help{margin-top:8px;font-size:.82rem}
.lp-page .ct-keyboard{margin-top:6px}
.ct-inline-help,.dt-inline-help{font-size:.9rem;line-height:1.5}
.ct-inline-help>p,.dt-inline-help>p{padding:10px 12px;background:var(--pale);border-radius:8px}
.lp-page .ct-explanations{padding:4px 12px;margin:10px 0}
.lp-page .ct-explanations li{font-size:.95rem;line-height:1.6}
.lp-page .dt-player{display:block;padding:10px 12px;margin:10px 0 0;border-radius:12px}
.lp-page .dt-sound{display:none}
.lp-page .dt-audio-buttons{display:grid;grid-template-columns:1fr 1fr auto;gap:6px}
.lp-page .dt-audio-buttons .button{width:auto;min-height:44px;padding:8px;font-size:.88rem;justify-content:center;line-height:1.3}
.lp-page .dt-stop{padding:8px 4px;font-size:.85rem}
.lp-page .dt-player [role=status]{margin-top:6px;font-size:.8rem;line-height:1.4}
.lp-page .dt-adult{margin:0 0 4px}
.lp-page .dt-panel form>label{margin:4px 0 6px;font-size:.95rem}
.lp-page .dt-panel textarea{min-height:94px;padding:10px 12px;line-height:1.55;font-size:1.05rem}
.lp-page .dt-panel #dt-writing-help{margin:6px 0;font-size:.8rem;line-height:1.4}
.lp-page .dt-letter-help{display:inline-block;vertical-align:top;max-width:100%}
.lp-page .dt-accents{gap:6px;margin:0 0 8px}
.lp-page .dt-correction{margin-top:8px}
.lp-page .dt-correction .dt-model{font-size:1.05rem;line-height:1.6}
.lp-page .dt-errors{font-size:.9rem;line-height:1.6;margin:10px 0}
.lp-page .dt-rule{padding:10px 12px;margin:10px 0}
/* The bank notes and the piggy bank remain side by side, including on a phone. */
.lp-page .lp-market-question{margin-bottom:8px;gap:10px;grid-template-columns:minmax(0,1fr) auto}
.lp-page .lp-market-question h2{font-size:1.15rem;line-height:1.4;margin:4px 0}
.lp-page .lp-market-question p:not(.eyebrow){font-size:.9rem;line-height:1.45}
.lp-page .lp-price{display:block;padding:8px 12px;min-width:90px}
.lp-page .lp-price strong{font-size:1.55rem}
.lp-page .lp-money-help{font-size:.85rem;line-height:1.5;padding:8px 10px;margin-bottom:10px}
.lp-page .lp-market-table{grid-template-columns:minmax(0,1fr) 230px;gap:18px}
.lp-page .lp-cash-group+.lp-cash-group{margin-top:12px}
.lp-page .lp-cash-group h3{margin-bottom:8px}
.lp-page .lp-cash-notes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.lp-page .lp-cash-coins{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:8px}
.lp-page .lp-cash-button.is-coin{width:48px;min-width:44px;min-height:44px}
.lp-page .lp-piggy-drop{top:10px;padding:12px 10px;border-radius:14px}
.lp-page .lp-piggy-drop h3{font-size:1.1rem}
.lp-page .lp-piggy-scene{height:135px;margin-top:6px}
.lp-page .lp-piggy-scene>.lp-lily{width:72px}
.lp-page .lp-piggy-art{max-height:125px}
.lp-page .lp-drop-invitation{font-size:.75rem;margin:4px 0 8px}
.lp-page .lp-piggy-total{padding-top:8px}
.lp-page .lp-piggy-total strong{font-size:1.65rem}
.lp-page .lp-piggy-actions .button{min-height:46px;padding:8px;font-size:.9rem;line-height:1.35}
.lp-page .lp-deposit-status{min-height:0;margin-top:6px;line-height:1.4}
.lp-page .lp-market-receipt{padding:0 12px;margin-top:10px}
.lp-page .lp-market-receipt[open]{padding-bottom:12px}
.lp-page .lp-money-alternative{margin:8px 0;font-size:.8rem;line-height:1.45}
/* Short stage headers; the lesson can be read once, then folded away. */
.lm-page:has(.lm-playing-top){padding-top:16px}
.lm-page:has(.lm-playing-top)>.breadcrumb{margin-bottom:8px;font-size:.8rem}
.lp-page .lm-playing-top{gap:8px;margin:0 0 6px;font-size:.8rem}
.lp-page .lm-playing-top>span{display:none}
.lp-page .lm-playing-top>strong{margin-left:auto}
.lp-page .lm-step-dots{margin-bottom:10px}
.lp-page .lm-activity-title{margin-bottom:12px}
.lp-page .lm-activity-title h1{font-size:1.5rem;margin-top:4px}
.lp-page .lm-activity-title>.eyebrow{font-size:.7rem}
.lp-page .lm-game-context{padding:8px 12px;margin-top:8px;font-size:.9rem}
.lp-page .lm-discovery{grid-template-columns:minmax(0,1fr);gap:10px;max-width:960px;margin:auto}
.lp-page .lm-lesson{padding:0 14px;border-radius:12px}
.lp-page .lm-lesson>summary{cursor:pointer;padding:12px 0;min-height:44px;font-weight:800;font-size:.95rem}
.lp-page .lm-lesson h2{font-size:1.3rem;margin:8px 0}
.lp-page .lm-lesson>p:not(.eyebrow){font-size:1rem;line-height:1.65;margin:10px 0}
.lp-page .lm-lesson>[data-lm-ready]{margin:10px 0 14px;min-height:46px}
.lp-page .lm-lesson-art{display:none}
.lp-page .lm-lesson .lm-parent{padding:8px 0;margin-top:10px}
.lp-page .lm-check{padding:16px 18px;align-self:start}
.lp-page .lm-check h2{font-size:1.17rem;line-height:1.4;margin:10px 0 12px}
.lp-page .lm-choice{padding:10px 12px;font-size:1rem;line-height:1.4;margin:8px 0}
.lp-page .lm-check>.button{position:sticky;bottom:8px;z-index:4;margin-top:10px;min-height:46px;width:100%;box-shadow:0 0 0 8px white}
.lp-page .lm-step-finished{padding:24px 18px}
.lp-page .lm-step-finished h2{font-size:1.65rem;margin:10px 0}
/* Article quizzes and standalone quizzes share the same compact controls. */
.quiz-page .page-heading{margin:0 0 14px;display:block}
.quiz-page .page-intro>p{font-size:.95rem;line-height:1.5}
.quiz-page .quiz-shell{grid-template-columns:minmax(0,1fr);gap:10px;max-width:900px;margin-inline:auto}
.quiz-page .quiz-guide{display:none}
.quiz-page .mmc-map-link{margin:10px 0}
.quiz-page .quiz-main{padding:18px 20px}
.quiz-main .quiz-progress{margin:0 0 8px;font-size:.85rem;gap:8px}
.quiz-main .quiz-progress>span:last-child{display:none}
.quiz-main .progress-track{margin:0 0 12px;height:5px}
.quiz-main>h2,.mmc-article-quiz .quiz-main>h3{font-size:clamp(1.15rem,2.4vw,1.4rem);line-height:1.4;margin:12px 0}
.quiz-main .answers{gap:8px;margin:10px 0}
.quiz-main .answer-option{padding:10px 12px;min-height:48px;font-size:1rem;line-height:1.4;gap:10px}
.quiz-main .answer-option .letter{width:27px;height:27px;min-width:27px;font-size:.85rem}
.quiz-main .mmc-quiz-hint{padding:0 12px;margin:10px 0}
.quiz-main .mmc-quiz-hint summary{padding:12px 0;min-height:44px;font-size:.9rem}
.quiz-main .mmc-quiz-hint>p{padding:0 0 12px;line-height:1.5}
.quiz-main .mmc-quiz-feedback{padding:12px 14px;margin:12px 0;line-height:1.5;font-size:.95rem}
.mmc-article-quiz{padding:18px 20px}
.mmc-article-quiz .quiz-main{padding:12px 0 0}
/* Compact word game without sacrificing the touch targets or Lily's lives. */
.lp-page .lp-word-game{grid-template-columns:minmax(0,1fr) 210px;gap:16px}
.lp-page .lp-word-game .lp-question h2{font-size:1.15rem;margin:8px 0;line-height:1.4}
.lp-page .lp-word-game .lp-word-slots{margin:14px 0;gap:5px}
.lp-page .lp-word-game .lp-word-slots>span{height:44px;font-size:1.3rem}
.lp-page .lp-word-game .lp-keyboard{gap:6px;grid-template-columns:repeat(7,minmax(0,1fr))}
.lp-page .lp-word-game .lp-keyboard>button{height:44px;min-width:44px;font-size:1.1rem}
.lp-page .lp-lily-challenge{padding:14px 10px;border-radius:16px;top:12px}
.lp-page .lp-lily-caption h2{font-size:1.3rem;margin:6px 0}
.lp-page .lp-lily-caption>p:last-child{font-size:.85rem;line-height:1.5;min-height:0}
.lp-page .lp-lily-stage{max-width:150px}
.lp-page .lp-chances{padding-top:8px;margin-top:6px}
.lp-page .lp-key-help{margin:6px 0;font-size:.8rem}
.lp-page .lp-letter-message{margin-top:6px;font-size:.9rem;line-height:1.4}
@media(min-width:821px){
  .lp-page .ct-panel{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:0 20px}
  .ct-panel>.lp-progress,.ct-panel>.ct-story-heading,.ct-panel>.lp-feedback,.ct-panel>.ct-explanations,.ct-panel>.lp-actions,.ct-panel>.ct-keyboard{grid-column:1/-1}
  .ct-panel>.ct-paper{grid-column:1;grid-row:3/6;align-self:start}
  .ct-panel>.ct-wallet{grid-column:2;grid-row:3;align-self:start;margin-top:12px}
  .ct-panel>.ct-inline-help{grid-column:2;grid-row:4;align-self:start}
}
@media(max-width:820px){
  .lp-page .lp-word-game{grid-template-columns:minmax(0,1fr) 102px;padding:14px;gap:8px 12px}
  .lp-page .lp-word-game .lp-play-panel{display:contents}
  .lp-page .lp-word-game .lp-progress{padding-bottom:8px;margin:0}
  .lp-page .lp-word-game .lp-word-slots{margin:4px 0}
  .lp-page .lp-word-game .lp-lily-challenge{padding:8px 5px;top:auto}
  .lp-page .lp-word-game .lp-lily-stage{max-width:74px}
  .lp-page .lp-word-game .lp-lily-caption h2{font-size:.92rem;margin:0 0 4px}
  .lp-page .lp-word-game .lp-question{align-self:start}
  .lp-page .lp-word-game .lp-question .tag{font-size:.72rem}
  .lp-page .lp-word-game .lp-question>p{font-size:.8rem;line-height:1.4}
  .lp-page .lp-word-game .lp-chance-dots{gap:2px}
  .lp-page .lp-word-game .lp-chance-dots>span{width:9px;height:9px;font-size:8px}
  .lp-page .lp-word-game .lp-chances p{font-size:.7rem;margin-top:4px}
}
@media(max-width:560px){
  .lp-session.content-page,.lm-page:has(.lm-playing-top),.quiz-page.content-page{width:auto;margin-inline:12px;padding-inline:0}
  .lp-session>.lp-heading>p:last-child{display:none}
  .lp-page .lp-play-panel,.quiz-page .quiz-main{padding:12px}
  .lp-page .lp-market-table{grid-template-columns:minmax(0,1fr) 116px;gap:10px}
  .lp-page .lp-market-question{grid-template-columns:1fr}
  .lp-page .lp-price{display:flex;align-items:center;justify-content:space-between;padding:6px 10px}
  .lp-page .lp-cash-notes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .lp-page .lp-cash-button.is-note{width:100%;max-width:none}
  .lp-page .lp-cash-coins{grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px}
  .lp-page .lp-cash-wallet{padding:0}
  .lp-page .lp-piggy-drop{padding:10px 6px}
  .lp-page .lp-piggy-drop h3{font-size:1rem}
  .lp-page .lp-piggy-scene{height:90px}
  .lp-page .lp-piggy-scene>.lp-lily{width:48px;left:4%}
  .lp-page .lp-piggy-art{width:100%;left:0;max-height:86px}
  .lp-page .lp-drop-invitation{display:none}
  .lp-page .lp-piggy-total strong{font-size:1.35rem}
  .lp-page .lp-piggy-total span{font-size:.72rem}
  .lp-page .lp-piggy-actions .button{font-size:.83rem;padding:8px 4px}
  .lp-page .ct-paper{padding:10px;margin:10px 0}
  .lp-page .ct-story{font-size:1rem!important;line-height:2.2!important}
  .lp-page .ct-keyboard,.lp-page .lp-key-help{display:none}
  .lp-page .lp-actions .button{padding:9px 10px;font-size:.9rem}
  .lp-page .lm-check{padding:12px}
  .lp-page .lm-check>.eyebrow{font-size:.72rem}
  .mmc-article-quiz{padding:14px 12px}
  .mmc-article-quiz>.eyebrow{margin-bottom:4px}
  .mmc-article-quiz>h2{font-size:1.5rem;margin-bottom:8px}
  .mmc-article-quiz>p{font-size:.95rem;line-height:1.5}
}
@media(max-width:375px){
  .lp-page .lp-word-game .lp-keyboard{grid-template-columns:repeat(6,minmax(0,1fr))}
  .lp-page .lp-market-table{grid-template-columns:minmax(0,1fr) 106px;gap:8px}
  .lp-page .lp-cash-coins{grid-template-columns:repeat(2,minmax(44px,1fr))}
}
@media(prefers-reduced-motion:reduce){.lp-page .lp-actions,.quiz-main .quiz-actions{scroll-behavior:auto}}

/* The site's navigation stays available without the repeated promise banner. */
body:has(.lp-session,.quiz-page,.lm-playing-top) .site-promise{display:none}
body:has(.lp-session,.quiz-page,.lm-playing-top) .header-inner{min-height:0;padding-block:10px}
body:has(.lp-session,.quiz-page,.lm-playing-top) .wordmark{font-size:1.2rem}
.lp-page .dt-panel form{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.lp-page .dt-panel form>label,.lp-page .dt-panel textarea,.lp-page .dt-panel #dt-writing-help{grid-column:1/-1}
.lp-page .dt-panel form>label{line-height:1.4}
.lp-page .dt-panel textarea{font-size:1rem;min-height:94px}
.lp-page .dt-letter-help{grid-column:1;align-self:start}
.lp-page .dt-inline-help{grid-column:2;text-align:right}
.lp-page .dt-letter-help[open],.lp-page .dt-inline-help:has([aria-expanded=true]){grid-column:1/-1;text-align:left}
.lp-page .dt-player [role=status]{font-size:.78rem}
.lp-page .dt-heading h2{font-size:1.15rem}
@media(max-width:560px){.lp-session>.breadcrumb{display:none}.lp-session>.lm-return{margin:0 0 8px}.lp-session>.lp-heading h1{font-size:1.45rem}.lp-page .dt-panel #dt-writing-help{font-size:.75rem}}

.lp-session-heading{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:12px}
.lp-session-heading h1{font-size:clamp(1.25rem,2.5vw,1.8rem);line-height:1.2;margin:0}
.lp-session-back{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:1.2rem}
.lp-session-help>summary{font-size:.85rem;font-weight:800;cursor:pointer;min-height:44px;padding:11px 0}
.lp-session-help[open]{grid-column:1/-1;padding:0 12px;background:var(--pale);border-radius:10px}
.lp-session-help>p{font-size:.95rem;line-height:1.5;padding:0 0 12px}
.lp-page .lp-market-question .eyebrow{display:none}
.lp-page .lp-money-actions{align-items:center;gap:12px}
.lp-page .lp-money-actions>span{font-size:.8rem;flex:0 1 auto}
.lp-page .lp-money-actions>span>strong{display:block;font-size:1.15rem;line-height:1.3}
.lp-page .lp-money-actions>.button{width:auto;min-width:135px}
.lp-page .lp-cash-group h3{font-size:.85rem;line-height:1.3;margin-bottom:6px}
.lp-page .lp-money-help{font-size:.8rem}
/* Maps and history keep their working tools beside the task. */
.geo-page.content-page,.atlas-page.content-page{padding-top:16px}
.geo-page .page-heading,.atlas-page .page-heading{margin-bottom:14px}
.geo-page .page-heading h1,.atlas-page .page-heading h1{font-size:clamp(1.5rem,3vw,2rem);line-height:1.2;margin:6px 0 10px}
.geo-page .page-intro>p,.atlas-page .page-intro>p{font-size:.95rem;line-height:1.5}
.geo-page .geo-guide{display:none}
.geo-page .geo-scope{margin:10px 0}
.geo-page .geo-board{padding:16px;border-radius:16px}
.geo-page .geo-question-row{margin:10px 0}
.geo-page .geo-question-row h2{font-size:1.4rem}
.geo-board .quiz-actions{position:sticky;bottom:0;z-index:4;background:white;padding:10px 0;margin-top:10px;box-shadow:0 -8px 10px #ffffffeb}
.atlas-page .atlas-activity{margin-top:12px}
.atlas-page .atlas-board{padding:16px;border-radius:16px}
.atlas-page .atlas-search{margin-bottom:10px}
.atlas-page .atlas-search>p{font-size:.8rem;margin:6px 0}
.atlas-page .atlas-scroll{max-height:clamp(200px,42svh,430px)}
.atlas-page .atlas-country-card{padding:12px 14px;margin-top:10px}
.lp-page .lp-period-intro,.lp-page .lp-dated-intro{margin:14px 0 12px;gap:12px}
.lp-page .lp-period-intro h2,.lp-page .lp-dated-intro h2{font-size:1.4rem}
.lp-page .lp-order-heading h2{font-size:1.3rem;line-height:1.35;margin:6px 0}
.lp-page .lp-order-heading>p:not(.eyebrow){font-size:.9rem;line-height:1.5}
@media(max-width:560px){
  .lp-page .lp-market-question h2{font-size:1.05rem}
  .lp-page .lp-price strong{font-size:1.35rem}
  .lp-page .lp-piggy-total>span{display:none}
  .lp-page .lp-market-question p:not(.eyebrow){font-size:.85rem}
  .lp-page .lp-period-bank .lp-scene-image{max-height:80px;object-fit:contain}
  .lp-page .lp-period-bank .lp-bank-copy{padding:6px 8px}
  .lp-page .lp-period-slots>li{padding:6px 8px;min-height:48px}
  .geo-page.content-page,.atlas-page.content-page{width:auto;margin-inline:12px;padding-inline:0}
  .geo-page .breadcrumb,.atlas-page .breadcrumb{margin-bottom:10px}
  .atlas-page .page-heading .page-mascot{display:none}
}

@media(max-width:560px){
  .lp-page .lp-money-help{padding:4px 8px;line-height:1.4;margin-bottom:8px}
  .lp-page .lp-cash-group h3{margin-bottom:4px}
  .lp-page .lp-market-question{gap:6px;margin-bottom:6px}
  .lp-page .lp-market-question p:not(.eyebrow){line-height:1.4}
  .lp-page .lp-cash-group+.lp-cash-group{margin-top:8px}
}

/* The text precedes the word bank on narrow screens; old mobile ordering is reset. */
@media(max-width:820px){
  .lp-page .ct-panel{display:flex;flex-direction:column}
  .lp-page .ct-panel>.lp-progress{order:0}
  .lp-page .ct-panel>.ct-story-heading{order:1}
  .lp-page .ct-panel>.ct-paper{order:2}
  .lp-page .ct-panel>.ct-wallet{order:3;position:static;padding:0;border:0}
  .lp-page .ct-panel>.ct-inline-help{order:4}
  .lp-page .ct-panel>.lp-feedback{order:5}
  .lp-page .ct-panel>.ct-explanations{order:6}
  .lp-page .ct-panel>.lp-actions{order:7}
  .lp-page .ct-panel>.ct-keyboard{order:8}
}
@media(max-width:560px){
  .lp-page .ct-story-heading .eyebrow{display:none}
  .lp-page .ct-story-heading h2{font-size:1.2rem}
  .lp-page .ct-story{font-size:.95rem!important;line-height:1.65!important}
  .lp-page .ct-bank-heading h3{display:none}
  .lp-page .ct-bank-heading{margin-bottom:6px}
  .lp-page .ct-bank-heading>span{font-size:.8rem}
  .lp-page .ct-wallet .ct-word{padding:8px 10px;min-height:44px;font-size:.95rem}
  .lp-page .ct-wallet .ct-placement-help{margin-top:6px;font-size:.8rem}
}

@media(max-width:350px){.lp-page .lp-word-game .lp-keyboard{grid-template-columns:repeat(5,minmax(0,1fr))}}
.lp-page .lp-actions,.quiz-main .quiz-actions,.geo-board .quiz-actions{bottom:var(--activity-keyboard-inset,0px)}
.lp-page .lm-check>.button{bottom:calc(8px + var(--activity-keyboard-inset,0px))}
