:root{color:#294e43;font-synthesis:none;--ink:#294e43;--accent:#578f77;--soft:#e7eedc;--line:#dbe2d1;--paper:#fffdf6;--shadow:0 14px 40px #3b554414;background:#f8f7f0;font-family:ui-rounded,Avenir Next,PingFang SC,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.48}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline-offset:4px;outline:3px solid #e4b34d}button{background:0 0;border:0;min-height:44px}a{color:inherit;text-decoration:none}.shell{max-width:1380px;margin:auto;padding:0 36px 24px}.topbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;height:94px;display:flex}.brand{align-items:center;gap:13px;font-size:20px;font-weight:800;display:flex}.brand .art{background:var(--soft);border-radius:15px;width:45px;height:45px;padding:5px}.brand small{letter-spacing:2px;margin-top:3px;font-size:10px;display:block}.top-actions{align-items:center;gap:9px;display:flex}.icon-btn{border:1px solid var(--line);background:var(--paper);border-radius:50%;width:44px;height:44px}.pill{border:1px solid var(--line);white-space:nowrap;border-radius:99px;padding:8px 13px;font-size:11px}.tag{letter-spacing:3px;color:#7f9487;text-transform:uppercase;font-size:10px;font-weight:700}.hero{grid-template-columns:.85fr 1.15fr;align-items:center;gap:58px;padding:48px 0 40px;display:grid}.hero h1{letter-spacing:-3px;margin:18px 0 20px;font-size:clamp(36px,4.8vw,65px);font-weight:850;line-height:1.18}.hero h1 em{color:var(--accent);font-style:normal}.intro{color:#78887c;max-width:410px;font-size:14px;line-height:1.9}.primary{background:var(--ink);color:#fffdf1;border-radius:13px;justify-content:center;align-items:center;gap:24px;min-height:53px;padding:15px 25px;font-weight:750;display:inline-flex;box-shadow:0 4px #163c3130}.secondary{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:12px 18px}.primary:hover{filter:brightness(1.1);transform:translateY(-1px)}.hero-actions{flex-wrap:wrap;gap:12px;margin:26px 0 18px;display:flex}.chips{color:#71816e;flex-wrap:wrap;gap:18px;font-size:11px;display:flex}.scene-frame{min-height:450px;box-shadow:var(--shadow);background:#e4eddb;border:8px solid #f0eee0;border-radius:34px;position:relative;overflow:hidden}.scene-frame svg.world{width:100%;height:100%;display:block}.scene-caption{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffcf0dc;border-radius:17px;justify-content:space-between;align-items:center;padding:15px 20px;font-size:12px;display:flex;position:absolute;bottom:20px;left:24px;right:24px}.feature-grid{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:32px;display:grid}.feature{background:var(--paper);border:1px solid var(--line);border-radius:18px;align-items:center;gap:15px;padding:22px;display:flex}.feature .art{width:50px}.feature h3{margin:0 0 6px;font-size:14px}.feature p{color:#899181;margin:0;font-size:12px;line-height:1.6}.section-head{justify-content:space-between;align-items:center;gap:15px;margin:28px 0 18px;display:flex}.section-head h2{letter-spacing:-1px;margin:0;font-size:25px}.section-head small{color:#7e8e80}.cards{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.chapter{border:1px solid var(--line);background:var(--paper);text-align:left;border-radius:20px;padding:24px}.chapter.active{border:2px solid var(--accent);background:var(--soft)}.chapter h3{margin:10px 0;font-size:19px}.chapter p{color:#7f8d7a;font-size:12px;line-height:1.7}.chapter .art{width:68px;height:68px}.chapter .status{margin-top:16px;font-size:11px;display:block}.footer{border-top:1px solid var(--line);color:#85907f;justify-content:space-between;gap:12px;margin-top:30px;padding-top:20px;font-size:10px;display:flex}.workspace{grid-template-columns:minmax(0,1fr) 310px;gap:24px;margin-top:25px;display:grid}.panel{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:23px}.panel h2{margin:9px 0 12px;font-size:23px}.panel h3{margin:10px 0;font-size:17px}.panel p{color:#7a877b;font-size:13px;line-height:1.8}.playfield{background:#e6eddd;border-radius:24px;min-height:430px;position:relative;overflow:hidden}.hud{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:15px;display:flex}.hud .stat{background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:9px 14px;font-size:12px}.hud .stat b{padding-right:5px;font-size:17px}.hud .spacer{flex:1}.hud button{border:1px solid var(--line);background:var(--paper);border-radius:11px;padding:8px 13px}.speech{background:var(--paper);border:1px solid var(--line);border-radius:17px;align-items:center;gap:13px;padding:17px 20px;display:flex;box-shadow:0 5px #36544008}.speech .avatar{flex:none;width:65px}.speech h2,.speech h3{margin:0 0 5px;font-size:clamp(19px,2.1vw,28px);line-height:1.35}.speech p{color:#7b8a77;margin:0;font-size:12px}.speech .text{flex:1;min-width:0}.say{background:var(--soft);border-radius:50%;min-width:44px;height:44px}.help{color:#7d8a78;margin:12px 0;font-size:12px;line-height:1.7}.choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0;display:grid}.choice{background:var(--paper);border:2px solid var(--line);border-radius:15px;min-height:78px;padding:15px;font-weight:700;transition:transform .15s,border-color .15s}.choice:hover{border-color:var(--accent);transform:translateY(-4px)}.choice .art{width:78px;margin:0 auto 7px;display:block}.choice.chosen{border-color:var(--accent);background:var(--soft)}.word-tokens{flex-wrap:wrap;justify-content:center;gap:10px;min-height:64px;display:flex}.token{background:var(--paper);border:1px solid var(--line);box-shadow:0 4px 0 var(--line);border-radius:12px;min-width:45px;padding:12px 18px;font-weight:700}.token:hover{transform:translateY(-2px)}.sentence-slot{background:#fffdf577;border:2px dashed #bccab7;border-radius:15px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:75px;margin:20px 0;padding:13px;display:flex}.sentence-slot .token{background:var(--soft);box-shadow:none}.feedback{color:#3f7355;background:#dfeedd;border:1px solid #b2cda9;border-radius:16px;margin:15px 0;padding:17px 19px;font-size:14px;line-height:1.7;animation:.28s pop}.feedback.error{color:#95694c;background:#faece0;border-color:#e7cab3}.feedback b{font-size:16px;display:block}.feedback button{margin-top:10px}.toast{color:#a07453;min-height:21px;font-size:12px;line-height:1.7}.muted{opacity:.6}.modal-backdrop{z-index:30;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#203b395d;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:var(--paper);border:1px solid var(--line);width:min(510px,100%);max-height:85vh;box-shadow:var(--shadow);border-radius:25px;padding:30px;overflow:auto}.modal h2{margin-top:6px;font-size:28px}.modal p{color:#7b8675;font-size:14px;line-height:1.8}.modal .art{width:90px}.modal-actions{flex-wrap:wrap;gap:10px;margin-top:20px;display:flex}.progressbar{background:#dce5d5;border-radius:99px;height:7px;overflow:hidden}.progressbar i{background:var(--accent);height:100%;transition:width .4s;display:block}.summary-stat{border-bottom:1px solid var(--line);align-items:center;gap:13px;padding:13px 0;display:flex}.summary-stat:last-child{border-bottom:0}.summary-stat b{font-size:25px}.summary-stat small{color:#86917e;font-size:11px}.review-list{gap:10px;display:grid}.review-row{border:1px solid var(--line);background:var(--paper);text-align:left;border-radius:14px;padding:13px 15px}.review-row small{color:#87917e;font-size:11px;line-height:1.8;display:block}.confetti{pointer-events:none;position:absolute;inset:0;overflow:hidden}.confetti i{background:var(--accent);width:6px;height:10px;transform:rotate(calc(var(--i) * 30deg));animation:.7s ease-out both spark;position:absolute;top:50%;left:50%}.badge{background:#f1deb1;border-radius:99px;padding:7px 12px;font-size:11px}.record-controls{flex-wrap:wrap;gap:8px;display:flex}.record-controls button{font-size:12px}.big-end{text-align:center;padding:36px}.big-end .art{width:120px}.big-end h2{font-size:32px}.demo-note{letter-spacing:1px;color:#8d9889;margin-top:20px;font-size:10px}.hide{display:none!important}@keyframes pop{0%{opacity:.5;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes bob{50%{transform:translateY(-6px)}}@keyframes spark{to{translate:calc((var(--i) - 6) * 16px) -140px;opacity:0;rotate:160deg}}@keyframes entrance{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.float{animation:3s ease-in-out infinite bob}.enter{animation:.35s entrance}.mobile-only{display:none}@media (width<=1000px){.shell{padding:0 22px 22px}.hero{gap:28px}.hero h1{font-size:46px}.scene-frame{min-height:370px}.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr;gap:16px;display:grid}.sidebar .panel{margin:0}.cards{gap:10px}.chapter{padding:18px}}@media (width<=600px){.shell{padding:0 15px 20px}.topbar{height:75px}.brand{gap:8px;font-size:16px}.brand .art{width:39px;height:39px}.brand small{font-size:8px}.top-actions .pill{display:none}.hero{flex-direction:column;align-items:stretch;gap:26px;padding:30px 0 25px;display:flex}.hero h1{letter-spacing:-2px;max-width:330px;font-size:42px}.intro{font-size:13px}.scene-frame{border-width:5px;border-radius:25px;min-height:310px}.feature-grid{grid-template-columns:1fr}.feature{padding:15px}.cards{grid-template-columns:1fr}.chapter{align-items:center;gap:16px;display:flex}.chapter .art{flex:none;width:56px}.chapter h3{margin:3px 0;font-size:18px}.chapter p{margin:0}.chapter .status{margin-top:5px}.workspace{gap:16px;margin-top:18px}.sidebar{display:block}.sidebar .panel{margin-bottom:14px}.panel{padding:18px}.speech{gap:9px;padding:13px}.speech .avatar{width:45px}.speech h2{font-size:20px}.choices{gap:8px}.choice{overflow-wrap:anywhere;padding:10px 6px;font-size:13px}.choice .art{width:62px}.token{padding:10px 13px}.footer{flex-direction:column;font-size:9px}.playfield{min-height:330px}.hud .stat{padding:7px 9px;font-size:10px}.hud .stat b{font-size:15px}.hud button{padding:7px 10px}.modal{padding:22px}.modal h2{font-size:24px}.mobile-only{display:block}.section-head h2{font-size:22px}.section-head small{font-size:10px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}:root{--ink:#455969;--accent:#8a93a1;--soft:#e5e9e8;--line:#d6dcda;background:#f5f5ed}.battle-world{height:440px;position:relative}.battle-world .world{width:100%;height:100%;position:absolute;inset:0}.duelist{text-align:center;transition:transform .2s;position:absolute;top:69%;left:27%;transform:translate(-50%,-50%)}.duelist .art{filter:drop-shadow(0 10px 4px #263d4425);width:142px}.duelist span{background:#eef2dfb8;border-radius:99px;padding:5px 12px;font-size:11px;display:block}.enemy-duelist{left:74%}.enemy-duelist .art{width:160px}.battle-meters{justify-content:space-between;gap:30px;display:flex;position:absolute;top:25px;left:26px;right:26px}.battle-meters>div{background:#f8f6e8c9;border-radius:15px;width:40%;padding:12px}.battle-meters b{margin-bottom:8px;font-size:12px;display:block}.battle-meters small{margin-top:6px;font-size:10px;display:block}.enemy-hp i{background:#b68781}.enemy-intent{border:1px solid var(--line);background:var(--paper);border-radius:14px;align-items:center;gap:12px;margin-bottom:13px;padding:13px 17px;font-size:12px;display:flex}.enemy-intent span{color:#8d928a;font-size:10px}.enemy-intent small{color:#85908c;margin-left:auto;font-size:10px}.spell-hand{grid-template-columns:repeat(4,1fr);gap:12px;margin-top:21px;display:grid}.spell-card{text-align:center;background:linear-gradient(170deg,#fcf9eb,#e4ebdf);border:2px solid #d1d8cc;border-radius:19px;min-height:210px;padding:19px 10px 12px;transition:transform .2s;position:relative;box-shadow:0 5px #ccd5cb}.spell-card:hover{transform:translateY(-9px)rotate(-2deg)}.spell-card.fire{background:linear-gradient(160deg,#fff2d6,#efddc2);border-color:#d8be96}.spell-card.water{background:linear-gradient(160deg,#f0f7f0,#d8e9e9);border-color:#a7c5c7}.spell-card.heal{background:linear-gradient(160deg,#fff5ed,#ecd9ce);border-color:#d9b8a5}.spell-card .mana{background:#f9f7e7;border:1px solid #adbcaf;border-radius:50%;width:28px;height:28px;font-size:13px;line-height:27px;position:absolute;top:10px;left:10px}.spell-card .art{width:72px;height:72px;margin:4px auto 13px;display:block}.spell-card strong{font-size:20px;display:block}.spell-card small{letter-spacing:.8px;color:#899285;font-size:9px}.spell-card p{margin:14px 0 0;font-size:10px;line-height:1.7}.spell-challenge{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:20;background:#253b4459;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.spell-challenge .modal{width:min(630px,100%)}.region-grid{grid-template-columns:repeat(3,1fr);gap:18px;display:grid}.region-art .art{height:115px;margin:10px auto 20px;display:block}.route-node{text-align:left;border:1px solid var(--line);background:#f3f3e8;border-radius:15px;align-items:center;gap:12px;width:100%;margin-top:12px;padding:15px;display:flex}.route-node>span{background:var(--soft);text-align:center;border-radius:50%;width:30px;height:30px;font-size:11px;line-height:30px}.route-node b{font-size:13px}.route-node small{color:#89918a;margin-top:5px;font-size:10px;display:block}.spell-orb{filter:drop-shadow(0 0 15px #efcf70);width:60px;animation:.65s ease-out both cast;position:absolute;top:65%;left:30%}.spell-orb.guard,.spell-orb.heal{animation:.65s ease-out both heal}.struck{animation:.5s shake}.cast-fire{animation:.5s flash-fire}.cast-water{animation:.5s flash-water}@keyframes cast{0%{opacity:0;translate:0;scale:.5}50%{opacity:1}to{opacity:0;translate:300px -30px;scale:1.6}}@keyframes heal{to{opacity:0;translate:0 -60px;scale:2}}@keyframes shake{25%{translate:12px}50%{translate:-8px}75%{translate:4px}}@keyframes flash-fire{50%{filter:sepia(.25)brightness(1.2)}}@keyframes flash-water{50%{filter:brightness(1.18)hue-rotate(8deg)}}@media (width<=600px){.battle-world{height:330px}.duelist .art{width:94px}.enemy-duelist .art{width:107px}.battle-meters{gap:15px;top:15px;left:12px;right:12px}.battle-meters>div{width:48%;padding:9px}.battle-meters b{font-size:10px}.enemy-intent{flex-wrap:wrap;gap:7px;font-size:11px}.enemy-intent small{width:100%;margin:0}.spell-hand{grid-template-columns:repeat(4,1fr);gap:7px}.spell-card{border-radius:13px;min-height:163px;padding:14px 5px 10px}.spell-card .art{width:48px;height:48px;margin:15px auto 10px}.spell-card .mana{width:23px;height:23px;font-size:11px;line-height:22px;top:6px;left:6px}.spell-card strong{font-size:15px}.spell-card small{letter-spacing:0;font-size:7px}.spell-card p{margin-top:8px;font-size:8px;line-height:1.6}.region-grid{grid-template-columns:1fr}.region-grid .panel{grid-template-columns:70px 1fr;gap:0 14px;display:grid}.region-art{grid-row:1/5}.region-art .art{height:75px;margin:0}.region-grid h2{font-size:22px}.spell-orb{width:45px}@keyframes cast{to{opacity:0;translate:150px -20px;scale:1.5}}}
