:root{font-family:Trebuchet MS,Arial,sans-serif;color:#3a3a25;background:#8fc951}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;touch-action:none}#game{position:relative;width:100vw;height:100dvh;min-height:100vh;overflow:hidden;background:#8fc951}#field{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}#hud{position:absolute;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;pointer-events:none}.stat,#top-info>div,#help,#music{background:#fff9e9ed;border:2px solid #fff;box-shadow:0 4px 0 #9d824f88,0 7px 20px #3c591b44;border-radius:15px;padding:8px 13px}.stat{min-height:59px;display:flex;flex-direction:column;justify-content:center;gap:4px}.stat span{font-size:11px;letter-spacing:.05em;color:#758438;font-weight:900;white-space:nowrap}.stat strong{font-size:19px;line-height:1;color:#574129;white-space:nowrap}#top-info{position:absolute;top:82px;left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px;pointer-events:none}.progress{width:195px;display:flex;align-items:center;gap:9px;font-size:10px;font-weight:900;letter-spacing:.05em;white-space:nowrap}.progress div{flex:1;height:11px;border-radius:10px;background:#e6d9b5;overflow:hidden}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e67768,#f8bd4b)}#goal{font-size:12px;font-weight:900;display:flex;align-items:center;color:#6b4933}#saved{font-size:10px;color:#578139;margin-left:auto;white-space:nowrap}#music{position:absolute;right:max(12px,env(safe-area-inset-right));top:140px;color:#4c6741;font-weight:900;cursor:pointer;z-index:3;font-size:12px}#music[aria-pressed=true]{background:#fff0c1}#reward{position:absolute;left:50%;top:27%;transform:translate(-50%,-20%);font-size:clamp(20px,3.2vw,36px);font-weight:1000;text-shadow:0 3px #643824,0 6px 15px #3c2b1e;color:#fff79c;pointer-events:none;opacity:0;transition:opacity .12s,transform .3s;white-space:nowrap}#reward.show{opacity:1;transform:translate(-50%,-50%)}#help{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));font-size:12px;pointer-events:none;color:#604c37}.touch-help{display:none}#joystick{position:absolute;width:136px;height:136px;left:max(22px,env(safe-area-inset-left));bottom:max(26px,env(safe-area-inset-bottom));border-radius:50%;border:4px solid #fff8d9d9;background:#78984999;box-shadow:0 5px 15px #28442055;display:none;align-items:center;justify-content:center;touch-action:none;user-select:none}#nub{width:62px;height:62px;border:3px solid #fff4d7;border-radius:50%;background:#f1c375;box-shadow:0 3px 9px #4c5e2855;transform:translate(0,0);pointer-events:none}@media(pointer:coarse),(max-width:1024px){#joystick{display:flex}.desktop-help{display:none}.touch-help{display:inline}#help{max-width:185px;line-height:1.4}}@media(max-width:700px){#hud{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;left:4px;right:4px;top:4px}.stat{padding:4px 8px;min-height:43px;border-width:1px;border-radius:9px;gap:2px}.stat span{font-size:8px;letter-spacing:0}.stat strong{font-size:14px}#top-info{top:99px;left:4px;right:4px;gap:4px;flex-wrap:wrap}.progress{width:24%;padding:6px!important}.progress span{display:none}#goal{font-size:9px;flex:1;padding:6px!important}#saved{font-size:8px;padding:6px!important}#music{top:150px;right:5px;font-size:10px;padding:6px 8px}#help{font-size:10px;bottom:8px;right:8px;max-width:145px;padding:6px}#joystick{width:112px;height:112px;left:12px;bottom:12px}#nub{width:52px;height:52px}}@media(max-height:540px){#top-info{top:67px}#joystick{width:100px;height:100px;bottom:8px}#music{top:113px}}
#action{position:absolute;left:50%;bottom:max(90px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:5;border:3px solid #fff7ce;border-radius:18px;background:#f1b94d;color:#513b23;box-shadow:0 5px 0 #9d6b28,0 10px 24px #2c3d2077;padding:11px 18px;font:900 15px Trebuchet MS,Arial,sans-serif;white-space:nowrap;cursor:pointer}#action[hidden]{display:none}#action:disabled{background:#dacba9;color:#7c715d;box-shadow:0 3px 0 #9d8f73}@media(max-width:700px){.stat strong{font-size:11px}#action{bottom:145px;font-size:12px;padding:9px 12px;max-width:94vw;white-space:normal;text-align:center}}
