*{box-sizing:border-box}body{margin:0;background:#fbf7ee;color:#244d3d;font:17px/1.65 Arial,Helvetica,sans-serif}header,main,footer{max-width:1250px;margin:auto;padding:22px 30px}header{display:flex;justify-content:space-between;border-bottom:1px solid #d9dece;font-size:13px}a{color:inherit}small{letter-spacing:1.5px;font-weight:bold;font-size:12px;color:#98613a}h1{font-size:clamp(36px,5vw,64px);line-height:1.25;margin:15px 0}h2{font-size:32px;line-height:1.35;margin:12px 0}h3{font-size:21px}p{color:#5e695b}.hero{padding:42px;background:#edf0df;border-radius:24px;margin:20px 0 35px}.stats{display:flex;gap:30px}.stats b{font-size:26px}.layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:35px}aside{align-self:start;position:sticky;top:15px}aside label{font-weight:bold}#menu{display:grid;gap:6px;margin-top:18px}#menu button{text-align:left;font-size:14px;padding:10px}button,select{font:inherit;cursor:pointer;min-height:44px;background:#fffefa;color:#244d3d;border:1px solid #cbd3c1;border-radius:9px;padding:9px 15px}button:hover{background:#e7eedc}button[aria-pressed=true],.primary{background:#244d3d;color:white}.primary{margin-top:18px}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #c37b36;outline-offset:4px}#choose{display:none;width:100%;margin-top:10px}#lesson,#games{background:#fffefa;border:1px solid #e3dece;border-radius:20px;padding:30px;margin-bottom:25px}#letters,#words,.tabs,#answers{display:flex;gap:9px;flex-wrap:wrap}#letters span{background:#edf1e4;border-bottom:3px solid #becdad;min-width:62px;border-radius:10px;font-size:32px;text-align:center;padding:8px}#words span{padding:8px 14px;background:#f4e8d4;border-radius:8px}.sentence{border-left:3px solid #c9a169;padding:8px 16px;margin:10px 0;background:#faf6ed;font-size:21px}#pictures{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}#pictures button{padding:10px;background:white}#pictures img{width:100%;height:145px;object-fit:contain}#pictures small{font-size:11px;letter-spacing:0;color:#6d7566}.muted{font-size:13px}details{margin:25px 0;border:1px solid #d9ddce;padding:15px;border-radius:12px}summary{cursor:pointer;font-weight:bold}#bookpage{width:100%;height:auto}.pager{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0}.tabs{margin:22px 0}.tabs button{font-size:14px}.game{background:#f3f0e5;padding:25px;border-radius:15px;min-height:300px}#gamehint{font-size:13px}#answers button{background:white;font-size:20px}#gameimage{width:100%;max-height:250px;object-fit:contain;background:white;border-radius:12px;margin-bottom:20px}#feedback{min-height:30px}.note{padding:15px;font-size:14px}dialog{border:0;border-radius:18px;max-width:min(90vw,850px);max-height:90vh;padding:20px}dialog::backdrop{background:#143325bb}dialog img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:10px auto}footer{text-align:center;font-size:13px}[hidden]{display:none!important}button:disabled{opacity:.5;cursor:default}@media(max-width:850px){.layout{grid-template-columns:1fr}aside{position:static}#menu{display:none}#choose{display:block}.hero{padding:25px}header,main{padding:18px}.stats{gap:20px}#lesson,#games{padding:20px}#pictures{grid-template-columns:repeat(2,1fr)}#pictures img{height:120px}h2{font-size:27px}header b{font-size:11px}}

#pictures.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}#pictures.photo-gallery img{height:260px}#pictures.photo-gallery small{display:block;font-size:16px;color:#244d3d;margin-top:10px}#pictures.photo-gallery button{background:#f8f6ef;padding:18px}@media(max-width:600px){#pictures.photo-gallery{grid-template-columns:1fr}#pictures.photo-gallery img{height:260px}}
#letters .letter-sound{background:#edf1e4;border-bottom:3px solid #becdad;min-width:70px;padding:10px}#letters .letter-sound strong{display:block;font-size:30px}#letters .letter-sound small{display:block;font-size:11px;letter-spacing:0}.speech-tools{padding:18px;background:#eff3e6;border-radius:12px;margin:20px 0}.speech-tools label{font-size:14px}.speech-tools select{max-width:100%;font-size:14px}.speech-tools p{font-size:14px}.speech-tools .speech-note{font-size:12px}.speech-tools button{margin:10px 4px 0 0}

#answers button{min-width:110px;min-height:56px}#gameimage{max-height:320px}button[data-mode="vocab"]{border:2px solid #98613a}

header{gap:12px;flex-wrap:wrap}.school-home-brand{font-weight:800;text-decoration:none}.book-top-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.school-home-button{display:inline-flex;align-items:center;border:1px solid #b9c6af;border-radius:10px;padding:8px 14px;background:#244d3d;color:#fff!important;text-decoration:none;font-weight:700;min-height:44px}.school-home-button:hover{background:#183c2d}.school-home-button:focus-visible{outline:3px solid #a66b35;outline-offset:3px}@media(max-width:550px){.book-top-nav{width:100%;justify-content:space-between;font-size:14px}}
