:root{--ink:#254763;--blue:#197cbb;--line:#cee7f2;--muted:#536d7d;--yellow:#ffd75d;--sky:#e7f6ff;--pink:#fff0f2;--green:#e4f5df;--shadow:#badced;--paper:#fff;--radius:24px;--font:ui-rounded,"Hiragino Maru Gothic ProN","Microsoft YaHei","PingFang SC",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:var(--font);font-size:16px;background-color:#e6f6ff;background-image:radial-gradient(#82c7e744 1.5px,transparent 1.5px),linear-gradient(160deg,#d5f2ff,#f0faff 60%,#e3f4e8);background-size:26px 26px,100% 100%;background-attachment:fixed}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #147ab7;outline-offset:4px}button:active:not(:disabled){transform:translateY(3px)}header{max-width:1170px;margin:auto;padding:21px 32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;gap:8px;align-items:center;font-size:24px;font-weight:900;letter-spacing:1px}.brand small{display:block;font-size:13px;font-weight:500;letter-spacing:.5px;margin-top:4px;color:var(--muted)}.brand-mascot{width:65px;height:65px;object-fit:contain}.parent{background:#ffffffce;border:2px solid #c3e2ef;border-radius:25px;padding:10px 16px;font-size:14px;white-space:nowrap;box-shadow:0 3px 0 #beddea}.app{display:grid;grid-template-columns:192px minmax(0,1fr);max-width:1110px;margin:0 auto 50px;border:4px solid #fff;border-radius:36px;background:#fffdf9;box-shadow:0 12px 0 #bedfeb80,0 26px 60px #32688612;overflow:hidden;min-height:780px}nav{border-right:2px dashed #d6eaf2;background:#f3fbff;padding:26px 16px}nav button{display:flex;align-items:center;gap:11px;width:100%;padding:14px 12px;border-radius:19px;margin-bottom:13px;text-align:left;font-size:17px;font-weight:850;border:2px solid transparent}nav button.active{background:#ffe28a;border-color:#ebc35e;box-shadow:0 4px 0 #dbb451;color:#69491d}nav button:nth-child(2).active{background:#daf0ff;border-color:#9acceb;box-shadow:0 4px 0 #8abbd8;color:#255576}nav button:nth-child(3).active{background:#def3d4;border-color:#a2cc8a;box-shadow:0 4px 0 #8fbd76;color:#3d6335}nav button:nth-child(4).active{background:#ffe4ea;border-color:#e8aaba;box-shadow:0 4px 0 #da91a5;color:#83465a}.navicon{font-size:26px;line-height:1.4}.navfriend{padding:32px 8px 10px;text-align:center}.navfriend img{width:122px;height:122px;object-fit:contain}.navfriend p{font-size:14px;line-height:1.8;margin:0;background:white;padding:12px 5px;border:2px dashed #c7e1ed;border-radius:17px}main{padding:26px 30px 38px;min-width:0;outline:none}h1{font-size:31px;line-height:1.3;letter-spacing:1px;margin:6px 0 14px;font-weight:900}h2{font-size:22px;margin:0;font-weight:850;line-height:1.4}h3{font-size:19px;margin:0 0 6px;line-height:1.5;font-weight:850}p{line-height:1.75}small,.sub{font-size:14px;line-height:1.7;color:var(--muted)}.eyebrow{font-size:14px;color:var(--muted);margin:0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.balance{display:flex;align-items:center;gap:7px;background:#fff0b5;border:2px solid #e9c869;border-radius:22px;padding:8px 15px;font-size:18px;font-weight:850;color:#73531e;box-shadow:0 3px 0 #efd994;white-space:nowrap}.balance img{width:31px;height:31px;object-fit:contain}.balance small{font-size:13px;color:#73531e}.story-hero{position:relative;border-radius:27px;min-height:225px;margin:18px 0 25px;overflow:hidden;background:#e4f4ff;border:3px solid #baddf0;box-shadow:0 5px 0 #d4e8ef}.scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 55%}.story-copy{position:relative;z-index:1;padding:27px 24px;max-width:55%;min-height:225px;background:linear-gradient(90deg,#effafff0,#effaffc9 70%,#effaff00)}.story-copy h1{font-size:31px;color:#195b81;margin:10px 0 8px;text-shadow:0 2px #fff}.story-copy p{font-size:15px;color:#345c74;margin:8px 0}.story-tag{display:inline-block;background:#ffffffe3;padding:5px 10px;border-radius:12px;font-size:13px;font-weight:750;color:#56765f;border:1px solid white}.sectionhead{margin:24px 0 16px}.sectionhead h2{display:flex;align-items:center;gap:8px}.sectionicon{font-size:25px}.count{font-size:14px;color:#527489;font-weight:650;background:#edf4f8;border-radius:12px;padding:3px 9px}.link{color:#166d9f;font-size:14px;font-weight:800;padding:9px;text-decoration:underline;text-underline-offset:4px}.primary{display:block;width:100%;border:2px solid #14699e;background:#2a92c8;color:white;border-radius:17px;padding:14px 20px;margin-top:17px;font-size:17px;font-weight:850;box-shadow:0 5px 0 #17699a;text-shadow:0 1px #1b669a;line-height:1.5}.primary.gold{background:#ffd35b;color:#5f431b;border-color:#e1b63d;box-shadow:0 5px 0 #cb9f2a;text-shadow:none}.primary:disabled{background:#edf0ed;border-color:#d6ddda;box-shadow:0 3px 0 #d6ddda;color:#627169;text-shadow:none}.secondary{background:#edf7fc;padding:12px 18px;border:2px solid #c4dfed;border-radius:14px;font-weight:750}.cards{display:grid;gap:16px}.task{display:flex;align-items:center;gap:15px;border:2px solid #a8d6ef;border-radius:22px;padding:18px 16px;background:#e9f6ff;box-shadow:0 5px 0 #c8e5f5;position:relative}.task:nth-child(2){background:#fff6d7;border-color:#edcf80;box-shadow:0 5px 0 #f0dfa7}.task:nth-child(3){background:#fff0f3;border-color:#e8b9c8;box-shadow:0 5px 0 #efd0da}.task .copy{flex:1;min-width:0}.task h3{font-size:19px;margin:2px 0 5px}.task-kicker{font-size:12px;font-weight:750;color:#587287;letter-spacing:1px}.sticker{display:flex;flex:none;align-items:center;justify-content:center;background:white;border:2px solid #ffffff;border-radius:21px;width:82px;height:88px;box-shadow:0 4px 0 #1c608217;transform:rotate(-5deg)}.task:nth-child(2) .sticker{transform:rotate(4deg)}.art{display:inline-block;flex:none;width:70px;height:70px;background-image:url('growth-art.webp');background-repeat:no-repeat;background-size:738.5px 1043.7px;border-radius:17px}.star{background-position:-8px -25px}.bag{background-position:-63px -328px}.book{background-position:-287px -326px}.clock{background-position:-26px -146px}.ball{background-position:-426px -327px}.heart{background-position:-22px -659px}.sprout{background-position:-27px -849px}.donebutton{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;width:61px;min-height:61px;background:white;border:2px solid #9dcae2;border-radius:19px;color:#1c729f;box-shadow:0 4px 0 #99bfd3;font-size:24px}.donebutton small{font-size:12px;font-weight:850;color:inherit}.done{border-color:#afd2a1!important;background:#e9f6e1!important;box-shadow:0 5px 0 #cce4bf!important}.done .donebutton{background:#72a561;color:white;box-shadow:0 3px 0 #558447;border-color:#649b51}.empty-challenges{border:2px dashed #efcb73;border-radius:22px;background:#fffae7;padding:22px;text-align:center}.empty-challenges h3{font-size:20px}.empty-challenges p{margin:8px 0}.sticker-trio{display:flex;justify-content:center;gap:17px;margin:3px 0 20px}.sticker-trio .sticker:nth-child(2){transform:rotate(6deg)}.sticker-trio .sticker:nth-child(3){transform:rotate(-3deg)}.plan-link{display:flex;align-items:center;gap:13px;margin-top:23px;text-align:left;width:100%;padding:16px 17px;background:#e7f3fe;border:2px solid #bcdcec;border-radius:19px;box-shadow:0 4px 0 #d2e8f4}.plan-link .plan-mini{font-size:30px}.plan-link .copy{flex:1}.plan-link strong{font-size:17px}.plan-link .sub{display:block;font-size:13px}.footnote{font-size:14px;color:var(--muted);text-align:center;margin:20px 0 0}.mood-panel{background:#fff;border:2px solid #e0ebed;border-radius:24px;padding:18px;margin-top:25px}.mood-panel .sectionhead{margin:0 0 12px}.moods{display:flex;gap:8px}.moods button{flex:1;min-width:0;border:2px solid transparent;background:#f1f7fa;border-radius:17px;padding:12px 4px;font-size:30px}.moods button:nth-child(2){background:#edf7e9}.moods button:nth-child(3){background:#fff7de}.moods button:nth-child(4){background:#fff0f2}.moods button:nth-child(5){background:#f0ecfa}.moods button span{display:block;font-size:13px;margin-top:5px;color:var(--ink)}.moods .chosen{border-color:#d6a734!important;box-shadow:0 3px 0 #dab34e;background:#ffe7a0!important}.intro{display:flex;align-items:center;gap:16px;background:#eaf6ff;border:2px solid #bddcec;border-radius:24px;margin:20px 0 25px;padding:17px 20px}.intro p{margin:4px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.page-heading .mascot{width:108px;height:108px;object-fit:contain;transform:rotate(5deg)}.page-heading h1{margin-bottom:5px}.page-heading p{margin:0}.tip{display:flex;gap:10px;background:#fff5d7;border:2px solid #ecdca7;border-radius:16px;padding:13px 15px;font-size:14px;line-height:1.7;margin:16px 0 22px}.plan-path{position:relative;padding-left:3px}.planrow{position:relative;display:flex;align-items:center;gap:12px;margin:0 0 17px;background:#f1f9ff;border:2px solid #c5e1f0;box-shadow:0 4px 0 #e0edf5;border-radius:20px;padding:15px 13px}.planrow:nth-child(2n){background:#fff7e1;border-color:#eeddad;box-shadow:0 4px 0 #f4e9c8}.planrow:nth-child(3n){background:#edf8e8;border-color:#c5dfb7;box-shadow:0 4px 0 #e0edd6}.number{display:flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;border-radius:50%;background:#fff;border:2px solid #bfd8e5;font-weight:800;font-size:15px}.plan-emoji{font-size:33px}.planrow strong{flex:1;line-height:1.5}.move{width:41px;height:44px;border:2px solid #c8dde7;background:white;border-radius:13px;font-size:22px;box-shadow:0 3px 0 #d8e4ea}.move:disabled{opacity:.3;box-shadow:none}.pill{display:inline-block;font-size:13px;background:#eaf3f8;color:#436b83;border-radius:13px;padding:4px 10px;line-height:1.65}.planbook .pill{margin-bottom:17px;background:#fff;border:2px dashed #c4dfec;font-size:14px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.tile{min-width:0;border:2px solid #d7e7ee;border-radius:23px;padding:21px 17px;background:white;box-shadow:0 4px 0 #e4edf1}.tile p{margin:7px 0}.skill-grid .tile{text-align:center;background:#f0f9ff;border-color:#bcdcef;box-shadow:0 5px 0 #d8eaf3}.skill-grid .tile:nth-child(3n+2){background:#fff8df;border-color:#eed798;box-shadow:0 5px 0 #f2e6bb}.skill-grid .tile:nth-child(3n){background:#fff0f3;border-color:#eac5d0;box-shadow:0 5px 0 #f0dbe2}.skill-badge{position:relative;display:flex;align-items:center;justify-content:center;background:white;border:6px double #89bfdc;border-radius:50%;width:100px;height:100px;margin:0 auto 15px;box-shadow:0 4px 0 #bedceb}.skill-grid .tile:nth-child(3n+2) .skill-badge{border-color:#e7c163;box-shadow:0 4px 0 #ebdcaa}.skill-grid .tile:nth-child(3n) .skill-badge{border-color:#daa4b8;box-shadow:0 4px 0 #e6c6d2}.badge-level{position:absolute;bottom:-10px;background:#fff3b8;border:2px solid #d8b756;border-radius:10px;padding:1px 10px;font-size:12px;font-weight:850;color:#725126}.progress{height:13px;background:#fff;border:2px solid #d0e1e8;border-radius:12px;overflow:hidden;margin:15px 0 9px}.progress span{display:block;height:100%;background:repeating-linear-gradient(120deg,#77b774 0 8px,#94c78b 8px 16px);border-radius:10px}.skill-stars{font-size:20px;color:#e2aa28;letter-spacing:3px;margin-top:7px}.skill-stars .unearned{color:#8c9aa1}.reward-banner{border:2px solid #d2adb8;background:#fff0f3;border-radius:25px;padding:19px 22px;margin:18px 0 23px;display:flex;align-items:center;gap:16px}.reward-banner .rewardicon{background:white;border-radius:22px;transform:rotate(-5deg);padding:10px;font-size:39px}.reward-banner h3{margin-bottom:5px}.reward-banner p{margin:0}.reward-grid .tile{padding:0;overflow:hidden;border-color:#d3c0e6;box-shadow:0 5px 0 #e5d9f1;background:#fff}.reward-top{text-align:center;background:#f3ecfd;position:relative;padding:20px 10px 16px;border-bottom:2px dashed #d8c4e9}.reward-grid .tile:nth-child(3n+2){border-color:#e7c18a;box-shadow:0 5px 0 #f0dfc4}.reward-grid .tile:nth-child(3n+2) .reward-top{background:#fff2d9;border-color:#e7c18a}.reward-grid .tile:nth-child(3n) {border-color:#aaccc8;box-shadow:0 5px 0 #d7e8e5}.reward-grid .tile:nth-child(3n) .reward-top{background:#e8f7ef;border-color:#aaccc8}.rewardicon{font-size:50px;line-height:1.35;filter:drop-shadow(0 4px 0 #253c5b12)}.reward-category{font-size:12px;letter-spacing:2px;color:#6f5984;margin:8px 0 0;font-weight:750}.reward-body{padding:17px 16px}.reward-body h3{font-size:18px}.reward-body .sub{min-height:48px}.reward-body .primary{font-size:15px;padding:10px 6px;margin-top:12px}.receipt{background:#fff6df;border:2px dashed #d5be80;border-radius:16px;padding:14px 17px;margin-bottom:12px;font-size:15px}.receipt .sub{margin-top:4px}.empty-coupons{padding:21px;background:#fff8f0;border:2px dashed #e5cfb1;border-radius:18px;text-align:center}.empty-coupons .rewardicon{font-size:35px}.empty-coupons p{margin:5px 0}.note{background:#fff5d8;border:2px solid #ebd390;border-radius:20px;padding:20px;margin-top:20px}.note h3{color:#76612b}.note p{margin:6px 0}.metric{font-size:34px;font-weight:850;color:#207caa}.guide{line-height:1.9}.guide li{margin:8px 0}.guide table{width:100%;border-collapse:collapse;font-size:14px}.guide td,.guide th{padding:10px;border-bottom:1px solid var(--line);text-align:left}dialog{border:3px solid #b8dced;border-radius:28px;width:calc(100% - 28px);max-width:495px;max-height:90dvh;padding:25px;color:var(--ink);background:#fffcf6;box-shadow:0 12px 0 #244e6a1c,0 30px 90px #123c6240}dialog::backdrop{background:#1b456871;backdrop-filter:blur(4px)}dialog h2{padding-right:33px}dialog p{margin:13px 0}.close{position:absolute;right:15px;top:15px;width:39px;height:39px;background:white;border:2px solid #d5e5ed;border-radius:50%;font-size:23px;line-height:1}.choice{display:block;width:100%;padding:16px;text-align:left;border:2px solid #d5e5ed;background:white;border-radius:17px;margin:10px 0;box-shadow:0 3px 0 #e2e9eb}.choice.selected{border-color:#e2b642;background:#fff2be;box-shadow:0 3px 0 #e9d493}.task-choice{display:flex;align-items:center;gap:13px;padding:10px 14px;font-weight:800}.task-choice .art{transform:scale(.7);margin:-9px}.task-choice .choice-check{margin-left:auto;font-size:22px}.completion-art{display:block;width:95px;height:95px;object-fit:contain;margin:0 auto 10px}.self-choice{background:#fff4d0;border-color:#e4cc87}.help-choice{background:#ecf7e7;border-color:#b9d5a7}.choice-title{font-weight:850;font-size:18px;display:block;margin-bottom:5px}.choice-title .choice-emoji{font-size:26px;vertical-align:middle;margin-right:7px}label{display:block;font-size:14px;margin-top:15px}input,select{display:block;width:100%;background:white;color:var(--ink);border:2px solid #c7dee9;border-radius:12px;padding:11px;margin-top:7px}details{margin:18px 0}summary{cursor:pointer;font-weight:800;line-height:1.7}a{color:#14699d}.toast{position:fixed;bottom:96px;left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100% - 30px);width:max-content;background:#234d69;color:white;border:2px solid #fff;padding:14px 22px;border-radius:20px;box-shadow:0 7px 25px #12395630;pointer-events:none;text-align:center;font-size:15px}.celebration{display:flex;align-items:center;gap:12px;background:#fff4be;color:#684c23;border:3px solid #ebc24d;padding:13px 22px 13px 12px}.celebration img{width:67px;height:67px;object-fit:contain}.celebration strong{display:block;font-size:20px}.celebration small{display:block;color:#6e572f;font-size:14px;margin-top:5px}.confetti{position:fixed;inset:0;pointer-events:none;z-index:19;overflow:hidden}.confetti i{position:absolute;left:50%;top:48%;width:9px;height:15px;background:var(--confetti-color);border-radius:3px;opacity:0;animation:confetti-pop 1.15s ease-out forwards}.reward-grid,.skill-grid,.cards{padding-bottom:4px}button{transition:transform .13s,box-shadow .13s,background-color .13s}button:hover:not(:disabled){filter:brightness(1.025)}
@keyframes confetti-pop{0%{opacity:1;transform:translate(0,0) rotate(0deg)}80%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin))}}@keyframes hello{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(5deg)}}@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes celebrate{from{transform:translateX(-50%) scale(.85);opacity:0}to{transform:translateX(-50%) scale(1);opacity:1}}@media(prefers-reduced-motion:no-preference){.brand-mascot{animation:hello 2.8s ease-in-out 3}.cards .task{animation:reveal .25s ease-out both}.cards .task:nth-child(2){animation-delay:.05s}.cards .task:nth-child(3){animation-delay:.1s}.toast{animation:celebrate .25s ease-out}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
@media(max-width:900px){.app{grid-template-columns:155px minmax(0,1fr);margin:0 15px 30px}nav{padding:25px 10px}nav button{gap:6px;font-size:15px;padding:13px 8px}main{padding:22px}.story-copy{padding:23px 18px}.story-copy h1{font-size:28px}.story-copy p{font-size:14px}.task{gap:11px}}
@media(max-width:720px){header{padding:12px 15px;gap:7px}.brand{font-size:20px;letter-spacing:0;gap:4px}.brand small{font-size:11px;letter-spacing:0}.brand-mascot{width:48px;height:55px}.parent{font-size:12px;padding:9px 10px;border-radius:19px}.parent span{display:none}.app{display:block;margin:0 9px 16px;border-width:3px;border-radius:27px;min-height:calc(100dvh - 95px);overflow:visible}main{padding:18px 15px 114px;overflow:hidden;border-radius:25px}nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:center;gap:5px;border:0;border-top:3px solid #c1dfec;padding:8px 10px calc(10px + env(safe-area-inset-bottom));background:#fffdf6f7;backdrop-filter:blur(12px)}nav button{flex:1;max-width:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 2px;gap:2px;margin:0;border-radius:16px;font-size:13px;min-height:58px}nav .navicon{font-size:24px;line-height:1.25}.navfriend{display:none}h1{font-size:27px}h2{font-size:20px}h3{font-size:18px}.eyebrow{font-size:12px}.balance{font-size:16px;padding:5px 10px;gap:4px}.balance img{width:26px;height:26px}.balance small{font-size:12px}.story-hero{margin:17px -3px 23px;min-height:192px;border-radius:22px}.story-copy{padding:18px 13px;max-width:58%;min-height:192px}.story-copy h1{font-size:25px;line-height:1.35;letter-spacing:0;margin:9px 0 7px}.story-copy p{font-size:13px;line-height:1.65;margin:5px 0}.story-tag{font-size:11px;padding:4px 7px}.scene{object-position:64% 55%}.sectionhead{margin:22px 0 15px}.sectionhead h2{gap:5px}.sectionicon{font-size:22px}.count{padding:3px 7px;font-size:12px}.link{font-size:13px;padding:8px 4px}.cards{gap:15px}.task{gap:10px;padding:15px 11px;border-radius:20px}.sticker{width:62px;height:70px;border-radius:17px}.sticker .art{transform:scale(.8);margin:-7px}.task h3{font-size:17px;margin:3px 0 4px}.task .sub{font-size:12px;line-height:1.65}.task-kicker{font-size:10px;letter-spacing:.5px}.donebutton{width:48px;min-height:56px;border-radius:15px;font-size:22px}.donebutton small{font-size:10px}.empty-challenges{padding:19px 16px}.empty-challenges h3{font-size:19px}.sticker-trio{gap:18px;margin:2px 0 17px}.primary{font-size:16px;padding:13px 15px}.plan-link{padding:13px 12px;gap:10px;margin-top:20px}.plan-link strong{font-size:16px}.plan-link .sub{font-size:12px}.plan-link .plan-mini{font-size:29px}.mood-panel{padding:15px 10px;margin-top:22px}.mood-panel h2{font-size:18px}.mood-panel .sub{font-size:12px}.moods{gap:5px}.moods button{font-size:26px;padding:10px 2px;border-radius:14px}.moods button span{font-size:11px}.footnote{font-size:12px}.page-heading .mascot{width:85px;height:85px}.page-heading h1{font-size:26px}.page-heading .sub{font-size:13px}.tip{padding:12px;font-size:13px;margin:14px 0 22px}.planrow{gap:8px;padding:12px 9px}.number{width:25px;height:25px;font-size:13px}.plan-emoji{font-size:25px}.planrow strong{font-size:15px}.move{width:34px;height:43px;font-size:20px}.grid{gap:13px}.tile{padding:18px 11px;border-radius:20px}.skill-grid h3{font-size:16px}.skill-badge{width:86px;height:86px;border-width:5px;margin-bottom:17px}.skill-badge .art{transform:scale(.86)}.skill-grid .pill{font-size:11px;padding:4px 7px}.skill-grid .sub{font-size:12px}.skill-stars{font-size:18px;letter-spacing:2px}.progress{margin-top:12px}.reward-banner{padding:15px 12px;gap:12px}.reward-banner .rewardicon{font-size:32px;padding:8px}.reward-banner h3{font-size:18px}.reward-banner .sub{font-size:13px}.reward-top{padding:16px 8px 12px}.rewardicon{font-size:43px}.reward-category{font-size:10px}.reward-body{padding:13px 10px}.reward-body h3{font-size:16px}.reward-body .sub{font-size:12px;min-height:42px}.reward-body .primary{font-size:13px;padding:10px 3px;border-radius:13px}.receipt{font-size:14px;padding:13px}.intro{padding:15px 13px;gap:10px}.intro .art{transform:scale(.8);margin:-7px}.intro h3{font-size:17px}.intro .sub{font-size:13px}dialog{padding:23px 18px;border-radius:24px;max-height:88dvh}.toast{bottom:106px}.celebration{gap:7px;padding:10px 14px 10px 7px}.celebration img{width:55px;height:55px}.celebration strong{font-size:18px}.celebration small{font-size:12px}}
@media(max-width:360px){.brand{font-size:18px}.brand small{font-size:10px}.brand-mascot{width:38px}.parent{font-size:11px;padding:8px}.app{margin-left:5px;margin-right:5px}main{padding-left:11px;padding-right:11px}.story-copy{max-width:63%}.story-copy h1{font-size:23px}.task .sticker{width:50px;height:61px}.task .sticker .art{transform:scale(.67)}.task{gap:7px;padding:12px 8px}.task h3{font-size:16px}.task .sub{font-size:11px}.donebutton{width:44px}.planrow{gap:5px}.plan-emoji{font-size:23px}.move{width:31px}.reward-body h3{font-size:15px}}
/* Keep task instructions readable on small screens. */
@media(max-width:720px){.task .sub,.reward-body .sub,.page-heading .sub,.intro .sub,.tip,.story-copy p{font-size:14px}.task-kicker{font-size:12px}.donebutton small,.moods button span{font-size:12px}.reward-body .primary{font-size:14px}.brand small{font-size:12px}.reward-body .sub{min-height:48px}.task{align-items:center}.task .copy{overflow-wrap:anywhere}.story-copy{min-height:210px}.story-hero{min-height:210px}.story-tag{font-size:12px}.reward-category{font-size:12px}}
@media(max-width:360px){.brand small{display:none}.task .sub{font-size:14px}.task-kicker{font-size:12px}.story-copy p{font-size:14px}}

/* ===== 交互特效：飞星、彩带爆发、余额弹跳、页面淡入、心情弹跳 ===== */
@keyframes bump{0%{transform:scale(1)}35%{transform:scale(1.28) rotate(-5deg)}70%{transform:scale(.94)}100%{transform:scale(1)}}
@keyframes page-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes burst-fly{0%{opacity:1;transform:translate(-50%,-50%) rotate(0deg)}75%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) rotate(var(--spin))}}
@keyframes pop-choice{0%{transform:scale(.72)}60%{transform:scale(1.14)}100%{transform:scale(1)}}
.fly-star{position:fixed;z-index:120;width:46px;height:46px;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 4px 8px #ffc83d88)}
.balance.bump{animation:bump .55s ease-out}
main.page-in{animation:page-in .3s ease-out}
.moods button.chosen{animation:pop-choice .35s ease-out}
.burst{position:fixed;inset:0;z-index:110;pointer-events:none;overflow:hidden}
.burst i{position:absolute;left:50%;top:42%;width:12px;height:12px;border-radius:3px;background:var(--confetti-color);animation:burst-fly var(--dur,1.2s) cubic-bezier(.16,.7,.3,1) forwards}
@media(prefers-reduced-motion:reduce){.burst,.fly-star{display:none}}

/* ===== 夜间模式：小星星的夜空 ===== */
.header-actions{display:flex;gap:10px;align-items:center}
.theme-btn{background:#ffffffce;border:2px solid #c3e2ef;border-radius:25px;padding:10px 14px;font-size:17px;line-height:1;box-shadow:0 3px 0 #beddea}
@keyframes twinkle{0%,100%{opacity:.3}55%{opacity:1}}
@keyframes moon-float{0%,100%{transform:translateY(0)}50%{transform:translateY(14px)}}
@keyframes meteor{0%,86%{opacity:0;transform:translate(0,0)}89%{opacity:1}96%{opacity:1}100%{opacity:0;transform:translate(-46vw,26vh)}}
.sky{display:none}
body.night .sky{display:block;position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.sky i{position:absolute;display:block}
.sky .moon{top:5%;right:6%;width:86px;height:86px;border-radius:50%;background:radial-gradient(circle at 36% 34%,#fffdf0,#ffedae 58%,#f6d173);box-shadow:0 0 50px 18px #ffe9a84d,0 0 120px 60px #ffe9a81f;animation:moon-float 9s ease-in-out infinite}
.sky .moon::before,.sky .moon::after{content:'';position:absolute;border-radius:50%;background:#f2d48866}
.sky .moon::before{width:20px;height:20px;top:22px;left:24px}
.sky .moon::after{width:13px;height:13px;top:48px;left:52px}
.sky .stars{inset:0;background-repeat:repeat}
.sky .stars-a{background-image:radial-gradient(#ffffff 1.2px,transparent 1.7px),radial-gradient(#ffe9a8 1px,transparent 1.5px);background-size:118px 118px,186px 186px;background-position:0 0,63px 84px;animation:twinkle 3.4s ease-in-out infinite}
.sky .stars-b{background-image:radial-gradient(#cfe0ff 1.6px,transparent 2.1px),radial-gradient(#ffffff 1px,transparent 1.4px);background-size:264px 264px,340px 340px;background-position:131px 42px,200px 160px;animation:twinkle 4.9s ease-in-out infinite 1.3s}
.sky .meteor{top:11%;left:80%;width:3px;height:3px;border-radius:50%;background:#fff;box-shadow:0 0 8px 2px #ffffffb3;opacity:0;animation:meteor 17s linear infinite}
.sky .meteor::before{content:'';position:absolute;right:1px;top:50%;width:130px;height:2px;transform:translateY(-50%);background:linear-gradient(90deg,transparent,#ffffffd9);border-radius:2px}
body.night{--ink:#e9e6ff;--muted:#a3aede;--line:#3d4a85;color:var(--ink);background-color:#171e44;background-image:radial-gradient(#ffffff22 1.2px,transparent 1.6px),linear-gradient(168deg,#141b3f,#232a5e 55%,#31235f);background-size:30px 30px,100% 100%}
body.theme-anim,body.theme-anim *,body.theme-anim *:before,body.theme-anim *:after{transition:background-color .5s ease,border-color .5s ease,color .5s ease,box-shadow .5s ease,filter .5s ease!important}
body.night .theme-btn{background:#2c3570;border-color:#4a5aa5;box-shadow:0 0 16px #ffd75d40,0 3px 0 #1a2049}
body.night .parent{background:#2c3570d9;border-color:#4a5aa5;box-shadow:0 3px 0 #1a2049;color:#dfe4ff}
body.night .brand{color:#f0edff}
body.night .app{background:#232b5b;border-color:#4553a0;box-shadow:0 12px 0 #171d4280,0 0 46px #5a6fd022}
body.night nav{background:#1c2350;border-right-color:#3d4a85}
body.night nav button{color:#c9d2f5}
body.night nav button.active{background:#3a3070;border-color:#8a72d0;box-shadow:0 0 16px #8a72d055,0 4px 0 #241a4a;color:#e6d9ff}
body.night nav button:nth-child(2).active{background:#1f3a63;border-color:#4a80c0;box-shadow:0 0 16px #4a80c055,0 4px 0 #12233f;color:#cfe6ff}
body.night nav button:nth-child(3).active{background:#1f4526;border-color:#5f9a55;box-shadow:0 0 16px #5f9a5555,0 4px 0 #122a15;color:#d6f0cc}
body.night nav button:nth-child(4).active{background:#4a2340;border-color:#b06090;box-shadow:0 0 16px #b0609055,0 4px 0 #2c1226;color:#ffd6e8}
body.night .navfriend p{background:#2a3570;border-color:#4a5aa0;color:#c9d2f5}
body.night .balance{box-shadow:0 0 20px #ffd75d59,0 3px 0 #efd994}
body.night .brand-mascot,body.night .navfriend img,body.night .page-heading .mascot,body.night .wallet-star,body.night .celebration img,body.night .completion-art{filter:drop-shadow(0 0 12px #ffd75d73)}
body.night .story-hero{background:#1a2148;border-color:#4553a0;box-shadow:0 5px 0 #171d42}
body.night .scene{filter:brightness(.6) saturate(.85) hue-rotate(-15deg)}
body.night .story-copy{background:linear-gradient(90deg,#232b5bf2,#232b5bc9 70%,#232b5b00)}
body.night .story-copy h1{color:#cfe0ff;text-shadow:0 0 16px #4a6cd080}
body.night .story-copy p{color:#a9b8e8}
body.night .story-tag{background:#2c3570e3;border-color:#4a5aa5;color:#ffd88a}
body.night .count{background:#2a3570;color:#a3aede}
body.night .link{color:#8fc3f0}
body.night .primary{background:#2f7fc0;border-color:#4a80c0;box-shadow:0 5px 0 #1a4a80;text-shadow:0 1px #1a4a80}
body.night .primary.gold{background:#ffd35b;color:#5f431b;border-color:#e1b63d;box-shadow:0 0 18px #ffd75d40,0 5px 0 #cb9f2a}
body.night .primary:disabled{background:#2a3160;border-color:#3d4a85;box-shadow:0 3px 0 #3d4a85;color:#6a76a8}
body.night .secondary{background:#2a3570;border-color:#4a5aa5;color:#dfe4ff}
body.night .task{background:#1f3350;border-color:#3d6ba8;box-shadow:0 5px 0 #16233a}
body.night .task:nth-child(2){background:#453a1c;border-color:#a8813a;box-shadow:0 5px 0 #2c2410}
body.night .task:nth-child(3){background:#4a2432;border-color:#a85a75;box-shadow:0 5px 0 #301720}
body.night .task-kicker{color:#8fa3d8}
body.night .sticker{background:#e8ecff;border-color:#e8ecff;box-shadow:0 4px 0 #00000033}
body.night .donebutton{background:#2a3570;border-color:#4a6ac0;color:#bfe0ff;box-shadow:0 4px 0 #1a2450}
body.night .done{border-color:#5f8f4a!important;background:#27431f!important;box-shadow:0 5px 0 #182a13!important}
body.night .done .donebutton{background:#5f9a55;box-shadow:0 3px 0 #3d6b35;border-color:#4f8a45}
body.night .empty-challenges{border-color:#a8813a;background:#3a3018}
body.night .plan-link{background:#1f3350;border-color:#3d6ba8;box-shadow:0 4px 0 #16233a}
body.night .mood-panel{background:#262e5c;border-color:#4553a0}
body.night .moods button{background:#2a3368}
body.night .moods button:nth-child(2){background:#27361f}
body.night .moods button:nth-child(3){background:#3d3418}
body.night .moods button:nth-child(4){background:#402028}
body.night .moods button:nth-child(5){background:#312a52}
body.night .moods button span{color:#c9d2f5}
body.night .moods .chosen{border-color:#e2b642!important;box-shadow:0 0 16px #ffd75d55,0 3px 0 #dab34e;background:#4a3d15!important}
body.night .intro{background:#1f3350;border-color:#3d6ba8}
body.night .tip{background:#3a3018;border-color:#8a6c30}
body.night .planrow{background:#1f3350;border-color:#3d6ba8;box-shadow:0 4px 0 #16233a}
body.night .planrow:nth-child(2n){background:#3a3018;border-color:#8a6c30;box-shadow:0 4px 0 #241c0c}
body.night .planrow:nth-child(3n){background:#1f3a26;border-color:#4a7a45;box-shadow:0 4px 0 #12240f}
body.night .number{background:#2a3570;border-color:#4a5aa5;color:#dfe4ff}
body.night .move{background:#2a3570;border-color:#4a5aa5;box-shadow:0 3px 0 #1a2049;color:#dfe4ff}
body.night .pill{background:#2a3570;color:#a3b8e8}
body.night .planbook .pill{background:#232b5b;border-color:#4a5aa5}
body.night .tile{background:#262e5c;border-color:#4553a0;box-shadow:0 4px 0 #171d42}
body.night .skill-grid .tile{background:#1f3350;border-color:#3d6ba8;box-shadow:0 5px 0 #16233a}
body.night .skill-grid .tile:nth-child(3n+2){background:#453a1c;border-color:#a8813a;box-shadow:0 5px 0 #2c2410}
body.night .skill-grid .tile:nth-child(3n){background:#4a2432;border-color:#a85a75;box-shadow:0 5px 0 #301720}
body.night .skill-badge{background:#1a2148;border-color:#4a6ac0;box-shadow:0 4px 0 #171d42}
body.night .skill-grid .tile:nth-child(3n+2) .skill-badge{border-color:#c09a4a;box-shadow:0 4px 0 #2c2410}
body.night .skill-grid .tile:nth-child(3n) .skill-badge{border-color:#b06090;box-shadow:0 4px 0 #301720}
body.night .badge-level{background:#4a3d15;border-color:#c09a4a;color:#ffd88a}
body.night .progress{background:#1a2148;border-color:#3d4a85}
body.night .skill-stars{color:#ffd75d;text-shadow:0 0 10px #ffd75d99}
body.night .skill-stars .unearned{color:#4a5488;text-shadow:none}
body.night .reward-banner{background:#4a2432;border-color:#a85a75}
body.night .reward-banner .rewardicon{background:#e8ecff}
body.night .reward-grid .tile{border-color:#7a5fc0;box-shadow:0 5px 0 #241a3e;background:#262e5c}
body.night .reward-top{background:#372a5c;border-color:#7a5fc0}
body.night .reward-grid .tile:nth-child(3n+2){border-color:#a8813a;box-shadow:0 5px 0 #2c2410}
body.night .reward-grid .tile:nth-child(3n+2) .reward-top{background:#453a1c;border-color:#a8813a}
body.night .reward-grid .tile:nth-child(3n){border-color:#4a8a72;box-shadow:0 5px 0 #142a20}
body.night .reward-grid .tile:nth-child(3n) .reward-top{background:#1f453a;border-color:#4a8a72}
body.night .reward-category{color:#b0a0d8}
body.night .receipt{background:#3a3018;border-color:#8a6c30}
body.night .empty-coupons{background:#33281a;border-color:#8a6c50}
body.night .note{background:#3a3018;border-color:#a8813a}
body.night .note h3{color:#ffd88a}
body.night .metric{color:#7fd0ff}
body.night dialog{background:#262e5c;border-color:#4a5aa5;color:#e9e6ff;box-shadow:0 12px 0 #00000033,0 30px 90px #00000066}
body.night dialog::backdrop{background:#0a0e2880}
body.night .close{background:#2a3570;border-color:#4a5aa5;color:#dfe4ff}
body.night .choice{background:#2a3368;border-color:#4553a0;box-shadow:0 3px 0 #171d42}
body.night .choice.selected{border-color:#e2b642;background:#4a3d15;box-shadow:0 3px 0 #6b5518}
body.night .self-choice{background:#453a1c;border-color:#a8813a}
body.night .help-choice{background:#1f3a26;border-color:#4a7a45}
body.night input,body.night select{background:#1a2148;color:#e9e6ff;border-color:#4553a0}
body.night a{color:#8fc3f0}
body.night .celebration{box-shadow:0 0 26px #ffd75d55}
@media(max-width:720px){body.night nav{background:#1c2350f7;border-top-color:#3d4a85}.theme-btn{padding:9px 10px;font-size:15px}}
@media(prefers-reduced-motion:reduce){.sky .meteor,.sky .stars-a,.sky .stars-b,.sky .moon{animation:none}}
.levelup{text-align:center}.levelup .completion-art{margin:0 auto}.levelup .eyebrow{margin-bottom:2px}.levelup h2{margin:4px 0 2px}.skill-stars.big{font-size:38px;letter-spacing:8px;margin:10px 0 14px;text-shadow:0 0 14px #ffd75d88}.skill-stars.big span{display:inline-block}@keyframes badge-pop{0%{transform:scale(0) rotate(-40deg);opacity:0}70%{transform:scale(1.25) rotate(6deg)}100%{transform:scale(1) rotate(0);opacity:1}}@media(prefers-reduced-motion:no-preference){.skill-stars.big span{animation:badge-pop .5s cubic-bezier(.3,1.4,.5,1) both}.skill-stars.big span:nth-child(2){animation-delay:.18s}.skill-stars.big span:nth-child(3){animation-delay:.36s}}
.grandslam h2{background:linear-gradient(92deg,#e2a200,#ff8a5c 45%,#e2a200);-webkit-background-clip:text;background-clip:text;color:transparent}.grandslam .skill-stars.big{text-shadow:0 0 18px #ffc83dcc}@keyframes crown-sway{0%,100%{transform:rotate(-5deg) translateY(0)}50%{transform:rotate(5deg) translateY(-6px)}}@media(prefers-reduced-motion:no-preference){.grandslam .completion-art{animation:crown-sway 1.6s ease-in-out 2}}
.balance-num{display:inline-block;overflow:hidden;height:1.25em;line-height:1.25em;vertical-align:bottom;min-width:.7em;text-align:center}.num-roll{display:inline-flex;flex-direction:column;animation:num-roll .48s cubic-bezier(.3,.7,.4,1) both}.num-roll span{display:block;height:1.25em;line-height:1.25em}@keyframes num-roll{from{transform:translateY(0)}to{transform:translateY(-1.25em)}}
