*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#251b15;color:#fff5df;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}button{font:inherit;cursor:pointer;touch-action:manipulation}#game{position:relative;width:100%;height:100dvh;overflow:hidden;isolation:isolate;background:#473326}#scene,#battle{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}#battle{touch-action:none}.hud{position:absolute;top:max(14px,env(safe-area-inset-top));left:16px;right:16px;display:flex;justify-content:space-between;gap:16px;pointer-events:none}.city{width:min(68%,300px);padding:12px;background:#2a211ddd;border:1px solid #e6ba7566;border-radius:14px}.city strong{display:flex;justify-content:space-between;font-size:14px}.city small{display:block;margin-top:7px;color:#efcd99}.bar{height:9px;background:#110d0caa;border-radius:12px;overflow:hidden;margin-top:9px}.bar>div{height:100%;width:100%;background:linear-gradient(90deg,#b94e31,#ff8a3d);transition:width .2s}.hud button{pointer-events:auto;width:48px;height:48px;border:1px solid #dfb67a88;border-radius:14px;background:#30251eea;color:#ffe0a9;font-size:25px}.heroHud{position:absolute;left:16px;right:16px;bottom:max(54px,calc(env(safe-area-inset-bottom) + 42px));padding:12px 16px;border:1px solid #c99256aa;border-radius:14px;background:#241b16ed;pointer-events:none}.heroHud>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px}.heroHud strong{font-size:16px;color:#ffd59b}.heroHud span,.heroHud small{font-size:11px;color:#dec5a7}.exp{height:6px}.exp>div{width:0;background:#ff8a3d}.heroHud small{display:block;margin-top:5px}#hint{position:absolute;bottom:max(8px,env(safe-area-inset-bottom));text-align:center;width:100%;font-size:12px;text-shadow:0 2px 4px #000;pointer-events:none}#toast{position:absolute;top:25%;width:100%;text-align:center;font-weight:700;color:#ffe0a3;text-shadow:0 2px 4px #000;pointer-events:none}.veil{position:absolute;inset:0;background:#160e0bc4;display:flex;align-items:center;justify-content:center;padding:24px;z-index:5}.veil[hidden]{display:none}.panel{max-height:85dvh;overflow:auto;width:min(100%,360px);border:1px solid #c79154;background:#34251eee;border-radius:22px;padding:25px;box-shadow:0 16px 60px #0008}.panel small{color:#ff8a3d;letter-spacing:3px}.panel h2{margin:12px 0;color:#ffe0ac;font-size:26px}.panel p{font-size:14px;line-height:1.7;color:#dcc4a6}#choices{display:grid;gap:12px;margin-top:22px}#choices button{min-height:58px;border:1px solid #b67a4d;border-radius:12px;background:#543b2b;color:#fff0d8;text-align:left;padding:13px 16px}#choices button:first-child{background:#ff8a3d;color:#2d1b10;font-weight:700}#choices button small{display:block;letter-spacing:0;color:inherit;margin-top:5px;font-weight:400}@media(min-width:650px){#game{max-width:520px;margin:auto}}
