/* 儿童触感主题：固定十格结构与原有语音保持不变。 */
:root{--bg:#fff9ec;--green:#278d76;--green-dark:#226e5b;--orange:#ffb34e;--ink:#3d3832;--muted:#867961;--line:#eadfc9;--soft:#edf7e8;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}
body{background:radial-gradient(ellipse at 5% 18%,#ffedc555 0,transparent 40%),var(--bg)}
header{background:#fffaf0;border:0}.header-inner{padding-top:20px;padding-bottom:20px}h1{color:var(--ink);font-weight:800;letter-spacing:0}.outline,.voice-control{background:#fffdf8;border:1px solid #e8ddc6;box-shadow:0 4px 0 #e8dfc8;color:var(--green-dark);border-radius:17px}.outline:hover,.voice-control:hover{background:#fff4d9}
.panel{background:#fffefb;border:2px solid #f0e5d2;border-radius:30px;box-shadow:0 6px 0 #ece0c8,0 10px 25px #b8975820;position:relative}.modes{border:0;border-radius:22px;background:#fff8e7;gap:7px;box-shadow:none;overflow:visible}.modes button{border:0!important;background:#fffdf5;border-radius:18px;box-shadow:0 5px 0 #e8ddc5;color:var(--ink)}.modes button[aria-pressed=true]{background:var(--green);box-shadow:inset 0 2px 2px #ffffff50,0 5px 0 #1d6b59;color:white}
.equation{font-weight:850;letter-spacing:2px}.green-number{color:#27834e}.orange-number{color:#e77b17}#instruction{display:table;margin:17px auto 9px;padding:9px 22px;border-radius:35px;background:#fff0c7;color:var(--ink)}.step-explanation{color:#7b705d}.frame-label{font-size:15px;color:#527563}.ten-frame{border:3px solid #319f85;border-radius:15px;background:#fffefb;box-shadow:0 4px 0 #d5e8d8;overflow:hidden}.cell{border-color:#87c5b2}.cell:nth-child(n+6){border-bottom:0}.cell .dot:not(button){width:92%;background:url('assets/bean-orange-small.png') center/contain no-repeat;box-shadow:none;border-radius:0;filter:hue-rotate(82deg) saturate(.64) brightness(1.1)}.cell .dot.orange:not(button){filter:none}.cell button.dot::before{width:92%;left:4%;border-radius:0;background:url('assets/bean-orange-small.png') center/contain no-repeat;box-shadow:none}.cell button.dot:hover:not(:disabled){background:#fff0ce}.cell button.dot:hover:not(:disabled)::before{transform:translateY(-50%) scale(1.08)}.cell button.dot:active:not(:disabled)::before{transform:translateY(-50%) scale(.93)}.empty-space{background:#fff0ad;box-shadow:inset 0 0 0 3px #fffbea}.drop-ready{outline:4px solid #ffd36c;outline-offset:4px}.drop-ready .empty-space{background:#ffe183}.cell.drop-slot{background:#ffcf64;box-shadow:inset 0 0 0 3px #fff6d5}.attention-target{outline:3px solid #f5cd76;outline-offset:5px}.attention-target .empty-space{background:#ffeab0}.drag-ghost,.demo-flying-dot,.bean-flight{background:url('assets/bean-orange-small.png') center/contain no-repeat;box-shadow:none;border-radius:0;width:55px;height:55px;filter:drop-shadow(0 6px 4px #975f202a)}.drag-ghost{opacity:1}.bean-flight{position:fixed;pointer-events:none;z-index:220;transform:translate(-50%,-50%)}.landing-pending{visibility:hidden}.bean-land{animation:bean-land .45s cubic-bezier(.22,.9,.35,1)}.frame-full{animation:frame-full .5s ease-out}.demo-finger{font-size:28px;top:33px;left:27px}.round-stars{display:flex;align-items:center;justify-content:center;gap:9px;margin:10px auto 0}.round-stars span{display:block;width:25px;height:25px;color:#d8d2c5}.round-stars svg{width:100%;height:100%;fill:#fffaf0;stroke:currentColor;stroke-width:1.7}.round-stars .earned{color:#e3a12a}.round-stars .earned svg{fill:#ffcf4e}.round-stars .current{color:#d7a23d}.round-stars .current svg{fill:#fff3c5}#mode-description{display:none}.progress-track{background:#f0eadb}.progress-track span{background:#a6ceb1}.step-track{gap:27px}.step-track li span{box-shadow:0 2px 0 #e1ddcf;background:#f1ede3}.step-active span{background:#ffb44b!important;color:#513a20}.step-done span{background:#d9efcd!important;color:#398d57}.primary{border-radius:23px;background:var(--green);box-shadow:inset 0 2px 2px #ffffff45,0 6px 0 #1e6f5d;font-weight:800;margin-bottom:9px}.primary:hover{background:#24977c}.primary:active{box-shadow:inset 0 2px 2px #ffffff35,0 2px 0 #1e6f5d;transform:translateY(4px)}.primary:disabled{box-shadow:0 4px 0 #d6d0c0;opacity:.58}.guided-choices button{background:#fff9e9;border:2px solid #ebd8aa;box-shadow:0 5px 0 #e4d1a3;border-radius:19px;color:#4a624d}.guided-choices button:hover{background:#fff0c6;border-color:#d2b361}.guided-choices button:active{transform:translateY(3px);box-shadow:0 2px 0 #e4d1a3}.choice-dots i{background:#79a86a}.number-pad button{border-radius:14px;background:#fff7e4;border-color:#efdfb9;box-shadow:0 3px 0 #e9d5a6;color:#456c56}.number-pad button:hover{background:#ffebba}.number-pad button:active{transform:translateY(2px);box-shadow:0 1px 0 #e9d5a6}.input-active{box-shadow:0 0 0 4px #f7d98c;border-color:#8bb688;background:#fffdf3}.split-model{background:#f2f8e9;border:1px solid #e2eccd;border-radius:21px}.learning-note{background:#f2efd9;border:1px solid #e9e1c0;border-radius:20px}.start-listening{box-shadow:inset 0 3px 2px #ffffff40,0 7px 0 #1d6b59,0 0 0 13px #e6efd1}.welcome-screen{overflow:hidden;padding-top:40px}.welcome-dots{gap:5px}.welcome-dots span{width:60px;height:60px;border-radius:0;background:url('assets/bean-orange-small.png') center/contain no-repeat;filter:hue-rotate(82deg) saturate(.64) brightness(1.1)}.welcome-dots span:nth-child(n+4){background:url('assets/bean-orange-small.png') center/contain no-repeat;filter:none}.welcome-screen h2{color:var(--ink)}.voice-controls{margin-top:2px}.voice-controls p{color:#87785e}.demo-method{background:#f2f8e9;border-radius:20px;max-width:450px;margin:auto;padding:0 10px}.demo-method:empty{display:none}.demo-caption{color:#366f50}.demo-bond{padding-top:8px}.demo-actions .outline{border-radius:16px}.feedback{color:#36724d}.feedback.error{color:#a36b2d}.bean-celebration{position:fixed;pointer-events:none;z-index:230;inset:0;overflow:hidden}.bean-celebration i{position:absolute;width:12px;height:12px;border-radius:3px;background:var(--sparkle-color,#ffca55);left:var(--sparkle-x);top:var(--sparkle-y);animation:sparkle-away .85s ease-out forwards}.bean-celebration .star{clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 92%,50% 72%,21% 92%,32% 57%,2% 35%,39% 35%);width:20px;height:20px}
@keyframes bean-land{0%{transform:scale(.72)}55%{transform:scale(1.13,.9)}80%{transform:scale(.96,1.04)}100%{transform:scale(1)}}@keyframes frame-full{50%{box-shadow:0 0 0 7px #ffdc7e80,0 4px 0 #d5e8d8}}@keyframes sparkle-away{to{transform:translate(var(--sparkle-dx),var(--sparkle-dy)) rotate(100deg);opacity:0}}
@media(max-width:600px){.header-inner{padding:16px 14px}h1{font-size:21px}.panel{border-radius:24px;padding:16px 12px}.modes{gap:6px;margin-bottom:17px}.modes button{border-radius:15px;font-size:15px;min-height:51px}.voice-controls{gap:8px;margin-bottom:16px}.voice-control{border-radius:16px}.voice-controls p{font-size:11px}.equation{font-size:46px;margin:15px 0}.round-stars{gap:7px;margin-top:8px}.round-stars span{width:21px;height:21px}.step-track{gap:16px;margin:14px auto}#instruction{font-size:21px;padding:8px 14px;line-height:1.4}.frames,.frames.single-frame,.demo-frames{max-width:275px}.frames{gap:21px}.ten-frame{border-radius:13px}.frame-label{font-size:14px}.step-explanation{margin-bottom:17px}.primary{border-radius:20px;min-height:56px}.welcome-dots span{width:44px;height:44px}.guided-choices{gap:12px}.guided-choices button{min-width:76px}.welcome-screen{padding:34px 15px}.demo-heading h2{font-size:20px}.bean-celebration i{width:9px;height:9px}}
@media(prefers-reduced-motion:reduce){.bean-land,.frame-full,.bean-celebration i{animation:none!important}.bean-celebration{display:none}.cell button.dot:hover:not(:disabled)::before{transform:translateY(-50%)}}
