@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/dm-sans-latin-400-normal-CW0RaeGs.woff2) format("woff2"),url(/assets/dm-sans-latin-400-normal-BwCSEQnW.woff) format("woff")}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/dm-sans-latin-700-normal-DvUfVpUG.woff2) format("woff2"),url(/assets/dm-sans-latin-700-normal-CUSSCpQX.woff) format("woff")}@font-face{font-family:Fraunces;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fraunces-latin-600-normal-BFCDtZfi.woff2) format("woff2"),url(/assets/fraunces-latin-600-normal-DL5QCzvS.woff) format("woff")}:root{font-family:DM Sans,system-ui,sans-serif;color:#eee9d8;background:#14242a;font-synthesis:none;--muted:#9eafaf;--gold:#edc879;--line:#ffffff16;--title:"Fraunces",Georgia,serif}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button{cursor:pointer;color:inherit;transition:background .18s,border-color .18s,transform .18s}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #84d4f2;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.topbar{height:78px;max-width:1600px;margin:auto;padding:0 38px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:30px;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font:800 24px/.95 var(--title);letter-spacing:-1px;white-space:nowrap}.brand b{color:#bad591}.brand small{display:block;font:7px system-ui;letter-spacing:2px;color:#8faaa5;margin-top:9px}.brand-mark{color:#d6ce97;border:1px solid #a1b48d55;border-radius:13px;width:40px;height:46px;display:grid;place-items:center}.brand-mark .icon{width:25px;height:25px}.topbar nav{display:flex;gap:24px;align-self:stretch}.nav-button{background:none;border:0;border-bottom:2px solid transparent;font-size:12px;display:flex;align-items:center;gap:8px;color:#a7b6b2}.nav-button.active{color:#e9dfb4;border-bottom-color:var(--gold)}.nav-button:hover{color:#fff0c4}.top-actions{display:flex;gap:7px}.icon-button{width:40px;height:40px;border:1px solid #a3b5a83b;border-radius:50%;background:#ffffff03;display:grid;place-items:center;color:#b5c3b8}.icon-button:hover{background:#ffffff10}main{max-width:1600px;margin:auto;padding:22px 38px 0}.mission-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:15px}.eyebrow,.section-kicker{font-size:9px;letter-spacing:1.65px;color:#b2c499;font-weight:700}.mission-heading h1{font:600 30px/1.15 var(--title);margin:7px 0 0;letter-spacing:-.7px}.mission-actions{display:flex;gap:20px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:none;border:0;font-size:11px;color:#c9d1be;min-height:40px}.text-button:hover{color:#fff1bc}.text-button .icon{width:17px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:0;border:1px solid #a9ba9237;border-radius:14px;overflow:hidden;background:#1d3035;box-shadow:0 20px 70px #05141940}.battlefield{min-width:0;display:flex;flex-direction:column;background:#101d22}.map-top{height:55px;display:flex;gap:25px;align-items:center;padding:0 19px;background:#203539;border-bottom:1px solid #ffffff13;z-index:3}.resource{display:flex;gap:7px;align-items:center}.resource b{font-size:20px;color:#eee9c9}.resource small{font-size:7px;letter-spacing:1px;color:#9aaea6}.resource>.icon{color:#c4d197}.resource.gold>.icon{color:#e9c76b}.resource.life>.icon{color:#e0a28c}.map-controls{margin-left:auto;display:flex;align-items:center;gap:4px}.map-control{height:36px;min-width:36px;border:1px solid #acc0af25;border-radius:6px;background:#122a3066;color:#c7d7c4;font-size:13px;font-weight:600}.map-control:hover,.map-control[aria-pressed=true]{background:#4b6556}.map-control .icon{width:17px;height:17px}#map-stage{position:relative;width:100%;height:clamp(360px,calc(100svh - 328px),800px);overflow:hidden;touch-action:manipulation;background:#101d22}#map-stage canvas{display:block!important;touch-action:none!important}.battle-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:57px;padding:10px 16px;background:#203539;border-top:1px solid #ffffff12}.battle-footer>span{font-size:11px;color:#b7c7b9}.primary-button{background:#e4c37d;border:1px solid #f6d99b;border-radius:7px;padding:11px 16px;color:#313f33;display:inline-flex;gap:9px;align-items:center;justify-content:center;font-size:12px;font-weight:700;min-height:42px}.primary-button:hover:not(:disabled){background:#f3d999}.primary-button .icon{width:16px;height:16px}.workshop{padding:23px 18px;background:#22373a;border-left:1px solid #b4c19428;display:flex;flex-direction:column;min-height:0}.workshop h2{font:600 24px/1.2 var(--title);letter-spacing:-.6px;margin:9px 0 8px}.workshop>p{font-size:11px;line-height:1.6;color:#a3b4ae;margin:0 0 15px}.slot-label{font-size:8px;letter-spacing:1px;color:#b9c6b2;display:block;margin:0 0 7px}select{background:#142a2f;border:1px solid #8fa59847;border-radius:6px;color:#d5dec9;width:100%;padding:9px 10px;font-size:11px;min-height:39px;cursor:pointer}.tower-item{border:1px solid #a4b3982b;border-radius:9px;background:#2e4546;display:flex;width:100%;text-align:left;align-items:center;padding:6px 8px;margin-top:10px;gap:7px}.tower-item:hover:not(:disabled){border-color:#e0cc8d;background:#395452}.tower-item>img{width:74px;height:83px;object-fit:contain;filter:drop-shadow(0 4px 3px #14272b66)}.tower-item>span{flex:1;min-width:0}.tower-item small{font-size:7px;letter-spacing:.8px;color:#adbdac;display:block}.tower-item b{font:600 16px var(--title);display:block;margin:4px 0 6px;white-space:nowrap}.tower-item strong{font-size:12px;color:#f0d28a;display:flex;gap:5px;align-items:center}.tower-item strong .icon{width:13px;height:13px}.tower-item em{font:10px system-ui;color:#b5c0ad}.affordability{display:block;font-size:9px;color:#a8bcae;line-height:1.5;margin:6px 0 0}.build-tip{display:flex;align-items:flex-start;gap:8px;margin:10px 0;color:#9fb5a7}.build-tip>.icon{width:14px;height:14px;margin-top:2px}.build-tip p{font-size:10px;line-height:1.7;margin:0}.next-wave{margin-top:auto;padding-top:15px;border-top:1px solid #b5c49320}.next-wave small{display:block;font-size:7px;letter-spacing:1px;color:#8fa796}.next-wave span{display:block;font-size:10px;margin-top:6px;color:#c5d1ba}.hero-dock{display:flex;align-items:center;justify-content:space-between;padding:17px 0;gap:18px;border-bottom:1px solid var(--line)}.dock-label{font-size:8px;letter-spacing:1.3px;color:#bdcbb0;margin-bottom:9px;font-weight:700}.dock-label span{font-weight:400;color:#819b92;margin-left:10px;letter-spacing:.3px}.hero-choices{display:flex;gap:9px}.hero-choice{min-width:164px;display:flex;align-items:center;text-align:left;gap:8px;background:#22363b;border:1px solid #8da68b30;border-radius:8px;padding:5px 12px 5px 5px}.hero-choice.selected{border-color:#d8cf8b;background:#3b4b40;box-shadow:0 0 0 1px #d8cf8b15}.hero-choice:hover:not(:disabled){background:#37504c}.hero-choice img{width:43px;height:48px;object-fit:contain}.hero-choice b{font:600 15px var(--title);display:block}.hero-choice small{display:block;margin-top:4px;font-size:8px;color:#adbea9}.hero-choice:disabled.selected{opacity:1}.ability-side{display:flex;align-items:center;gap:13px;padding-top:17px}.hero-health{width:100px}.hero-health span{display:block;font-size:8px;line-height:1.5;color:#abc2ab}meter{width:100%;height:7px;display:block;margin-top:4px}meter::-webkit-meter-bar{background:#2b4544;border:0}meter::-webkit-meter-optimum-value{background:#9ed290}.move-button{display:flex;align-items:center;gap:6px;background:none;border:0;font-size:11px;min-height:44px;color:#b2c9b1}.move-button.active{color:#edce7b}.ability-button{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#4a503c;border:1px solid #d8cb866b;border-radius:8px;min-width:217px;min-height:53px;text-align:left}.ability-button>.icon{color:#e5d68f;width:24px;height:24px}.ability-button b{display:block;font:600 13px var(--title);color:#e7e4bc}.ability-button small{display:block;font-size:7px;letter-spacing:.6px;margin-top:5px;color:#c4cba4}kbd{font:9px system-ui;color:#ccd5b4;border:1px solid #9fb39155;border-radius:4px;padding:3px 5px;margin-left:auto}.ability-button:disabled{opacity:.53}footer{display:flex;justify-content:space-between;align-items:center;gap:15px;color:#91a89b;font-size:10px;min-height:47px}footer>span{display:flex;align-items:center;gap:7px}footer .icon{width:13px;height:13px}footer .text-button{font-size:10px}.loading,.paused-label{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#18333be8;text-align:center;padding:25px}.loading b,.paused-label b{font:600 26px var(--title)}.loading small{color:#b0c7be;font-size:12px}.spinner{width:32px;height:32px;border:2px solid #b9cdbb44;border-top-color:#e5d195;border-radius:50%;animation:spin .8s linear infinite}.paused-label{background:#122c34c9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.toast{position:absolute;z-index:7;left:50%;top:20px;transform:translate(-50%,-8px);width:max-content;max-width:85%;background:#173438ed;border:1px solid #cfdbaf66;color:#e8edcf;font-size:12px;line-height:1.5;padding:12px 19px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;text-align:center;box-shadow:0 8px 30px #132e4055}.toast.show{opacity:1;transform:translate(-50%)}.upgrade-art{text-align:center;margin-top:10px}.upgrade-art img{width:125px;height:142px;object-fit:contain;display:block;margin:auto}.upgrade-art span{font-size:8px;letter-spacing:1px;color:#d7daa5}.level-dots{display:flex;gap:4px;justify-content:center;margin:10px 0}.level-dots i{width:25px;height:4px;background:#60715e;border-radius:3px}.level-dots i.filled{background:#e2cf83}.tower-stats{display:flex;justify-content:space-between;margin:14px 0}.tower-stats span{font-size:9px;color:#a7bbaa}.tower-stats b{display:block;font-size:17px;color:#edf0cc;margin-top:5px}#upgrade{width:100%;margin-top:12px;font-size:11px}.sell-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:40px;background:none;border:0;color:#b6c9b2;font-size:11px;padding:10px 0}.sell-button:hover{color:#eed296}.secondary-button{border:1px solid #a5ba974d;background:#2e4946;color:#d3e0c3;padding:11px 17px;border-radius:7px;font-size:12px;min-height:42px}.secondary-button:hover{background:#3c5951}.modal{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:24px}.modal-backdrop{position:absolute;inset:0;background:#091c22db;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.modal-panel{position:relative;width:100%;max-width:880px;max-height:91svh;overflow:auto;background:#233b3e;border:1px solid #b7c3914a;border-radius:17px;padding:37px;box-shadow:0 24px 100px #0005;animation:appear .2s ease}.modal-close{position:absolute;right:13px;top:13px;z-index:2;background:#233b3e}.modal-panel h2{font:600 31px/1.2 var(--title);letter-spacing:-.5px;margin:10px 30px 16px 0}.modal-panel h3{font:600 22px var(--title);margin:25px 0 15px}.modal-panel h4{font:600 18px var(--title);margin:0 0 5px}.modal-panel p{font-size:13px;color:#b6c9bd;line-height:1.8}.sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:25px}.sector-card{display:flex;flex-direction:column;position:relative;padding:0 0 16px;text-align:left;overflow:hidden;border:1px solid #99b19340;border-radius:10px;background:#2b4644}.sector-card img{width:100%;height:105px;object-fit:cover;display:block}.sector-card b{font:600 15px var(--title);padding:12px 12px 5px}.sector-card small{font-size:9px;color:#d9d4a0;padding:0 12px}.sector-card.current{border-color:#e7d18d}.sector-number{position:absolute;top:9px;left:9px;font-weight:700;font-size:12px;background:#19352bdb;border:1px solid #e5d8ac55;border-radius:6px;padding:5px 7px;color:#f2e7bb}.sector-card:disabled{opacity:.5;filter:saturate(.4)}.sector-card:hover:not(:disabled){border-color:#ead694;transform:translateY(-2px)}.hero-stories article{display:flex;gap:25px;padding:20px 0;border-bottom:1px solid var(--line)}.hero-stories img{width:140px;height:170px;object-fit:contain}.hero-stories h3{font-size:27px;margin:7px 0}.hero-stories small{font-size:9px;color:#bed09f;letter-spacing:1px}.hero-stories p{font-size:12px;margin:7px 0}.hero-stories b{font-size:12px}.hero-stories button{margin-top:7px}.book-towers article{border-bottom:1px solid var(--line);padding:16px 0}.book-towers p{font-size:12px}.evolution-row{display:flex;gap:12px}.evolution-row figure{margin:0;flex:1;text-align:center}.evolution-row img{width:100%;height:145px;object-fit:contain}.evolution-row figcaption{font-size:9px;color:#bacbb2;margin-top:5px;line-height:1.5}.enemy-list{display:grid;grid-template-columns:1fr 1fr;gap:24px}.enemy-list article{display:flex;gap:14px;align-items:center}.enemy-list img{width:69px;height:95px;object-fit:contain}.enemy-list p{font-size:11px;margin:5px 0}.enemy-list small{font-size:8px;color:#b8cba4;line-height:1.7}.story-portraits{display:flex;justify-content:center;height:155px;gap:10px;margin:22px 0}.story-portraits img{width:115px;height:155px;object-fit:contain}.help-steps{padding-left:20px}.help-steps li{font-size:14px;padding:5px 0 5px 10px;color:#e3e4bf}.help-steps p{margin:4px 0 10px;font-size:12px}.shortcuts{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:#b7cbb6}.shortcuts kbd{margin-right:4px}.dialog-actions{display:flex;justify-content:center;gap:12px;margin-top:25px;flex-wrap:wrap}.result{text-align:center;padding:15px 0}.result h2{margin-right:0}.result-symbol{font-size:53px;letter-spacing:10px;color:#edcf7e;margin-bottom:19px}.result-symbol .icon{width:70px;height:70px}.result-stats{display:flex;justify-content:center;gap:45px;margin:25px 0;font-size:9px;letter-spacing:.8px;color:#b5c5a6}.result-stats b{font:600 37px var(--title);display:block;margin-bottom:7px}.result .section-kicker{color:#c5d59f}@keyframes spin{to{transform:rotate(360deg)}}@keyframes appear{0%{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@media(max-width:1180px){main{padding:20px 24px 0}.topbar{padding:0 24px}.game-layout{grid-template-columns:minmax(0,1fr) 245px}.workshop{padding:18px 14px}.workshop h2{font-size:21px}.tower-item>img{width:63px;height:74px}.tower-item b{font-size:15px}.hero-choice{min-width:140px;padding-right:7px;gap:5px}.hero-choice img{width:34px;height:43px}.hero-choice small{font-size:7px}.hero-health{display:none}.ability-button{min-width:195px}.ability-side{gap:8px}.map-top{gap:16px;padding:0 14px}.resource small{display:none}.hero-dock{gap:10px}.battle-footer>span{font-size:10px;max-width:45%}}@media(min-width:761px)and (max-height:820px){.topbar{height:62px}main{padding-top:16px}.mission-heading{margin-bottom:14px}.mission-heading h1{font-size:26px}.workshop{padding:14px}.workshop h2{font-size:21px;margin:5px 0}.workshop>p{font-size:10px;margin-bottom:10px}.workshop .slot-label{display:none}.tower-item{padding:2px 6px;margin-top:8px}.tower-item>img{height:66px;width:57px}.tower-item b{font-size:14px;margin:3px 0}.tower-item small{font-size:6px}.affordability{font-size:8px;margin-top:3px}.build-tip p{font-size:9px}.next-wave{display:none}.hero-dock{padding:12px 0}.hero-choice{min-height:45px}.hero-choice img{height:36px}#map-stage{height:clamp(310px,calc(100svh - 309px),800px)}.upgrade-art img{height:95px;width:90px}.tower-stats{margin:10px 0}.tower-stats b{font-size:14px}.level-dots{margin:6px 0}.upgrade-art span{font-size:7px}.build-tip{margin:8px 0}#upgrade{margin-top:8px;padding:8px;min-height:36px}.dock-label{margin-bottom:6px}.ability-button{min-height:47px;padding:9px 12px}}@media(max-width:930px){.topbar nav{gap:15px}.nav-button{font-size:11px}.brand{font-size:21px}.hero-dock{flex-wrap:wrap}.heroes-side,.hero-choices{width:100%}.hero-choice{flex:1}.ability-side{width:100%;justify-content:flex-end;padding-top:3px}.hero-health{display:block;margin-right:auto}.mission-actions{gap:8px}#fullscreen span{display:none}.map-top{gap:10px}.map-control{min-width:31px}.resource b{font-size:18px}.battle-footer>.primary-button{font-size:11px;padding:10px}.game-layout{grid-template-columns:minmax(0,1fr) 230px}}@media(max-width:760px){.topbar{height:69px;padding:0 16px;gap:12px}.topbar nav{gap:9px}.nav-button span{display:none}.nav-button{padding:0 4px}.top-actions{gap:4px}.icon-button{width:34px;height:34px}.brand{font-size:19px;gap:8px}.brand-mark{width:33px;height:39px}.brand small{font-size:6px;letter-spacing:1.4px}main{padding:20px 14px 0}.mission-heading h1{font-size:27px}.eyebrow{font-size:8px;letter-spacing:1px}.mission-heading{margin-bottom:17px}.mission-actions .text-button{font-size:10px}#fullscreen{display:none}.game-layout{grid-template-columns:1fr;border-radius:11px}#map-stage{height:auto;aspect-ratio:4/3}.map-top{height:49px;gap:19px;padding:0 12px}.resource small{display:inline;font-size:6px}.map-control{height:35px;min-width:35px}.workshop{border-left:0;border-top:1px solid var(--line);padding:17px;display:block}.workshop h2{font-size:22px;margin:0 0 5px}.workshop .section-kicker{display:none}.workshop>p{font-size:11px;margin-bottom:12px}.slot-label{display:none}#slot-select{font-size:12px}#tower-list{display:flex;gap:9px}.tower-item{flex:1;min-width:0;flex-direction:column;padding:8px 4px 10px;text-align:center;gap:4px}.tower-item>img{height:86px;width:80px}.tower-item strong{justify-content:center}.tower-item b{font-size:14px}.tower-item small{font-size:6px}.tower-item .affordability{font-size:8px}.build-tip{margin:12px 0 0}.next-wave{display:none}.hero-dock{padding:17px 0}.hero-choice{min-width:0}.hero-choice b{font-size:15px}.hero-choice small{font-size:8px}.hero-choice img{width:44px;height:53px}.ability-side{gap:13px}.ability-button{min-width:230px}.hero-health{width:120px}.battle-footer>span{font-size:10px;max-width:48%;line-height:1.5}.battle-footer>.primary-button{font-size:11px;min-height:42px}.battle-footer{padding:10px}.upgrade-art{float:left;width:100px;margin-right:20px}.upgrade-art img{width:100px;height:120px}.level-dots{justify-content:flex-start;padding-top:5px}.tower-stats{max-width:290px}.workshop:after{content:"";display:block;clear:both}#targeting{width:calc(100% - 120px)}#upgrade{width:calc(100% - 120px);margin-top:10px}#upgrade-panel .affordability{margin-left:120px}#sell{width:auto;min-height:40px;display:block;margin-left:120px}.modal{padding:16px}.modal-panel{padding:30px 25px}.modal-panel h2{font-size:28px}.hero-health span{font-size:9px}.dock-label{font-size:8px}}@media(max-width:470px){.topbar{gap:7px;padding:0 12px}.brand{font-size:17px}.brand small{font-size:5px;letter-spacing:1.1px}.brand-mark{width:29px;height:35px}.brand-mark .icon{width:20px}.topbar nav{gap:3px}.nav-button .icon{width:18px}.top-actions{gap:3px}.icon-button{width:31px;height:34px}.top-actions #sound{display:none}.mission-heading h1{font-size:24px}.mission-heading .text-button{font-size:0;gap:0}.mission-actions .icon{width:20px}.map-top{gap:10px;padding:0 9px;height:47px}.resource{gap:4px}.resource b{font-size:16px}.resource small{display:none}.resource>.icon{width:16px}.map-controls{gap:3px}.map-control{min-width:30px;height:33px;font-size:12px}.map-control .icon{width:15px}main{padding:19px 10px 0}.workshop{padding:14px 12px}.tower-item>img{height:74px;width:68px}.tower-item b{font-size:12px}.tower-item small{font-size:5px}.tower-item .affordability{font-size:7px}.tower-item{padding:7px 3px 9px}.tower-item strong{font-size:11px}.hero-choices{gap:5px}.hero-choice{padding:4px;gap:4px}.hero-choice b{font-size:12px}.hero-choice img{width:30px;height:43px}.hero-choice small{font-size:7px}.hero-health{width:80px}.hero-health span{font-size:7px}.ability-side{gap:7px}.ability-button{min-width:0;flex:1;padding:10px;gap:7px}.ability-button b{font-size:12px}.ability-button small{font-size:6px;letter-spacing:0}.ability-button kbd{display:none}.ability-button>.icon{width:19px}.move-button{font-size:10px;gap:4px}.move-button .icon{width:16px}.battle-footer>.primary-button{font-size:10px;padding:9px;white-space:nowrap}.battle-footer>span{font-size:9px}.toast{font-size:10px;top:10px;padding:10px;max-width:92%}.loading b,.paused-label b{font-size:21px}.paused-label .primary-button{font-size:12px}.dock-label span{font-size:7px;letter-spacing:0}footer{font-size:8px;gap:10px}footer>span{max-width:68%;line-height:1.6}footer .text-button{font-size:9px}.modal{padding:10px}.modal-panel{padding:28px 18px;max-height:94svh}.modal-panel h2{font-size:25px;margin-right:22px}.modal-panel p{font-size:12px}.modal-close{top:8px;right:8px}.section-kicker{font-size:7px}.sector-grid{grid-template-columns:1fr 1fr;gap:10px}.sector-card img{height:80px}.sector-card b{font-size:13px;padding:10px 10px 6px}.sector-card small{font-size:8px;padding:0 10px}.sector-card{padding-bottom:12px}.hero-stories img{width:84px;height:132px}.hero-stories article{gap:14px}.hero-stories h3{font-size:23px}.hero-stories p{font-size:11px}.hero-stories small{font-size:8px}.evolution-row{gap:5px}.evolution-row img{height:92px}.evolution-row figcaption{font-size:8px}.enemy-list{grid-template-columns:1fr;gap:15px}.enemy-list img{height:86px;width:64px}.story-portraits{height:122px;gap:5px}.story-portraits img{width:91px;height:122px}.shortcuts{gap:12px;font-size:10px}.result-stats{gap:25px;font-size:8px}.result-stats b{font-size:32px}.help-steps p{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}#map-stage{height:auto;aspect-ratio:4/3;min-height:0}.map-control{min-width:44px;height:44px}@media(max-width:760px){body{padding-bottom:82px}.ability-side{position:fixed;bottom:0;left:0;width:100%;z-index:20;background:#203539;padding:10px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #ffffff30;box-shadow:0 -5px 20px #08151a55}.modal{z-index:100}.nav-button{min-width:32px}.map-top{gap:8px}}@media(max-width:360px){.map-top{gap:6px;padding:0 6px}.map-control{min-width:40px}.resource b,.brand{font-size:14px}.brand-mark{display:none}.topbar{gap:4px}.ability-side{gap:5px}}.start-menu{position:fixed;inset:0;z-index:80;min-height:100svh;overflow:hidden;background:#0d2023;color:#f8efcf;isolation:isolate}.menu-scene{position:absolute;inset:0;background-image:url(/assets/maps/map-1.webp);background-size:cover;background-position:center;transform:scale(1.035);animation:menu-drift 14s ease-in-out infinite alternate}.menu-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#07171be8,#0b1e22bd 34%,#12252658 63%,#071519d1)}.menu-vignette{position:absolute;inset:0;background:radial-gradient(circle at 68% 43%,transparent 0 27%,#07141622 50%,#061216b8 100%),linear-gradient(180deg,#07171a8c 0%,transparent 25%,#061518d6 100%)}.menu-shell{position:relative;z-index:2;width:min(460px,calc(100% - 48px));min-height:calc(100svh - 64px);margin-left:clamp(24px,8vw,132px);display:flex;flex-direction:column;justify-content:center;padding:40px 0 78px}.menu-brand{text-align:center;margin-bottom:22px;text-shadow:0 4px 22px #000}.menu-castle{display:grid;place-items:center;margin:auto;width:58px;height:58px;border:1px solid #e5d18b77;border-radius:50%;background:#142a27c9;color:#f0d582;box-shadow:0 0 45px #d3bf5840}.menu-castle .icon{width:32px;height:32px}.menu-brand p{margin:16px 0 5px;font-size:9px;letter-spacing:4px;color:#d9c982}.menu-brand h1{font:600 clamp(45px,5vw,70px)/.9 var(--title);letter-spacing:-3px;margin:0;color:#f3ead1}.menu-brand h1 span{display:block;color:#a8d36e;font-size:1.12em;text-shadow:0 4px 0 #345b32,0 9px 18px #0008}.menu-rule{display:flex;align-items:center;gap:11px;width:72%;margin:15px auto 0;color:#e8ce78}.menu-rule i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#d8c172)}.menu-rule i:last-child{transform:scaleX(-1)}.menu-rule b{font-size:11px}.menu-actions{display:grid;gap:9px;width:min(390px,100%);margin:auto}.menu-actions button{width:100%;min-height:60px;border-radius:8px;padding:9px 14px;display:flex;align-items:center;gap:13px;text-align:left;box-shadow:0 8px 25px #0003}.menu-actions button>.icon{width:22px;height:22px}.menu-actions button span{display:block}.menu-actions button b{display:block;font:600 17px var(--title);letter-spacing:.1px}.menu-actions button small{display:block;margin-top:4px;color:#9eb2a8;font-size:9px;letter-spacing:.25px}.menu-primary{border:1px solid #f1d483;background:linear-gradient(180deg,#e8cb78,#c99e45);color:#24342d}.menu-primary small{color:#435447!important}.menu-primary:hover:not(:disabled){background:linear-gradient(180deg,#f4dc99,#d8ac54);transform:translate(4px)}.menu-button{border:1px solid #b5c09b42;background:#132b2dd9;color:#eae5c9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.menu-button:hover{background:#29423edb;border-color:#d9c77f99;transform:translate(4px)}.menu-profile{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;width:min(390px,100%);margin:18px auto 0;padding-top:15px;border-top:1px solid #d7c47838;color:#d9dfc4}.profile-seal{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#345047;border:1px solid #d8c77955;color:#e5cc77}.profile-seal .icon{width:17px}.menu-profile small{display:block;font-size:7px;letter-spacing:1.4px;color:#8da69b}.menu-profile b{display:block;font-size:11px;margin-top:3px}.profile-meta{text-align:right;font-size:8px;line-height:1.6;color:#8da69b}.menu-footer{position:absolute;z-index:2;left:28px;right:28px;bottom:20px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:.8px;color:#81968c}.menu-hero{position:absolute;z-index:1;object-fit:contain;filter:drop-shadow(0 20px 14px #061214aa);pointer-events:none;animation:hero-breathe 3.8s ease-in-out infinite}.menu-hero.hero-0{width:min(30vw,390px);height:min(47vw,620px);right:20%;bottom:-7%;animation-delay:-1.3s}.menu-hero.hero-1{width:min(24vw,310px);height:min(37vw,500px);right:4%;bottom:1%;animation-delay:-2.4s}.menu-hero.hero-2{width:min(22vw,285px);height:min(34vw,460px);right:37%;bottom:-1%}.menu-mist{position:absolute;z-index:1;border-radius:50%;filter:blur(25px);background:#a8d3b51f;animation:mist 9s ease-in-out infinite alternate}.mist-one{width:42vw;height:17vw;right:-5%;bottom:8%}.mist-two{width:28vw;height:12vw;right:25%;bottom:28%;animation-delay:-4s}.menu-open{overflow:hidden}.menu-open>.start-menu{display:block}@keyframes menu-drift{to{transform:scale(1.065) translate3d(-.5%,.3%,0)}}@keyframes hero-breathe{50%{transform:translateY(-7px)}}@keyframes mist{to{transform:translate3d(-5%,8%,0);opacity:.5}}@media(max-width:760px){.start-menu{overflow:auto}.menu-scene{background-position:62% center}.menu-shell{width:calc(100% - 32px);min-height:100svh;margin:0 auto;padding:28px 0 92px;justify-content:flex-start}.menu-brand{margin:0 0 16px}.menu-castle{width:48px;height:48px}.menu-castle .icon{width:26px}.menu-brand p{font-size:7px;letter-spacing:3px;margin-top:11px}.menu-brand h1{font-size:43px;letter-spacing:-2px}.menu-actions{margin-top:auto}.menu-actions button{min-height:56px;background:#10272bed}.menu-primary{background:linear-gradient(180deg,#ecd083,#c99e45)!important}.menu-profile{margin-top:14px}.menu-hero{opacity:.34}.menu-hero.hero-0{width:56vw;height:75vw;right:19%;bottom:10%}.menu-hero.hero-1{width:45vw;height:62vw;right:-11%;bottom:12%}.menu-hero.hero-2{width:42vw;height:58vw;right:62%;bottom:11%}.menu-footer{left:16px;right:16px;bottom:12px}.menu-footer span:last-child{display:none}}@media(max-width:390px){.menu-shell{padding-top:20px}.menu-brand h1{font-size:37px}.menu-brand p{margin-top:8px}.menu-rule{margin-top:11px}.menu-actions{gap:7px}.menu-actions button{min-height:52px;padding:7px 12px}.menu-actions button b{font-size:15px}.menu-profile{grid-template-columns:auto 1fr}.profile-meta{display:none}}@media(prefers-reduced-motion:reduce){.menu-scene,.menu-hero,.menu-mist{animation:none!important}}body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}button,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.modal-panel{overscroll-behavior:contain}@media(pointer:coarse),(min-width:600px)and (max-width:1366px){.icon-button,.map-control,.nav-button,.text-button,.move-button,.sell-button{min-width:48px;min-height:48px}select{min-height:48px;font-size:16px}.primary-button,.secondary-button{min-height:48px;font-size:14px}.hero-choice{min-height:58px}.hero-choice small{font-size:10px}.ability-button{min-height:58px}.ability-button small{font-size:10px;letter-spacing:0}.ability-button kbd,.shortcuts{display:none}.map-top{height:60px}.map-controls{gap:6px}.tower-item .affordability{font-size:11px}.tower-item small{font-size:9px}.modal-close{position:sticky;top:0;float:right;margin:-15px -10px 0 8px;background:#233b3e}.modal-panel{max-height:calc(100dvh - 32px);padding:28px}.start-menu{min-height:100dvh;overflow-y:auto}.menu-shell{min-height:100dvh;padding-bottom:70px}.menu-actions button{min-height:64px}.menu-actions button small{font-size:11px}.menu-footer{bottom:max(12px,env(safe-area-inset-bottom))}}@media(min-width:600px)and (max-width:1366px){.topbar{height:64px;padding:0 18px;gap:12px}.topbar nav{gap:8px}.nav-button{padding:0 9px}.brand small{display:none}main{padding:12px 18px 0}.mission-heading{margin-bottom:12px}.mission-heading h1{font-size:26px}.mission-actions{gap:8px}#fullscreen{display:inline-flex;font-size:24px}#fullscreen span{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 240px}.workshop{padding:14px}.workshop h2{font-size:21px}.workshop>p{font-size:12px}.tower-item{padding:5px;margin-top:8px}.tower-item>img{width:57px;height:66px}.tower-item b{font-size:15px}.build-tip,.next-wave{display:none}.hero-dock{flex-wrap:nowrap;align-items:center;gap:12px;padding:12px 0}.heroes-side{width:auto;flex:1;min-width:0}.hero-choice{min-width:0;flex:1}.hero-choice img{width:35px;height:42px}.hero-choice b{font-size:14px}.hero-choice small,.dock-label span{display:none}.ability-side{width:auto;padding:0;gap:8px}.ability-button{min-width:180px}.hero-health{display:none}.dock-label{margin-bottom:6px}.battle-footer{min-height:64px}.battle-footer>span{font-size:12px;line-height:1.4}.resource b{font-size:20px}footer{padding-bottom:env(safe-area-inset-bottom)}}@media(min-width:600px)and (max-width:1024px)and (orientation:portrait){body{padding-bottom:90px}.topbar nav span{display:none}.game-layout{grid-template-columns:1fr}.workshop{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;padding:16px}.workshop .section-kicker,.workshop .slot-label{display:none}.workshop h2{margin:0}.workshop>p{grid-column:1;margin:0}#slot-select{grid-column:2;grid-row:1 / 3;align-self:center}#tower-list,#upgrade-panel{grid-column:1 / -1}#tower-list{display:flex;gap:12px}.tower-item{flex:1;min-width:0;margin:0;padding:8px}.tower-item>img{width:62px;height:78px}.tower-item b{font-size:16px}#cancel-selection{grid-column:1 / -1;justify-self:end}.upgrade-art{float:left;width:120px;margin:0 20px 0 0}.upgrade-art img{height:125px;width:110px}.tower-stats{max-width:350px}.level-dots{justify-content:flex-start}#targeting,#upgrade{width:calc(100% - 140px)}#sell{width:calc(100% - 140px);margin-left:140px}.hero-dock{padding:14px 0}.hero-choice small{display:block}.ability-side{position:fixed;bottom:0;left:0;right:0;width:100%;z-index:20;padding:10px max(18px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));background:#203539;border-top:1px solid #ffffff30;box-shadow:0 -5px 20px #08151a55}.hero-health{display:block;width:150px;margin-right:auto}.hero-health span{font-size:12px}.ability-button{min-width:240px}.move-button{font-size:14px}.menu-shell{margin-left:6vw;width:48vw}.menu-brand h1{font-size:58px}}@media(max-width:599px)and (pointer:coarse){.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:8px 12px;gap:4px}.topbar nav{margin-left:auto}.top-actions{margin-left:auto}.map-top{height:auto;min-height:60px;flex-wrap:wrap;padding:8px;gap:8px}.map-controls{margin-left:auto}.map-control{min-width:44px;min-height:44px}.tower-item small{font-size:8px}.tower-item .affordability{font-size:10px}.ability-button small{font-size:9px}.ability-button{min-width:0}}@media(min-width:600px)and (max-width:1366px)and (orientation:landscape){#map-stage{height:clamp(280px,calc(100dvh - 330px),700px);aspect-ratio:auto}.workshop{max-height:calc(100dvh - 200px);overflow-y:auto;overscroll-behavior:contain}.upgrade-art img{height:85px;width:85px}.tower-stats{margin:8px 0}.upgrade-art{margin-top:6px}.level-dots{margin:6px 0}.hero-dock{position:sticky;bottom:0;z-index:20;background:#14242a;padding-bottom:max(12px,env(safe-area-inset-bottom))}}body:not(.menu-open){height:100dvh;overflow:hidden;padding:0}body:not(.menu-open) main{padding:0;max-width:none;margin:0}body:not(.menu-open) .topbar{position:fixed;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:25;height:48px;padding:0;border:0;background:#15282de8;border-radius:12px;gap:4px}.topbar .brand,.topbar nav,.topbar #sound{display:none}.topbar .top-actions{gap:2px;padding:2px}.topbar .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border:0}.mission-heading{position:fixed;top:18px;left:50%;transform:translate(-50%);z-index:12;margin:0;text-align:center;pointer-events:none;text-shadow:0 2px 5px #000,0 0 12px #000}.mission-heading h1{font-size:19px;margin-top:3px}.mission-heading .eyebrow{font-size:8px}.mission-actions{position:fixed;right:0;top:55px;pointer-events:auto}.mission-actions #map-button,.mission-actions #fullscreen{display:none}.game-layout{display:block;border:0;border-radius:0;box-shadow:none;background:none}.battlefield{display:block;background:none}#map-stage{position:fixed;inset:0;width:100%;height:100dvh!important;aspect-ratio:auto!important;background:#162b2c;isolation:isolate}#map-stage:before{content:"";position:absolute;inset:-25px;background-image:var(--battle-map);background-position:center;background-size:cover;filter:blur(18px) brightness(.48);z-index:-1}.map-top{position:fixed;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));height:48px;min-height:48px;z-index:24;border:1px solid #e2ce8840;border-radius:12px;background:#15282de8;padding:0 12px;gap:12px;box-shadow:0 4px 18px #0004;flex-wrap:nowrap}.resource b{font-size:18px}.resource small{display:none}.resource>.icon{width:18px}.resource{gap:5px}.score{color:#c6d4ab}.score b{font-size:14px}.map-controls{position:fixed;right:max(12px,env(safe-area-inset-right));top:70px;padding:4px;background:#15282de8;border-radius:10px;gap:4px}.map-control{width:42px;min-width:42px;height:44px;min-height:44px}.battle-footer{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right));z-index:24;min-height:0;padding:0;background:none;border:0;display:block}.battle-footer>span{position:fixed;bottom:90px;left:50%;transform:translate(-50%);font-size:12px!important;max-width:70%;text-align:center;padding:6px 14px;background:#10292bd9;border-radius:20px;pointer-events:none}#start-wave{min-height:54px;max-width:220px;padding:12px 18px;font-size:13px;border-radius:12px;box-shadow:0 4px 24px #0007}.workshop{display:none!important;position:fixed;z-index:26;right:16px;top:130px;width:250px;max-height:calc(100dvh - 230px)!important;overflow:auto;padding:14px!important;border:1px solid #e7d08e66;border-radius:14px;background:#193438f5;box-shadow:0 15px 45px #0008;overscroll-behavior:contain}.shop-open .workshop{display:block!important}.workshop .section-kicker,.workshop .slot-label,.workshop .build-tip,.workshop .next-wave{display:none}.workshop h2{font-size:20px;margin:0 0 5px}.workshop>p{font-size:11px;margin-bottom:8px}#slot-select{font-size:13px;min-height:42px}#tower-list{display:block}.tower-item{display:flex;flex-direction:row;text-align:left;width:100%;margin-top:7px;padding:5px;gap:8px}.tower-item>img{width:53px;height:65px}.tower-item b{font-size:15px}.tower-item small{font-size:8px}.tower-item strong{justify-content:flex-start}.tower-item .affordability{font-size:10px}.upgrade-art{float:none;width:auto;margin:8px 0 0}.upgrade-art img{width:85px;height:90px}.level-dots{justify-content:center}.tower-stats{margin:8px 0}.tower-stats b{font-size:17px}#targeting,#upgrade,#sell{width:100%;margin-left:0;font-size:12px;min-height:44px}#upgrade-panel .affordability{margin-left:0}#cancel-selection{width:100%;font-size:12px;min-height:44px}.hero-dock{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:23;border:0;padding:0!important;display:flex;flex-wrap:nowrap;gap:12px;background:none}.dock-label,.hero-choice small,.hero-health{display:none!important}.heroes-side{width:auto;flex:none}.hero-choices{gap:5px}.hero-choice{min-width:0;width:58px;min-height:62px;padding:3px;display:flex;flex-direction:column;gap:0;border-radius:10px;background:#15282deb}.hero-choice img{width:37px;height:38px}.hero-choice b{font-size:10px}.ability-side{position:static;width:auto;padding:0;border:0;box-shadow:none;background:none;gap:6px}.move-button{background:#15282deb;border-radius:10px;width:48px;min-width:48px;height:54px;font-size:0;justify-content:center}.move-button .icon{width:22px}.ability-button{min-width:0;width:150px;min-height:54px;padding:8px;gap:6px;background:#41482eef;border-radius:10px}.ability-button b{font-size:12px}.ability-button small{font-size:8px;letter-spacing:0}.ability-button kbd{display:none}main>footer{display:none}.toast{top:140px}.modal{z-index:100}.modal-panel{max-height:calc(100dvh - 36px)}@media(max-width:1000px){.mission-heading{top:72px;left:16px;transform:none;text-align:left;max-width:60%}.mission-heading h1{font-size:17px}.mission-heading .eyebrow{display:none}.hero-dock{gap:6px}.ability-button{width:130px}.resource b{font-size:16px}}@media(orientation:portrait){#map-stage canvas{background:transparent}.workshop{top:auto;bottom:156px;right:12px;width:245px;max-height:50dvh!important}.battle-footer{bottom:90px}.battle-footer>span{bottom:152px;max-width:90%;width:max-content;font-size:10px!important}.hero-dock{right:16px;justify-content:space-between}.ability-button{width:160px}.map-top{gap:8px}.score{display:none}}@media(max-width:599px){.map-top{max-width:calc(100% - 165px);gap:8px;padding:0 7px}.resource b{font-size:13px}.resource>.icon{width:14px}.map-top .resource:nth-child(4)>.icon{display:none}.hero-choice{width:45px}.hero-choice b{font-size:9px}.hero-choices{gap:3px}.ability-button{width:125px}.ability-button>.icon{display:none}.move-button{width:44px;min-width:44px}.hero-dock{left:8px;right:8px}.mission-heading h1{font-size:15px}.battle-footer>span{display:none}}.menu-extras{display:flex;justify-content:center;gap:16px;margin:6px auto 0}.menu-extras .text-button{font-size:11px;min-height:40px}.menu-shell{padding-bottom:50px}.menu-actions{flex-shrink:0}@media(max-height:740px)and (orientation:landscape){.menu-shell{padding-top:16px}.menu-brand{margin-bottom:10px}.menu-castle{display:none}.menu-brand h1{font-size:46px}.menu-actions button{min-height:50px}.menu-profile{margin-top:6px;padding-top:8px}.menu-brand p{margin-top:0}.menu-rule{margin-top:9px}}
