:root{--cream:#fff8e8;--paper:#fffdf7;--ink:#3d342d;--muted:#7b7067;--line:#eadfce;--orange:#ff775f;--orange-dark:#da4f3e;--yellow:#ffd86b;--blue:#5aa9f8;--blue-soft:#e8f4ff;--green:#5dbf91;--purple:#8c7ee8;--shadow:0 18px 44px #694b261f}*{box-sizing:border-box}html{background:var(--cream);scroll-behavior:smooth;min-width:320px}body{color:var(--ink);background:radial-gradient(circle at 8% 12%, #ffd86b3d 0 100px, transparent 101px), radial-gradient(circle at 92% 24%, #5aa9f821 0 150px, transparent 151px), var(--cream);-webkit-font-smoothing:antialiased;margin:0;font-family:PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif}button,input{font:inherit}button{color:inherit}button:focus-visible{outline-offset:3px;outline:4px solid #5aa9f873}.app-shell{min-height:100vh}.app-header{z-index:10;justify-content:space-between;align-items:center;gap:20px;width:min(1180px,100% - 32px);min-height:82px;margin:0 auto;display:flex;position:relative}.brand-button,.icon-button,.mode-card,.lesson-tile,.practice-options button{cursor:pointer;border:0}.brand-button{text-align:left;background:0 0;border-radius:16px;align-items:center;gap:12px;padding:8px;display:flex}.brand-button strong{letter-spacing:.03em;font-size:19px;display:block}.brand-button small{color:var(--muted);margin-top:2px;display:block}.brand-mark{background:var(--orange);width:42px;height:42px;box-shadow:0 5px 0 var(--orange-dark);border-radius:13px;justify-content:center;align-items:flex-end;gap:3px;padding:9px 7px;display:flex;transform:rotate(-2deg)}.brand-mark i{background:#fff;border-radius:3px;width:7px}.brand-mark i:first-child{height:12px}.brand-mark i:nth-child(2){height:20px}.brand-mark i:nth-child(3){height:16px}.header-stats{align-items:center;gap:9px;display:flex}.stat-pill,.icon-button{background:#fffdf7db;border:1px solid #e0d2bfcc;border-radius:999px;justify-content:center;align-items:center;min-height:44px;display:inline-flex}.stat-pill{padding:0 15px;font-size:14px;font-weight:700}.icon-button{gap:5px;min-width:48px;padding:0 12px}.icon-button span{font-size:12px;font-weight:800}.storage-note{color:#785a22;background:#fff1d8;border:1px solid #ead095;border-radius:12px;margin:0;padding:8px 12px;font-size:13px;position:absolute;top:72px;right:0}.home-screen,.content-screen{width:min(1180px,100% - 32px);margin:0 auto;padding-bottom:72px}.hero-panel{min-height:460px;box-shadow:var(--shadow);background:linear-gradient(135deg,#fffdf8 0%,#fff2cd 100%);border:1px solid #e8d3aeb8;border-radius:36px;grid-template-columns:1.03fr .97fr;display:grid;position:relative;overflow:hidden}.hero-panel:after{content:"";background:#5aa9f81f;border-radius:50%;width:430px;height:430px;position:absolute;bottom:-150px;right:-90px}.hero-copy{z-index:2;align-self:center;padding:62px clamp(32px,5vw,76px);position:relative}.eyebrow{color:var(--orange-dark);letter-spacing:.12em;text-transform:uppercase;font-size:13px;font-weight:800}.hero-copy h1{letter-spacing:-.055em;margin:15px 0 18px;font-size:clamp(40px,5.3vw,68px);line-height:1.08}.hero-copy h1 em{color:var(--orange);font-style:normal;position:relative}.hero-copy h1 em:after{content:"";background:#ff775f2e;border-radius:50%;height:7px;position:absolute;bottom:-4px;left:2px;right:2px}.hero-copy>p{color:var(--muted);margin:0 0 28px;font-size:18px;line-height:1.75}.primary-button,.secondary-button{cursor:pointer;border:0;border-radius:16px;min-height:50px;padding:0 24px;font-weight:800}.primary-button{background:var(--orange);color:#fff;box-shadow:0 6px 0 var(--orange-dark)}.primary-button:active{box-shadow:0 3px 0 var(--orange-dark);transform:translateY(3px)}.secondary-button{border:2px solid var(--line);background:#fff}.hero-button{text-align:left;grid-template-rows:auto auto;grid-template-columns:1fr auto;min-width:245px;min-height:64px;padding:10px 18px 9px 22px;display:grid}.hero-button span{font-size:18px}.hero-button small{opacity:.88;font-size:12px;font-weight:500}.hero-button b{grid-area:1/2/3;align-self:center;font-size:23px}.hero-visual{z-index:2;place-items:center;min-height:430px;display:grid;position:relative}.hero-visual .panda-guide{transform:scale(1.55)translateY(3px)}.speech-bubble{background:#fff;border-radius:20px 20px 20px 5px;padding:13px 18px;font-weight:800;position:absolute;top:62px;right:62px;transform:rotate(3deg);box-shadow:0 8px 24px #4d38231f}.float-number{color:#fff;border-radius:17px;place-items:center;width:54px;height:54px;font-size:24px;font-weight:900;display:grid;position:absolute;box-shadow:0 8px #0000001f}.float-number.one{background:var(--orange);top:70px;left:35px;transform:rotate(-10deg)}.float-number.two{background:var(--blue);bottom:105px;right:38px;transform:rotate(8deg)}.float-number.three{background:var(--green);bottom:68px;left:70px;transform:rotate(5deg)}.hero-cubes{background:#ffffffbf;border:2px solid #d9ccba;border-radius:13px;grid-template-columns:repeat(5,27px);gap:5px;padding:11px;display:grid;position:absolute;bottom:35px;left:50%;transform:translate(-50%)}.hero-cubes i{background:var(--blue);border-radius:7px;width:27px;height:27px;box-shadow:inset 0 -4px #0000001f}.hero-cubes i:nth-child(-n+8){background:var(--orange)}.panda-guide{width:124px;height:134px;position:relative}.panda-face{border:4px solid var(--ink);z-index:2;background:#fff;border-radius:48% 48% 45% 45%;width:106px;height:94px;position:absolute;top:14px;left:9px;box-shadow:inset 0 -8px #f2e9dc}.panda-ear{background:var(--ink);border-radius:50%;width:40px;height:40px;position:absolute;top:4px}.panda-ear.left{left:2px}.panda-ear.right{right:2px}.panda-eye{background:var(--ink);border-radius:50%;width:26px;height:34px;position:absolute;top:28px;transform:rotate(15deg)}.panda-eye:after{content:"";background:#fff;border-radius:50%;width:8px;height:10px;position:absolute;top:7px;left:9px}.panda-eye.left{left:17px}.panda-eye.right{right:17px;transform:rotate(-15deg)}.panda-nose{background:var(--ink);border-radius:50% 50% 65% 65%;width:14px;height:10px;position:absolute;bottom:17px;left:50%;transform:translate(-50%)}.panda-guide:after{content:"";border:4px solid var(--ink);background:var(--orange);border-radius:40% 40% 20px 20px;width:78px;height:53px;position:absolute;bottom:0;left:23px}.panda-guide.thinking:after{background:var(--blue)}.panda-guide.celebrate:after{background:var(--yellow)}.panda-stars{color:#f8b61c;font-size:26px;font-weight:900;animation:1.2s ease-in-out infinite alternate twinkle;position:absolute;inset:-18px -30px auto}.mode-section{padding:60px 0 48px}.section-heading{justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px;display:flex}.section-heading h2,.album-strip h2{letter-spacing:-.03em;margin:7px 0 0;font-size:30px}.progress-copy{color:var(--muted);font-size:14px;font-weight:700}.mode-grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.mode-card{text-align:left;border:2px solid #0000;border-radius:24px;grid-template-rows:1fr auto;grid-template-columns:auto 1fr;gap:9px 15px;min-height:154px;padding:24px;transition:transform .2s,box-shadow .2s;display:grid;box-shadow:0 10px 28px #563e2114}.mode-card:hover{transform:translateY(-4px);box-shadow:0 16px 35px #563e2121}.mode-card .mode-icon{border-radius:16px;grid-row:1/3;place-items:center;width:51px;height:51px;font-size:25px;display:grid}.mode-card strong{margin:2px 0 6px;font-size:20px;display:block}.mode-card small{color:var(--muted);line-height:1.5}.mode-card b{border-radius:999px;grid-column:2;justify-self:start;padding:5px 10px;font-size:12px}.lesson-card{background:#fff8eb;border-color:#f2d39c}.lesson-card .mode-icon,.lesson-card b{background:#ffe5b4}.practice-card{background:#eef8ff;border-color:#c7e5fb}.practice-card .mode-icon,.practice-card b{background:#d8edff}.challenge-card{background:#f3f0ff;border-color:#d9d1fb}.challenge-card .mode-icon,.challenge-card b{background:#e5dfff}.album-strip{border:1px solid var(--line);background:var(--paper);border-radius:28px;grid-template-columns:1fr auto;align-items:center;gap:30px;padding:30px 38px;display:grid}.album-strip p{color:var(--muted);margin:8px 0 16px}.text-button{color:var(--orange-dark);cursor:pointer;background:0 0;border:0;padding:6px 0;font-weight:800}.sticker-preview{gap:10px;display:flex}.sticker-art{aspect-ratio:1;filter:drop-shadow(0 8px 8px #48311a21);background-image:url(/panda-stickers.webp);background-repeat:no-repeat;background-size:600% 300%;border-radius:22px;width:108px;display:inline-block}.sticker-art.is-locked{filter:grayscale();opacity:.2}.content-screen{min-height:calc(100vh - 82px);padding-top:28px}.screen-title-row{text-align:center;grid-template-columns:120px 1fr 120px;align-items:start;margin:12px 0 28px;display:grid}.screen-title-row>div{grid-column:2}.screen-title-row h1{letter-spacing:-.045em;margin:8px 0 0;font-size:clamp(30px,4vw,46px)}.screen-title-row p{color:var(--muted);margin:8px 0 0}.back-button{cursor:pointer;background:0 0;border:0;border-radius:12px;justify-self:start;min-height:44px;padding:0 12px;font-weight:800}.segmented{background:#eee4d5;border-radius:16px;gap:4px;width:fit-content;margin:0 auto 32px;padding:5px;display:flex}.segmented button{cursor:pointer;background:0 0;border:0;border-radius:12px;min-height:44px;padding:0 22px;font-weight:800}.segmented button.active{color:var(--orange-dark);background:#fff;box-shadow:0 4px 12px #5a401e1a}.lesson-grid{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.lesson-tile{border:2px solid var(--line);text-align:left;background:#fff;border-radius:22px;grid-template-columns:auto 1fr;gap:12px 14px;min-height:150px;padding:19px;display:grid;box-shadow:0 7px 20px #5037190f}.lesson-tile:not(:disabled):hover{border-color:var(--orange);transform:translateY(-2px)}.lesson-tile.complete{background:#f3fbf6;border-color:#b9dfca}.lesson-tile.locked{opacity:.48;cursor:not-allowed}.lesson-number{background:#fff0ce;border-radius:15px;place-items:center;width:46px;height:46px;font-size:18px;font-weight:900;display:grid}.lesson-tile.complete .lesson-number{color:#237b51;background:#cfeada}.lesson-tile strong,.practice-options strong{margin:2px 0 6px;font-size:18px;display:block}.lesson-tile small,.practice-options small{color:var(--muted);line-height:1.45;display:block}.lesson-reward{color:var(--orange-dark);grid-column:2;align-self:end;font-size:12px;font-weight:800}.practice-options{grid-template-columns:repeat(3,1fr);gap:20px;max-width:900px;margin:50px auto;display:grid}.practice-options button{border:2px solid var(--line);min-height:230px;box-shadow:var(--shadow);background:#fff;border-radius:28px;padding:30px}.practice-options button:hover{border-color:var(--blue);transform:translateY(-3px)}.practice-options button>span{background:var(--blue-soft);border-radius:22px;place-items:center;width:72px;height:72px;margin:0 auto 20px;font-size:32px;display:grid}.board-screen{padding-top:16px}.board-topbar{grid-template-columns:1fr minmax(220px,430px) 1fr;align-items:center;gap:18px;margin:4px 0 22px;display:grid}.question-progress{text-align:center;font-size:14px;font-weight:800}.question-progress>div,.album-progress{background:#eadfce;border-radius:999px;height:10px;margin-top:7px;overflow:hidden}.question-progress i,.album-progress i{background:linear-gradient(90deg, var(--orange), #ffb85c);border-radius:inherit;height:100%;transition:width .35s;display:block}.mode-label{border-radius:999px;justify-self:end;padding:8px 13px;font-size:13px;font-weight:800}.mode-label.learn{background:#fff0ce}.mode-label.practice{background:#dff2ff}.mode-label.challenge{background:#e7e1ff}.learning-board{grid-template-columns:minmax(0,1.5fr) minmax(270px,.5fr);align-items:stretch;gap:22px;display:grid}.problem-column,.answer-panel{background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:30px}.problem-column{text-align:center;min-height:620px;padding:clamp(24px,4vw,42px);position:relative}.big-equation{justify-content:center;align-items:center;gap:clamp(12px,2vw,26px);margin:16px 0;display:flex}.big-equation strong{background:#fff0cf;border-radius:23px;place-items:center;width:78px;height:78px;font-size:37px;display:grid;box-shadow:inset 0 -5px #814e2014}.big-equation strong:nth-of-type(2){background:var(--blue-soft)}.big-equation strong.unknown{color:var(--orange);background:#fff;border:3px dashed #d8c8b1}.big-equation span{color:#7b6d5f;font-size:34px;font-weight:800}.equation-trail{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:42px;display:flex}.equation-trail span{color:var(--muted);background:#f4eee4;border-radius:11px;padding:6px 10px;font-weight:700}.equation-trail span.current{color:var(--ink);background:#ffe4b1}.block-scene{background:#f7f3eb;border:2px solid #e5d8c6;border-radius:24px;max-width:630px;margin:18px auto;padding:18px}.group-label{color:var(--muted);margin-bottom:13px;font-size:13px;font-weight:800}.frames-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:22px;min-height:122px;display:flex}.ten-frame{background:#dcefff;border:3px solid #8fc4ec;border-radius:17px;grid-template-rows:repeat(2,46px);grid-template-columns:repeat(5,46px);gap:5px;padding:9px;display:grid}.cube{background:var(--orange);color:#fff;border:0;border-radius:11px;place-items:center;width:46px;height:46px;font-size:19px;transition:transform .2s,opacity .2s;display:grid;box-shadow:inset 0 -5px #0000001f}button.cube:not(:disabled){cursor:pointer}button.cube:not(:disabled):hover{transform:translateY(-3px)scale(1.04)}.cube.moved,.source .cube{background:var(--blue)}.cube.empty{box-shadow:none;background:#ffffffb8;border:2px dashed #5a89ae47}.loose-group{justify-items:center;gap:7px;min-width:92px;max-width:258px;display:grid}.loose-row{justify-content:center;gap:7px;display:flex}.cube.loose.removed{opacity:.12;transform:scale(.75)}.movement-note{justify-content:center;align-items:center;gap:8px;margin-top:15px;font-size:13px;display:flex}.movement-note span,.movement-note b{border-radius:999px;padding:6px 10px}.movement-note span{background:#fff}.movement-note b{background:#ffe6b8}.feedback-bubble{justify-content:center;align-items:center;gap:17px;max-width:560px;min-height:76px;margin:0 auto;display:flex}.feedback-bubble .panda-guide{transform-origin:50%;width:65px;height:65px;margin:-5px 0 0 -22px;transform:scale(.46)}.feedback-bubble p{border:2px solid var(--line);text-align:left;background:#fff;border-radius:18px 18px 18px 5px;margin:0;padding:12px 15px;font-weight:700}.feedback-bubble.incorrect p{color:#9b4f40;background:#fff0ed;border-color:#f1b9af}.feedback-bubble.correct p{color:#24734e;background:#eaf8f0;border-color:#abd9c0}.board-tools{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px;display:flex}.board-tools button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:12px;min-height:44px;padding:0 13px;font-weight:700}.board-tools button:disabled{opacity:.5;cursor:default}.answer-panel{flex-direction:column;justify-content:center;padding:26px;display:flex}.answer-display{background:#f6f0e6;border:3px solid #0000;border-radius:22px;align-content:center;place-items:center;min-height:114px;margin-bottom:17px;display:grid}.answer-display span{color:var(--muted);font-size:13px;font-weight:800}.answer-display strong{font-size:44px;line-height:1.1}.answer-display.incorrect{background:#fff0ed;border-color:#f1b9af}.answer-display.correct{background:#eaf8f0;border-color:#abd9c0}.number-pad{grid-template-columns:repeat(3,1fr);gap:9px;display:grid}.number-pad button{cursor:pointer;background:#fff;border:1px solid #dfd3c2;border-radius:14px;min-height:54px;font-size:19px;font-weight:900;box-shadow:0 3px #e4d7c6}.number-pad button:active{transform:translateY(2px);box-shadow:0 1px #e4d7c6}.number-pad .key-back{background:#f4eee4}.number-pad .key-submit{color:#fff;background:var(--orange);border-color:var(--orange);box-shadow:0 4px 0 var(--orange-dark);grid-column:span 2;font-size:16px}.number-pad button:disabled{opacity:.45;cursor:not-allowed}.floating-next{min-width:180px;margin:25px auto 0;display:block}.summary-screen{text-align:center;max-width:760px;padding-top:55px;position:relative}.summary-screen>.panda-guide{margin:0 auto 16px;transform:scale(1.15)}.summary-screen h1{letter-spacing:-.045em;margin:16px 0 10px;font-size:clamp(34px,5vw,50px)}.summary-screen>p{color:var(--muted);font-size:17px}.summary-screen>p strong{color:var(--orange-dark)}.confetti{color:var(--orange);letter-spacing:20px;opacity:.55;font-size:28px;position:absolute;top:25px;left:0;right:0}.summary-stats{grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0;display:grid}.summary-stats div{border:1px solid var(--line);background:#fff;border-radius:20px;padding:18px}.summary-stats span,.summary-stats strong,.summary-stats small{display:block}.summary-stats strong{margin:5px 0 2px;font-size:28px}.summary-stats small{color:var(--muted)}.reward-card,.fragment-reward{text-align:left;background:#fff5d8;border:2px solid #edd08b;border-radius:24px;justify-content:center;align-items:center;gap:20px;margin:22px 0;padding:18px 24px;display:flex}.reward-card .sticker-art{width:118px}.reward-card small,.reward-card strong{display:block}.reward-card strong{margin:4px 0;font-size:21px}.fragment-reward>span{font-size:38px}.fragment-reward small,.fragment-reward strong{display:block}.fragment-reward b{margin-left:auto;font-size:20px}.summary-actions{justify-content:center;gap:12px;margin-top:26px;display:flex}.album-screen{max-width:1000px}.album-progress{max-width:620px;height:12px;margin:0 auto 30px}.sticker-grid{grid-template-columns:repeat(6,1fr);gap:14px;display:grid}.sticker-grid article{border:1px solid var(--line);text-align:center;background:#fff;border-radius:22px;padding:12px;box-shadow:0 7px 18px #4e381e0f}.sticker-grid .sticker-art{width:100%}.sticker-grid strong,.sticker-grid small{display:block}.sticker-grid strong{font-size:14px}.sticker-grid small{color:var(--muted);margin-top:4px;font-size:11px;line-height:1.4}.sticker-grid article.locked{box-shadow:none;background:#f3eee5}.danger-link{color:#a64d41;cursor:pointer;background:0 0;border:0;min-height:44px;margin:38px auto 0;text-decoration:underline;display:block}@keyframes twinkle{0%{opacity:.5;transform:translateY(0)scale(.9)}to{opacity:1;transform:translateY(-5px)scale(1.05)}}@media (width<=940px){.hero-panel{grid-template-columns:1fr 44%}.hero-copy{padding:48px 35px}.speech-bubble{right:24px}.mode-grid,.lesson-grid{grid-template-columns:repeat(2,1fr)}.mode-card:last-child{grid-column:1/-1}.learning-board{grid-template-columns:1fr}.answer-panel{grid-template-columns:190px 1fr;gap:18px;display:grid}.answer-display{margin:0}.sticker-grid{grid-template-columns:repeat(4,1fr)}}@media (width<=680px){.app-header{width:min(100% - 20px,1180px);min-height:68px}.brand-button small,.stat-pill{display:none}.brand-button{gap:7px;padding:4px}.brand-button strong{font-size:16px}.brand-mark{border-radius:11px;width:36px;height:36px;padding:7px 6px}.header-stats{gap:5px}.icon-button{min-width:44px;padding:0 8px}.home-screen,.content-screen{width:min(100% - 20px,1180px);padding-bottom:48px}.hero-panel{border-radius:26px;grid-template-columns:1fr}.hero-copy{text-align:center;padding:36px 23px 18px}.hero-copy h1{font-size:clamp(36px,12vw,52px)}.hero-copy>p{font-size:16px}.hero-button{min-width:min(100%,260px);margin:0 auto}.hero-visual{min-height:295px}.hero-visual .panda-guide{transform:scale(1.15)translateY(-5px)}.speech-bubble{font-size:12px;top:28px;right:20px}.float-number{width:45px;height:45px;font-size:20px}.float-number.one{top:35px;left:24px}.float-number.two{bottom:70px;right:24px}.float-number.three{bottom:40px;left:35px}.hero-cubes{bottom:18px}.mode-section{padding:42px 0 34px}.section-heading{align-items:start}.section-heading h2,.album-strip h2{font-size:25px}.progress-copy{text-align:right;max-width:90px}.mode-grid,.lesson-grid,.practice-options{grid-template-columns:1fr}.mode-card:last-child{grid-column:auto}.mode-card{min-height:132px;padding:20px}.album-strip{grid-template-columns:1fr;padding:25px}.sticker-preview{grid-template-columns:repeat(4,1fr);gap:6px;width:100%;display:grid}.sticker-preview .sticker-art{width:100%}.screen-title-row{text-align:left;grid-template-columns:1fr;margin-top:2px}.screen-title-row>div{grid-column:1;margin-top:13px}.screen-title-row h1{font-size:31px}.segmented{width:100%}.segmented button{flex:1;padding:0 10px}.practice-options{margin-top:24px}.practice-options button{min-height:178px}.board-topbar{grid-template-columns:auto 1fr;gap:10px}.board-topbar .back-button{padding:0 4px;font-size:13px}.mode-label{display:none}.problem-column{border-radius:24px;padding:24px 12px}.big-equation{gap:7px}.big-equation strong{border-radius:16px;width:55px;height:55px;font-size:28px}.big-equation span{font-size:25px}.ten-frame{border-radius:14px;grid-template-rows:repeat(2,36px);grid-template-columns:repeat(5,36px);gap:4px;padding:7px}.cube{border-radius:9px;width:36px;height:36px}.frames-row{gap:12px}.answer-panel{padding:18px;display:block}.answer-display{min-height:88px;margin-bottom:13px}.number-pad button{min-height:50px}.summary-stats{gap:7px}.summary-stats div{padding:12px 7px}.reward-card,.fragment-reward{padding:15px}.reward-card .sticker-art{width:92px}.sticker-grid{grid-template-columns:repeat(3,1fr);gap:8px}.sticker-grid article{border-radius:15px;padding:8px}}@media (width<=390px){.brand-button strong{display:none}.ten-frame{grid-template-rows:repeat(2,31px);grid-template-columns:repeat(5,31px)}.cube{width:31px;height:31px}.block-scene{padding:13px 7px}.summary-actions{flex-direction:column}.summary-actions button{width:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
