:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#302a40;background:#f7f6f2;font-synthesis:none;--purple:#7962ae;--muted:#79717f;--border:#e6e1eb;--green:#28664e}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #9a7bc8;outline-offset:5px}.page{width:min(100% - 64px,1000px);margin:auto}.header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:31px 0;border-bottom:1px solid #e7e3df}.brand{font-weight:760;font-size:22px;letter-spacing:-1px;text-decoration:none}.brand span{color:#9172ba}.back-link{text-decoration:none;font-size:12px;color:#71677c}.back-link:hover{text-decoration:underline}main{margin:55px auto 0;max-width:880px}.intro{text-align:center;margin-bottom:34px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--purple);line-height:1.6}.route-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8c77b6;margin-right:8px}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(33px,4.6vw,49px);letter-spacing:-1.8px;line-height:1.15;margin:16px 0 12px}h1 em{font-style:italic;color:var(--purple)}.intro>p{color:var(--muted);font-size:14px;margin:0}.card{background:#fff;border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:0 12px 36px #30204004}.welcome{display:grid;grid-template-columns:1fr 1.12fr}.station-art{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#f0edf6;padding:48px 27px 40px;gap:21px}.station-sign{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:300px;background:#faf9fc;border:1px solid #dfd7ea;border-top:4px solid #b49dcf;border-radius:6px;padding:14px 15px;color:#61526f;gap:14px}.station-sign>span:first-child{font-size:30px}.station-sign__icon{width:30px;height:38px;flex:none;opacity:.75}.station-sign>div{font-size:10px;letter-spacing:1.3px;font-weight:700}.station-sign small{font-weight:400;display:block;letter-spacing:.3px;font-size:9px;margin-top:7px}.station-art>svg{width:100%;margin:5px -10px 0}.art-caption{font:italic 13px Georgia,serif;color:#877597}.welcome-copy{padding:40px}.pills{display:flex;gap:8px;flex-wrap:wrap}.pills span{font-size:9px;font-weight:650;letter-spacing:1px;border:1px solid #e5dfed;border-radius:5px;padding:6px 8px;color:#81718c}.welcome h2{font:400 30px Georgia,serif;letter-spacing:-.7px;margin:21px 0 12px}.welcome-copy>p{font-size:14px;line-height:1.75;color:var(--muted);margin:0}.how-it-works{list-style:none;padding:0;margin:23px 0 28px;font-size:12px;display:grid;gap:13px}.how-it-works span{color:#9a85af;font-size:10px;margin-right:11px;font-variant-numeric:tabular-nums}.primary{display:inline-flex;justify-content:center;align-items:center;gap:27px;min-height:47px;border:0;border-radius:10px;background:#41334f;color:#fff;padding:14px 23px;font-size:13px;font-weight:550;transition:background .15s}.primary:hover{background:#624b78}.welcome .primary{width:100%}.primary>span{font-size:18px}.welcome-copy .mic-note{font-size:10px;line-height:1.5;text-align:center;margin-top:12px;color:#8a8290}.footnote{text-align:center;font-size:12px;color:#82788b;margin:22px 0 0;line-height:1.6}.privacy{text-align:center;max-width:540px;font-size:10px;line-height:1.7;color:#938a98;margin:9px auto 0}.lesson-top{display:flex;justify-content:space-between;align-items:center;padding:23px 28px 17px;font-size:11px;color:#8b7f95}.lesson-label{font-size:9px;font-weight:650;letter-spacing:1.6px}.stops{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;padding:0 28px;margin:0 0 23px;gap:8px}.stops li{font-size:10px;color:#938a9a;border-top:3px solid #eee9f2;padding-top:10px}.stops li.active{border-color:#a08ac5;color:#624d7b}.stops li.passed{border-color:#8ab99f}.stops li.skipped{border-color:#c8c0d0}.stops span{font-size:9px;margin-right:6px;opacity:.8}.lesson-body{display:grid;grid-template-columns:300px 1fr;min-height:365px}.tutor-stage{background:#f1edf8;display:flex;flex-direction:column;align-items:center;padding:25px 17px 22px}.tutor-name{font-size:8px;font-weight:600;letter-spacing:1.6px;color:#9683ac}.avatar{width:245px;max-width:100%;height:auto;margin:3px 0 0}#face{transform-origin:160px 160px}.tutor-status{display:flex;align-items:center;gap:7px;font-size:11px;color:#7c6a90}.status-dot{width:6px;height:6px;border-radius:50%;background:#a798bb}.lesson[data-state="tutor"] .status-dot{background:#8b70b8;box-shadow:0 0 0 4px #8b70b814}.lesson[data-state="listening"] .status-dot{background:#4b9675;box-shadow:0 0 0 4px #4b967514}.sound-bars{display:flex;gap:3px;align-items:center;height:19px;margin-top:12px}.sound-bars i{height:3px;width:3px;border-radius:5px;background:#b6a4cc;transition:height .12s}.lesson[data-state="listening"] .sound-bars i{background:#7caa95}.practice{padding:35px 33px 26px;display:flex;flex-direction:column;align-items:flex-start}.practice>.eyebrow{margin:0 0 10px}.practice h2{font-size:20px;font-weight:550;letter-spacing:-.5px;margin:0 0 25px;line-height:1.4}.phrase{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;font-size:26px;line-height:1.85;min-height:51px;letter-spacing:.5px}.word{border-radius:7px;padding:0 4px;border-bottom:2px solid transparent;transition:background .15s,color .15s}.word ruby{ruby-align:center}.word rt{font-size:9px;letter-spacing:.3px;color:#9886a4}.word[data-state="next"]{border-bottom-color:#b39760;background:#fbf5e9}.word[data-state="partial"]{border-bottom-color:#a8b8a8;background:#edf4ef}.word[data-state="spoken"]{background:#e4f1e9;color:#256345;border-bottom-color:#9bc9ae}.romaji{color:#92849f;font-size:12px;line-height:1.5;margin:10px 0 8px}.translation{font-size:14px;color:#706778;margin:0 0 18px}.turn-feedback{min-height:49px;width:100%;margin-top:auto;padding-top:13px}.turn-feedback>p:first-child{margin:0;font-size:12px;line-height:1.6;color:#8c7b99}.heard{margin:6px 0 0;font-size:11px;color:#7c9484;line-height:1.5;overflow-wrap:anywhere}.practice-actions{display:flex;gap:17px;align-items:center;flex-wrap:wrap;margin-top:16px}.text-button{border:0;background:transparent;padding:6px 0;color:#796789;font-size:11px}.text-button:hover{text-decoration:underline}.small{font-size:11px;min-height:36px;padding:10px 14px}.lesson-bottom{border-top:1px solid #eee9f2;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:18px 25px}.lesson-bottom details{flex:1;font-size:11px;color:#96879f;line-height:1.7;padding:5px 0}.lesson-bottom summary{cursor:pointer;max-width:max-content}.lesson-bottom details p{color:#82758d;max-width:620px;margin:12px 0 3px}.secondary{background:#fff;border:1px solid #e5dfeb;border-radius:8px;color:#6c5a7e;font-size:11px;padding:10px 14px;white-space:nowrap}.secondary:hover{background:#f7f4fa}.error{border:1px solid #ead6d6;background:#fff6f4;padding:14px 18px;border-radius:10px;font-size:12px;line-height:1.7;color:#964b51}.complete{padding:35px 50px;text-align:center}.completion-stamp{display:inline-grid;place-items:center;border-radius:50%;width:46px;height:46px;background:#e9f2e9;color:#5a8c68;font-size:23px;margin-bottom:9px}.complete h2{font:400 29px/1.25 Georgia,serif;letter-spacing:-.6px;margin:12px auto;max-width:430px}.complete>p:not(.eyebrow){font-size:13px;line-height:1.7;color:var(--muted)}.recap{margin:25px auto;text-align:left;max-width:470px}.recap-item{padding:13px 0;border-bottom:1px solid #eee9f2;display:flex;gap:18px;align-items:center;justify-content:space-between}.recap-item p{font-size:17px;margin:0 0 4px}.recap-item small{color:#8a7b96;font-size:11px}.recap-item>span{font-size:9px;color:#54866a;white-space:nowrap}.complete>.back-link{display:block;margin-top:20px}.lesson[data-state="success"] #feedback{color:#28664e}.lesson[data-state="paused"] .avatar{opacity:.7}
/* Keep the original logo geometry in the speaking page's own palette. */
.page .site-masthead{
  --masthead-ink:#211d27;
  --masthead-muted:var(--muted);
  --vermilion:var(--purple);
  --lesson-logo-bubble:#7962ae;
  --lesson-logo-opening:#f7f6f2;
  --lesson-logo-door:#211d27;
}
.lesson-brand-mark{display:block;width:3.5rem;height:3.5rem;flex:0 0 3.5rem}
:root .page .site-masthead .site-masthead__back:hover{background:var(--theme-hover)}
@media(max-width:48rem){.lesson-brand-mark{width:3rem;height:3rem;flex-basis:3rem}}
:root[data-theme="dark"] .page .site-masthead{
  --masthead-ink:#e2dde9;
  --lesson-logo-bubble:#c8b8ee;
  --lesson-logo-opening:#19161f;
  --lesson-logo-door:#8f78b3;
}
@media(prefers-color-scheme:dark){
  :root:not([data-theme]) .page .site-masthead{
    --masthead-ink:#e2dde9;
    --masthead-muted:#aaa2b3;
    --vermilion:#bba7e8;
    --lesson-logo-bubble:#c8b8ee;
    --lesson-logo-opening:#19161f;
    --lesson-logo-door:#8f78b3;
  }
}
/* Reserve the welcome layout before content arrives; never show substitute copy. */
.intro,.welcome-copy{position:relative}
#lesson-heading{min-block-size:1.15em}
#lesson-subtitle{min-block-size:1.6em;line-height:1.6}
#welcome-title{min-block-size:1.2em;line-height:1.2}
#welcome-description{min-block-size:5.25em}
.art-caption{min-block-size:1.15em}
.loading-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lesson-placeholder{display:none;position:absolute;pointer-events:none}
.lesson-placeholder span{display:block;height:12px;border-radius:6px;background:var(--border);opacity:.65}
.intro-placeholder{inset:0;align-items:center;flex-direction:column;gap:17px;padding-top:4px}
.intro-placeholder span:nth-child(1){width:210px;height:9px}
.intro-placeholder span:nth-child(2){width:min(80%,420px);height:42px}
.intro-placeholder span:nth-child(3){width:min(85%,320px)}
.welcome-placeholder{inset:40px;flex-direction:column;gap:12px}
.welcome-placeholder span:nth-child(1){width:60%;height:25px;margin-bottom:9px}
.welcome-placeholder span:nth-child(2){width:83%;height:36px;margin-bottom:5px}
.welcome-placeholder span:nth-child(4){width:78%}
.welcome-placeholder span:nth-child(5){width:65%;margin-top:22px}
.welcome-placeholder span:nth-child(6){width:70%}
.welcome-placeholder span:nth-child(7){width:80%}
.welcome-placeholder span:nth-child(8){height:47px;margin-top:auto;border-radius:10px}
main[data-load-state="loading"] :is(.intro,.welcome-copy)>:not(.lesson-placeholder),
main[data-load-state="loading"] .art-caption{visibility:hidden}
main[data-load-state="loading"] .lesson-placeholder{display:flex}
@media(max-width:740px){.welcome-placeholder{inset:29px}}
@media(max-width:560px){
  #lesson-heading{min-block-size:2.26em}
  #lesson-subtitle{min-block-size:3.2em}
  .intro-placeholder span:nth-child(2){max-width:280px;height:74px}
  .welcome-placeholder{inset:26px 28px}
}
@media(prefers-reduced-motion:no-preference){
  main[data-load-state="ready"] :is(.intro,.welcome-copy,.art-caption){animation:lesson-arrive .2s ease-out both}
  @keyframes lesson-arrive{from{opacity:0}to{opacity:1}}
}
.tutor-request{margin:0 0 20px;padding:18px 20px;border:1px solid var(--border);border-radius:16px;font-size:15px;line-height:1.7;color:var(--theme-text);background:var(--theme-raised)}
@media(max-width:740px){.page{width:calc(100% - 36px)}.header{padding:24px 0}main{margin-top:35px}.welcome-copy{padding:29px}.station-art{padding:30px 18px}.station-sign{gap:10px;padding:12px 10px}.station-sign>div{font-size:8px}.station-sign small{font-size:8px}.lesson-body{grid-template-columns:230px 1fr}.tutor-stage{justify-content:center;padding:24px 10px}.practice{padding:28px 24px}.practice h2{font-size:18px}.phrase{font-size:23px}.practice-actions{gap:13px}.lesson-top{padding:20px 22px 17px}.stops{padding:0 22px}}
@media(max-width:560px){h1{font-size:37px;max-width:330px;margin:14px auto;line-height:1.13}.intro{margin-bottom:25px}.intro>p{font-size:12px}.welcome{grid-template-columns:1fr}.station-art{padding:23px 30px 16px;gap:3px}.station-art>svg{width:210px;height:82px}.station-sign{max-width:245px;padding:10px 13px}.station-sign>span:first-child{font-size:23px}.station-sign small,.art-caption{display:none}.station-sign>div{font-size:9px}.welcome-copy{padding:26px 28px}.welcome h2{font-size:28px;margin:18px 0 10px}.welcome-copy>p{font-size:13px}.how-it-works{margin:19px 0 22px;gap:10px}.lesson-body{grid-template-columns:1fr}.tutor-stage{position:relative;padding:13px 18px 16px}.tutor-name{position:absolute;top:18px;left:18px;font-size:7px}.avatar{width:145px;margin:-6px 0 -4px}.sound-bars{position:absolute;bottom:20px;right:25px;margin:0}.tutor-status{font-size:10px}.practice{padding:23px 25px 24px;min-height:290px}.practice h2{margin-bottom:22px}.phrase{font-size:25px}.translation{font-size:13px;margin-bottom:12px}.turn-feedback{padding-top:9px;min-height:43px}.lesson-top{padding:18px 20px 14px}.stops{padding:0 20px;margin-bottom:18px;gap:6px}.stops li{font-size:9px;padding-top:8px}.stops span{display:none}.lesson-bottom{padding:13px 19px;gap:13px}.lesson-bottom details,.secondary{font-size:10px}.complete{padding:28px 23px}.complete h2{font-size:27px}.recap-item p{font-size:15px}.back-link{font-size:10px}.footnote{font-size:11px}.privacy{font-size:9px}.brand{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Theme toggle (shared theme.js/theme.css) in this page's lavender palette. */
:root{--theme-raised:#fff;--theme-text:#41334f;--theme-control-border:#cfc5dc;--theme-hover:#f3eff8;--theme-selected:#e9e2f3;--theme-focus:#9a7bc8}
@media screen{
:root[data-theme="dark"]{color-scheme:dark;color:#e2dde9;background:#19161f;--purple:#bba7e8;--muted:#aaa2b3;--border:#332d3d;--green:#8fd0b0;--theme-bg:#19161f;--theme-surface:#211d29;--theme-raised:#28232f;--theme-text:#e2dde9;--theme-control-border:#5a5068;--theme-hover:#322b3e;--theme-selected:#3b3349;--theme-focus:#bba7e8;--theme-shadow:0 14px 40px rgba(0,0,0,.45)}
:root[data-theme="dark"] body{color:#e2dde9;background:#19161f}
:root[data-theme="dark"] ::selection{color:#e2dde9;background:#51436b}
:root[data-theme="dark"] :is(button,a,summary):focus-visible{outline-color:#bba7e8}
:root[data-theme="dark"] .card{background:#211d29;box-shadow:0 12px 36px rgba(0,0,0,.3)}
:root[data-theme="dark"] :is(.station-art,.tutor-stage){background:#28232f}
:root[data-theme="dark"] .station-sign{background:#2a2534;border-color:#443b52;border-top-color:#8f78b3;color:#d6cce3}
:root[data-theme="dark"] .station-art [stroke="#d5cce8"]{stroke:#4a4159}
:root[data-theme="dark"] .station-art [fill="#b6a5df"]{fill:#8f7cc0}
:root[data-theme="dark"] .station-art [fill="#dcd3ee"]{fill:#ab9bd6}
:root[data-theme="dark"] .station-art [fill="#f8f6fc"]{fill:#2a2436}
:root[data-theme="dark"] .station-art [stroke="#dbd3e9"]{stroke:#3f3750}
:root[data-theme="dark"] .station-art [fill="#514460"]{fill:#6a5a80}
:root[data-theme="dark"] .avatar [fill="#dfd8ed"]{fill:#322b3e}
:root[data-theme="dark"] .art-caption{color:#a898b8}
:root[data-theme="dark"] .pills span{border-color:#3d3549;color:#b0a3bd}
:root[data-theme="dark"] .primary{background:#c8b8ee;color:#1b1624}
:root[data-theme="dark"] .primary:hover{background:#dcd0f7}
:root[data-theme="dark"] .welcome-copy .mic-note{color:#9d95a6}
:root[data-theme="dark"] .footnote{color:#a097aa}
:root[data-theme="dark"] .privacy{color:#948b9c}
:root[data-theme="dark"] .back-link{color:#b5aac0}
:root[data-theme="dark"] .lesson-top{color:#aa9fb5}
:root[data-theme="dark"] .stops li{color:#9a90a5;border-top-color:#2f2939}
:root[data-theme="dark"] .stops li.active{border-color:#a08ac5;color:#cdbdea}
:root[data-theme="dark"] .stops li.passed{border-color:#6fa888}
:root[data-theme="dark"] .stops li.skipped{border-color:#5b5366}
:root[data-theme="dark"] .tutor-status{color:#b8a8cb}
:root[data-theme="dark"] .lesson .phrase{background:transparent}
:root[data-theme="dark"] .word rt{color:#a795b4}
:root[data-theme="dark"] .word[data-state="next"]{background:#3a3121;border-bottom-color:#c9a868}
:root[data-theme="dark"] .word[data-state="partial"]{background:#1f2c24;border-bottom-color:#6f8a74}
:root[data-theme="dark"] .word[data-state="spoken"]{background:#1d3a2b;color:#a6e0c0;border-bottom-color:#4f8a68}
:root[data-theme="dark"] .romaji{color:#a797b5}
:root[data-theme="dark"] .translation{color:#bdb4c6}
:root[data-theme="dark"] .turn-feedback>p:first-child{color:#b3a4c0}
:root[data-theme="dark"] .heard{color:#93b39e}
:root[data-theme="dark"] .text-button{color:#c0b0d3}
:root[data-theme="dark"] .lesson-bottom{border-top-color:#2f2939}
:root[data-theme="dark"] .lesson-bottom details{color:#a898b5}
:root[data-theme="dark"] .lesson-bottom details p{color:#b4a8bf}
:root[data-theme="dark"] .secondary{background:#28232f;border-color:#3d3549;color:#d0c3e2}
:root[data-theme="dark"] .secondary:hover{background:#322b3e}
:root[data-theme="dark"] .error{background:#2a1a1c;border-color:#5a3136;color:#f0a9ae}
:root[data-theme="dark"] .completion-stamp{background:#1d3326;color:#9fd4b0}
:root[data-theme="dark"] .recap-item{border-bottom-color:#2f2939}
:root[data-theme="dark"] .recap-item small{color:#a898b5}
:root[data-theme="dark"] .recap-item>span{color:#8fcaa6}
:root[data-theme="dark"] .lesson[data-state="success"] #feedback{color:#8fd0b0}
}

/* Shared lesson navigation wraps without crowding the speaking controls. */
.completion-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-top:24px}
.completion-actions .primary{text-decoration:none;gap:12px;max-width:100%;line-height:1.5}
.complete .collection-link{display:block;margin:20px auto 0;font-size:13px}
.recovery-link{text-align:center;font-size:14px;line-height:1.6}
.lesson-top{gap:16px;align-items:baseline}.lesson-label{line-height:1.5}.lesson-top #step-count{flex-shrink:0}
.stops li{overflow-wrap:anywhere}.intro .eyebrow{text-transform:uppercase}
@media(max-width:600px){.lesson-top{flex-wrap:wrap;gap:8px}.completion-actions{flex-direction:column}.completion-actions .primary{width:100%}}

/* Speaking exercises do not need the shared theme dock's footer spacer. */
body:has(.theme-dock) main{padding-bottom:0}

/* Keep the welcome screen within a laptop viewport, including its footer. */
@media(min-width:1000px) and (max-height:900px){
  .page .site-masthead__inner{min-height:72px;padding-block:8px}
  main{margin-top:12px}
  .intro{margin-bottom:18px}
  h1{margin:10px 0 8px}
  .station-art{padding:24px 27px;gap:16px}
  .welcome-copy{padding:20px 32px}
  .welcome h2{margin:15px 0 10px}
  .how-it-works{margin:16px 0 20px;gap:9px}
  .welcome-copy .mic-note{margin-top:8px}
  .welcome-placeholder{inset:20px 32px;gap:9px}
  .welcome-placeholder span:nth-child(5){margin-top:14px}
  .footnote{margin-top:14px}
  .privacy{margin-top:6px}
}

/* Partial passes are credited separately in progress and the recap. */
.stops li.mostly-correct,:root[data-theme="dark"] .stops li.mostly-correct{border-color:var(--purple);border-top-style:dashed}
.recap-item[data-result="mostly-correct"]>span,:root[data-theme="dark"] .recap-item[data-result="mostly-correct"]>span{color:var(--purple)}
.recap-item[data-result="skipped"]>span,:root[data-theme="dark"] .recap-item[data-result="skipped"]>span{color:var(--muted)}

/* Phones: the lesson cards run edge to edge, past the page's 18px gutter. */
@media(max-width:40rem){main>.card{margin-inline:-18px;border-inline:0;border-radius:0}}
