:root{--paper:#f2f0e8;--ink:#304a3b;--muted:#788071;--accent:#b75c3c;--line:rgba(53,71,51,.16);--serif:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;--sans:"PingFang SC","Hiragino Sans GB",system-ui,sans-serif;--ease:cubic-bezier(.2,.7,.2,1)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#eeeae1;color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}button,a,input,select{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;cursor:pointer;background:none}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button,summary{touch-action:manipulation}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}#app{position:relative;width:100%;height:100%;isolation:isolate}.world-wrap{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#eeeae1}#world{display:block;width:100%;height:100%;touch-action:manipulation}.paper-edge{position:absolute;inset:0;pointer-events:none;border:14px solid rgba(246,244,237,.42);z-index:12}.topbar{height:96px;position:absolute;top:0;left:0;width:100%;display:flex;justify-content:space-between;align-items:center;padding:0 4.5%;z-index:20}.brand{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-size:22px;letter-spacing:3px;font-weight:600}.brand-mark{display:grid;place-items:center;border:1px solid var(--ink);border-radius:50%;width:39px;height:39px}.brand-mark svg{width:25px;height:25px}.brand-divider{font-weight:300;opacity:.35;margin:0 17px;font-family:var(--sans)}.brand small{font-family:var(--sans);font-size:10px;letter-spacing:2px;font-weight:400}.top-actions{display:flex;align-items:center;gap:19px}.quiet-button{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1px;min-height:40px}.quiet-button svg{width:17px;height:17px}.icon-button{width:39px;height:39px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:rgba(245,242,231,.6)}.icon-button svg{width:18px;height:18px}#sound-button[aria-pressed=true]{opacity:.45}.game-only{display:none}#app[data-screen=game] .game-only{display:inline-flex}.home-screen{position:absolute;inset:0;pointer-events:none}.home-copy{position:absolute;left:7.2%;top:22%;pointer-events:auto;width:440px;max-width:40vw}.eyebrow{margin:0 0 22px;font-size:10px;font-weight:500;letter-spacing:3px;text-transform:uppercase;display:flex;align-items:center;gap:10px}.eyebrow>span{width:24px;height:1px;background:var(--accent)}h1{font-family:var(--serif);font-size:clamp(38px,4.15vw,66px);line-height:1.4;font-weight:500;letter-spacing:3px;margin:0 0 24px}h1 span{color:var(--accent)}.home-description{font-size:13px;line-height:2.15;letter-spacing:1px;color:#65705e;margin:0 0 34px}.course-picker{display:flex;width:290px;border-bottom:1px solid var(--line);gap:25px;margin-bottom:24px}.course{text-align:left;padding:0 0 12px;position:relative;opacity:.56}.course.active{opacity:1}.course.active:after{content:"";position:absolute;bottom:-1px;left:0;width:100%;height:2px;background:var(--ink)}.course span{display:block;font-size:13px;letter-spacing:1px}.course small{display:block;font-size:9px;letter-spacing:1px;margin-top:7px;color:var(--muted)}.primary-button{background:var(--ink);color:#faf4de;display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:15px 22px;border-radius:5px;font-size:13px;letter-spacing:1.4px;min-height:49px;transition:background .2s,transform .2s}.primary-button:hover{background:#435e49;transform:translateY(-2px)}.primary-button svg{width:19px;height:19px}.start-button{min-width:290px;justify-content:space-between}.start-button svg{margin-left:14px}.mode-picker{display:flex;align-items:center;gap:12px;margin-top:19px}.mode{font-size:10px;letter-spacing:1px;display:flex;align-items:center;gap:5px;opacity:.54;padding:5px 0}.mode.active{opacity:1}.mode.active:before{content:"";width:4px;height:4px;border-radius:50%;background:var(--accent)}.mode svg{width:13px;height:13px}.mode-divider{height:11px;width:1px;background:var(--line)}.home-note{font-size:10px;line-height:1.8;color:#858876;letter-spacing:.5px;max-width:300px}.home-footer{position:absolute;bottom:33px;left:4.5%;right:4.5%;display:flex;justify-content:space-between;color:#7f8575;font-size:9px;letter-spacing:2px}.island-caption{position:absolute;right:8%;bottom:10%;display:flex;gap:12px;align-items:center;text-align:left;font-size:9px;letter-spacing:2px;color:#6d7366}.caption-line{width:34px;height:1px;background:#9b8e69}.island-caption p{margin:0;line-height:1.8}.island-caption small{display:block;font-size:9px;letter-spacing:1px}.game-screen{position:absolute;inset:0;pointer-events:none}.quest{position:absolute;left:5%;top:17%;width:270px;pointer-events:auto}.quest .eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent);margin-bottom:14px}.quest h2{font-family:var(--serif);font-size:28px;line-height:1.5;font-weight:500;letter-spacing:2px;margin:0 0 14px}.quest>p:not(.eyebrow){font-size:11px;line-height:1.95;letter-spacing:.7px;color:#7a8070;margin:0;max-width:235px}.chapter-trail{display:flex;align-items:center;list-style:none;padding:0;margin:25px 0 19px;gap:21px;font-size:9px;letter-spacing:1px;color:#8a8c7a}.chapter-trail li{position:relative;padding-top:15px}.chapter-trail li:before{content:"";width:5px;height:5px;background:#a8ac99;position:absolute;top:0;left:50%;transform:translateX(-50%);border-radius:50%}.chapter-trail li+li:after{content:"";position:absolute;top:2px;left:-24px;width:34px;height:1px;background:rgba(90,103,81,.2)}.chapter-trail li.current{color:var(--ink)}.chapter-trail li.current:before{background:var(--accent);box-shadow:0 0 0 4px rgba(183,92,60,.12)}.chapter-trail li.complete:before{background:var(--ink)}.journey-count{font-size:10px;letter-spacing:.7px;display:flex;align-items:center;gap:6px;color:#6c7863}.journey-count svg{width:15px;height:15px}.node-controls{position:absolute;inset:0;pointer-events:none}.node-button{position:absolute;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;pointer-events:auto;z-index:2;color:#fff9e7;display:grid;place-items:center}.node-button:before{content:"";position:absolute;inset:5px;border:1px solid rgba(255,249,219,.85);border-radius:50%;background:rgba(76,87,53,.24);transition:transform .3s}.node-button:hover:before,.node-button.selected:before{transform:scale(1.22);background:rgba(76,87,53,.5)}.node-button svg{width:19px;height:19px;position:relative;filter:drop-shadow(0 1px 2px #526244)}.node-label{position:absolute;top:59px;white-space:nowrap;font-size:10px;letter-spacing:2px;color:#304a3b;padding:4px 8px;background:rgba(247,244,232,.88);border-radius:3px}.node-button.visited:after{content:"";width:5px;height:5px;position:absolute;right:4px;top:7px;background:var(--accent);border-radius:50%}.selection-hint{position:absolute;left:50%;bottom:10%;transform:translateX(-50%);padding:13px 21px;background:rgba(247,245,236,.91);border:1px solid rgba(113,126,99,.15);border-radius:30px;display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:1px;white-space:nowrap;box-shadow:0 5px 25px rgba(52,65,41,.05)}.hint-pulse{width:5px;height:5px;background:var(--accent);border-radius:50%;animation:soft-pulse 2s infinite}.answer-panel{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);width:min(690px,calc(100% - 48px));background:rgba(248,246,237,.97);border:1px solid rgba(95,110,78,.2);border-radius:11px;pointer-events:auto;padding:16px 23px 13px;box-shadow:0 12px 50px rgba(47,56,31,.1);animation:panel-in .4s var(--ease)}.answer-leading{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#79836e;letter-spacing:1.6px}.answer-leading>span:first-child:before{content:"";display:inline-block;width:14px;height:1px;background:var(--accent);vertical-align:middle;margin-right:8px}.repeat-tag{font-size:9px;letter-spacing:1px;background:#e9ebdd;color:#6c7c56;padding:3px 7px;border-radius:3px}.answer-main{display:flex;justify-content:space-between;align-items:center;gap:22px;min-height:99px}.word-group{position:relative;padding:12px 0 8px;min-width:0}.target-word{font-family:"Kaiti SC","STKaiti","KaiTi",var(--serif);font-size:52px;font-weight:500;letter-spacing:8px;line-height:1.1;margin:0;color:#293e31}.word-group>span{font-size:9px;letter-spacing:1px;color:#8b8e7b;display:block;margin-top:9px}.pinyin{font-size:13px;letter-spacing:2px;color:var(--accent);margin:0 0 8px}.listen-button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:208px;height:56px;border-radius:6px;background:var(--ink);color:#fff9e8;font-size:11px;letter-spacing:.8px;padding:12px 18px;flex-shrink:0;transition:background .3s}.listen-button:hover{background:#43604a}.listen-button svg{width:19px;height:19px}.listen-button.listening{background:#ac5c3c}.listen-button.listening>svg{display:none}.voice-bars{display:none;align-items:center;gap:3px;height:22px}.voice-bars b{display:block;width:2px;height:11px;background:currentColor;animation:voice .8s ease-in-out infinite}.voice-bars b:nth-child(2){animation-delay:-.2s}.voice-bars b:nth-child(3){animation-delay:-.4s}.voice-bars b:nth-child(4){animation-delay:-.6s}.listening .voice-bars{display:flex}.parent-confirm{font-size:10px;min-width:208px;padding:15px;letter-spacing:.6px;gap:8px}.answer-status{font-size:10px;line-height:1.8;color:#7a826d;min-height:19px;margin:3px 0 9px}.answer-status.uncertain{color:#a0613e}.answer-status.help{color:#817247}.answer-tools{display:flex;align-items:center;gap:15px;border-top:1px solid rgba(84,104,68,.11);padding-top:10px}.text-button{font-size:10px;line-height:1.7;letter-spacing:.5px;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:25px;color:#718265;padding:2px 0}.text-button:hover{color:var(--accent)}.text-button svg{width:13px;height:13px}.key-hint{font-size:8px;letter-spacing:1px;color:#a2a38d;margin-left:auto}.parent-override{margin-left:auto;font-size:9px}.feedback{position:absolute;top:39%;left:44%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;pointer-events:none;animation:feedback-in .35s var(--ease);padding:21px 33px;background:rgba(249,246,230,.93);border-radius:8px;border:1px solid rgba(154,141,92,.22);min-width:240px}.feedback-symbol{width:35px;height:35px;border:1px solid #b4b69b;border-radius:50%;display:grid;place-items:center;color:var(--accent)}.feedback strong{font-family:var(--serif);font-size:25px;letter-spacing:3px;font-weight:500}.feedback>span:last-child{font-size:10px;color:#849076;letter-spacing:1px;max-width:250px;line-height:1.8}.stage-note{position:absolute;left:6%;top:36%;width:300px;pointer-events:auto;padding:28px 26px;background:rgba(248,246,234,.96);border:1px solid rgba(140,150,111,.2);border-radius:8px;animation:panel-in .5s var(--ease)}.stage-note small{font-size:9px;letter-spacing:3px;color:var(--accent)}.stage-note h2{font-family:var(--serif);font-size:26px;letter-spacing:2px;font-weight:500;margin:14px 0}.stage-note p{font-size:11px;line-height:2;letter-spacing:.6px;color:#7a806b}.stage-note .primary-button{margin-top:10px;font-size:11px;min-height:43px;padding:11px 18px}.ending-screen{position:absolute;inset:0;display:grid;place-items:center;background:rgba(237,237,224,.36);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);z-index:22}.ending-card{width:min(580px,calc(100% - 40px));text-align:center;padding:35px 38px;background:rgba(248,246,236,.96);border:1px solid rgba(118,130,98,.24);border-radius:12px;box-shadow:0 15px 80px rgba(54,65,39,.12);animation:panel-in .7s var(--ease)}.ending-emblem{width:57px;height:57px;margin:0 auto 22px;border-radius:50%;border:1px solid #adac8c;display:grid;place-items:center;color:#9b7841}.ending-emblem svg{width:31px;height:31px}.ending-card .eyebrow{justify-content:center;color:#8b8d70;font-size:9px;margin-bottom:15px}.ending-card h2{font-family:var(--serif);font-size:33px;line-height:1.5;letter-spacing:3px;font-weight:500;margin:0 0 13px}.ending-card>p:not(.eyebrow){font-size:11px;line-height:1.9;color:#81856d}.ending-stats{display:flex;justify-content:center;gap:34px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;margin:27px 0 16px}.ending-stats strong{font-family:var(--serif);font-size:35px;font-weight:400;display:block;margin-bottom:7px}.ending-stats span{font-size:9px;letter-spacing:.5px}.ending-review{min-height:22px}.ending-actions{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:22px}.ending-actions .primary-button{width:280px;font-size:11px}.save-status{font-size:8px!important;color:#92967c!important;letter-spacing:.5px;margin:19px 0 0}.journal-dialog{border:1px solid #d5d8c4;border-radius:12px;background:#f7f5ec;width:min(670px,calc(100% - 30px));max-height:85dvh;padding:30px 34px;color:var(--ink);box-shadow:0 20px 100px rgba(35,46,29,.2)}dialog::backdrop{background:rgba(39,53,37,.3);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.journal-header{display:flex;align-items:center;justify-content:space-between}.journal-header .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:10px}.journal-header h2{font-size:29px;font-family:var(--serif);font-weight:500;margin:0;letter-spacing:4px}.journal-intro{font-size:11px;line-height:1.9;color:#7e836f;margin:18px 0 21px}.journal-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line)}.journal-tabs button{font-size:12px;padding:0 0 10px;opacity:.5}.journal-tabs button.active{opacity:1;border-bottom:2px solid var(--ink)}.journal-summary{display:flex;gap:30px;padding:22px 0 8px}.journal-summary strong{font-size:25px;font-weight:400;font-family:var(--serif);display:block}.journal-summary span{font-size:9px;letter-spacing:.5px}.journal-note{font-size:9px;color:#92967e;line-height:1.9;margin:14px 0}.journal-words{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.journal-word{position:relative;min-height:72px;border:1px solid rgba(96,114,76,.15);border-radius:5px;padding:10px 11px}.journal-word strong{font-family:var(--serif);font-size:17px;font-weight:500;display:block;letter-spacing:1px}.journal-word span{font-size:8px;color:#8f947c;display:block;margin-top:7px;line-height:1.6}.journal-word.known{background:#e9eddc}.journal-word.review{background:#f0e7d4}.journal-word.known:after{content:"";width:4px;height:4px;background:#6e8556;border-radius:50%;position:absolute;right:9px;top:12px}.parent-settings{border-top:1px solid var(--line);margin-top:24px;padding-top:18px}.parent-settings summary{font-size:11px;cursor:pointer;letter-spacing:1px}.parent-settings label{font-size:10px;display:flex;gap:15px;align-items:center;margin-top:20px}.parent-settings select{border:1px solid #ced4be;border-radius:3px;color:var(--ink);background:#faf9f1;font-size:11px;padding:6px}.parent-settings p{font-size:10px;line-height:1.9;color:#899074}.backup-actions{display:flex;gap:30px;align-items:center}.backup-actions .quiet-button{font-size:10px}.import-label{cursor:pointer;margin:0!important}.small-dialog{border:1px solid #d5d8c4;border-radius:10px;background:#f7f5ec;color:var(--ink);width:min(410px,calc(100% - 36px));padding:30px}.small-dialog h2{font-family:var(--serif);font-size:26px;font-weight:500;letter-spacing:2px;margin:0 0 16px}.small-dialog p{font-size:12px;color:#7e836f;line-height:2}.small-dialog>div{display:flex;gap:22px;align-items:center;margin-top:25px}.small-dialog .primary-button{font-size:11px}.notice{position:absolute;left:50%;top:100px;transform:translateX(-50%);background:#344c3d;color:#f5f1df;font-size:11px;padding:13px 21px;border-radius:7px;line-height:1.8;max-width:min(570px,85vw);z-index:50;box-shadow:0 5px 25px rgba(25,41,28,.1)}.noscript{padding:30px;background:var(--paper);position:absolute;inset:100px 20px auto}.answer-panel.success{border-color:#8d9c6b}.game-screen.busy .node-controls{pointer-events:none}.game-screen.busy .node-button{pointer-events:none}.node-controls[hidden]{display:none}.chapter-trail li.complete{color:#5e7756}
@keyframes soft-pulse{50%{opacity:.3;transform:scale(.8)}}@keyframes voice{50%{height:22px}}@keyframes panel-in{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes feedback-in{from{opacity:0;scale:.94}to{opacity:1;scale:1}}
@media(min-aspect-ratio:17/10){.home-copy{top:19%;left:8%}h1{font-size:clamp(35px,4vw,61px)}.home-description{margin-bottom:24px}.island-caption{bottom:8%}.quest{top:19%}}
@media(max-width:1100px){.home-copy{left:5.5%;max-width:43vw;top:23%}h1{font-size:42px}.home-description{font-size:12px}.course-picker{width:260px;gap:21px}.start-button{min-width:260px}.quest{left:5%;width:220px}.quest h2{font-size:25px}.quest>p:not(.eyebrow){font-size:10px}.answer-panel{bottom:3%}.island-caption{right:5%;bottom:8%}}
@media(max-height:740px) and (min-width:750px){.topbar{height:75px}.home-copy{top:18%;left:6%}h1{font-size:37px;line-height:1.35;margin-bottom:14px}.eyebrow{margin-bottom:15px}.home-description{font-size:11px;margin-bottom:20px}.course-picker{margin-bottom:17px}.home-note{font-size:9px;margin-top:6px}.mode-picker{margin-top:10px}.home-footer{bottom:23px}.quest{top:17%}.quest h2{font-size:23px}.quest .eyebrow{margin-bottom:10px}.chapter-trail{margin-top:18px}.answer-panel{padding:12px 19px 10px;bottom:3%;width:min(630px,calc(100% - 48px))}.answer-main{min-height:79px}.target-word{font-size:43px}.word-group>span{margin-top:7px;font-size:8px}.answer-status{font-size:9px;margin-bottom:6px}.answer-tools{padding-top:6px}.answer-leading{font-size:8px}.listen-button{height:48px;min-width:190px;font-size:10px}.stage-note{top:35%;padding:21px;width:270px}.ending-card{padding:24px 32px}.ending-emblem{margin-bottom:14px;width:45px;height:45px}.ending-card h2{font-size:29px}.ending-stats{padding:16px 0;margin:18px 0 12px}.ending-actions{margin-top:13px;gap:7px}}
@media(max-width:700px){.paper-edge{border-width:8px}.topbar{height:77px;padding:0 6%}.brand{font-size:19px;gap:9px}.brand-mark{width:33px;height:33px}.brand small,.brand-divider{display:none}.top-actions{gap:10px}.quiet-button{font-size:10px;letter-spacing:.3px}.quiet-button svg{width:16px;height:16px}.icon-button{width:33px;height:33px}.home-copy{top:16%;left:8%;max-width:85%;width:330px}h1{font-size:39px;line-height:1.4;letter-spacing:2px}.home-description{font-size:11px;line-height:1.9;margin-bottom:23px}.home-copy .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:18px}.course-picker{width:255px;gap:26px;margin-bottom:19px}.course span{font-size:11px}.course small{font-size:8px}.start-button{min-width:255px;font-size:11px}.home-note{font-size:9px}.mode-picker{margin-top:12px}.island-caption{right:7%;bottom:9%;font-size:7px}.island-caption small{font-size:7px}.home-footer{bottom:24px;left:7%;right:7%;font-size:7px;letter-spacing:1px}.quest{top:13%;left:7%;width:220px}.quest h2{font-size:23px;margin-bottom:9px}.quest .eyebrow{font-size:8px;margin-bottom:10px}.quest>p:not(.eyebrow){font-size:9px;max-width:200px}.chapter-trail{font-size:8px;margin:16px 0 13px;gap:19px}.journey-count{font-size:8px}.answer-panel{bottom:max(17px,env(safe-area-inset-bottom));width:calc(100% - 30px);padding:14px 17px 11px}.answer-main{gap:12px;min-height:92px}.target-word{font-size:39px;letter-spacing:5px}.word-group>span{font-size:8px;letter-spacing:.3px}.listen-button{min-width:139px;width:139px;height:51px;padding:10px;font-size:9px;gap:7px;letter-spacing:.2px}.listen-button svg{width:16px;height:16px}.parent-confirm{min-width:139px;width:139px;font-size:9px;letter-spacing:.2px;gap:5px;padding:10px}.answer-status{font-size:9px;min-height:32px;margin:0 0 5px}.answer-tools{gap:12px;flex-wrap:wrap}.text-button{font-size:9px}.key-hint{display:none}.selection-hint{bottom:9%;width:auto;max-width:90%;font-size:9px;white-space:normal;line-height:1.8;text-align:center;padding:11px 16px}.node-button{width:46px;height:46px}.node-label{font-size:8px;letter-spacing:1px;top:48px;padding:3px 5px}.feedback{left:50%;top:42%;padding:18px 25px;min-width:220px}.feedback strong{font-size:23px}.stage-note{left:7%;top:30%;width:260px}.stage-note h2{font-size:24px}.stage-note p{font-size:10px}.top-actions .game-only span{display:none}.ending-card{padding:28px 21px}.ending-card h2{font-size:27px;letter-spacing:2px}.ending-stats{gap:20px;margin:22px 0 13px;padding:19px 0}.ending-stats strong{font-size:29px}.ending-stats span{font-size:8px}.ending-card>p:not(.eyebrow){font-size:10px}.ending-actions .primary-button{width:250px}.journal-dialog{padding:23px 21px}.journal-words{grid-template-columns:repeat(3,1fr);gap:6px}.journal-word{padding:9px;min-height:71px}.journal-word strong{font-size:16px}.journal-summary{gap:24px}.journal-summary span{font-size:8px}}
@media(max-width:700px) and (max-height:720px){.home-copy{top:15%}h1{font-size:32px;margin-bottom:17px}.home-description{margin-bottom:18px}.home-copy .eyebrow{margin-bottom:12px}.course-picker{margin-bottom:15px}.mode-picker{margin-top:8px}.home-note{display:none}.home-footer{bottom:18px}.quest{top:14%}.quest>p:not(.eyebrow){display:none}.answer-main{min-height:78px}.target-word{font-size:35px}.answer-panel{padding-top:11px}.answer-status{min-height:18px}.stage-note{top:26%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The complete marker, including its name, is one visible click target. */
.node-button{width:72px;height:83px;min-height:83px;padding:0;gap:6px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border-radius:8px;transform:translate(-50%,-22px)}
.node-button:before,.node-button.visited:after{display:none}
.node-icon{width:44px;height:44px;border:1.5px solid #4d6446;border-radius:50%;display:grid;place-items:center;background:#fff8dc;color:#3b573e;box-shadow:0 2px 8px rgba(49,63,33,.18);transition:transform .2s,background .2s}
.node-icon svg{width:23px;height:23px;filter:none;stroke-width:1.6}
.node-button>.node-label{position:static;display:block;white-space:nowrap;font-size:12px;line-height:1.45;letter-spacing:1px;padding:5px 9px;border:1px solid rgba(239,226,183,.9);border-radius:5px;background:#3b533e;color:#fff8e0;box-shadow:0 2px 5px rgba(46,59,30,.13)}
.node-button:hover .node-icon,.node-button:focus-visible .node-icon{transform:translateY(-2px);background:#fffdf0}
.node-button.selected .node-icon{background:#d8a157;border-color:#84602e;color:#fff9e6}
.node-cue{display:none;position:absolute;left:50%;top:-34px;transform:translateX(-50%);padding:4px 10px;font-size:10px;line-height:1.6;letter-spacing:1px;white-space:nowrap;border:1px solid #a8b294;border-radius:5px;color:#36513b;background:#fff9e7}
.node-cue:after{content:"";position:absolute;left:50%;bottom:-5px;width:7px;height:7px;transform:translateX(-50%) rotate(45deg);border-right:1px solid #a8b294;border-bottom:1px solid #a8b294;background:#fff9e7}
.node-controls[data-phase=choose] .node-button.recommended .node-cue{display:block}
.node-controls[data-phase=choose] .node-button.recommended .node-icon{box-shadow:0 0 0 5px rgba(204,160,82,.28),0 3px 10px rgba(49,63,33,.2);animation:target-breath 2.3s ease-in-out infinite}
@keyframes target-breath{50%{box-shadow:0 0 0 9px rgba(204,160,82,.10),0 3px 10px rgba(49,63,33,.2)}}
.node-button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(min-width:701px){.answer-panel{left:auto;right:4.5%;transform:none;width:min(620px,calc(100% - 48px))}}
@media(max-width:700px){#app[data-screen=home] .world-wrap{top:57%;bottom:9%}}
#world{pointer-events:none}
.target-word{white-space:nowrap}
h1 .title-line{display:block;white-space:nowrap;color:inherit}
.load-failure{position:fixed;left:50%;bottom:8%;transform:translateX(-50%);z-index:60;width:min(500px,88vw);padding:18px 22px;border:1px solid #d4ceb6;border-radius:8px;background:#f8f5e8;color:var(--ink);font-size:12px;line-height:1.9}
.load-failure strong{font-size:15px;font-weight:500}
.load-failure p{margin:7px 0 0}
@media(min-width:1101px){.home-copy{width:520px;max-width:42vw}}
@media(max-width:700px){h1{font-size:clamp(28px,9.5vw,39px)}}
@media(max-width:700px){
  .node-controls{inset:auto 5% 28%;height:42px;display:flex;justify-content:center;gap:10px}
  .node-button{position:relative;left:auto!important;top:auto!important;transform:none;width:100px;height:46px;min-height:46px;padding:6px 9px;flex-direction:row;align-items:center;justify-content:center;gap:6px;border-radius:5px;background:rgba(248,246,235,.97);border:1px solid rgba(94,114,71,.5);color:var(--ink)}
  .node-button.selected{background:var(--ink);color:#faf5e5}
  .node-button>.node-label{display:block;position:static;color:inherit;background:none;font-size:11px;letter-spacing:1px;padding:0;border:0;box-shadow:none}
  .node-icon{width:22px;height:22px;flex-shrink:0;border:0;background:none;color:inherit;box-shadow:none}
  .node-icon svg{width:20px;height:20px}
  .node-controls[data-phase=choose] .node-button.recommended{border-color:#7f6842;background:#fff4d5;box-shadow:0 0 0 3px rgba(204,160,82,.17)}
  .node-controls[data-phase=choose] .node-button.recommended .node-icon{box-shadow:none;animation:none}
  .node-button.selected .node-icon{background:none;color:inherit}
  .node-cue{top:-32px}
  .target-word.long{font-size:30px;letter-spacing:3px}
}

/* 1.0 — every opened seal stays open; the world is the reward. */
.version-link{font-size:10px;letter-spacing:1px;border-bottom:1px solid rgba(63,84,63,.3);padding:7px 0;white-space:nowrap}
.version-link span{margin-left:5px;color:var(--accent)}
.seal-progress{position:absolute;left:5%;top:calc(17% + 245px);display:flex;gap:9px;pointer-events:none}
.seal-pip{display:grid;place-items:center;width:25px;height:29px;border:1px solid #aaa891;border-radius:5px;color:#9d9f89;font-size:16px;background:#f3efdfbd;transition:background .5s,box-shadow .5s}
.seal-pip.lit{background:#527660;color:#fff3b7;border-color:#68805e;box-shadow:0 0 16px #e6cc7b80}
.region-progress{position:absolute;left:5%;top:calc(17% + 278px);font-size:9px;letter-spacing:1px;color:#77836f;margin:0}
.journey-track{position:absolute;left:5%;top:calc(17% + 306px);display:flex;gap:4px;max-width:245px}
.journey-track i{width:10px;height:3px;background:#a5ac9b55;border-radius:3px}
.journey-track i.lit{background:#b88e4f;box-shadow:0 0 6px #e4c87699}
.journey-track i[data-stage="1"]:first-of-type{margin-left:6px}
.node-button.completed{opacity:.6;min-height:52px;width:48px;cursor:default;pointer-events:none}
.node-button.completed .node-icon{width:27px;height:27px;background:#58775f;border:1px solid #d6d4a4;color:#fff5b8;box-shadow:0 0 14px #f5e3a477}
.node-button.completed .node-icon svg{width:15px;height:15px}
.node-button.completed .node-label{font-size:9px;letter-spacing:.5px;padding:3px 5px;background:#52705f}
.node-button.completed .node-cue{display:none!important}
.node-cue{font-size:9px}
.feedback{top:auto;bottom:7%;left:50%;transform:translateX(-50%);background:rgba(246,244,228,.9);padding:12px 24px;min-width:260px;gap:5px;box-shadow:0 8px 28px #354c3520}
.feedback-symbol{display:none}.feedback strong{font-size:22px}.feedback>span:last-child{font-size:10px;max-width:340px}
.finale-caption{position:absolute;bottom:12%;left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap;color:#304f46;pointer-events:none;text-shadow:0 2px 14px #fff9e8}
.finale-caption>span{font-size:8px;letter-spacing:5px;color:#8a835b}.finale-caption p{font-family:var(--serif);font-size:22px;letter-spacing:3px;margin:12px 0}
.world-actions{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:24px;pointer-events:auto}
.world-actions .primary-button{font-size:10px;min-height:42px;padding:11px 18px}
.ending-screen{background:rgba(28,47,39,.16);backdrop-filter:none;-webkit-backdrop-filter:none}
.ending-card{position:relative;background:rgba(249,247,235,.98)}.ending-close{position:absolute;right:18px;top:18px}
#home-button{white-space:nowrap}
@media(min-width:1101px){.home-copy{width:510px;max-width:38vw}h1{font-size:clamp(36px,3.7vw,60px)}.home-description{font-size:12px}}
@media(min-aspect-ratio:17/10){.seal-progress{top:calc(19% + 245px)}.region-progress{top:calc(19% + 278px)}.journey-track{top:calc(19% + 306px)}}
@media(max-width:1100px){.seal-progress{left:5%}.region-progress,.journey-track{left:5%}.home-copy{max-width:43vw}.version-link{font-size:9px;letter-spacing:0}}
@media(max-width:700px){
 .top-actions{gap:10px}.version-link{font-size:8px;max-width:75px;letter-spacing:0}.quiet-button{font-size:9px}.top-actions .quiet-button span{display:none}
 .home-copy{max-width:85%;width:330px}.home-description{font-size:10px}.home-copy h1{font-size:clamp(28px,9.1vw,38px)}
 .quest{top:12%;left:7%;width:85%}.quest h2{font-size:22px;margin-bottom:7px}.quest>p:not(.eyebrow){max-width:295px;font-size:9px}.chapter-trail{margin:13px 0 11px}.journey-count{font-size:9px}
 .seal-progress{left:auto;right:7%;top:calc(12% + 118px);gap:5px}.seal-pip{width:19px;height:23px;font-size:13px}.region-progress{left:auto;right:7%;top:calc(12% + 147px);font-size:8px}.journey-track{left:7%;top:calc(12% + 161px);gap:3px}.journey-track i{width:8px}
 .node-controls{bottom:29%;left:5%;right:5%;height:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
 .node-button{width:auto;height:42px;min-height:42px;padding:5px;gap:5px}.node-button>.node-label{font-size:10px}.node-icon{width:18px;height:18px}.node-icon svg{width:17px;height:17px}.node-button.completed{width:auto;height:42px;min-height:42px;opacity:.45}.node-button.completed .node-icon{width:18px;height:18px;box-shadow:none}.node-button.completed .node-label{background:none;font-size:9px;padding:0}
 .selection-hint{bottom:16%;max-width:88%;font-size:9px}.feedback{bottom:14%;width:83%;min-width:0;padding:13px}.feedback strong{font-size:21px}
 .finale-caption{bottom:19%;white-space:normal;width:88%}.finale-caption p{font-size:18px;line-height:1.7;letter-spacing:1px}.world-actions{bottom:9%;gap:16px;white-space:nowrap}.world-actions .primary-button{font-size:9px;padding:10px 14px}.ending-close{right:12px;top:12px}
}
@media(max-height:740px) and (min-width:701px){.quest{top:16%;width:245px}.quest>p:not(.eyebrow){font-size:10px}.seal-progress{top:calc(16% + 207px)}.region-progress{top:calc(16% + 239px)}.journey-track{top:calc(16% + 262px)}}
/* Progress follows the text, including larger type and wrapped headings. */
.quest .seal-progress{position:static;margin-top:16px;gap:7px}
.quest .region-progress{position:static;margin:8px 0 11px;font-size:9px}
.quest .journey-track{position:static;max-width:100%;gap:4px}
.quest .journey-track i{flex:1;max-width:12px}
#app[data-phase=complete] .quest{display:none}
#app[data-phase=complete] .finale-caption{top:22%;bottom:auto;left:5%;transform:none;white-space:normal;width:235px;text-align:left}
#app[data-phase=complete] .finale-caption p{font-size:28px;letter-spacing:2px;line-height:1.7}
#app[data-phase=complete] .world-actions{left:5%;bottom:14%;transform:none;flex-direction:column;gap:10px;align-items:flex-start}
@media(max-width:700px){
 .quest .seal-progress{margin-top:10px;gap:5px;position:absolute;right:0;left:auto;top:auto;bottom:13px}
 .quest .region-progress{display:none}.quest .journey-track{margin-top:11px;width:44%;gap:3px}
 #app[data-phase=complete] .finale-caption{top:13%;left:7%;width:86%;text-align:center}
 #app[data-phase=complete] .finale-caption p{font-size:23px;margin-top:12px;line-height:1.7}
 #app[data-phase=complete] .world-actions{left:50%;bottom:9%;transform:translateX(-50%);flex-direction:row;gap:16px;align-items:center}
}
@media(min-width:701px){
 html[data-version="1"] .node-button{transform:translate(-50%,10px);height:38px;min-height:38px;width:78px;justify-content:flex-start}
 html[data-version="1"] .node-button .node-icon{display:none}
 html[data-version="1"] .node-button>.node-label{padding:5px 10px;font-size:10px;letter-spacing:1px;background:#f8f0d9ed;color:#3c5748;border:1px solid #a6a17e;box-shadow:0 2px 9px #344a3b20}
 html[data-version="1"] .node-button.recommended>.node-label{background:#fff3c9;border-color:#ad8c4c;box-shadow:0 0 0 4px #e4cc8730}
 html[data-version="1"] .node-button.selected>.node-label{background:#496a56;color:#fff4ce;border-color:#cbb878}
 html[data-version="1"] .node-button.completed{width:65px;opacity:.75}
 html[data-version="1"] .node-button.completed>.node-label{background:#e3eddbdd;color:#4b6c4c;border-color:#94ac85;font-size:8px}
 html[data-version="1"] .node-cue{top:38px;background:#fff7de;font-size:8px;padding:2px 8px}.node-cue:after{display:none}
}
#app[data-screen="game"][data-phase="choose"] #world,
#app[data-screen="game"][data-phase="answer"] #world{pointer-events:auto}
/* Handwriting mode: the iPad system handwriting keyboard writes into this field. */
.write-box{display:flex;align-items:center;gap:10px;flex-shrink:0}
.write-box input{width:172px;height:56px;border:1px solid rgba(95,110,78,.35);border-radius:6px;background:#fffdf4;font-family:"Kaiti SC","STKaiti","KaiTi",var(--serif);font-size:26px;letter-spacing:4px;text-align:center;color:#293e31;padding:0 10px;min-width:0}
.write-box input:focus{outline:2px solid var(--accent);outline-offset:2px}
.write-box input::placeholder{font-size:12px;letter-spacing:1px;color:#a9ab97;font-family:var(--sans)}
.write-submit{min-width:104px;height:56px;padding:12px 16px;font-size:11px;gap:8px}
@media(max-width:700px){.write-box{gap:8px}.write-box input{width:126px;height:51px;font-size:22px;letter-spacing:2px}.write-submit{min-width:84px;height:51px;font-size:10px;padding:10px;gap:5px}.write-submit svg{width:15px;height:15px}}
