:root{color:#0f172a;background:#e0f2fe;font-family:Arial Rounded MT Bold,Arial Hebrew,Segoe UI,Tahoma,system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body,#app{height:100%;margin:0}html{touch-action:manipulation}body{overflow:hidden;overscroll-behavior:none;background:radial-gradient(circle at 15% 10%,#fde68a 0 8%,transparent 9%),radial-gradient(circle at 88% 0%,#fbcfe8 0 10%,transparent 11%),linear-gradient(180deg,#7dd3fc,#e0f2fe 32%,#fff7ed);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button{font:inherit;color:inherit}.app{height:100%}.home{height:100%;overflow:auto;overscroll-behavior:none;padding:calc(12px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom))}.home-head{text-align:center;margin-bottom:8px}.title{margin:0;font-size:clamp(32px,8vw,48px);line-height:1.15;min-height:64px;display:flex;align-items:center;justify-content:center}.hello{margin:0 0 12px;font-size:22px;color:#0369a1}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:920px;margin:0 auto}@media(min-width:800px){.grid{grid-template-columns:repeat(3,1fr)}}.card{display:flex;flex-direction:column;gap:4px;width:100%;min-height:64px;padding:8px 8px 10px;border:0;border-radius:28px;background:#fff;box-shadow:0 8px #7dd3fc,0 14px 24px #0ea5e92e;cursor:pointer;touch-action:manipulation}.card:active{transform:translateY(3px);box-shadow:0 4px #7dd3fc}.preview{width:100%;height:auto;aspect-ratio:1;border-radius:20px;background:#fffdf8;display:block}.card-name{font-size:clamp(26px,6vw,34px);font-weight:800;text-align:center}.lesson{height:100%;display:flex;flex-direction:column;padding:calc(6px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom));gap:6px;overflow:hidden}.lesson-top{display:grid;grid-template-columns:72px 1fr 88px;align-items:center;gap:6px}.lesson-mark{display:grid;place-items:center;min-height:72px}.celebrate-mark{font-size:56px;line-height:1;color:#f59e0b}.lesson .title{font-size:clamp(28px,7vw,40px)}.icon-btn,.nav-btn,.btn,.swatch,.brush{min-width:64px;min-height:64px;border:0;border-radius:22px;touch-action:manipulation;cursor:pointer}.icon-btn{width:72px;height:72px;display:grid;place-items:center;background:#fff;box-shadow:0 5px #bae6fd;color:#0369a1}.icon-btn:active,.nav-btn:active,.btn:active,.swatch:active,.brush:active{transform:translateY(2px)}.ico{width:40px;height:40px;display:block}.progress{width:100%}.track{height:14px;border-radius:999px;background:#ffffffbf;overflow:hidden}.fill{height:100%;background:linear-gradient(90deg,#f97316,#facc15);border-radius:inherit}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.stage{flex:1 1 auto;min-width:0;min-height:0;display:grid;place-items:center;container-type:size}.sheet{display:block;width:var(--sheet, min(100cqw, 100cqh));height:var(--sheet, min(100cqw, 100cqh));aspect-ratio:1 / 1;max-width:100%;max-height:100%;background:#fffdf8;border-radius:28px;box-shadow:0 8px #38bdf8,0 16px 30px #0ea5e933;touch-action:none}.mark{width:96px;height:96px;margin:8px auto 12px;display:grid;place-items:center}.brand{width:96px;height:96px;display:block}.speaker{width:88px;height:88px}.prompt-row{display:flex;align-items:center;gap:10px;min-height:72px}.caption{flex:1;margin:0;font-size:22px;line-height:1.25}.caption-big{font-size:28px;font-weight:800}.glyph{width:72px;height:72px;flex:none;display:block}.glyph-circle{border:7px solid #0284c7;border-radius:50%;background:#e0f2fe}.glyph-rect{border:7px solid #0284c7;border-radius:12px;background:#e0f2fe;height:58px;margin-top:7px}.glyph-line{height:0;border:0;border-top:10px solid #0284c7;border-radius:8px;margin-top:31px;background:transparent}.glyph-triangle{width:0;height:0;border-left:36px solid transparent;border-right:36px solid transparent;border-bottom:64px solid #0284c7;background:transparent}.glyph-color{border-radius:50%;background:conic-gradient(#ef4444,#facc15,#22c55e,#3b82f6,#a855f7,#ef4444)}.tools{display:flex;flex-direction:column;gap:8px}.tools-spacer{height:4px}.palette,.brushes{display:flex;gap:8px;overflow-x:auto;overscroll-behavior:contain;padding:4px 2px 8px;touch-action:pan-x}.swatch{width:64px;height:64px;flex:none;border-radius:50%;border:4px solid #fff;box-shadow:0 4px #0f172a1f}.swatch-on{outline:4px solid #0284c7;outline-offset:2px}.brush{width:72px;height:64px;flex:none;display:grid;place-items:center;background:#fff;box-shadow:0 4px #bae6fd}.brush-on{outline:4px solid #0284c7}.brush-dot{display:block;border-radius:50%;background:#0f172a}.rule{height:0;border-top:3px dashed rgba(3,105,161,.35);margin:0 8px}.nav{display:flex;justify-content:space-between;gap:12px}.nav-btn{width:96px;height:80px;display:grid;place-items:center;font-size:42px;line-height:1}.nav-back{background:#fff;color:#64748b;box-shadow:0 6px #cbd5e1}.nav-next{background:#22c55e;color:#fff;box-shadow:0 6px #15803d}.nav-btn[data-disabled]{opacity:.4}.portal{padding:0;border:0;background:transparent}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73}.viewport{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:none}.popup{pointer-events:auto;width:min(100%,440px);max-height:min(88dvh,640px);overflow:auto;background:#fff;border-radius:32px;padding:22px 18px 18px;box-shadow:0 16px 40px #0f172a47;position:relative;z-index:1}.dialog-title{margin:0 0 8px;font-size:36px;text-align:center}.popup p{margin:0 0 10px;font-size:22px;line-height:1.35}.btn{width:100%;min-height:72px;font-size:28px;font-weight:800;border-radius:22px}.btn-close{background:#0ea5e9;color:#fff;box-shadow:0 6px #0369a1}.party{text-align:center}.party-title{font-size:42px;color:#c2410c}.party-stars{text-align:center;font-size:42px;letter-spacing:8px;color:#f59e0b;line-height:1}.party-actions{display:flex;justify-content:center;gap:12px;margin-top:8px}.btn-icon{width:88px;height:88px;min-width:88px;min-height:88px;display:grid;place-items:center;border-radius:28px;padding:0}.btn-save{background:#facc15;color:#0f172a;box-shadow:0 6px #ca8a04}.btn-again{background:#fb7185;color:#fff;box-shadow:0 6px #be123c}.btn-home{background:#38bdf8;color:#0f172a;box-shadow:0 6px #0284c7}.confetti{position:fixed;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:0}.piece{position:absolute;top:-12vh;width:14px;height:22px;border-radius:4px;animation:fall 2.8s linear infinite}.star{width:auto;height:auto;background:transparent!important;font-size:28px;line-height:1}@keyframes fall{to{transform:translateY(110vh) rotate(540deg)}}@media(max-height:700px){.icon-btn{width:64px;height:64px}.lesson-top{grid-template-columns:64px 1fr 64px}.nav-btn{height:72px}.glyph{width:56px;height:56px}.glyph-triangle{border-left-width:28px;border-right-width:28px;border-bottom-width:50px}}
