@charset "UTF-8";
:root{--paper:#fbf5e8;--ink:#424941;--green:#487b67;--coral:#d56c52;--line:#d5d4bd;--gold:#e6b74f;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:#f6f2e8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,canvas:focus-visible{outline:3px solid var(--coral);outline-offset:5px}button:disabled{cursor:default;opacity:.55}button{touch-action:manipulation}button[hidden],[hidden]{display:none!important}.app{max-width:1920px;margin:auto;min-height:100svh;display:flex;flex-direction:column;padding:0 42px}.topbar{height:96px;display:flex;align-items:center;gap:32px;flex-shrink:0}.brand{display:flex;gap:11px;align-items:center;border:0;background:none;padding:0}.brand-mark{font-size:44px;color:var(--coral);font-family:Georgia;transform:rotate(-12deg)}.brand>span:last-child{display:flex;align-items:baseline;gap:10px}.brand i{font:bold italic 30px Georgia;color:var(--green)}.brand b{font-family:"STSong","SimSun",serif;font-size:21px;letter-spacing:3px}.top-note{font-size:12px;color:#8d9383;border-left:1px solid #d9d9c8;padding-left:25px;letter-spacing:1px}.topbar nav{margin-left:auto;display:flex;align-items:center;gap:28px}.topbar nav button{border:0;background:none;padding:8px 0;font-size:13px}.topbar nav button:hover{color:var(--coral)}.circle{display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid #969e8c;border-radius:50%;margin-left:5px;font:12px Georgia}.icon-btn{position:relative;font-size:23px!important;min-width:28px}.sound-slash{position:absolute;left:6px;top:10px;font-size:19px;color:#b57868}.stage{position:relative;isolation:isolate;flex:1;min-height:530px;height:calc(100svh - 182px);max-height:1040px;border:1px solid #cfcdb8;border-radius:5px 5px 37px 5px;overflow:hidden;background:#f6ecd5;box-shadow:0 7px 0 -4px #e2dece,0 15px 0 -10px #d9d6c6}.stage:after{content:"";position:absolute;right:0;bottom:0;width:36px;height:36px;background:linear-gradient(135deg,#ded7c5 47%,#f6f2e8 50%);filter:drop-shadow(-2px -2px 3px #9f998955);pointer-events:none;z-index:9}canvas{display:block;width:100%;height:100%;outline:0!important;touch-action:none}.stage-grain{position:absolute;inset:0;pointer-events:none;opacity:.19;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23838364' filter='url(%23n)' opacity='.25' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.hero{position:absolute;left:7%;top:11%;width:580px;max-width:53%;z-index:2}.hand-note{display:inline-flex;align-items:center;font-size:12px;letter-spacing:3px;color:var(--green);gap:12px}.hand-note span{font-size:23px}.tina-title{font:italic 27px Georgia;color:var(--green);margin:28px 0 10px;transform:rotate(-4deg);transform-origin:left}.hero h1{font-family:"STKaiti","KaiTi","STSong","SimSun",serif;font-size:clamp(60px,6.2vw,102px);font-weight:900;letter-spacing:8px;line-height:1.23;margin:0 0 20px;color:#394f43;position:relative;white-space:nowrap;text-shadow:2px 3px 0 #f9f2df}.title-star{font:50px Georgia;color:var(--coral);display:inline-block;vertical-align:top;transform:rotate(15deg);margin:0 0 0 5px}.hero-copy{font-size:14px;line-height:2.05;letter-spacing:1px;color:#6c7967;margin:0 0 25px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:45px;background:var(--green);border:1px solid #3e6653;box-shadow:4px 5px 0 #9ba98b55;border-radius:3px 9px 3px 8px;color:#fffaf0;font-size:16px;padding:16px 25px;transition:transform .15s,box-shadow .15s}.primary:hover{transform:translateY(-3px) rotate(-1deg);box-shadow:5px 8px 0 #9ba98b55}.primary span{font-size:23px}.continue{display:block;background:none;border:0;font-size:13px;text-decoration:underline;text-underline-offset:5px;padding:17px 0 0}.hero-foot{display:flex;gap:22px;color:#8a927e;font-size:11px;margin-top:23px}.dot{display:inline-block;width:5px;height:5px;background:var(--coral);border-radius:50%;margin-right:7px;vertical-align:middle}.scribble-note{font-family:"KaiTi","STKaiti",serif;transform:rotate(-6deg);font-size:17px;color:#8b927c;margin-top:30px}.scribble-note span{font-size:36px;display:inline-block;transform:rotate(25deg);margin-left:12px}.scene-caption{position:absolute;right:9%;bottom:9%;text-align:center;color:#55715b}.scene-caption span{display:block;font-size:10px;letter-spacing:4px}.scene-caption strong{display:block;font:24px "STKaiti","KaiTi",serif;letter-spacing:6px;margin:8px 0}.scene-caption small{font-size:10px;letter-spacing:2px}.bottom-bar{height:86px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px}.journey{display:flex;align-items:center;gap:13px;font-size:11px;color:#798370}.tiny-fox{font-size:30px;color:var(--coral)}.chapter-dots{display:flex;align-items:center;margin-top:9px}.chapter-dots i{height:6px;width:6px;border:1px solid #a6b19a;border-radius:50%}.chapter-dots i.active{background:var(--green);border-color:var(--green)}.chapter-dots em{width:32px;height:1px;background:#c5cdb8}.controls-legend{display:flex;gap:20px;font-size:11px;color:#7c8573;align-items:center}.controls-legend span{white-space:nowrap}kbd{font:10px inherit;border:1px solid #c5c9b6;min-width:19px;padding:3px 5px;display:inline-block;text-align:center;border-radius:3px;margin-right:4px;box-shadow:0 2px 0 #dddfd1;background:#fffaf066}.footer-note{font-size:10px;color:#999e89;letter-spacing:1px}.footer-note span{color:var(--coral);padding-left:8px}.hud{position:absolute;left:32px;right:32px;top:25px;display:flex;justify-content:space-between;align-items:start;pointer-events:none}.level-tag{background:#fffbedde;padding:12px 19px;border:1px solid #d6d7bd;border-radius:2px 2px 14px 2px;box-shadow:3px 3px 0 #969a7e15}.level-tag small{font-size:10px;color:#8c9a7e;display:block;margin-bottom:5px;letter-spacing:2px}.level-tag strong{font-family:"KaiTi","STKaiti",serif;letter-spacing:3px;font-size:20px}.hud-right{display:flex;gap:14px;align-items:center}.star-count{background:#fff9e6dd;border:1px solid #ded4ac;padding:10px 17px;border-radius:20px;color:#b88e2d;font-size:22px}.star-count b{font-size:14px;vertical-align:middle;margin-left:7px;color:#756843}.small-btn{border:1px solid #c8cfb9;border-radius:50%;width:42px;height:42px;pointer-events:auto;background:#fffbeddd;font-weight:bold;font-size:18px}.play-hints{position:absolute;bottom:23px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#47634d;pointer-events:none}.play-hints>span:first-child{padding:9px 15px;background:#fffbeddf;border-radius:20px;border:1px solid #cbd2b6}.glide-meter{position:relative;width:96px;height:10px;background:#fffbebbe;border:1px solid #a1b59b;border-radius:8px;display:block}.glide-meter>span{position:absolute;inset:1px;right:0;border-radius:8px;background:#7aaf9b;width:95%}.glide-meter b{position:absolute;left:0;bottom:16px;font-size:10px;letter-spacing:2px}.toast{position:absolute;left:50%;top:22%;transform:translate(-50%,-12px);background:#fffbedf5;border:1px solid #b5c3a6;border-radius:5px;box-shadow:3px 4px 0 #72896c33;padding:12px 25px;font-size:13px;color:#53714f;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap;z-index:5}.toast.visible{opacity:1;transform:translate(-50%,0)}.loading{position:absolute;inset:0;z-index:10;display:grid;place-content:center;text-align:center;background:#faf4e6;font-size:13px;color:var(--green)}.loading-star{font:60px Georgia;animation:spin 3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
dialog{border:1px solid #b7baa3;background:#fbf7eafc;color:var(--ink);border-radius:5px 5px 28px 5px;padding:42px;width:min(760px,90vw);max-height:88svh;overflow:auto;box-shadow:10px 13px 0 #2d45382b}dialog::backdrop{background:#253d3680;backdrop-filter:blur(5px)}.close-modal{position:absolute;right:18px;top:12px;border:0;background:none;font-size:28px;color:#7b8973}.modal-eyebrow{font:italic 19px Georgia;color:var(--coral);margin:0 0 9px}.modal-title{font:32px "KaiTi","STKaiti","SimSun",serif;letter-spacing:4px;margin:0 0 12px}.modal-sub{font-size:13px;color:#87917e;line-height:1.9;margin-bottom:25px}.chapter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.chapter-card{background:#f0efde;border:1px solid #ccd1b8;border-radius:3px 3px 16px 3px;overflow:hidden;text-align:left;padding:0;transition:transform .15s}.chapter-card:not(:disabled):hover{transform:translateY(-5px)}.chapter-art{height:125px;background:url(assets/forest.webp) center/cover;display:grid;place-items:center}.chapter-art img{width:60px;filter:drop-shadow(0 8px 6px #776e3833)}.chapter-card:nth-child(2) .chapter-art{filter:hue-rotate(20deg)}.chapter-card:nth-child(3) .chapter-art{filter:hue-rotate(320deg)}.chapter-info{padding:15px}.chapter-info small{font-size:10px;letter-spacing:2px;color:#939a83}.chapter-info h3{font:20px "KaiTi","STKaiti",serif;margin:8px 0}.chapter-info p{font-size:11px;margin:0;color:#818e76;line-height:1.8}.chapter-score{font-size:15px;color:#c8a64e;margin-top:14px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.help-item{border-bottom:1px dashed #cdd1b9;padding:10px 0 18px}.help-item b{display:block;font-size:15px;margin-bottom:9px;color:var(--green)}.help-item p{font-size:12px;line-height:1.9;margin:0;color:#7e8874}.modal-actions{margin-top:28px;display:flex;gap:18px;justify-content:center;flex-wrap:wrap}.secondary{border:1px solid #b5bea6;background:transparent;padding:12px 20px;border-radius:3px;font-size:13px}.result{text-align:center}.result-fox{width:96px;margin:4px auto 16px;display:block}.result-stars{font-size:42px;letter-spacing:14px;margin:15px 0;color:#dcb554}.result-stats{display:flex;justify-content:center;gap:36px;margin:26px 0}.result-stats b{display:block;font:25px Georgia;color:var(--green);margin-bottom:8px}.result-stats span{font-size:11px;color:#87917e}.touch-controls{position:absolute;bottom:22px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:end;pointer-events:none;z-index:4}.touch-controls button{pointer-events:auto;border:1px solid #8ba58c88;background:#fffce7bb;backdrop-filter:blur(5px);box-shadow:0 3px 0 #6b886633;border-radius:50%;width:56px;height:56px;color:#527458;touch-action:none;user-select:none}.touch-controls button.pressed{background:#a6cbb5;transform:translateY(3px);box-shadow:none}.direction{display:flex;gap:12px}.direction button{font-size:40px}.actions{display:flex;gap:10px;align-items:end}.actions .jump-touch{width:70px;height:70px;background:#527e65da;color:#fffbea;font-size:29px}.jump-touch small{display:block;font-size:10px;margin-top:-3px}.actions .fold-touch,.actions .glide-touch{font-size:12px;width:50px;height:50px}.actions .glide-touch{margin-bottom:24px}
canvas{position:absolute;inset:0}
@media(min-width:1700px){.hero{top:16%}.hero-copy{font-size:16px}.primary{padding:19px 30px}.tina-title{font-size:35px}}
@media(max-width:1150px){.app{padding:0 24px}.top-note,.footer-note{display:none}.topbar{height:80px}.stage{height:calc(100svh - 155px);min-height:480px}.bottom-bar{height:75px}.hero{left:6%;top:10%;max-width:60%}.hero h1{font-size:70px}.hero-copy{font-size:12px}.scribble-note{margin-top:20px}.controls-legend{gap:10px}.scene-caption{right:6%}}
@media(pointer:coarse){.controls-legend{display:none}.stage.is-playing .play-hints{bottom:112px}.stage.is-playing{touch-action:none}.footer-note{display:block}}
@media(max-width:680px){.app{padding:0 10px}.topbar{height:67px;gap:0;padding:0 4px}.brand-mark{font-size:32px}.brand{gap:6px}.brand i{font-size:25px}.brand b{font-size:16px;letter-spacing:1px}.brand>span:last-child{gap:7px}.topbar nav{gap:14px}.topbar nav button{font-size:11px}.topbar #help{font-size:0}.topbar #help .circle{font-size:12px}.topbar #fullscreen{display:none}.stage{height:calc(100svh - 125px);min-height:570px;border-bottom-right-radius:25px}.hero{top:6%;left:7%;max-width:86%;width:86%}.hand-note{font-size:10px;letter-spacing:2px}.tina-title{font-size:24px;margin-top:22px}.hero h1{font-size:62px;letter-spacing:5px;margin-bottom:12px}.title-star{font-size:35px}.hero-copy{font-size:12px;line-height:1.9;letter-spacing:0;margin-bottom:19px}.primary{font-size:14px;padding:12px 23px;gap:45px}.hero-foot{margin-top:20px;font-size:9px;gap:16px}.scribble-note{display:none}.scene-caption{right:8%;bottom:5%}.scene-caption strong{font-size:19px}.scene-caption small{display:none}.bottom-bar{height:58px;padding:0 8px}.journey{font-size:9px;gap:8px}.tiny-fox{font-size:23px}.footer-note{font-size:9px;letter-spacing:0}.controls-legend{display:none}.hud{left:14px;right:14px;top:15px}.level-tag{padding:9px 12px}.level-tag strong{font-size:17px}.star-count{padding:8px 12px;font-size:18px}.star-count b{font-size:12px}.hud-right{gap:8px}.small-btn{width:36px;height:36px}.play-hints{left:14px;right:14px;font-size:10px;bottom:118px!important}.play-hints>span:first-child{max-width:75%;padding:7px 11px}.glide-meter{width:58px}.toast{font-size:11px;max-width:90%;white-space:normal;text-align:center;padding:10px 14px;top:20%}dialog{padding:35px 23px;width:94vw}.modal-title{font-size:27px}.chapter-grid{grid-template-columns:1fr}.chapter-card{display:flex}.chapter-art{height:auto;width:90px;flex-shrink:0}.chapter-info{padding:13px}.chapter-info h3{font-size:18px;display:inline-block;margin:0 0 0 8px}.chapter-info p{margin-top:6px}.chapter-score{margin-top:6px}.help-grid{gap:12px}.help-item b{font-size:13px}.help-item p{font-size:11px}.result-stats{gap:24px}.modal-actions .primary{gap:18px}.stage.is-playing{min-height:0;height:calc(100svh - 125px)}}
@media(max-height:550px) and (orientation:landscape){.app{padding:0 12px}.topbar{height:48px}.brand i{font-size:22px}.brand b{font-size:16px}.brand-mark{font-size:27px}.stage{height:calc(100svh - 62px);min-height:0}.bottom-bar{height:14px}.bottom-bar>*{display:none}.hero{top:7%;left:7%}.hand-note,.hero-foot,.scribble-note,.tina-title{display:none}.hero h1{font-size:58px;margin-bottom:8px}.hero-copy{font-size:11px;margin-bottom:12px}.primary{padding:8px 20px;font-size:13px}.scene-caption{bottom:9%}.hud{top:12px}.level-tag{padding:8px 12px}.touch-controls{bottom:12px}.stage.is-playing .play-hints{bottom:17px;left:170px;right:220px}.play-hints>span:first-child{display:none}.play-hints{justify-content:center}.glide-meter b{bottom:13px}.stage.is-playing{height:calc(100svh - 62px)}.toast{top:24%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.chapter-card:nth-child(2) .chapter-art{background-image:url(assets/coast.webp);filter:none}.chapter-card:nth-child(3) .chapter-art{background-image:url(assets/night.webp);filter:none}
.objective-bar{position:absolute;top:112px;left:32px;right:32px;display:flex;align-items:start;justify-content:space-between;gap:12px;pointer-events:none;font-size:12px;color:#556d53}.objective-bar>span{background:#fffbebed;border:1px dashed #bec8aa;padding:10px 15px;border-radius:5px;max-width:65%}.objective-bar>div{display:flex;flex-direction:column;align-items:end;gap:6px;background:#fffbebdd;padding:10px 14px;border-radius:5px}.objective-bar b{font-size:16px;color:#58795e}.objective-bar b.urgent{color:#c75c46}.objective-bar small{font-size:10px;color:#7b9680}.mode-switch{display:flex;gap:12px;margin:20px 0}.mode-switch button{flex:1;text-align:left;padding:14px 17px;border:1px solid #c7cdb6;background:#f2f0e3;border-radius:4px;font-size:14px}.mode-switch button[aria-pressed=true]{background:#527d66;color:#fff7e8;border-color:#527d66}.mode-switch small{display:block;margin-top:7px;font-size:10px;opacity:.75}.chapter-art{position:relative}.level-number{position:absolute;left:12px;top:9px;font:italic 25px Georgia;color:#688367}.collection{border-top:1px dashed #c9cbb4;padding-top:20px;margin-top:25px;font-size:12px;color:#7e8874;line-height:1.9}.collection b{font-family:KaiTi,serif;font-size:18px;color:#59765d}.collection p{margin:10px 0}.collection p span{display:inline-block;background:#e9eddd;color:#63805f;border-radius:3px;padding:1px 7px;margin-right:6px;font-size:10px}.medal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}.medal-grid span{padding:12px 4px;border:1px dashed #ccd0b9;font-size:11px;color:#a2a78f;border-radius:4px}.medal-grid span.earned{color:#8e712f;border-style:solid;border-color:#ddc88f;background:#fff0c6}.actions{position:relative}.actions .dash-touch{position:absolute;left:0;bottom:64px;width:48px;height:48px;font-size:12px;background:#e8cf9bdc;color:#7e633a}.chapter-dots em{width:18px}.chapter-grid{row-gap:20px}.chapter-info{min-height:132px}
@media(max-width:680px){.objective-bar{top:94px;left:14px;right:14px;font-size:10px;gap:6px}.objective-bar>span{padding:8px;max-width:68%;line-height:1.7}.objective-bar>div{padding:7px 8px;gap:4px}.objective-bar b{font-size:13px}.objective-bar small{font-size:9px}.mode-switch{gap:8px}.mode-switch button{padding:12px;font-size:13px}.mode-switch small{font-size:9px}.chapter-info{min-height:0}.medal-grid{grid-template-columns:repeat(2,1fr)}.chapter-art{min-height:110px}.collection{font-size:11px}.toast{top:31%}.chapter-dots em{width:15px}.actions .dash-touch{width:45px;height:45px;bottom:60px;left:0}}
@media(max-height:550px) and (orientation:landscape){.objective-bar{top:14px;left:210px;right:220px;align-items:start;font-size:10px}.objective-bar>span{max-width:62%;padding:8px 10px}.objective-bar>div{padding:8px}.objective-bar b{font-size:12px}.objective-bar small{display:none}.toast{top:35%}.chapter-art{height:90px}.modal-sub{margin-bottom:14px}.actions .dash-touch{bottom:62px}.chapter-info{min-height:120px}}
.wonder-start{display:block;margin-top:14px;padding:11px 18px;border:1px solid #aaa1bb;border-radius:3px 3px 13px 3px;background:#f2eaf5e8;color:#775b85;text-align:left;font:15px inherit;cursor:pointer}.wonder-start small{font-size:10px;display:block;margin-top:4px;letter-spacing:1px;color:#897393}.wonder-start:hover{background:#e9dcef}.wonder-intro{padding:16px 19px;margin:0 0 22px;border:1px dashed #b7a9c5;border-radius:4px;background:#eee8f199;color:#776080;font-size:13px;line-height:1.85}.wonder-intro p{margin:8px 0 0}.wonder-hud{position:absolute;top:166px;left:32px;display:flex;flex-direction:column;gap:7px;padding:10px 14px;border:1px solid #c7b7d0;background:#fff9eef0;border-radius:3px 3px 14px 3px;pointer-events:none;color:#786083;max-width:300px;font-size:12px}.wonder-hud b{font-weight:500;letter-spacing:1px}.wonder-hud span{font-size:11px;color:#8c7695}.wonder-hud[hidden]{display:none}.mode-switch button{min-width:0}.mode-switch button[data-mode="wonder"][aria-pressed="true"]{background:#877296;border-color:#877296}
@media(max-width:680px){.wonder-start{font-size:13px;padding:8px 14px;margin-top:10px}.hero-foot{margin-top:12px}.wonder-hud{top:164px;left:14px;max-width:255px;font-size:11px;padding:8px 11px;gap:5px}.wonder-hud span{font-size:10px}.mode-switch{flex-wrap:wrap}.mode-switch button{flex:1 1 40%}.mode-switch button[data-mode="wonder"]{flex-basis:100%}.wonder-intro{font-size:12px;padding:12px}.hero h1{margin-bottom:8px}.hero-copy{margin-bottom:12px}}
@media(max-height:550px) and (orientation:landscape){.wonder-start{display:inline-block;margin:0 0 0 10px;padding:8px 14px;font-size:12px;vertical-align:top}.wonder-start small{display:none}.wonder-hud{top:77px;left:16px;padding:6px 9px;max-width:245px;gap:3px;font-size:10px}.wonder-hud span{font-size:9px}}
.wonder-start{border-color:#d2a364;background:#fff0ccf2;color:#98642e}.wonder-start small{color:#ad8050}.wonder-start:hover{background:#ffe4a9}.mode-switch button[data-mode="wonder"][aria-pressed="true"]{background:#b17a48;border-color:#b17a48}.wonder-intro{background:#fff0d0a6;border-color:#d3b37f;color:#8c6b44}.wonder-hud{background:#fff8e9ed;border-color:#d9ba86;color:#86613b;max-width:320px}.wonder-hud span{color:#9c784c}.wonder-hud.air-raid{border-color:#dc805e;background:#fff0dcef}.wonder-hud.air-raid span{color:#b85131;font-weight:600}.firework-desktop{pointer-events:auto;align-self:flex-start;border:1px solid #d1a565;border-radius:12px;background:#f9dfa5;color:#865b2d;padding:4px 12px;font:12px inherit;cursor:pointer}.firework-desktop small{margin-left:6px}.firework-desktop:disabled,.firework-touch:disabled{opacity:.45}.actions .firework-touch{position:absolute;left:62px;bottom:90px;width:50px;height:50px;border-color:#d29854;background:#f3c46de8;color:#795328;font-size:12px;box-shadow:0 3px 0 #a47b4133}.firework-touch small{display:block;font-size:10px;margin-top:2px}.firework-touch[hidden]{display:none!important}@media(pointer:coarse){.firework-desktop{display:none}}@media(max-width:680px){.wonder-hud{max-width:270px}.actions .firework-touch{left:55px;bottom:91px}}
@media(pointer:coarse){.stage.has-wonder .play-hints>span:first-child{max-width:43%;white-space:normal;line-height:1.5}}
