@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900;1000&display=swap');
:root{font-family:'Nunito',sans-serif;color:#fff;background:#123c74;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:900 14px 'Nunito',sans-serif;color:#fff;background:linear-gradient(#4b95d7,#286db1);border:2px solid #153f77;border-bottom-width:4px;border-radius:9px;cursor:pointer;text-shadow:0 2px #17417460;touch-action:manipulation}button:hover:not(:disabled){filter:brightness(1.12)}button:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}button:disabled{cursor:default;filter:saturate(.4);opacity:.6}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ffdc51;outline-offset:2px}[hidden]{display:none!important}.game-shell{min-height:100dvh;display:flex;flex-direction:column;max-width:1920px;margin:auto;background:radial-gradient(ellipse at 20% 0,#2e85c1,#184d8a 70%)}header{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:4px solid #123762;background:linear-gradient(#328aca,#1b60a4);gap:18px}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:#fff6cc;font-size:36px;font-weight:1000;line-height:.9;letter-spacing:-1.4px;text-shadow:0 3px #17486d,2px 0 #17486d,-2px 0 #17486d}.brand>span{font-size:39px;transform:rotate(-12deg)}.brand b{color:#ffb338}.brand small{font-size:10px;letter-spacing:1.3px;display:block;margin-top:8px;color:#bddef6;text-shadow:none}.draft-badge{font-size:13px;font-weight:1000;color:#ffe671;letter-spacing:1px}.draft-badge span{display:block;font-size:10px;letter-spacing:1.5px;color:#b1d9ed;margin-top:3px}nav{display:flex;gap:7px}nav button{width:38px;height:38px;font-size:22px;border-radius:11px}main{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:13px;padding:13px 17px 0;flex:1;min-height:0}.play-area{display:flex;flex-direction:column;min-width:0}.hud{display:flex;align-items:center;gap:23px;padding:0 9px 12px;height:58px}.map-name{font-size:17px;font-weight:1000;margin-right:auto;text-shadow:0 2px #153867}.map-name small{font-size:10px;display:block;color:#b3d9ed;letter-spacing:1.5px;margin-top:2px}.counter{display:flex;align-items:center;gap:7px;white-space:nowrap}.counter b{font-size:26px;text-shadow:0 3px #123762}.counter>span{font-size:25px;color:#eaf6ff}.counter .heart{color:#ff7c8e}.counter .coin{border-radius:50%;width:27px;height:27px;background:#ffdc58;border:2px solid #d79525;color:#9d6e1f;font-size:21px;line-height:23px;text-align:center}.counter small{font-size:16px;color:#aed3ef}.map-frame{display:grid;place-items:center;background:#174b81;border:4px solid #103461;border-radius:17px;overflow:hidden;flex:1;min-height:0;box-shadow:0 3px #3979ac,inset 0 0 40px #092d5555}.map-wrap{position:relative;width:100%;max-width:calc((100dvh - 272px)*1.53846);aspect-ratio:1000/650;background:#66bd45;overflow:hidden}#game{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}#tip{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);border:2px solid #31593a;border-bottom-width:4px;border-radius:24px;background:#fff0b9;color:#4c672f;font-size:13px;font-weight:900;padding:9px 16px;white-space:nowrap;pointer-events:none}#toast{position:absolute;top:30%;left:50%;transform:translate(-50%,-10px);background:#174978ed;padding:12px 20px;border:2px solid #b1e4f4;border-radius:13px;font-weight:900;opacity:0;pointer-events:none;transition:.2s;text-align:center;width:max-content;max-width:90%;font-size:14px}#toast.visible{opacity:1;transform:translate(-50%,0)}#boss-hud{position:absolute;top:13px;left:50%;transform:translateX(-50%);width:65%;max-width:460px;padding:9px 15px;background:#163c66ed;border:2px solid #f0bd51;border-radius:12px;text-align:center;pointer-events:none}#boss-name{font-size:14px;font-weight:1000;letter-spacing:.5px}#boss-hud>div{background:#142842;border-radius:8px;height:10px;margin:5px 0;overflow:hidden}#boss-health{display:block;height:100%;background:linear-gradient(#fff184,#f5a832);width:100%;border-radius:8px}#boss-hp{font-size:10px;color:#d1e4ee}#pause-label,#end-screen{position:absolute;inset:0;background:#15385999;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:30px;font-weight:1000;text-align:center;backdrop-filter:blur(3px)}#pause-label small{font-size:14px;margin-top:8px}#end-screen>div{border:4px solid #e5b748;border-radius:20px;background:#2868a4;padding:25px;max-width:85%}#end-screen span{font-size:50px}#end-screen h1{font-size:27px}#end-screen p{font-size:14px;max-width:340px}.wave-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0}.wave-controls>div>b{font-size:14px}.wave-controls small{display:block;color:#b4d6eb;font-size:11px;margin-top:2px}.play-buttons{display:flex;gap:6px;align-items:center}.play-buttons button{height:43px;min-width:42px;padding:5px 11px}.green{background:linear-gradient(#a9e658,#67b532);border-color:#2f7024;color:#fffbe4;text-shadow:0 2px #4b8e2d;min-height:43px;padding:9px 18px}.play-buttons .green{min-width:150px}.play-buttons #auto{font-size:10px;line-height:1.1;min-width:48px}#auto span{display:block;font-size:11px;color:#b8daf0}#auto[aria-pressed=true]{background:linear-gradient(#f7d35a,#cf912b);border-color:#815624}#auto[aria-pressed=true] span{color:#fff}.power-bar{display:flex;align-items:center;gap:8px;padding:0 0 9px}.power-bar>b{font-size:10px;color:#a4cae5;writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:1px}.power-bar button{display:flex;align-items:center;gap:7px;text-align:left;background:linear-gradient(#3f7fb9,#245b94);padding:7px 10px;border-radius:10px;min-width:125px;font-size:12px}.power-bar button>span{font-size:22px}.power-bar button small{display:block;color:#c6e4f5;font-size:10px;font-weight:700}.pop-total{margin-left:auto;color:#abcee6;font-size:12px}.pop-total b{display:block;color:#fff;font-size:17px;text-align:right}aside{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 115px);background:linear-gradient(90deg,#2769a9,#2b78b6);border:4px solid #133b6c;border-radius:14px;box-shadow:inset 0 2px #85bce655;overflow:hidden}.shop-title{padding:13px 14px 8px}.shop-title h2{font-size:19px;letter-spacing:-.5px;margin:0;text-shadow:0 2px #133c70}.shop-title h2 span{color:#ffe26c}.shop-title small{font-size:11px;color:#c3e2f5}#categories{display:flex;flex-wrap:wrap;gap:5px;padding:3px 10px 10px}#categories button{padding:5px 8px;font-size:11px;border-radius:6px;border-width:1px 1px 3px;flex:1;white-space:nowrap}#categories button[aria-pressed=true]{background:linear-gradient(#ffd666,#e9a83b);border-color:#a26a23;color:#674915;text-shadow:none}#tower-shop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow-y:auto;min-height:100px;max-height:600px;flex:1;align-content:start;padding:3px 8px 10px;scrollbar-width:thin;scrollbar-color:#81b9df #245f9c}.tower-card{position:relative;min-height:125px;padding:4px 2px 6px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(#dbeeff,#87b9df);border-color:#184b80;color:#173f69;text-shadow:none;border-radius:10px}.tower-card canvas{width:82px;height:78px;display:block;pointer-events:none}.tower-card strong{font-size:11px;line-height:1.1;min-height:24px;display:flex;align-items:center;justify-content:center;text-align:center}.tower-card .price{font-size:13px;color:#245a2b;font-weight:1000}.tower-card .new-tag{position:absolute;left:5px;top:4px;font-size:8px;font-weight:1000;color:#995219;z-index:1}.tower-card .water-tag{position:absolute;right:4px;top:4px;font-size:10px}.tower-card.selected{background:linear-gradient(#ffe89c,#f9cb4b);border-color:#b88624;box-shadow:inset 0 0 0 2px #fff1ac}.tower-card.unaffordable{filter:saturate(.55);background:linear-gradient(#abc2d5,#82a5c1)}.tower-card.unaffordable .price{color:#934e46}#tower-detail{flex-shrink:0;padding:12px;background:#194b7f;border-top:3px solid #123763;max-height:46vh;overflow-y:auto;scrollbar-width:thin}.empty-detail{text-align:center;color:#f8d971;font-size:25px}.empty-detail b{display:block;color:#f1f7fc;font-size:14px}.empty-detail p{font-size:12px;color:#a6cbe5;margin:7px 0 2px}.detail-head{display:flex;gap:10px;align-items:center}.detail-head canvas{width:61px;height:61px}.detail-head h3{font-size:18px;line-height:1.1;margin:0}.detail-head small{font-size:11px;color:#add2ed;display:block;margin-top:5px}.detail-desc{font-size:12px;color:#bbd8ed;line-height:1.5;margin:7px 0}.detail-meta{display:flex;gap:8px;font-size:11px;color:#bad6ea;justify-content:space-between;margin:9px 0}.upgrade-path{display:flex;gap:8px;align-items:center;margin-top:7px;padding:5px;border:1px solid #4c80ab;border-radius:9px;background:#123f6b}.path-progress{width:53px;flex-shrink:0;padding:2px}.path-progress small{display:block;font-size:10px;color:#cae3f5;margin-bottom:3px}.pips{display:flex;gap:2px}.pips i{height:7px;width:8px;border-radius:2px;background:#456585}.pips i.filled{background:#a1e85c}.upgrade-path button{flex:1;text-align:left;font-size:12px;line-height:1.2;padding:6px 9px;min-height:40px;background:linear-gradient(#6eaf51,#428536);border-color:#2c5e29}.upgrade-path button span{display:block;color:#fff0a0;font-size:11px;margin-top:3px}.detail-bottom{display:flex;gap:7px;margin-top:9px}.detail-bottom button,.detail-bottom select{min-height:35px;flex:1;font:800 12px 'Nunito';border-radius:7px}.detail-bottom select{background:#e1eff7;color:#194c79;padding:5px 10px;border:2px solid #103762;appearance:none}.detail-bottom button{background:linear-gradient(#df8d56,#af6336);border-color:#794021}.place-note{font-size:12px;background:#2a6c9e;padding:10px;border-radius:8px;color:#ffe890;text-align:center}footer{display:flex;justify-content:space-between;gap:8px;color:#83b3d8;font-size:10px;padding:8px 21px}dialog{width:calc(100% - 30px);max-width:620px;max-height:87dvh;overflow:auto;border:4px solid #153b69;border-top:5px solid #77bce7;border-radius:19px;background:linear-gradient(#3786bd,#205c96);color:#fff;padding:27px;box-shadow:0 15px 70px #081e5380}dialog::backdrop{background:#0a294b99;backdrop-filter:blur(4px)}dialog h2{font-size:27px;line-height:1.1;margin:10px 0;color:#fff0b9;text-shadow:0 3px #174777}dialog p,dialog li{font-size:14px;line-height:1.6;color:#d6e9f5}dialog li{margin-bottom:9px}dialog .eyebrow{font-size:12px;color:#a6d5ef;font-weight:1000}.dialog-close{position:absolute;top:9px;right:10px;font-size:23px;width:34px;height:34px;padding:0}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.boss-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid #78afd270}.boss-portrait{height:63px;width:82px;flex-shrink:0;border-radius:50%;background:var(--boss-color);box-shadow:inset 0 8px 0 #ffffff33,0 4px 0 #113966;display:grid;place-items:center;font-size:29px;position:relative}.boss-portrait:after{content:'';position:absolute;left:5px;right:5px;top:14px;bottom:14px;border-left:5px solid #ffffff66;border-right:5px solid #ffffff66;border-radius:40%}.boss-row small{font-size:10px;color:#ffe08b;font-weight:900}.boss-row h3{font-size:18px;margin:3px 0}.boss-row p{font-size:12px;line-height:1.4;margin:0}#boss-dialog>.green{margin-top:16px}
@media(min-height:900px){.map-wrap{max-width:calc((100dvh - 280px)*1.53846)}.tower-card{min-height:143px}.tower-card canvas{width:95px;height:91px}.tower-card strong{font-size:12px}}
@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr) 300px;padding:10px;gap:10px}header{padding:0 16px}.brand{font-size:30px}.draft-badge{font-size:11px}.counter b{font-size:23px}.hud{gap:14px}.map-name{font-size:14px}.tower-card canvas{width:72px;height:72px}.tower-card strong{font-size:10px}.tower-card{min-height:119px}.wave-controls{flex-wrap:wrap}.wave-controls>div:first-child{display:none}.play-buttons{width:100%;justify-content:flex-end}.power-bar button{min-width:0;flex:1;padding:6px;font-size:10px}.power-bar button small{font-size:9px}.power-bar button>span{font-size:19px}.pop-total{display:none}}
@media(max-width:750px){header{height:70px;padding:0 10px;gap:8px}.brand{font-size:27px;gap:4px}.brand>span{font-size:29px}.brand small{font-size:7px;letter-spacing:1px}.draft-badge{display:none}nav{gap:3px}nav button{width:31px;height:33px;font-size:19px}main{display:flex;flex-direction:column;padding:8px;gap:12px}.hud{height:55px;padding:0 4px 9px;gap:13px}.counter{gap:4px}.counter b{font-size:21px}.counter>span{font-size:19px}.counter .coin{width:22px;height:22px;font-size:16px;line-height:18px}.counter small{font-size:13px}.map-name{font-size:12px;line-height:1.2;max-width:100px}.map-name small{font-size:8px;letter-spacing:.4px}.map-frame{flex:initial}.map-wrap{max-width:none}.wave-controls{padding:10px 0}.play-buttons{gap:5px}.play-buttons .green{min-width:130px}.play-buttons button{height:42px;padding:4px 10px}.power-bar{gap:5px;padding-bottom:0}.power-bar button{font-size:10px}.power-bar button small{font-size:9px}.power-bar>b{font-size:8px}aside{max-height:none;min-height:0;border-width:3px}.shop-title{padding-top:12px}.shop-title h2{font-size:20px}#tower-shop{grid-template-columns:repeat(4,minmax(0,1fr));max-height:390px;flex:auto}.tower-card{min-height:125px}.tower-card canvas{width:75px;height:75px}.tower-card strong{font-size:10px}.tower-card .price{font-size:12px}#categories{flex-wrap:nowrap;overflow-x:auto;gap:4px}#categories button{font-size:10px;padding:6px 7px}#tower-detail{max-height:none}.empty-detail{font-size:18px}.empty-detail p{font-size:12px}.detail-head canvas{width:75px;height:75px}.detail-head h3{font-size:22px}.upgrade-path button{font-size:14px}.detail-meta{font-size:12px}.path-progress{width:65px}.path-progress small{font-size:11px}.pips i{width:10px;height:8px}footer{padding:12px 10px;flex-wrap:wrap;font-size:9px}#tip{font-size:10px;padding:7px 10px;bottom:10px}#boss-hud{padding:6px 10px;top:7px;width:75%}#boss-name{font-size:11px}#boss-hud>div{height:7px;margin:3px 0}#boss-hp{font-size:8px}dialog{padding:22px}dialog h2{font-size:24px}.boss-row h3{font-size:16px}.boss-portrait{width:65px;height:53px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.upgrade-count{font-size:9px;color:#416487;font-weight:800;line-height:1.1;margin-top:2px}.path-progress{width:82px}.path-progress small{font-size:10px;line-height:1.2}.pips{margin-top:5px}.tower-card{padding-bottom:8px}.detail-head small{line-height:1.5}.detail-bottom select{background-image:linear-gradient(45deg,transparent 50%,#194c79 50%),linear-gradient(135deg,#194c79 50%,transparent 50%);background-position:calc(100% - 13px) 14px,calc(100% - 8px) 14px;background-size:5px 5px;background-repeat:no-repeat;padding-right:22px}
.upgrade-path button.sixth-upgrade{background:linear-gradient(#c2a0ff,#7751c7);border-color:#48307b;box-shadow:0 0 12px #c8b6ff44}.upgrade-path button.sixth-upgrade span{color:#fff0a3}.pips i:nth-child(6).filled{background:#dbb2ff}
.map-name>button{display:block;background:none;border:0;padding:0;font-size:inherit;font-weight:1000;text-shadow:0 2px #153867}.map-name small button{padding:0;background:none;border:0;font-size:10px;color:#ffe38a;text-shadow:none}.map-name small button:hover{color:#fff5c0}#quests{position:relative}#quest-badge{position:absolute;right:-5px;top:-6px;background:#ffda53;border:2px solid #77541f;color:#654b20;font:1000 10px 'Nunito';border-radius:50%;width:20px;height:20px;display:grid;place-items:center}.adventure-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.adventure-card{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;padding:17px;border-radius:14px;border-width:2px 2px 5px;background:linear-gradient(#6aa359,#346e4e);border-color:#214d43}.adventure-card .adventure-icon{font-size:31px}.adventure-card>b{font-size:22px;color:#fff0ac}.adventure-card>span:not(.adventure-icon){font-size:13px;font-weight:700;line-height:1.5;color:#e5f1f8}.adventure-card small{font-size:12px;line-height:1.7;color:#d4e8f3}.adventure-card em{font-style:normal;font-size:13px;background:#193e5366;border-radius:7px;padding:7px 12px;margin-top:auto}.difficulty-medium{background:linear-gradient(#609acb,#316193);border-color:#204575}.difficulty-hard{background:linear-gradient(#c28b57,#8b4c3d);border-color:#69372d}.difficulty-impoppable{background:linear-gradient(#ae6385,#68416e);border-color:#412748}.map-options{grid-template-columns:repeat(3,minmax(0,1fr))}.map-card{padding:9px;background:linear-gradient(#447fb0,#2b5a90);border-color:#173d6f}.map-card svg{width:100%;border:2px solid #123f67;border-radius:9px;margin-bottom:5px}.map-card>b{font-size:16px}.map-card>span:not(.adventure-icon){font-size:12px}.map-card em{font-size:12px;padding:6px 9px}.quest-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-top:1px solid #78afd266}.quest-row>div{flex:1}.quest-row h3{font-size:17px;margin:0;color:#fff0a8}.quest-row p{font-size:12px;margin:4px 0 7px}.quest-row small{font-size:11px;color:#bad9f0}.quest-row button{min-width:98px;padding:8px 12px;font-size:13px}.quest-progress{height:7px;background:#163e6c;border-radius:8px;overflow:hidden;margin-bottom:5px}.quest-progress i{display:block;height:100%;background:#b5e766;border-radius:8px}.ultimate-box{background:linear-gradient(135deg,#5a4384,#3b417c);padding:11px;border:1px solid #be98e3;border-radius:10px;margin-top:10px}.ultimate-box>small{font-size:9px;letter-spacing:1.5px;color:#dcc7ff;display:block}.ultimate-box>b{font-size:15px;color:#fff0ab;display:block;margin:4px 0 8px}.ultimate-action{width:100%;padding:8px;background:linear-gradient(#bf95ee,#8653bf);border-color:#52377e;font-size:12px}.ultimate-box>span{display:block;text-align:center;font-size:10px;color:#c7b9e3;margin-top:6px}
@media(max-width:750px){nav button{width:27px;height:31px;font-size:18px}nav{gap:2px}.brand{font-size:25px}.brand>span{font-size:27px}.map-name>button{font-size:11px}.map-name small button{font-size:9px}.adventure-card{padding:13px;gap:6px}.adventure-card>b{font-size:19px}.adventure-card>span:not(.adventure-icon){font-size:12px}.adventure-card small{font-size:11px}.map-options{grid-template-columns:1fr}.map-card{display:grid;grid-template-columns:100px 1fr;column-gap:13px;align-items:center}.map-card svg{grid-row:1/4}.map-card em{justify-self:start}.quest-row{gap:10px}.quest-row h3{font-size:15px}.quest-row button{min-width:85px;padding:8px;font-size:12px}.quest-row p{font-size:11px}}
#hero-dock{display:flex;align-items:center;gap:7px;margin:2px 9px 10px;padding:7px 8px 7px 3px;min-height:76px;border:2px solid #d8b35d;border-bottom:4px solid #8d6e38;border-radius:12px;background:linear-gradient(130deg,#40558a,#264474);flex-shrink:0}#hero-dock>canvas{width:62px;height:62px;flex-shrink:0}.hero-dock-info{min-width:0;flex:1}.hero-dock-info small{display:block;font-size:8px;letter-spacing:.7px;color:#f5ce75;font-weight:1000}.hero-dock-info b{display:block;font-size:15px;line-height:1.2;color:#fff4bf;margin:3px 0}.hero-dock-info span{font-size:10px;color:#bdd6ed}.hero-dock-actions{display:flex;flex-direction:column;gap:4px}.hero-dock-actions button{font-size:10px;min-height:25px;padding:4px 8px;border-radius:6px;border-width:1px 1px 3px}.hero-gold{background:linear-gradient(#ffe284,#dda748);border-color:#a4702b;color:#674817;text-shadow:none}.hero-bar{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:7px;padding-bottom:10px}.hero-bar button{padding:7px 10px;min-height:53px;background:linear-gradient(#6965a8,#464779);border-color:#2c3261;text-align:left;font-size:12px}.hero-bar b{display:block;font-size:12px;color:#fff2bb;line-height:1.2}.hero-bar small{display:block;font-size:8px;color:#c5c4e7;letter-spacing:.5px;margin:0 0 3px}.hero-bar button>span:not(.hero-xp-track){display:block;font-size:10px;color:#d7d8ef;margin-top:3px}.hero-status{background:linear-gradient(#526a9d,#344e7d)!important;border-color:#233d6b!important}.hero-status small{font-size:9px;margin-top:3px;letter-spacing:0}.hero-xp-track{display:block;height:6px;overflow:hidden;background:#263858;border-radius:8px;margin-top:5px}.hero-xp-track i{display:block;height:100%;background:linear-gradient(90deg,#8ce5bd,#d4f89b);border-radius:8px}.hero-deployed .map-wrap{max-width:calc((100dvh - 335px)*1.53846)}.hero-deployed #tower-detail{max-height:42vh}.hero-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero-card{display:flex;align-items:center;flex-direction:column;padding:10px 13px;text-align:center;background:linear-gradient(#5d7ead,#354d7b);border-color:#213e69;min-height:0}.hero-card canvas{width:120px;height:120px;margin:0 auto}.hero-card h3{font-size:20px;line-height:1.1;margin:3px 0 5px;color:#fff1b6}.hero-card>small{font-size:10px;letter-spacing:.5px;color:#d4def1}.hero-card>p{font-size:12px;line-height:1.5;color:#ceddf0;margin:8px 0;flex:1}.hero-card-skills{font-size:10px;color:#f4dfa0;line-height:1.7;display:block}.hero-card em{font-size:12px;font-style:normal;background:#223e6555;padding:7px 10px;border-radius:7px;margin-top:9px}.hero-card.hero-chosen{border-color:#e6be62;background:linear-gradient(#7d7c9b,#545776)}.hero-detail-head h3{color:#ffe7a3}.hero-detail-progress>b{font-size:12px;color:#ffe3a0}.hero-detail-progress>small{display:block;font-size:10px;color:#b9d8eb;margin-top:5px}.hero-detail-progress{margin:10px 0}.hero-detail-skills>div{padding:9px 10px;border:1px solid #7281af;background:#2a4775;border-radius:9px;margin-top:8px}.hero-detail-skills small{display:block;color:#e7cb87;font-size:9px;letter-spacing:1px}.hero-detail-skills b{font-size:14px;color:#fff0bd;display:block;margin-top:3px}.hero-detail-skills p{font-size:11px;color:#c5d5eb;line-height:1.5;margin:5px 0 8px}.hero-detail-skills button{width:100%;padding:6px;background:linear-gradient(#aa88db,#7850af);border-color:#523a80;font-size:12px}.hero-rule{font-size:10px;line-height:1.5;color:#9abddc;margin:9px 0 0}
@media(max-width:1100px){#hero-dock{gap:4px;padding-right:6px}#hero-dock>canvas{width:52px;height:52px}.hero-dock-info b{font-size:13px}.hero-dock-info span{font-size:9px}.hero-dock-actions button{font-size:9px;padding:4px 6px}.hero-bar button{padding:6px 8px}.hero-bar b{font-size:11px}.hero-bar button>span:not(.hero-xp-track){font-size:9px}}
@media(max-width:750px){#hero-dock>canvas{width:67px;height:67px}.hero-dock-info b{font-size:17px}.hero-dock-info small{font-size:9px}.hero-dock-info span{font-size:11px}.hero-dock-actions button{font-size:11px;padding:5px 10px}.hero-deployed .map-wrap{max-width:none}.hero-deployed #tower-detail{max-height:none}.hero-bar{gap:5px;padding-bottom:10px}.hero-bar button{padding:7px;min-height:58px}.hero-bar b{font-size:10px}.hero-bar small{font-size:7px}.hero-card{padding:8px}.hero-card canvas{width:100px;height:100px}.hero-card h3{font-size:17px}.hero-card>p{font-size:11px}.hero-card em{font-size:10px;padding:6px}.hero-card-skills{font-size:9px}.hero-options{gap:8px}.hero-rule{font-size:11px}}
.shop-title{position:relative;padding-right:44px}#paragon-book{position:absolute;right:10px;top:11px;width:30px;height:31px;border-radius:9px;color:#ffe5a6;font-size:19px;background:linear-gradient(#9370c1,#594489);border-color:#3b2e66}.paragon-panel{margin-top:11px;border:1px solid #a990d7;border-radius:11px;background:linear-gradient(135deg,#483965,#293d68);padding:11px}.paragon-panel>small{font-size:9px;letter-spacing:1.1px;color:#d0b0f3;font-weight:1000}.paragon-panel>b{display:block;font-size:16px;color:#fff0bb;margin:4px 0 8px;line-height:1.2}.paragon-requirements{display:flex;flex-direction:column;gap:5px}.paragon-requirements span{font-size:11px;color:#a4a0c4}.paragon-requirements span.complete{color:#c1eda9}.paragon-panel>p{font-size:11px;color:#cad6e9;margin:9px 0}.forge-button{background:linear-gradient(#ffe29c,#c69a51);border-color:#8c6736;color:#594023;text-shadow:none;font-size:12px;padding:9px 12px}.paragon-panel .forge-button{width:100%}.paragon-reason{display:block;font-size:10px;line-height:1.5;color:#beb8d8;margin-top:7px}.paragon-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.paragon-guide-card{background:linear-gradient(145deg,#5e4a80,#2e4d78);border:2px solid #a68ac8;border-bottom:4px solid #382e58;border-radius:13px;text-align:center;padding:11px;display:flex;align-items:center;flex-direction:column}.paragon-guide-card canvas{width:125px;height:125px}.paragon-guide-card>small{font-size:10px;color:#c5d9eb}.paragon-guide-card h3{font-size:17px;color:#fff1bd;line-height:1.2;margin:6px 0}.paragon-guide-card p{font-size:12px;line-height:1.5;color:#d0d9ec;margin:3px 0 11px;flex:1}.paragon-guide-card>b{font-size:12px;color:#ffe1a1}.fusion-portrait{display:flex;justify-content:center}.fusion-portrait canvas{width:175px;height:175px}.fusion-degree{font-size:13px;letter-spacing:1.5px;text-align:center;color:#d6c6ef}.fusion-degree b{font-size:40px;color:#ffe6a6;margin:0 8px}.fusion-degree span{font-size:15px;color:#abb5d1}.fusion-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px;background:#213e6966;padding:13px;border-radius:12px}.fusion-summary span{font-size:12px;color:#bdd1e4}.fusion-summary b{font-size:18px;color:#fff2bd;display:block;margin-top:3px}.fusion-warning{background:#ffe8a81a;border-left:3px solid #ecc97b;border-radius:3px;padding:9px 12px;font-size:12px!important;line-height:1.5!important}.paragon-detail-head small{font-size:9px;letter-spacing:.8px;color:#d8b8ff}.paragon-detail-head h3{color:#ffe6af;font-size:19px;line-height:1.1;margin-top:5px}.paragon-detail-head canvas{width:78px;height:78px}.paragon-degree-track{height:7px;background:#25385e;border-radius:10px;overflow:hidden;margin:9px 0}.paragon-degree-track i{display:block;height:100%;background:linear-gradient(90deg,#c39bfc,#ffe59d)}.paragon-pops{font-size:16px;color:#fff0b4;font-weight:1000;margin:9px 0 4px}.paragon-history{font-size:10px;color:#b8cae1;margin:0 0 10px}
@media(max-width:750px){.paragon-guide-card{padding:9px}.paragon-guide-card canvas{width:100px;height:100px}.paragon-guide-card h3{font-size:15px}.paragon-guide-card p{font-size:11px}.paragon-guide-card>b{font-size:11px}.paragon-guide-list{gap:8px}.fusion-summary{padding:11px}.paragon-detail-head h3{font-size:20px}}
/* Pausing stops the simulation; this small badge never blocks the map. */
#pause-label{inset:auto auto 10px 10px;display:flex;align-items:flex-start;justify-content:center;gap:2px;width:max-content;max-width:calc(100% - 20px);padding:9px 13px;background:#173b60ed;border:1px solid #bcd5e4;border-bottom:3px solid #102d4c;border-radius:10px;backdrop-filter:none;pointer-events:none;z-index:3;text-align:left;font-size:12px;color:#fff0b5}#pause-label b{font-size:11px;letter-spacing:.5px}#pause-label small{font-size:10px;font-weight:700;margin:0;color:#c6dfea}#music.audio-on{background:linear-gradient(#edcf77,#c3973f);border-color:#8b672f;color:#5b411c;text-shadow:none}#sound[aria-pressed=true]{background:linear-gradient(#6b9ec3,#4278ac)}.tower-sheet{position:fixed;z-index:40;left:0;right:0;bottom:0;display:flex;flex-direction:column;max-height:min(76dvh,640px);max-width:750px;margin:0 auto;background:#194b7f;border:3px solid #80b7df;border-bottom:0;border-radius:20px 20px 0 0;box-shadow:0 -12px 42px #071e5080;padding-bottom:env(safe-area-inset-bottom,0px);outline:none}.tower-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:linear-gradient(#367db5,#225f99);border-bottom:2px solid #123b68;border-radius:16px 16px 0 0;flex-shrink:0}.tower-sheet-heading h2{font-size:17px;color:#fff0b2;line-height:1.2;margin:0}.tower-sheet-heading button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;min-width:112px;font-size:12px;padding:5px 10px}.tower-sheet-heading button span{font-size:25px;line-height:1}.tower-sheet-content{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.tower-sheet #tower-detail,.hero-deployed .tower-sheet #tower-detail{max-height:none;overflow:visible;border-top:0;padding:13px 14px 18px}.tower-sheet .upgrade-path button{min-height:48px}.tower-sheet .detail-bottom{gap:9px}.tower-sheet .detail-bottom button,.tower-sheet .detail-bottom select{min-height:44px}.tower-sheet .detail-head h3{font-size:22px}.tower-sheet .detail-desc{font-size:13px;line-height:1.5}
@media(min-width:751px){.tower-sheet{display:none!important}}
@media(max-width:750px){nav button{width:26px;height:33px;font-size:17px}#sound{font-size:15px}#pause-label{bottom:7px;left:7px;padding:6px 9px;border-radius:8px;max-width:calc(100% - 14px)}#pause-label b{font-size:9px}#pause-label small{font-size:9px}.tower-sheet .path-progress{width:90px}.tower-sheet .path-progress small{font-size:11px}.tower-sheet .upgrade-path button{font-size:14px}.tower-sheet .upgrade-path button span{font-size:12px}.tower-sheet .detail-meta{font-size:12px}.tower-sheet .detail-head canvas{width:65px;height:65px}}
/* One-tap abilities stay beside the map, including on phones. */
.account-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 22px;border-bottom:2px solid #123762;background:#153f70;color:#c9e3f4;font-size:12px}.account-bar>div{display:flex;gap:7px;flex-shrink:0}.account-bar button{font-size:12px;min-height:34px;padding:5px 12px}.account-tabs{display:flex;gap:8px;margin:12px 0}.account-tabs button{flex:1;padding:9px}.account-tabs button[aria-pressed=true]{background:linear-gradient(#ffe18b,#c7973e);color:#4d3d21;text-shadow:none;border-color:#80642b}#account-form{display:flex;flex-direction:column;gap:12px}#account-form label{display:flex;flex-direction:column;gap:6px;font-size:15px;color:#fff0bb;font-weight:800}#account-form input:not([type=checkbox]){width:100%;min-height:45px;border:2px solid #153d69;background:#edf7ff;color:#153d69;border-radius:8px;padding:9px 11px;font:600 17px 'Nunito',sans-serif}#account-form small,.account-small{font-size:13px;line-height:1.5;color:#c6dcec;font-weight:600}#account-form .account-check{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:14px;line-height:1.4}#account-form input[type=checkbox]{width:21px;height:21px;flex:none;accent-color:#a2dd64}.account-message{font-size:14px;line-height:1.5;color:#ffe191!important}.account-message:empty{display:none}#account-service-note{font-size:14px;border-left:3px solid #f1c76b;padding:9px;background:#15395b66}.save-choice{border:1px solid #91bad8;border-radius:11px;padding:12px;margin:10px 0;background:#153e6d}.save-choice>b{color:#ffe8a6;font-size:16px}.save-choice p{font-size:14px;line-height:1.5}.save-choice button{padding:10px 12px;min-height:44px}#account-signed-in button,#keep-guest-save{min-height:44px;padding:9px 12px}
.save-transfer{display:flex;gap:8px;margin:10px 0 14px}.save-transfer button{min-height:38px;padding:7px 11px;font-size:13px}
#account-dialog>.dialog-close{position:sticky;top:0;right:0;float:right;z-index:3;margin:-4px -4px 0 6px}
@media(max-width:750px){.account-bar{padding:7px 9px;flex-wrap:wrap;gap:6px;font-size:11px}.account-bar>div{margin-left:auto}.account-bar button{font-size:11px;padding:5px 9px}#account-dialog{padding:18px;max-height:88dvh}#account-dialog h2{font-size:23px}#resume-dialog .dialog-actions{flex-wrap:wrap}#account-form input:not([type=checkbox]){font-size:16px}}
.map-rules{font-size:12px;line-height:1.4;color:#d1e8f6;margin:0 5px 8px;min-height:17px}.map-card .map-meta{font-size:12px;line-height:1.4;color:#ffecad}.map-card>span:not(.adventure-icon){line-height:1.5}.map-options{align-items:stretch}.map-card svg{aspect-ratio:1000/650}.map-card em{margin-top:auto}
#map-dialog[open]{display:flex;flex-direction:column;overflow:hidden}#map-dialog>h2,#map-dialog>p,#map-dialog>.eyebrow{flex-shrink:0}#map-options{overflow-y:auto;max-height:60dvh;min-height:0;padding-right:5px;overscroll-behavior:contain}
@media(max-width:750px){.map-rules{font-size:11px;margin-bottom:7px}.map-card svg{grid-row:1/5}.map-card .map-meta{font-size:11px}.map-card>span:not(.adventure-icon){font-size:12px}.map-card em{grid-column:2;margin-top:3px}}
.hero-passives{margin:12px 0}.hero-passives h4{font-size:12px;letter-spacing:.7px;color:#ffe18b;margin:0 0 7px}.hero-passives>div{padding:9px;margin-bottom:7px;border:1px solid #8293b6;border-radius:9px;background:#263e6d}.hero-passives b{font-size:14px;color:#fff0ba}.hero-passives small{display:block;font-size:10px;color:#b1e6a4;margin-top:3px}.hero-passives p{font-size:12px;line-height:1.5;color:#d2e1f2;margin:5px 0 0}.hero-passives .locked{opacity:.7}.hero-passives .locked small{color:#d0c7e8}.tower-sheet .hero-passives p{font-size:14px}.tower-sheet .hero-passives small{font-size:12px}
.damage-note{font-size:12px;line-height:1.5;color:#ffe6a0;background:#122f574d;border-radius:7px;padding:7px 9px;margin:6px 0}.guide-heading{color:#ffe6a0;font-size:18px;margin:22px 0 12px}.bloon-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bloon-guide-card{padding:12px;background:#163e6b;border:1px solid #6596bc;border-radius:10px}.bloon-guide-card>b{font-size:16px;display:flex;align-items:center;gap:8px}.bloon-guide-card i{display:inline-block;flex:none;width:16px;height:20px;border:1px solid #ffffff70;border-radius:50%;box-shadow:inset 3px 2px 4px #ffffff50}.bloon-guide-card p,.guide-properties p{font-size:14px;line-height:1.5;margin:7px 0 0}.guide-properties{padding:12px;margin-top:12px;border-left:3px solid #e5be69;background:#173b6550}.guide-properties p{margin:0 0 9px}.guide-properties p:last-child{margin:0}
@media(max-width:500px){.bloon-guide{grid-template-columns:1fr}.tower-sheet .damage-note{font-size:13px}}
.hero-bar{grid-template-columns:1fr}.hero-bar .hero-status{min-height:42px}.hero-bar .hero-status b{display:inline;margin-right:10px}.hero-bar .hero-status small{display:inline}.hero-bar .hero-xp-track{max-width:300px}
.ability-bar{position:sticky;bottom:8px;z-index:8;margin:0 0 10px;padding:9px;border:2px solid #d4b254;border-radius:13px;background:#123e6af5;box-shadow:0 4px 16px #09244380;min-width:0}
.ability-heading{display:flex;align-items:center;gap:9px;margin:0 3px 7px}.ability-heading>b{font-size:14px;color:#ffe18b}.ability-heading small{font-size:12px;color:#d3e6f5}.ability-heading>span{margin-left:auto;color:#b9d7ee;font-size:12px}
.ability-list{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#e4bd56 #123e6a;padding-bottom:3px}
.squad-ability{flex:0 0 192px;min-height:73px;display:flex;align-items:center;gap:6px;text-align:left;padding:5px 8px;background:linear-gradient(#2f6593,#1b4e7b);border-color:#102e53;touch-action:manipulation}
.squad-ability canvas{width:45px;height:48px;flex:none;pointer-events:none}.ability-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.ability-copy small{font-size:11px;font-weight:700;color:#d1e7f5;line-height:1.1}.ability-copy b{font-size:13px;line-height:1.15}.ability-copy>span{font-size:12px;color:#dbecfa}
.squad-ability:disabled{opacity:.78;filter:saturate(.65)}.squad-ability.ability-ready{border-color:#6c8e29;background:linear-gradient(#82b73c,#3e7829)}.ability-ready .ability-copy>span{color:#fff1a6}.squad-ability.ability-paragon{box-shadow:inset 0 0 0 1px #bfa5ff}
@media(max-width:750px){.ability-bar{bottom:5px;padding:7px;margin-bottom:8px}.ability-heading{flex-wrap:wrap;gap:5px 9px}.ability-heading>span{font-size:11px}.squad-ability{flex-basis:178px;min-height:77px}.ability-copy b{font-size:14px}.ability-heading>b{font-size:13px}}
