*{box-sizing:border-box} :root{color-scheme:dark;--cream:#fff2d5;--gold:#f4c66f;--pad:clamp(22px,4.6vw,82px);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}body{margin:0;background:#243e37;color:var(--cream);overflow:hidden}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:3px solid #fff1b7;outline-offset:4px}button:disabled{cursor:wait;opacity:.75}[hidden]{display:none!important}main{height:100vh;height:100dvh;min-height:280px;position:relative;overflow:hidden;isolation:isolate}
.vista,#world,.shade{position:absolute;inset:0;width:100%;height:100%}.vista{background:#a3bec2 url("../assets/valley.webp") center 48%/cover no-repeat}.shade{pointer-events:none;background:linear-gradient(90deg,rgba(13,27,23,.88) 0%,rgba(14,30,26,.72) 19%,rgba(17,33,28,.24) 45%,transparent 68%),linear-gradient(0deg,rgba(13,23,17,.76),transparent 20%,transparent 76%,rgba(11,25,24,.38));transition:opacity .3s}
#world{display:block;touch-action:none}header,footer{position:absolute;left:var(--pad);right:var(--pad);display:flex;align-items:center;justify-content:space-between;gap:12px}header{top:clamp(18px,4.8vh,54px)}.location,.tools,.wallet,.record,.guide,.guide button,.launch,.eyebrow,.chapter,.totals,.stats{display:flex;align-items:center}.location{gap:15px;text-shadow:0 1px 7px #17271c}.location strong,.location small{display:block}.location strong{font:700 21px/1.3 "Songti SC","SimSun",serif;letter-spacing:.18em}.location small{margin-top:3px;font:700 9px/1 Arial,sans-serif;color:#f6dba0;letter-spacing:.31em}.sigil{position:relative;margin:0 4px;width:28px;height:28px;border:2px solid #eed18c;transform:rotate(45deg);box-shadow:inset 0 0 0 3px #314439,0 0 0 1px #534b32;background:#987941}.sigil:before,.sigil i{content:"";position:absolute;inset:5px;border:1px solid #eed59b}.sigil i{inset:9px;background:#f2cf86}.tools{gap:7px}.tools button{height:36px;min-width:38px;background:#1c2922b8;border:1px solid #f2da9d65;border-radius:5px;padding:0 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;letter-spacing:.06em;backdrop-filter:blur(8px)}.tools button:hover,.guide button:hover{background:#5b593b}.speaker{font:bold 18px Georgia;color:var(--gold)}.fullIcon{font-size:22px;line-height:1}
.panel{position:absolute;left:var(--pad);top:49%;transform:translateY(-48%);max-width:48%;text-shadow:0 2px 14px #19291b70}.eyebrow{gap:12px;letter-spacing:.25em;font-size:12px;font-weight:700;color:#f4d699}.eyebrow i,.chapter i{display:inline-block;width:34px;height:1px;background:#d2af68}.panel h1,.panel h2{font-family:"STKaiti","KaiTi","SimSun","Songti SC",serif;font-weight:900;margin:14px 0 2px;letter-spacing:.035em;line-height:1.1}.panel h1{font-size:clamp(65px,7.5vw,126px)}.english{color:#f0cd88;letter-spacing:.32em;font:600 clamp(15px,1.65vw,24px)/1.22 Georgia,"Times New Roman",serif;letter-spacing:.31em;padding-left:4px}.lead{font:500 clamp(15px,1.25vw,19px)/1.85 "Microsoft YaHei",sans-serif;letter-spacing:.06em;margin:clamp(15px,3vh,32px) 0 clamp(17px,3.2vh,32px);color:#f3eedc}.launch{gap:36px;justify-content:space-between;min-width:198px;padding:13px 17px 13px 24px;background:linear-gradient(115deg,#f8d68b,#edb95c);border:1px solid #ffe8b8;border-radius:4px;color:#302c1a;box-shadow:0 5px 22px #17251d55;font-size:17px;font-weight:800;letter-spacing:.08em}.launch:hover{background:#ffda86;transform:translateY(-1px)}.arrow{font:24px/1 Arial;border-left:1px solid #594b3340;padding-left:15px}.record{gap:10px;color:#e1dcc4;font-size:12px;margin-top:15px}.record b{font:600 14px Georgia,serif;color:#ffdf9b}.recordMark{font-size:17px;color:var(--gold)}
footer{bottom:max(18px,env(safe-area-inset-bottom),4vh);border-top:1px solid #f5d99d55;padding-top:16px}.guide{gap:clamp(6px,1.4vw,28px)}.guideTitle{color:#efd298;letter-spacing:.15em;font-size:11px;margin-right:9px}.guide button{gap:8px;border:0;background:transparent;padding:3px 4px;border-radius:4px;color:#fff4dc;font-size:13px}.guide kbd{font:16px/1 Arial;text-align:center;display:grid;place-items:center;width:27px;height:25px;border:1px solid #e3d3a797;border-bottom-width:2px;border-radius:4px;background:#25372dc4}.chapter{font-size:11px;letter-spacing:.12em;gap:11px;color:#f0e1bd}.chapter i{width:19px}
.stats{position:absolute;top:clamp(18px,4.8vh,54px);left:var(--pad);gap:22px;padding:10px 20px;border:1px solid #ebce8a75;border-radius:5px;background:#152820dd;box-shadow:0 3px 14px #17251d44}.stats small,.totals small{display:block;font-size:10px;letter-spacing:.12em;color:#f4dba2}.stats strong{font:bold 25px/1.15 Georgia,serif}.stats em{font:14px Georgia;color:#d8c9a2}.wallet{gap:8px;border-left:1px solid #d4ad6d66;padding-left:16px}.wallet img{width:23px;height:23px;object-fit:contain}.wallet strong{color:#ffda88}.notice{position:absolute;bottom:clamp(84px,13vh,128px);left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap;background:#17291ee8;color:#fae5b1;border:1px solid #dbbe7780;padding:9px 15px;border-radius:4px;font-size:13px}.panel h2{font-size:clamp(42px,5.2vw,77px)}.reason{font-size:19px;color:#f4d393;margin:18px 0 2px}.advice{color:#efe7d2;font-size:14px;margin:6px 0}.totals{gap:30px;margin:20px 0}.totals b{display:block;font:bold 29px Georgia;margin-top:4px}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}#loadingError{position:absolute;left:var(--pad);bottom:18%;background:#402923;padding:10px 15px}
body[data-mode=running] .location{visibility:hidden}body[data-mode=running] .shade{opacity:.43;background:linear-gradient(0deg,#0d251ce8,transparent 16%,transparent 90%,#102a1c80)}body[data-mode=running] footer{border:0;padding-top:0}.guide button:active,body[data-pose=slide] [data-action=slide]{background:#6c5630;color:#ffe6a8}
@media(max-width:760px){:root{--pad:20px}.panel{max-width:90%;top:43%}.panel h1{font-size:clamp(53px,11vw,78px)}.english{font-size:17px}.lead{font-size:14px}.shade{background:linear-gradient(90deg,#132b24ca,#152c2479 44%,transparent 85%),linear-gradient(0deg,#16251bd6,transparent 26%,transparent 79%,#10261b66)}.chapter,.guideTitle{display:none}.guide{width:100%;justify-content:space-between;gap:2px}.guide button{font-size:12px;gap:5px;padding:8px 4px}.notice{bottom:85px}.location strong{font-size:17px}.launch{min-width:174px}.stats{gap:12px;padding:8px 13px}.tools button{padding:0 8px}.panel h2{font-size:42px}}
@media (max-height:540px) and (min-aspect-ratio:1/1){header{top:12px}.panel{top:49%;transform:translateY(-45%)}.panel h1{font-size:48px;margin-top:6px}.lead{font-size:12px;line-height:1.5;margin:8px 0}.record{margin-top:6px}.english{font-size:12px}.launch{min-width:150px;padding:7px 12px}.eyebrow{font-size:10px}.guide kbd{height:20px}footer{bottom:8px;padding-top:4px}.totals,.reason{margin:6px 0}.panel h2{font-size:32px}}

body[data-mode=running] .notice{top:clamp(20px,5vh,56px);bottom:auto}@media(max-width:760px){body[data-mode=running] .notice{top:82px}}
#routeHud{position:absolute;top:calc(clamp(18px,4.8vh,54px) + 70px);left:var(--pad);width:206px;padding:10px 13px;background:#142a24e6;border:1px solid #d5b87b8c;border-radius:4px;color:#fff0c9;pointer-events:none}.stageLabel{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:700}.stageLabel small{font:11px Georgia,"Microsoft YaHei",serif;color:#dfd5b7}.routeRail{height:3px;background:#b0a99055;margin:7px 0}.routeRail i{display:block;height:100%;background:#edbd65}#pursuit{font-size:11px;color:#d4dec9}body[data-hits="1"] #pursuit{color:#ffc78b}body[data-hits="1"] #routeHud{border-color:#e09c59}body[data-stage="2"] .vista{filter:hue-rotate(9deg) saturate(.88)}body[data-stage="3"] .vista{filter:sepia(.55) saturate(1.12) brightness(.77)}body[data-mode=won] .location{visibility:visible}.vista{transition:filter 1s}.notice{max-width:90vw}body[data-mode=over] .panel h2{font-size:clamp(32px,4.5vw,65px)}
@media(max-width:760px){#routeHud{width:170px;top:calc(clamp(18px,4.8vh,54px) + 60px);padding:6px 10px}.stageLabel{font-size:11px}body[data-mode=running] .notice{top:auto;bottom:85px}.guide{touch-action:manipulation}}
.vista{background-position:var(--sky-x,50%) 48%}
@media(max-width:760px){.notice{white-space:normal;text-align:center}.guide button{touch-action:manipulation}}
