*{box-sizing:border-box;margin:0;padding:0}html{font-size:clamp(11px,min(2.45vh,1.45vw),20px)}html,body{width:100%;height:100%;overflow:hidden;background:#bfe3ff;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;-webkit-tap-highlight-color:transparent;font-family:Arial Rounded MT Bold,Trebuchet MS,Segoe UI,system-ui,sans-serif;color:#fff}#app{position:fixed;inset:0;overflow:hidden}#game{position:absolute;inset:0;width:100%;height:100%;display:block}.hidden{display:none!important}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation}svg{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}#hud{position:absolute;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:flex-start;padding:.8rem .9rem;pointer-events:none}#hud>*{pointer-events:auto}.hud-left,.hud-right,.hud-center{display:flex;gap:.55rem;align-items:center}.hud-center{position:absolute;left:50%;transform:translate(-50%);top:.8rem}.ibtn{width:2.9rem;height:2.9rem;border-radius:.9rem;background:#ffffffeb;color:#2d3a5a;display:grid;place-items:center;box-shadow:0 .25rem #1e325a40;transition:transform .1s}.ibtn:active{transform:translateY(2px) scale(.96);box-shadow:0 .1rem #1e325a40}.ibtn svg{width:1.6rem;height:1.6rem}.ibtn.dark{background:#2d3a5a;color:#fff}#btn-mute .snd-off,#btn-mute.muted .snd-on{display:none}#btn-mute.muted .snd-off{display:block}.lvl-tag{display:flex;flex-direction:column;line-height:1;text-shadow:0 2px 0 rgba(0,0,0,.25)}.lvl-tag span{font-size:1.5rem}.lvl-tag span:before{content:"Level ";font-size:1rem;opacity:.9}.lvl-tag small{font-size:.9rem;opacity:.95;margin-top:.15rem}.pill{display:flex;align-items:center;gap:.4rem;background:#141e3c73;padding:.35rem .8rem;border-radius:2rem;font-size:1.25rem;min-width:5rem;justify-content:center;backdrop-filter:blur(2px)}.pill .ico{width:1.2rem;height:1.2rem}.coin-ico{display:inline-block;width:1.15em;height:1.15em;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff3a0 0 18%,#ffd23f 20% 55%,#e6a100 57% 100%);box-shadow:inset 0 0 0 .12em #c98600;vertical-align:-.18em}.star-ico{display:inline-block;width:1.2em;height:1.2em;background:#ffd23f;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);vertical-align:-.2em}.coin-pop{animation:pop .25s ease-out}@keyframes pop{50%{transform:scale(1.25)}}.progress{position:absolute;left:50%;transform:translate(-50%);top:3.75rem;width:min(40%,22rem);height:.45rem;background:#141e3c59;border-radius:1rem}#hud-progress{height:100%;width:0;background:#ffd23f;border-radius:1rem}#hud-progress-car{position:absolute;top:50%;width:.9rem;height:.9rem;border-radius:50%;background:#fff;border:.18rem solid #ff5a4e;transform:translate(-50%,-50%);left:0}#hint{position:absolute;left:50%;top:22%;transform:translate(-50%);pointer-events:none;animation:fadeIn .4s}.hint-card{position:relative;background:#141e3c99;border-radius:1.4rem;padding:1rem 1.6rem;pointer-events:auto;backdrop-filter:blur(3px)}.hint-body{display:flex;align-items:center;gap:1rem;font-size:1.1rem}.hint-skip{position:absolute;top:-.7rem;right:-.7rem;width:2.2rem;height:2.2rem;border-radius:50%;background:#fff;color:#2d3a5a;font-size:1.1rem;box-shadow:0 .2rem #00000040}.key{display:inline-grid;place-items:center;min-width:3rem;height:3rem;padding:0 .6rem;border-radius:.6rem;background:#fff;color:#2d3a5a;font-size:1.4rem;box-shadow:0 .3rem #9aa6c4}.key.glow{animation:keyglow .9s infinite}@keyframes keyglow{0%,to{transform:translateY(0);box-shadow:0 .3rem #9aa6c4}50%{transform:translateY(.25rem);box-shadow:0 .05rem #9aa6c4;background:#ffe66b}}.key small{font-size:.75rem}.hint-or{opacity:.8;font-size:.9rem}.hand{font-size:2.6rem;animation:tap .9s infinite}@keyframes tap{50%{transform:translateY(.4rem) scale(.92)}}.hint-col{display:flex;flex-direction:column;align-items:center;gap:.35rem}#toast{position:absolute;left:50%;top:5.5rem;transform:translate(-50%);background:#2d3a5a;padding:.6rem 1.2rem;border-radius:1rem;font-size:1.1rem;animation:fadeIn .3s;box-shadow:0 .3rem #00000040}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#0f193773;animation:fadeIn .25s;padding:1rem}@keyframes fadeIn{0%{opacity:0}}.panel{display:none;flex-direction:column;align-items:center;gap:.9rem;background:linear-gradient(#fff,#eef4ff);color:#2d3a5a;border-radius:1.8rem;padding:1.4rem 1.8rem 1.5rem;box-shadow:0 .6rem #1e325a59,0 1rem 3rem #00000040;min-width:22rem;max-width:94vw;max-height:94vh;animation:popIn .35s cubic-bezier(.2,1.4,.4,1)}.panel.show{display:flex}.panel.wide{width:min(56rem,94vw)}@keyframes popIn{0%{transform:scale(.8) translateY(1rem);opacity:0}}.panel h2{font-size:2rem;color:#2d3a5a}.col{display:flex;flex-direction:column;gap:.7rem;align-items:stretch;width:100%}.row{display:flex;gap:.7rem;justify-content:center}.row>.btn{flex:1}.row.equal{width:100%}.row.equal>.btn{flex:1 1 0;min-width:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.7rem 1.2rem;border-radius:1rem;background:#dfe7f7;color:#2d3a5a;font-size:1.15rem;box-shadow:0 .3rem #a9b6d3;transition:transform .08s,filter .15s;white-space:nowrap}.btn:hover{filter:brightness(1.05)}.btn:active{transform:translateY(.2rem);box-shadow:0 .1rem #a9b6d3}.btn .ico{width:1.3rem;height:1.3rem;flex-shrink:0}.btn.big{font-size:1.45rem;padding:.85rem 1.4rem}.btn.small{font-size:.95rem;padding:.45rem .9rem}.btn.primary{background:linear-gradient(#5be38a,#22b25a);color:#fff;box-shadow:0 .3rem #158a43;text-shadow:0 2px 0 rgba(0,0,0,.2)}.btn.reward{background:linear-gradient(#ffcd4a,#ff9f1c);color:#fff;box-shadow:0 .3rem #c96f00;text-shadow:0 2px 0 rgba(0,0,0,.2)}.btn.plain{background:transparent;box-shadow:none;color:#5a6a8f}.btn:disabled{filter:grayscale(.8);opacity:.6;cursor:default}.btn.buy{background:linear-gradient(#ffcd4a,#ff9f1c);color:#fff;box-shadow:0 .3rem #c96f00}.btn.selected{background:#2d3a5a;color:#fff;box-shadow:0 .3rem #141c30}.adnote{font-size:.85rem;color:#7a86a3;margin-top:-.4rem}.keyhint{font-size:.85rem;color:#7a86a3}kbd{display:inline-block;background:#2d3a5a;color:#fff;border-radius:.3rem;padding:0 .4rem;font-family:inherit}.logo{display:flex;flex-direction:column;align-items:center;line-height:.92;font-size:3.6rem;letter-spacing:.02em;transform:rotate(-3deg)}.logo span{color:#fff;-webkit-text-stroke:.12em #2d3a5a;paint-order:stroke fill;text-shadow:0 .12em 0 #2d3a5a}.logo span:last-child{color:#7fd4ff;margin-left:1.2em}.logo.small{font-size:2.6rem}.menu-coins{display:flex;align-items:center;gap:.4rem;font-size:1.4rem;background:#2d3a5a;color:#fff;padding:.3rem .9rem;border-radius:1.2rem}.menu-coins.small{font-size:1.1rem}.stars{display:flex;gap:.6rem;align-items:flex-end}.stars i{width:3.6rem;height:3.6rem;background:#d5dcec;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}.stars i:nth-child(2){width:4.4rem;height:4.4rem}.stars i.on{background:#ffc61a;animation:starIn .45s cubic-bezier(.2,1.6,.4,1) both}@keyframes starIn{0%{transform:scale(0) rotate(-60deg)}}.win-title{color:#22b25a!important}.fail-title{color:#e8483a!important}.win-stats{display:flex;gap:1.6rem}.win-stats div{display:flex;flex-direction:column;align-items:center}.win-stats small{font-size:.85rem;color:#7a86a3}.win-stats b{font-size:1.4rem}.star-goals{display:flex;gap:.9rem;font-size:.9rem;color:#7a86a3}.fail-ico{width:4rem;height:4rem}.panel-head{display:flex;align-items:center;justify-content:space-between;width:100%}.stars-total{display:flex;align-items:center;gap:.3rem;font-size:1.3rem}.grid{display:grid;grid-template-columns:repeat(8,1fr);gap:.6rem;width:100%;overflow-y:auto;padding:.2rem .2rem .5rem}.lv{aspect-ratio:1;border-radius:.9rem;background:linear-gradient(#5ec2ff,#3a9be8);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:1.5rem;box-shadow:0 .25rem #2a74b5;position:relative}.lv .mini-stars{display:flex;gap:.1rem;margin-top:.15rem}.lv .mini-stars i{width:.8rem;height:.8rem;background:#ffffff59;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}.lv .mini-stars i.on{background:#ffd23f}.lv.locked{background:#c4cde0;box-shadow:0 .25rem #9aa6c4;color:#8592ad;cursor:default}.lv.current{background:linear-gradient(#5be38a,#22b25a);box-shadow:0 .25rem #158a43}.lv .lock{width:1.4rem;height:1.4rem}.lv .veh-badge{position:absolute;top:.2rem;right:.25rem;width:.6rem;height:.6rem;border-radius:50%;background:#ffd23f}#loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2rem;background:radial-gradient(circle at 50% 55%,#2d3a5a 0 11rem,#9fd8ff 11.2rem);transition:opacity .4s;z-index:10}#loading.fade{opacity:0;pointer-events:none}.loader{display:flex;gap:.6rem}.loader i{width:1.1rem;height:1.1rem;border-radius:50%;background:#fff;animation:bounce .9s infinite}.loader i:nth-child(2){animation-delay:.15s}.loader i:nth-child(3){animation-delay:.3s}@keyframes bounce{50%{transform:translateY(-.8rem)}}@media(max-height:520px){.panel{gap:.6rem;padding:1rem 1.3rem 1.1rem}.stars i{width:3rem;height:3rem}.stars i:nth-child(2){width:3.6rem;height:3.6rem}.logo{font-size:3rem}}#labels,#pops{position:absolute;inset:0;pointer-events:none;overflow:hidden}.need{position:absolute;transform:translate(-50%,-100%);min-width:2em;height:2em;padding:0 .35em;border-radius:1em;display:grid;place-items:center;font-size:1rem;color:#fff;border:.14em solid #fff;box-shadow:0 .15em #00000040}.need.ok{background:#22b25a}.need.no{background:#e8483a}.balltag{position:absolute;transform:translate(-50%,10%);font-size:1.35rem;padding:.05rem .6rem;border-radius:1rem;background:#141e3c8c;color:#fff}.pop{position:absolute;transform:translate(-50%,-50%);font-size:1.25rem;color:#fff;-webkit-text-stroke:.1em #2d3a5a;paint-order:stroke fill;animation:popUp .9s ease-out forwards;white-space:nowrap}.pop.coin{color:#ffd23f}.pop.good{color:#8affc8}.pop.bad{color:#ff7a6b;font-size:1.5rem}.pop.near{color:#7fd4ff;font-size:1.45rem}.pop.big{font-size:2rem;color:#ffd23f}@keyframes popUp{0%{opacity:0;margin-top:.6rem;transform:translate(-50%,-50%) scale(.6)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}to{opacity:0;margin-top:-3rem;transform:translate(-50%,-50%) scale(1)}}.hud-center{flex-direction:column;gap:.3rem;align-items:center}.track{display:flex;align-items:center;gap:.4rem}.track .bar{position:relative;width:min(30vw,18rem);height:.8rem;background:#141e3c73;border-radius:1rem}.track .fill{height:100%;width:0;background:linear-gradient(90deg,#7fd4ff,#fff);border-radius:1rem}.track .dot{position:absolute;top:50%;width:1.25rem;height:1.25rem;border-radius:50%;background:#fff;border:.2rem solid #2f8fff;transform:translate(-50%,-50%)}.track .best,.howfar .best{position:absolute;top:-.3rem;width:.22rem;height:1.4rem;margin-left:-.11rem;background:#ffd23f;border-radius:.2rem;box-shadow:0 0 0 .1rem #2d3a5a}.track .flag{width:1.4rem;height:1.4rem;color:#fff;filter:drop-shadow(0 2px 0 rgba(0,0,0,.3))}.dist{display:none;font-size:1.6rem;text-shadow:0 2px 0 rgba(0,0,0,.3)}body.endless .track{display:none}body.endless .dist{display:block}.pill.size{font-size:1.45rem;background:#2f8fffbf}.pill.size .ico{width:1.3rem;height:1.3rem}.ibtn{position:relative}.daily-dot{position:absolute;top:-.25rem;right:-.25rem;width:.85rem;height:.85rem;border-radius:50%;background:#ff4f6e;border:.15rem solid #fff}.btn .daily-dot{position:relative;top:-.6rem;right:0;margin-left:-.3rem}#combo{position:absolute;right:1rem;top:32%;display:flex;flex-direction:column;align-items:center;pointer-events:none;color:#ffd23f;-webkit-text-stroke:.08em #2d3a5a;paint-order:stroke fill}#combo b{font-size:2.6rem;line-height:1;animation:pop .25s}#combo small{font-size:1rem;color:#fff}#combo .cbar{width:4.5rem;height:.4rem;border-radius:1rem;background:#141e3c66;margin-top:.2rem}#combo .cbar i{display:block;height:100%;background:#ffd23f;border-radius:1rem}#tower-count{position:absolute;left:12%;top:40%;transform:translate(-50%);font-size:4.5rem;line-height:1;text-align:center;color:#fff;-webkit-text-stroke:.08em #2d3a5a;paint-order:stroke fill;text-shadow:0 .1em 0 #2d3a5a;pointer-events:none}#tower-count small{display:block;font-size:1.3rem}#nudge{position:absolute;left:50%;bottom:14%;transform:translate(-50%);font-size:1.5rem;color:#fff;-webkit-text-stroke:.08em #2d3a5a;paint-order:stroke fill;pointer-events:none;animation:nudge 1s ease-in-out infinite;white-space:nowrap}@keyframes nudge{50%{transform:translate(-50%) scale(1.08)}}#toast{z-index:5}#toast b{color:#ffd23f}body.ouch #game{animation:ouch .3s}@keyframes ouch{30%{filter:saturate(1.6) hue-rotate(-15deg) brightness(1.1)}}#banner{position:absolute;left:50%;top:30%;transform:translate(-50%,-50%);text-align:center;font-size:2.4rem;color:#fff;-webkit-text-stroke:.09em #2d3a5a;paint-order:stroke fill;text-shadow:0 .12em 0 #2d3a5a;pointer-events:none;animation:bannerIn .4s cubic-bezier(.2,1.5,.4,1);white-space:nowrap}#banner small{display:block;font-size:1.15rem;-webkit-text-stroke:.08em #2d3a5a;margin-top:.3rem}@keyframes bannerIn{0%{transform:translate(-50%,-50%) scale(.5);opacity:0}}#hint{top:auto;bottom:3%}#hint .hint-card{padding:.7rem 1.2rem}.drag-demo.lr{position:relative;width:7rem;height:3.6rem}.drag-demo .rail{position:absolute;left:.6rem;right:.6rem;top:1.1rem;height:.3rem;border-radius:1rem;background:#fff9}.drag-demo.lr .hand{position:absolute;left:2.4rem;top:.6rem;animation:dragLR 1.6s ease-in-out infinite}@keyframes dragLR{0%,to{transform:translate(-1.8rem)}50%{transform:translate(1.8rem)}}.keys2{display:flex;gap:.35rem}.keys2 .key{min-width:2.8rem;height:2.8rem;font-size:1.2rem;padding:0}.key.glow2{animation:keyglow .9s .45s infinite}.hint-txt{font-size:1.05rem;max-width:16rem;line-height:1.25}.hint-txt b{color:#fff}.hint-txt b.g{color:#5be38a}.fail-sub{font-size:1.02rem;color:#5a6a8f;text-align:center;max-width:24rem;margin-top:-.3rem}.fail-sub b{color:#2d3a5a}.fail-sub .sm{font-size:.85rem;color:#7a86a3}.close-call{font-size:1.05rem;color:#5a6a8f;text-align:center}.close-call b{color:#ff6f3c;font-size:1.2rem}.howfar{display:flex;align-items:center;gap:.7rem;width:100%}.howfar .bar{position:relative;flex:1;height:1.1rem;background:#dfe7f7;border-radius:1rem}.howfar .fill{height:100%;background:linear-gradient(90deg,#7fd4ff,#2f8fff);border-radius:1rem}.howfar b{font-size:1.6rem;min-width:3.5rem}.unlocks{display:flex;flex-direction:column;gap:.35rem;width:100%}.unl{font-size:.85rem;color:#5a6a8f}.unl b{color:#22b25a}.unl.new{font-size:1rem;color:#fff;background:#8a5cff;padding:.35rem .7rem;border-radius:.8rem;text-align:center}.ubar{height:.5rem;border-radius:1rem;background:#dfe7f7;margin-top:.15rem;overflow:hidden}.ubar i{display:block;height:100%;background:linear-gradient(90deg,#ffd23f,#ffb020)}.ubar.coin i{background:linear-gradient(90deg,#7fd4ff,#2f8fff)}.btn.pulse{animation:pulseBtn 1.2s infinite}@keyframes pulseBtn{50%{filter:brightness(1.15) saturate(1.2)}}.btn.endless{background:linear-gradient(#a98bff,#7a5cf0);color:#fff;box-shadow:0 .3rem #5a3fc0}.btn.endless small{font-size:.8rem;opacity:.85;margin-left:.3rem}.btn.locked{background:#c4cde0;color:#6a7896;box-shadow:0 .3rem #9aa6c4;opacity:1;filter:none}.daily-btn{background:#ff4f6e;color:#fff;box-shadow:0 .25rem #c42a48}.daily-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.45rem;width:100%}.day{position:relative;background:#fff;border-radius:.9rem;padding:.45rem .2rem;display:flex;flex-direction:column;align-items:center;gap:.2rem;box-shadow:0 .25rem #c8d2e8;font-size:.95rem}.day small{font-size:.7rem;color:#7a86a3}.day.done{opacity:.55}.day.today{background:#fff7d6;box-shadow:0 0 0 .18rem #ffb020,0 .25rem #c8d2e8;animation:pop 1s infinite}.day:last-child{background:linear-gradient(#fff3c4,#ffe08a)}.day em{position:absolute;top:.1rem;right:.3rem;color:#22b25a;font-style:normal}.worlds{display:flex;flex-direction:column;gap:.7rem;width:100%;overflow-y:auto;padding:.2rem .2rem .5rem}.world h4{font-size:1rem;color:#5a6a8f;margin:0 0 .35rem .2rem}.world .wl{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}.lv{aspect-ratio:auto;height:4.3rem}.lv.w1{background:linear-gradient(#5ed08a,#2e9e5b);box-shadow:0 .25rem #1f7a43}.lv.w2{background:linear-gradient(#7fe0ff,#2fb0e8);box-shadow:0 .25rem #1f80b0}.lv.w3{background:linear-gradient(#ffb07a,#e8783a);box-shadow:0 .25rem #b0582a}.lv.w4{background:linear-gradient(#ffcf6b,#e89a2a);box-shadow:0 .25rem #b0701f}.lv.w5{background:linear-gradient(#a98bff,#6b4ff0);box-shadow:0 .25rem #4a30b0}.lv.locked{background:#c4cde0;box-shadow:0 .25rem #9aa6c4}.lv .badge{position:absolute;top:.25rem;right:.35rem;font-size:.68rem;background:#141e3c59;padding:.05rem .35rem;border-radius:.5rem}.tabs{display:flex;gap:.4rem;width:100%}.tab{flex:1;padding:.5rem;border-radius:.8rem;background:#dfe7f7;color:#5a6a8f;font-size:1.05rem}.tab.on{background:#2d3a5a;color:#fff}.shop-scroll{width:100%;overflow-y:auto;display:flex;flex-direction:column;gap:.6rem;padding:.2rem;max-height:62vh}.ups{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem}.up{background:#fff;border-radius:1rem;padding:.7rem .9rem;display:flex;align-items:center;gap:.8rem;box-shadow:0 .25rem #c8d2e8}.up .info{flex:1}.up h4{font-size:1.05rem}.up p{font-size:.8rem;color:#7a86a3}.up .pips{display:flex;gap:.2rem;margin-top:.3rem}.up .pips i{width:1.1rem;height:.4rem;border-radius:.2rem;background:#e2e8f4}.up .pips i.on{background:#22b25a}.up .btn{font-size:.95rem;padding:.5rem .8rem}.skins{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem}.skin{background:#fff;border-radius:1rem;padding:.6rem;display:flex;flex-direction:column;align-items:center;gap:.4rem;box-shadow:0 .25rem #c8d2e8;border:.18rem solid transparent}.skin.sel{border-color:#22b25a}.skin .sw{width:3.4rem;height:3.4rem;border-radius:50%;box-shadow:inset -.3rem -.35rem #0000001f,0 .15rem #00000026;border:.12rem solid #dfe7f7}.skin .tw{width:100%;height:1.4rem;border-radius:1rem;margin:1rem 0}.skin h4{font-size:.95rem}.skin .btn{width:100%;font-size:.9rem;padding:.4rem}@media(max-aspect-ratio:4/3){.skins{grid-template-columns:repeat(3,1fr)}.ups{grid-template-columns:1fr}.daily-grid{grid-template-columns:repeat(4,1fr)}}@media(max-height:520px){#banner{font-size:1.9rem}.panel{gap:.45rem}.unl{font-size:.75rem}.shop-scroll{max-height:55vh}}body.endless .lvl-tag span:before{content:"Endless "}.lvl-tag{background:#141e3c73;padding:.3rem .7rem;border-radius:.9rem}@media(max-aspect-ratio:3/4){html{font-size:clamp(12px,3.3vw,20px)}.hud-center{top:4.1rem}.track .bar{width:52vw}.lvl-tag small{display:none}#combo{top:24%;right:.6rem}#tower-count{left:50%;top:14%;transform:translate(-50%)}.hint-txt{max-width:11rem;font-size:.95rem}}.drag-demo{flex-shrink:0}
