@font-face{font-family:Lesen;src:local('Trebuchet MS')}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;color:#243756;background:radial-gradient(ellipse at 95% 30%,#f0eaff 0,transparent 45%),linear-gradient(155deg,#e7f4ff,#f4f9ff 63%,#e9efff);font-family:Lesen,'Trebuchet MS',Arial,sans-serif;min-height:100vh;-webkit-tap-highlight-color:transparent}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;touch-action:manipulation}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid #1670bb;outline-offset:5px}button:active:not(:disabled){transform:translateY(2px)}svg{height:24px;width:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:1080px;margin:auto;padding:0 42px}header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #cedef080}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#293553;font-size:22px;font-weight:800;letter-spacing:-.5px}.brand small{display:block;margin-top:5px;font-size:10px;letter-spacing:2px;color:#7787a1;font-weight:700}.brand-logo{display:block;width:56px;height:56px;object-fit:contain;flex-shrink:0;background:transparent;border:0;box-shadow:none}.header-actions{display:flex;align-items:center;gap:20px}.lesson-tag{font-size:14px;color:#657892}.icon-button{width:44px;height:44px;border-radius:50%;background:#fff9;border:1px solid #d5e0ee;display:inline-flex;align-items:center;justify-content:center}.intro{display:flex;align-items:center;justify-content:space-between;height:184px;position:relative;padding:16px 20px 4px 4px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:800;color:#6c72a2;margin:0 0 12px}h1{font-size:clamp(32px,4.7vw,47px);letter-spacing:-1.7px;margin:0 0 10px;font-weight:800}h1 span{color:#7b59d8}.intro p:last-child{font-size:19px;color:#6c7e99;margin:0}.mascot{width:190px;height:190px;object-fit:contain;align-self:flex-end;filter:drop-shadow(0 14px 14px #8aa5d127);animation:float 5s ease-in-out infinite}.section-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}h2{font-size:18px;margin:0;display:flex;align-items:center;gap:10px;font-weight:700}.step{background:#fff9;border:1px solid #d7e3f1;border-radius:50%;font-size:13px;width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;color:#7183a1}.text-button{background:transparent;display:flex;align-items:center;gap:6px;font-size:14px;color:#687b97;min-height:40px;padding:4px 8px}.text-button svg{width:18px;height:18px}.cloud-zone{background:#fff;border:2px solid #fff;border-radius:44px;box-shadow:0 12px 0 #cddded50,0 20px 50px #7a9fce12;min-height:280px;padding:22px 28px 21px;text-align:center;position:relative;transition:background .2s,border-color .2s,box-shadow .2s}.cloud-zone.drag-over{border-color:#9274e9;background:#faf7ff;box-shadow:0 0 0 7px #9d83ef25}.cloud-zone>p{font-size:15px;margin:0 0 16px;color:#7a8aa2}.slots{display:flex;gap:12px;justify-content:center;min-height:96px;align-items:center}.slot{width:96px;height:98px;border-radius:23px;display:flex;align-items:center;justify-content:center;position:relative;background:#f5f8fc;border:2px dashed #dce5f0;font-size:48px;color:#cad7e8;user-select:none;-webkit-user-select:none;touch-action:none}.slot.empty::after{content:'+';font-size:26px;font-weight:400}.slot.filled{background:var(--pale);color:var(--ink);border:2px solid transparent;box-shadow:0 4px 0 var(--shadow);font-family:Arial,sans-serif;font-size:68px;font-weight:500;cursor:grab}.slot.selected{border-color:var(--ink)}.slot.speaking{background:var(--ink);color:#fff;transform:translateY(-4px);box-shadow:0 7px 0 var(--shadow)}[data-letter="m"]{--ink:#7250d1;--pale:#eee6ff;--shadow:#d5c5f5}[data-letter="a"]{--ink:#d65b42;--pale:#ffede4;--shadow:#f4cbb7}[data-letter="i"]{--ink:#247bad;--pale:#e0f3ff;--shadow:#b8ddf2}.blend-track{height:5px;max-width:420px;margin:13px auto 0;border-radius:5px;background:#edf2f8;overflow:hidden}.blend-track span{height:100%;width:0;display:block;border-radius:5px;background:linear-gradient(90deg,#b6a0ef,#7250d1);transition:width .07s linear}.play-controls{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:20px}.play-button{min-height:52px;min-width:174px;padding:14px 25px;background:#7356d7;border-radius:19px;color:#fff;box-shadow:0 4px 0 #5b41b6;display:inline-flex;gap:11px;align-items:center;justify-content:center;font-size:17px;font-weight:700}.play-button:hover:not(:disabled){background:#6448c7}.slow-button{background:#f0f4fa;border:1px solid #e5ecf5;min-height:50px;padding:12px 19px;border-radius:17px;display:flex;align-items:center;gap:9px;font-size:15px;color:#60738e}.slow-button svg{color:#659884}.stop-button{width:44px;height:44px;background:#f6f8fc;border:none;color:#8290a6}.word-tools{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px;min-height:36px}.word-tools[hidden]{display:none}.word-tools span{font-size:14px;color:#7b84a3}.small-button{width:38px;height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;border-radius:10px;background:#eff3f9}.small-button svg{width:17px;height:17px}.try-row{display:flex;align-items:center;justify-content:center;gap:13px;margin:22px 0 28px;color:#7a8ba5;font-size:14px}.examples{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.example{background:#ffffff9c;border:1px solid #dbe5f2;padding:8px 15px;min-height:40px;border-radius:12px;font-size:18px;color:#53657e;letter-spacing:1px}.example:hover{border-color:#ac95e3;background:#fff}.example.active{color:#7250d1;border-color:#ae96e6;background:#f3eefe}.gesture-hint{font-size:13px;color:#7485a0}.letters{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}.letter-card{background:var(--pale);border:1px solid #ffffffc0;box-shadow:0 5px 0 var(--shadow);border-radius:22px;position:relative;overflow:hidden}.letter-key{height:121px;width:100%;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--ink);font-family:Arial,sans-serif;font-size:69px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;position:relative;padding-bottom:14px;transition:background .15s}.letter-key.active{background:var(--ink);color:white}.letter-sound{position:absolute;left:12px;bottom:10px;width:16px;height:16px;opacity:.5}.add-letter{position:absolute;right:10px;bottom:9px;width:30px;height:30px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#fff9;color:var(--ink);border:1px solid #fff9;z-index:2}.add-letter svg{width:18px;height:18px}.add-letter:hover{background:#fff}.add-hint{font-size:13px;color:#7f8fa8;text-align:center;line-height:1.5;margin:19px 0 0}.tiny-plus{background:#fff;border:1px solid #dee7f2;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;color:#687aa1;font-weight:bold}.status-line{min-height:40px;text-align:center;display:flex;align-items:center;justify-content:center;color:#6f80a0;font-size:14px;margin:8px 0 0;gap:8px}.status-line.error{color:#a74237}footer{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8d9ab0;border-top:1px solid #d7e3f180;margin-top:10px;padding:12px 0 18px}footer .text-button{font-size:12px}.drag-ghost{position:fixed;z-index:20;pointer-events:none;width:84px;height:88px;border-radius:20px;background:var(--pale);color:var(--ink);box-shadow:0 12px 30px #4d429344;display:grid;place-content:center;font:60px Arial,sans-serif;transform:translate(-50%,-60%) rotate(-5deg)}dialog{border:0;border-radius:36px;padding:0;max-width:min(520px,calc(100vw - 32px));color:#293a59;background:#fff;box-shadow:0 30px 120px #3f477755}dialog::backdrop{background:#cedcf3bc;backdrop-filter:blur(9px)}.welcome-content{text-align:center;padding:8px 36px 27px;background:radial-gradient(ellipse at 50% 15%,#e9f3ff,white 70%)}.welcome-content img{width:240px;height:220px;object-fit:contain;margin:0 auto}.welcome-content h2{font-size:30px;justify-content:center;letter-spacing:-1px}.welcome-content>p:not(.eyebrow){font-size:16px;color:#7484a0;line-height:1.5;margin:12px 0 22px}.welcome-content .play-button{min-width:210px}.welcome-content .welcome-note{font-size:12px!important;margin:17px 0 0!important}.parent-content{padding:36px;position:relative;line-height:1.7;font-size:16px}.parent-content h2{font-size:25px;line-height:1.2}.parent-content ol{padding-left:23px}.parent-content li{margin-bottom:9px}.parent-content .eyebrow{padding-right:30px;font-size:10px}.parent-note{background:#f2f5fc;padding:16px;border-radius:15px}.privacy-note{color:#7b8aa0;font-size:14px}.dialog-close{position:absolute;right:13px;top:12px}.noscript{text-align:center;padding:30px;background:white}.shake{animation:shake .3s ease-in-out}@keyframes float{50%{transform:translateY(-6px) rotate(2deg)}}@keyframes shake{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}@media(min-width:1200px){.app-shell{padding:0 55px}.intro{height:190px}.cloud-zone{padding-top:23px}.letter-key{height:126px}}@media(max-width:700px){.app-shell{padding:0 20px}header{height:80px}.lesson-tag{display:none}.intro{height:162px;padding-right:0}.intro .eyebrow{font-size:9px;letter-spacing:1px;max-width:190px;line-height:1.7}.intro p:last-child{font-size:16px}.mascot{width:135px;height:145px}.section-top{gap:8px}h2{font-size:16px}.cloud-zone{border-radius:32px;padding:20px 15px}.slots{gap:9px}.slot{width:min(20vw,88px);height:90px}.slot.filled{font-size:60px}.gesture-hint{font-size:11px;max-width:152px;text-align:right}.letters{gap:9px}.letter-card{border-radius:17px}.letter-key{font-size:54px;height:104px;padding-bottom:19px}.letter-sound{display:none}.add-letter{width:27px;height:27px;right:6px;bottom:6px;border-radius:9px}.add-hint{font-size:12px}.try-row{gap:9px;margin-bottom:24px;align-items:flex-start}.try-row>span{padding-top:12px;font-size:12px;white-space:nowrap}.examples{gap:5px}.example{font-size:16px;padding:8px 10px}.play-controls{gap:8px}.play-button{min-width:150px;padding:13px 18px}.slow-button{padding:12px}.welcome-content{padding:8px 24px 27px}.welcome-content h2{font-size:26px}.parent-content{padding:32px 24px}footer{font-size:11px}}@media(max-width:420px){.app-shell{padding:0 14px}.mascot{width:112px;height:130px}.intro{height:150px}.letters{gap:6px}.letter-key{font-size:46px;height:96px}.letter-card{border-radius:14px}.slot{height:80px;border-radius:19px}.slot.filled{font-size:53px}.play-button{min-width:137px}.slow-button{font-size:14px;padding:12px 10px}.stop-button{width:34px;height:40px}.cloud-zone>p{font-size:13px}.try-row{flex-direction:column;align-items:center;gap:4px}.try-row>span{padding:0}.example{padding:7px 11px}.intro .eyebrow{max-width:185px}.welcome-content img{height:190px;width:210px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}[hidden]{display:none!important}
/* Separate generous touch targets: audio above, add action below. */
.letter-card{display:flex;flex-direction:column}.letter-key{height:108px;padding:0 0 5px;flex:none}.add-letter{position:relative;inset:auto;width:100%;height:48px;min-height:48px;border-radius:0;border:0;border-top:1px solid var(--shadow);background:#ffffffad;flex:none;touch-action:manipulation}.add-letter svg{width:27px;height:27px;pointer-events:none}.add-letter:active:not(:disabled){transform:none;background:#fff}.letter-key:active:not(:disabled){transform:none}
@media(max-width:700px){.letter-key{height:88px;padding-bottom:5px}.add-letter{height:48px;min-height:48px}}
@media(max-width:360px){.letters{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.letter-key{height:86px;font-size:56px}}
/* Direct manipulation: insert at an edge, replace in the center, pull out to remove. */
.slot.drag-source{opacity:.28}.slot.drop-replace{outline:4px solid #e77546;outline-offset:4px;box-shadow:0 0 0 9px #fcd9bb70}.slot.drop-before::before,.slot.drop-after::after{content:'';position:absolute;top:-8px;bottom:-8px;width:5px;border-radius:8px;background:#7356d7;box-shadow:0 0 0 3px #fff;z-index:3}.slot.drop-before::before{left:-10px}.slot.drop-after::after{right:-10px}.drag-ghost.removing{opacity:.48;outline:3px dashed #d45e45}.slot.drag-source.drop-replace{outline:none}

.slot{position:relative;-webkit-touch-callout:none}.slot::before,.slot::after{pointer-events:none}.slot.filled{touch-action:none}
/* The lesson picker is a lined, two-page working surface. */
.mascot-holder{position:relative;width:190px;height:190px;flex:none;align-self:flex-end}.mascot-holder .mascot{width:100%;height:100%;animation:none}/* Only the visible cover receives light; the hands and fur are excluded. */
.book-hotspot{position:absolute;left:24%;top:48%;width:59%;height:36%;background:transparent;border-radius:0;z-index:2}
.book-hotspot:hover{background:transparent}.book-hotspot:active:not(:disabled){transform:none}
body.book-open{overflow:hidden}#lesson-book{width:min(1100px,94vw);max-width:94vw;max-height:94dvh;background:transparent;border-radius:22px;overflow:visible;box-shadow:none}#lesson-book::backdrop{background:#35405b70;backdrop-filter:blur(5px)}.notebook{background:#faf8ef;border:9px solid #8b81c6;border-bottom-width:15px;border-radius:22px;box-shadow:0 22px 80px #222b5860,0 5px 0 #63599c;padding:24px 24px 16px;max-height:92dvh;overflow:auto}.book-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.book-heading .eyebrow{margin:0 0 8px}.book-heading h2{font-size:clamp(21px,3vw,32px);letter-spacing:-.6px}.book-heading .icon-button{flex:none;background:#fff}.book-instruction{font-size:16px;color:#788096;margin:12px 0 24px}.book-spread{display:grid;grid-template-columns:1fr 1fr;min-height:min(54dvh,520px);position:relative}.notebook-page{position:relative;min-width:0;padding:0 18px 36px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 79px,#bdd2e4 79px,#bdd2e4 80px);border-top:1px solid #bdd2e4}.notebook-page:first-child{border-right:1px solid #c5bfd4;box-shadow:inset -16px 0 22px -22px #746383}.notebook-page:last-child{box-shadow:inset 16px 0 22px -22px #746383}.book-lines{display:grid;grid-auto-rows:80px}.lesson-line{background:transparent;text-align:left;border-radius:12px;display:flex;flex-direction:column;justify-content:center;padding:5px 12px;gap:5px;min-width:0;width:100%;border:2px solid transparent}.lesson-line:hover,.lesson-line:focus-visible{background:#ede8ff;border-color:#b9a7e6}.lesson-line strong{font-size:clamp(21px,3.3vw,36px);color:#7250d1;letter-spacing:3px;font-weight:500;white-space:nowrap}.lesson-line small{font-size:clamp(13px,1.7vw,18px);color:#5d6680;word-spacing:5px}.lesson-line[aria-current=true]{background:#ede8ff80}.page-number{position:absolute;bottom:8px;left:0;right:0;text-align:center;color:#8a869c;font-size:14px}.book-nav{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:16px}.book-page-button{min-height:48px;padding:10px 22px;border-radius:14px;background:#e9e3fa;color:#5c458f;font-size:16px}.book-nav>span{font-size:14px;color:#777289}.book-spread.turning{animation:page-turn .3s ease-out}@keyframes page-turn{from{opacity:.4;transform:perspective(1000px) rotateY(6deg)}to{opacity:1;transform:none}}
@media(max-width:700px){.mascot-holder{width:135px;height:145px}.notebook{padding:18px 10px 12px;border-width:6px;border-bottom-width:10px}.notebook-page{padding:0 5px 32px}.lesson-line{padding:4px;gap:7px}.lesson-line strong{letter-spacing:1px;font-size:23px}.lesson-line small{font-size:14px;word-spacing:0;line-height:1.5}.book-lines{grid-auto-rows:120px}.notebook-page{background-size:auto;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 119px,#bdd2e4 119px,#bdd2e4 120px)}.book-heading h2{font-size:22px}.book-instruction{font-size:14px}.book-hotspot span{font-size:11px;padding:4px 7px}.book-page-button{padding:10px 15px}}
@media(max-width:420px){.mascot-holder{width:112px;height:130px}.lesson-line strong{font-size:20px}.lesson-line small{font-size:13px}.book-heading .eyebrow{font-size:10px}.book-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.book-hotspot,.book-spread.turning{animation:none}}
.book-spread{min-height:max(356px,min(54dvh,520px))}.book-lines{min-height:320px}
@media(max-width:600px){#lesson-book{width:94vw}.notebook{padding:16px 14px 12px}.book-spread{grid-template-columns:1fr;min-height:388px}.notebook-page:last-child{display:none}.notebook-page:first-child{border-right:0;box-shadow:none;padding:0 6px 36px}.book-lines{grid-auto-rows:88px;min-height:352px}.notebook-page{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 87px,#bdd2e4 87px,#bdd2e4 88px)}.lesson-line{padding:8px 12px;gap:7px}.lesson-line strong{font-size:30px;letter-spacing:2px}.lesson-line small{font-size:16px;word-spacing:3px}.book-instruction{margin-bottom:18px}.book-heading h2{font-size:22px}}
/* Rounded, tactile notebook, in the colors of Capybara's illustrated book. */
.notebook{background:linear-gradient(115deg,#fffdf5,#fffaf0 48%,#fffdf8);border-color:#a89ddd;border-width:12px;border-bottom-width:19px;border-radius:32px;box-shadow:0 24px 70px #26234455,0 6px 0 #7165aa,inset 0 2px 4px #fff;padding:24px 28px 18px}
.book-heading{position:relative;padding:6px 0 2px;min-height:75px}.book-heading>div{position:relative;z-index:1}.book-heading .eyebrow{color:#9180b1;letter-spacing:2px}.book-heading h2{color:#655095}.book-heading .icon-button{background:#fff8e4;border:2px solid #e6dbf0;box-shadow:0 3px 0 #ded2ea;position:relative;z-index:2;width:48px;height:48px}.book-instruction{color:#8b7a9b}.book-decoration{position:absolute;width:158px;height:88px;object-fit:contain;right:65px;top:-12px;pointer-events:none}
.notebook-page{border-top-color:#cfdaeb;background-color:#fffdf7;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 79px,#d0deec 79px,#d0deec 80px);border-radius:12px 0 0 12px}.notebook-page:last-child{border-radius:0 12px 12px 0}.book-spread{border-radius:14px;box-shadow:0 3px 0 #e9e1cd,0 7px 0 #f6eedc,0 8px 0 #ded3be}.lesson-line{border-radius:15px}.lesson-line[aria-current=true]{background:linear-gradient(100deg,#eee6ffbb,#f6eeff66);border-color:#bfa5df66}.lesson-line strong{font-weight:600;color:#7757b1}.lesson-line small{color:#79708c}.book-page-button{background:linear-gradient(#eee5ff,#e0d3f5);border:1px solid #cfc0e5;box-shadow:0 3px 0 #c4b2db;border-radius:16px;font-weight:700}.book-page-button:disabled{opacity:.5;box-shadow:none}.book-nav{padding-top:22px}.page-number{color:#a296b1}
@media(max-width:850px){.book-decoration{width:106px;height:65px;right:57px;top:-22px}.book-heading{padding-top:18px}}
@media(max-width:600px){.notebook{border-width:8px;border-bottom-width:13px;border-radius:26px;padding:15px 15px 14px}.book-heading{min-height:88px;align-items:flex-end;padding-bottom:4px;padding-top:34px}.book-heading .icon-button{align-self:flex-start;position:absolute;right:0;top:0}.book-decoration{right:56px;top:-16px;width:108px;height:62px}.book-heading .eyebrow{font-size:10px;letter-spacing:1.4px}.book-heading h2{font-size:23px}.notebook-page{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 87px,#d0deec 87px,#d0deec 88px);border-radius:12px}.book-instruction{margin-top:8px}.lesson-line strong{font-size:30px}.book-nav{padding-top:18px}}
@media(prefers-reduced-motion:reduce){.book-sheen::before,.book-sheen::after{animation:none;background:#fff4cc30}}


.mascot-picture{display:block;width:100%;height:100%}.mascot-holder .mascot{filter:none}.mascot-holder .book-hotspot{z-index:3}

[data-letter="l"]{--ink:#328265;--pale:#e1f3e9;--shadow:#b4d9c6}[data-letter="o"]{--ink:#ae7421;--pale:#fff1d1;--shadow:#ecd09c}[data-letter="t"]{--ink:#b34d86;--pale:#fbe3f0;--shadow:#e5b4ce}.book-message{color:#9b543e;font-size:15px;line-height:1.4;margin:0 0 12px}.book-message:empty{display:none}

/* Guided lesson: fixed target slots, gentle letter hints, compact word shelf. */
.guided .slots{gap:8px}.guided .slot{width:min(96px,calc((100% - 32px)/var(--slot-count)));min-width:0}.slot.guide-letter{font-family:Arial,sans-serif;font-size:clamp(32px,8vw,62px);color:#bbc4d4;background:#f5f6fb}.slot.guide-letter::after{content:none}.slot.needed{outline:3px solid #ac91e6;outline-offset:3px}.guided.completed{border-color:#b6d9c4}.guided-choices{margin:0 0 14px;display:flex;align-items:center;gap:10px}.guided-choices .examples{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px 4px 9px;scrollbar-width:thin}.guided-choices>span{flex-shrink:0}.guided-choices .example{flex-shrink:0;min-height:44px}.guided .slot.filled{font-size:clamp(32px,8vw,68px)}
@media(max-width:420px){.guided-choices{flex-direction:column;align-items:stretch}.guided-choices>span{font-size:12px}.guided .slot{height:74px;border-radius:15px}}

/* Large, visible choices: three columns, three full rows and a fourth-row peek on phones. */
.guided-choices{display:block;margin:0 0 18px}.guided-choices>span{display:block;font-size:15px;font-weight:700;margin-bottom:8px}.guided-choices .examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:264px;overflow-x:hidden;overflow-y:auto;padding:5px 6px 12px;scrollbar-width:auto;overscroll-behavior:contain}.guided-choices .example{width:100%;min-height:64px;padding:12px 8px;font-size:26px;font-weight:700;border-radius:17px;background:#fff;border:2px solid #d8cbed;box-shadow:0 3px 0 #e2d9f1}.guided-choices .example.active{background:#eae0ff;border-color:#8f6ad5;color:#6140ac}.guided-choices .examples::after{content:attr(data-more-words);grid-column:1/-1;font-size:14px;text-align:center;color:#6c6282;padding:8px}
@media(min-width:700px){.guided-choices .examples{grid-template-columns:repeat(6,minmax(0,1fr));max-height:264px}.guided-choices .example{font-size:27px}}

/* Compact phone letter tiles: large glyph plus a separate full-width touch target. */
@media(max-width:700px){.letter-key{height:56px;padding:0;line-height:1}.add-letter{height:44px;min-height:44px}.letter-card{border-radius:14px}.letters{row-gap:10px}}
.cookie-bank{position:absolute;right:0;bottom:-5px;z-index:4;display:flex;align-items:center;gap:5px;min-width:76px;min-height:44px;padding:0 5px;background:transparent;border:0;box-shadow:none;color:#83522f;font-size:22px}.cookie-bank img{width:42px;height:42px}
#cookie-effects{position:fixed;inset:0;z-index:100;pointer-events:none;overflow:hidden}.reward-cookie{position:absolute;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-select:none;filter:drop-shadow(0 8px 5px #65441930);will-change:transform,opacity}.cookie-bank.cookie-bank-docked{position:fixed;top:max(12px,env(safe-area-inset-top));right:16px;bottom:auto;z-index:101}.cloud-zone.completed{border-color:#b6d9c4}
@media(max-width:700px){.cookie-bank{bottom:-8px;font-size:19px}.cookie-bank img{width:38px;height:38px}.intro{margin-bottom:14px}}

footer{gap:12px;flex-wrap:wrap}.footer-credit{line-height:1.6}.footer-version{white-space:nowrap}footer #greet-again{flex-shrink:0}

.footer-actions{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:3px}.reload-control{display:flex;flex-direction:column;align-items:flex-end;max-width:280px;text-align:right}.reload-control .text-button{background:transparent;border:0;box-shadow:none;min-height:44px;font-size:14px;padding:4px 0 4px 10px}.reload-control button>span:first-child{font-size:24px;line-height:1}#reload-hint{font-size:11px;line-height:1.5;color:#71819a}.reload-control button:disabled{opacity:.65}
/* Writing notebook: paper, ink and touch targets share the reading book's palette. */
.writing-button{color:#7955c6;background:#f3edff;min-width:44px;min-height:44px}.writing-button svg{width:25px;height:25px}body.writing-open{overflow:hidden}.writing-overlay{position:fixed;inset:0;z-index:70;background:#35405b70;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:16px}.writing-notebook.notebook{width:min(1120px,96vw);max-height:96dvh;border:9px solid #a79adb;border-bottom-width:14px;border-radius:32px;padding:20px 22px 16px;overflow:auto;background:#fffaf0;box-shadow:0 6px 0 #7867ac,0 24px 90px #222b5860}.writing-header{display:flex;align-items:center;gap:16px;position:relative;min-height:70px}.writing-header .eyebrow{color:#9b85bc;font-size:11px;margin:0 0 8px}.writing-header h2{color:#685098;font-size:30px;letter-spacing:-.5px}.writing-header>.icon-button{margin-left:auto;flex:none;background:#fff7df;border:2px solid #e6dcf4;width:48px;height:48px}.writing-decoration{width:110px;height:64px;object-fit:contain}.writing-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:12px 0 16px}.writing-palette{display:flex;gap:9px}.ink-swatch{width:44px;height:44px;background:var(--ink);border-radius:50%;border:4px solid #fff;box-shadow:0 3px 0 #cfc6db;position:relative}.ink-swatch[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:3px}.ink-swatch[aria-pressed=true]::after{content:'✓';color:white;display:grid;place-items:center;font-size:20px}.writing-complete-count{display:flex;align-items:center;gap:5px;color:#8d7aab;font-size:14px;white-space:nowrap}.writing-complete-count svg{width:18px;height:18px}.writing-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-radius:16px;overflow:hidden;background:#fffef7;border:1px solid #ede3cf}.writing-page{padding:16px 10px 12px;position:relative;min-width:0;background:linear-gradient(90deg,transparent 25px,#f0c5bd66 26px,transparent 27px),#fffef7;min-height:360px;display:flex;flex-direction:column}.writing-page:first-child{border-right:1px solid #ded5c7;box-shadow:inset -15px 0 22px -22px #897968}.writing-page:last-child{box-shadow:inset 15px 0 22px -22px #897968}.trace-heading{display:flex;align-items:center;justify-content:space-between;padding:0 16px;gap:8px}.trace-heading>span:first-child{font-size:22px;color:#7b60aa;font-weight:700}.trace-status{font-size:13px;color:#a699b7}.trace-done .trace-status{color:#399275}.trace-pad{display:block;flex:1;width:100%;height:clamp(240px,44dvh,440px);fill:none;stroke:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair;overflow:visible}.trace-guide{stroke:#b4aabf}.writing-line{stroke:#c3d7e4;stroke-width:1.1}.writing-line.middle{stroke-dasharray:7 7;opacity:.8}.writing-line.base{stroke-width:2;stroke:#a9c6dd}.trace-page-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#a298ae;font-size:12px;padding:0 14px}.trace-reset{background:transparent;color:#927da8;min-height:44px;padding:8px;font-size:12px}.trace-reset:disabled{opacity:.3}.writing-page-number{text-align:center;font-size:12px;color:#b3a5be;margin-top:2px}.writing-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;color:#8b7a9f;font-size:14px}.writing-nav .book-page-button{font-size:15px;min-height:44px}.writing-storage{font-size:12px;color:#b26844;text-align:center}.writing-open .cookie-bank.cookie-bank-docked{top:max(12px,env(safe-area-inset-top));bottom:auto;left:calc(50% - 50px);right:auto;width:100px;justify-content:center;pointer-events:none}.writing-open .cookie-bank.cookie-bank-docked img{width:36px;height:36px}
@media(max-width:700px){.writing-overlay{padding:8px}.writing-notebook.notebook{width:100%;border-width:6px;border-bottom-width:10px;border-radius:25px;padding:14px 12px 12px;max-height:97dvh}.writing-pages{grid-template-columns:1fr}.writing-page{min-height:310px;border-right:0!important}.writing-header{gap:8px;min-height:56px}.writing-decoration{width:64px;height:48px}.writing-header h2{font-size:23px}.writing-header .eyebrow{font-size:8px;letter-spacing:1.5px}.writing-header>.icon-button{width:44px;height:44px}.writing-palette{gap:8px}.ink-swatch{width:40px;height:40px;border-width:3px}.writing-complete-count{font-size:12px}.writing-toolbar{gap:6px;margin:10px 0 12px}.trace-pad{height:43dvh;min-height:230px;max-height:420px}.trace-heading{padding:0 10px}.trace-heading>span:first-child{font-size:20px}.writing-nav{margin-top:10px}.writing-nav .book-page-button{padding:8px 16px}.writing-open .cookie-bank.cookie-bank-docked{top:max(12px,env(safe-area-inset-top));bottom:auto;right:auto}}
@media(max-height:520px){.writing-notebook.notebook{max-height:98dvh}.trace-pad{min-height:150px;height:160px}.writing-page{min-height:240px}.writing-decoration{display:none}}
/* One large writing surface for longer words; phones keep one page after rotation. */
.writing-pages.single-writing-page{grid-template-columns:minmax(0,1fr)}.single-writing-page .writing-page{border-right:0;box-shadow:none}.writing-palette{flex-wrap:wrap}.writing-toolbar{flex-wrap:wrap}.rainbow-swatch{background:conic-gradient(#ec577e,#e9ad29,#54ac77,#39a6c4,#7654ce,#ec577e);--ink:#9870bd}.rainbow-swatch[aria-pressed=true]{outline-color:#9870bd}.writing-rotate{display:flex;align-items:center;gap:12px;margin:-4px 0 12px;padding:10px 14px;border-radius:16px;background:#eee5fc;color:#735694;font-size:15px;font-weight:700}.writing-rotate small{display:block;font-size:12px;font-weight:400;margin-top:3px}.rotate-device{flex:none;width:42px;height:42px;fill:none;stroke:#8763b8;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.rotate-device rect,.rotate-device path:last-child{transform-origin:26px 26px;animation:turn-device 2.4s ease-in-out infinite}.rotate-device path:nth-child(2){stroke:#b694d6}@keyframes turn-device{0%,15%{transform:rotate(0)}55%,85%{transform:rotate(90deg)}100%{transform:rotate(0)}}
.writing-phone .writing-pages{grid-template-columns:minmax(0,1fr)}.writing-phone .writing-page{border-right:0;box-shadow:none}.writing-phone .ink-swatch{width:36px;height:36px}.writing-phone .writing-palette{gap:6px}.writing-phone .writing-complete-count{font-size:12px}
.writing-landscape.writing-overlay{padding:4px}.writing-landscape .writing-notebook.notebook{width:min(1120px,98vw);max-height:98dvh;padding:6px 12px 8px;border-width:5px;border-bottom-width:7px;border-radius:22px}.writing-landscape .writing-header{min-height:38px;gap:10px}.writing-landscape .writing-header h2{font-size:21px}.writing-landscape .writing-header .eyebrow{display:none}.writing-landscape .writing-header>.icon-button{width:40px;height:40px}.writing-landscape .writing-decoration{display:none}.writing-landscape .writing-toolbar{margin:4px 0 6px}.writing-landscape .ink-swatch{width:32px;height:32px}.writing-landscape .writing-page{min-height:0;padding:5px 8px}.writing-landscape .trace-heading>span:first-child{font-size:17px}.writing-landscape .trace-pad{height:calc(100dvh - 210px);min-height:110px;max-height:310px;flex:none}.writing-landscape .trace-page-bottom{font-size:11px}.writing-landscape .trace-reset{min-height:32px;padding:4px 8px}.writing-landscape .writing-page-number{display:none}.writing-landscape .writing-nav{margin-top:6px}.writing-landscape .writing-nav .book-page-button{min-height:36px;padding:6px 14px}
@media(prefers-reduced-motion:reduce){.rotate-device rect,.rotate-device path:last-child{animation:none;transform:rotate(90deg)}}
.writing-landscape .writing-notebook.notebook{position:relative;padding-top:8px}.writing-landscape .writing-header{position:absolute;top:6px;right:10px;min-height:0}.writing-landscape .writing-header>div{display:none}.writing-landscape .writing-toolbar{padding-right:48px;min-height:38px;margin-top:0}.writing-landscape .trace-pad{height:calc(100dvh - 165px)}
/* Keep page navigation outside the flexible writing surface, inside the real visible viewport. */
.writing-overlay{top:var(--writing-top,0px);bottom:auto;height:var(--writing-vh,100dvh);padding:12px max(8px,env(safe-area-inset-right)) 12px max(8px,env(safe-area-inset-left));overflow:hidden;box-sizing:border-box}.writing-notebook.notebook{position:relative;display:flex;flex-direction:column;height:min(880px,calc(var(--writing-vh,100dvh) - 24px));max-height:none;min-height:0;overflow:hidden;box-sizing:border-box}.writing-header,.writing-toolbar,.writing-nav,.writing-rotate,.writing-storage{flex-shrink:0}.writing-pages{flex:1 1 0;min-height:0;overflow:hidden}.writing-page{min-height:0!important;overflow:hidden}.trace-heading,.trace-page-bottom,.writing-page-number{flex-shrink:0}.trace-stage{position:relative;flex:1 1 0;min-height:0;display:flex;isolation:isolate}.trace-pad{flex:1 1 0!important;min-height:0!important;height:0!important;max-height:none!important;width:100%;overflow:hidden}.writing-nav{padding-bottom:env(safe-area-inset-bottom);min-height:44px}.trace-reset{display:flex;align-items:center;gap:6px;border-radius:14px;background:#f0e9fb;color:#7e60a8;padding:5px 12px;font-weight:700;font-size:12px;min-height:40px;flex-shrink:0}.trace-reset svg{width:22px;height:22px;fill:#ecd9f8;stroke:#9273ba;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.trace-reset:disabled{opacity:.4}.writing-toolbar{gap:8px}.writing-complete-count{margin-left:auto}.sticker-launch{border:2px dashed #b29aca;background:#f9efff;border-radius:14px;width:44px;height:44px;padding:5px;flex:none;box-shadow:0 3px 0 #e1d3ee}.sticker-launch svg{width:100%;height:100%;fill:#b49ade;stroke:#8564b3;stroke-width:3;stroke-linejoin:round}.sticker-launch svg circle{fill:#51406c;stroke:none}.sticker-launch:disabled{opacity:.38}.page-stickers{position:absolute;inset:0;pointer-events:none;z-index:2}.placed-sticker{position:absolute;width:clamp(44px,16%,86px);aspect-ratio:1;transform:translate(-50%,-50%);background:transparent;padding:0;border:0;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;filter:drop-shadow(0 3px 2px #7b658d26);transition:filter .18s,scale .18s;cursor:grab}.placed-sticker svg{display:block;width:100%;height:100%}.placed-sticker.sticker-active{filter:drop-shadow(0 8px 5px #75528e65);scale:1.08;outline:2px dashed #b098ce;outline-offset:5px;border-radius:18px;z-index:3;cursor:grabbing}.sticker-tools{position:absolute;right:6px;top:6px;display:flex;gap:8px;z-index:4}.sticker-tools button{width:44px;height:44px;border:3px solid white;border-radius:50%;font-size:27px;font-weight:700;color:white;box-shadow:0 3px 0 #59426522;display:grid;place-items:center;line-height:1;padding:0}.sticker-confirm{background:#44ac7b}.sticker-remove{background:#dd6680}.sticker-picker{position:absolute;z-index:10;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100% - 32px));max-height:calc(100% - 20px);overflow:auto;background:#fff9ee;border:5px solid #b59cdc;border-radius:26px;padding:16px;box-shadow:0 15px 70px #40305055}.sticker-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.sticker-picker h3{color:#795a9e;font-size:21px}.sticker-picker-heading .icon-button{width:44px;height:44px;flex-shrink:0;background:#f0e5f9}.sticker-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.sticker-choice{aspect-ratio:1;min-height:44px;border-radius:20px;background:#f0e6fa;border:2px solid #e6d6f4;padding:8px;box-shadow:0 3px 0 #e0cfeb}.sticker-choice:nth-child(2n){background:#fff0d4;border-color:#f3dfbd}.sticker-choice svg{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 1px #79618130)}.sticker-choice:active{transform:scale(.94)}.sticker-picker p{font-size:13px;color:#947aa8;text-align:center;margin:8px 0 0}.sticker-targets{display:flex;gap:8px}.sticker-targets button{background:#f3e9fc;color:#79569e;min-width:44px;min-height:44px;border-radius:12px;padding:8px}.sticker-targets button[aria-pressed=true]{background:#dcccfa;outline:2px solid #aa8dcf}
@media(max-width:700px){.writing-notebook.notebook{height:calc(var(--writing-vh,100dvh) - 24px);padding:12px 10px 10px}.writing-toolbar{column-gap:6px;row-gap:8px}.writing-header{min-height:50px}.writing-palette{gap:5px}.writing-phone .ink-swatch{width:32px;height:32px}.writing-complete-count{font-size:11px}.sticker-launch{width:38px;height:38px}.trace-page-bottom{padding:0 4px}.trace-page-bottom>span{font-size:11px}.trace-reset{min-height:40px;font-size:11px;padding:4px 8px}.sticker-picker{padding:12px}.sticker-choice{padding:5px}}
.writing-landscape.writing-overlay{padding-top:4px;padding-bottom:4px}.writing-landscape .writing-notebook.notebook{height:calc(var(--writing-vh,100dvh) - 8px);max-height:none;padding:6px 12px}.writing-landscape .writing-toolbar{min-height:40px;flex-wrap:nowrap}.writing-landscape .writing-palette{flex-wrap:nowrap}.writing-landscape .trace-pad{height:0!important;min-height:0!important;flex:1 1 0!important}.writing-landscape .writing-nav{margin-top:4px;min-height:40px}.writing-landscape .writing-nav .book-page-button{min-height:40px;padding:5px 14px}.writing-landscape .trace-page-bottom{min-height:40px}.writing-landscape .trace-reset{min-height:36px}.writing-landscape .writing-page{padding:4px 8px}.writing-landscape .sticker-picker{width:min(600px,calc(100% - 30px));padding:10px 14px}.writing-landscape .sticker-choices{grid-template-columns:repeat(6,minmax(0,1fr));margin:6px 0}.writing-landscape .sticker-picker h3{font-size:18px}.writing-landscape .sticker-picker p{font-size:12px}.writing-landscape .sticker-launch{width:36px;height:36px}
@media(max-height:350px){.writing-header h2{font-size:18px}.writing-header .eyebrow{display:none}.writing-toolbar{margin:4px 0}.trace-page-bottom>span{display:none}.trace-heading>span:first-child{font-size:15px}.writing-notebook.notebook{padding-top:4px;padding-bottom:4px}.writing-nav{margin-top:3px}.writing-page-number{display:none}}
.trace-stage{flex-direction:column}
.placed-sticker svg,.sticker-choice svg{stroke:none;fill:none}.placed-sticker:active:not(:disabled){transform:translate(-50%,-50%)}
/* Drag stickers as one compositor layer. Avoid Safari filter/outline repaint trails. */
.placed-sticker,.placed-sticker.sticker-active{filter:none;outline:none;scale:none;transition:none;will-change:transform;backface-visibility:hidden;-webkit-backface-visibility:hidden}.placed-sticker.sticker-active{box-shadow:none;border-radius:18px}.placed-sticker.sticker-active::after{content:'';position:absolute;inset:-4px;border:2px dashed #b098ce;border-radius:18px;pointer-events:none}.placed-sticker svg{filter:none}.writing-landscape .sticker-choices{grid-template-columns:repeat(6,minmax(0,1fr))}

/* Completed reading suggestions remain selectable; the active choice stays violet. */
.guided-choices .example.done:not(.active){background:#e2f1d9;border-color:#abc88f;box-shadow:0 3px 0 #c8ddba;color:#4e7040}
.guided-choices .example.done:not(.active):hover{background:#d7ebcb;border-color:#92b775}

.parent-access{padding:18px;background:#f0eafa;border-radius:18px;margin:22px 0}.parent-access-link{display:inline-flex;align-items:center;min-height:48px;border-radius:13px;padding:10px 16px;background:#7956d1;color:white;font-weight:700;text-decoration:none}.parent-access p{font-size:13px;color:#7f749a;line-height:1.6;margin-bottom:0}

/* Personal lesson reward stays inside the current reading/writing screen. */
.lesson-message{background:#e2f1d9;border-radius:16px;padding:12px 16px;margin:8px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.lesson-message[hidden]{display:none}.lesson-message p{margin:0;font-size:14px;line-height:1.4;color:#426536}.lesson-message button{min-height:44px;flex-shrink:0}.writing-notebook>.lesson-message{margin:0 16px 6px;flex-shrink:0}


/* Temporary gift goal: use the same soft blue/lavender palette as the child app. */
button.cookie-bank{min-width:64px;min-height:44px;padding:5px 10px;border:0;outline:0;box-shadow:none;cursor:pointer}
#gift-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:30px;color:#243756;background:linear-gradient(155deg,#f7fbff,#fff 65%,#f2ecff);box-shadow:0 24px 70px #34336b40;overflow:auto}
#gift-dialog::backdrop{background:#526b9255;backdrop-filter:blur(5px)}
.gift-content{position:relative;padding:28px 24px 22px;text-align:center}
.gift-content>.eyebrow{padding:0 35px;font-size:10px}
.gift-content h2{justify-content:center;font-size:26px}
.gift-content .dialog-close{position:absolute;right:10px;top:10px;min-width:44px;min-height:44px}
.gift-picture{display:block;width:min(100%,260px);height:auto;margin:12px auto 4px}
#gift-progress{display:block;width:100%;height:14px;border:0;border-radius:99px;overflow:hidden;accent-color:#7654ce;background:#e8defa}
#gift-progress::-webkit-progress-bar{background:#e8defa;border-radius:99px}
#gift-progress::-webkit-progress-value{background:linear-gradient(90deg,#7654ce,#a286e9);border-radius:99px}
#gift-progress::-moz-progress-bar{background:#7654ce;border-radius:99px}
@media(max-height:650px){.gift-picture{width:170px}.gift-content{padding-top:24px}.gift-content h2{font-size:23px}}


.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.gift-content{padding:38px 24px 28px}
.gift-picture{margin:0 auto 22px}
#day-rest-dialog{width:min(360px,calc(100vw - 24px));border:0;border-radius:28px;padding:0;color:#243756;background:#f7faff;box-shadow:0 24px 70px #34336b40}
#day-rest-dialog::backdrop{background:#526b9255;backdrop-filter:blur(5px)}
.day-rest-content{position:relative;padding:58px 24px 26px;text-align:center}
.day-rest-content .dialog-close{position:absolute;right:10px;top:10px}
.day-rest-content h2{justify-content:center;font-size:24px}
.day-rest-content .play-button{margin:16px auto 0;min-height:48px}
#day-rest-status{font-size:14px;min-height:20px;margin:16px 0 0}

/* Owner preference: no decorative frames or focus outlines around buttons. */
button{border-color:transparent!important}
button:focus,button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:none}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{filter:brightness(.92)}
button.cookie-bank:focus,button.cookie-bank:focus-visible{border:0;outline:0;box-shadow:none}


@media(max-width:700px){.brand-logo{width:48px;height:48px}}



.gift-mini-progress{display:block;appearance:none;-webkit-appearance:none;flex:none;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;background:#e8defa;margin:8px 0 18px}.gift-mini-progress::-webkit-progress-bar{background:#e8defa;border-radius:99px}.gift-mini-progress::-webkit-progress-value{background:linear-gradient(90deg,#7654ce,#a286e9);border-radius:99px}.gift-mini-progress::-moz-progress-bar{background:#7654ce;border-radius:99px}.writing-notebook .gift-mini-progress{margin:8px 0 0}
/* Notebook gift bar and its permanent star destination. */
.writing-gift-row{display:flex;align-items:center;gap:12px;flex:none;min-width:0;margin:8px 0 0}.writing-gift-row .gift-mini-progress{flex:1;min-width:0;width:auto;margin:0}.writing-cookie-bank{display:flex;align-items:center;gap:5px;flex:none;white-space:nowrap;color:#865b25;font-size:22px;font-variant-numeric:tabular-nums;pointer-events:none}.writing-cookie-bank img{width:34px;height:34px}.writing-open #cookie-bank{visibility:hidden;pointer-events:none}
@media(max-width:700px){.writing-gift-row{gap:8px}.writing-cookie-bank{font-size:20px}.writing-cookie-bank img{width:30px;height:30px}}

/* Keep a finger-width native page-pan gutter beside the nested word list.
   Physical margins also apply to RTL text and touch-capable tablets/hybrids. */
@media(any-pointer:coarse){.guided-choices .examples{margin-left:12px;margin-right:12px;width:calc(100% - 24px)}}

/* Fullscreen handwriting: the sheet uses the entire visible viewport. */
#writing-fullscreen{border-radius:0;box-shadow:none;position:fixed;inset:auto;margin:0;border:0;padding:0;left:var(--trace-x,0px);top:var(--trace-y,0px);width:var(--trace-w,100vw);height:var(--trace-h,100dvh);max-width:none;max-height:none;overflow:hidden;background:#fffefa;color:#283d68;direction:ltr}
#writing-fullscreen::backdrop{background:#1c2346bd}
#writing-fullscreen-drawing{position:absolute;inset:0;overflow:hidden;padding:max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))}
#writing-fullscreen .trace-pad{display:block;position:relative;width:100%;height:100%!important;min-height:0!important;max-height:none!important;touch-action:none;user-select:none;-webkit-user-select:none;overflow:hidden}
#writing-fullscreen-close{position:absolute;z-index:5;right:max(8px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:50%;background:#fffefae6;color:#283d68;font-size:32px;line-height:1}
#writing-fullscreen-effects{position:fixed;inset:0;pointer-events:none;z-index:90;overflow:hidden}.trace-fly{position:fixed;transform-origin:0 0;pointer-events:none;overflow:hidden}.trace-stage>.trace-pad{cursor:pointer;touch-action:pan-y}
#writing-fullscreen .writing-hints{position:absolute;inset:0;pointer-events:none;user-select:none;overflow:hidden;z-index:1}#writing-fullscreen .hint-leaders{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}#writing-fullscreen .hint-leader{stroke:#a79ab9;stroke-width:1.2;opacity:.75}#writing-fullscreen .hint-anchor{fill:#fff;stroke:#8263ae;stroke-width:1.5}#writing-fullscreen .hint-arrow{fill:none;stroke:#8263ae;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}#writing-fullscreen .stroke-badge{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;border:2px solid #8f78b1;border-radius:50%;background:#fffefaf2;color:#4a356a;display:flex;align-items:center;justify-content:center;font:700 17px/1 "Trebuchet MS",sans-serif;-webkit-text-size-adjust:100%}#writing-fullscreen .stroke-badge.current{background:#ffdf80;color:#392e52;border-color:#7654ce}#writing-fullscreen .stroke-badge.confirmed{background:#f1edf6;color:#6b5b80;border-color:#b3a6c4}#writing-fullscreen .writing-demo{opacity:.65;pointer-events:none}

/* Teaching tiles reuse the approved purple, coral and blue lesson palette.
   Lowercase data-letter is shared by uppercase/lowercase cards, slots and drags.
   Guide letters and handwriting stroke models keep their existing neutral style. */
[data-letter="s"]{--ink:#7250d1;--pale:#eee6ff;--shadow:#d5c5f5}
[data-letter="e"]{--ink:#d65b42;--pale:#ffede4;--shadow:#f4cbb7}
[data-letter="p"]{--ink:#247bad;--pale:#e0f3ff;--shadow:#b8ddf2}

/* N/U/F tiles reuse the approved consonant, vowel and third-letter palette.
   Lowercase data-letter serves both cases without changing layout or glyphs. */
[data-letter="n"]{--ink:#7250d1;--pale:#eee6ff;--shadow:#d5c5f5}
[data-letter="u"]{--ink:#d65b42;--pale:#ffede4;--shadow:#f4cbb7}
[data-letter="f"]{--ink:#247bad;--pale:#e0f3ff;--shadow:#b8ddf2}

/* Same three teaching palette roles as the existing lesson groups. */
[data-letter="g"]{--ink:#7250d1;--pale:#eee6ff;--shadow:#d5c5f5}
[data-letter="r"]{--ink:#d65b42;--pale:#ffede4;--shadow:#f4cbb7}
[data-letter="z"]{--ink:#247bad;--pale:#e0f3ff;--shadow:#b8ddf2}

/* Owner-selected A: full-width grid; invisible viewport-relative edge routing. */
.guided-choices .examples{margin-left:0;margin-right:0;width:auto}
@media(any-pointer:coarse){.letter-key,.slot{touch-action:manipulation}}
