/* Printed letterforms stay large; reading controls never depend on text instructions. */
.literacy-catalog,.literacy-lesson{max-width:620px;margin:auto;text-align:center}.literacy-catalog h1,.literacy-lesson h1{color:#365d4e;font-size:24px;margin:12px 0 20px;line-height:1.2}.literacy-start{display:flex;width:100%;align-items:center;justify-content:center;gap:15px;min-height:68px;margin:0 0 22px}.literacy-start svg{fill:currentColor;width:27px}.alphabet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.letter-tile{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:115px;padding:12px 7px;border:3px solid #fff;border-radius:25px;background:#ffebbb;box-shadow:0 4px 0 #dfcfa6}.letter-tile:nth-child(3n+2){background:#d8edf4;box-shadow:0 4px 0 #b9d5dd}.letter-tile:nth-child(3n){background:#eedbf1;box-shadow:0 4px 0 #d4bbd8}.letter-tile>span{font-size:49px;line-height:1;color:#32564c;font-weight:700}.letter-tile small{font-size:32px;margin-left:2px}.letter-tile>.illustration,.letter-tile>.hero-character{width:58px;height:65px;flex-shrink:0}.letter-seen{position:absolute;right:7px;top:4px;font-size:21px;color:#c28f29;font-style:normal}.alphabet-pager{display:flex;align-items:center;justify-content:center;gap:26px;margin:24px 0 10px}.alphabet-pager>span{color:#577364;font-weight:bold}.alphabet-pager button:disabled{opacity:.3}.primer-books{display:grid;gap:22px;margin:26px 0}.primer-book{position:relative;display:flex;align-items:center;text-align:left;gap:13px;min-height:155px;border:3px solid #fff;border-left:12px solid #ffffff9c;border-radius:16px 29px 29px 16px;background:var(--book-color);padding:13px 18px;box-shadow:0 6px 0 #b8cbb66b}.primer-book>.illustration,.primer-book>.hero-character{width:100px;height:110px;flex-shrink:0}.primer-book>div{display:grid;gap:13px;min-width:0;flex:1}.primer-book strong{font-size:22px;color:#315d4d}.primer-book div>span{font-size:23px;font-weight:bold;color:#755a70}.primer-book>svg:last-child{width:26px;height:26px;fill:#3e7961;flex-shrink:0}.book-number{position:absolute;left:5px;top:5px;width:25px;height:25px;border-radius:50%;background:#fff8de;color:#6c6950;text-align:center;font-size:15px;line-height:25px}.letter-model{display:block;margin:0 auto 10px;min-width:230px;min-height:132px;font-size:103px;font-weight:700;letter-spacing:5px;color:#477366;background:#e4efda;border:3px solid white;border-radius:30px;padding:5px 18px;line-height:1.1}.letter-model span{font-size:91px;color:#a66d78;margin-left:13px}.letter-example{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:100%;padding:12px 15px;gap:7px 17px;border-radius:25px;background:#fff5dc;min-height:144px}.letter-example svg{width:110px;height:110px}.letter-example strong{font-size:35px;color:#405e51}.letter-example>span{font-size:19px;color:#657569;width:100%}.letter-example mark{background:#ffdd8e;color:#724e2c;border-radius:6px;padding:0 2px}.letter-sound-buttons{display:flex;justify-content:center;gap:10px;margin:18px 0}.letter-sound-buttons button{display:flex;align-items:center;gap:6px;font-size:15px;min-height:56px;min-width:100px;padding:10px 13px}.letter-sound-buttons svg{width:23px;height:23px;flex-shrink:0}.literacy-controls{display:flex;align-items:center;justify-content:center;gap:35px;margin:22px 0 12px}.literacy-controls .round{width:64px;height:64px;padding:18px}.literacy-controls .next-btn{width:78px;height:64px}.literacy-controls button:disabled{opacity:.4}.letter-target{font-size:132px;font-weight:bold;line-height:1.3;color:#517d68;background:#e1f0d8;border-radius:30px;margin:15px auto 35px;max-width:280px}.letter-answers{display:flex;gap:14px;justify-content:center}.letter-answers button{flex:1;min-width:65px;max-width:130px;min-height:120px;font-size:80px;font-weight:600;background:#fff0c5;border:3px solid white;border-radius:25px;color:#516b59;box-shadow:0 5px 0 #dfd2ae}.letter-answers button:nth-child(2){background:#d7e9f2}.letter-answers button:nth-child(3){background:#f1dbe5}.reading-picture{display:grid;place-items:center;max-width:240px;margin:0 auto 14px;background:#e7f0dc;border:3px solid white;border-radius:32px;aspect-ratio:1.4}.reading-picture svg{height:155px;width:155px}.reading-picture.compact{max-width:200px}.reading-picture.compact svg{height:125px;width:125px}.syllable-model,.reading-tokens,.reading-slots{display:flex;justify-content:center;align-items:center;gap:13px;margin:20px 0}.syllable{min-width:82px;min-height:78px;font-size:36px;font-weight:bold;padding:12px;color:#456859;border:3px solid white;border-radius:22px;background:#ffe1a3;box-shadow:0 5px 0 #dbc48e}.syllable:nth-of-type(2n){background:#cde5e9;box-shadow:0 5px 0 #b3ced4}.join-dot{font-size:30px;color:#91a58e}.word-whole{display:flex;justify-content:center;align-items:center;gap:15px;min-width:220px;min-height:65px;background:white;color:#41695c;margin:14px auto;border-radius:21px;padding:10px}.word-whole strong{font-size:35px}.word-whole svg{width:25px;height:25px}.reading-meaning{font-size:20px;color:#637865;margin:8px}.reading-slots span{display:grid;place-items:center;min-width:90px;min-height:82px;background:#e4ede1;border:3px dashed #9cb39c;border-radius:22px;font-size:36px;font-weight:bold;color:#a4b69d}.reading-slots .filled{background:#d8ebcd;border-style:solid;color:#3a654c}.reading-tokens .used{visibility:hidden}.printed-word{display:block;width:100%;min-height:130px;background:#fff1cb;color:#456d5d;border:3px solid white;border-radius:30px;font-size:60px;font-weight:bold;margin:18px 0 35px;letter-spacing:1px}.reading-answers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.reading-answers button{min-width:0;min-height:112px;padding:7px;border:3px solid white;border-radius:23px;background:#e2eedc;box-shadow:0 4px 0 #cbd8c2}.reading-answers svg{width:100%;height:100%;max-height:125px}.literacy-lesson button.correct{outline:5px solid #80b17a;background:#d2e7ba}.literacy-lesson button.hinted{outline:4px solid #dfbd5e}.literacy-end-art{margin:10px auto;width:180px;height:180px}.literacy-end-art svg{width:100%;height:100%}
@media(max-width:380px){.letter-tile{gap:0;min-height:106px}.letter-tile>span{font-size:39px}.letter-tile small{font-size:29px}.letter-tile>.illustration{width:48px;height:55px}.primer-book{padding:12px 8px;gap:8px;min-height:145px}.primer-book>.illustration,.primer-book>.hero-character{width:75px;height:90px}.primer-book strong{font-size:19px}.primer-book div>span{font-size:21px}.syllable{min-width:75px;min-height:75px;font-size:33px}.reading-answers{gap:7px}.reading-answers button{min-height:95px}.letter-answers{gap:9px}.letter-answers button{font-size:66px;min-height:105px}}
@media(max-height:650px){.literacy-lesson h1{font-size:21px;margin:8px 0 13px}.letter-model{font-size:79px;min-height:104px}.letter-model span{font-size:72px}.letter-example{min-height:116px;padding:8px}.letter-example svg{width:85px;height:85px}.letter-sound-buttons{margin:13px 0}.literacy-controls{margin:14px 0}.reading-picture{max-width:180px}.reading-picture svg{height:110px;width:110px}.syllable-model,.reading-tokens,.reading-slots{margin:15px 0}.reading-picture.compact svg{height:100px;width:100px}}
.wrap[data-screen^="lit-"]{padding-bottom:calc(14px + env(safe-area-inset-bottom));min-height:100svh}
