@font-face{font-family:Nunito;src:url(./nunito-B4jPm4Ja.ttf) format("truetype");font-weight:400 900;font-display:swap}*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;overflow:hidden}body{background:#211434;font-family:Nunito,Trebuchet MS,Arial,sans-serif;color:#553353;-webkit-tap-highlight-color:transparent}button,select,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;filter:grayscale(.35);opacity:.55}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #fdfba6;outline-offset:4px}veno-shell{display:none!important}#loading{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;color:#e3faab;font-size:32px;font-weight:900;background:radial-gradient(ellipse,#70518b,#24153d)}#loading span{animation:spin 2s infinite linear;font-size:45px}@keyframes spin{to{transform:rotate(360deg)}}#game-stage{position:relative;isolation:isolate;overflow:hidden}canvas{display:block;touch-action:none}#ui{position:absolute;inset:0;pointer-events:none;z-index:5}#ui>*{pointer-events:auto}button{border:0;font-weight:900;transition:transform .15s,filter .15s}button:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-2px)}button:active:not(:disabled){transform:translateY(3px)}.primary,.secondary,.icon-btn,.pill,.card,.material,.tool{border:2px solid #fff4d7;box-shadow:0 4px #995326,0 7px 12px #56335235,inset 0 2px #ffffffb0}.primary{background:linear-gradient(#d0f74b,#92c926 65%,#70a622);border-color:#f7ffd8;color:#375020;text-shadow:0 1px #edffc4;border-radius:26px;padding:13px 30px;font-size:23px;min-height:58px;box-shadow:0 5px #4e7d23,0 8px 20px #3b423940,inset 0 3px 2px #ffffd2;letter-spacing:.1px}.secondary{border-radius:20px;background:linear-gradient(#fffbea,#ffe3b7);color:#79513f;padding:12px 22px;font-size:17px;min-height:48px}.icon-btn{display:grid;place-items:center;width:48px;height:46px;min-width:46px;border-radius:17px;background:linear-gradient(#fff9e3,#ffdda3);color:#875333}.icon-btn svg,.tool svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.topbar{position:absolute;top:20px;left:22px;right:22px;display:flex;align-items:flex-start;gap:12px;pointer-events:none}.topbar>*{pointer-events:auto}.brand-mini{width:148px;max-height:72px;object-fit:contain;filter:drop-shadow(0 4px 3px #3c244638);margin-top:-7px}.pill{padding:10px 18px;background:#fff7e7f5;border-radius:20px;color:#754b4f;min-height:51px}.level-pill strong{font-size:19px;display:block}.level-pill small{display:block;font-size:11px;font-weight:900;color:#a87981;text-transform:uppercase;letter-spacing:.8px}.budget{margin:auto;min-width:230px;padding:9px 20px}.budget-label{display:flex;justify-content:space-between;gap:20px;font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:900}.budget strong{display:block;font-size:21px;font-variant-numeric:tabular-nums}.budget-meter{height:6px;border-radius:4px;background:#dfcba9;overflow:hidden;margin-top:4px}.budget-meter>i{display:block;height:100%;background:linear-gradient(90deg,#b5d639,#e8d553);border-radius:4px}.budget.over strong{color:#d54366}.budget.over .budget-meter>i{background:#e3617d}.top-actions{display:flex;gap:9px}.toolbar{position:absolute;left:22px;top:103px;display:flex;gap:7px;align-items:center}.tool{border-radius:14px;display:flex;align-items:center;justify-content:center;padding:8px 11px;min-height:39px;background:#fff9e8e8;color:#87533d;gap:7px;font-size:13px}.tool.active{background:#d5ec8f;border-color:#f8ffc9}.tool span{font-weight:900}.convoy{position:absolute;right:24px;top:100px;font-size:12px;font-weight:800;border-radius:16px;padding:8px 13px;background:#503063b8;color:#fffae5;display:flex;gap:6px;align-items:center}.convoy b{font-size:17px}.shelf-wrap{position:absolute;left:50%;transform:translate(-50%);bottom:22px;display:flex;gap:20px;align-items:center;width:max-content;max-width:calc(100% - 38px)}.shelf{display:flex;gap:8px;padding:10px 12px 12px;border:3px solid #ffebbe;outline:3px solid #be722d;border-radius:25px;background:linear-gradient(#f9c17c,#d38a40);box-shadow:0 8px #9e5529,0 13px 20px #57433050,inset 0 2px #fff5d7;max-width:calc(100vw - 190px);overflow-x:auto;scrollbar-width:none}.material{position:relative;width:106px;min-width:89px;height:85px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:18px;background:linear-gradient(#ffedc7,#f6cc8c);color:#805236;padding:4px 5px;font-size:10px;box-shadow:0 2px #b67635,inset 0 3px 6px #9a613439;text-align:center}.material.selected{outline:3px solid #ffb82e;border:3px solid #ffffd8;background:#fff0c6;box-shadow:0 0 20px #fff882,inset 0 0 6px #fff8af}.material svg{height:35px;width:70px;overflow:visible}.material span{max-width:100%;line-height:1.05;font-size:11px}.material small{font-size:9px;color:#a47b50}.go{border-radius:50%;width:103px;height:103px;min-width:103px;position:relative;box-shadow:0 5px #498420,0 0 0 7px #d99c4d,0 0 0 11px #fff0c5,0 12px 16px #406b5360;padding:10px}.go .play-icon{font-size:46px;line-height:.9;display:block;color:#fff;filter:drop-shadow(0 3px #579731)}.go small{font-size:11px;font-weight:900;display:block;margin-top:7px}.hint-bubble{position:absolute;bottom:155px;left:50%;transform:translate(-50%);background:#fff9e8ef;box-shadow:0 4px 10px #5c346f24;border:2px solid #fff;border-radius:20px;padding:10px 22px;font-size:14px;font-weight:800;max-width:75%;text-align:center;pointer-events:none!important}.hint-bubble:after{content:"";position:absolute;bottom:-10px;left:50%;border-left:9px solid transparent;border-right:9px solid transparent;border-top:10px solid #fff9e8}.home-actions{position:absolute;bottom:8%;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:16px;min-width:290px}.home-actions .primary{font-size:27px;min-width:278px;padding:16px 38px}.home-links{display:flex;gap:12px}.home-links .secondary{padding:10px 20px}.tagline{position:absolute;top:39%;left:20px;right:20px;text-align:center;font-size:21px;font-weight:900;color:#654771;text-shadow:0 2px #fff7e1}.home-corner{position:absolute;right:25px;top:25px;display:flex;gap:10px}.home-footer{position:absolute;bottom:14px;left:20px;right:20px;display:flex;justify-content:space-between;color:#fffee6b5;font-weight:800;font-size:10px;letter-spacing:1px;text-transform:uppercase}.overlay{position:absolute;inset:0;background:#3520469c;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);display:flex;justify-content:center;align-items:center;padding:24px}.card{position:relative;background:linear-gradient(#fffaf0,#fff0d9);border:4px solid #fff6e2;outline:3px solid #d9a55e;border-radius:32px;padding:28px;max-height:90%;overflow:auto;width:min(540px,94vw);text-align:center;box-shadow:0 10px #b07846,0 18px 70px #23112a60}.card h1{margin:4px 0 7px;font-size:31px;color:#674365;line-height:1.1}.card p{font-size:15px;color:#947083;margin:12px 0 22px}.card .x{position:absolute;right:14px;top:12px;width:34px;height:34px;font-size:22px;background:#f4d9c0;color:#9a725f;border-radius:50%;box-shadow:0 2px #d7b590}.card .actions{display:flex;flex-direction:column;gap:12px;margin:20px 10px 4px}.card .row{display:flex;justify-content:space-between;align-items:center;gap:20px;text-align:left;padding:13px 0;border-bottom:1px solid #e6d1bd;font-weight:800}.card select{min-width:155px;border-radius:13px;border:2px solid #e0c39c;padding:8px;color:#684366;background:#fffdf0;max-width:60%}.card .secondary{font-size:15px}.star-display{display:flex;justify-content:center;gap:10px;margin:12px 0 10px;font-size:62px;filter:drop-shadow(0 4px #cd8e24);color:#f4c738}.star-display .dim{color:#dccdb8;filter:none}.star-display span:nth-child(2){transform:translateY(-10px) scale(1.1)}.stats{background:#f1e3cc;border-radius:19px;padding:12px 18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.stats>div small{display:block;font-size:11px;color:#a38177}.stats>div strong{font-size:20px;color:#724b57}.result-badge{color:#92a936;font-size:13px;font-weight:900;margin:12px}.result .failed-icon{font-size:60px;margin:8px}.help{text-align:left}.help ol{padding-left:25px}.help li{font-size:15px;margin-bottom:16px;line-height:1.5}.map-card{width:min(950px,96vw);padding:24px 36px}.world-tabs{display:flex;justify-content:center;gap:12px;margin:18px 0 14px}.world-tab{width:50px;height:45px;border-radius:16px;background:#efdbcb;border:2px solid #fff8e5;color:#886c82;font-size:23px;box-shadow:0 3px #c2a496}.world-tab.active{background:#cde785;border-color:#f5ffbf;box-shadow:0 3px #90b441}.map-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:25px 0}.level-tile{min-height:91px;background:linear-gradient(#fff9d9,#f4d398);border:3px solid #fff8d8;border-radius:24px;box-shadow:0 5px #c28c53,0 7px 7px #997a3c20;color:#936448;font-size:28px;position:relative;padding:10px}.level-tile.current{background:linear-gradient(#dcf37d,#a9cf4b);color:#5a7a24;box-shadow:0 5px #7d9d34}.level-tile small{display:block;font-size:14px;letter-spacing:1px;color:#bb8e4b}.level-tile:disabled{background:#eadacd;color:#a995a1;box-shadow:0 5px #c4aca5}.map-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#9c817d}.toast{position:absolute;z-index:40;left:50%;top:24%;transform:translate(-50%);padding:14px 23px;max-width:85%;border:2px solid #fff2cf;border-radius:19px;background:#50325eeb;color:#fff4d5;box-shadow:0 8px 30px #35204e40;text-align:center;font-weight:800;animation:toastIn .2s ease-out}@keyframes toastIn{0%{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%)}}.demo-panel{position:absolute;z-index:15;right:15px;top:100px;width:260px;padding:18px;border:2px solid #fff5de;background:#fff6e8ed;border-radius:20px;box-shadow:0 6px 18px #3c24463b}.demo-panel h2{margin:0 0 12px;font-size:20px}.demo-panel label{display:flex;justify-content:space-between;font-size:12px;align-items:center;gap:8px;margin-bottom:10px}.demo-panel select,.demo-panel input{max-width:150px;font-size:12px;border:1px solid #d7bea3;background:#fffdf3;border-radius:8px;padding:5px}.demo-panel button{width:100%;margin-top:9px;font-size:13px;min-height:35px;padding:8px}.demo-panel p{font-size:11px;line-height:1.4;color:#957486}.record-status{font-size:12px}.run-controls{position:absolute;left:24px;bottom:28px;display:flex;gap:10px;align-items:center}.run-controls .primary{font-size:18px;min-height:48px}.run-progress{position:absolute;bottom:27px;left:50%;transform:translate(-50%);padding:10px 20px;background:#fff9e8ed;border:2px solid #fff;border-radius:18px;font-size:13px;font-weight:800;color:#846350}.run-controls.right{left:auto;right:24px}.watermark{position:absolute;bottom:11px;right:14px;font-size:11px;font-weight:900;color:#fff6c8aa;pointer-events:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media(max-aspect-ratio:1/1){.topbar{top:16px;left:15px;right:15px;gap:10px;flex-wrap:wrap}.brand-mini{width:118px;max-height:55px}.level-pill{padding:7px 13px;min-height:48px;flex:1}.level-pill strong{font-size:18px}.level-pill small{font-size:10px}.top-actions{gap:7px}.top-actions .icon-btn{width:43px;min-width:43px;height:43px}.budget{order:4;flex-basis:100%;margin-top:6px;min-width:0;padding:8px 16px;min-height:58px}.budget strong{font-size:23px}.toolbar{top:163px;left:15px;right:15px;gap:6px;justify-content:center;flex-wrap:wrap}.tool{padding:8px 10px;min-height:40px;flex:0 1 auto}.tool span{font-size:12px}.convoy{top:219px;left:50%;transform:translate(-50%);right:auto;white-space:nowrap;font-size:11px}.shelf-wrap{bottom:34px;flex-direction:column;gap:22px;max-width:calc(100% - 25px);width:100%;align-items:stretch}.shelf{justify-content:center;max-width:100%;width:100%;padding:9px;gap:8px;border-radius:22px}.material{width:105px;min-width:70px;height:94px;font-size:11px;flex:1}.material svg{width:62px;height:37px}.material span{font-size:12px}.material small{font-size:10px}.go{align-self:center;width:206px;height:63px;min-width:0;border-radius:28px;display:flex;align-items:center;justify-content:center;gap:15px;box-shadow:0 5px #498420,0 0 0 4px #d99c4d,0 0 0 7px #fff0c5,0 9px 12px #406b5360}.go .play-icon{font-size:28px}.go small{font-size:18px;margin:0}.hint-bubble{bottom:263px;width:85%;max-width:85%;font-size:15px;padding:12px 16px}.home-actions{bottom:10%;gap:18px}.home-actions .primary{font-size:27px;min-width:300px}.tagline{top:31%;font-size:24px;padding:0 30px}.home-corner{top:20px;right:20px}.home-footer{bottom:14px;left:17px;right:17px;font-size:9px}.home-footer span:first-child{max-width:55%}.card{width:min(510px,94%);padding:28px 20px;max-height:88%}.card h1{font-size:29px}.map-card{padding:28px 20px}.map-grid{grid-template-columns:repeat(5,1fr);gap:9px}.level-tile{border-radius:17px;font-size:25px;min-height:77px;padding:6px}.level-tile small{font-size:11px}.map-bottom{flex-direction:column;gap:14px}.world-tabs{gap:11px}.run-controls{bottom:90px;left:15px}.run-controls.right{right:15px;bottom:90px}.run-progress{bottom:30px;width:90%;text-align:center}.demo-panel{top:auto;bottom:25px;right:20px;width:calc(100% - 40px);max-height:40%;overflow:auto}.demo-panel label{display:inline-flex;width:48%;margin-right:1%;flex-wrap:wrap}.demo-panel button{width:48%;margin-right:1%;vertical-align:middle}.demo-panel p{margin-bottom:0}}@media(max-width:500px){.topbar{gap:6px}.brand-mini{width:80px}.icon-btn{width:40px;height:40px;min-width:40px}.top-actions .icon-btn{width:37px;height:37px;min-width:37px}.level-pill{padding:5px 10px;min-height:40px}.level-pill strong{font-size:15px}.level-pill small{font-size:8px}.budget{margin-top:0}.toolbar{top:145px}.toolbar .tool{padding:6px 9px;min-height:35px}.tool svg{width:19px;height:19px}.tool span{display:none}.convoy{top:194px}.shelf{overflow-x:auto;justify-content:flex-start}.material{min-width:68px;height:84px}.material span{font-size:10px}.material svg{width:54px}.hint-bubble{font-size:12px;bottom:245px}.tagline{font-size:19px;top:31%}.home-actions{bottom:9%}.home-actions .primary{min-width:250px;font-size:24px}.home-links .secondary{font-size:14px;padding:10px 15px}.map-grid{grid-template-columns:repeat(5,1fr)}.level-tile{min-height:65px;font-size:20px;border-radius:14px}.level-tile small{font-size:9px}.world-tab{width:43px;height:39px}.card .row{font-size:13px}.card select{min-width:125px}.card h1{font-size:25px}.card p{font-size:13px}.star-display{font-size:50px}.run-controls .primary{font-size:14px;padding:10px 16px}.run-controls .secondary{font-size:12px;padding:9px}.run-controls.right .tool span{display:block}.home-footer{font-size:8px}}@media(max-height:550px)and (min-aspect-ratio:1/1){.topbar{top:12px;left:15px;right:15px}.brand-mini{width:110px}.pill{min-height:42px;padding:6px 12px}.budget{min-width:195px}.budget strong{font-size:18px}.toolbar{top:82px;left:15px}.convoy{top:83px}.shelf-wrap{bottom:17px;gap:15px}.shelf{padding:7px;gap:6px}.material{height:67px;width:85px;min-width:75px}.material svg{height:26px}.material span{font-size:9px}.go{width:78px;height:78px;min-width:78px}.go .play-icon{font-size:34px}.go small{font-size:9px}.hint-bubble{bottom:112px;padding:7px 17px;font-size:12px}.home-actions{bottom:6%;gap:9px}.home-actions .primary{padding:10px 25px;font-size:23px;min-height:49px}.home-links .secondary{min-height:35px;padding:7px 20px;font-size:14px}.tagline{top:40%;font-size:18px}.home-footer{font-size:8px}.card{max-height:92%;padding:20px}.card h1{font-size:25px}.card p{margin:8px 0}.star-display{font-size:43px;margin:8px}.stats{padding:8px}.card .actions{margin-top:12px;gap:8px}.card .primary{font-size:18px;min-height:42px;padding:8px}.map-grid{margin:13px 0;gap:10px}.level-tile{min-height:65px}.world-tabs{margin:10px 0}.demo-panel{top:20px;max-height:90%;overflow:auto}}@media(max-height:550px)and (min-aspect-ratio:1/1){.card.result{width:min(650px,92vw);display:grid;grid-template-columns:1fr 1fr;gap:5px 20px;align-items:center;padding:18px 24px;overflow:auto}.result .star-display{grid-column:1;grid-row:1;margin:5px 0;font-size:38px}.result h1{grid-column:1;grid-row:2;font-size:24px;margin:0}.result>p{grid-column:1;grid-row:3;font-size:13px;margin:0}.result .stats{grid-column:2;grid-row:1 / span 3;gap:9px;padding:15px}.result .stats strong{font-size:18px}.result .result-badge{grid-column:1 / span 2;margin:5px}.result .actions{grid-column:1 / span 2;display:flex;flex-direction:row;justify-content:center;gap:9px;margin:7px 0 0}.result .actions button{font-size:14px;padding:9px 15px;min-height:40px}.result .failed-icon{grid-column:1;grid-row:1;font-size:40px;margin:0}}
