:root{--paper:#fdf6e8;--paper-2:#f7edd9;--card:#fffdf7;--ink:#243b53;--muted:#6b7c93;--blue:#3b7dd8;--blue-dark:#2f66b3;--sky:#8fb4ff;--orange:#f28c3b;--orange-dark:#d9762a;--green:#3aa76d;--red:#c9443b;--yellow:#e9b949;--line:#e7ddc8;--shadow:0 10px 24px #243b531f;--shadow-soft:0 4px 12px #243b5314;--radius:22px;--tap:56px;color:var(--ink);background:var(--paper);font-family:Nunito,Segoe UI,Trebuchet MS,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{min-height:100%;margin:0}body{background:radial-gradient(circle at 12% 8%, #8fb4ff2e, transparent 44%), radial-gradient(circle at 88% 92%, #f28c3b24, transparent 46%), var(--paper);touch-action:manipulation;overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}input,textarea{font:inherit;color:var(--ink)}h1,h2,h3{margin:0 0 .4em;line-height:1.15}h1{font-size:clamp(1.7rem,3vw,2.3rem)}h2{font-size:clamp(1.2rem,2vw,1.5rem)}p{margin:0 0 .7em;line-height:1.5}.muted{color:var(--muted)}.small{font-size:.86rem}.mono{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:800}.app{flex-direction:column;min-height:100dvh;display:flex}.screen{flex:1;width:min(1180px,100%);margin:0 auto;padding:18px clamp(14px,3vw,30px) 96px}.screen.center{place-items:center;min-height:70dvh;display:grid}.session{width:min(1040px,100%);padding-bottom:28px}.topbar{z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fdf6e8e6;border-bottom:1px solid #e7ddc8b3;justify-content:space-between;align-items:center;gap:12px;padding:10px clamp(14px,3vw,30px);display:flex;position:sticky;top:0}.brand{letter-spacing:-.02em;align-items:center;gap:10px;font-size:1.15rem;font-weight:900;display:flex}.brand-mark{background:var(--ink);width:42px;height:42px;color:var(--paper);border-radius:12px;place-items:center;font-size:1.3rem;display:grid}.topbar-right{align-items:center;gap:8px;display:flex}.wallet{flex-wrap:wrap;gap:6px;display:flex}.pill{background:var(--card);border:1px solid var(--line);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:8px 13px;font-size:.95rem;font-weight:800;display:inline-flex}.pill-baut{background:#eef5ff;border-color:#cfe0fb}.pill-chip{background:#fff6e3;border-color:#f4dfb4}.pill-stars{background:#fffbe9;border-color:#f0e2ae}.icon-btn{width:var(--tap);height:var(--tap);background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:16px;place-items:center;font-size:1.45rem;transition:transform .12s;display:grid}.icon-btn:active{transform:scale(.94)}.parent-gear{font-size:1.2rem}.btn{min-height:var(--tap);box-shadow:var(--shadow-soft);border:2px solid #0000;border-radius:18px;justify-content:center;align-items:center;gap:8px;padding:12px 22px;font-size:1.05rem;font-weight:800;text-decoration:none;transition:transform .12s,box-shadow .12s,background .15s;display:inline-flex}.btn:active:not(:disabled){transform:translateY(2px)scale(.99)}.btn:disabled{opacity:.45;box-shadow:none;cursor:not-allowed}.btn-blue{background:var(--blue);color:#fff;border-color:var(--blue-dark)}.btn-green{background:var(--green);color:#fff;border-color:#2d8a58}.btn-orange{background:var(--orange);color:#fff;border-color:var(--orange-dark)}.btn-ghost{background:var(--card);border-color:var(--line);color:var(--ink)}.btn-danger{background:var(--red);color:#fff}.btn.small{border-radius:12px;min-height:40px;padding:6px 12px;font-size:.85rem}.btn.danger{color:var(--red)}.link-btn{color:var(--muted);background:0 0;border:0;min-height:40px;padding:8px;font-size:.9rem;text-decoration:underline}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.row.wrap{flex-wrap:wrap}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft);padding:clamp(16px,2.4vw,26px)}.banner{background:#eef5ff;border:1px solid #cfe0fb;border-radius:16px;margin-bottom:14px;padding:12px 16px;font-weight:700}.banner.warn{background:#fff6e3;border-color:#f4dfb4}.banner.error{color:#8d2f29;background:#fdecea;border-color:#f3c4c0}.banner.detour{background:#fff1e5;border-color:#f6d2b6}.stars{align-items:center;gap:2px;display:inline-flex}.battery{align-items:center;gap:8px;display:flex}.battery-shell{border:3px solid var(--ink);border-radius:8px;width:74px;height:26px;padding:2px;position:relative}.battery-shell:after{content:"";background:var(--ink);border-radius:2px;width:5px;height:10px;position:absolute;top:6px;right:-7px}.battery-fill{border-radius:4px;height:100%;transition:width .5s}.battery-label{color:var(--muted);font-size:.85rem;font-weight:800}.home{flex-direction:column;gap:22px;display:flex}.hero{border:1px solid var(--line);box-shadow:var(--shadow);background:linear-gradient(160deg,#fffdf7 0%,#fdf3df 100%);border-radius:32px;grid-template-columns:minmax(200px,300px) 1fr;align-items:center;gap:clamp(16px,3vw,36px);padding:clamp(16px,2.6vw,30px);display:grid}.hero-robot{flex-direction:column;align-items:center;gap:8px;display:flex}.robot{filter:drop-shadow(0 8px 12px #243b531f);animation:4.5s ease-in-out infinite hover}.robot-celebrate{animation:.7s ease-in-out 2 cheer}@keyframes hover{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes cheer{0%,to{transform:rotate(0)translateY(0)}25%{transform:rotate(-4deg)translateY(-8px)}75%{transform:rotate(4deg)translateY(-4px)}}.battery-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.hero-copy{flex-direction:column;gap:14px;display:flex}.speech{border:2px solid var(--ink);background:#fff;border-radius:20px;align-items:center;gap:10px;padding:15px 18px;font-size:clamp(1.05rem,1.8vw,1.3rem);font-weight:800;display:flex;position:relative;box-shadow:5px 5px #243b531f}.speech>span{flex:1}.speech-audio{width:44px;height:44px;box-shadow:none;flex-shrink:0;font-size:1.05rem}.speech:before{content:"";border-left:2px solid var(--ink);border-bottom:2px solid var(--ink);background:#fff;width:18px;height:18px;position:absolute;top:34px;left:-13px;transform:rotate(45deg)}.mission-button{text-align:left;background:linear-gradient(135deg, var(--orange) 0%, #f6a34c 100%);border:3px solid var(--orange-dark);color:#fff;min-height:100px;box-shadow:0 12px 0 #d9762a59, var(--shadow);border-radius:26px;align-items:center;gap:16px;padding:18px 24px;transition:transform .12s,box-shadow .12s;display:flex}.mission-button:active{transform:translateY(6px);box-shadow:0 6px #d9762a59}.mission-button strong{font-size:clamp(1.3rem,2.4vw,1.8rem);display:block}.mission-button small{opacity:.92;font-size:.95rem}.mission-icon{background:#ffffff3d;border-radius:18px;place-items:center;width:62px;height:62px;font-size:2.1rem;display:grid}.home-meta{flex-wrap:wrap;gap:8px;display:flex}.meta-chip{color:var(--muted);border:1px solid var(--line);background:#ffffffb3;border-radius:999px;padding:7px 12px;font-size:.86rem;font-weight:800}.choices h2{margin:0 0 10px}.choice-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;display:grid}.mission-card{text-align:left;background:var(--card);border:1px solid var(--line);min-height:92px;box-shadow:var(--shadow-soft);border-radius:20px;align-items:center;gap:12px;padding:14px 16px;transition:transform .12s;display:flex}.mission-card:active{transform:scale(.98)}.mission-card-icon{background:#fff3e3;border-radius:16px;flex-shrink:0;place-items:center;width:58px;height:58px;display:grid}.mission-card-copy{flex-direction:column;flex:1;gap:2px;display:flex}.mission-card-copy small{color:var(--muted);text-transform:capitalize}.mission-go{color:var(--muted);font-size:1.8rem}.quick-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.quick-card{background:var(--card);border:1px solid var(--line);min-height:110px;box-shadow:var(--shadow-soft);border-radius:20px;flex-direction:column;align-items:flex-start;gap:4px;padding:18px;display:flex}.quick-icon{font-size:1.6rem}.quick-card small{color:var(--muted)}.progress-strip{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:24px;align-items:center;gap:20px;padding:18px 22px;display:flex}.progress-copy{flex:1}.ring{flex-shrink:0;position:relative}.ring-label{color:var(--muted);text-align:center;place-items:center;font-size:.72rem;line-height:1.1;display:grid;position:absolute;top:0;bottom:0;left:0;right:0}.ring-label strong{color:var(--ink);font-size:1rem;display:block}.pills{flex-wrap:wrap;gap:8px;display:flex}.tabbar{z-index:30;padding:8px max(10px, env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);background:#fdf6e8f0;justify-content:center;gap:6px;display:flex;position:fixed;bottom:0;left:0;right:0}.tab{min-width:96px;min-height:var(--tap);color:var(--muted);border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:6px 14px;font-size:.8rem;font-weight:800;display:flex}.tab.active{color:var(--ink);box-shadow:var(--shadow-soft);background:#fff}.tab-icon{font-size:1.35rem}.book h1{margin-bottom:4px}.domain{margin-top:24px}.skill-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;display:grid}.skill-card{text-align:left;background:var(--card);border:1px solid var(--line);min-height:122px;box-shadow:var(--shadow-soft);border-radius:18px;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px 16px;display:flex;position:relative}.skill-card.locked{opacity:.62;background:#faf5ea}.skill-card.refresh{border-color:var(--orange);background:#fff6ea}.skill-id{color:var(--muted);letter-spacing:.06em;font-size:.75rem;font-weight:900}.skill-card strong{font-size:1rem;line-height:1.25}.tag{background:var(--paper-2);color:var(--muted);border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:800}.tag-refresh{color:#97500f;background:#ffe8cf}.tag-assumed,.tag-owned{color:#256d49;background:#e9f4ee}.shop-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.shop-timer{background:var(--card);border:1px solid var(--line);font-variant-numeric:tabular-nums;border-radius:999px;padding:10px 16px;font-weight:900}.wallet-lg{gap:10px;margin:14px 0 20px;display:flex}.wallet-lg .pill{font-size:1.05rem}.shop-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px;display:grid}.shop-item{text-align:center;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:20px;flex-direction:column;align-items:center;gap:6px;padding:16px 12px;display:flex}.shop-item.owned{opacity:.75}.shop-preview{background:var(--paper-2);border-radius:18px;place-items:center;width:74px;height:74px;margin-bottom:4px;display:grid}.big-emoji{font-size:2rem}.swatch{border:3px solid #243b5340;border-radius:12px;width:46px;height:46px;display:inline-block}.swatch.small{vertical-align:middle;border-width:2px;border-radius:5px;width:18px;height:18px;margin-right:6px}.setup{grid-template-columns:1fr 1.1fr;align-items:center;gap:24px;max-width:980px;margin:0 auto;padding-top:5vh;display:grid}.setup-hero{text-align:center}.setup-card{flex-direction:column;gap:14px;display:flex}.setup-card label,.slider,.note-label{flex-direction:column;gap:6px;font-size:.95rem;font-weight:800;display:flex}input[type=text],input[type=password],input:not([type]),textarea{width:100%;min-height:var(--tap);border:2px solid var(--line);background:#fff;border-radius:14px;padding:12px 14px;font-size:1.05rem}input:focus,textarea:focus{border-color:var(--blue);outline:3px solid #3b7dd847}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.modal-backdrop{z-index:100;background:#243b5373;place-items:center;padding:18px;animation:.18s fade;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}@keyframes fade{0%{opacity:0}}.modal{background:var(--card);border-radius:26px;width:min(520px,100%);max-height:92dvh;padding:24px;overflow:auto;box-shadow:0 24px 60px #243b5347}.modal-wide{width:min(900px,100%)}.pin-card{width:min(420px,100%)}.pin-dots{justify-content:center;gap:10px;margin:16px 0;display:flex}.dot{border:2px solid var(--line);border-radius:50%;width:18px;height:18px}.dot.filled{background:var(--ink);border-color:var(--ink)}.pin-pad{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.key{border:2px solid var(--line);background:#fff;border-radius:16px;min-height:62px;font-size:1.35rem;font-weight:800;box-shadow:0 3px #243b531f}.key:active:not(:disabled){box-shadow:none;transform:translateY(2px)}.key-util{color:var(--muted);font-size:1.1rem}.key-ok{background:var(--green);color:#fff;border-color:#2d8a58}.session-bar{align-items:center;gap:12px;margin-bottom:12px;display:flex}.session-bar-mid{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.phase-chip{background:var(--ink);color:var(--paper);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;border-radius:999px;padding:6px 11px;font-size:.75rem;font-weight:900}.session-title{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-weight:800;overflow:hidden}.prompt-bar{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:20px;align-items:center;gap:12px;margin-bottom:14px;padding:10px 14px;display:flex}.prompt-text{flex:1;min-height:26px;font-size:clamp(1rem,1.7vw,1.18rem);font-weight:800}.listening{color:var(--muted);align-items:center;gap:10px;font-size:.95rem;font-weight:700;display:inline-flex}.eq{align-items:flex-end;gap:3px;height:22px;display:inline-flex}.eq i{background:var(--blue);border-radius:2px;width:4px;animation:1s ease-in-out infinite eq}.eq i:first-child{height:9px}.eq i:nth-child(2){height:18px;animation-delay:.18s}.eq i:nth-child(3){height:13px;animation-delay:.32s}@keyframes eq{0%,to{transform:scaleY(.55)}50%{transform:scaleY(1)}}.speaker{color:var(--blue);flex-shrink:0}.hint-btn{flex-shrink:0}.activity-wrap{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:26px;align-items:stretch;min-height:340px;padding:clamp(14px,2.4vw,26px);display:flex}.activity{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:18px;width:100%;display:flex}.helper-note{color:var(--muted);text-align:center;max-width:720px;font-size:.92rem;font-weight:700}.helper-note.big{color:var(--ink);font-size:1.05rem}.hint-banner{background:#fff6e3;border:1px solid #f0d9a8;border-radius:16px;align-items:center;gap:10px;margin-top:12px;padding:10px 14px;font-weight:700;display:flex}.hint-banner .hint-icon{font-size:1.3rem}.hint-banner .btn{margin-left:auto}.session-tools{flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin-top:14px;display:flex}.helper-strip{background:var(--card);border:1px solid var(--line);border-radius:14px;gap:2px;max-width:100%;padding:8px;display:flex;overflow:auto}.helper-tick{min-width:30px;height:34px;color:var(--muted);border-left:1px solid var(--line);place-items:center;font-size:.72rem;font-weight:800;display:grid}.helper-tick:last-child{border-right:1px solid var(--line)}.feedback{left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:60;background:var(--ink);color:#fff;box-shadow:var(--shadow);border-radius:999px;align-items:center;gap:10px;max-width:min(92vw,640px);padding:14px 22px;font-weight:800;animation:.22s pop-in;display:flex;position:fixed;transform:translate(-50%)}.feedback.ok{background:#246b4a}.feedback.retry{background:var(--blue-dark)}.feedback.miss{background:#4a5a6d}.feedback-emoji{font-size:1.3rem}@keyframes pop-in{0%{opacity:0;transform:translate(-50%,12px)scale(.96)}}.star-pop{z-index:65;border:2px solid var(--yellow);box-shadow:var(--shadow);background:#fffdf0;border-radius:24px;flex-direction:column;align-items:center;gap:4px;padding:18px 28px;animation:.4s cubic-bezier(.2,1.4,.4,1) star-in;display:flex;position:fixed;top:18%;left:50%;transform:translate(-50%)}@keyframes star-in{0%{opacity:0;transform:translate(-50%,20px)scale(.7)}}.easier{bottom:calc(90px + env(safe-area-inset-bottom));z-index:55;position:fixed;left:50%;transform:translate(-50%)}.guided-panel{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:22px;padding:20px}.worked{background:#eef5ff;border:1px solid #cfe0fb;border-radius:16px;flex-direction:column;gap:12px;padding:16px;font-size:1.05rem;display:flex}.explore{flex-direction:column;align-items:center;gap:14px;display:flex}.explore .activity{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:26px;width:100%;padding:22px}.cooldown-head{text-align:center;margin-bottom:6px}.objects-row,.objects-wrap{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.objects-grid{grid-template-columns:repeat(5,minmax(48px,1fr));gap:8px;display:grid}.object,.object-tap{border-radius:14px;place-items:center;width:62px;height:62px;display:grid;position:relative}.object-tap{background:#f6f1e4;border:2px solid #0000;transition:transform .12s,background .15s}.object-tap:active{transform:scale(.92)}.object-tap.counted{background:#e9f4ee;border-color:#bfe0cd}.count-badge{background:var(--green);color:#fff;border-radius:999px;place-items:center;min-width:24px;height:24px;padding:0 5px;font-size:.78rem;font-weight:900;display:grid;position:absolute;top:-6px;right:-6px}.hint-pulse{animation:1.3s ease-in-out infinite pulse}@keyframes pulse{0%,to{box-shadow:0 0 #3b7dd800}50%{box-shadow:0 0 0 6px #3b7dd82e}}.piles{flex-direction:column;align-items:center;gap:14px;width:100%;display:flex}.pile{background:#faf5ea;border:2px dashed #e2d6bd;border-radius:20px;max-width:100%;padding:12px;position:relative}.pile.ten{background:#eef5ff;border-color:#c9dcf7}.pile-label{background:var(--blue);color:#fff;border-radius:999px;padding:3px 9px;font-size:.72rem;font-weight:900;position:absolute;top:-12px;left:12px}.options{grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:12px;width:min(620px,100%);display:grid}.option{border:3px solid var(--line);font-variant-numeric:tabular-nums;background:#fff;border-radius:20px;min-height:82px;font-size:2rem;font-weight:900;box-shadow:0 4px #243b531a}.option:active:not(:disabled){box-shadow:none;transform:translateY(3px)}.option:disabled{opacity:.5}.answer-box{flex-direction:column;align-items:center;gap:12px;width:100%;display:flex}.answer-prompt{color:var(--muted);font-weight:800}.numpad{flex-direction:column;align-items:center;gap:10px;width:min(330px,100%);display:flex}.numpad-display{border:3px solid var(--line);font-variant-numeric:tabular-nums;background:#fff;border-radius:16px;place-items:center;width:100%;height:64px;font-size:2rem;font-weight:900;display:grid}.numpad-display .placeholder{color:#c9c0ad}.numpad-grid{grid-template-columns:repeat(3,1fr);gap:8px;width:100%;display:grid}.frame-wrap{flex-direction:column;align-items:center;gap:10px;display:flex}.ten-frame-grid{border:3px solid var(--ink);background:#fff;border-radius:14px;grid-template-columns:repeat(5,1fr);gap:6px;width:min(420px,90vw);padding:8px;display:grid}.ten-frame-grid.small{width:min(280px,70vw)}.cell{aspect-ratio:1;background:#fffdf7;border:2px dashed #d6cbb4;border-radius:9px;place-items:center;min-height:48px;display:grid}.cell.on{background:#eef5ff;border-style:solid;border-color:#bfd3f0}.counter{background:radial-gradient(circle at 32% 28%, #7faef2, var(--blue));border-radius:50%;width:76%;height:76%;box-shadow:inset 0 -3px #243b532e}.counter-add{background:radial-gradient(circle at 32% 28%, #ffc783, var(--orange))}.flash-area{place-items:center;display:grid;position:relative}.flash-area.hidden .ten-frame-grid{visibility:hidden}.flash-cover{background:var(--paper-2);border:3px dashed var(--line);border-radius:16px;place-items:center;min-height:120px;font-size:2rem;display:grid;position:absolute;top:0;bottom:0;left:0;right:0}.bond-diagram{flex-direction:column;align-items:center;gap:6px;display:flex}.bond-circle{background:#eef5ff;border:3px solid #b9d0f0;border-radius:50%;place-items:center;width:116px;height:116px;font-size:2.1rem;font-weight:900;display:grid;position:relative}.bond-circle.whole{background:#fff3e3;border-color:#f2c48c}.bond-circle.missing{border-style:dashed;border-color:var(--orange);color:var(--orange);background:#fff}.bond-circle small{color:var(--muted);font-size:.62rem;font-weight:800;position:absolute;bottom:8px}.qmark{font-size:2.2rem}.bond-line{background:#d6cbb4;width:120px;height:3px}.bond-parts{gap:22px;display:flex}.story-scene{background:#faf5ea;border-radius:20px;flex-wrap:wrap;justify-content:center;gap:16px;width:100%;padding:16px;display:flex}.story-sub{border-left:3px dashed #d6cbb4;flex-wrap:wrap;gap:6px;padding-left:14px;display:flex}.object.faded{opacity:.32;filter:grayscale(.4)}.story-add{border-left:3px dashed #d6cbb4;align-items:center;padding-left:14px;display:flex}.act-out{align-items:center;gap:10px;display:flex}.equation-options{flex-direction:column;gap:10px;width:min(460px,100%);display:flex}.equation-btn{border:3px solid var(--line);font-variant-numeric:tabular-nums;background:#fff;border-radius:16px;min-height:64px;font-size:1.4rem;font-weight:900;box-shadow:0 4px #243b5314}.equation-btn.chosen{border-color:var(--orange);background:#fff3e3}.scale{justify-content:center;align-items:flex-end;gap:8px;width:100%;padding:10px 0;display:flex}.pan{background:#faf5ea;border:3px solid #d9cbaf;border-radius:0 0 40px 40px;flex-direction:column;flex:1;justify-content:space-between;max-width:240px;min-height:120px;padding:12px;display:flex}.pan-items{flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.pan-label{text-align:center;color:var(--muted);font-weight:900}.scale-post{background:#cbbd9f;border-radius:6px 6px 0 0;width:12px;height:150px}.question-box{border:3px dashed var(--orange);width:46px;height:46px;color:var(--orange);border-radius:12px;place-items:center;font-size:1.5rem;font-weight:900;display:grid}.number-line{width:100%}.line-svg{width:100%;height:auto;max-height:220px}.line-hit{cursor:pointer}.line-confirm{flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;display:flex}.selected-value{font-size:1.1rem;font-weight:900}.base-ten{background:#faf5ea;border-radius:18px;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:22px;width:100%;padding:16px;display:flex}.rods{gap:8px;display:flex}.rod{background:#dbe8f8;border:2px solid #9db9dd;border-radius:7px;flex-direction:column;gap:1px;padding:3px;display:flex}.rod i{background:#6f9ede;border-radius:2px;width:16px;height:15px}.ones{flex-wrap:wrap;gap:3px;max-width:220px;display:flex}.unit{background:#f6b26b;border:2px solid #cf8b3f;border-radius:3px;width:17px;height:17px}.builder-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.builder-count{text-align:center;min-width:70px;font-size:1.8rem;font-weight:900}.two-groups{flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;width:100%;display:flex}.plus-sign{color:var(--muted);font-size:2rem;font-weight:900}.compare-row{flex-wrap:wrap;justify-content:center;align-items:stretch;gap:12px;width:100%;display:flex}.compare-side{border:3px solid var(--line);background:#faf5ea;border-radius:20px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;min-width:150px;max-width:320px;min-height:150px;padding:14px;display:flex}.compare-side:active:not(:disabled){border-color:var(--blue);background:#eef5ff}.compare-objects{flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.compare-numeral{font-variant-numeric:tabular-nums;font-size:2.6rem;font-weight:900}.compare-label{color:var(--muted);font-size:.75rem;font-weight:900}.compare-vs{color:var(--muted);align-self:center;font-weight:900}.equations{flex-direction:column;gap:10px;width:min(420px,100%);display:flex}.pattern-row,.number-sequence{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.seq-tile{border:2px solid var(--line);background:#fff;border-radius:14px;place-items:center;width:66px;height:66px;font-size:1.5rem;font-weight:900;display:grid}.seq-tile.blank{border:3px dashed var(--orange);color:var(--orange);background:#fff8ef}.pattern-tile{padding:0}.palette{background:var(--paper-2);border-radius:18px;flex-wrap:wrap;justify-content:center;gap:10px;padding:10px;display:flex}.palette-tile{border:3px solid var(--line);background:#fff;border-radius:14px;place-items:center;width:64px;height:64px;display:grid}.palette-tile.selected{border-color:var(--blue);box-shadow:0 0 0 4px #3b7dd82e}.bars{flex-direction:column;gap:12px;width:min(640px,100%);display:flex}.bar-item{border:2px solid var(--line);text-align:left;background:#faf5ea;border-radius:14px;align-items:center;gap:12px;min-height:58px;padding:8px 10px;display:flex}.bar-item.ordered{border-color:var(--green);background:#eef8f2}.bar-fill{border-radius:8px;max-width:86%;height:26px;transition:width .3s;display:block}.bar-label{color:var(--muted);min-width:24px;font-size:.85rem;font-weight:900}.measure-object{background:#faf5ea;border-radius:18px;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:16px;display:flex}.measure-obj-shape{background:linear-gradient(90deg,#9cc2f2,#6f9ede);border:2px solid #4f7fbf;border-radius:10px;max-width:92%;height:34px;display:block}.measure-caption{color:var(--muted);font-size:.8rem;font-weight:800}.clips{flex-wrap:wrap;gap:3px;display:flex}.clip{background:repeating-linear-gradient(45deg,#fff,#fff 4px,#eef2f7 4px 8px);border:2px solid #b9c6d6;border-radius:6px;width:22px;height:34px}.sort{width:100%}.sort-items{background:var(--paper-2);border-radius:18px;flex-wrap:wrap;justify-content:center;gap:10px;min-height:86px;padding:12px;display:flex}.sort-item{border:3px solid var(--line);background:#fff;border-radius:14px;place-items:center;width:68px;height:68px;display:grid}.sort-item.selected{border-color:var(--blue);box-shadow:0 0 0 4px #3b7dd82e}.bins{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;width:100%;display:grid}.bin{background:#fff;border:3px dashed #d6cbb4;border-radius:18px;flex-direction:column;align-items:center;gap:8px;min-height:120px;padding:12px;display:flex}.bin:not(:disabled):active{border-color:var(--blue)}.bin-label{align-items:center;font-size:.9rem;font-weight:900;display:flex}.bin-items{flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.scene{border:2px solid var(--line);background:linear-gradient(#eaf4ff 0%,#f9f2e4 62%,#efe3ce 100%);border-radius:22px;width:100%;min-height:340px;position:relative;overflow:hidden}.scene-kitchen{background:linear-gradient(#fdf1e2 0%,#f7e6cf 100%)}.scene-playground{background:linear-gradient(#e8f7ec 0%,#f3f0dd 100%)}.scene-bedroom{background:linear-gradient(#f0ecfb 0%,#f7eee3 100%)}.scene-object{width:72px;height:72px;box-shadow:var(--shadow-soft);background:#ffffffb8;border:3px solid #0000;border-radius:16px;place-items:center;display:grid;position:absolute}.scene-object.picked{border-color:var(--green);background:#e9f4ee;box-shadow:0 0 0 4px #3aa76d33}.grid{aspect-ratio:1;background:#dfe7ef;border:4px solid #a9b8c8;border-radius:16px;gap:4px;width:min(420px,92%);padding:4px;display:grid}.grid-cell{background:#fbfdff;border-radius:6px;place-items:center;min-height:44px;display:grid;position:relative}.grid-cell.blocked{background:#c3cdd8}.grid-cell.blocked:after{content:"📦";font-size:1.2rem}.grid-cell.goal{box-shadow:inset 0 0 0 3px var(--yellow);background:#fff8dc}.goal-star{color:#b98a17;font-size:1.25rem;line-height:1}.bot{font-size:1.7rem;transition:transform .2s}.bot-east{transform:rotate(0)}.bot-south{transform:rotate(90deg)}.bot-west{transform:rotate(180deg)}.bot-north{transform:rotate(-90deg)}.program{background:var(--paper-2);border-radius:14px;flex-wrap:wrap;align-items:center;gap:6px;width:min(560px,100%);min-height:44px;padding:8px 12px;display:flex}.program-block{background:var(--blue);color:#fff;border-radius:10px;padding:7px 11px;font-size:.85rem;font-weight:800}.choice-options{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;width:100%;max-width:700px;display:grid}.choice-btn{border:3px solid var(--line);background:#fff;border-radius:22px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:130px;padding:12px;display:flex;box-shadow:0 4px #243b5314}.choice-btn:active:not(:disabled){box-shadow:none;transform:translateY(3px)}.choice-numeral{font-variant-numeric:tabular-nums;font-size:2.6rem;font-weight:900}.choice-objects{flex-wrap:wrap;justify-content:center;gap:3px;max-width:180px;display:flex}.trace-svg{aspect-ratio:1;border:3px dashed var(--line);touch-action:none;background:#fff;border-radius:24px;width:min(320px,70vw)}.stop-card{background:var(--card);border:1px solid var(--line);text-align:center;width:min(620px,100%);box-shadow:var(--shadow);border-radius:32px;flex-direction:column;align-items:center;gap:12px;padding:clamp(20px,4vw,40px);display:flex}.summary-grid{grid-template-columns:repeat(4,1fr);gap:10px;width:100%;margin:8px 0;display:grid}.summary-grid>div{background:#faf5ea;border-radius:16px;flex-direction:column;padding:12px 8px;display:flex}.summary-grid strong{font-size:1.6rem}.summary-grid span{color:var(--muted);font-size:.74rem;font-weight:800}.level-ups{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.level-up{background:#fffbe9;border:1px solid #f0e2ae;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:.82rem;font-weight:800;display:inline-flex}.parent-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.tabs{flex-wrap:wrap;gap:8px;margin:16px 0;display:flex}.tab-btn{background:var(--card);border:1px solid var(--line);border-radius:999px;min-height:48px;padding:10px 18px;font-weight:800}.tab-btn.active{background:var(--ink);color:var(--paper);border-color:var(--ink)}.parent-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;display:grid}.stat-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;display:grid}.stat-row>div{text-align:center;background:#faf5ea;border-radius:14px;flex-direction:column;padding:12px 8px;display:flex}.stat-row strong{font-size:1.5rem}.stat-row span{color:var(--muted);font-size:.72rem;font-weight:800}.gap-list,.flag-list{margin:0 0 12px;padding-left:18px;line-height:1.5}.quest-grid{gap:10px;display:grid}.quest{background:#faf5ea;border-radius:16px;padding:14px}.quest p{margin:4px 0 0;font-size:.9rem}.quest-ask{color:var(--muted);font-style:italic}.note-label{margin:12px 0 8px}.mood{border:2px solid var(--line);background:#fff;border-radius:12px;width:48px;height:48px;font-size:1.4rem}.mood.active{border-color:var(--blue);background:#eef5ff}.skill-table{flex-direction:column;gap:4px;margin-top:10px;display:flex}.skill-row{border:1px solid var(--line);background:#fff;border-radius:12px;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 12px;font-size:.86rem;display:flex}.skill-row>.mono{width:34px}.skill-row>.stars{flex-shrink:0}.skill-row .skill-actions{margin-left:auto}.skill-row.at-risk{background:#fff6ea;border-color:#f4d2ac}.skill-title{flex:220px;min-width:190px;font-weight:700}.skill-actions{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.slider{margin-bottom:16px}.slider input[type=range]{width:100%;accent-color:var(--blue);min-height:40px}.toggle{border-bottom:1px dashed var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:56px;padding:10px 0;font-weight:700;display:flex;position:relative}.toggle input{opacity:0;width:1px;height:1px;position:absolute}.toggle-track{background:#ddd5c4;border-radius:999px;flex-shrink:0;width:54px;height:32px;transition:background .15s;position:relative}.toggle-track:after{content:"";width:26px;height:26px;box-shadow:var(--shadow-soft);background:#fff;border-radius:50%;transition:transform .15s;position:absolute;top:3px;left:3px}.toggle input:checked+.toggle-track{background:var(--green)}.toggle input:checked+.toggle-track:after{transform:translate(22px)}.delete-box{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.delete-box input{flex:1;min-width:180px}.diag-progress{color:var(--muted);margin-bottom:8px;font-size:.8rem;font-weight:900}.confetti{pointer-events:none;z-index:70;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.confetti span{border-radius:2px;width:10px;height:16px;animation:1.5s ease-in forwards fall;position:absolute;top:-18px}@keyframes fall{to{opacity:0;transform:translateY(60vh)rotate(360deg)}}.loading-dots{gap:8px;display:flex}.loading-dots span{background:var(--sky);border-radius:50%;width:14px;height:14px;animation:.9s ease-in-out infinite bob}.loading-dots span:nth-child(2){background:var(--orange);animation-delay:.15s}.loading-dots span:nth-child(3){background:var(--green);animation-delay:.3s}@keyframes bob{0%,to{transform:translateY(0)}50%{transform:translateY(-9px)}}.loading-robot{flex-direction:column;align-items:center;gap:12px;display:flex}@media (max-width:900px){.hero{grid-template-columns:1fr}.speech{align-items:center;gap:10px;display:flex}.speech>span{flex:1}.speech-audio{width:44px;height:44px;box-shadow:none;flex-shrink:0;font-size:1.05rem}.speech:before{display:none}.setup{grid-template-columns:1fr;padding-top:12px}.skill-row .skill-actions{justify-content:flex-start;width:100%;margin-left:0}.summary-grid{grid-template-columns:repeat(2,1fr)}.stat-row{grid-template-columns:repeat(3,1fr)}}@media (max-width:620px){.wallet .pill:nth-child(3){display:none}.grid-2{grid-template-columns:1fr}.tab{min-width:72px}.objects-grid{grid-template-columns:repeat(5,1fr)}.object-tap{width:52px;height:52px}.seq-tile{width:54px;height:54px;font-size:1.2rem}.modal{padding:18px}}:root[data-reduced-motion=true] *{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}:root[data-reduced-motion=true] .robot{animation:none}@media (prefers-reduced-motion:reduce){*{transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}
