.hero-top{display:flex;direction:ltr;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.hero-top .age{margin:0;text-align:left;font-size:14px;color:#ac8138;font-weight:600;letter-spacing:.03em}.hero-top .language-nav{margin:0;gap:0}.hero-top .language-nav label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.hero-top .language-nav select{background:rgba(255,255,255,.65);max-width:155px;min-height:36px;padding:7px 24px 7px 9px;font-size:13px}.learning{margin-top:26px}.learning-heading>h2{font-size:25px;line-height:1.2;margin:0 0 6px}.learning-intro{margin:0 0 18px;color:#62515a;font-size:15px;line-height:1.5}.topic-group{margin-top:16px}.topic-group h3{font-size:14px;font-weight:600;color:#79616a;margin:0 0 8px}.topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.topic-tile{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:57px;padding:14px 16px;border:1px solid transparent;border-radius:15px;font:600 16px/1.3 Arial,sans-serif;color:#701c32;text-align:start;cursor:pointer;transition:transform .15s,box-shadow .15s}.topic-tile>span:last-child{font-size:23px;font-weight:400;opacity:.6}.topic-tile:last-child:nth-child(odd){grid-column:1/-1}.tone-0{background:#f3e8ef;border-color:#e9dce4}.tone-1{background:#edf3e8;border-color:#e0e9d9}.tone-2{background:#e8f1f5;border-color:#dae7ed}.tone-3{background:#f7efe4;border-color:#eee2d2}.topic-tile:hover{transform:translateY(-2px);box-shadow:0 5px 14px #701c3210}.topic-tile:focus-visible,.lesson-dialog button:focus-visible{outline:3px solid #ac8138;outline-offset:3px}.lesson-dialog{border:1px solid #e8dce0;border-radius:25px;padding:28px;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;background:#fff;color:#701c32;box-shadow:0 22px 80px #35101b30;text-align:start}.lesson-dialog::backdrop{background:#2b152a66;backdrop-filter:blur(3px)}.lesson-open{overflow:hidden;position:fixed;top:var(--lesson-scroll-top,0);left:0;right:0;width:100%}.learning-heading>h2{scroll-margin-top:20px;outline:none}.lesson-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.lesson-eyebrow{font-size:13px;font-weight:600;color:#8e6d33}.lesson-close{border:0;border-radius:50%;background:#f6eff1;color:#701c32;width:38px;height:38px;flex:none;font-size:25px;cursor:pointer}.lesson-dialog h2{font-size:28px;margin:0 0 12px}.lesson-scenario{color:#57494f;font-size:17px;line-height:1.55;margin:0 0 20px}.lesson-question{font-size:15px;font-weight:700;margin:0 0 10px}.lesson-choices{display:grid;gap:9px}.lesson-choices button{font:400 16px/1.45 Arial,sans-serif;padding:14px 16px;text-align:start;border:1px solid #e4d7dc;border-radius:14px;background:#faf7f8;color:#542437;cursor:pointer}.lesson-choices button[aria-pressed=true]{border:2px solid #701c32;padding:13px 15px;background:#f2e7ec}.lesson-result{margin-top:20px;padding:19px;border-radius:16px;background:#edf3e8;line-height:1.5;outline:none}.lesson-result[hidden]{display:none}.lesson-result h3{font-size:16px;margin:14px 0 5px}.lesson-result p{font-size:15px;color:#4d5147;margin:0 0 10px}.lesson-result #lesson-selected{font-size:13px;color:#656657}.lesson-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}.lesson-actions button{padding:11px 15px;border:1px solid #701c32;border-radius:22px;background:#701c32;color:white;font:600 14px Arial,sans-serif;cursor:pointer}.lesson-actions #lesson-retry{background:transparent;color:#701c32}@media(max-width:500px){.hero-top{margin-bottom:6px}.hero-top .age{font-size:12px;letter-spacing:0}.hero-top .language-nav select{max-width:136px}.learning{margin-top:22px}.learning-heading>h2{font-size:22px}.topic-tile{font-size:15px;padding:13px 12px;min-height:54px}.lesson-dialog{padding:20px}.lesson-dialog h2{font-size:25px}}@media(prefers-reduced-motion:reduce){.topic-tile{transition:none}.topic-tile:hover{transform:none}}

.learning-heading{padding:20px 16px;background:#f5efe6;border:1px solid #eee4d7;border-radius:20px;text-align:center}.learning-heading .learning-intro{margin:0;color:#62515a}.learning-heading>h2{margin:0 0 7px}@media(max-width:500px){.learning-heading{padding:17px 12px;border-radius:18px}}

/* Larger exercise window and clearer prompts. */
.lesson-dialog{width:min(680px,calc(100% - 24px));max-width:none;padding:32px;max-height:calc(100dvh - 24px)}
.lesson-eyebrow{font-size:16px;line-height:1.35;font-weight:700}
.lesson-question{font-size:18px;line-height:1.35;margin:0 0 12px}
.lesson-choices button{font-size:17px;min-height:68px;padding:16px}
.lesson-choices button[aria-pressed=true]{padding:15px}
@media(max-width:500px){.lesson-dialog{width:calc(100% - 16px);padding:24px 20px;border-radius:22px}.lesson-toolbar{margin-bottom:18px}.lesson-dialog h2{font-size:27px}.lesson-scenario{font-size:18px;line-height:1.5}}

/* Center topic group headings across languages. */
.topic-group h3{text-align:center}

.choice-connector{display:block;text-align:center;font-size:14px;line-height:1.2;color:#62515a;margin:-3px 0;pointer-events:none}

/* Readable exercise text and generous touch targets in every theme. */
html body .lesson-dialog{width:min(720px,calc(100% - 16px))!important;max-width:calc(100% - 16px)!important;max-height:calc(100dvh - 32px)!important;position:fixed;top:16px!important;bottom:auto!important;margin:0 auto!important;padding:28px 24px 40px!important;scroll-padding-bottom:40px}
html body .lesson-dialog .lesson-eyebrow{font-size:20px!important;line-height:1.4!important;color:var(--theme-accent,#701c32)!important}
html body .lesson-dialog .lesson-question{font-size:clamp(24px,6vw,28px)!important;font-weight:700!important;line-height:1.3!important;color:var(--theme-accent,#701c32)!important;margin:18px 0 14px!important}
html body .lesson-dialog .lesson-scenario,html body .lesson-dialog .lesson-result p,html body .lesson-dialog #lesson-selected{font-size:19px!important;line-height:1.55!important}
html body .lesson-dialog .lesson-result h3,html body .lesson-dialog .selected-choice-heading{font-size:20px!important;line-height:1.4!important}
html body .lesson-dialog .lesson-choices button{font-size:19px!important;line-height:1.45!important;min-height:72px!important;padding:18px!important}
html body .lesson-dialog .lesson-close{min-width:48px!important;width:48px!important;min-height:48px!important;height:48px!important;font-size:30px!important}
html body .lesson-dialog .lesson-actions{margin-top:24px!important;padding-bottom:8px}
html body .lesson-dialog .lesson-actions button,html body .lesson-dialog .lesson-back{min-height:56px!important;font-size:18px!important;padding:14px 20px!important}
html body .lesson-dialog audio{height:64px!important;width:100%!important;margin:12px 0 16px!important}
html body .lesson-dialog #listen,html body .lesson-dialog .lesson-audio-toggle{min-height:60px!important;width:100%!important;font-size:19px!important;padding:16px 20px!important;border-radius:14px!important;border:1px solid var(--theme-action,#701c32)!important;background:var(--theme-action,#701c32)!important;color:#fff!important;cursor:pointer;font-family:inherit;font-weight:600}
html body .lesson-dialog .lesson-audio-toggle[hidden]{display:none!important}
html body .lesson-dialog :focus-visible{outline:3px solid var(--theme-accent,#701c32)!important;outline-offset:3px}
@media(max-width:500px){html body .lesson-dialog{padding:24px 20px 36px!important}}

html body .lesson-dialog #listen,html body .lesson-dialog .lesson-audio-toggle{width:auto!important;max-width:100%!important;min-height:48px!important;padding:11px 18px!important;font-size:17px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:13px!important}
html body .lesson-dialog .lesson-audio-toggle[hidden]{display:none!important}
html body .lesson-dialog .audio-control-icon{display:inline-block;width:20px;flex:none;text-align:center;font-size:20px;line-height:1}

/* Matching bottom actions keep playback beside the return to topics. */
html body .lesson-dialog .lesson-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
html body .lesson-dialog .lesson-actions button,html body .lesson-dialog .lesson-actions #listen,html body .lesson-dialog .lesson-actions .lesson-audio-toggle{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:56px!important;height:100%!important;font-size:17px!important;line-height:1.25!important;padding:12px!important;border-radius:14px!important;white-space:normal!important}

/* Secondary topic action remains distinct from playback in every theme. */
html body .lesson-dialog .lesson-actions #lesson-done,html body .lesson-dialog .lesson-actions #lesson-other-topic{background:var(--theme-card,#eef2f5)!important;color:var(--theme-accent,#701c32)!important;border:1px solid var(--theme-accent,#701c32)!important;font-weight:600!important}
html body .lesson-dialog .lesson-actions #lesson-done:hover,html body .lesson-dialog .lesson-actions #lesson-other-topic:hover{background:var(--theme-soft,#e6eade)!important}

/* Clear title/question hierarchy across locales and appearances. */
html body .lesson-dialog #lesson-title{font-size:clamp(28px,7vw,32px)!important;line-height:1.18!important;font-weight:700!important;color:var(--theme-accent,#701c32)!important}
html body .lesson-dialog p.lesson-question{font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(22px,5.5vw,25px)!important;line-height:1.3!important;font-weight:600!important;color:var(--theme-accent,#701c32)!important;margin:18px 0 14px!important}

/* An explicit return action at the bottom of every exercise. */
html body .lesson-dialog .lesson-back-footer{display:flex;justify-content:flex-start;direction:ltr;margin-top:18px}
html body .lesson-dialog .lesson-back-footer .lesson-back{display:inline-flex;align-items:center;gap:8px;direction:ltr;width:auto;min-height:48px;padding:12px 18px;border:1px solid var(--theme-border,#e4d7dc);border-radius:24px;background:var(--theme-card,#eef2f5);color:var(--theme-text,#352428);font:600 18px/1.25 Arial,sans-serif;cursor:pointer}
html body .lesson-dialog .lesson-back-footer .lesson-back-arrow{font-size:21px;line-height:1}
html body .lesson-dialog .lesson-back-footer .lesson-back:focus-visible{outline:3px solid var(--theme-accent,#701c32);outline-offset:3px}
