/* LanguageAdvice’s story adventure: original character, visible progress and small honest wins. */
:root { --paper:#f7f8f3; --peach:#ffe2d7; --lavender:#ebe1ff; --sky:#dceefb; }
.button { border-radius:15px; border-bottom:4px solid #0002; }
.button:active:not(:disabled) { transform:translateY(2px); }
.coach-portrait { display:inline-flex; flex:none; align-items:center; justify-content:center; }
.coach-portrait img { display:block; width:100%; height:100%; object-fit:contain; }
.coach-small { width:76px; height:76px; }
.coach-medium { width:140px; height:140px; }
.coach-large { width:190px; height:190px; }
.coach-hero { width:215px; height:215px; }
.coach-curious { transform:rotate(-5deg); }
.coach-celebrate { transform:rotate(5deg); }
.welcome h1 { font-size:clamp(64px,6vw,88px); letter-spacing:-5px; }
.welcome-copy { padding-top:48px; padding-bottom:30px; }
.welcome-description { font-size:21px; }
.welcome-coach { display:flex; gap:15px; align-items:center; margin:8px -10px 0; }
.welcome-coach img { object-fit:contain; flex:none; width:170px; height:170px; transform:rotate(-5deg); }
.welcome-coach p { color:#e9efdf; font-size:19px; line-height:1.5; font-weight:650; }
.welcome-coach p>span { display:block; font-size:14px; font-weight:400; color:#aab79e; margin-top:10px; }
.welcome-form-wrap { padding-top:45px; padding-bottom:45px; }
.sidebar-coach.coach-sidebar { margin:28px 8px; text-align:center; }
.coach-sidebar img { object-fit:contain; width:135px; height:135px; }
.coach-sidebar p { font-size:18px; line-height:1.3; margin:3px 0 9px; }
.coach-sidebar>span { font-size:14px; }
.sidebar-caption { margin-bottom:27px; }
.sidebar nav button { min-height:50px; }
.workspace-header { gap:24px; min-height:95px; }
.header-score { margin-left:auto; display:flex; gap:18px; align-items:center; }
.header-score>span { display:flex; align-items:center; gap:7px; white-space:nowrap; font-size:14px; }
.header-score b { font-weight:700; }
.score-streak>span { color:#a44f25; font-size:24px; }
.score-xp>span { color:#638928; font-size:24px; }
.profile-control>span:last-child { display:none; }
.view-heading h1 { font-size:clamp(32px,3.2vw,45px); letter-spacing:-1.7px; }
.daily-grid { display:grid; grid-template-columns:minmax(0,1fr) 265px; gap:22px; }
.daily-hero { display:flex; min-height:310px; align-items:center; gap:5px; background:var(--ink); color:var(--paper); border-radius:25px; padding:30px 20px 30px 32px; overflow:hidden; }
.daily-hero-copy { flex:1; position:relative; z-index:1; }
.quest-label { display:block; color:var(--lime); font-size:13px; letter-spacing:1.2px; text-transform:uppercase; font-weight:750; }
.daily-hero h2 { font-size:clamp(28px,2.7vw,37px); line-height:1.12; letter-spacing:-1.3px; margin:17px 0 14px; }
.daily-hero p { color:#c3ceba; line-height:1.65; font-size:16px; margin:0 0 22px; }
.daily-hero .button { min-width:170px; }
.reward-note { display:block; color:#adbea0; font-size:13px; line-height:1.6; margin-top:12px; }
.daily-coach { width:200px; flex:none; text-align:center; align-self:center; transform:rotate(-4deg); }
.coach-caption { color:#b2c2a4; display:block; font-size:13px; margin-top:-9px; }
.is-complete .quest-label { color:#dcf6b6; }
.rhythm-card { padding:25px; background:white; border:1px solid var(--line); border-bottom:4px solid var(--line); border-radius:25px; }
.rhythm-count { display:flex; align-items:baseline; gap:8px; margin:16px 0; }
.rhythm-count strong { font-size:48px; letter-spacing:-2px; }
.rhythm-count>span { font-size:17px; color:var(--muted); }
.rhythm-count .rhythm-symbol { color:#9b70d1; font-size:31px; margin-left:auto; }
.week-dots { display:flex; justify-content:space-between; gap:4px; }
.week-day { display:grid; gap:7px; text-align:center; font-size:12px; color:#7b8572; }
.week-day b { display:grid; place-items:center; width:24px; height:26px; border:1px solid #e2e7da; background:#f3f5ef; border-radius:9px; font-size:17px; }
.week-day.current b { border-color:#88a55c; }
.week-day.done b { color:#365a14; background:#dafaac; border-color:#bad98f; }
.rhythm-card p { font-size:14px; line-height:1.6; color:var(--muted); margin:18px 0; }
.rhythm-streak { border-top:1px solid var(--line); padding-top:16px; font-size:14px; line-height:1.5; font-weight:600; }
.rhythm-streak>span { color:#a65b2e; margin-right:5px; }
.continue-card { display:flex; align-items:center; gap:21px; padding:27px; background:white; border:1px solid var(--line); border-bottom:4px solid var(--line); border-radius:22px; margin-top:22px; }
.chapter-emblem { display:grid; place-items:center; width:70px; height:78px; border-radius:20px; font-size:35px; flex:none; border:2px solid #0000000b; }
.tone-lime { --tone:#e2f8c5; --tone-strong:#7b9b48; }
.tone-peach { --tone:var(--peach); --tone-strong:#bc7258; }
.tone-lavender { --tone:var(--lavender); --tone-strong:#9b78ce; }
.tone-sky { --tone:var(--sky); --tone-strong:#6b9ebe; }
.chapter-emblem { background:var(--tone); }
.continue-copy { flex:1; min-width:0; }
.continue-copy .small-label { font-size:12px; letter-spacing:1px; }
.continue-copy h2 { font-size:25px; margin:7px 0; }
.continue-copy p { color:var(--muted); font-size:15px; line-height:1.5; margin:0 0 12px; }
.lesson-dots { display:flex; gap:4px; max-width:330px; }
.lesson-dots span { flex:1; height:7px; background:#e9ede1; border-radius:3px; }
.lesson-dots .done { background:#8bb64a; }
.lesson-dots .next { background:#d0f49c; }
.continue-card>.button { flex:none; }
.chapter-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.chapter-mini { display:grid; grid-template-columns:41px minmax(0,1fr); column-gap:13px; background:white; color:var(--ink); border:1px solid var(--line); border-bottom:4px solid var(--line); border-radius:17px; padding:20px 16px; text-align:left; }
.chapter-mini>span { grid-row:span 2; background:var(--tone); border-radius:12px; width:41px; height:48px; display:grid; place-items:center; font-size:25px; }
.chapter-mini strong { font-size:16px; line-height:1.4; }
.chapter-mini small { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.chapter-mini.complete { border-color:#accc87; }
.learning-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:32px; align-items:start; }
.chapter-trail { display:grid; gap:25px; }
.path-chapter { border:1px solid var(--line); background:white; border-radius:23px; overflow:hidden; scroll-margin-top:20px; }
.path-chapter>header { background:var(--tone); padding:25px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #0000000b; }
.path-chapter h2 { font-size:28px; margin:9px 0 8px; }
.path-chapter header p { color:#4c5d43; font-size:15px; line-height:1.5; margin:0; }
.path-chapter header .small-label { color:#4f6542; font-size:12px; letter-spacing:1px; }
.chapter-badge { width:56px; height:62px; background:#ffffff9c; border:2px solid #ffffffc9; border-radius:18px; display:grid; place-items:center; font-size:29px; flex:none; }
.current-chapter { border-color:#90ad68; box-shadow:0 4px 0 #e1eccc; }
.lesson-trail { padding:26px 25px 30px; display:grid; gap:18px; position:relative; }
.lesson-trail:before { content:""; position:absolute; border-left:3px dashed #dfe5d6; left:57px; top:42px; bottom:50px; }
.trail-lesson { display:flex; align-items:center; gap:17px; background:none; border:0; color:var(--ink); text-align:left; padding:0; position:relative; min-height:72px; width:100%; }
.trail-lesson:nth-child(2) { padding-left:24px; }
.lesson-orb { flex:none; border-radius:24px; width:65px; height:65px; display:grid; place-items:center; border:2px solid #dbe1d3; border-bottom:7px solid #dbe1d3; background:#f2f5ec; font-size:28px; color:#9ba68e; }
.trail-lesson.next .lesson-orb { background:var(--lime); border-color:#9cc047; color:var(--ink); transform:rotate(-8deg); }
.trail-lesson.done .lesson-orb { background:#e1f1cb; border-color:#a7c67e; color:#416924; }
.trail-lesson strong { font-size:17px; line-height:1.4; display:block; }
.trail-lesson small { display:block; color:var(--muted); font-size:13px; margin-top:5px; line-height:1.4; }
.trail-lesson.locked strong { color:#68725e; }
.trail-lesson:hover .lesson-orb { transform:translateY(-2px) rotate(-5deg); }
.start-flag { position:absolute; left:30px; top:-12px; padding:4px 7px; background:var(--ink); color:var(--lime); border-radius:6px; font-size:10px; font-weight:750; letter-spacing:1px; }
.path-coach-card { text-align:center; position:sticky; top:25px; background:#eef1e5; border:1px solid var(--line); border-radius:23px; padding:15px 23px 25px; }
.path-coach-card .small-label { display:block; font-size:12px; letter-spacing:1px; }
.path-coach-card h2 { font-size:23px; line-height:1.2; margin-top:15px; }
.path-coach-card p { font-size:15px; line-height:1.6; color:var(--muted); }
.path-total { display:grid; gap:4px; padding-top:7px; }
.path-total strong { font-size:44px; letter-spacing:-2px; }
.path-total strong>span { font-size:23px; color:var(--muted); }
.path-total>span { color:var(--muted); font-size:14px; }
.lesson-layout { max-width:820px; margin:0 auto; }
.lesson-topline { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; margin:6px 0 24px; }
.lesson-topline .small-label { font-size:12px; letter-spacing:1px; }
.lesson-steps { display:flex; gap:10px; margin-bottom:22px; }
.lesson-steps>span { flex:1; display:flex; align-items:center; gap:8px; font-size:14px; color:#69755e; border-bottom:5px solid #e1e7d8; padding-bottom:13px; }
.lesson-steps b { width:26px; height:26px; display:grid; place-items:center; background:#e8eddf; border-radius:50%; font-size:13px; flex:none; }
.lesson-steps .active { color:var(--ink); border-color:#a9d267; font-weight:650; }
.lesson-steps .active b { background:#d6efa9; color:#3f5b20; }
.lesson-stage { background:white; border:1px solid var(--line); border-bottom:5px solid var(--line); border-radius:26px; padding:34px; }
.lesson-coach-line { display:flex; align-items:center; gap:13px; margin-bottom:22px; }
.lesson-coach-line h1 { font-size:clamp(30px,3.6vw,43px); letter-spacing:-1.7px; margin:8px 0 0; }
.lesson-coach-line .small-label { font-size:12px; letter-spacing:1px; }
.lesson-tip { font-size:21px; line-height:1.65; color:#3d4c34; margin:0 0 28px; }
.lesson-preview { background:var(--tone,#edf5e3); padding:22px; border-radius:17px; margin:0 0 25px; }
.lesson-preview p { font-size:16px; line-height:1.65; margin:9px 0 0; color:#43533a; }
.lesson-stage h2 { font-size:25px; line-height:1.3; margin-bottom:14px; }
.lesson-answer { padding:20px; border-radius:15px; background:#fff0de; margin:22px 0; font-size:16px; }
.lesson-answer.correct { background:#edf6df; }
.lesson-answer p { margin:9px 0 0; color:#4b5c3e; line-height:1.6; }
.lesson-stage .game-choice { font-size:17px; border-bottom-width:4px; }
.exercise-form { display:grid; gap:15px; }
.exercise-form textarea { width:100%; min-height:210px; font-size:17px; }
.exercise-form .counter { font-size:13px; color:var(--muted); }
.exercise-form .button { justify-self:start; }
.exercise-form .fine-print { margin-bottom:6px; }
.coach-quip { background:#e9f3dc; color:#405c29; padding:20px 23px; border-radius:17px; font-size:18px; line-height:1.5; font-weight:600; margin:0 0 25px; }
.coach-quip>span { font-weight:400; color:#687c55; white-space:nowrap; font-size:14px; }
.daily-stage .lesson-coach-line { gap:18px; }
.tomorrow-note { display:flex; gap:12px; margin-top:25px; border-top:1px solid var(--line); padding-top:20px; }
.tomorrow-note>span { color:#a281c2; font-size:25px; }
.tomorrow-note p { color:var(--muted); font-size:14px; line-height:1.6; margin:0; }
.celebration { text-align:center; }
.celebration .coach-portrait { margin:-9px auto -6px; }
.earned-xp { font-size:37px; color:#375824; letter-spacing:-1px; font-weight:800; }
.earned-xp>span { font-size:20px; font-weight:650; letter-spacing:-.5px; }
.celebration>p { color:var(--muted); font-size:17px; line-height:1.6; }
.celebration .fine-print { font-size:14px; }
.celebration-actions { display:grid; gap:12px; margin-top:26px; }
.celebration-actions .text-button { padding:12px 0; font-size:14px; }
.new-win .coach-portrait { animation:coach-hop .65s ease-out both; }
@keyframes coach-hop { 0%{transform:translateY(12px) rotate(-12deg)} 45%{transform:translateY(-17px) rotate(10deg)} 75%{transform:translateY(3px) rotate(-3deg)} 100%{transform:translateY(0) rotate(5deg)} }
.learning-progress { display:flex; gap:20px; align-items:center; background:#e7f2d9; border:1px solid #c5d8ae; border-radius:23px; padding:20px 25px; }
.learning-progress>div { flex:1; }
.learning-progress h2 { margin:10px 0; font-size:28px; }
.learning-progress p { color:var(--muted); font-size:15px; line-height:1.5; margin:0; }
.chapter-awards { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin:23px 0 30px; }
.chapter-award { display:grid; justify-items:center; gap:9px; text-align:center; border:1px solid var(--line); border-radius:16px; background:white; padding:19px 10px; color:#768168; }
.chapter-award>span { display:grid; place-items:center; width:42px; height:48px; background:#eef1e7; border-radius:14px; font-size:24px; }
.chapter-award strong { font-size:14px; line-height:1.4; }
.chapter-award small { font-size:12px; }
.chapter-award.earned { color:#43612c; border-color:#b5cf98; background:#f1f9e8; }
.chapter-award.earned>span { background:#d2eeaa; }
.coach-panel .coach-signature .coach-small { width:54px; height:54px; }
.coach-panel .coach-signature .coach-small img { width:100%; height:100%; }
.sidebar nav button { font-size:15px; }
@media(max-width:1250px) {
  .daily-grid { grid-template-columns:minmax(0,1fr) 235px; gap:17px; }
  .daily-coach { width:150px; }
  .daily-coach .coach-hero { width:165px; height:165px; }
  .daily-hero { padding:27px; }
  .rhythm-card { padding:22px 18px; }
  .learning-layout { grid-template-columns:minmax(0,1fr) 220px; gap:20px; }
  .chapter-awards { grid-template-columns:repeat(3,1fr); }
  .header-score { gap:12px; }
}
@media(max-width:1050px) {
  .daily-grid { grid-template-columns:minmax(0,1fr); }
  .daily-coach { width:190px; }
  .daily-coach .coach-hero { width:200px; height:200px; }
  .rhythm-card { display:grid; grid-template-columns:1fr 1fr; column-gap:25px; padding:22px 25px; }
  .rhythm-count { grid-column:1; margin:7px 0; }
  .rhythm-card .week-dots { grid-column:2; grid-row:1/span 2; align-self:center; }
  .rhythm-card>p { margin:5px 0; }
  .rhythm-streak { grid-column:2; align-self:end; margin-top:7px; padding-top:10px; }
  .continue-card { flex-wrap:wrap; }
  .continue-card>.button { margin-left:90px; }
  .chapter-overview { grid-template-columns:repeat(2,1fr); }
  .learning-layout { grid-template-columns:1fr; }
  .path-coach-card { position:static; display:none; }
  .header-score>span { font-size:13px; }
  .workspace-header { gap:15px; }
  .workspace-header>div:first-child .small-label { font-size:11px; letter-spacing:1px; }
  .score-streak { display:none!important; }
  .learning-progress { flex-wrap:wrap; }
}
@media(max-width:780px) {
  .welcome h1 { font-size:clamp(57px,11vw,78px); letter-spacing:-3.5px; }
  .welcome-copy { padding-top:46px; padding-bottom:15px; }
  .welcome-story { min-height:unset; }
  .welcome-coach { margin-top:0; }
  .welcome-coach img { width:140px; height:140px; }
  .welcome-coach p { font-size:17px; }
  .welcome-description { font-size:20px; }
  .sidebar { padding-bottom:20px; }
  .sidebar nav { position:fixed; bottom:0; left:0; width:100%; z-index:25; background:var(--ink); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; overflow:visible; margin:0; padding:9px 10px calc(9px + env(safe-area-inset-bottom)); border-top:1px solid #34412c; }
  .sidebar nav button { font-size:0; flex-direction:column; gap:6px; justify-content:center; padding:10px 3px; min-height:59px; min-width:0; border-radius:12px; }
  .sidebar nav button>span { font-size:22px; line-height:1; width:24px; height:22px; }
  .sidebar nav button:after { content:attr(data-mobile-label); font-size:14px; line-height:1.2; letter-spacing:-.4px; font-weight:650; }
  .workspace-body { padding-bottom:83px; }
  .workspace-header { min-height:83px; }
  .view-heading { margin-bottom:24px; }
  .view-heading h1 { font-size:35px; }
  .daily-hero { padding:27px; min-height:300px; }
  .daily-hero h2 { font-size:31px; }
  .daily-coach { width:165px; }
  .daily-coach .coach-hero { width:180px; height:180px; }
  .continue-card { gap:16px; padding:23px; }
  .continue-card>.button { margin-left:86px; }
  .continue-copy .small-label { font-size:11px; }
  .continue-copy h2 { font-size:24px; }
  .lesson-stage { padding:27px; }
  .lesson-tip { font-size:19px; }
  .lesson-coach-line h1 { font-size:34px; }
  .daily-stage .coach-medium { width:110px; height:110px; }
  .daily-stage .lesson-coach-line { gap:8px; }
  .path-chapter h2 { font-size:26px; }
  .learning-progress .coach-medium { width:105px; height:105px; }
  .learning-progress .button { margin-left:0; }
  .section-heading>p { font-size:14px; }
}
@media(max-width:500px) {
  .workspace-header>div:first-child { flex:1; }
  .workspace-header>div:first-child .small-label { font-size:10px; letter-spacing:.7px; }
  .header-score { margin-left:0; }
  .header-score>span { font-size:13px; gap:4px; }
  .score-xp>span { font-size:21px; }
  .daily-hero { padding:25px; display:block; position:relative; min-height:330px; min-width:0; }
  .daily-hero h2 { font-size:32px; padding-right:30px; margin-top:20px; }
  .daily-hero p { padding-right:0; font-size:16px; max-width:320px; }
  .daily-hero-copy { z-index:2; }
  .daily-hero .button { min-width:145px; margin-top:5px; }
  .daily-coach { position:static; width:100%; text-align:right; margin:0 0 -14px; }
  .daily-coach .coach-hero { width:100px; height:100px; }
  .coach-caption { display:none; }
  .daily-hero .reward-note { max-width:100%; font-size:13px; }
  .rhythm-card { display:block; padding:23px; min-width:0; }
  .rhythm-card .week-dots { max-width:320px; margin:16px 0; gap:3px; }
  .week-day b { width:clamp(22px,7vw,31px); height:32px; }
  .rhythm-card>p { margin:15px 0; }
  .rhythm-streak { padding-top:16px; }
  .continue-card { display:grid; grid-template-columns:55px minmax(0,1fr); padding:22px 18px; }
  .chapter-emblem { width:55px; height:62px; border-radius:16px; font-size:29px; }
  .continue-copy h2 { font-size:22px; }
  .continue-copy p { font-size:14px; }
  .continue-card>.button { grid-column:1/-1; margin:3px 0 0; width:100%; }
  .continue-copy .small-label { line-height:1.5; }
  .chapter-overview { gap:10px; }
  .chapter-mini { display:block; padding:18px 14px; }
  .chapter-mini>span { width:38px; height:42px; margin-bottom:12px; }
  .chapter-mini strong { font-size:15px; display:block; }
  .chapter-mini small { font-size:12px; }
  .section-heading { flex-wrap:wrap; gap:10px; }
  .path-chapter>header { padding:23px 20px; gap:13px; }
  .path-chapter h2 { font-size:25px; }
  .path-chapter header p { font-size:14px; }
  .chapter-badge { width:45px; height:51px; font-size:25px; border-radius:14px; }
  .lesson-trail { padding:27px 19px; gap:25px; }
  .lesson-trail:before { left:47px; }
  .lesson-orb { width:55px; height:57px; border-radius:19px; }
  .trail-lesson { gap:13px; }
  .trail-lesson:nth-child(2) { padding-left:17px; }
  .trail-lesson strong { font-size:16px; }
  .trail-lesson small { font-size:12px; }
  .start-flag { left:18px; top:-9px; }
  .lesson-stage { padding:23px 20px; border-radius:22px; }
  .lesson-coach-line .coach-small { width:65px; height:65px; }
  .lesson-coach-line h1 { font-size:29px; letter-spacing:-1px; }
  .lesson-coach-line .small-label { font-size:10px; letter-spacing:.8px; }
  .lesson-steps { gap:8px; }
  .lesson-steps>span { display:grid; gap:6px; font-size:13px; line-height:1.35; }
  .lesson-steps b { width:23px; height:23px; font-size:12px; }
  .lesson-tip { font-size:18px; }
  .lesson-stage h2 { font-size:23px; }
  .lesson-stage .game-choice { font-size:16px; padding:17px 14px; }
  .lesson-stage .button { width:100%; }
  .lesson-preview { padding:19px; }
  .daily-stage .lesson-coach-line { display:block; }
  .daily-stage .lesson-coach-line .coach-medium { float:right; width:90px; height:90px; margin:-12px -8px 0 0; }
  .daily-stage h1 { padding-top:7px; }
  .coach-quip { font-size:17px; padding:18px; margin-top:28px; clear:both; }
  .exercise-form textarea { font-size:16px; }
  .learning-progress { padding:20px; gap:12px; }
  .learning-progress .coach-medium { width:85px; height:85px; }
  .learning-progress>div { min-width:150px; }
  .learning-progress h2 { font-size:24px; }
  .learning-progress .button { width:100%; }
  .chapter-awards { grid-template-columns:repeat(2,1fr); gap:10px; }
  .welcome-coach img { width:125px; height:125px; }
  .welcome-coach { gap:6px; }
  .welcome-coach p { font-size:16px; }
}
@media(max-width:430px) { .welcome h1 { font-size:clamp(44px,14vw,60px); letter-spacing:-2.6px; } }
@media(prefers-reduced-motion:reduce) { .new-win .coach-portrait { animation:none; } }
