@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--bg:#10181b;--panel:#182226;--line:#2b393b;--text:#e7e9df;--muted:#8d9f9e;--green:#b6d38b;--gold:#e4bd73;--title:'Unbounded',Georgia,serif;--body:'Manrope',system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 40% -35%,#2e4140 0,transparent 65%),var(--bg);color:var(--text);font-family:var(--body);font-size:14px}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .18s;background:none;border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid var(--green);outline-offset:3px}button:hover:not(:disabled){filter:brightness(1.15)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}kbd{font:11px var(--body);border:1px solid #ffffff1a;background:#ffffff05;border-radius:3px;padding:2px 5px;color:#91a19b}svg{width:24px;height:24px;display:block}.game-shell{max-width:1800px;margin:auto;padding:0 32px}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:14px}.brand-mark{display:grid;place-items:center;color:var(--gold);font-size:49px;line-height:1;filter:drop-shadow(0 0 12px #dec38730)}.brand strong{display:block;font-family:var(--title);font-size:17px;font-weight:500;letter-spacing:1px}.brand b{color:var(--green);font-weight:500}.brand small{font-size:10px;letter-spacing:2.3px;color:var(--muted);display:flex;align-items:center;gap:9px;margin-top:8px}.brand small i{width:3px;height:3px;background:var(--gold);transform:rotate(45deg)}.header-actions{display:flex;align-items:center;gap:22px}.quiet{color:#b7c2bc;font-size:13px;padding:9px 0;white-space:nowrap}.quiet kbd{margin-left:5px}.icon-button{display:grid;place-items:center;width:34px;height:34px;color:#9eaead;font-size:27px}.icon-button svg{width:20px;height:20px}.campaign-bar{height:91px;display:flex;align-items:center;gap:24px}.campaign-label{min-width:265px}.eyebrow{display:block;font-size:10px;letter-spacing:1.8px;color:var(--muted);font-weight:700}.campaign-label strong{font-size:15px;font-weight:600;display:block;margin-top:6px}.resources{display:flex;gap:49px;flex:1}.resource{display:flex;align-items:center;gap:12px}.resource-icon{font-family:Georgia,serif;font-size:32px;line-height:1}.wave-glyph{font-size:38px;line-height:1;color:#97abb6}.gold .resource-icon,.gold strong{color:var(--gold)}.life .resource-icon{color:#d88b7d}.resource small{font-size:9px;letter-spacing:1.7px;color:var(--muted);display:block;margin-bottom:4px}.resource strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}.resource em{font-size:13px;font-style:normal;font-weight:400;color:#7d8e8e}.play-controls{display:flex;align-items:center;gap:13px}.small-button{height:33px;width:33px;background:#202c30;border:1px solid var(--line);border-radius:4px;font-weight:700}.speed-buttons{display:flex;padding:3px;background:#0c1417;border:1px solid var(--line);border-radius:5px}.speed-buttons button{padding:5px 12px;font-size:12px;color:var(--muted);border-radius:3px}.speed-buttons .active{background:#36443a;color:var(--green)}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:20px;align-items:start}.battle-column{min-width:0}.map-frame{position:relative;overflow:hidden;border:1px solid #50604b;border-radius:8px;background:#21332d;box-shadow:0 14px 40px #0002;aspect-ratio:1100/650;isolation:isolate}canvas{width:100%;height:100%;display:block;touch-action:none}.map-vignette{pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 90px #071d2690;border-radius:8px}.map-heading{position:absolute;top:26px;left:28px;pointer-events:none;text-shadow:0 2px 12px #000b}.map-chapter{font-size:9px;font-weight:800;letter-spacing:2px;color:#c5d9ac}.map-heading h1{font-family:var(--title);font-size:24px;font-weight:500;margin:9px 0 6px;letter-spacing:-.7px}.map-heading p{font-size:11px;color:#c0c9ad}.map-status{position:absolute;right:20px;top:22px;background:#0e1e1aba;border:1px solid #cad9b52b;color:#cbd7bc;border-radius:4px;padding:8px 11px;font-size:10px;letter-spacing:.3px;pointer-events:none}.map-hint{position:absolute;left:20px;bottom:19px;padding:10px 12px;display:flex;align-items:center;gap:9px;background:#10211dda;border:1px solid #53684f80;border-radius:4px;color:#bfccb4;font-size:11px;pointer-events:none;max-width:49%}.hint-spark{font-size:24px;color:var(--gold)}.spell-bar{position:absolute;bottom:18px;right:18px;display:flex;gap:7px}.spell{display:flex;align-items:center;gap:8px;background:#11211ee8;border:1px solid #71806475;border-radius:5px;padding:8px 9px;text-align:left}.spell.selected{border-color:var(--gold);box-shadow:0 0 20px #e4bd7322}.spell-icon{width:30px;height:32px;display:grid;place-items:center;border-radius:4px}.fire-icon{color:#efa66c;background:#7e483433}.frost-icon{color:#9ed8f3;background:#356b8333}.spell b{font-size:10px;display:block}.spell small{font-size:9px;color:#8ea398;display:block;margin-top:3px}.spell kbd{font-size:9px;padding:1px 4px;align-self:start}.wave-banner{position:absolute;top:38%;left:0;right:0;pointer-events:none;text-align:center;opacity:0;transform:translateY(8px);transition:.4s;text-shadow:0 3px 10px #000}.wave-banner.show{opacity:1;transform:translateY(0)}.wave-banner strong{font-family:var(--title);font-size:28px;display:block;color:#f4e5b4}.wave-banner span{font-size:13px;letter-spacing:2px;margin-top:10px;display:block;color:#d6dfca}.wave-brief{display:flex;gap:14px;align-items:center;background:#192428;border:1px solid var(--line);border-radius:6px;padding:16px 18px;margin-top:13px;min-height:84px}.next-emblem{height:45px;width:43px;display:grid;place-items:center;flex:none;border:1px solid #5c6150;color:var(--gold);background:linear-gradient(145deg,#3e4430,#222b26);font:25px Georgia,serif;clip-path:polygon(15% 0,85% 0,100% 15%,100% 85%,85% 100%,15% 100%,0 85%,0 15%)}.next-info{flex:1;min-width:0}.next-info .eyebrow{font-size:9px;letter-spacing:1.3px}.next-info strong{font-size:15px;display:block;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.next-info>span:last-child{font-size:10px;color:var(--muted)}.wave-progress{width:110px;flex:none}.wave-progress>div:first-child{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);letter-spacing:1px}.wave-progress b{font-weight:500;color:#d2d9cc}.progress-track{height:3px;background:#34423d;margin-top:10px;border-radius:2px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--green);width:0;transition:width .3s}.compact{font-size:10px;color:#aabfa5;margin-left:3px}.chapter-track{display:flex;gap:5px;margin-top:19px}.chapter-stop{flex:1;min-width:0;text-align:center;padding:0;color:#62756e}.chapter-stop .chapter-line{height:3px;background:#2c3a34;display:block;margin-bottom:8px;border-radius:2px}.chapter-stop.current{color:var(--green)}.chapter-stop.current .chapter-line{background:var(--green);box-shadow:0 0 10px #a3cc6944}.chapter-stop.complete .chapter-line{background:#6d8d60}.chapter-stop .chapter-num{font-size:10px}.map-footer{margin-top:16px;display:flex;justify-content:space-between;gap:16px;font-size:9px;color:#728881;line-height:22px}.map-footer>span{display:flex;align-items:center;gap:5px}.map-footer kbd{font-size:9px;padding:0 4px;line-height:15px}.save-light{width:5px;height:5px;border-radius:50%;background:#6a9664;display:inline-block;margin-right:4px}.arsenal{background:#172226;border:1px solid var(--line);border-radius:8px;padding:19px 17px 16px}.arsenal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.arsenal-heading .eyebrow{font-size:9px;letter-spacing:1.5px}.arsenal-heading h2{font-family:var(--title);font-size:15px;font-weight:400;margin-top:6px;letter-spacing:-.5px}.tiny-tag{font-size:8px;font-weight:700;color:#80938b;border:1px solid #35443e;padding:5px 6px;border-radius:3px;white-space:nowrap}.tower-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tower-card{position:relative;display:flex;flex-direction:column;align-items:center;border:1px solid #36443f;background:linear-gradient(135deg,#25312c,#1c2929);border-radius:5px;padding:9px 5px 7px;min-height:99px;text-align:center}.tower-card:hover{border-color:#a2b98b}.tower-card.selected{border-color:var(--green);background:linear-gradient(135deg,#344537,#26362d);box-shadow:inset 0 0 18px #a0bf7815}.tower-card.unaffordable .tower-cost{color:#a87569}.tower-card .key-hint{position:absolute;left:7px;top:6px;font-size:8px;color:#718576}.tower-art{display:grid;place-items:center;position:relative;height:40px;width:52px;margin-bottom:3px}.tower-art:before{content:'';position:absolute;inset:5px 0;background:var(--tower-color);filter:blur(15px);opacity:.12}.tower-art svg{width:39px;height:39px;filter:drop-shadow(0 4px 4px #0006)}.tower-name{font-size:10px;font-weight:600;color:#d1d9ce}.tower-cost{font-size:10px;color:var(--gold);margin-top:4px}.tower-cost i{font-style:normal;font-size:11px;margin-right:3px}.tower-detail{min-height:151px;border-top:1px solid var(--line);margin-top:15px;padding-top:14px}.detail-empty .detail-kicker{font-size:11px;color:#c1cdb7;display:flex;gap:7px;align-items:center}.detail-empty p{font-size:11px;line-height:1.8;color:#879d91;margin-top:7px}.detail-empty .level-ticks{display:flex;gap:4px;margin-top:12px}.level-ticks i{height:3px;flex:1;background:#35463c;border-radius:2px}.level-ticks i.active{background:var(--green)}.detail-empty small{font-size:9px;color:#72877c;display:block;margin-top:6px}.detail-head{display:flex;justify-content:space-between;align-items:center;gap:4px}.detail-head h3{font-size:13px;font-weight:600}.level-badge{font-size:9px;color:var(--green);background:#9cb78112;border:1px solid #77915b44;border-radius:3px;padding:4px 6px}.detail-role{font-size:10px;color:var(--muted);margin-top:4px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:13px}.stat-value{font-size:14px;font-variant-numeric:tabular-nums}.stat-label{font-size:8px;letter-spacing:1px;color:#7f968b;margin-top:3px}.skill-summary{font-size:10px;line-height:1.7;color:#afc4aa;margin:11px 0 9px;min-height:32px}.skill-summary b{font-weight:600;color:#c6daa8}.detail-actions{display:flex;gap:6px}.upgrade-button,.build-button{border:1px solid #718558;background:#364632;color:#d0dfb7;border-radius:4px;padding:9px 8px;flex:1;font-size:10px;font-weight:700}.sell-button{color:#ad9f8b;background:#242d2a;border:1px solid #4e4b3b;padding:8px;border-radius:4px;font-size:10px}.skills-button{padding:7px 0 0;font-size:9px;color:#8b9f91;text-decoration:underline;text-underline-offset:3px}.wave-launch{border-top:1px solid var(--line);padding-top:13px;margin-top:12px}.auto-toggle{display:flex;align-items:center;gap:9px;font-size:10px;color:#92a398;margin-bottom:13px;cursor:pointer}.auto-toggle input{position:absolute;opacity:0;width:1px;height:1px}.toggle-track{width:25px;height:14px;background:#34453b;border-radius:9px;position:relative;transition:.2s}.toggle-track:before{content:'';width:8px;height:8px;background:#87978a;border-radius:50%;position:absolute;top:3px;left:3px;transition:.2s}.auto-toggle input:checked+.toggle-track{background:#627b48}.auto-toggle input:checked+.toggle-track:before{left:14px;background:#d4e6b9}.auto-toggle input:focus-visible+.toggle-track{outline:2px solid var(--green);outline-offset:3px}.primary{background:linear-gradient(135deg,#bfd890,#a3c578);border:1px solid #cbdfa3;border-radius:4px;color:#253321;padding:13px 18px;font-size:13px;font-weight:800;box-shadow:0 4px 18px #080d0a33}.start-wave{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:47px;padding:10px;font-size:12px}.start-wave .start-symbol{font-size:23px;line-height:1}.start-wave kbd{color:#456137;border-color:#6e925b55;font-size:8px;margin-left:auto}.start-wave:disabled{background:#2f4036;border-color:#4d624d;color:#9fb697;opacity:.8}.site-footer{display:flex;align-items:center;justify-content:space-between;padding:22px 0 19px;color:#5e756c;font-size:8px;letter-spacing:1.5px}.footer-separator{padding:0 9px;color:#435c50}.text-button{font-size:10px;color:#7f9186;text-decoration:underline;text-underline-offset:4px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#263b2ef5;border:1px solid #879d64;color:#e3ebce;padding:13px 21px;border-radius:6px;font-size:13px;box-shadow:0 8px 35px #0006;z-index:100;transition:.2s;max-width:90vw;text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}.pause-overlay,.end-overlay{position:absolute;inset:0;background:#0b1714d9;backdrop-filter:blur(5px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:10;text-align:center;padding:20px}.pause-overlay>span{font-size:48px;color:var(--green)}.pause-overlay h2{font:24px var(--title);margin:15px 0 24px}.end-emblem{font-size:70px;color:var(--gold)}.end-overlay h2{font:28px var(--title);margin:15px 0}.end-overlay p:not(.eyebrow){color:#a6bba9;max-width:400px;line-height:1.8;margin-bottom:25px;font-size:13px}.accessible-pads{font-size:10px;color:#738b7e;margin-top:10px}.accessible-pads:not(:focus-within):not([open]){position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}.accessible-pads #padButtons{display:flex;gap:5px;flex-wrap:wrap;padding:10px 0}.accessible-pads button{border:1px solid var(--line);padding:8px}.accessible-pads summary{cursor:pointer}dialog{border:1px solid #53674d;border-radius:10px;background:#16231f;color:var(--text);width:min(850px,calc(100vw - 32px));max-height:88vh;padding:26px 30px;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#040e0bd9;backdrop-filter:blur(6px)}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-top button{font-size:28px}.modal-title{font:25px var(--title);margin-bottom:13px}.modal-intro{font-size:13px;color:#9db4a2;line-height:1.8;margin-bottom:24px}.world-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.world-card{padding:17px;border:1px solid #3a5141;border-radius:5px;background:#1c3026;cursor:pointer;text-align:left}.world-card.active{border-color:#c1d797;background:#344731}.world-card small{font-size:9px;color:var(--gold);letter-spacing:1px}.world-card h3{font-size:14px;margin:7px 0}.world-card p{font-size:11px;color:#97b09a;line-height:1.6}.world-card .world-boss{color:#cf9b87;margin-top:10px;font-size:11px}.wave-table{width:100%;border-collapse:collapse;font-size:12px}.wave-table td,.wave-table th{padding:11px;border-bottom:1px solid #364b3c;text-align:left}.wave-table th{font-size:10px;letter-spacing:1px;color:#93ad93}.wave-table .boss-row{color:#ebc07b;background:#8d763015}.back-button{margin-bottom:17px;color:var(--green);font-size:12px;border-bottom:1px solid #819c5e;padding:4px 0}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.help-item{padding:18px;border:1px solid #3a5141;border-radius:5px}.help-item h3{font-size:14px;color:#c3dca5;margin-bottom:10px}.help-item p{font-size:12px;color:#a3b6a3;line-height:1.9}.modal-footnote{font-size:10px;color:#738e78;margin-top:23px;line-height:1.7}.skill-list{display:grid;gap:10px}.skill-row{border:1px solid #41563e;padding:17px;border-radius:5px}.skill-row.locked{opacity:.55}.skill-row small{color:var(--gold);font-size:10px}.skill-row h3{font-size:14px;margin:7px 0}.skill-row p{font-size:12px;line-height:1.8;color:#9fb69f}.modal-actions{display:flex;gap:12px;margin-top:20px}.danger{background:#864c3d;border-color:#b97860;color:#ffddc9}
@media(min-width:1500px){.game-shell{padding:0 44px}.battle-layout{grid-template-columns:minmax(0,1fr) 332px;gap:24px}.arsenal{padding:23px}.tower-card{min-height:108px}.map-heading h1{font-size:30px}.map-heading{top:32px;left:34px}.tower-name{font-size:12px}.tower-cost{font-size:11px}.tower-detail{min-height:172px}.map-hint{font-size:12px}.spell b{font-size:12px}.spell small{font-size:10px}.spell{padding:10px 12px}.spell-icon{width:32px;height:36px}.arsenal-heading h2{font-size:17px}.skill-summary{font-size:11px}.map-status{font-size:11px}.start-wave{font-size:13px}}
@media(max-width:1150px){.game-shell{padding:0 20px}.battle-layout{grid-template-columns:minmax(0,1fr) 265px;gap:14px}.resources{gap:25px}.campaign-label{min-width:210px}.campaign-label strong{font-size:13px}.arsenal{padding:15px 12px}.arsenal-heading h2{font-size:13px}.tower-card{min-height:91px}.tower-art{height:34px}.tower-art svg{width:34px;height:34px}.map-heading{top:18px;left:20px}.map-heading h1{font-size:20px}.map-heading p{font-size:9px}.map-chapter{font-size:8px}.map-status{font-size:8px;top:15px;right:14px}.map-hint{font-size:9px;padding:7px 8px;left:12px;bottom:12px;max-width:43%}.spell-bar{right:12px;bottom:12px;gap:5px}.spell{padding:6px;gap:5px}.spell kbd{display:none}.spell-icon{width:24px;height:26px}.spell-icon svg{width:22px;height:22px}.spell b{font-size:9px}.spell small{font-size:8px}.spell{min-width:83px}.wave-brief{padding:12px;gap:10px}.wave-progress{width:80px}.compact{display:none}.map-footer{font-size:8px}.map-footer>span:last-child{display:none}.header-actions{gap:16px}.brand strong{font-size:14px}.brand small{font-size:8px}.tower-detail{min-height:142px}}
@media(max-width:880px){.game-shell{padding:0 14px}.topbar{height:74px}.header-actions{gap:10px}.header-actions .quiet{font-size:11px}.brand strong{font-size:12px}.brand small{font-size:7px}.brand-mark{font-size:38px}.brand{gap:9px}.campaign-bar{height:76px;gap:14px}.campaign-label{display:none}.resources{gap:25px}.resource small{font-size:8px}.resource strong{font-size:20px}.battle-layout{grid-template-columns:1fr}.arsenal{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:0 18px;padding:17px}.arsenal-heading{grid-column:1/-1;margin-bottom:14px}.tower-grid{grid-template-columns:repeat(4,1fr);grid-row:2/4}.tower-card{min-height:90px}.tower-detail{grid-column:2;grid-row:2;border-top:0;margin-top:0;padding-top:0}.wave-launch{grid-column:2;grid-row:3;margin-top:8px;padding-top:8px}.site-footer{padding:17px 0}.map-heading h1{font-size:24px}.map-chapter{font-size:9px}.map-heading p{font-size:11px}.spell{padding:8px;min-width:100px}.spell b{font-size:11px}.spell small{font-size:9px}.map-hint{font-size:10px}.map-status{font-size:10px}.map-footer{margin:8px 0 5px}.chapter-track{margin-top:13px}.wave-brief{margin-top:10px}}
@media(max-width:580px){.game-shell{padding:0 8px}.topbar{height:65px}.brand strong{font-size:9px;letter-spacing:.3px}.brand small{font-size:6px;letter-spacing:1px}.brand-mark{font-size:32px}.brand{gap:5px}.header-actions{gap:5px}.header-actions .quiet{font-size:10px}.header-actions #helpBtn{font-size:0}.header-actions #helpBtn kbd{font-size:12px}.icon-button{width:25px;height:30px}.icon-button svg{width:17px;height:17px}.resources{gap:14px}.resource{gap:5px}.resource small{font-size:6px;letter-spacing:.6px}.resource strong{font-size:17px}.resource em{font-size:10px}.resource-icon{font-size:24px}.wave-glyph{font-size:27px}.campaign-bar{height:65px;gap:8px}.play-controls{gap:6px}.small-button{width:28px;height:29px}.speed-buttons button{font-size:10px;padding:4px 6px}.map-frame{aspect-ratio:1100/760}.map-heading{top:12px;left:12px}.map-heading h1{font-size:17px;margin:5px 0}.map-chapter{font-size:7px;letter-spacing:1px}.map-heading p{font-size:8px;max-width:180px}.map-status{font-size:7px;padding:5px;top:10px;right:10px}.map-hint{left:8px;bottom:8px;font-size:8px;line-height:1.5;max-width:43%;padding:5px 6px;gap:4px}.hint-spark{font-size:18px}.spell-bar{right:8px;bottom:8px;gap:4px}.spell{padding:6px;min-width:65px;gap:4px}.spell-icon{width:20px;height:22px}.spell-icon svg{width:19px;height:19px}.spell b{font-size:8px}.spell small{font-size:7px}.wave-banner strong{font-size:20px}.wave-banner span{font-size:9px}.wave-brief{padding:10px;min-height:72px}.next-emblem{width:34px;height:37px;font-size:20px}.next-info strong{font-size:13px}.next-info .eyebrow{font-size:7px}.next-info>span:last-child{font-size:9px}.wave-progress{width:65px}.wave-progress>div:first-child{font-size:7px}.chapter-stop .chapter-num{font-size:8px}.map-footer{font-size:7px}.arsenal{padding:13px;grid-template-columns:minmax(0,1fr) 155px;gap:0 10px}.arsenal-heading h2{font-size:14px}.tower-grid{grid-template-columns:repeat(2,1fr);gap:5px}.tower-card{min-height:76px;padding:6px 2px}.tower-art{height:28px}.tower-art svg{width:29px;height:29px}.tower-name{font-size:8px}.tower-cost{font-size:8px}.tower-detail{align-self:start}.detail-head{flex-wrap:wrap}.detail-head h3{font-size:11px}.detail-role{font-size:9px}.stats-grid{margin-top:10px}.stat-value{font-size:11px}.stat-label{font-size:6px}.skill-summary{font-size:9px;line-height:1.8}.detail-actions{flex-wrap:wrap}.upgrade-button,.build-button{font-size:9px;padding:8px}.sell-button{font-size:9px}.wave-launch{align-self:end}.auto-toggle{font-size:8px;gap:6px}.start-wave{font-size:10px;gap:5px;padding:8px;min-height:42px}.start-wave kbd{display:none}.start-wave .start-symbol{font-size:18px}.detail-empty p{font-size:10px}.detail-empty .detail-kicker{font-size:10px}.site-footer{font-size:6px;letter-spacing:.4px}.site-footer .text-button{font-size:8px}.footer-separator{padding:0 4px}.world-grid,.help-grid{grid-template-columns:1fr}.modal-title{font-size:20px}dialog{padding:18px}.end-overlay h2{font-size:20px}.end-emblem{font-size:35px}.end-overlay p:not(.eyebrow){font-size:10px;margin-bottom:10px}.pause-overlay h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Keep the chapter title above the central grove, clear of all build pads. */
.map-heading{left:34%;top:19px;max-width:42%}.map-heading h1{font-size:clamp(16px,1.65vw,26px)}.map-heading p{max-width:100%}
@media(max-width:580px){.map-heading{top:9px;left:30%;max-width:48%}.map-heading h1{font-size:12px;letter-spacing:-.3px}.map-heading p{font-size:7px}.map-chapter{font-size:6px}.map-status{top:auto;bottom:61px;right:8px;font-size:6px}}
.theme-current{border-left:2px solid var(--theme-color);padding:5px 9px;margin-top:10px;background:#ffffff03}.theme-current b{color:var(--theme-color);display:block;font-size:12px}.theme-current span{font-size:11px;color:#aebcad;line-height:1.5;display:block;margin-top:3px}.detail-links{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap}.theme-intro{font-size:14px;margin-bottom:18px}.theme-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.theme-choice{display:flex;align-items:center;min-width:0;text-align:left;padding:12px 10px;border:1px solid #3d5144;background:#1a2b23;border-radius:6px;gap:9px}.theme-choice:hover{border-color:var(--theme-color)}.theme-choice.selected{border-color:var(--theme-color);box-shadow:inset 0 0 0 1px var(--theme-color);background:#293b2d}.theme-mini{width:60px;height:76px;flex:none;pointer-events:none}.theme-choice-copy{min-width:0;display:flex;flex-direction:column;gap:5px}.theme-choice-copy strong{font-size:14px;color:var(--theme-color)}.theme-choice-copy b{font-size:13px;font-weight:600;line-height:1.5}.theme-choice-copy span{font-size:12px;color:#b6c6b2;line-height:1.5}.theme-choice-copy small{font-size:11px;color:#8fae90;line-height:1.4}.theme-confirm{position:sticky;bottom:-26px;background:#17291ff8;backdrop-filter:blur(8px);border:1px solid #607850;border-radius:6px;margin-top:18px;padding:15px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 15px;box-shadow:0 -8px 25px #0c1a1366}.theme-confirm h3{font-size:16px;margin-top:5px}.theme-confirm p{font-size:12px;color:#adbea5;line-height:1.65;margin-top:4px}.theme-confirm .primary{align-self:center;font-size:13px;min-width:155px}.theme-confirm>small{grid-column:1/-1;font-size:11px;line-height:1.5;color:#849d85}.theme-confirm .eyebrow{font-size:11px;letter-spacing:1px}.skill-list{margin-top:12px}
@media(max-width:580px){.theme-choice-grid{grid-template-columns:1fr}.theme-choice{padding:10px}.theme-mini{width:56px;height:70px}.theme-confirm{bottom:-18px;grid-template-columns:1fr;padding:12px}.theme-confirm .primary{width:100%}.theme-confirm>small{font-size:10px}.theme-choice-copy strong{font-size:14px}.theme-choice-copy b{font-size:13px}.theme-current span{font-size:10px}.theme-current b{font-size:11px}}
.branch-path{display:grid;gap:8px}.branch-step{display:flex;align-items:center;gap:15px;padding:14px;border:1px solid #3a5141;border-radius:5px;background:#192b22}.branch-step>span{display:grid;place-items:center;width:32px;height:32px;flex:none;border:1px solid #6b7a51;color:#bcd893;border-radius:50%;font-size:14px}.branch-step>div{flex:1}.branch-step h3{font-size:15px;font-weight:600}.branch-step p{font-size:12px;color:#9ab198;margin-top:5px}.branch-step b{font-size:12px;color:#d6c893;display:block;margin-top:7px;font-weight:500}.branch-step.current{border-color:#c3d597;background:#30452c}.branch-step.complete{opacity:.6}.branch-step>small{font-size:12px;color:#cee5a7}
.roha-logo{display:block;width:360px;height:auto;max-width:42vw;filter:drop-shadow(0 3px 7px #0005)}.targeting{margin-top:12px}.targeting>span{font-size:10px;letter-spacing:1px;color:#8b9e92}.targeting-buttons{display:flex;gap:5px;margin-top:6px}.targeting-buttons button{flex:1;border:1px solid #415249;border-radius:3px;background:#1d2e26;padding:7px 3px;font-size:11px;color:#aabcaa}.targeting-buttons button.active{background:#415638;border-color:#91a971;color:#e4eccd}.next-info>span:last-child{line-height:1.7}
@media(max-width:880px){.roha-logo{width:280px;max-width:44vw}}
@media(max-width:580px){.roha-logo{width:210px;max-width:49vw}.targeting-buttons{flex-wrap:wrap}.targeting-buttons button{font-size:9px;padding:6px 3px}.header-actions .quiet{font-size:9px}}

/* Crisp model portraits and a quiet, non-blocking post-wave note. */
.tower-art{height:64px;width:76px;margin-bottom:3px}.tower-art canvas{width:72px;height:76px;position:relative;pointer-events:none}.tower-art:before{opacity:.06}.tower-card{min-height:118px}.tower-name{font-size:12px;line-height:1.4}.tower-cost{font-size:12px}.next-emblem{width:58px;height:62px}.next-emblem canvas{width:58px;height:58px}.wave-quote{display:flex;align-items:center;gap:12px;margin-top:12px;padding:13px 16px;border:1px solid #435546;border-left:3px solid var(--quote-color,#b6d38b);border-radius:5px;background:linear-gradient(110deg,#24332a,#192429)}.quote-mark{font:42px Georgia,serif;line-height:1;color:var(--quote-color);opacity:.8}.wave-quote>div{flex:1}.wave-quote .eyebrow{font-size:11px;letter-spacing:1px;color:var(--quote-color)}.wave-quote p{font-size:15px;line-height:1.6;color:#e2e7d8;margin-top:3px}.wave-quote button{width:30px;height:30px;flex:none;color:#afbdac;font-size:22px}.map-vignette{box-shadow:inset 0 0 65px #071d2655}.theme-mini{width:74px;height:86px}.theme-choice{gap:12px}.modal-intro,.help-item p,.skill-row p{font-size:15px}.theme-choice-copy b,.theme-choice-copy span,.theme-confirm p{font-size:14px}.detail-role,.skill-summary,.detail-empty p,.auto-toggle{font-size:12px}.detail-head h3{font-size:15px}.level-badge{white-space:nowrap}.quiet,.start-wave{font-size:14px}.map-status{font-size:12px}.upgrade-button,.build-button,.sell-button,.targeting-buttons button{font-size:12px}.map-footer{font-size:11px}.map-heading p{font-size:12px}.next-info>span:last-child{font-size:12px}.next-info strong{font-size:16px}.theme-confirm>small,.modal-footnote{font-size:12px}.wave-table{font-size:14px}
@media(max-width:1150px){.tower-art{height:53px;width:65px}.tower-art canvas{width:61px;height:64px}.tower-card{min-height:105px}.tower-name{font-size:11px}.map-status{font-size:10px}.skill-summary{font-size:11px}}
@media(max-width:880px){.tower-art{height:64px}.tower-art canvas{width:72px;height:76px}.tower-card{min-height:118px}.theme-mini{width:74px;height:86px}}
@media(max-width:580px){.tower-art{height:43px;width:50px}.tower-art canvas{width:48px;height:50px}.tower-card{min-height:91px}.tower-name,.tower-cost{font-size:10px}.detail-role,.skill-summary,.auto-toggle{font-size:11px}.quiet,.start-wave{font-size:12px}.next-emblem{width:43px;height:49px}.next-emblem canvas{width:43px;height:45px}.next-info>span:last-child{font-size:10px}.map-heading p{font-size:8px}.map-status{font-size:8px}.map-footer{font-size:9px}.wave-quote{padding:10px;gap:8px}.wave-quote p{font-size:14px}.wave-quote .eyebrow{font-size:10px}.theme-mini{width:65px;height:80px}.theme-choice-copy b,.theme-choice-copy span,.theme-confirm p{font-size:13px}.upgrade-button,.sell-button{font-size:11px}.modal-title{font-size:19px}.branch-step h3{font-size:14px}.header-actions{gap:4px}}

.awaiting-language .game-shell{visibility:hidden}.language-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 20%,#34413788,transparent 60%),#0b1317ed;backdrop-filter:blur(14px)}.language-panel{width:min(590px,100%);padding:42px 34px;text-align:center;background:linear-gradient(150deg,#25312c,#121e22);border:1px solid #69765c;border-radius:14px;box-shadow:0 24px 100px #0009}.language-panel>img{width:min(450px,100%);height:auto}.language-eyebrow{font-size:11px;letter-spacing:3px;color:#9eb486;margin:28px 0 15px}.language-panel h1{font:24px var(--title);color:#e4e8d8}.language-subtitle{font-size:17px;color:#a7b7a7;margin-top:12px}.language-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:32px}.language-options button{display:flex;gap:15px;text-align:left;align-items:center;border:1px solid #637650;border-radius:8px;padding:20px 16px;background:#ffffff04}.language-options button:hover,.language-options button:focus-visible{border-color:#d7ba79;background:#3c4732}.language-options b{font-size:14px;color:#e0c38a;border:1px solid #76815b;padding:9px 6px;border-radius:4px}.language-options span{font-size:18px;font-weight:600}.language-options small{display:block;font-size:12px;font-weight:400;color:#9fb49c;margin-top:6px}.language-note{font-size:12px;color:#7f958a;line-height:1.7;margin-top:25px}.language-button{color:#d1bd90;font-size:12px;letter-spacing:.4px}.header-actions{gap:17px}@media(max-width:580px){.language-panel{padding:30px 20px}.language-options{gap:10px}.language-options button{padding:16px 10px;gap:10px}.language-options span{font-size:16px}.language-options small{font-size:10px}.language-panel h1{font-size:20px}.header-actions{gap:7px}.header-actions #worldsBtn{font-size:10px}.header-actions .language-button{font-size:10px}.roha-logo{max-width:38vw}}

.difficulty-badge{display:inline-block;font-size:11px;color:#b6d38b;border:1px solid #617649;border-radius:3px;padding:3px 7px;margin-top:5px}.difficulty-badge[data-difficulty=medium]{color:#edca7b;border-color:#88733e}.difficulty-badge[data-difficulty=hard]{color:#ef9a8c;border-color:#9b5549}.difficulty-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.difficulty-card{border:1px solid #485d4b;border-radius:7px;padding:20px 15px;background:#1d3027;text-align:left}.difficulty-card[aria-pressed=true]{border-color:#d2ce8b;background:#344630;box-shadow:inset 0 0 0 1px #d2ce8b}.difficulty-symbol{font-size:26px;color:#d7bf83}.difficulty-card h3{font-size:20px;margin:10px 0}.difficulty-card b{font-size:13px;color:#d1dab4}.difficulty-card p{font-size:14px;color:#adbfad;line-height:1.7;margin:12px 0}.difficulty-card small{display:block;font-size:12px;color:#9bb299;line-height:1.7;margin-top:7px}.difficulty-card[data-difficulty-choice=hard] .difficulty-symbol{color:#e39482}@media(max-width:700px){.difficulty-grid{grid-template-columns:1fr}.difficulty-card{padding:16px}.difficulty-card h3{display:inline;margin-left:12px}.difficulty-card b{display:block;margin-top:8px}.difficulty-card p{margin:8px 0}.difficulty-badge{font-size:10px}.campaign-label{display:block;min-width:70px}.campaign-label>.eyebrow,.campaign-label>strong{display:none}.campaign-bar{gap:10px}.resources{gap:10px}}

.difficulty-grid{grid-template-columns:repeat(2,1fr)}@media(max-width:600px){.difficulty-grid{grid-template-columns:1fr}}

.wave-enemy-cell{display:flex;gap:12px;align-items:center}.codex-creature{width:40px;height:50px;flex:none}.wave-table td{padding:7px 10px}.boss-row .codex-creature{width:56px;height:70px}.boss-row td{padding-top:12px;padding-bottom:12px}

.tower-grid{grid-template-columns:1fr}.tower-card{min-height:148px}.tower-art{width:106px;height:97px}.tower-art canvas{width:100px;height:105px}.tower-name{font-size:15px}.path-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.path-choice{background:#203127;border:1px solid #51654a;border-radius:7px;padding:13px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:7px}.path-choice:hover{border-color:#ddc27d}.path-choice canvas{width:74px;height:90px}.path-choice strong{font-size:18px;color:#e2d4a6}.path-choice b{font-size:12px;color:#b8cda7}.path-choice span{font-size:12px;line-height:1.6;color:#9db39c}.path-choice small{font-size:13px;color:#e4bd73;margin-top:auto}.ultimate-button{display:flex;flex-direction:column;gap:7px;width:100%;padding:12px;border:1px solid #bc8b66;border-radius:5px;background:linear-gradient(115deg,#5e383d,#343249);color:#f1d2ad;margin-top:10px;text-align:left}.ultimate-button span{font-size:13px;font-weight:700}.ultimate-button b{font-size:11px;color:#d0c7ab}.theme-mini{height:98px;width:80px}@media(max-width:650px){.path-choice-grid{grid-template-columns:1fr 1fr}.path-choice{padding:10px}.path-choice strong{font-size:16px}.path-choice span{font-size:11px}.tower-card{min-height:142px}.tower-name{font-size:12px}.header-actions{gap:7px}.header-actions #menuBtn{font-size:11px}}

.branch-step>canvas{width:90px;height:100px;flex:none}.branch-step p{font-size:13px;line-height:1.5}.branch-step b{font-size:14px}@media(max-width:580px){.branch-step{gap:8px;padding:10px}.branch-step>canvas{width:65px;height:75px}.branch-step>small{display:none}.branch-step>span{width:24px;height:24px}}
