*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;touch-action:none;font-family:PingFang SC,Microsoft Yahei,system-ui,sans-serif;color:#243f3e;background:#e5ebe4}body{display:grid;place-items:center}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:4px solid #e9b45d;outline-offset:4px}button:active{transform:translateY(3px)}[hidden]{display:none!important}.game{position:relative;width:min(100vw,1100px);height:min(100dvh,820px);margin:auto;overflow:hidden;border-radius:24px;background:#d5e8d9;box-shadow:0 20px 80px #34514825}.game canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0}.topbar{position:absolute;z-index:4;left:30px;right:30px;top:max(22px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;color:#244942;font-weight:900;font-size:19px;letter-spacing:2px}.brand span{display:block;font-size:8px;letter-spacing:2px;margin-top:4px}.tools{display:flex;gap:10px}.tools button{width:44px;height:44px;border:1px solid #fff9;border-radius:15px;background:#ffffffe0;color:#335449;font-weight:700;font-size:21px}.journey{position:absolute;z-index:3;top:90px;left:30px;width:240px;padding:16px 18px;border:1px solid #fffc;border-radius:20px;background:#fffdf1ed;box-shadow:0 5px 22px #2b46310d}.journey>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px}.journey span{font-size:12px}.journey b{font-size:13px}.route{height:5px;background:#e0e8da;border-radius:8px;margin:12px 0}.route i{display:block;height:100%;width:0;background:#508775;border-radius:8px}.status{display:flex;justify-content:space-between;align-items:center}#hearts{color:#ce6656;font-size:20px;letter-spacing:2px}#notice{position:absolute;z-index:5;top:24%;left:50%;transform:translate(-50%,8px);opacity:0;transition:.3s;background:#fffdf1ef;border:1px solid #fff;border-radius:16px;padding:12px 24px;white-space:nowrap;font-size:16px;font-weight:700;pointer-events:none}#notice.visible{opacity:1;transform:translate(-50%)}#bossHint{position:absolute;top:195px;left:50%;transform:translate(-50%);z-index:4;border-radius:14px;padding:12px 20px;background:#a94e39;color:#fff;font-weight:700;white-space:nowrap}#bossHint[data-ready=true]{background:#327c83}.pad{position:absolute;z-index:4;left:26px;right:26px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;justify-content:space-between;pointer-events:none}.pad>div{display:flex;gap:12px;pointer-events:auto}.pad button{width:86px;height:86px;border:2px solid #fff8;border-radius:25px;background:#fffdf1f5;color:#345747;font-weight:800;font-size:33px;box-shadow:0 6px #d1d5bf,0 9px 22px #304c4025}.pad small{display:block;font-size:13px;margin-top:0}#jump{background:#efbf70;color:#634b2e;box-shadow:0 6px #c1934f}#attack{background:#75b8b7;color:#173f4b;box-shadow:0 6px #4a9194}.overlay{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:22px;background:#29473c35;backdrop-filter:blur(6px)}.storycard{width:min(100%,560px);max-height:100%;overflow:auto;border-radius:30px;padding:38px;background:#fffcf3;box-shadow:0 25px 80px #28423835;text-align:center;border:1px solid #fff}.eyebrow{font-size:11px;font-weight:800;color:#6c8b76;letter-spacing:3px}.storycard h1{font-size:clamp(29px,5vw,44px);line-height:1.25;margin:17px 0;color:#294d43;letter-spacing:1px}.storycard p{font-size:17px;line-height:1.9;color:#6b7869;margin:12px 0 22px}.choices{display:flex;flex-direction:column;gap:12px;align-items:stretch}.choices button{border:0;border-radius:17px;min-height:57px;font-size:17px;font-weight:750;padding:14px 22px}.primary{background:#3e7664;color:#fff;box-shadow:0 5px #2c5749}.secondary{background:#eaf0e6;color:#537360}.chapterstrip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:24px 0}.chapterstrip span{background:#f0f0e6;border:1px solid transparent;border-radius:14px;padding:11px;font-size:22px;opacity:.62}.chapterstrip span.current{background:#e4eddf;border-color:#8fad87;opacity:1}.chapterstrip small{display:block;font-size:11px;margin-top:5px}.parentnote{font-size:12px;color:#819078;margin:18px 0}.instruction{padding:14px 17px;border-radius:14px;background:#edf1e5;color:#668064;font-size:14px;line-height:1.7;margin:16px 0}.controlguide{display:flex;justify-content:center;gap:40px;margin:22px 0;color:#4e7665;font-size:24px}.controlguide small{display:block;font-size:11px;margin-top:5px}.completion{padding:20px;border-radius:18px;background:#edf1e5;font-size:30px;margin:20px 0}.completion span{display:block;font-size:14px;margin:10px;color:#64806b}.completion strong{display:block;color:#ce6656;font-size:25px;letter-spacing:9px}#fade{position:absolute;inset:0;z-index:6;background:#eaf0e4;opacity:0;pointer-events:none}.game:not([data-phase=play]):not([data-phase=depart]) .pad{opacity:0;pointer-events:none}.game:not([data-phase=play]):not([data-phase=depart]) .pad>div{pointer-events:none}.game[data-phase=home] .journey,.game[data-phase=intro] .journey{visibility:hidden}@media(max-width:600px){.game{border-radius:0}.topbar{left:18px;right:18px;top:max(16px,env(safe-area-inset-top))}.brand{font-size:16px}.journey{left:18px;top:78px;width:210px;padding:12px 14px}.pad{left:14px;right:14px;bottom:max(24px,env(safe-area-inset-bottom))}.pad>div{gap:8px}.pad button{width:70px;height:76px;border-radius:21px}.pad small{font-size:12px}.storycard{padding:28px 22px;border-radius:25px}.storycard p{font-size:15px}.overlay{padding:18px}#notice{font-size:13px;padding:10px 15px;top:28%}#bossHint{top:178px;font-size:12px}.controlguide{gap:25px}}@media(max-height:550px){.storycard{padding:22px 30px;max-width:650px}.chapterstrip{display:flex;justify-content:center;margin:12px 0}.chapterstrip span{padding:8px}.storycard h1{font-size:29px;margin:9px 0}.storycard p{font-size:14px;margin:8px 0}.parentnote{margin:10px}.choices{flex-direction:row}.choices button{flex:1;min-height:48px}.instruction,.controlguide{margin:10px 0}.pad button{height:65px;width:73px}.journey{top:72px}.topbar{top:12px}.completion{margin:10px;padding:10px}}.chapterstrip button{background:#edf0e5;border:2px solid #d4dfce;border-radius:14px;padding:13px 8px;font-size:25px;color:#325b4b;min-height:86px;transition:background .15s}.chapterstrip button.current{background:#deead5;border-color:#659877}.chapterstrip button:hover{background:#d9e8ce}.chapterstrip button small{display:block;font-size:12px;margin-top:6px}.tools #map{font-size:13px;width:50px}.game[data-phase=map] .journey{visibility:hidden}.choices button{flex-shrink:0}.storycard{overscroll-behavior:contain;touch-action:pan-y}.game:not([data-phase=play]):not([data-phase=depart]) .pad{visibility:hidden}@media(max-width:600px){.topbar{left:14px;right:14px}.brand{font-size:14px;letter-spacing:1px}.brand span{font-size:6px;letter-spacing:1px}.tools{gap:6px}.tools button{width:39px;height:41px}.chapterstrip button{min-height:80px;font-size:22px}.chapterstrip button small{font-size:11px}}@media(max-height:550px){.chapterstrip button{min-height:65px;font-size:18px;padding:8px}.choices{flex-wrap:wrap}.choices button{min-width:130px}.chapterstrip{flex-wrap:wrap}.chapterstrip button{flex:1;min-width:80px}}.missiondots{display:flex;gap:7px;margin-top:12px}.missiondot{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e1e6d9;color:#879982;font-size:15px;border:1px solid #d1dac8;transition:background .2s,transform .2s}.missiondot.done{background:#b5d6a6;border-color:#78a26d;color:#2d6238;transform:scale(1.06)}.journey .status{margin-top:4px}.taskcaption{display:block;color:#677c61;font-size:11px;margin-top:7px}.game[data-phase=checkpoint] .journey{visibility:hidden}#attack.cooling{filter:saturate(.5);opacity:.76}#attack.ready{box-shadow:0 6px #4a9194,0 0 0 3px #dffaff80}.game[data-phase=enter] .journey,.game[data-phase=enter] .topbar{opacity:.25;transition:opacity .6s}#fade{background:#152e29}@media(max-width:600px){.missiondots{gap:6px;margin-top:8px}.missiondot{width:25px;height:25px;font-size:13px}.taskcaption{font-size:10px}}@media(max-width:600px){#bossHint{top:250px;font-size:13px;padding:10px 14px}}
