*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;background:#a5cfed;font-family:system-ui,rounded,sans-serif;color:#30463a;touch-action:none}button{font:inherit;color:inherit;user-select:none;touch-action:none;cursor:pointer}#game,#world{position:absolute;inset:0;width:100%;height:100%;display:block}#hud{position:absolute;left:12px;right:12px;top:max(12px,env(safe-area-inset-top));display:flex;justify-content:space-between;pointer-events:none;gap:7px}.left{display:grid;gap:6px}.pill{padding:8px 12px;border:2px solid #fff8;background:#fffdeeec;box-shadow:0 4px 16px #314b3a26;border-radius:18px;font-weight:850;font-size:13px}.brand{font-size:12px;letter-spacing:1.4px;font-weight:950;color:#638458}.brand span{font-size:10px;background:#e3b963;color:#fff;padding:2px 5px;border-radius:5px}.food{display:flex;font-size:27px;gap:4px;line-height:1.2}.food span{filter:grayscale(1);opacity:.26}.food span.full{filter:none;opacity:1}#goal{font-size:13px}.right{display:flex;gap:7px;align-items:flex-start}#map{width:58px;height:58px;background:#e9f0d7;border:2px solid white;border-radius:15px}#pause{pointer-events:auto;border:0;border-radius:16px;font-size:24px;font-weight:1000;background:#fffdf0e8;padding:10px 16px}#hint{position:absolute;left:50%;top:12px;transform:translateX(-50%);display:flex;align-items:center;gap:5px;padding:8px 12px;background:#fff9d4ea;border:2px solid #fff7;border-radius:24px;font-size:13px;font-weight:900;white-space:nowrap;pointer-events:none;box-shadow:0 3px 8px #28403720}#arrow{display:inline-block;color:#c88632;font-size:23px;line-height:1;transform-origin:center}#toast{position:absolute;top:108px;left:50%;transform:translateX(-50%);max-width:90%;background:#fffbedee;border:2px solid white;border-radius:22px;font-size:14px;font-weight:850;padding:9px 16px;text-align:center;pointer-events:none;box-shadow:0 3px 12px #35483022}#toast:empty{display:none}#controls{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:16px;right:16px;display:flex;align-items:end;justify-content:space-between;pointer-events:none}.pad{display:grid;grid-template-columns:repeat(3,55px);grid-template-rows:repeat(3,50px);gap:5px;pointer-events:auto}.pad button,.actions button{display:grid;place-items:center;border:3px solid #fff9;background:#fffaf0e8;box-shadow:0 4px 0 #344b4560;border-radius:17px;font-size:25px;font-weight:1000}.pad span{font-size:26px;display:grid;place-items:center;opacity:.9}.pad button:active,.pad button.pressed,.actions button:active{background:#ffe4a1;transform:translateY(3px);box-shadow:0 1px 0 #30493d60}.actions{display:grid;justify-items:end;gap:8px;pointer-events:auto}.actions button{width:104px;min-height:53px;font-size:13px;line-height:1.05;padding:8px}.actions button b{display:block;font-size:24px}.actions #action{width:122px;min-height:76px;background:#ffe092;border-color:#fff;color:#674518}.actions #run{background:#d9eeff}.tip{position:absolute;bottom:11px;left:50%;transform:translateX(-50%);font-size:11px;color:#274d42;background:#ffffffe0;padding:4px 8px;border-radius:12px;font-weight:750;pointer-events:none;white-space:nowrap}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:4;padding:15px;background:#263d3890;backdrop-filter:blur(7px)}.panel{border:5px solid white;border-radius:31px;background:#fffced;max-width:570px;width:100%;max-height:96%;overflow:auto;text-align:center;padding:16px;box-shadow:0 12px 0 #29463d50}.panel h1{font-size:clamp(32px,7vw,55px);letter-spacing:-2px;margin:0;line-height:1;color:#3c6c4a}.panel h1 em{font-size:.55em;font-style:normal;background:#f3c776;padding:2px 10px;border-radius:10px;color:#755326;vertical-align:middle;letter-spacing:0}.hero{font-size:46px;line-height:1.05}.panel h2{font-size:23px;margin:14px 0 8px}.panel p{font-weight:700;font-size:15px;line-height:1.3;color:#607458;margin:13px 0}.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.cat{background:#efe9d6;border:3px solid transparent;border-radius:18px;display:flex;align-items:center;flex-direction:column;font-size:13px;padding:8px 3px;font-weight:850;box-shadow:0 3px 0 #d7c9ad}.cat.selected{background:#ffe6a9;border-color:#e8aa50}.cat svg{width:62px;height:55px}.primary{display:block;width:100%;padding:13px 15px;border:0;border-bottom:5px solid #2d7049;background:#4e9364;color:white;border-radius:17px;font-weight:950;font-size:19px;text-decoration:none}.secondary{display:inline-block;border:0;background:#e6efd8;border-radius:12px;font-weight:850;margin:10px 4px;padding:10px}.instruction{font-size:13px!important}.classic{display:block;color:#688575;font-size:12px;font-weight:750;margin:10px 0}.hidden{display:none!important}.moon{font-size:68px;animation:bob 2s infinite}@keyframes bob{50%{transform:translateY(-7px)}}@media(max-width:650px){#hint{top:103px}#toast{top:150px}#controls{left:10px;right:10px}.pad{grid-template-columns:repeat(3,50px);grid-template-rows:repeat(3,49px)}.actions button{width:91px}.actions #action{width:109px}.tip{display:none}}@media(max-height:520px){.panel{padding:10px}.hero{font-size:31px}.panel h1{font-size:34px}.cats{grid-template-columns:repeat(6,1fr);gap:4px;margin:5px 0}.cat svg{width:43px;height:40px}.panel h2{margin:5px}.panel p{margin:5px}.pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,40px);gap:3px}.actions{gap:4px}.actions button{min-height:40px;width:90px}.actions #action{min-height:57px;width:100px}#toast{top:78px}#hint{top:8px}.tip{display:none}}
