:root{font-family:Arial,system-ui,sans-serif;color-scheme:light}*{box-sizing:border-box}body,html{margin:0;width:100%;height:100%;overflow:hidden;background:#38df10}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;image-rendering:auto}.topbar{position:fixed;top:10px;left:10px;right:10px;display:flex;gap:8px;justify-content:space-between;pointer-events:none}.stat{pointer-events:none;background:linear-gradient(#e9f8fe,#bde0f5);color:#194f66;border:3px solid #f8ffff;box-shadow:0 0 0 2px #4a7d91,0 3px 5px #294e5477;border-radius:10px;padding:8px 12px;font-weight:900;min-width:80px;text-align:center;text-shadow:0 1px white}.stat b{color:#95561a}.stat small{display:block;font-size:10px}.level{min-width:115px}.tip{position:fixed;left:50%;bottom:86px;transform:translateX(-50%);max-width:88vw;background:#f4fff9e8;border:2px solid #cae6e5;padding:8px 14px;text-align:center;color:#315653;font-weight:bold;font-size:12px;border-radius:12px;box-shadow:0 3px 10px #3335;pointer-events:none}.bottom{position:fixed;bottom:15px;left:16px;right:16px;display:flex;justify-content:space-between;pointer-events:none}.bottom-left{display:flex;align-items:end;gap:9px}.bottom button{pointer-events:auto;font-weight:900;border-radius:8px;border:3px solid white;box-shadow:0 0 0 2px #6c8794,0 2px 5px #0003;color:#214b68;background:linear-gradient(white,#a9cbe4);font-size:20px;min-width:50px;min-height:47px;cursor:pointer}.bottom .big{padding:9px 26px;font-size:18px}.bottom .orange{color:#76450c;background:linear-gradient(#fffcf0,#ffba54)}.toast{position:fixed;z-index:20;top:80px;left:50%;transform:translateX(-50%);max-width:90vw;border:2px solid white;border-radius:11px;background:#3b9064;box-shadow:0 4px 10px #0005;color:white;padding:10px 18px;text-align:center;font-weight:bold;pointer-events:none;opacity:0;transition:opacity .2s}.toast.active{opacity:1}.overlay{z-index:10;position:fixed;inset:0;background:#06280e88;display:flex;align-items:center;justify-content:center;padding:12px}.overlay.hidden{display:none}.panel{width:min(880px,100%);max-height:89dvh;overflow:auto;background:linear-gradient(#f4ffe9,#d2ebc2);border:5px solid #fff;outline:2px solid #417d44;box-shadow:0 12px 30px #0005;border-radius:13px;padding:14px 20px;color:#2b4d4c}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-head small{font-size:11px;font-weight:900;color:#688b73}.panel-head h2{margin:4px 0 14px;font-size:22px}.panel-head button{background:#d95445;color:white;border:2px solid #fff;box-shadow:0 0 0 1px #9e2a25;border-radius:7px;padding:7px 16px;font-size:23px;font-weight:900;cursor:pointer}.tabs{display:flex;overflow-x:auto;gap:8px;padding:5px 0 10px}.tabs button{background:#e9f1e6;border:2px solid #8bb695;border-radius:9px;padding:11px 13px;font-size:13px;font-weight:bold;white-space:nowrap;color:#34584b;cursor:pointer}.tabs button.sel{background:linear-gradient(#fff6c3,#ffca51);border-color:#c58a2a;color:#6c4922}.goods{display:grid;grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:9px;align-items:stretch}.good{background:linear-gradient(#fffdf2,#e8e3ce);border:3px solid #d6ab67;border-radius:10px;min-height:148px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:7px 5px;font-weight:900;font-size:13px;color:#33566a;cursor:pointer;position:relative}.good img{max-width:115px;width:auto;max-height:90px;object-fit:contain;image-rendering:pixelated}.good small{color:#a26013;font-size:12px}.good:focus-visible{outline:4px solid #287dbd}.good:hover{background:#fff2d9}.note{font-size:13px;background:#ffffffb8;border-radius:8px;padding:10px 12px;margin-top:0}.action{border:2px solid #fff;border-radius:10px;background:linear-gradient(#fff,#a3c8e1);padding:10px 15px;font-weight:900;color:#315a6d;cursor:pointer}.action.danger{background:#e9b0a5}.footer-detail{font-size:12px;line-height:1.5;color:#4b6b61}.missions{font-size:15px;line-height:1.8}#game.placing{cursor:crosshair}@media(max-width:600px){.topbar{top:6px;left:5px;right:5px;gap:4px}.stat{padding:4px;min-width:40px;font-size:12px;border-width:2px}.level{min-width:69px}.tip{bottom:70px;font-size:10px}.bottom{bottom:9px;left:8px;right:8px}.bottom button{font-size:15px;min-width:39px;min-height:39px}.bottom .big{font-size:14px;padding:8px}.panel{padding:10px}.goods{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bottom-right{display:flex;align-items:center;gap:8px}
.bottom .cancel-action{font-size:13px;border:2px solid #fff;background:linear-gradient(#fcebe5,#e99482);color:#8c2213;padding:8px}
.inspect{display:flex;gap:20px;align-items:center;padding:12px;background:#ffffffa8;border:2px solid #a9c9a3;border-radius:14px}
.inspect img{max-width:140px;max-height:120px;object-fit:contain;image-rendering:pixelated}
.inspect h3{margin:0 0 8px;font-size:20px;color:#28546a}.inspect p{margin:4px 0;font-size:14px}
.manage-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
.manage-actions button{font-size:15px}
@media(max-width:600px){.inspect img{max-width:100px}.bottom .cancel-action{padding:7px 4px;font-size:10px}}
/* LBC v0.5 · visual retrô inspirado na disposição do jogo antigo.
   Imagens isoladas vêm dos assets extraídos do APK para ensaio privado.
   Interface, cruzamentos e efeitos são implementações novas. */
html,body{overscroll-behavior:none}
#game{image-rendering:pixelated}
.topbar{top:10px;right:8px;left:8px;gap:10px;align-items:start}
.stat{display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;min-width:100px;background:linear-gradient(180deg,#fdfefe 0%,#d8eef3 62%,#b8d5e2 100%);border:3px solid white;box-shadow:0 0 0 2px #6f9eb0,0 3px 0 2px #62839a;border-radius:7px;padding:4px 9px;font-family:Georgia,serif;font-size:22px;letter-spacing:1px;text-shadow:0 1px 1px #fff;color:#2c5470;white-space:nowrap}
.stat b{color:#a15f18}.stat.energy{min-width:65px}
.stat small{white-space:nowrap;font-size:10px;font-family:Arial,sans-serif;font-weight:900;letter-spacing:0}
.stat.level{min-width:190px;gap:10px;justify-content:start}
.level-medal{width:40px;height:40px;background:linear-gradient(#fffbb4,#ffc800);border:3px solid white;outline:2px solid #b99d09;color:white;display:flex;justify-content:center;align-items:center;font-size:26px;text-shadow:2px 2px #9f861e;border-radius:35% 45% 35% 45%;box-shadow:0 2px 1px #968c39}
.level-details{display:flex;gap:3px;flex-direction:column;flex:1}
.level-track{display:block;width:100%;height:13px;border:2px solid #6c9db5;outline:1px solid white;background:#eef9ff;box-shadow:inset 0 1px 2px #6599ac7d;overflow:hidden;border-radius:3px}
.level-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f3c146,#faff8c)}
.hud-coin,.hud-cash,.hud-fruit,.hud-bolt{display:inline-flex;width:29px;height:29px;align-items:center;justify-content:center;font-family:Arial,sans-serif;font-size:20px;font-weight:900;flex:none}
.hud-coin{border-radius:50%;background:linear-gradient(#ffdb45,#f6a800);box-shadow:inset 0 0 0 3px #ffefb4,0 0 0 2px #aa7712;color:#e3a122;text-shadow:0 1px #fff3ba}
.hud-cash{transform:rotate(-8deg);border-radius:4px;background:linear-gradient(#d2d9d4,#808987);color:#656c6b;border:2px solid #747e7a}
.hud-plus{font:900 23px Arial;color:#3e8f21;text-shadow:1px 1px white;padding:0 5px;background:linear-gradient(#fefefe,#dedede);border:2px solid white;box-shadow:0 0 0 1px #9fa1a8;border-radius:5px}
.hud-bolt{color:#ffc84f}.hud-fruit{font-size:24px}
.pause{pointer-events:auto;border:3px solid #fff;border-radius:5px;box-shadow:0 0 0 2px #7d909c,0 2px 1px #555;background:linear-gradient(#f5f6f9,#b5b5b7);font-size:24px;font-weight:900;color:#777;min-height:40px;min-width:45px;cursor:pointer}
.tip{background:#f4fff3ea;bottom:80px;font-weight:700;border-radius:8px;max-width:min(650px,82vw);padding:6px 12px}
.bottom .big{min-height:49px;min-width:150px;padding:7px 14px;background:linear-gradient(180deg,#f8fafb,#c5c5c5);color:#f9faff;font-family:Georgia,serif;letter-spacing:2px;font-size:24px;text-shadow:-2px -2px #65666a,2px -2px #65666a,-2px 2px #65666a,2px 2px #65666a}
.bottom .orange{background:linear-gradient(180deg,#fffbfc,#fadba1);color:white;text-shadow:-2px -2px #bf8a43,2px -2px #bf8a43,-2px 2px #bf8a43,2px 2px #bf8a43}
.notice{display:inline-block;color:white;text-shadow:none;font:900 13px Arial;position:absolute;background:#b8333e;border:2px solid #fff;width:23px;height:23px;border-radius:50%;transform:translate(5px,-17px);padding-top:3px}
.bottom-left,.bottom-right{position:relative}
.overlay.shop-open{background:#163a1b95}
.shop-open .panel{width:min(1200px,97vw);max-height:96dvh;height:min(650px,95dvh);overflow:auto;background:linear-gradient(#5cbb42,#bee4af 40%,#d1ddb3);border:5px solid #f7f7f4;outline:2px solid #a4cb93;padding:10px 18px;color:#2c5575}
.shop-open .panel-head{gap:10px}
.shop-open .panel-head h2{font-family:Georgia,serif;font-size:31px;letter-spacing:2px;color:#ffcf43;text-shadow:2px 2px #33689a,-2px -1px #32648d;margin-bottom:0}
.shop-open .panel-head small{display:none}
.shop-open .panel-head button{background:linear-gradient(#d94b43,#a90d11);font-size:30px;padding:3px 18px;border:3px solid white}
.shop-category{background:linear-gradient(#bee1a8,#88bf79);display:flex;gap:7px;align-items:center;justify-content:space-around;padding:7px;border:2px solid #b8d9a8;border-radius:12px;overflow-x:auto}
.category-icon{background:transparent;min-width:85px;border:3px solid transparent;cursor:pointer;border-radius:12px;display:flex;flex:1;max-width:148px;flex-direction:column;justify-content:center;align-items:center;padding:3px 5px;gap:2px;color:#2c5470;font-size:11px;font-weight:900}
.category-icon img{object-fit:contain;width:70px;height:55px;image-rendering:pixelated}
.category-icon.selected{background:#e3eda98a;border-color:#d28d2c;box-shadow:0 0 0 1px #f4dd8b inset}
.category-icon .tools-emoji{font-size:36px;font-weight:bold;line-height:55px}
.shop-heading{font-size:21px;font-weight:900;letter-spacing:2px;color:#284e76;padding:8px 10px;text-shadow:1px 1px white}
.shop-stage{display:flex;align-items:stretch;gap:7px;min-height:250px;max-width:1060px;margin:0 auto}
.shop-arrow{align-self:center;min-width:49px;height:96px;border:5px solid white;outline:2px solid #828889;border-radius:15px;background:linear-gradient(#fff,#b6bec5);box-shadow:0 2px 0 #626b72;color:#657785;font-size:38px;cursor:pointer}
.shop-arrow:disabled{opacity:.32;cursor:default}
.shop-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;flex:1}
.shop-card{color:#27536e;background:linear-gradient(#f5f5d8,#d5d6bc 72%,#ecece9 73%);border:4px solid #c6a064;border-radius:14px;box-shadow:0 0 0 1px #ffd9a3 inset;padding:8px 5px;cursor:pointer;min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:3px;font-size:20px;font-weight:900}
.shop-card.featured{background:linear-gradient(#fff5cb,#fbfbe9 70%,#fff 73%);border-color:#e59b34}
.shop-card strong{font-size:clamp(13px,2.1vw,22px);text-align:center;line-height:1.15}
.shop-card img{display:block;object-fit:contain;width:95%;height:112px;image-rendering:pixelated}
.card-price{font-size:17px;color:#8b542d}.card-buy{display:block;width:95%;border:2px solid white;box-shadow:0 0 0 2px #8e939b;background:linear-gradient(#fdfefe,#bfc4c8);padding:7px 0;color:#3b5367;font-size:17px;letter-spacing:.5px;text-shadow:0 1px white}
.shop-pagination{font-size:12px;text-align:center;line-height:2;color:#48644b}
@media(max-width:820px){.stat{min-width:50px;gap:3px;font-size:14px;padding:3px 5px}.stat.level{min-width:116px}.level-medal{width:25px;height:25px;font-size:17px}.level-track{height:8px}.stat small{font-size:8px}.hud-coin,.hud-cash,.hud-fruit,.hud-bolt{width:20px;height:20px;font-size:15px}.hud-plus{font-size:13px;padding:0 2px}.pause{min-height:31px;min-width:35px;font-size:17px}.topbar{gap:5px}.bottom .big{font-size:17px;min-width:104px}.category-icon{min-width:63px;font-size:9px}.category-icon img{height:40px;width:55px}.shop-card{min-height:192px;padding:4px 2px}.shop-card img{height:88px}.shop-stage{min-height:196px}.shop-arrow{min-width:32px;font-size:20px;height:72px;border-width:3px}.shop-heading{font-size:16px}}
@media(max-width:480px){.topbar{flex-wrap:wrap;justify-content:center;gap:3px}.stat{font-size:12px;border-width:2px;min-height:27px}.stat.level{min-width:90px}.level-medal{width:23px;height:23px}.hud-coin,.hud-cash,.hud-fruit,.hud-bolt{width:16px;height:16px;font-size:11px}.hud-plus{display:none}.stat.energy{min-width:42px}.topbar .pause{min-height:25px}.tip{font-size:9px;bottom:62px}.bottom .big{font-size:14px;min-width:78px;min-height:36px;letter-spacing:0}.bottom button.smallbtn{min-width:30px;min-height:35px;font-size:17px}.bottom-left{gap:4px}.notice{display:none}.shop-open .panel{padding:6px}.shop-category{gap:2px}.category-icon{min-width:57px}.category-icon span:not(.tools-emoji){font-size:8px}.shop-card img{height:68px}.shop-card strong{font-size:12px}.card-price{font-size:10px}.card-buy{font-size:10px}.shop-card{min-height:152px;gap:1px}.shop-stage{min-height:166px}.shop-arrow{min-width:22px;height:50px;font-size:14px}.shop-cards{gap:3px}.shop-open .panel-head h2{font-size:23px}}
