:root{--bg: #fff4e6;--bg2: #ffe8d1;--card: #ffffff;--ink: #1b2a41;--muted: #6b7a90;--robbie: #2ec4b6;--robbie-dark: #1e7f77;--robbie-face: #e8fffb;--robbie-eye: #1b2a41;--cheek: #ff8fa3;--accent: #ff9f1c;--accent-ink: #7a4300;--listen: #ff4d6d;--right: #22b07d;--right-bg: #dcfaec;--wrong: #e5484d;--wrong-bg: #ffe5e5;--en: #5b3df5;--en-bg: #ece8ff;--line: #f0dcc6;--shadow: 0 6px 0 rgba(27, 42, 65, .08), 0 14px 30px rgba(27, 42, 65, .08);--radius: 24px;color-scheme:light}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{font-family:Nunito,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(120% 80% at 50% 0%,#fffaf3 0%,var(--bg) 45%,var(--bg2) 100%);overscroll-behavior:none;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}mark.en,.en{color:var(--en)}mark.en{background:var(--en-bg);border-radius:8px;padding:0 4px;font-weight:800}.splash{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;cursor:pointer}.splash h1{font-size:34px;font-weight:900;margin:18px 0 0}.splash p{margin:0 0 28px;color:var(--muted);font-size:19px;font-weight:700}.start-btn{font-size:22px;padding:20px 36px}.app{height:100dvh;display:flex;flex-direction:column;max-width:560px;margin:0 auto}.topbar{display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 16px 6px}.class-title{flex:1;font-weight:900;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.title-emoji{font-size:22px}.xp-chip{background:#fff;border-radius:999px;padding:6px 12px;font-weight:900;font-size:15px;box-shadow:0 2px 0 var(--line);white-space:nowrap}.icon-btn{width:44px;height:44px;border-radius:14px;background:#fff;font-size:20px;display:grid;place-items:center;box-shadow:0 3px 0 var(--line);flex-shrink:0}.icon-btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--line)}.stage{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 16px;gap:12px;justify-content:center;overflow-y:auto;overflow-x:hidden}.stage.with-block{justify-content:flex-start}.robbie-row{display:flex;flex-direction:column;align-items:center;gap:14px}.stage.with-block .robbie-row{flex-direction:row;align-items:flex-start;gap:10px}.robbie-btn{padding:0;border-radius:50%;flex-shrink:0}.robbie{position:relative;display:grid;place-items:center}.robbie svg{position:relative;z-index:1;overflow:visible}.robbie-ring{position:absolute;top:4%;right:4%;bottom:4%;left:4%;border-radius:50%;border:4px solid var(--listen);z-index:0}.robbie-dots{position:absolute;top:2%;right:-6%;display:flex;gap:4px;z-index:2;background:#fff;padding:6px 9px;border-radius:14px;box-shadow:var(--shadow)}.robbie-dots span{width:7px;height:7px;border-radius:50%;background:var(--muted);display:block}.bubble-wrap{width:100%;min-height:84px;display:flex;justify-content:center}.bubble-wrap.side{min-height:0;flex:1;justify-content:flex-start}.caption{width:100%;text-align:center}.caption p{margin:0;font-size:24px;line-height:1.35;font-weight:800;text-wrap:balance}.caption.compact{text-align:left}.caption.compact p{font-size:17px;line-height:1.35;background:#fff;padding:10px 14px;border-radius:18px 18px 18px 6px;box-shadow:var(--shadow);position:relative}.block-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 16px;position:relative;overflow:hidden}.block{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}.block-prompt{font-size:21px;font-weight:900;margin:0;line-height:1.25}.translation{color:var(--muted);font-weight:700;font-size:17px;margin:0}.big-emoji{font-size:76px;line-height:1}.hint{color:var(--muted);font-weight:800;font-size:15px}.link{color:var(--muted);font-weight:800;text-decoration:underline;padding:8px}.scene-emojis{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;font-size:72px;line-height:1.1;padding:8px 0}.scene-emojis span{display:inline-block}.scene-caption{font-size:19px;font-weight:800;margin:0}.options{display:grid;gap:12px;width:100%;grid-template-columns:1fr}.options.n2,.options.n4{grid-template-columns:1fr 1fr}.option{display:flex;align-items:center;gap:12px;padding:16px;min-height:64px;border-radius:18px;background:#fff;border:3px solid var(--line);box-shadow:0 4px 0 var(--line);font-size:20px;font-weight:800;text-align:left}.options.n2 .option,.options.n4 .option{flex-direction:column;justify-content:center;text-align:center;gap:6px}.option-emoji{font-size:36px;line-height:1}.option.right{border-color:var(--right);background:var(--right-bg);box-shadow:0 4px 0 var(--right)}.option.wrong{border-color:var(--wrong);background:var(--wrong-bg);box-shadow:0 4px 0 var(--wrong)}.option.chosen{border-color:var(--robbie);background:var(--robbie-face);box-shadow:0 4px 0 var(--robbie)}.card{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}.word-row{display:flex;align-items:center;gap:10px}.word{font-size:40px;font-weight:900}.phonetic{color:var(--muted);font-weight:700}.word-card .translation{font-size:22px;color:var(--ink)}.example{font-style:italic;font-weight:700;font-size:17px;padding:6px 10px;border-radius:12px;background:var(--en-bg)}.speaker{width:48px;height:48px;border-radius:50%;background:var(--en-bg);font-size:22px;display:grid;place-items:center}.phrase-big{font-size:32px;font-weight:900;line-height:1.2;padding:10px 16px;border-radius:18px;background:var(--en-bg);color:var(--en)}.inline-speaker{font-size:22px}.heard{font-weight:800;padding:8px 14px;border-radius:14px;background:#f5f5f5}.heard.right{background:var(--right-bg);color:var(--right)}.heard.close{background:#fff3d6;color:var(--accent-ink)}.heard.wrong{background:var(--wrong-bg);color:var(--wrong)}.sentence{font-size:28px;font-weight:900;margin:6px 0;line-height:1.6}.slot{display:inline-block;min-width:72px;border-bottom:4px solid var(--en);margin:0 6px;padding:0 6px;border-radius:6px}.slot.right{background:var(--right-bg);border-color:var(--right);color:var(--right)}.slot.wrong{background:var(--wrong-bg);border-color:var(--wrong);color:var(--wrong)}.correction{color:var(--right);font-weight:800;margin:0}.chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;min-height:54px}.chip{display:inline-block;padding:12px 18px;border-radius:14px;background:#fff;border:3px solid var(--line);box-shadow:0 4px 0 var(--line);font-size:21px;font-weight:800}.chip.ghost{color:transparent;background:#f6efe6;box-shadow:none;border-color:#f6efe6}.answer-line{width:100%;min-height:68px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;border-bottom:3px dashed var(--line);padding:6px 0 12px}.answer-line.right .chip{border-color:var(--right);background:var(--right-bg)}.answer-line.wrong .chip{border-color:var(--wrong);background:var(--wrong-bg)}.placeholder{color:var(--line);font-size:28px;font-weight:900}.match-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}.col{display:flex;flex-direction:column;gap:10px}.tile{padding:14px 10px;min-height:58px;border-radius:16px;background:#fff;border:3px solid var(--line);box-shadow:0 4px 0 var(--line);font-size:19px;font-weight:800}.tile.selected{border-color:var(--en);background:var(--en-bg);box-shadow:0 4px 0 var(--en)}.tile.matched{border-color:var(--right);background:var(--right-bg);box-shadow:none}.tile.wrong{border-color:var(--wrong);background:var(--wrong-bg)}.primary{background:var(--accent);color:#fff;font-weight:900;font-size:19px;padding:16px 28px;border-radius:18px;box-shadow:0 5px #d97e00;letter-spacing:.2px}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px #d97e00}.primary:disabled{opacity:.6}.primary.wide{width:100%}.secondary{background:#fff;font-weight:900;font-size:18px;padding:16px 22px;border-radius:18px;box-shadow:0 4px 0 var(--line)}.celebrate{padding:10px 0}.celebrate h2{margin:0;font-size:28px;font-weight:900}.celebrate p{margin:0;font-weight:800;color:var(--muted);font-size:18px}.trophy{font-size:86px}.xp-pill{background:var(--accent);color:#fff;font-weight:900;font-size:22px;padding:8px 18px;border-radius:999px}.confetti{position:absolute;left:50%;top:45%;width:0;height:0;pointer-events:none;z-index:3}.confetti span{position:absolute;border-radius:2px;display:block}.talkbar{position:relative;padding:8px 16px calc(12px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;gap:6px}.talk-row{display:flex;align-items:center;justify-content:space-between}.spacer{width:44px}.mic{position:relative;width:76px;height:76px;border-radius:50%;background:var(--robbie);color:#fff;font-size:32px;display:grid;place-items:center;box-shadow:0 6px 0 var(--robbie-dark)}.mic.listening{background:var(--listen);box-shadow:0 6px #b8243f}.mic.speaking{background:#fff;color:var(--ink);box-shadow:0 6px 0 var(--line)}.mic.thinking{opacity:.7}.mic-pulse{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;border-radius:50%;border:4px solid var(--listen);animation:pulse 1.4s ease-out infinite}@keyframes pulse{0%{transform:scale(.9);opacity:.8}to{transform:scale(1.35);opacity:0}}.status{text-align:center;font-weight:800;color:var(--muted);font-size:15px;min-height:20px}.interim,.toast{position:absolute;left:0;right:0;margin:0 auto;width:fit-content;bottom:calc(100% + 4px);background:#fff;padding:8px 14px;border-radius:16px;box-shadow:var(--shadow);font-weight:800;max-width:calc(100% - 32px);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toast{background:var(--ink);color:#fff;font-size:14px}.type-row{display:flex;gap:8px}.type-row input{flex:1;min-width:0;font:inherit;font-size:18px;font-weight:700;padding:14px 16px;border-radius:16px;border:3px solid var(--line);background:#fff;color:var(--ink);outline:none}.type-row input:focus{border-color:var(--robbie)}.send{width:54px;border-radius:16px;background:var(--robbie);color:#fff;font-size:22px}.ended-actions{display:flex;flex-direction:column;gap:10px}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:var(--bg);display:flex;flex-direction:column;max-width:560px;margin:0 auto}.sheet-head{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px}.sheet-head h1{flex:1;margin:0;font-size:22px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sheet-body{flex:1;overflow-y:auto;padding:8px 16px 32px;display:flex;flex-direction:column;gap:18px}.muted{color:var(--muted);font-weight:700;text-align:center}.path{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;position:relative}.path:before{content:"";position:absolute;left:50%;top:20px;bottom:20px;width:6px;margin-left:-3px;background:repeating-linear-gradient(to bottom,var(--line) 0 14px,transparent 14px 24px);border-radius:3px}.path-node{position:relative;display:flex}.path-node.left{justify-content:flex-start}.path-node.right{justify-content:flex-end}.path-node button{width:82%;display:flex;gap:12px;align-items:center;text-align:left;background:#fff;padding:12px;border-radius:22px;box-shadow:var(--shadow)}.node-emoji{width:60px;height:60px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:30px;background:var(--robbie);box-shadow:0 4px 0 var(--robbie-dark)}.path-node.live .node-emoji{background:var(--accent);box-shadow:0 4px #d97e00;animation:bob 1.6s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-4px)}}.node-text{display:flex;flex-direction:column;gap:2px;min-width:0}.node-text strong{font-size:17px;font-weight:900}.node-text small{color:var(--muted);font-weight:800}.node-text em{font-style:normal;font-size:14px;color:var(--ink);opacity:.8}.profile-card{background:#fff;border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}.profile-card h2{margin:0 0 8px;font-size:18px;font-weight:900}.profile-section h3{margin:10px 0 4px;font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.profile-section ul{margin:0;padding:0;list-style:none}.profile-section li{padding:4px 0;font-weight:700}.profile-section li span{color:var(--muted);font-weight:800;margin-right:6px}.transcript{gap:10px}.summary{background:var(--robbie-face);border-radius:16px;padding:12px 14px;font-weight:800;margin:0}.bubble{max-width:85%;padding:10px 14px;border-radius:18px;font-weight:700;font-size:16px;line-height:1.35}.robbie-bubble{background:#fff;align-self:flex-start;border-bottom-left-radius:6px;box-shadow:0 2px 0 var(--line)}.learner-bubble{background:var(--robbie);color:#fff;align-self:flex-end;border-bottom-right-radius:6px}.learner-bubble.right{background:var(--right)}.learner-bubble.wrong{background:var(--wrong)}.mini-block{align-self:center;background:var(--en-bg);color:var(--ink);font-weight:800;font-size:14px;padding:8px 12px;border-radius:12px;text-align:center;max-width:92%}@media(min-height:760px){.caption p{font-size:26px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important}}.demo-bar{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:22px}.lang-pick{display:flex;gap:8px;background:#fff;padding:5px;border-radius:16px;box-shadow:0 3px 0 var(--line)}.lang-pick button{padding:9px 14px;border-radius:12px;font-weight:800;font-size:15px}.lang-pick button.on{background:var(--robbie);color:#fff}.dev{min-height:100dvh;max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom))}.dev h1{margin:0;font-size:24px;font-weight:900}.dev h2{margin:0 0 8px;font-size:16px;font-weight:900}.dev-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dev-head .secondary{padding:10px 16px;font-size:15px}.dev-call{display:flex;flex-direction:column;align-items:center;gap:8px;padding:8px 0}.dev-orb{width:132px;height:132px;border-radius:50%;font-size:52px;background:var(--robbie);color:#fff;box-shadow:0 8px 0 var(--robbie-dark),0 0 0 10px #2ec4b626}.dev-orb.off{background:var(--accent);box-shadow:0 8px #d97e00,0 0 0 10px #ff9f1c26}.dev-orb.hearing{background:var(--listen);box-shadow:0 8px #b8243f,0 0 0 14px #ff4d6d2e}.dev-err{color:var(--wrong);font-weight:800;text-align:center;margin:0}.dev-lines{flex:1;min-height:160px;display:flex;flex-direction:column;gap:8px}.dev-line{max-width:88%;padding:9px 13px;border-radius:16px;font-weight:700;font-size:15px;line-height:1.4}.dev-line.ai{background:#fff;align-self:flex-start;box-shadow:0 2px 0 var(--line)}.dev-line.you{background:var(--robbie);color:#fff;align-self:flex-end}.dev-line.tool{align-self:center;background:var(--en-bg);color:var(--ink);font-size:13px}.dev-inbox{background:#fff;border-radius:20px;padding:14px;box-shadow:var(--shadow)}.dev-item{padding:8px 0;border-top:1px solid var(--line);font-weight:600;font-size:15px}.dev-item b{text-transform:uppercase;font-size:11px;letter-spacing:.06em;color:var(--accent-ink);background:#fff0db;padding:2px 6px;border-radius:6px;margin-right:6px}.dev-item small{display:block;color:var(--muted);font-weight:600}.dev-health{display:grid;gap:6px;width:100%;max-width:420px;margin-top:10px}.dev-check{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;padding:8px 12px;border-radius:12px;background:#7f7f7f14;text-align:left}.dev-check small{grid-column:2;opacity:.75;font-size:12px;word-break:break-word}.dev-check.bad{background:#dc3c3c1a}.dev-orb:disabled{opacity:.45;filter:grayscale(.6);cursor:not-allowed}
