:root{
  --s3-ink:#172033;
  --s3-muted:#64748b;
  --s3-line:#dce4e8;
  --s3-green:#176b5b;
  --s3-green-dark:#0e4e43;
  --s3-green-soft:#e8f5f1;
  --s3-amber:#e6a83d;
  --s3-amber-soft:#fff6df;
  --s3-paper:#fffef9;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;color:var(--s3-ink)}
button,select{font:inherit}
.stage3Body{
  min-height:100vh;
  padding:0;
  line-height:1.5;
  background:
    radial-gradient(circle at 10% 0,rgba(230,168,61,.13),transparent 28rem),
    linear-gradient(180deg,#eef7f4 0,#f7f8f5 300px,#f2f4f3 100%);
}
.stage3Header{
  position:sticky;
  top:0;
  z-index:30;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  width:min(1120px,100%);
  min-height:70px;
  margin:0 auto;
  padding:10px 20px;
  background:rgba(14,78,67,.97);
  color:#fff;
  box-shadow:0 12px 32px rgba(14,78,67,.2);
  backdrop-filter:blur(12px);
}
.stage3Back{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:25px;
  text-decoration:none;
}
.stage3Header>div{display:flex;min-width:0;flex-direction:column;gap:2px}
.stage3Header small{color:#bee0d7;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.stage3Header strong{overflow:hidden;font-size:22px;text-overflow:ellipsis;white-space:nowrap}
.stage3HeaderProgress,.lessonHeaderState{
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.1);
  color:#e9fffa;
  font-size:13px;
}
.stage3Shell,.lessonShell{width:min(1120px,100%);margin:0 auto;padding:26px 20px 76px}
.stage3Hero{
  position:relative;
  overflow:hidden;
  padding:38px;
  border:1px solid rgba(23,107,91,.13);
  border-radius:24px;
  background:rgba(255,255,255,.84);
  box-shadow:0 20px 54px rgba(23,32,51,.08);
}
.stage3Hero::after{
  content:"ABC";
  position:absolute;
  right:30px;
  bottom:-24px;
  color:rgba(23,107,91,.06);
  font-size:130px;
  font-weight:900;
  letter-spacing:-.08em;
}
.stage3Kicker{
  display:inline-flex;
  margin-bottom:10px;
  color:var(--s3-green);
  font-size:13px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.stage3Hero h1,.lessonHero h1{margin:0;color:var(--s3-ink);font-size:clamp(32px,5vw,48px);line-height:1.06;letter-spacing:-.03em}
.stage3Hero>p{max-width:730px;margin:14px 0 0;color:#4b5f5b;font-size:18px;line-height:1.6}
.stage3Flow{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:26px}
.stage3Flow span{padding:9px 11px;border:1px solid #cfe3dd;border-radius:999px;background:#f4fbf8;color:var(--s3-green-dark);font-size:13px;font-weight:700}
.stage3Flow i{color:#98afa9;font-style:normal}
.stage3UnlockGuide{
  display:grid;grid-template-columns:minmax(210px,.8fr) minmax(420px,1.7fr);gap:16px 24px;
  align-items:center;margin-top:18px;padding:18px 21px;border:1px solid #ead7a7;
  border-radius:18px;background:#fffaf0;box-shadow:0 8px 22px rgba(88,66,20,.06)
}
.stage3UnlockIntro span{display:block;color:#9a690e;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.stage3UnlockIntro h2{margin:3px 0 0;color:#483815;font-size:18px;line-height:1.35}
.stage3UnlockGuide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none}
.stage3UnlockGuide li{display:flex;align-items:center;gap:8px;color:#554c37;font-size:12px;line-height:1.35}
.stage3UnlockGuide li b{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:9px;background:#f1c86f;color:#49340b;font-size:11px}
.stage3UnlockGuide>small{grid-column:1/-1;color:#857a63;font-size:11px}
.stage3CardsSection{margin-top:28px}
.stage3SectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 2px 13px}
.stage3SectionHead span{display:block;margin-bottom:5px;color:var(--s3-green);font-size:12px;font-weight:800;text-transform:uppercase}
.stage3SectionHead h2{margin:0;font-size:24px}
.stage3SectionHead>p{margin:0;color:var(--s3-muted);font-size:14px}
.stage3CardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.stage3Card{
  position:relative;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:15px;
  min-height:174px;
  padding:18px;
  border:1px solid var(--s3-line);
  border-radius:18px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(23,32,51,.05);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.stage3Card.is-unlocked:hover,.stage3Card.is-unlocked:focus{
  transform:translateY(-3px);
  border-color:#75ad9f;
  box-shadow:0 17px 34px rgba(23,107,91,.12);
  outline:0;
}
.stage3CardNo{
  display:grid;
  place-items:center;
  align-self:start;
  width:58px;
  height:58px;
  border-radius:16px;
  background:var(--s3-green-soft);
  color:var(--s3-green);
  font-size:20px;
  font-weight:900;
}
.stage3CardContent{display:block;min-width:0}
.stage3CardTop{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.stage3CardTop strong{font-size:20px;line-height:1.25}
.stage3CardStatus{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:var(--s3-green-soft);color:var(--s3-green);font-size:11px;font-weight:800;text-transform:uppercase}
.stage3CardContent>small{display:block;margin-top:3px;color:#7b8885;font-size:13px}
.stage3CardContent>p{margin:12px 0 15px;color:#455651;font-size:14px;line-height:1.45}
.stage3CardMeta{display:block;padding-top:11px;border-top:1px solid #edf1ef;color:#72807c;font-size:12px}
.stage3CardLockHint{display:none;margin-top:9px;color:#80641f;font-size:11px;font-weight:750;line-height:1.4}
.stage3Card.is-locked .stage3CardLockHint{display:block}
.stage3Card.is-locked{cursor:not-allowed;background:rgba(250,251,250,.78);box-shadow:none}
.stage3Card.is-locked .stage3CardNo{position:relative;background:#edf0ef;color:#9aa4a1;font-size:0}
.stage3Card.is-locked .stage3CardNo::before{content:"";width:18px;height:15px;border-radius:4px;background:#8f9a97}
.stage3Card.is-locked .stage3CardNo::after{content:"";position:absolute;top:16px;width:13px;height:12px;border:3px solid #8f9a97;border-bottom:0;border-radius:9px 9px 0 0}
.stage3Card.is-locked .stage3CardStatus{background:#edf0ef;color:#727e7a}
.stage3Card.is-complete{border-color:#91c6b9;background:#fbfffd}
.stage3Card.is-complete .stage3CardNo{background:var(--s3-green);color:#fff}

/* Lesson */
.lessonBody{background:linear-gradient(180deg,#edf7f3 0,#f6f7f5 330px,#f2f4f3 100%)}
.lessonShell{padding-top:22px}
.lessonHero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  padding:26px 28px;
  border:1px solid rgba(23,107,91,.14);
  border-radius:20px;
  background:rgba(255,255,255,.84);
  box-shadow:0 14px 38px rgba(23,32,51,.06);
}
.lessonHero h1{font-size:38px}
.lessonHero p{margin:8px 0 0;color:#53635f;line-height:1.5}
.lessonProgress{flex:0 0 230px}
.lessonProgress>span{display:block;margin-bottom:8px;color:var(--s3-green-dark);font-size:13px;font-weight:800;text-align:right}
.lessonProgress>div{height:9px;overflow:hidden;border-radius:99px;background:#dbe8e4}
.lessonProgress i{display:block;width:20%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--s3-green),#36a58e);transition:width .25s ease}
.lessonSteps{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin:16px 0;
}
.lessonStep{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:58px;
  padding:9px;
  border:1px solid var(--s3-line);
  border-radius:14px;
  background:#fff;
  color:#51605d;
  cursor:pointer;
  text-align:left;
}
.lessonStep b{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#edf3f1;color:#61716d;font-size:13px}
.lessonStep span{font-size:13px;font-weight:800;line-height:1.2}
.lessonUnlockNote{
  margin:-3px 0 15px;padding:9px 13px;border:1px solid #ead7a7;border-radius:11px;
  background:#fffaf0;color:#65532d;font-size:12px;line-height:1.45
}
.lessonUnlockNote b{color:#8a5e0b}
.lessonStep.is-active{border-color:var(--s3-green);background:var(--s3-green-soft);color:var(--s3-green-dark)}
.lessonStep.is-active b,.lessonStep.is-complete b{background:var(--s3-green);color:#fff}
.lessonStep.is-complete b{font-size:0}
.lessonStep.is-complete b::after{content:"✓";font-size:15px}
.lessonStep.is-locked{opacity:.56;cursor:not-allowed}
.lessonPanel{
  padding:28px;
  border:1px solid var(--s3-line);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 34px rgba(23,32,51,.06);
}
.lessonPanel[hidden]{display:none}
.panelHeading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}
.panelHeading span{display:block;margin-bottom:4px;color:var(--s3-green);font-size:12px;font-weight:800;text-transform:uppercase}
.panelHeading h2{margin:0;font-size:28px}
.panelHeading>p{max-width:380px;margin:0;color:var(--s3-muted);font-size:14px;text-align:right}
.wordGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.wordCard{
  display:grid;
  grid-template-columns:25px 64px minmax(0,1fr) 38px;
  gap:9px;
  align-items:center;
  min-height:102px;
  padding:14px;
  border:1px solid #e1e8e5;
  border-radius:15px;
  background:#fbfdfc;
}
.wordIndex{align-self:start;color:#9aa7a3;font-size:11px;font-weight:800}
.wordVisual{
  overflow:hidden;width:64px;height:64px;padding:0;border:2px solid #fff;border-radius:12px;
  background:#edf3f0;box-shadow:0 3px 9px rgba(30,65,51,.14);cursor:zoom-in;
  transition:transform .16s ease,box-shadow .16s ease
}
.wordVisual:hover{transform:scale(1.04);box-shadow:0 6px 14px rgba(30,65,51,.21)}
.wordVisual:focus-visible{outline:3px solid #2d8262;outline-offset:2px}
.wordVisual img{display:block;width:100%;height:100%;object-fit:cover}
.wordCard h3{margin:0 0 3px;color:var(--s3-green-dark);font-size:21px}
.wordCard strong{display:block;color:#374741;font-size:14px}
.wordCard small{display:block;margin-top:5px;color:#80908b;font-size:12px}
.wordCard .wordPronunciation{
  color:#536d64;
  font-size:13px;
  letter-spacing:.01em;
}
.speakButton,.miniSpeak{
  display:grid;
  place-items:center;
  border:1px solid #b9d6cf;
  border-radius:50%;
  background:var(--s3-green-soft);
  color:var(--s3-green);
  cursor:pointer;
}
.speakButton{width:38px;height:38px;font-size:12px}
.miniSpeak{flex:0 0 32px;width:32px;height:32px;font-size:10px}
.speakButton:hover,.miniSpeak:hover{border-color:var(--s3-green);background:var(--s3-green);color:#fff}
.panelActions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:19px;border-top:1px solid #e7ecea}
.lessonPrimary,.lessonSecondary{
  min-height:45px;
  padding:10px 15px;
  border-radius:11px;
  font-weight:800;
  cursor:pointer;
}
.lessonPrimary{border:1px solid var(--s3-green);background:var(--s3-green);color:#fff}
.lessonPrimary:hover{background:var(--s3-green-dark)}
.lessonSecondary{border:1px solid #b8c7c3;background:#fff;color:#52635f}
.exampleList{display:grid;gap:13px}
.exampleGroup{overflow:hidden;border:1px solid #dfe7e4;border-radius:16px;background:#fff}
.exampleGroup>header{display:flex;align-items:center;gap:10px;padding:11px 14px;background:#f1f8f5}
.exampleGroup>header>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#dcefe9;color:var(--s3-green);font-size:11px;font-weight:900}
.exampleGroup h3{margin:0;color:var(--s3-green-dark);font-size:17px}
.exampleGroup h3 small{margin-left:6px;color:#788783;font-size:12px;font-weight:400}
.exampleGroupVisual{
  overflow:hidden;flex:0 0 88px;width:88px;height:88px;margin:0 0 0 auto;
  border:3px solid #fff;border-radius:14px;
  box-shadow:0 5px 14px rgba(31,77,61,.16)
}
.exampleGroupVisual img{
  display:block;width:100%;height:100%;object-fit:cover
}
.exampleSentence{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:11px 14px;border-top:1px solid #edf1ef}
.exampleBullet{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#f1f3f2;color:#71807c;font-size:11px;font-weight:800}
.exampleSentence p{flex:1;margin:0}
.examplePurpose{display:inline-block;margin:0 0 4px;border-radius:999px;background:#fff3d5;color:#95610b;padding:2px 7px;font-size:9px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.exampleSentence strong{display:block;color:#273631;font-size:15px;line-height:1.4}
.exampleSentence small{display:block;margin-top:3px;color:#788783;font-size:13px}
.exampleSentence [data-example-text]{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.exampleChunk{
  appearance:none;border:1px solid transparent;border-radius:7px;background:#f4f8f6;color:#263a33;
  max-width:100%;overflow-wrap:anywhere;padding:4px 7px;font:inherit;font-weight:750;line-height:1.25;cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .16s
}
.exampleChunk:hover{border-color:#9cc8b6;background:#eaf5f0;transform:translateY(-1px)}
.exampleChunk.is-selected{border-color:#d77845;background:#fff0e7;color:#8d3f19}
.exampleChunk.is-reading{border-color:#278b65;background:#278b65;color:#fff;box-shadow:0 3px 10px rgba(39,139,101,.22)}
.chunkDivider{color:#aab7b2;font-weight:500}
.exampleAnalysis{
  flex:0 0 calc(100% - 37px);width:calc(100% - 37px);max-width:calc(100% - 37px);min-width:0;
  margin:1px 0 2px 37px;border:1px solid #cfe2da;border-left:4px solid var(--s3-green);
  border-radius:11px;background:linear-gradient(135deg,#fbfefd,#f1f8f5);padding:13px 14px;color:#34463f;
  box-shadow:0 8px 22px rgba(31,77,61,.08)
}
.exampleAnalysis[hidden]{display:none}
.analysisTop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.analysisTop>span{min-width:0}
.analysisTop>span small{display:block;margin:0 0 2px;color:#7b8c85;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.analysisTop>span b{color:#204d3d;font-size:18px;overflow-wrap:anywhere}
.analysisSpeak{border:1px solid #b8d7ca;border-radius:999px;background:#fff;color:#236c52;padding:7px 11px;font-weight:750;cursor:pointer}
.grammarBadges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.grammarBadges span{border-radius:999px;background:#e1f0ea;color:#285d49;padding:6px 10px;font-size:13px;font-weight:750}
.exampleAnalysis p{margin:7px 0;font-size:15px;line-height:1.55}
.analysisEssentials{display:flex;flex-wrap:wrap;gap:7px}
.analysisEssentials p{margin:0;border:1px solid #dce9e4;border-radius:8px;background:#fff;padding:8px 10px}
.analysisWords{display:flex;flex-wrap:wrap;gap:7px}
.analysisWord{min-width:0;max-width:100%;overflow-wrap:anywhere;border:1px solid #dce9e4;border-radius:8px;background:#fff;padding:8px}
.analysisWord>b,.analysisWord small{display:block}
.analysisWord>b{color:#244b3c}
.analysisWord small b{display:inline;color:#60736b}
.analysisWord small{margin:4px 0;color:#4f625b;font-size:14px}
.exampleConjugation{margin-top:10px;border-top:1px dashed #bcd3ca;padding-top:9px}
.exampleConjugation summary{color:#27684f;font-size:14px;font-weight:800;cursor:pointer}
.exampleConjugationGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}
.exampleConjugationGrid>span{display:grid;grid-template-columns:1.3fr .8fr 1.2fr;gap:5px;border-radius:7px;background:#fff;padding:8px;font-size:12px}
.exampleConjugationGrid b{color:#40544c}
.exampleConjugationGrid em{color:#176b4c;font-style:normal;font-weight:800}
.exampleConjugationGrid small{margin:0;color:#7b8c85}
.pronounFamily{margin-top:10px;border-top:1px dashed #bcd3ca;padding-top:9px}
.pronounFamily>b{color:#285b48;font-size:12px}
.pronounFamily>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.pronounFamily span{border:1px solid #dbe8e3;border-radius:7px;background:#fff;padding:6px 8px}
.pronounFamily strong,.pronounFamily small,.pronounFamily em{display:block}
.pronounFamily small{margin:1px 0;color:#50635c}
.pronounFamily em{color:#8a9993;font-size:9px;font-style:normal}
.openFullVerb{margin-top:10px;border:1px solid #2d8262;border-radius:9px;background:#fff;color:#23694f;padding:10px 13px;font-size:14px;font-weight:800;cursor:pointer}
.openFullVerb:hover{background:#eaf5f0}
.openFullVerb span{margin-left:4px}
.stage3FullVerbModal[hidden]{display:none}
.stage3FullVerbModal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px}
.fullVerbOverlay{position:absolute;inset:0;border:0;background:rgba(16,38,30,.62);backdrop-filter:blur(3px);cursor:pointer}
.fullVerbPanel{position:relative;width:min(760px,100%);max-height:min(88vh,850px);overflow:auto;border:1px solid #c9ddd5;border-radius:18px;background:#f8fbfa;padding:24px;box-shadow:0 25px 70px rgba(10,34,25,.32)}
.fullVerbClose{position:absolute;right:14px;top:12px;width:36px;height:36px;border:1px solid #cfddd8;border-radius:50%;background:#fff;color:#40564e;font-size:24px;line-height:1;cursor:pointer}
.fullVerbSource{display:block;color:#7a8e86;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.fullVerbPanel h2{margin:4px 45px 15px 0;color:#194e3a;font-size:25px}
.fullVerbForms{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.fullVerbForms span{border:1px solid #d8e7e1;border-radius:10px;background:#fff;padding:9px;text-align:center}
.fullVerbForms small,.fullVerbForms b{display:block}
.fullVerbForms small{color:#87958f;font-size:10px}.fullVerbForms b{margin-top:2px;color:#23684f}
.fullVerbSection{margin-top:8px;border:1px solid #d7e5df;border-radius:11px;background:#fff;overflow:hidden}
.fullVerbSection summary{padding:11px 13px;color:#2a604c;font-size:13px;font-weight:850;cursor:pointer}
.fullVerbRows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#e4ece9;border-top:1px solid #e4ece9}
.fullVerbRows span{display:grid;grid-template-columns:1.2fr .8fr 1.25fr;gap:6px;align-items:center;background:#fff;padding:8px 10px;font-size:11px}
.fullVerbRows b{color:#51635c}.fullVerbRows strong{color:#176a4c}.fullVerbRows small{margin:0;color:#75857f}
.hasStage3Modal{overflow:hidden}
.storyPaper{
  padding:clamp(22px,4vw,42px);
  border:1px solid #e7dec7;
  border-radius:18px;
  background:
    linear-gradient(rgba(255,254,249,.94),rgba(255,254,249,.94)),
    repeating-linear-gradient(0deg,transparent,transparent 31px,#e7e2d5 32px);
  box-shadow:inset 6px 0 0 #f1c86f,0 12px 30px rgba(78,65,38,.07);
}
.storyVisualHeader{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:9px}
.storyVisualHeader strong{color:#625333;font-size:13px}
.storyVisualHeader small{color:#8a806b;font-size:11px}
.storyVisualStrip{
  display:grid;grid-template-columns:repeat(12,minmax(62px,1fr));gap:7px;
  overflow-x:auto;margin:0 0 20px;padding:2px 2px 9px;
  list-style:none;scrollbar-width:thin
}
.storyVisualStrip.storyVisualStripCompact{grid-template-columns:repeat(9,minmax(68px,1fr))}
.storyVisualStrip li{
  min-width:62px;aspect-ratio:1
}
.storyVisualButton{
  position:relative;display:block;overflow:hidden;width:100%;height:100%;padding:0;
  border:2px solid #fff;border-radius:10px;background:#eee5d0;
  box-shadow:0 3px 9px rgba(70,55,25,.13);cursor:zoom-in;
  transition:transform .16s ease,box-shadow .16s ease
}
.storyVisualButton:hover{transform:translateY(-2px) scale(1.025);box-shadow:0 6px 14px rgba(70,55,25,.2)}
.storyVisualButton:focus-visible{outline:3px solid #2d8262;outline-offset:2px}
.storyVisualButton img{display:block;width:100%;height:100%;object-fit:cover}
.storyVisualButton span{
  position:absolute;right:4px;bottom:4px;display:grid;place-items:center;
  width:19px;height:19px;border-radius:50%;background:rgba(38,77,62,.9);
  color:#fff;font-family:Arial,sans-serif;font-size:9px;font-weight:800
}
.storyImageModal[hidden]{display:none}
.storyImageModal{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:16px}
.storyImageOverlay{position:absolute;inset:0;border:0;background:rgba(20,31,27,.7);backdrop-filter:blur(4px);cursor:zoom-out}
.storyImagePanel{
  position:relative;width:min(330px,calc(100vw - 32px));margin:0;padding:10px 10px 14px;
  border:1px solid #e7dec7;border-radius:18px;background:#fffdf7;
  box-shadow:0 24px 70px rgba(14,30,24,.38);
  animation:storyImageIn .16s ease-out
}
.storyImagePanel img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:12px;object-fit:cover}
.storyImagePanel figcaption{margin:10px 42px 0 5px;color:#4f493c;font-size:14px;font-weight:800}
.storyImageClose{
  position:absolute;right:15px;bottom:10px;width:32px;height:32px;padding:0;
  border:1px solid #d8d0be;border-radius:50%;background:#fff;color:#574e3d;
  font-size:22px;line-height:1;cursor:pointer
}
.storyImageClose:focus-visible{outline:3px solid #2d8262;outline-offset:2px}
.hasStoryImageModal{overflow:hidden}
@keyframes storyImageIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
.inlineReadToolbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  padding-bottom:15px;
  border-bottom:1px dashed #d8ccb1;
}
.inlineReadToolbar button{
  min-height:40px;
  padding:8px 12px;
  border:1px solid #b48a2d;
  border-radius:10px;
  background:#fff7df;
  color:#694d10;
  font-weight:800;
  cursor:pointer;
}
.inlineReadToolbar button:hover,
.inlineReadToolbar button.is-speaking{
  border-color:#8a651d;
  background:#e8b94f;
  color:#302003;
}
.inlineReadToolbar small{color:#7b715d;font-family:Arial,sans-serif;font-size:12px}
.storyPaper>p{margin:0;color:#27332f;font-family:Georgia,serif;font-size:21px;line-height:1.9}
.storyPaper mark{padding:2px 3px;border-radius:4px;background:#fff0b7;color:#62470e;font-weight:700}
.inlineReadWord{
  padding:2px 0;
  border-radius:4px;
}
.inlineReadWord.is-reading-word{
  background:#176b5b;
  color:#fff;
  box-shadow:0 0 0 3px rgba(23,107,91,.22);
  text-decoration:none;
}
.storyPaper mark .inlineReadWord.is-reading-word{
  background:#9a6b0b;
  color:#fff;
  box-shadow:0 0 0 3px rgba(154,107,11,.18);
}
.storyTranslation{margin-top:24px;padding-top:17px;border-top:1px dashed #d8ccb1}
.storyTranslation summary{color:#725719;font-weight:800;cursor:pointer}
.storyTranslation p{margin:13px 0 0;color:#5e5b52;font-size:15px;line-height:1.7}
.audioPlayer{overflow:hidden;border:1px solid #dce6e3;border-radius:18px;background:#fbfdfc}
.audioControls{display:flex;align-items:center;gap:10px;padding:17px;border-bottom:1px solid #e3e9e7;background:#eff7f4}
.audioMainButton,.audioStopButton{min-height:42px;padding:9px 13px;border-radius:10px;font-weight:800;cursor:pointer}
.audioMainButton{border:1px solid var(--s3-green);background:var(--s3-green);color:#fff}
.audioStopButton{border:1px solid #b8c7c3;background:#fff;color:#52635f}
.audioControls label{display:flex;align-items:center;gap:7px;margin-left:auto;color:#53645f;font-size:13px;font-weight:700}
.audioControls select{padding:7px;border:1px solid #b8c7c3;border-radius:8px;background:#fff}
.audioSupport{margin:0;padding:10px 17px;border-bottom:1px solid #e7ecea;color:#70807b;font-size:12px}
.audioStory{display:grid;padding:10px}
.audioStoryItem{padding:7px 5px;border-radius:12px;transition:background .16s ease}
.audioStoryItem+.audioStoryItem{border-top:1px solid #edf1ef}
.audioStoryItem.is-reading{background:#fffaf0}
.audioStoryItem.is-reading .audioStoryImage{outline:3px solid var(--s3-amber);outline-offset:2px}
.audioStoryTop{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:9px;align-items:center}
.audioStorySentence{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#35443f;
  cursor:pointer;
  font-family:Georgia,serif;
  font-size:16px;
  line-height:1.5;
  text-align:left;
}
.audioStorySentence>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf2f0;color:#74827e;font-family:Arial,sans-serif;font-size:11px;font-weight:800}
.audioStorySentence strong{font:inherit;font-weight:400}
.audioStorySentence:hover{background:#f1f6f4}
.audioStorySentence.is-reading{background:#fff4d5;color:#4e390d}
.audioStorySentence.is-reading>span{background:var(--s3-amber);color:#fff}
.audioStoryImage{
  overflow:hidden;width:68px;height:68px;padding:0;border:2px solid #fff;border-radius:11px;
  background:#edf3f0;box-shadow:0 3px 9px rgba(30,65,51,.15);cursor:zoom-in;
  transition:transform .16s ease,box-shadow .16s ease
}
.audioStoryImage:hover{transform:scale(1.04);box-shadow:0 6px 14px rgba(30,65,51,.22)}
.audioStoryImage:focus-visible{outline:3px solid #2d8262;outline-offset:2px}
.audioStoryImage img{display:block;width:100%;height:100%;object-fit:cover}
.audioStoryTools{display:flex;gap:6px;margin:4px 77px 3px 42px}
.audioStoryTools button{
  display:inline-flex;align-items:center;padding:4px 9px;
  border:1px solid #cfddd8;border-radius:7px;background:#fff;color:#476058;
  font-size:10px;font-weight:900;cursor:pointer
}
.audioStoryTools button[aria-expanded="true"]{border-color:#2d8262;background:#eaf5f0;color:#23694f}
.audioStoryDetail{
  display:grid;grid-template-columns:31px minmax(0,1fr);gap:8px;align-items:start;
  margin:6px 77px 4px 42px;padding:8px 10px;border-radius:9px
}
.audioStoryDetail[hidden]{display:none}
.audioStoryDetail b{font-size:10px;line-height:1.6}
.audioStoryDetail p{margin:0;font-size:13px;line-height:1.55}
.audioStoryTranslation{background:#eef7f3;color:#315b4c}
.audioStoryPronunciation{background:#fff5dd;color:#68511f}
.stage3Quiz{display:grid;gap:13px}
.quizQuestion{padding:17px;border:1px solid #dfe7e4;border-radius:15px;background:#fcfdfd}
.quizQuestion h3{margin:0 0 13px;font-size:16px;line-height:1.45}
.quizQuestion h3 span{margin-right:8px;color:var(--s3-green);font-size:12px}
.quizOptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quizOption{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #e0e6e4;border-radius:10px;background:#fff;cursor:pointer}
.quizOption:hover{border-color:#90bdb2}
.quizOption input{accent-color:var(--s3-green)}
.quizQuestion.is-correct{border-color:#82bdad;background:#f2fbf8}
.quizQuestion.is-wrong{border-color:#e6a2a2;background:#fff7f7}
.quizQuestion.is-unanswered{border-color:#e2b55c;background:#fffaf0}
.quizResult{margin-top:18px;padding:19px;border:1px solid #dbe5e2;border-radius:15px;background:#f5f9f7;text-align:center}
.quizResult.is-pass{border-color:#7ab5a5;background:#eaf8f3}
.quizResult.is-fail{border-color:#e2b55c;background:#fff8e8}
.quizResult h3{margin:0 0 7px;font-size:23px}
.quizResult p{margin:0;color:#52635e;line-height:1.5}
.quizResult a{display:inline-flex;margin-top:13px;padding:10px 14px;border-radius:10px;background:var(--s3-green);color:#fff;font-weight:800;text-decoration:none}

@media (max-width:980px){
  .wordGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:850px){
  .stage3CardGrid{grid-template-columns:1fr}
  .stage3UnlockGuide{grid-template-columns:1fr}
  .stage3UnlockGuide>small{grid-column:auto}
  .wordGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lessonSteps{grid-template-columns:repeat(5,1fr)}
  .lessonStep{justify-content:center}
  .lessonStep span{display:none}
}
@media (max-width:620px){
  .stage3Header{grid-template-columns:46px minmax(0,1fr) auto;padding:8px 12px}
  .stage3Header strong{font-size:17px}
  .stage3HeaderProgress,.lessonHeaderState{padding:6px 8px;font-size:11px}
  .stage3Shell,.lessonShell{padding:15px 12px 48px}
  .stage3Hero{padding:25px 20px;border-radius:18px}
  .stage3UnlockGuide{padding:16px}
  .stage3UnlockGuide ol{grid-template-columns:1fr}
  .stage3Hero::after{display:none}
  .stage3Hero>p{font-size:16px}
  .stage3Flow i{display:none}
  .stage3SectionHead,.lessonHero,.panelHeading{align-items:flex-start;flex-direction:column}
  .stage3SectionHead>p,.panelHeading>p{text-align:left}
  .stage3Card{grid-template-columns:48px minmax(0,1fr);gap:11px;min-height:164px;padding:14px}
  .stage3CardNo{width:48px;height:48px;border-radius:13px}
  .stage3CardTop strong{font-size:18px}
  .stage3CardStatus{display:none}
  .lessonHero{padding:21px}
  .lessonHero h1{font-size:31px}
  .lessonProgress{width:100%;flex:auto}
  .lessonProgress>span{text-align:left}
  .lessonSteps{position:sticky;top:70px;z-index:20;padding:7px;border-radius:13px;background:rgba(242,246,244,.95);backdrop-filter:blur(8px)}
  .lessonPanel{padding:20px 14px;border-radius:18px}
  .panelHeading h2{font-size:24px}
  .wordGrid{grid-template-columns:1fr}
  .wordCard{min-height:91px}
  .exampleGroupVisual{flex-basis:72px;width:72px;height:72px;border-radius:11px}
  .exampleAnalysis{flex-basis:100%;width:100%;max-width:100%;margin-left:0}
  .exampleConjugationGrid{grid-template-columns:1fr}
  .exampleConjugationGrid>span{grid-template-columns:1.35fr .8fr 1.25fr}
  .stage3FullVerbModal{padding:8px}
  .fullVerbPanel{max-height:94vh;border-radius:14px;padding:19px 12px}
  .fullVerbRows{grid-template-columns:1fr}
  .fullVerbRows span{grid-template-columns:1.25fr .8fr 1.2fr}
  .panelActions{flex-wrap:wrap}
  .panelActions button{flex:1 1 180px}
  .quizOptions{grid-template-columns:1fr}
  .audioControls{flex-wrap:wrap}
  .audioControls label{width:100%;margin-left:0}
  .audioStoryTop{grid-template-columns:minmax(0,1fr) 58px}
  .audioStorySentence{padding:8px 5px;font-size:15px}
  .audioStoryImage{width:58px;height:58px}
  .audioStoryTools,.audioStoryDetail{margin-right:0;margin-left:37px}
  .storyPaper>p{font-size:18px;line-height:1.8}
  .storyVisualHeader{align-items:flex-start;flex-direction:column;gap:2px}
  .storyVisualStrip{grid-template-columns:repeat(12,68px);margin-right:-2px}
  .storyVisualStrip.storyVisualStripCompact{grid-template-columns:repeat(9,68px)}
  .inlineReadToolbar{align-items:flex-start;flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
  .storyImagePanel{animation:none}
}
