:root{color-scheme:light;font-family:"Nunito","Microsoft YaHei",sans-serif;color:#343c30;background:#91b960;--paper:#fff8e5;--ink:#343c30;--green:#426644;--edge:#d0b78b}
*{box-sizing:border-box}body{margin:0;overflow:hidden}button,select,input{font:inherit}button{cursor:pointer;color:var(--ink);border:1px solid var(--edge);border-radius:12px;background:#fff8e4;padding:.55rem .8rem;font-weight:750;min-height:44px}button:hover{background:#f4e3b7}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #347d76;outline-offset:2px}button:disabled{opacity:.55;cursor:default}.primary{background:var(--green);color:white;border-color:#315338}.primary:hover{background:#315338}small{display:block}.hud{position:fixed;top:max(14px,env(safe-area-inset-top));left:14px;right:14px;display:flex;align-items:center;gap:10px;pointer-events:none}.hud>*{pointer-events:auto}.sign,.wallet,.route,.hint,#toast{background:var(--paper);border:1px solid var(--edge);border-radius:14px;box-shadow:0 3px 0 #58452d36;padding:.5rem .8rem}.sign strong{font-size:1.24rem;letter-spacing:.12em}.sign small{font-size:.62rem;letter-spacing:.16em;color:#615438}.wallet{font-weight:800;white-space:nowrap}.wallet span:first-child{color:#986410}.hud nav{margin-left:auto;display:flex;gap:6px}.route{position:fixed;left:14px;top:85px}.route span{font-weight:800}.route small{margin-top:.25rem;color:#5a5d47}.hint,#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;text-align:center}.hint{pointer-events:none}#toast{bottom:72px;z-index:2}canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none}#touch{display:none;position:fixed;inset:auto 18px max(19px,env(safe-area-inset-bottom));justify-content:space-between;align-items:end;pointer-events:none}#touch>*{pointer-events:auto}#joystick{touch-action:none;position:relative;width:96px;height:96px;border-radius:50%;background:#fff8e59c;border:2px solid #fff8e5}#knob{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:#416346;border:2px solid var(--paper)}#interact{border-radius:50%;width:68px;height:68px;background:#fff3cb}dialog{background:var(--paper);color:var(--ink);border:2px solid var(--edge);border-radius:23px;width:min(620px,calc(100vw - 24px));max-height: min(780px,calc(100dvh - 32px));box-shadow:0 12px 0 #3d422739,0 25px 70px #24332555;padding:0;overflow:auto}dialog::backdrop{background:#24332568}dialog>header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--edge);background:#f7e9c7;position:sticky;top:0;z-index:1}h1{margin:.2rem 0 0;font-size:1.55rem}#eyebrow{color:#64512d;font-weight:750}#close{font-size:1.45rem;padding:.2rem .75rem}#content{padding:1rem 1.25rem 1.3rem}.buttons,.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}.selected{background:#e0ebce;border-color:#799770}.card{padding:1rem;margin:.65rem 0;border:1px solid #ddcaa1;border-radius:15px;background:#fffdf3}.card h2{margin:.15rem 0 .6rem;font-size:clamp(1.15rem,5vw,1.8rem);overflow-wrap:anywhere}.card p{line-height:1.55;margin:.45rem 0}.list{list-style:none;padding:0}.list li{margin:.4rem 0}.list button{width:100%;text-align:left;background:#fffdf3}.feedback{min-height:1.5em;font-weight:750}.good{color:#355e3b}.retry{color:#8a4b28}.entry{width:100%;border:1px solid var(--edge);background:#fffdf7;color:var(--ink);border-radius:10px;padding:.65rem}.tokens{min-height:3rem}.goods{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem}.goods button{min-height:74px}.baking{font-size:3rem;text-align:center;animation:rise .45s ease-out}@keyframes rise{from{transform:translateY(12px);opacity:.4}to{transform:translateY(0);opacity:1}}
@media(pointer:coarse){#touch{display:flex}.hint{bottom:125px}#toast{bottom:175px}}
@media(max-width:580px){.hud{flex-wrap:wrap;gap:5px;left:8px;right:8px}.hud nav{margin-left:0}.hud button{padding:.35rem .55rem}.route{top:116px;left:8px}.sign strong{font-size:1rem}dialog>header,#content{padding:.8rem}}
@media(prefers-reduced-motion:reduce){.baking{animation:none}}
#book{min-height:54px;background:#fff0bb;border-color:#a98248;padding:.55rem 1.15rem;font-size:1.05rem;box-shadow:0 3px 0 #79583646}
#hint{pointer-events:auto;background:#fff1c6;font-size:1rem;padding:.65rem 1.2rem;min-height:52px}
#exit{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#3c654d;color:white;border:2px solid #fff4d0;box-shadow:0 4px 0 #2c4f3d65;padding:.65rem 1.25rem;min-height:52px}
#hint[hidden],#exit[hidden]{display:none}
@media(pointer:coarse),(any-pointer:coarse){#touch{display:flex}#exit{bottom:185px}#hint{bottom:119px}#book{min-height:56px}}
@media(max-width:580px){.route{top:132px}.hud nav{align-items:center}}
.keyboard-mode button:focus,.keyboard-mode input:focus{outline:3px solid #347d76;outline-offset:2px}
#game:focus{outline:none}
.keyboard-guide{display:grid;grid-template-columns:minmax(95px,auto) 1fr;gap:.55rem 1rem;line-height:1.45}
.keyboard-guide dt{font-weight:800}
.keyboard-guide dd{margin:0}
