@charset "UTF-8";
:root{--paper:#faf8f0;--ink:#465743;--muted:#8b9582;--green:#64865a;--line:#e8e8db;--round:"YouYuan","幼圆","STYuanti","Hiragino Maru Gothic ProN","Microsoft YaHei",sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:var(--round);color:var(--ink);background:var(--paper);user-select:none;-webkit-user-select:none;overscroll-behavior:none}button,a,input{touch-action:manipulation}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b6a0d8;outline-offset:5px}button{border:0}button svg{display:block;width:100%;height:100%}.topbar{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:29px 4.3vw 20px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:22px;letter-spacing:1px;font-weight:700}.brand-flower{width:42px;height:42px;transform:rotate(-12deg)}.brand-flower svg{width:100%;height:100%}.brand-light{font-weight:500;margin-left:3px}.brand small{display:block;font-family:Georgia,serif;font-size:8px;letter-spacing:2px;margin-top:6px;color:#929b86;font-weight:400}.tools{display:flex;gap:13px;align-items:center}.tool{display:flex;align-items:center;gap:8px;background:transparent;padding:10px 11px;border-radius:20px;font-size:12px;color:#7c8873;position:relative;overflow:hidden;white-space:nowrap}.tool:hover{background:#eef0e5}.icon{height:19px;width:19px}.tool-divider{width:1px;height:17px;background:#dfe3d6;margin:0 2px}.parent{font-size:12px}.hold-fill{position:absolute;inset:0;background:#c7dab5;z-index:-1;transform:scaleX(0);transform-origin:left}.holding .hold-fill{transform:scaleX(1);transition:transform 1.2s linear}
#playground{position:relative;height:calc(100svh - 53px);min-height:420px;overflow:hidden;touch-action:none;isolation:isolate;background:radial-gradient(ellipse at 50% 52%,#f5f6e9 0%,transparent 58%)}.intro{position:relative;z-index:2;pointer-events:none;text-align:center;padding-top:clamp(115px,16vh,160px)}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#879479;background:#eff0e5;padding:7px 14px;border:1px solid #e5e9da;border-radius:20px;letter-spacing:2px;font-size:10px}.eyebrow>span{width:6px;height:6px;background:#a6b792;border-radius:50%}h1{font-size:clamp(32px,3.15vw,49px);font-weight:700;letter-spacing:4px;margin:21px 0 13px;position:relative;display:inline-block}h1>span{color:#779367}.title-spark{width:29px;height:29px;position:absolute;right:-39px;top:-8px;transform:rotate(10deg)}.intro>p{font-size:13px;color:#94a087;letter-spacing:2px;margin:0}.scene{position:absolute;inset:0;pointer-events:none;z-index:1}.landscape{position:absolute;width:100%;height:100%;bottom:-17px;left:0}.sun{transform-origin:304px 161px;animation:sun-sway 10s ease-in-out infinite}.friend{position:absolute;width:150px;z-index:2}.character{animation:bob 5s ease-in-out infinite;transform-origin:center bottom;filter:drop-shadow(0 3px 0 #7d6c3810)}.character svg{display:block;width:100%;height:100%}.friend-cat{left:17%;bottom:22%;transform:rotate(-10deg)}.friend-bunny{left:calc(50% - 70px);bottom:15.7%;width:140px}.friend-bunny .character{animation-delay:-2s}.friend-bear{right:16%;bottom:24%;width:148px;transform:rotate(9deg)}.friend-bear .character{animation-delay:-3s}.friend-shadow{display:block;background:#829b6e20;width:80%;height:12px;border-radius:50%;margin:-4px auto 0;filter:blur(2px)}.speech{position:absolute;top:-23px;left:80%;background:#fffdf5;padding:9px 12px;white-space:nowrap;border-radius:15px 15px 15px 3px;font-size:11px;color:#a4987b;transform:rotate(10deg);box-shadow:0 2px 0 #ecebdf}.friend-bear .speech{top:-23px;left:-45%;transform:rotate(-10deg);border-radius:15px 15px 3px 15px}.floating-flower{position:absolute;width:62px;height:62px;animation:flower-sway 7s ease-in-out infinite}.floating-flower svg{width:100%;height:100%}.flower-one{left:8%;bottom:26%;transform:rotate(-20deg)}.flower-two{right:7.8%;bottom:17%;width:48px;height:48px;animation-delay:-3s}.scene-star{position:absolute;color:#d9b56c;font-size:26px}.star-one{left:37%;top:46%;transform:rotate(12deg)}.star-two{right:31%;top:50%;font-size:17px;color:#b8a8cc}.star-three{left:12%;bottom:48%;font-size:29px;color:#b9c9a3}.play-invitation{position:absolute;left:50%;top:45%;transform:translate(-50%,-20%);text-align:center;white-space:nowrap;z-index:3}.keycaps{height:40px;display:flex;gap:7px;align-items:center;justify-content:center;margin-bottom:15px}.keycaps>span:not(.click-doodle){display:grid;place-items:center;width:35px;height:35px;border:1.5px solid #cfd9bf;border-radius:9px;color:#9eaf8f;background:#f8f9ed;box-shadow:0 3px 0 #dce3ce;font-family:Georgia,serif;font-size:16px;transform:rotate(-9deg)}.keycaps>span:nth-child(2){transform:translateY(-4px) rotate(5deg)}.keycaps>span:nth-child(3){transform:rotate(13deg)}.click-doodle{font-size:37px;line-height:1;color:#afba9e;transform:rotate(-15deg);margin-left:8px}.play-invitation h2{font-size:20px;letter-spacing:2px;font-weight:500;color:#80936e;margin:0 0 11px}.play-invitation p{font-size:11px;letter-spacing:1px;color:#a4ad94;margin:0}.tiny-arrow{display:block;margin-top:11px;color:#b1bba0;font-size:22px}.bottom-area{position:absolute;bottom:25px;left:0;right:0;z-index:4;display:flex;flex-direction:column;align-items:center;gap:20px}.modes{display:flex;gap:8px;background:#fffff5a6;border:1px solid #e5e7d7;padding:7px;border-radius:50px;box-shadow:0 5px 12px #6d80500a}.mode{display:flex;align-items:center;gap:9px;background:transparent;border-radius:30px;padding:13px 23px;font-size:12px;color:#9ca18c;letter-spacing:1px;transition:background .25s,color .25s}.mode.active{background:#6e8c60;color:#fffef4;box-shadow:0 2px 4px #5b784026}.mode:hover:not(.active){background:#edf0df}.mode-icon{height:25px;width:25px;display:block}.mode-icon svg{width:100%;height:100%}.mode-icon#music-icon{color:#c2acd4}.selected-dot{height:5px;width:5px;background:currentColor;border-radius:50%;display:none;margin-left:3px}.mode.active .selected-dot{display:block}.play-notes{display:flex;align-items:center;gap:17px;font-size:10px;color:#8d9b7f;letter-spacing:1px}.play-notes>span{display:flex;align-items:center;gap:6px}.play-notes svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}.play-notes i{height:3px;width:3px;background:#b7c1aa;border-radius:50%}footer{height:53px;display:flex;justify-content:space-between;align-items:center;padding:0 4.3vw;font-size:10px;letter-spacing:1px;color:#9da591;background:var(--paper);border-top:1px solid #e9ebdf;position:relative;z-index:4}.footer-flower{color:#cbb581;margin-left:8px;font-size:16px}.footer-dot{margin:0 9px;color:#bcc2b2}
#effects{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}.effect{position:absolute;width:95px;height:95px;animation:appear 3.2s ease-out forwards;will-change:transform,opacity;transform-origin:center}.effect svg{width:100%;height:100%}.effect.trail{width:24px;height:24px;animation:trail 1.4s ease-out forwards}.effect.bubble{animation:float-up 3.2s ease-out forwards}.effect.note{width:65px;height:65px}.effect.small{width:70px;height:70px}.friend.hello .character{animation:hello .65s ease-in-out}.bubbles-scenery{position:absolute;inset:0;overflow:hidden}.ambient-bubble{position:absolute;border:1.5px solid #b6d6ce;border-radius:50%;background:#e3f1e650;box-shadow:inset 6px 5px 0 #fff9;animation:ambient-rise 12s ease-in-out infinite}.music-decoration{position:absolute;color:#c4b4d5;font-family:Georgia,serif;font-size:44px;animation:bob 5s ease-in-out infinite}#playground[data-mode=bubbles]{background:radial-gradient(ellipse at 50% 55%,#eaf4ee,transparent 65%)}#playground[data-mode=music]{background:radial-gradient(ellipse at 50% 55%,#f2eefa,transparent 65%)}#toast{position:fixed;bottom:140px;left:50%;transform:translateX(-50%);z-index:20;border-radius:30px;background:#465743e8;color:#fff;padding:12px 20px;font-size:12px;pointer-events:none;opacity:0;transition:opacity .25s}#toast.visible{opacity:1}dialog{color:var(--ink);border:1px solid #e2e5d7;border-radius:28px;width:min(430px,calc(100vw - 36px));padding:32px;box-shadow:0 25px 100px #35432b26;background:#fffdf5}dialog::backdrop{background:#45563d45;backdrop-filter:blur(5px)}.close-dialog{position:absolute;right:18px;top:14px;background:transparent;font-size:25px;color:#98a18e}.dialog-flower{font-size:40px;color:#dcb567}dialog h2{font-size:23px;margin:15px 0 9px}dialog p{font-size:12px;line-height:1.8;color:#8c9782}.parent-tip{font-size:12px;line-height:1.9;background:#eff2e5;border-radius:14px;padding:15px;margin:20px 0}.volume-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:14px}input[type=range]{accent-color:#779367;width:100%;margin:0 0 20px}.motion-label{font-size:13px;display:flex;align-items:center;gap:8px}.motion-label small{font-size:10px;color:#9da58f}.motion-label input{accent-color:#779367}.browser-note{font-size:10px!important;margin:20px 0}.primary-button{display:flex;justify-content:center;gap:18px;width:100%;padding:15px;border-radius:30px;background:#6e8c60;color:#fffdf2;font-size:13px}.rest-button{display:block;width:100%;padding:15px 0 0;background:transparent;color:#95a087;font-size:11px}#rest-screen{position:fixed;inset:0;z-index:30;background:#f2f0e6;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;text-align:center}#rest-screen[hidden]{display:none}#rest-screen>span{font-size:80px;color:#b5bba1}#rest-screen h2{font-size:28px;font-weight:500}#rest-screen p{font-size:13px;color:#8e9880}#rest-screen button{width:auto;padding:16px 28px;margin-top:35px}#rest-screen small{color:#9da58f;font-size:10px;margin-top:15px}.calm .character,.calm .floating-flower,.calm .sun,.calm .music-decoration,.calm .ambient-bubble{animation:none}.calm .effect{animation:fade-feedback 2.2s ease-out forwards}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}@keyframes sun-sway{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}@keyframes flower-sway{0%,100%{rotate:-10deg}50%{rotate:10deg}}@keyframes hello{0%,100%{transform:translateY(0)}45%{transform:translateY(-23px) rotate(9deg)}}@keyframes appear{0%{opacity:0;transform:translate(-50%,-30%) scale(.3) rotate(-12deg)}12%{opacity:1;transform:translate(-50%,-60%) scale(1.07) rotate(7deg)}25%{transform:translate(-50%,-60%) scale(1) rotate(-3deg)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-125%) scale(.85) rotate(9deg)}}@keyframes trail{0%{opacity:.8;transform:translate(-50%,-50%) scale(.4) rotate(0)}30%{opacity:.8;transform:translate(-50%,-70%) scale(1) rotate(25deg)}100%{opacity:0;transform:translate(-50%,-150%) scale(.2) rotate(70deg)}}@keyframes float-up{0%{opacity:0;transform:translate(-50%,-30%) scale(.3)}15%{opacity:1;transform:translate(-50%,-60%) scale(1)}80%{opacity:.8}100%{opacity:0;transform:translate(-50%,-230%) scale(.8)}}@keyframes ambient-rise{0%,100%{transform:translateY(15px)}50%{transform:translateY(-25px)}}@keyframes fade-feedback{0%{opacity:0;transform:translate(-50%,-50%)}15%,70%{opacity:1;transform:translate(-50%,-50%)}100%{opacity:0;transform:translate(-50%,-50%)}}
@media(min-width:1600px){.friend-cat{left:22%}.friend-bear{right:21%}.friend{width:180px}.friend-bunny{width:160px;left:calc(50% - 80px)}.bottom-area{bottom:35px}}
@media(max-height:720px) and (min-width:701px){.intro{padding-top:105px}h1{font-size:34px;margin:15px 0 10px}.play-invitation{top:47%}.keycaps{margin-bottom:9px}.friend{width:120px}.friend-cat{bottom:23%}.friend-bunny{width:110px;left:calc(50% - 55px);bottom:19%}.friend-bear{width:120px;bottom:26%}.bottom-area{bottom:17px;gap:14px}.mode{padding:10px 19px}.landscape{height:105%}}
@media(max-width:700px){.topbar{padding:22px 22px}.brand{font-size:18px;gap:7px}.brand-flower{width:34px;height:34px}.brand small{font-size:6px;letter-spacing:1.5px}.tools{gap:1px}.tool{padding:9px}.tool-label{display:none}.tool-divider{margin:0 5px}.icon{width:18px;height:18px}.intro{padding-top:130px}.eyebrow{font-size:9px;padding:7px 11px;letter-spacing:1px}h1{font-size:32px;letter-spacing:2px;margin:20px 0 15px}.title-spark{width:20px;height:20px;right:-23px;top:-6px}.intro>p{font-size:11px;letter-spacing:1px}.play-invitation{top:46%;transform:translate(-50%,-30%)}.play-invitation h2{font-size:18px;letter-spacing:1px}.play-invitation p{font-size:10px}.keycaps{margin-bottom:15px}.friend{width:112px}.friend-cat{left:5%;bottom:25%;transform:rotate(-12deg)}.friend-bunny{width:100px;left:calc(50% - 50px);bottom:21%}.friend-bear{width:107px;right:4%;bottom:27%}.speech{font-size:9px;top:-13px;left:50%;padding:7px 10px}.friend-bear .speech{left:-20%;top:-20px}.landscape{width:180%;left:-40%;height:100%;bottom:-5px}.flower-one{left:2%;bottom:43%;width:36px}.flower-two{right:2%;bottom:20%;width:34px}.star-one{left:18%;top:42%;font-size:20px}.star-two{right:11%;top:47%}.star-three{display:none}.bottom-area{bottom:29px;gap:19px}.modes{gap:2px;padding:6px}.mode{font-size:11px;gap:6px;padding:12px 13px;letter-spacing:0}.mode-icon{width:22px;height:22px}.selected-dot{display:none!important}.play-notes{gap:9px;font-size:8px;letter-spacing:0}.play-notes svg{width:12px;height:12px}.play-notes>span{gap:4px}footer{font-size:8px;padding:0 22px;height:48px}footer>span:last-child{font-size:0}footer>span:last-child:after{content:'建议家长陪同';font-size:8px}#playground{height:calc(100svh - 48px)}}
@media(max-width:700px) and (max-height:720px){.intro{padding-top:100px}h1{font-size:28px;margin:14px 0}.play-invitation{top:47%}.friend-cat{bottom:26%;width:90px}.friend-bear{bottom:28%;width:90px}.friend-bunny{bottom:21%;width:85px;left:calc(50% - 42px)}.bottom-area{bottom:17px;gap:13px}.keycaps{height:28px;margin-bottom:9px}.keycaps>span:not(.click-doodle){width:27px;height:27px;font-size:13px}.play-invitation h2{font-size:16px}.play-invitation p,.tiny-arrow{display:none}}
@media(max-height:500px) and (min-width:701px){.topbar{padding:14px 25px}.intro{padding-top:67px}h1{font-size:26px;margin:8px 0}.eyebrow{display:none}.intro>p{font-size:10px}.play-invitation{top:46%}.keycaps{display:none}.play-invitation h2{font-size:17px}.play-invitation p{display:none}.friend{width:95px}.friend-bunny{width:80px;left:calc(50% - 40px);bottom:24%}.bottom-area{bottom:10px;gap:8px}.mode{padding:7px 16px}.play-notes{font-size:9px}.speech{display:none}footer{height:35px}#playground{height:calc(100svh - 35px);min-height:0}}
/* Animal learning: a single new friend stays visible until the next press. */
.classroom-link{font-size:11px;letter-spacing:1px;color:#759065;padding:10px 13px;border:1px solid #dfe5d2;border-radius:30px;white-space:nowrap}.classroom-link>span{margin-left:5px}@media(max-width:700px){.classroom-link{font-size:9px;letter-spacing:0;padding:9px 8px;margin-right:4px}.classroom-link>span{display:none}.topbar{padding-left:16px;padding-right:14px}.tools .tool{padding:7px}.tool-divider{margin-left:2px;margin-right:2px}}
.intro .eyebrow{display:flex;width:max-content;margin:0 auto}
.animal-panel{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-34%);display:flex;flex-direction:column;align-items:center;pointer-events:none;min-width:235px;text-align:center}.animal-panel[hidden]{display:none}.animal-picture{width:170px;height:170px;filter:drop-shadow(0 10px 12px #7d775a10)}.animal-picture svg{height:100%;width:100%}.animal-names{display:flex;align-items:baseline;gap:13px;margin-top:4px;white-space:nowrap}.animal-names strong{font-size:29px;font-weight:600;letter-spacing:3px;color:#5b7451}.animal-names>span{font:italic 28px Georgia,serif;color:#94a180}.animal-voice{display:flex;align-items:center;gap:7px;margin-top:11px;color:#b29462;font-size:14px;letter-spacing:2px}.animal-voice small{font-size:9px;letter-spacing:1px;color:#a7ae9c;margin-left:6px}.voice-bars{display:flex;gap:3px;align-items:center;height:13px}.voice-bars i{width:3px;height:5px;background:#b6bc97;border-radius:4px}.voice-bars i:nth-child(2){height:11px}.speaking .voice-bars i{animation:voice-wave .65s ease-in-out infinite alternate}.speaking .voice-bars i:nth-child(2){animation-delay:-.25s}.speaking .voice-bars i:nth-child(3){animation-delay:-.45s}.new-friend{animation:friend-arrives .4s ease-out}.has-animal .play-invitation{display:none}.has-animal .friend-bunny{opacity:0}.has-animal .friend-cat,.has-animal .friend-bear{opacity:.55}.has-animal .friend .speech{display:none}.calm .new-friend,.calm .voice-bars i{animation:none}.effect.sparkle:not(.trail){width:44px;height:44px}
@keyframes friend-arrives{0%{opacity:.5;transform:scale(.8) rotate(-7deg)}70%{transform:scale(1.04) rotate(2deg)}100%{opacity:1;transform:scale(1) rotate(0)}}@keyframes voice-wave{to{height:13px}}
@media(max-height:720px) and (min-width:701px){.animal-panel{top:50%;transform:translate(-50%,-35%)}.animal-picture{width:133px;height:133px}.animal-names strong{font-size:24px}.animal-names>span{font-size:25px}.animal-voice{margin-top:7px;font-size:12px}.has-animal .friend-cat,.has-animal .friend-bear{opacity:.4}}
@media(max-width:700px){.animal-panel{top:47%;transform:translate(-50%,-28%)}.animal-picture{width:150px;height:150px}.animal-names strong{font-size:27px}.animal-names>span{font-size:27px}.animal-voice small{font-size:8px;letter-spacing:.5px}.has-animal .friend-cat{left:0;bottom:24%;width:90px}.has-animal .friend-bear{right:0;bottom:26%;width:86px}}
@media(max-width:700px) and (max-height:720px){.animal-panel{top:48%;transform:translate(-50%,-32%)}.animal-picture{width:120px;height:120px}.animal-names strong{font-size:23px}.animal-names>span{font-size:24px}.animal-voice{font-size:12px;margin-top:7px}.has-animal .friend-cat,.has-animal .friend-bear{opacity:.3;width:72px}}
@media(max-height:500px) and (min-width:701px){.animal-panel{top:45%;transform:translate(-50%,-22%)}.animal-picture{width:85px;height:85px}.animal-names strong{font-size:19px}.animal-names>span{font-size:20px}.animal-voice{font-size:10px;margin-top:4px}.animal-voice small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.character,.floating-flower,.sun,.ambient-bubble,.music-decoration,.new-friend,.voice-bars i{animation:none!important}.effect{animation:fade-feedback 2.2s ease-out forwards!important}.hold-fill{transition:none!important}}

/* Reserve a generous animal stage between the heading and touch controls. */
#playground{height:calc(100dvh - 53px)}
.has-animal .intro{padding-top:100px}.has-animal .intro .eyebrow{display:none}.has-animal h1{font-size:clamp(28px,3vw,38px);margin:12px 0 10px}.has-animal .intro>p{font-size:12px}
.animal-panel{top:190px;bottom:110px;width:min(90%,700px);min-width:0;transform:translateX(-50%);justify-content:center}
.animal-picture{--portrait-size:min(420px,67vw,calc(100dvh - 435px));width:var(--portrait-size);height:var(--portrait-size);flex-shrink:0}
.animal-names{margin-top:8px}.animal-names strong{font-size:32px}.animal-names>span{font-size:32px}
.has-animal .bottom-area{bottom:22px;gap:10px}.has-animal .play-notes{display:none}
.tool{min-height:44px;min-width:44px}.topbar{padding-top:max(22px,env(safe-area-inset-top,0px))}
#toast{max-width:min(90vw,520px);white-space:normal;text-align:center;line-height:1.7;border-radius:20px}
@media(max-width:700px){#playground{height:calc(100dvh - 48px)}.has-animal .intro{padding-top:105px}.has-animal h1{font-size:27px;letter-spacing:2px}.has-animal .intro>p{font-size:10px}.animal-names strong,.animal-names>span{font-size:29px}.animal-voice{font-size:13px}.animal-voice small{display:none}.has-animal .friend-cat,.has-animal .friend-bear{opacity:.2;width:70px}}
@media(max-height:600px){#playground{min-height:0}.has-animal .intro{padding-top:70px}.has-animal h1{font-size:25px;margin:7px 0}.has-animal .intro>p{font-size:10px}.animal-panel{top:135px;bottom:88px}.animal-picture{--portrait-size:min(320px,58vw,calc(100dvh - 325px))}.animal-names strong,.animal-names>span{font-size:23px}.animal-voice{margin-top:4px;font-size:11px}.animal-voice small{display:none}.has-animal .bottom-area{bottom:12px}.has-animal .friend{opacity:.15}.topbar{padding-top:10px;padding-bottom:8px}}
