:root{font-family:'Trebuchet MS','Microsoft YaHei','PingFang SC',sans-serif;color:#26365c;background:#103477;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overscroll-behavior:none}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ffca37;outline-offset:3px}button:disabled{cursor:not-allowed;filter:grayscale(.65);opacity:.7}#app{min-height:100dvh;background:radial-gradient(circle at 50% 10%,#69b9ff,#1e5caa 65%,#103477)}.topbar{height:76px;position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px clamp(14px,2vw,30px);background:linear-gradient(#244d9b,#153975);box-shadow:0 5px 20px #09265280;color:white;border-bottom:2px solid #91c8ff}.identity{display:flex;align-items:center;gap:10px;min-width:0}.identity img{width:48px;height:48px;object-fit:cover;object-position:top;border:3px solid #ffda76;border-radius:50%;background:#75b9ed}.identity span{display:flex;flex-direction:column;min-width:0}.identity strong{font-size:20px;white-space:nowrap}.identity small{font-size:11px;color:#cfeaff;white-space:nowrap}.hud{display:flex;gap:8px;margin-left:auto}.hud-chip,.icon-btn{border:1px solid #9bd3ff;border-radius:18px;background:linear-gradient(#2d78c2,#17498e);padding:10px 14px;box-shadow:0 4px 0 #0c2e65;color:#fff;font-weight:900;white-space:nowrap}.icon-btn{font-size:20px;min-width:48px}.settings{position:absolute;right:15px;top:72px;z-index:30;width:min(300px,calc(100vw - 30px));padding:18px;border:3px solid #eebc74;border-radius:20px;background:#fff8e5;box-shadow:0 12px 35px #09275b8c;color:#563c29}.settings[hidden],.notice[hidden]{display:none}.settings>strong{font-size:20px}.settings label{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e3c794;font-weight:800}.settings input{width:22px;height:22px;accent-color:#2675cb}.settings p{font-size:12px;line-height:1.5;color:#785d43}.map-layout{height:calc(var(--toby-view-height) - 76px);display:grid;grid-template-columns:minmax(440px,1fr) minmax(340px,440px);gap:0;max-width:1500px;margin:auto}.map-scroll{overflow-y:auto;overflow-x:hidden;scrollbar-color:#ffe5a5 #2a68a7;background:#377bcb}.map-art{height:1400px;min-width:440px;position:relative;background:url('./assets/map.webp') center center/100% 100% no-repeat;box-shadow:inset -25px 0 40px #102c5d99}.map-node{position:absolute;z-index:2;transform:translate(-50%,-50%);min-width:145px;min-height:68px;display:flex;align-items:center;gap:8px;padding:7px 11px;background:linear-gradient(#244783,#122e65);color:#ffebb3;border:3px solid #f9dd9d;border-radius:20px;box-shadow:0 5px 0 #51375d,0 10px 20px #142a5e99;text-align:left}.map-node b{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:linear-gradient(#ffe483,#d88e28);border:2px solid white;color:#704420;font-size:23px}.map-node span{display:flex;flex-direction:column;font-weight:900;font-size:13px;white-space:nowrap}.map-node em{font-style:normal;font-size:16px}.map-node.current{background:linear-gradient(#e58b32,#a65c28);color:#fff;box-shadow:0 0 0 7px #ffe26a90,0 6px 0 #864b32,0 0 25px #fff0a0;animation:glow 2s ease-in-out infinite}.map-node.done{background:linear-gradient(#3ba88a,#1e6b79)}.map-node.locked{opacity:.86}.map-node.d0{left:50%;top:88%}.map-node.d1{left:70%;top:76%}.map-node.d2{left:26%;top:62%}.map-node.d3{left:68%;top:51%}.map-node.d4{left:30%;top:37%}.map-node.d5{left:70%;top:25%}.map-node.d6{left:49%;top:12%}.map-toby{position:absolute;z-index:1;left:20%;top:86%;width:100px;filter:drop-shadow(0 9px 7px #142f6e)}.mission-card{align-self:center;position:relative;margin:22px;padding:32px 25px;border:6px solid #bd8149;border-radius:26px;background:linear-gradient(160deg,#fff9e9,#ffe5b5);box-shadow:0 0 0 5px #fff2cd inset,0 12px 0 #774c3baa,0 22px 40px #09265d88;color:#68452f}.ribbon{display:table;margin:-55px auto 20px;padding:10px 22px;max-width:100%;border:3px solid #e7b173;border-radius:12px;background:linear-gradient(#a75b44,#813950);color:#fff2d2;font-weight:1000;font-size:19px;text-align:center;box-shadow:0 5px 0 #6f3840}.eyebrow{font-size:12px;font-weight:1000;color:#9d6a3b;letter-spacing:1px}.mission-card h1{font-size:32px;line-height:1.2;margin:9px 0;color:#71431f}.mission-lead{line-height:1.7;font-size:16px;font-weight:700}.progress{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:24px 0}.progress-step{display:flex;align-items:center;gap:9px;padding:10px 7px;border:2px solid #d9bf9a;border-radius:13px;background:#fff7e9;font-size:14px;font-weight:900;color:#8f7557}.progress-step b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#ddd0b9;color:white}.progress-step.now{background:#fff1bd;border-color:#edb043;color:#8c5124}.progress-step.now b{background:#efaa2e}.progress-step.finished{background:#dbf4df;border-color:#6dbb7e;color:#317d4f}.progress-step.finished b{background:#4ba566}.summary{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:13px;font-weight:900;color:#946c46;margin:13px 0 25px}.gold-btn{padding:12px 21px;border:3px solid #fff4a6;border-radius:999px;background:linear-gradient(#fff39e,#ffca43 50%,#f2a51f);color:#784317;box-shadow:0 5px 0 #a76b2d,0 8px 17px #69432b55;font-weight:1000;font-size:18px}.gold-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #a76b2d}.mission-card>.gold-btn{width:100%}.text-btn{display:block;border:0;background:transparent;color:#35578b;font-weight:900;padding:15px 5px 0;margin:auto}.quest-layout{height:calc(var(--toby-view-height) - 76px);min-height:560px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(460px,660px);max-width:1500px;margin:auto}.quest-scene{position:relative;overflow:hidden;background:url('./assets/map.webp') 50% 65%/cover no-repeat}.scene-shade{position:absolute;inset:0;background:linear-gradient(90deg,#113a8b44,#18396ca8)}.back-btn{position:relative;z-index:2;margin:20px;padding:10px 16px;border:2px solid #a8dfff;border-radius:13px;background:#1b5596;color:white;font-weight:900}.quest-scene>img{position:absolute;bottom:4%;left:8%;height:min(45vh,390px);filter:drop-shadow(0 15px 10px #19406b99)}.speech-bubble{position:absolute;top:24%;left:10%;max-width:300px;background:#f3fbff;color:#376194;border:4px solid #89d2f2;border-radius:22px;padding:17px;font-weight:900;box-shadow:0 7px 0 #2c79af}.paper{position:relative;align-self:center;margin:36px 22px;padding:36px 28px 25px;min-height:min(690px,calc(var(--toby-view-height) - 150px));max-height:calc(var(--toby-view-height) - 116px);overflow-y:auto;border:6px solid #b9834f;border-radius:24px;background:linear-gradient(150deg,#fffaf0,#ffedc9 80%,#efd4a7);box-shadow:0 0 0 6px #ffe4b9 inset,0 10px 0 #70453888,0 18px 35px #142b606e;color:#704626}.paper .ribbon{margin:-58px auto 24px}.quest-head{display:flex;justify-content:space-between;gap:10px;color:#a26e41;font-size:13px;font-weight:900}.stage-track{display:flex;justify-content:center;gap:12px;margin:18px 0}.stage-track b{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;border:2px solid #d1b698;color:#a68a6e;background:#fff9e9}.stage-track b.lit{background:#ffc649;border-color:#e59c31;color:#743f1b;box-shadow:0 0 10px #ffd776}.word-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-height:230px;padding:20px;border:3px solid #ddb780;border-radius:20px;background:linear-gradient(#fffdf8,#fff1d6);text-align:center}.big-word{color:#2757a0;font-size:clamp(38px,5vw,62px);line-height:1.1;word-break:break-word}.large-icon{font-size:64px}.round-audio{border:2px solid #abd7fa;border-radius:99px;padding:9px 16px;background:#e8f7ff;color:#1e5ea8;font-weight:900}.instruction{text-align:center;font-size:18px;font-weight:900}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.choice{min-height:70px;border:3px solid #dec298;border-bottom-width:6px;border-radius:15px;background:#fff8e8;color:#754d2b;font-weight:900;font-size:17px}.choice:hover{background:#d8f3d7;border-color:#74be82}.prompt-cn{font-size:clamp(25px,3vw,36px);color:#285895}.word-card small{color:#8b6b49;font-weight:800}.input-label{display:block;margin:20px 0 8px;font-weight:900}.paper textarea,.paper input[type=text]{display:block;width:100%;padding:14px 16px;border:3px solid #d4af80;border-radius:14px;background:#fffdf7;color:#27508d;font-size:22px;font-weight:800;resize:vertical}.input-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin-top:17px}.light-btn{padding:12px 18px;border:2px solid #8cb4e8;border-radius:13px;background:linear-gradient(#f4f7ff,#dbeaff);color:#385a95;font-size:16px;font-weight:900}.mic-status{font-size:14px;color:#46658e;font-weight:800;min-height:20px}.hint{display:block;margin-top:14px;color:#8c6a45;line-height:1.5}.feedback{margin-top:18px;padding:15px;border:2px solid #9cce8e;border-radius:15px;background:#e9f8df;color:#417240;line-height:1.5}.feedback.try{border-color:#e1bc74;background:#fff2d2;color:#86612c}.feedback p{margin:4px 0 15px}.feedback .gold-btn{display:block;margin-left:auto}.result,.records{min-height:calc(var(--toby-view-height) - 76px);display:grid;place-items:center;padding:30px;background:linear-gradient(#1d65ad55,#183578aa),url('./assets/map.webp') center/cover}.result-card,.records-card{width:min(680px,100%);padding:38px;border:6px solid #c18c51;border-radius:26px;background:linear-gradient(#fff9e8,#ffe8c0);box-shadow:0 15px 35px #0a2f7580;color:#704729;text-align:center}.crown{font-size:80px;color:#efad2a}.result h1,.records h1{font-size:34px}.result p{line-height:1.7;font-weight:800}.result-stats{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;margin:25px 0;font-weight:900}.records-card{text-align:left}.records-card>.back-btn{margin:0}.records-card h2{font-size:21px;margin:25px 0 5px}.records-card p{line-height:1.6}.record-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.record-grid>div{display:flex;flex-direction:column;gap:5px;background:#fff9ee;border:2px solid #dfc49b;border-radius:15px;padding:15px}.record-grid strong{font-size:28px;color:#255a9d}.record-grid small{font-weight:800}.file-label{cursor:pointer}.notice{position:fixed;z-index:50;left:50%;bottom:25px;transform:translateX(-50%);max-width:min(480px,90vw);padding:12px 20px;border:2px solid #9ddaff;border-radius:15px;background:#153f80;color:white;font-weight:900;text-align:center;box-shadow:0 8px 20px #0a255c88}@keyframes glow{50%{filter:brightness(1.2)}}@media(max-width:820px){.topbar{height:65px}.identity strong{font-size:15px}.identity small{font-size:9px}.identity img{width:39px;height:39px}.hud-chip{padding:7px;font-size:12px}.hud-chip:first-child{display:none}.icon-btn{padding:5px;min-width:40px}.map-layout{height:calc(var(--toby-view-height) - 65px);grid-template-columns:1fr;display:flex;flex-direction:column}.map-scroll{flex:1;min-height:0}.map-art{min-width:0;width:100%;height:1450px;background-size:100% 100%}.map-node{min-width:135px;min-height:59px}.map-node em{font-size:14px}.mission-card{flex:none;margin:0 10px 10px;padding:15px 18px 12px;border-width:4px;border-radius:19px}.mission-card .ribbon{margin:-28px auto 7px;padding:4px 17px;font-size:14px}.mission-card h1{font-size:22px;margin:4px 0}.mission-lead{font-size:12px;line-height:1.45;margin:3px 0}.progress{margin:8px 0;gap:5px}.progress-step{padding:4px 6px;font-size:11px}.progress-step b{width:21px;height:21px}.summary{font-size:10px;margin:6px 0}.mission-card>.gold-btn{padding:8px;font-size:15px}.text-btn{padding:5px 0 0;font-size:12px}.quest-layout{height:calc(var(--toby-view-height) - 65px);min-height:0;display:flex;flex-direction:column;overflow-y:auto}.quest-scene{flex:none;height:200px;background-position:50% 77%}.quest-scene>img{height:155px;left:10px;bottom:2px}.speech-bubble{top:85px;left:115px;right:8px;max-width:none;padding:8px;font-size:12px;border-width:2px}.quest-scene .back-btn{margin:9px;padding:6px 10px;font-size:12px}.paper{flex:1;align-self:stretch;margin:8px 9px 14px;padding:23px 13px 16px;min-height:0;max-height:none;overflow-y:visible;border-width:4px}.paper .ribbon{margin:-39px auto 12px;padding:6px 13px;font-size:15px}.quest-head{font-size:10px}.stage-track{margin:8px 0}.stage-track b{width:25px;height:25px}.word-card{min-height:140px;padding:9px;gap:5px}.big-word{font-size:39px}.large-icon{font-size:40px}.round-audio{padding:5px 10px;font-size:13px}.instruction{font-size:14px;margin:8px}.choices{gap:6px}.choice{min-height:48px;font-size:14px;border-width:2px;border-bottom-width:4px}.prompt-cn{font-size:22px}.input-label{margin:8px 0 4px}.paper textarea,.paper input[type=text]{font-size:17px;padding:8px}.input-actions{margin-top:8px}.light-btn,.gold-btn{font-size:14px;padding:8px 12px}.feedback{margin-top:7px;padding:8px;font-size:13px}.feedback p{margin:2px 0 7px}.hint{font-size:11px;margin-top:8px}.result,.records{min-height:calc(var(--toby-view-height) - 65px);padding:10px}.result-card,.records-card{padding:20px;border-width:4px}.record-grid strong{font-size:20px}.record-grid small{font-size:10px}}@media(max-width:360px){.identity small{display:none}.identity strong{font-size:13px}.map-node{min-width:120px;padding:4px}.map-node em{font-size:12px}.mission-lead{display:none}.summary{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}

