@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#182829;--yellow:#ffdc36;--paper:#f5f6f0;--green:#205846;--muted:#64716a;--line:#d8ded4}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.5}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #288ecc;outline-offset:4px}header{height:94px;max-width:1440px;margin:auto;padding:0 5%;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line)}.brand{font-family:'Space Grotesk',Arial,sans-serif;font-weight:700;font-size:34px;letter-spacing:-2px;color:var(--ink);text-decoration:none}.brand-dot{color:#be7013}.edition{font-size:12px;letter-spacing:2px;font-weight:700}.language{margin-left:auto;font-weight:700}.language span{margin-left:12px;font-weight:500;font-size:14px}main{max-width:1260px;margin:0 auto;padding:42px 34px 60px}h1,h2,h3{font-family:'Space Grotesk',Arial,sans-serif;line-height:1.12;letter-spacing:-1.1px}h1{font-size:clamp(32px,4.5vw,58px);margin:12px 0 20px;font-weight:600}h2{font-size:30px}h3{font-size:23px;margin:10px 0}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.tabbar{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:99px}.tabbar button{border-radius:99px;padding:9px 22px;background:transparent;font-size:14px}.tabbar button.active{background:var(--ink);color:white}.intro{max-width:570px;color:var(--muted);margin:0 0 28px;font-size:17px}.featured{display:grid;grid-template-columns:1.12fr 1fr;background:var(--yellow);border-radius:22px;overflow:hidden;border:1px solid var(--ink)}.feature-image{position:relative;min-height:340px;background:#d8c58c}.feature-image img{height:100%;width:100%;object-fit:cover;display:block}.image-label{position:absolute;bottom:18px;left:20px;background:var(--ink);color:white;border-radius:6px;padding:7px 11px;font-size:12px;letter-spacing:1px}.feature-copy{padding:36px 40px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.feature-copy h2{font-size:40px;margin:16px 0}.feature-copy p{max-width:400px;margin:0 0 24px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tag{border:1px solid #18282955;border-radius:99px;padding:4px 11px;font-size:12px;font-weight:600}.primary{background:var(--ink);color:white;padding:14px 25px;border-radius:9px;font-weight:700;min-height:50px}.primary:hover{background:#334a41}.secondary{background:white;border:1px solid var(--line);padding:12px 20px;border-radius:9px}.section-label{display:flex;justify-content:space-between;align-items:center;margin:36px 0 16px}.section-label h2{font-size:24px;margin:0}.section-label span{color:var(--muted);font-size:14px}.scene-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.scene-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-align:left;padding:0;transition:transform .2s}.scene-card:hover{transform:translateY(-4px)}.scene-card img{width:100%;height:155px;object-fit:cover;display:block;background:#dce8df}.card-copy{padding:18px}.card-copy p{color:var(--muted);font-size:14px;margin:9px 0}.card-meta{font-size:12px;display:flex;justify-content:space-between;font-weight:600;color:var(--green)}.lesson-top{display:flex;align-items:center;gap:22px;margin:0 0 26px}.back{background:transparent;text-decoration:underline;padding:8px 0;color:var(--muted);font-size:14px}.meter{height:7px;background:var(--line);flex:1;border-radius:9px;overflow:hidden}.meter div{background:var(--green);height:100%;transition:width .3s}.lesson-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:36px;align-items:start}.scene-context{border-radius:16px;overflow:hidden;background:var(--yellow)}.scene-context img{width:100%;display:block;aspect-ratio:4/3;object-fit:cover}.context-copy{padding:25px}.context-copy p{margin:12px 0 0}.exercise{background:white;border:1px solid var(--line);border-radius:16px;padding:30px}.exercise h2{font-size:28px;margin:16px 0 22px}.speech{background:#edf2ea;border-radius:12px;padding:22px;margin-bottom:25px}.phrase{font-size:25px;font-weight:600;line-height:1.4}.audio{margin-top:12px;background:white;border:1px solid var(--line);border-radius:7px;padding:8px 14px;font-size:14px}.choices{display:grid;gap:10px}.choice{background:white;border:1.5px solid var(--line);border-radius:10px;padding:16px;text-align:left;display:flex;align-items:center;gap:16px}.choice span{font-size:12px;background:var(--paper);width:26px;height:26px;display:grid;place-items:center;border-radius:5px}.choice.selected{border-color:var(--ink);background:#fffae0}.choice:disabled{cursor:default;color:var(--ink)}.feedback{padding:18px;border-radius:10px;background:#e3efdf;margin-top:20px}.feedback.wrong{background:#fff0dc}.feedback strong{display:block;margin-bottom:7px}.feedback p{margin:0}.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.primary:disabled{opacity:.35;cursor:default}.tokens,.answer-tray{display:flex;gap:9px;flex-wrap:wrap}.answer-tray{border-bottom:2px solid var(--line);min-height:70px;padding:10px 0;margin-bottom:20px}.token{padding:10px 16px;border:1px solid var(--line);background:#f4f6f1;border-radius:8px}.token.used{opacity:.3}.hint{color:var(--muted);font-size:14px}.word-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.word-card{padding:22px;background:white;border:1px solid var(--line);border-radius:13px}.word-card strong{font-size:22px;display:block}.word-card p{color:var(--muted);margin:5px 0 14px}.empty{padding:60px;background:white;border:1px solid var(--line);border-radius:15px;max-width:680px}.summary{text-align:center;max-width:700px;margin:30px auto;background:var(--yellow);border:1px solid var(--ink);border-radius:20px;padding:40px}.score{font-family:'Space Grotesk',Arial;font-size:64px;font-weight:700}.summary .actions{justify-content:center}footer{border-top:1px solid var(--line);padding:24px 5%;display:flex;gap:25px;align-items:center;font-size:12px;color:var(--muted);flex-wrap:wrap}footer button{background:transparent;text-decoration:underline;color:inherit;font-size:12px;margin-left:auto}dialog{max-width:530px;border:1px solid var(--ink);border-radius:16px;padding:30px;color:var(--ink)}dialog::backdrop{background:#18282988}.audio-status{font-size:13px;margin:6px 0;color:var(--muted)}@media(max-width:850px){.edition{display:none}.scene-grid{grid-template-columns:repeat(2,1fr)}.featured{grid-template-columns:1fr 1fr}.feature-copy{padding:25px}.feature-copy h2{font-size:32px}.lesson-layout{gap:20px}.exercise{padding:23px}.word-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){header{height:76px;padding:0 20px;gap:10px}.brand{font-size:30px}.language span{font-size:12px;margin-left:4px}main{padding:25px 20px 40px}.topline{align-items:flex-start;flex-direction:column;gap:15px}.featured,.lesson-layout{grid-template-columns:1fr}.feature-image{min-height:230px;max-height:260px}.feature-copy{padding:25px}.feature-copy h2{font-size:34px}.scene-grid{gap:12px}.scene-card img{height:125px}.card-copy{padding:13px}.card-copy h3{font-size:20px}.section-label span{max-width:125px;text-align:right}.scene-context img{max-height:240px}.context-copy{padding:20px}.exercise h2{font-size:25px}.word-list{grid-template-columns:1fr}.summary{padding:28px 20px}.summary .actions{flex-direction:column}footer{padding:24px 20px;gap:12px}footer button{margin-left:0}.phrase{font-size:23px}}
.scene-placeholder{background:#bfd9d0;min-height:155px;display:flex;flex-direction:column;justify-content:center;padding:20px;gap:12px}.scene-placeholder>span:nth-child(2){font-family:'Space Grotesk',Arial;font-weight:700;font-size:27px;line-height:1.05;letter-spacing:-1px}.scene-placeholder .eyebrow{font-size:10px;letter-spacing:1px}.scene-placeholder small{font-size:12px}.scene-context .scene-placeholder{min-height:260px;padding:30px}.scene-context .scene-placeholder>span:nth-child(2){font-size:48px}.scene-card:nth-child(4) .scene-placeholder{background:#edc4cf}@media(max-width:600px){.scene-card .scene-placeholder{height:125px;min-height:125px;padding:13px}.scene-card .scene-placeholder .eyebrow{display:none}.scene-card .scene-placeholder>span:nth-child(2){font-size:25px}}
/* Springfield sky, with quiet white learning surfaces. */
:root{--sky:#70c9ef;--muted:#294f60}
body{background:var(--sky)}
header,footer{border-color:#18282940}
.intro,.section-label>span,footer,.lesson-top>.hint,.topline>.hint{color:#294f60}
.tabbar{background:#ffffffb3;border-color:#18282940}
.lesson-top>.meter{background:#ffffff99}
.exercise,.word-card,.empty{--muted:#64716a}
.browse{scroll-margin-top:24px}.browse-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.topic-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.topic-chip{background:#ffffffb3;border:1px solid #18282955;border-radius:99px;padding:11px 16px;color:var(--ink);font-size:14px;font-weight:600}.topic-chip span{margin-left:10px;font-size:12px;opacity:.7}.topic-chip.active{background:var(--ink);color:white;border-color:var(--ink)}.episode-select{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:600}.episode-select select{font:inherit;color:var(--ink);background:white;border:1px solid #18282966;border-radius:9px;padding:12px;max-width:350px}.episode-select select:focus-visible{outline:3px solid #182829;outline-offset:3px}.episode-name{font-size:12px;color:#526257;display:block;margin-top:13px;line-height:1.4}.results-count{font-size:14px;color:#294f60;margin:0 0 18px}.episode-heading{background:#ffffffb3;border:1px solid #18282933;border-radius:13px;padding:22px;margin:0 0 20px}.episode-heading h3{margin:10px 0}.episode-heading p{margin:0;color:#294f60}.scene-card .scene-placeholder{height:155px;background:#bfd9d0}.scene-card .scene-placeholder>span:nth-child(2){font-size:25px}.scene-card:nth-child(3n) .scene-placeholder{background:#ffdc36}.scene-card:nth-child(4n) .scene-placeholder{background:#edc4cf}.scene-card .scene-placeholder .eyebrow{font-size:10px}.scene-grid{row-gap:24px}.scene-card{display:flex;flex-direction:column}.scene-card>div:first-child{width:100%}.card-copy{width:100%}.scene-context .eyebrow{letter-spacing:1px;line-height:1.6;display:block}.scene-card h3{letter-spacing:-.6px}.section-label h2{line-height:1.3}@media(max-width:600px){.browse-controls{align-items:stretch;flex-direction:column}.browse-controls .tabbar{align-self:flex-start}.episode-select{align-items:flex-start;flex-direction:column;gap:7px}.episode-select select{width:100%;max-width:100%}.topic-buttons{gap:8px}.topic-chip{padding:10px 12px}.scene-card .scene-placeholder{height:125px}.scene-card .scene-placeholder>span:nth-child(2){font-size:22px}.card-meta{font-size:10px;gap:6px}.episode-name{font-size:12px}.section-label{align-items:flex-start;gap:14px}.section-label h2{font-size:22px}.section-label span{min-width:95px}.scene-context .scene-placeholder>span:nth-child(2){font-size:40px}}
.character-intro{background:#ffffffb3;border:1px solid #18282933;border-radius:13px;padding:22px;max-width:850px}.character-intro p{margin:7px 0 0;color:#294f60}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.character-card{text-align:left;border:1px solid var(--line);background:white;border-radius:16px;padding:0;overflow:hidden;color:var(--ink);transition:transform .2s}.character-card:hover{transform:translateY(-4px)}.character-photo{position:relative;height:220px;background:var(--yellow);display:grid;place-items:center}.character-photo img{width:100%;height:100%;object-fit:cover}.character-kind{position:absolute;bottom:14px;left:14px;background:var(--ink);color:white;border-radius:6px;padding:6px 10px;font-size:12px}.character-letter{font-family:'Space Grotesk',Arial;font-size:48px;font-weight:700}.character-copy{padding:23px}.character-copy h2{font-size:27px;margin:12px 0}.character-quote{font-size:23px;line-height:1.35;font-family:'Space Grotesk',Arial;font-weight:600}.character-copy>p:last-child{font-size:14px;color:#64716a;margin-bottom:0}.character-english{color:#64716a;font-size:19px}.character-detail>h2{margin-bottom:12px}.character-detail>p{line-height:1.6}.usage-note{border-left:3px solid var(--green);padding:12px 18px;background:#edf2ea;margin:24px 0}.usage-note p{margin:6px 0 0}.character-detail h3{margin:24px 0 10px}.language-source{font-size:12px;color:#526257;display:inline-block;margin-top:20px}.saved-phrase{margin-top:22px}.saved-phrase p:last-of-type{margin-bottom:4px}@media(max-width:850px){.character-grid{grid-template-columns:repeat(2,1fr)}.topline>.tabbar{flex-wrap:wrap}.tabbar button{padding:9px 15px}}@media(max-width:600px){.character-grid{grid-template-columns:1fr}.character-photo{height:240px}.character-copy{padding:22px}.topline>.tabbar{gap:2px}.topline>.tabbar button{font-size:12px;padding:9px 12px}.character-context img{max-height:280px}.character-intro{padding:20px}}
#studio-footer{max-width:1260px;padding:0 34px;margin:0 auto}.studio-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-top:1px solid #18282940;font-size:14px;color:var(--ink)}.studio-cta p{margin:0 0 9px}.studio-link{font-weight:700;color:var(--ink);text-underline-offset:4px}.tip-cta{text-align:right}.tip-cta p{font-size:12px;margin:9px 0 0}.tip-link{display:inline-block;color:white;background:var(--ink);border-radius:9px;padding:12px 18px;font-weight:700;text-decoration:none}.tip-link:hover{background:#334a41}.summary .studio-cta{margin-top:30px;text-align:left}.summary .studio-cta p{font-size:14px}.summary .tip-cta p{font-size:12px}@media(max-width:600px){#studio-footer{padding:0 20px}.studio-cta{flex-direction:column;align-items:flex-start;gap:20px}.tip-cta{text-align:left}}
.build-mode{display:flex;gap:5px;margin:18px 0 12px}.build-mode button{padding:9px 13px;border:1px solid var(--line);background:white;border-radius:7px;font-size:14px}.build-mode button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.order-token{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;min-height:48px;display:flex;gap:7px;align-items:center}.order-token:active{cursor:grabbing}.grip{color:#64716a;font-size:19px}.drag-origin{opacity:.35}.drop-target{outline:3px solid var(--green);outline-offset:2px}.drag-ghost{position:fixed;z-index:9999;pointer-events:none;transform:translate(-50%,-50%);background:var(--yellow);box-shadow:0 8px 20px #18282944;opacity:.95}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tip-cta{background:#ffffff66;border:1px dashed #18282955;border-radius:12px;padding:16px 20px;text-align:left}.tip-link{background:transparent;color:var(--ink);padding:0;border-radius:0;text-decoration:underline;text-underline-offset:4px;font-weight:600}.tip-link:hover{background:transparent;color:#205846}.tip-cta p{color:#294f60}.footer-tip{color:inherit;text-underline-offset:3px;font-size:12px}.footer-tip:hover{color:var(--ink)}.summary .tip-cta{background:#ffffff55}
html.duolinguo-embedded{overflow:hidden}html.duolinguo-embedded body{min-height:0;overflow:hidden}
/* Keep character images inside their panel and give the text room. */
.character-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
.character-photo{flex:0 0 220px;width:100%;height:220px;min-height:0;overflow:hidden}
.character-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;object-fit:cover}
.character-copy{position:relative;background:white;flex:1;padding:28px;min-width:0}
.character-copy h2{margin:14px 0 18px;line-height:1.2}
.character-copy .character-quote{margin:0 0 22px;line-height:1.45;overflow-wrap:anywhere}
.character-copy>p:last-child{margin:0;line-height:1.6}
@media(max-width:600px){.character-photo{flex-basis:240px;height:240px}.character-copy{padding:24px}}
