:root{color-scheme:light;--ink:#39314c;--muted:#807287;--paper:#fffdf4;--accent:#8a57c6;--gold:#e7ad50;--custom-background:none;--paper-image:none;font-family:Tahoma,'Arial',sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;color:var(--ink)}body{background-color:#f8eedc;background-image:var(--custom-background),radial-gradient(ellipse at 14% 13%,#ffe2b6 0,transparent 34%),radial-gradient(ellipse at 85% 20%,#cce6de 0,transparent 32%),radial-gradient(ellipse at 50% 90%,#e2d8fa 0,transparent 40%);background-size:cover;min-height:100dvh;overscroll-behavior-y:contain;-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;border:0;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible{outline:3px solid #377eae;outline-offset:3px}button:not(:disabled):active{transform:translateY(2px)}[hidden]{display:none!important}img{max-width:100%;user-select:none;-webkit-user-drag:none}h1,h2,h3,p{margin:0}button img,.ui-icon{object-fit:contain;max-width:100%;max-height:100%}.app{width:min(100%,600px);margin:0 auto;padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;min-height:100dvh}.top{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 3px}.brand{flex:1;min-width:0;display:flex;align-items:center;gap:9px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#fcdb85,#f3af43);box-shadow:0 3px 0 #c78337,0 6px 12px #9c783126;color:#fff;font-size:29px;flex-shrink:0}.brand h1{font-size:clamp(16px,4.4vw,22px);font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5}.brand #subtitle{font-size:11px;color:#796e82;display:block}.round{width:45px;height:45px;display:grid;place-items:center;flex-shrink:0;border-radius:16px;background:linear-gradient(160deg,#fff,#f0e5cf);box-shadow:0 3px 0 #c6bba7,0 5px 10px #74694a1c;border:1px solid #fff;color:#695c83;font-size:22px;font-weight:bold}.round .ui-icon{width:24px;height:24px}.top-btn{width:39px;height:39px;font-size:18px}.install{display:flex;align-items:center;gap:4px;padding:9px 10px;background:#ddf6e4;border:1px solid #b2d9b9;color:#226b4a;border-radius:12px;font-size:12px;font-weight:800;box-shadow:0 2px 0 #9ccca7}.install .ui-icon{width:20px;height:20px}.shelf{position:relative;padding:0 4px 7px;flex:1;display:flex;align-items:center}.book{position:relative;isolation:isolate;perspective:1300px;width:100%;height:min(720px,max(510px,calc(100dvh - 160px)));border-radius:20px 23px 23px 20px;background:linear-gradient(90deg,#b87943 0,#e5a965 2%,#f0c283 5%,#d49a58 94%,#a66c3a 100%);padding:7px 8px 11px;box-shadow:0 7px 0 #ac7440,0 9px 0 #e6bd83,0 20px 30px #896a4240;touch-action:pan-y}.book:before{content:'';position:absolute;inset:8px 8px 7px;border-radius:13px 18px 18px 13px;background:repeating-linear-gradient(0deg,#d6b991 0 1px,#fff8df 1px 4px);box-shadow:inset 0 0 5px #9d6e33;z-index:-1}.sheet,.under-page{position:absolute;inset:7px 8px 10px;border-radius:14px 18px 18px 14px;background:var(--paper);background-image:var(--paper-image),linear-gradient(90deg,#fffdf5 0%,#fffdf5 92%,#f4e8cf 98%,#e8d9bc 100%);background-size:cover;box-shadow:inset -2px 0 5px #a17d481f,0 2px 8px #78634525;overflow:hidden}.under-page{z-index:0;display:grid;place-items:center}.sheet{z-index:2;transform-style:preserve-3d;transform-origin:right center;will-change:transform}.sheet.turning{transition:transform .29s cubic-bezier(.34,.06,.33,1)}.sheet.dragging{transition:none;box-shadow:8px 2px 23px #60472e50}.sheet .paper-content{position:absolute;inset:0;overflow:auto;scrollbar-width:thin;backface-visibility:hidden;padding:18px 19px 17px;display:flex;flex-direction:column;touch-action:pan-y;overscroll-behavior:contain}.page-back{position:absolute;inset:0;backface-visibility:hidden;transform:rotateY(180deg);background:linear-gradient(90deg,#e5d6b7,#fff8e5 15%,#fffdf4 95%);border-radius:inherit;pointer-events:none}.turn-edge{position:absolute;z-index:4;top:8px;bottom:12px;width:18px;touch-action:none;cursor:grab}.edge-left{left:7px}.edge-right{right:7px}.turn-edge:before{content:'';position:absolute;top:40%;width:5px;height:40px;background:#aa865333;border-radius:4px;pointer-events:none}.edge-left:before{left:2px}.edge-right:before{right:2px}.cover-sheet .paper-content{padding:14px 15px}.preview-page{text-align:center;color:#ad8357;padding:24px}.preview-spark{font-size:52px;color:#d9b472}.preview-page h2{font-size:25px;line-height:1.5}.preview-number{display:block;margin-top:12px;font-size:14px}.nav{display:flex;gap:12px;align-items:center;justify-content:center;min-height:51px}.arrow{background:linear-gradient(145deg,#7bbae6,#398bc0);border:1px solid #8bc6ec;color:#fff;border-radius:18px;box-shadow:0 4px 0 #27638d,0 6px 10px #417b9c25;width:56px;height:49px;font-size:25px}.picker{display:flex;align-items:center;justify-content:center;gap:10px;min-width:145px;max-width:220px;padding:12px 18px;border:1px solid #e4d6b6;background:linear-gradient(#fffdf8,#f7ead0);box-shadow:0 3px 0 #d6c19a;color:#735a3e;font-weight:900;border-radius:16px;white-space:nowrap;direction:rtl}.picker #gridIcon{font-size:21px;color:#a77c4b;display:grid;place-items:center}.picker .ui-icon{width:24px;height:24px}.bottom{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:12px;color:#99813d}.quiet{background:transparent;color:#786b82;padding:6px 7px;font-size:12px;font-weight:bold}.bottom #starTotal{font-weight:900;color:#aa7b29;direction:ltr;white-space:nowrap}.primary,.secondary{border-radius:15px;padding:12px 17px;font-weight:900;font-size:15px;line-height:1.5;min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:linear-gradient(155deg,#80cfad,#36a07b);border:1px solid #8cd2ad;color:#fff;box-shadow:0 4px 0 #277b60,0 7px 12px #327b6330}.secondary{background:linear-gradient(#fff,#fbf0d9);border:1px solid #e5d4b5;box-shadow:0 3px 0 #ddc69f;color:#795f49}.full{width:100%}.cover-page{display:flex;flex-direction:column;gap:12px;min-height:100%;justify-content:center}.cover-title{text-align:center;padding:2px 0}.cover-kicker{font-size:10px;letter-spacing:.2px;font-weight:bold;color:#9a7547}.cover-title h2{font-size:clamp(21px,6vw,31px);line-height:1.45;margin:1px 0;color:#624335;font-weight:900;overflow-wrap:anywhere}.cover-description{font-size:11px;color:#8d745e;font-weight:bold}.cover-frame{position:relative;flex:1;min-height:200px;max-height:480px;overflow:hidden;border:1px solid #d7b18a;border-radius:13px;background:#e9d4af;box-shadow:0 5px 0 #c29a64,0 8px 15px #70512c22}.cover-image,.cover-video{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:contain;background:#ead3ae}.cover-play{position:absolute;bottom:9px;left:50%;translate:-50% 0;width:33px;height:33px;display:grid;place-items:center;background:#fdf4deee;color:#9b442f;box-shadow:0 3px 0 #b6845c,0 2px 9px #4a2f1850;border:1px solid #fff;border-radius:50%;font-size:14px;padding:4px}.cover-play .ui-icon{width:22px;height:22px}.cover-actions{display:flex;flex-direction:column;gap:9px;margin-top:1px;padding-bottom:3px}.cover-actions .primary{font-size:17px}.setup-page{display:flex;flex-direction:column;gap:16px;justify-content:center;min-height:100%;text-align:center}.welcome-spark{margin:0 auto;width:80px;height:80px;border-radius:26px;background:linear-gradient(145deg,#ffeab5,#f5bc5d);box-shadow:0 7px 0 #dca34b,0 10px 18px #ddaa5930;color:#fff;font-size:55px;display:grid;place-items:center}.setup-page h2,.certificate-page h2{font-size:clamp(23px,6vw,30px);color:#705338;overflow-wrap:anywhere}.lead{color:#786f86;font-size:15px;line-height:1.7}.mode-list{display:flex;flex-direction:column;gap:10px}.mode-choice{display:flex;align-items:center;text-align:right;gap:11px;background:#fffefa;border:2px solid #eee0ca;border-radius:16px;padding:11px 10px;box-shadow:0 3px 0 #eadbc1;color:#675772;min-height:68px}.mode-choice.chosen{border-color:#7fba9d;background:#eaf7ee;box-shadow:0 3px 0 #b7dac6}.mode-symbol{width:40px;height:40px;border-radius:12px;background:#f4e8d0;display:grid;place-items:center;font-size:25px;flex-shrink:0}.mode-copy{flex:1;min-width:0}.mode-copy strong{font-size:16px;display:block;line-height:1.5}.mode-copy small{display:block;color:#817689;font-size:11px;line-height:1.5}.mode-check{font-weight:bold;color:#389d70;opacity:0;font-size:20px}.chosen .mode-check{opacity:1}.lesson{display:flex;flex-direction:column;gap:10px;min-height:100%;justify-content:space-between}.lesson-head{display:flex;flex-direction:column;gap:9px}.lesson-meta{display:flex;align-items:center;justify-content:space-between;gap:6px}.section-tag{font-size:11px;font-weight:bold;color:var(--accent);padding:5px 9px;border-radius:30px;background:color-mix(in srgb,var(--accent) 10%,white);border:1px solid color-mix(in srgb,var(--accent) 22%,white);white-space:nowrap}.lesson-number{font-size:11px;color:#897f8c;white-space:nowrap}.round-dots{display:flex;gap:5px;justify-content:center}.round-dots span{width:27px;height:5px;border-radius:5px;background:#e9e1d5}.round-dots .current{background:var(--accent)}.round-dots .earned{background:#6bbd8e}.lesson-title{text-align:center;font-size:clamp(18px,5vw,26px);font-weight:900;color:var(--accent);line-height:1.3}.question{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;background:#fff4dc;border:1px solid #ecdcc0;border-radius:14px;padding:9px 10px;line-height:1.6;font-size:clamp(15px,4.2vw,20px);font-weight:bold;color:#664b37;min-height:48px}.question-text{flex:1}.listen{flex-shrink:0;width:37px;height:37px;border-radius:12px;background:linear-gradient(#fff,#f8e0ad);box-shadow:0 2px 0 #ddc08b;border:1px solid #ead2a4;font-size:19px;display:grid;place-items:center;padding:4px}.word-prompt{display:flex;align-items:center;justify-content:center;gap:14px;min-height:52px}.word{font-size:clamp(30px,8vw,47px);font-family:Arial,sans-serif;line-height:1.1;color:#4e416d;overflow-wrap:anywhere}.word-listen{background:linear-gradient(#e9f3ff,#c9dcf9);border-color:#abc8ec;box-shadow:0 3px 0 #9cbce4;width:44px;height:44px}.hidden-word{color:#b286ce}.big-prompt{font-family:Arial,sans-serif;font-size:clamp(31px,8.7vw,49px);color:#655081;font-weight:900;text-align:center;line-height:1.2}.game-body{display:flex;flex-direction:column;justify-content:center;align-items:stretch;flex:1;gap:12px;min-height:90px;padding:3px 0}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-items:stretch}.choices:has(> :nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}.choices:has(> :nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}.choice{border:2px solid #e9dfcb;background:linear-gradient(155deg,#fff,#fff9e9);border-radius:16px;min-height:100px;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;padding:8px;box-shadow:0 4px 0 #e4d4b5,0 5px 8px #9a785113;min-width:0;overflow:hidden;transition:border-color .15s,background .15s}.choice:focus-visible{outline-offset:0}.choice.success{border-color:#72bd91;background:#eaf8ec;box-shadow:0 3px 0 #a9d8b9}.choice.selected{border-color:#a991df;background:#f0e8ff;box-shadow:0 3px 0 #c8b8e9}.choice.shake{animation:shake .28s ease-in-out;border-color:#e6ab95}@keyframes shake{0%,100%{translate:0}25%{translate:5px}75%{translate:-5px}}.art-vector,.art-image{width:100%;height:100%;max-width:96px;max-height:100px;aspect-ratio:1;object-fit:contain;display:block;flex-shrink:1}.art-vector.small-car{transform:scale(.68)}.emoji-art{font-family:'Noto Color Emoji','Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:clamp(38px,12vw,67px);line-height:1.25;display:block;max-width:100%;text-align:center}.big-text{font-family:Arial,sans-serif;direction:ltr;font-weight:900;font-size:clamp(27px,8vw,47px);color:#6b5590;line-height:1.15;overflow-wrap:anywhere}.color-swatch{width:min(100%,76px);aspect-ratio:1;border-radius:18px;background:var(--swatch);border:2px solid #3f38512a;box-shadow:inset 0 -6px 0 #00000013,inset 0 5px 0 #ffffff38,0 3px 6px #554b3920}.balloon-choice{border-color:transparent;box-shadow:none;background:transparent;min-height:120px}.balloon-choice .color-swatch,.numberBalloon .choice{border-radius:50% 50% 47% 47%;height:95px;width:70px;position:relative;background:var(--swatch,#dbe5ff);box-shadow:inset -9px -9px 0 #00000011,inset 7px 7px 0 #ffffff49,0 4px 7px #8f76421b}.balloon-choice:after{content:'';position:absolute;bottom:2px;left:50%;height:24px;width:1px;background:#a9977b;transform:rotate(-10deg)}.numberBalloon .choice{border:2px solid #94bbd8;margin:auto;background:#b5dcf6;max-width:100%}.numberBalloon .choice:nth-child(2){background:#f9c3db;border-color:#e6a6c0}.numberBalloon .choice:nth-child(3){background:#c9e7b0;border-color:#a3cb87}.numberBalloon .choice:after{display:none}.show-items{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;border-radius:16px;background:#f4eedf;border:1px dashed #d6c5a8;min-height:58px}.show-items>.art-image,.show-items>.art-vector{max-width:66px;max-height:66px}.show-items>.emoji-art{font-size:45px}.show-items>.big-text{font-size:clamp(22px,5vw,35px)}.show-items>.color-swatch{width:35px;border-radius:9px}.object-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;width:100%;justify-items:center;align-items:center;max-width:235px;direction:ltr}.object-group.count-1{grid-template-columns:1fr}.object-group.count-5,.object-group.count-6,.object-group.count-7{grid-template-columns:repeat(3,minmax(0,1fr))}.group-item{position:relative;min-width:0;width:100%;display:grid;place-items:center;aspect-ratio:1}.group-item .emoji-art{font-size:clamp(17px,6.2vw,33px);line-height:1}.group-item .art-vector,.group-item .art-image{max-width:46px;max-height:46px}.show-items .object-group{width:auto;min-width:70px;max-width:145px;flex:1;grid-template-columns:repeat(3,minmax(0,1fr))}.show-items .object-group .group-item{max-width:43px}.crossed{opacity:.6}.cross-mark{font-size:37px;color:#c74354;position:absolute;inset:0;display:grid;place-items:center;font-weight:bold}.palette{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;padding:8px 6px;background:linear-gradient(180deg,#edd5ae,#f8ead1);border:1px solid #d7bd91;border-radius:15px;box-shadow:inset 0 2px 5px #9c75421d}.crayon{background:transparent;border:2px solid transparent;border-radius:12px;display:flex;flex-direction:column;align-items:center;padding:3px 1px 2px;gap:0;min-width:0;color:#68583f}.crayon.active{background:#ffffffa8;border-color:#c49853;box-shadow:0 2px 0 #c8a066}.crayon-tip{width:22px;height:15px;background:linear-gradient(0deg,#e6c59c 0 68%,var(--ink) 68%);clip-path:polygon(50% 0,100% 100%,0 100%)}.crayon-body{width:22px;height:25px;border:1px solid #493d472e;border-top:0;background:linear-gradient(90deg,#00000015,transparent 35%,#ffffff60 40%,transparent 61%),var(--ink);border-radius:0 0 4px 4px}.crayon-end{width:22px;height:5px;background:var(--ink);border:1px solid #66534233;border-radius:0 0 4px 4px}.crayon-image{width:26px;height:45px;object-fit:contain}.crayon-label{font-size:9px;white-space:nowrap;font-weight:bold;line-height:1.6}.paint-option{min-height:105px}.paint-label{font-size:12px;font-weight:bold;margin-top:3px}.paint-key{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px}.key-chip{display:flex;align-items:center;gap:5px;padding:5px 7px;background:#f5ebd7;border-radius:12px;font-size:11px;font-weight:bold}.key-dot{width:17px;height:17px;border-radius:50%;background:var(--ink);border:1px solid #57504c40}.copy-paint{grid-template-columns:1fr 30px 1fr!important;align-items:center}.equal{text-align:center;font-weight:bold;font-size:28px;color:#a79777}.traffic{background:#67616d;border-radius:20px;padding:8px}.traffic .choice{border-radius:50%;background:#f8f4ef;min-height:88px}.memory-preview{height:94px;display:flex;align-items:center;justify-content:center;background:#f2ebfa;border-radius:16px;border:1px solid #e3d4f1}.memory-question{font-size:44px;color:#b7a1cf;font-weight:bold}.match-grid{display:grid;grid-template-columns:1fr 25px 1fr;gap:7px;align-items:center}.match-column{display:grid;gap:7px}.match-card{min-height:56px;height:clamp(54px,10.5dvh,73px);padding:4px;border-radius:12px}.match-card>.art-image,.match-card>.art-vector{max-height:53px;max-width:60px}.match-card>.emoji-art{font-size:37px}.match-card .object-group{display:flex;flex-wrap:wrap;justify-content:center;gap:1px}.match-card .group-item{width:25px;height:25px}.match-card .group-item .emoji-art{font-size:20px}.match-card .big-text{font-size:28px}.match-card.matched{opacity:.75}.match-line{font-size:25px;color:#c5ab85;text-align:center}.game-hint,.food-intro{font-size:12px;color:#85748a;text-align:center;line-height:1.5}.collect-scene{position:relative;min-height:105px;background:linear-gradient(#dff3fb,#cde8e7);border:1px solid #c8dfd9;border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 8px}.collect-scene.rabbit,.collect-scene.tower{background:linear-gradient(#eaf8d9,#e2f0d4);border-color:#d1e2b8}.counter{background:#fffefa;border-radius:20px;padding:5px 13px;direction:ltr;font-weight:bold;color:#577a79;font-size:16px;position:absolute;top:8px;right:8px}.scene-target{min-height:55px;display:flex;align-items:center;justify-content:center}.scene-target .emoji-art{font-size:49px}.tower-target{flex-direction:column-reverse;gap:1px;min-width:65px}.tower-block{width:45px;height:15px;background:var(--block);border:1px solid #59556b44;border-radius:3px;box-shadow:inset -6px -3px 0 #00000013}.collect-tray{display:flex;gap:3px;justify-content:center;flex-wrap:wrap;min-height:25px;max-width:100%}.collected-piece{padding:0;background:transparent;width:34px;height:34px}.collected-piece .emoji-art{font-size:24px}.collect-pool{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.collect-piece{height:clamp(49px,8.5dvh,70px);min-height:49px;padding:4px;border-radius:12px}.collect-piece .emoji-art{font-size:31px}.collect-piece.used,.order-card.used{opacity:.25}.check-count{align-self:center;min-width:150px}.train-track{display:flex;gap:4px;justify-content:center;padding:10px 4px;background:linear-gradient(0deg,#c3ac87 0 6px,#e5dbc4 6px 10px,#f8edd8 10px);border-radius:13px}.train-slot{flex:1;max-width:85px;display:grid;place-items:center;min-height:56px;background:#fff9e9;border:2px dashed #d5bd94;border-radius:10px;color:#c0a980;font-size:24px;font-weight:bold}.train-slot.filled{background:#e4f6e8;border:2px solid #95cba5;color:#439463}.train-slot .big-text{font-size:29px}.order-card{min-height:68px}.house-diagram{position:relative;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;width:130px;height:128px}.house-roof{width:130px;height:48px;clip-path:polygon(50% 0,100% 100%,0 100%);background:#df817a;border-bottom:2px solid #b45e58}.house-body{width:89px;height:80px;background:#e8c77b;border:2px solid #b7985f;display:flex;justify-content:center;align-items:flex-end;border-radius:2px}.house-door{width:33px;height:52px;background:#9e7251;border:2px solid #745036;border-bottom:0;border-radius:3px 3px 0 0}.house-diagram .missing{background:#efe9dd;border:2px dashed #c2ac91}.distribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.feed-card{min-height:88px;flex-direction:row;gap:6px}.feed-card>.emoji-art{font-size:37px}.feed-card>.art-image,.feed-card>.art-vector{max-width:52px;max-height:55px}.game-body>.emoji-art,.game-body>.art-image{align-self:center;max-height:48px;font-size:38px}.pair-deck{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.memory-card{background:linear-gradient(145deg,#bcadef,#9176cc);color:#fff;border-color:#9076c7;box-shadow:0 4px 0 #795dae;font-size:32px;font-weight:bold;min-height:91px}.memory-card.face-up{background:#fff7df;color:#62467e;border-color:#d4c09c;box-shadow:0 3px 0 #d4c09c}.memory-card .big-text{font-size:clamp(15px,5vw,28px)}.feedback{min-height:68px;display:flex;justify-content:center;align-items:center;gap:8px;padding:6px 9px;border-radius:17px;background:#f6efdf;color:#967f60;border:1px dashed #e1d3b6;flex-shrink:0}.feedback-hint{font-size:13px;font-weight:bold}.feedback.correct{background:#e6f7e7;border:1px solid #b2dcb6;color:#347a46}.feedback.wrong{background:#fff0e3;border:1px solid #efd2bc;color:#9b603e}.character,.character-fallback{width:62px;height:62px;object-fit:contain;flex-shrink:0;display:grid;place-items:center;font-size:43px}.character{filter:drop-shadow(0 3px 2px #61463124)}.feedback-copy strong{font-size:14px;display:block;line-height:1.4}.feedback-copy small{display:block;font-size:11px;margin-top:3px}.certificate-page{display:flex;flex-direction:column;justify-content:center;gap:17px;min-height:100%;text-align:center}.certificate-medal{font-size:68px}.certificate-name{border:2px dashed #dfc391;padding:15px;border-radius:17px;font-size:26px;font-weight:900;color:#855d3b;background:#fff3d8;overflow-wrap:anywhere}.medal-row{display:flex;gap:8px;justify-content:center}.medal{flex:1;background:#fff5d8;border-radius:14px;padding:12px 3px;display:flex;flex-direction:column;align-items:center;gap:7px;border:1px solid #ecd59d;font-size:33px}.medal small{font-size:10px;color:#8a6e44}.medal.not-earned{filter:grayscale(.9);opacity:.55}.medal-image{width:60px;height:60px;object-fit:contain}.loading{display:grid;place-items:center;text-align:center;padding:30px;gap:15px;flex:1;color:#8f7758}dialog{border:1px solid #dfd2b9;border-radius:23px;background:#fffdf5;color:var(--ink);padding:18px;width:min(calc(100% - 22px),490px);max-height:calc(100dvh - 30px);box-shadow:0 18px 60px #34283e50;overflow:auto}dialog::backdrop{background:#42364d87;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.dialog-head h2{font-size:20px;color:#72533d}.close{width:38px;height:38px;font-size:27px;box-shadow:0 2px 0 #c8bba6}.pages-dialog{width:min(100%,560px);max-width:100%;height:100dvh;max-height:100dvh;margin:auto;padding:max(18px,env(safe-area-inset-top)) 17px max(20px,env(safe-area-inset-bottom));border-radius:18px}.pages-dialog .dialog-head{position:sticky;top:-18px;background:#fffdf5;z-index:4;padding:7px 0}.page-grid{display:flex;flex-direction:column;gap:17px}.page-special{display:flex;gap:6px;flex-wrap:wrap}.page-special button{flex:1;font-size:12px;padding:7px 5px}.pages-section{padding:11px;border:1px solid color-mix(in srgb,var(--section) 26%,white);border-radius:17px;background:color-mix(in srgb,var(--section) 6%,white)}.pages-section h3{font-size:15px;color:var(--section);margin-bottom:10px}.page-cells{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.page-cell{height:42px;display:grid;place-items:center;position:relative;background:#fff;border-radius:10px;border:1px solid #e3d8c6;font-size:17px;font-weight:bold;color:#6b5d7a;box-shadow:0 2px 0 #e3d8c6}.page-cell.done{background:#e7f6e9;border-color:#a2d4af;color:#387e50}.page-cell small{position:absolute;font-size:9px;bottom:0;left:3px;color:#da9a2b}.page-cell.active{outline:2px solid var(--section);outline-offset:1px}.settings-sound{display:flex;align-items:center;justify-content:space-between;margin:15px 0;gap:8px;font-size:14px}.settings-sound .secondary{padding:7px 12px}.small{font-size:12px;color:#7f7484;line-height:1.6;margin-top:7px}.install-steps{padding-right:24px;line-height:1.9;font-size:15px}.install-steps li{padding-bottom:6px}#awardBody{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;margin:14px 0 20px}.award-emoji{font-size:90px}.award-image{width:150px;height:150px;object-fit:contain}.toast{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:50%;translate:-50% 0;z-index:10000;background:#534260;color:#fff;padding:12px 18px;border-radius:15px;max-width:calc(100% - 25px);font-size:13px;box-shadow:0 6px 16px #42334b45;text-align:center}.ui-icon{width:100%;height:100%}
@media(max-width:390px){.app{padding-left:8px;padding-right:8px;gap:8px}.book{height:max(488px,calc(100dvh - 145px));padding:5px}.sheet,.under-page{inset:6px 6px 9px}.sheet .paper-content{padding:12px 13px}.cover-sheet .paper-content{padding:11px}.game-body{gap:9px}.choice{min-height:82px;padding:5px}.lesson-head{gap:6px}.lesson{gap:7px}.feedback{min-height:57px}.character,.character-fallback{width:48px;height:48px;font-size:35px}.palette{gap:3px;padding:5px 3px}.crayon-tip,.crayon-body,.crayon-end{width:18px}.crayon-body{height:22px}.choices{gap:6px}.match-card{min-height:46px;height:55px}.nav{gap:9px}.arrow{width:49px;height:45px}.brand-mark{width:38px;height:38px}.top-btn{width:35px;height:35px}.install{padding:7px;font-size:11px}}
@media(min-width:700px){.app{padding-top:20px;gap:15px}.book{height:min(740px,max(560px,calc(100dvh - 185px)))}.sheet .paper-content{padding:22px 28px}.cover-sheet .paper-content{padding:20px 27px}.crayon-label{font-size:11px}.crayon-body{height:32px;width:28px}.crayon-tip,.crayon-end{width:28px}.crayon-tip{height:19px}.choice{min-height:122px}.match-card{height:77px;min-height:55px}.collect-piece{min-height:65px}.feedback{min-height:78px}.character,.character-fallback{height:70px;width:70px}.group-item .emoji-art{font-size:35px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
.art-image.small-car{transform:scale(.68)}
.cover-page{height:100%}.section-tag{display:inline-flex;align-items:center;gap:5px}.section-icon{width:18px;height:18px;object-fit:contain}.small-ui-icon{width:19px;height:19px;vertical-align:middle;margin-left:4px;object-fit:contain}.certificate-icon{width:105px;height:105px;object-fit:contain}.welcome-spark .ui-icon{padding:7px}.mode-symbol .ui-icon{padding:3px}
