:root{color:#294934;font-synthesis:none;text-rendering:optimizelegibility;background:#dbeeb6;font-family:Microsoft YaHei UI,Microsoft YaHei,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button{font:inherit}button:focus-visible{outline-offset:3px;outline:3px solid #ffda61}#app[data-screen=home] .game-shell,#app[data-screen=battle] .home-screen,#app[data-screen=home] .auth-screen,#app[data-screen=battle] .auth-screen,#app[data-screen=auth] .home-screen,#app[data-screen=auth] .game-shell{display:none}body:has(#app[data-screen=battle]){overflow:hidden}.home-screen{isolation:isolate;background-color:#8bc550;background-image:var(--home-art);background-position:50%;background-size:cover;flex-direction:column;justify-content:space-between;min-height:100dvh;padding:26px clamp(28px,7.8vw,152px) 34px;display:flex;position:relative;overflow:hidden}.home-screen:before{z-index:-1;content:"";pointer-events:none;background:#18462645;width:min(52%,700px);position:absolute;top:0;bottom:0;left:0;box-shadow:46px 0 44px #1846261a}.home-header,.home-stage,.home-footer-copy{z-index:1;width:min(1280px,100%);margin:0 auto;position:relative}.home-kicker,.home-copy,.home-chapter,.home-footer-copy,.home-roster-heading p,.brand-name,.level-name,.section-label,.battle-message,.result-title,.result-copy{margin:0}.home-header{justify-content:space-between;align-items:center;gap:24px;display:flex}.home-brand-lockup{color:#fffef0;text-shadow:0 2px #2d53267a;align-items:center;gap:10px;display:inline-flex}.home-brand-mark{background:#ffffefdb;border:2px solid #fffcdcf0;border-radius:50%;place-items:center;width:50px;height:50px;display:grid;box-shadow:0 4px #3b6f306b,0 7px 16px #163d2333}.home-brand-mark img{object-fit:contain;width:54px;height:54px;transform:translateY(-2px)}.home-brand-copy{gap:1px;display:grid}.home-brand-copy strong{font-size:21px;font-weight:900;line-height:1.05}.home-brand-copy small{color:#f5f8b4;letter-spacing:.16em;font-size:9px;font-weight:900;line-height:1.1}.home-chapter{color:#fff9bd;text-shadow:0 2px #29532473;font-size:14px;font-weight:900;line-height:1.2}.home-chapter span{color:#ffdb67;padding:0 5px}.home-stage{justify-items:start;gap:24px;width:min(510px,100%);margin:auto 0;padding:36px 0 28px;display:grid}.home-intro{color:#fffef2;text-shadow:0 3px #3d5c2785,0 9px 20px #1a3d233d}.home-kicker{color:#fff6aa;font-size:14px;font-weight:900;line-height:1.2}.home-screen h1{color:#fffef4;letter-spacing:0;text-shadow:0 5px #497432,0 10px #48702f57,0 15px 24px #193a1e52;width:fit-content;margin:8px 0 12px;font-family:Arial Rounded MT Bold,Microsoft YaHei UI,Microsoft YaHei,system-ui,sans-serif;font-size:70px;font-weight:900;line-height:.9;display:grid}.home-screen h1 span:last-child{padding-left:.48em}.home-copy{color:#fff;max-width:360px;font-size:17px;font-weight:800;line-height:1.55}.home-start-row{flex-wrap:wrap;align-items:center;gap:15px;margin-top:26px;display:flex}.home-start-button{color:#fff;cursor:pointer;text-shadow:0 2px #732e1c66;background:#ed7041;border:3px solid #fff7b9;border-radius:9px;justify-content:center;align-items:center;gap:14px;min-width:184px;min-height:56px;padding:0 22px 2px 24px;font-size:18px;font-weight:900;transition:transform .14s,background .14s,box-shadow .14s;display:inline-flex;box-shadow:inset 0 3px #ffc36a7a,inset 0 -5px #89351e61,0 7px #695c2552,0 12px 22px #1d482133}.home-start-button:hover{background:#fa7c48;transform:translateY(-2px)}.home-start-button:active{transform:translateY(3px);box-shadow:inset 0 2px #ffc36a6b,inset 0 -2px #89351e61,0 3px #695c2547}.home-start-arrow{color:#fff8cc;font-size:12px;line-height:1}.home-level-summary{color:#fffdf0;text-shadow:0 2px #2e552773;align-items:center;gap:7px;min-height:45px;display:flex}.home-level-summary img{object-fit:contain;width:34px;height:34px}.home-level-summary span{gap:2px;display:grid}.home-level-summary strong,.home-level-summary small{font-weight:900;line-height:1.1}.home-level-summary strong{font-size:14px}.home-level-summary small{color:#fff5b5;font-size:12px}.home-encyclopedia-entry,.home-level-select{background:#ffffefc2;border:2px solid #fffac2c2;border-radius:8px;width:min(412px,100%);overflow:hidden;box-shadow:0 6px #32612b2e,0 13px 24px #1943202e}.home-level-select{width:min(462px,100%)}.level-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;display:grid}.level-pager{color:#587854;justify-content:center;align-items:center;gap:12px;padding:0 10px 10px;font-size:11px;font-weight:900;display:flex}.level-page-button{color:#4b754a;cursor:pointer;background:#fffffad6;border:1px solid #426b3e47;border-radius:5px;place-items:center;width:28px;height:28px;padding:0;font-size:11px;line-height:1;display:grid}.level-page-button:hover:not(:disabled){background:#fff;border-color:#2f7344b3}.level-page-button:disabled{cursor:not-allowed;opacity:.4}.level-card{color:#34523a;cursor:pointer;text-align:center;background:#fffffae6;border:2px solid #426b3e3d;border-radius:7px;align-content:center;justify-items:center;gap:4px;min-height:86px;padding:8px 6px;transition:transform .14s,border-color .14s,background .14s;display:grid;box-shadow:0 3px #446c381a}.level-card:hover:not(:disabled){border-color:#2f7344b3;transform:translateY(-2px)}.level-card.is-selected{background:#fff7d6;border-color:#efa93d;box-shadow:0 3px #d5972d33}.level-card.is-locked{cursor:not-allowed;opacity:.66}.level-card small{color:#71916d;font-size:10px;font-weight:900;line-height:1.1}.level-card strong{font-size:13px;font-weight:900;line-height:1.15}.level-stars{gap:2px;display:inline-flex}.level-stars .star{color:#5a745252;font-size:13px;font-style:normal;line-height:1}.level-stars .star.is-filled{color:#f2a93b;text-shadow:0 1px #925c1666}.level-lock{color:#7d8a72;font-size:10px;font-weight:800;line-height:1.2}.home-roster-heading{color:#3b713e;background:#ecfabbe0;justify-content:space-between;align-items:center;min-height:31px;padding:7px 12px 6px;display:flex}.home-roster-heading p,.home-roster-heading span{font-size:12px;font-weight:900;line-height:1.1}.home-roster-heading span{color:#719146}.home-encyclopedia-links{gap:8px;padding:10px;display:grid}.home-encyclopedia-link{color:#315f3c;text-align:left;cursor:pointer;background:#fffff9b8;border:1px solid #4b7b4233;border-radius:7px;grid-template-columns:92px minmax(0,1fr) 20px;align-items:center;gap:10px;min-width:0;min-height:74px;padding:7px 9px 7px 7px;transition:border-color .14s,background .14s,transform .14s;display:grid}.home-encyclopedia-link:hover{background:#fffef5;border-color:#4084498f;transform:translateY(-1px)}.home-encyclopedia-preview{background:linear-gradient(#e2f6b9e6,#f9fee16b);border-radius:5px;justify-content:center;align-items:flex-end;height:58px;display:flex;overflow:hidden}.home-encyclopedia-preview-enemies{background:linear-gradient(#e3f2d3eb,#fafce273)}.home-encyclopedia-preview img{object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 2px #254d262e);width:44px;height:56px}.home-encyclopedia-copy{gap:4px;min-width:0;display:grid}.home-encyclopedia-copy strong{color:#315f3c;font-size:15px;font-weight:900;line-height:1.1}.home-encyclopedia-copy small{color:#70816d;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800;line-height:1.25;overflow:hidden}.home-encyclopedia-arrow{color:#629058;font-size:24px;font-weight:400;line-height:1}.home-footer-copy{color:#fffbd5;text-shadow:0 2px #2f562775;align-self:flex-start;font-size:12px;font-weight:900;line-height:1.2}.game-shell{background:#86b85e;flex-direction:column;width:min(1440px,100%);height:100dvh;margin:0 auto;padding:14px clamp(12px,2.2vw,34px) 16px;display:flex}.topbar{flex:none;justify-content:space-between;align-items:center;gap:24px;min-height:0;padding:0 4px 10px;display:flex}.brand-name{color:#28553c;font-size:25px;font-weight:900;line-height:1.1}.level-name,.hud-label,.section-label{color:#537950;font-size:13px;font-weight:800;line-height:1.3}.level-name{margin-top:5px}.level-goal{color:#7c9448;margin:3px 0 0;font-size:11px;font-weight:800;line-height:1.3}.topbar-actions{flex:none;gap:8px;display:flex}.chrome-button{color:#3c6343;cursor:pointer;background:#fffff8d1;border:1px solid #41703b52;border-radius:7px;min-height:38px;padding:0 14px;font-size:13px;font-weight:900;box-shadow:0 3px #48773a1f}.chrome-button:hover{background:#fff;border-color:#2f7344a8}.hud{align-items:stretch;gap:8px;display:flex}.hud-item{background:#fffff8c7;border:1px solid #41703b47;border-radius:7px;gap:3px;min-width:88px;padding:8px 12px;display:grid;box-shadow:0 3px #48773a1a}.health-item{grid-template-columns:auto 88px;align-items:center;min-width:218px}.health-item .hud-label{grid-column:1}.health-item .hud-value{grid-area:2/1}.health-track{background:#d9d7b8;border-radius:3px;grid-area:1/2/span 2;width:100%;height:10px;overflow:hidden}.health-fill{border-radius:inherit;background:#ef7854;width:100%;height:100%;transition:width .16s;display:block}.hud-value{color:#2f5135;white-space:nowrap;font-size:15px;font-weight:900;line-height:1.15}.hud-label-with-icon{align-items:center;gap:4px;display:inline-flex}.hud-currency-icon{object-fit:contain;width:16px;height:16px}.game-area{background:#86b85e;border:6px solid #fff6cd;border-radius:8px;flex:auto;min-height:0;display:flex;position:relative;overflow:hidden;box-shadow:0 14px 28px #2a4d2733}#game-canvas{flex:auto;width:100%;min-height:0;display:block}#game-canvas canvas{touch-action:none;max-width:100%;max-height:100%;display:block}.game-loading{z-index:2;color:#fff6cd;pointer-events:none;background:#2a4d2757;place-items:center;padding:24px;font-size:15px;font-weight:800;display:grid;position:absolute;inset:0}.game-loading[hidden]{display:none}.result-modal{z-index:12;visibility:hidden;opacity:0;background:#1f462a85;place-items:center;padding:24px;transition:opacity .18s,visibility .18s;display:grid;position:absolute;inset:0}.result-modal.is-visible{visibility:visible;opacity:1}.result-content{text-align:center;background:#fffdf0;border:2px solid #ffe997;border-radius:8px;width:min(360px,100%);padding:28px;box-shadow:0 18px 36px #1a2f204d}.result-title{color:#2c663e;font-size:26px;font-weight:900;line-height:1.2}.result-copy{color:#68745b;margin-top:10px;font-size:14px;line-height:1.5}.result-stars{justify-content:center;gap:8px;margin-top:12px;display:flex}.result-stars[hidden]{display:none}.result-star{color:#5a745242;text-shadow:0 2px #3f593824;font-size:34px;line-height:1}.result-star.is-filled{color:#f2a93b;text-shadow:0 2px #925c166b,0 5px 10px #d2912c59}.result-actions{gap:8px;margin-top:22px;display:grid}.result-actions .command-button{width:100%}.command-button.is-ghost{color:#4c6e50;background:#ecf4e0f2;box-shadow:inset 0 -3px #54744a2e}.command-button.is-ghost:hover:not(:disabled){background:#e2eecf}.controls{flex:none;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px;padding:12px 0 0;display:grid}.tower-picker{min-width:0}.section-label{margin-bottom:8px}.tower-cards{grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px;display:grid}.tower-card{color:#34523a;cursor:pointer;text-align:left;background:#fffffad1;border:1px solid #426b3e42;border-radius:7px;align-items:center;gap:10px;min-height:62px;padding:8px 10px;transition:transform .14s,background .14s,border-color .14s;display:flex;box-shadow:0 3px #446c3817}.tower-card:hover{background:#fff;border-color:#2f7344b3;transform:translateY(-2px)}.tower-card.is-selected{background:#fff7d6;border-color:#efa93d;box-shadow:0 3px #d5972d29}.tower-mark{object-fit:contain;flex:0 0 40px;width:40px;height:40px}.tower-copy{gap:2px;min-width:0;display:grid}.tower-copy strong,.tower-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tower-copy strong{color:#34523a;font-size:13px;line-height:1.2}.tower-copy small{color:#70816c;align-items:center;gap:4px;font-size:11px;line-height:1.2;display:flex}.tower-copy small span{white-space:nowrap}.tower-upgrade-panel{z-index:4;background:#fffef4f5;border:1px solid #3b663875;border-radius:8px;width:clamp(220px,23vw,270px);max-height:calc(100% - 24px);position:absolute;top:12px;left:12px;right:auto;overflow:auto;box-shadow:0 14px 28px #25492847}.tower-upgrade-panel[hidden]{display:none!important}.tower-upgrade-panel.is-open{animation:.16s ease-out tower-inspector-enter}.tower-upgrade-close{z-index:1;color:#4c714d;cursor:pointer;background:#f5faea;border:1px solid #486f3f4d;border-radius:5px;place-items:center;width:26px;height:26px;padding:0;font-size:21px;font-weight:700;line-height:1;display:grid;position:absolute;top:8px;right:8px}.tower-upgrade-close:hover{background:#e5f0d5;border-color:#3068399e}.tower-upgrade-eyebrow,.tower-upgrade-path{margin:0}.tower-upgrade-details{align-content:start;gap:5px;min-height:0;padding:8px;display:grid}.tower-upgrade-details[hidden],.tower-upgrade-effect[hidden]{display:none}.tower-upgrade-heading{justify-content:space-between;align-items:start;gap:8px;min-height:25px;padding-right:28px;display:flex}.tower-upgrade-eyebrow{color:#759270;font-size:10px;font-weight:900;line-height:1.15;display:none}.tower-upgrade-name{color:#34523a;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;font-weight:900;line-height:1.2;display:block;overflow:hidden}.tower-upgrade-level{color:#9b651f;background:#fff3ca;border:1px solid #eba43680;border-radius:4px;flex:none;padding:3px 6px;font-size:10px;font-weight:900;line-height:1}.tower-inspector-controls{gap:4px;display:grid}.tower-target-control,.tower-specialization-control{grid-template-columns:32px minmax(0,1fr);align-items:center;gap:5px;min-height:25px;display:grid}.tower-control-label{color:#71816d;font-size:10px;font-weight:900;line-height:1.1}.tower-target-select{color:#365b3d;width:100%;min-width:0;min-height:25px;font:inherit;background:#fff;border:1px solid #426b3e47;border-radius:4px;padding:0 6px;font-size:10px;font-weight:900}.tower-target-select:focus-visible{outline-offset:2px;outline:2px solid #ffda61}.tower-target-select:disabled{cursor:not-allowed;opacity:.55}.tower-specialization-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;display:grid}.tower-specialization-button{color:#587155;cursor:pointer;background:#f4f8e9;border:1px solid #426b3e3d;border-radius:4px;min-width:0;min-height:25px;padding:0 5px;font-size:10px;font-weight:900;line-height:1}.tower-specialization-button:hover:not(:disabled){background:#fff;border-color:#2f73449e}.tower-specialization-button.is-selected{color:#81551e;background:#fff1c7;border-color:#e5a33b;box-shadow:inset 0 -2px #bc7a242b}.tower-specialization-button.is-locked,.tower-specialization-button:disabled{cursor:not-allowed;opacity:.52}.tower-upgrade-path{background:#eef7d5bd;border-left:3px solid #e3b34a;gap:0;min-height:21px;padding:3px 6px;display:grid}.tower-upgrade-path strong,.tower-upgrade-path span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tower-upgrade-path strong{color:#426b3e;font-size:10px;font-weight:900;line-height:1.1}.tower-upgrade-path span{color:#6d7f69;font-size:10px;font-weight:700;line-height:1.15;display:none}.tower-upgrade-stats{border-top:1px solid #436b3d24;border-bottom:1px solid #436b3d24;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.tower-upgrade-stat{border-left:1px solid #436b3d1f;gap:2px;min-width:0;padding:4px 5px 5px;display:grid}.tower-upgrade-stat:first-child{border-left:0}.tower-upgrade-stat span{color:#71816d;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:800;line-height:1.15;overflow:hidden}.tower-upgrade-stat strong{color:#365b3d;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:900;line-height:1.2;overflow:hidden}.tower-upgrade-effect{border-top:1px solid #436b3d1f;border-left:0;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:center}.tower-upgrade-effect strong{color:#4d7d5d;text-align:right}.tower-upgrade-footer{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);gap:6px;min-height:32px;display:grid}.sell-button,.upgrade-button{cursor:pointer;border-radius:5px;justify-content:space-between;align-items:center;gap:5px;min-width:0;min-height:32px;padding:0 8px;font-size:10px;font-weight:900;line-height:1;display:flex}.sell-button{color:#53704f;background:#f1f6e5;border:1px solid #50754845;box-shadow:inset 0 -2px #486e411a}.sell-button:hover:not(:disabled){background:#e6f0d7;border-color:#38683994}.sell-button small,.upgrade-button-cost{min-width:0;color:inherit;white-space:nowrap;align-items:center;gap:3px;font-size:8px;font-weight:900;line-height:1;display:inline-flex}.sell-button img,.upgrade-button-cost img{object-fit:contain;width:14px;height:14px}.upgrade-button{color:#fff;background:#db9b35;border:0;box-shadow:inset 0 -3px #77481840}.upgrade-button:hover:not(:disabled){background:#c78327}.sell-button:disabled,.upgrade-button:disabled{cursor:not-allowed;opacity:.5}.command-strip{justify-items:end;gap:8px;display:grid}.battle-message{color:#587155;text-align:right;max-width:360px;height:33px;font-size:12px;font-weight:700;line-height:1.35;overflow:hidden}.command-actions,.speed-control{align-items:center;gap:6px;display:flex}.speed-control{background:#fffffad1;border:1px solid #42664340;border-radius:7px;padding:3px}.speed-button,.command-button{cursor:pointer;border:0;border-radius:5px;font-weight:900}.speed-button{color:#587155;background:0 0;min-width:38px;min-height:34px;padding:0 8px;font-size:12px}.speed-button.is-active{color:#fff;background:#3e8852}.command-button{color:#fff;background:#e36a42;min-height:40px;padding:0 16px;font-size:14px;box-shadow:inset 0 -3px #682a1d47}.command-button:hover:not(:disabled){background:#cf5735}.command-button:disabled{cursor:not-allowed;opacity:.5}@keyframes tower-inspector-enter{0%{opacity:0;transform:translate(16px)scale(.98)}to{opacity:1;transform:translate(0)scale(1)}}@media (width<=1180px) and (width>=901px) and (height<=820px){.game-shell{padding-top:10px;padding-bottom:10px}.topbar{gap:12px;padding-bottom:6px}.brand-name{font-size:22px}.level-goal{display:none}.tower-upgrade-panel{max-height:calc(100% - 16px);top:8px;left:8px;right:auto}.tower-upgrade-details{gap:4px;padding:7px 8px}.tower-upgrade-heading{align-items:center;min-height:22px}.tower-upgrade-eyebrow,#tower-upgrade-description,.tower-upgrade-effect{display:none!important}.tower-upgrade-path{min-height:22px;padding:3px 6px}.tower-upgrade-stat{gap:1px;padding:3px 5px 4px}.tower-upgrade-stat strong{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.1;overflow:visible}.tower-card{gap:6px;padding-inline:8px}.tower-mark{flex-basis:34px;width:34px;height:34px}.tower-copy small{text-overflow:clip;white-space:normal;gap:0;font-size:10px;line-height:1.1;display:grid;overflow:visible}.command-strip{justify-content:space-between;align-items:center;gap:12px;min-height:42px;display:flex}.battle-message{text-align:left;text-overflow:ellipsis;white-space:nowrap;max-width:none;height:auto;overflow:hidden}}@media (width<=900px){.home-screen{background-position:58%;padding:26px clamp(24px,6vw,58px) 30px}.home-screen:before{width:60%}.topbar{flex-direction:column;align-items:flex-start;gap:12px}.hud{width:100%}.hud-item{flex:1 1 0}.controls{grid-template-columns:1fr}.command-strip{justify-items:stretch}.battle-message{text-align:left;max-width:none}.command-actions{justify-content:space-between}}@media (width<=660px){.home-screen{background-position:64%;min-height:100dvh;padding:20px 20px 26px}.home-screen:before{width:100%;box-shadow:none;background:#18462666}.home-header{gap:12px}.home-brand-mark{width:43px;height:43px}.home-brand-mark img{width:47px;height:47px}.home-brand-copy strong{font-size:18px}.home-chapter{text-align:right;font-size:12px}.home-stage{gap:18px;width:100%;padding:22px 0}.home-screen h1{font-size:56px}.home-copy{max-width:300px;font-size:16px}.home-start-row{flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.home-start-button{min-width:174px;min-height:53px;font-size:17px}.home-level-summary{min-height:32px}.home-level-summary img{width:30px;height:30px}.home-encyclopedia-entry{width:min(390px,100%)}.home-encyclopedia-link{grid-template-columns:82px minmax(0,1fr) 18px;gap:8px}.home-encyclopedia-preview{height:54px}.home-encyclopedia-preview img{width:39px;height:52px}.home-footer-copy{font-size:11px}.game-shell{padding:12px}.hud{grid-template-columns:1fr 1fr;display:grid}.health-item{grid-column:1/-1}.tower-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tower-upgrade-details{padding:10px}.tower-upgrade-stat{padding-inline:5px}.wave-item{display:none}.tower-upgrade-panel{width:min(270px,100% - 16px)}}@media (height<=520px){.game-shell{height:auto;min-height:100dvh}#game-canvas{aspect-ratio:16/9}body:has(#app[data-screen=battle]){overflow:auto}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}@media (pointer:coarse),(hover:none),(width<=1180px) and (height<=820px),(width<=900px){.chrome-button,.home-logout-button,.level-page-button,.auth-tab,.auth-password-toggle,.encyclopedia-close,.encyclopedia-tab,.encyclopedia-segment,.tower-target-select,.tower-specialization-button,.tower-upgrade-close,.sell-button,.upgrade-button,.speed-button,.command-button{min-height:44px}.level-page-button{width:44px}.auth-input{min-height:44px}.auth-password-toggle{min-width:44px;padding-inline:6px}.encyclopedia-close{width:44px;height:44px}.encyclopedia-segment{padding-inline:12px}.tower-upgrade-close{width:44px;height:44px;font-size:25px;top:4px;right:4px}.tower-upgrade-details{gap:7px;padding:10px}.tower-target-control,.tower-specialization-control{grid-template-columns:42px minmax(0,1fr);gap:8px;min-height:44px}.tower-target-select,.tower-specialization-button{min-height:44px}.tower-target-select{padding-inline:10px;font-size:12px}.tower-specialization-button{padding-inline:8px;font-size:11px}.tower-upgrade-footer{min-height:44px}.sell-button,.upgrade-button{min-height:44px;padding-inline:10px;font-size:11px}.speed-button{min-width:44px}.command-button{min-height:44px}}@media (width<=900px) and (orientation:portrait){body:has(#app[data-screen=battle]){overflow:auto}.game-shell{height:auto;min-height:100dvh}.game-area{aspect-ratio:16/9;flex:none}#game-canvas{flex:none;height:100%}.controls{padding-bottom:14px}}.auth-screen{background:#8bc550;justify-content:center;align-items:center;min-height:100dvh;padding:24px;display:flex}.auth-card{background:#fffef0;border-radius:16px;width:100%;max-width:380px;padding:32px;box-shadow:0 8px 32px #1846262e}.auth-brand{align-items:center;gap:12px;margin-bottom:28px;display:flex}.auth-brand img{width:40px;height:40px}.auth-brand strong{color:#294934;font-size:1.2rem;display:block}.auth-brand small{color:#5a8a6a;letter-spacing:.08em;font-size:.68rem}.auth-tabs{border-bottom:2px solid #dbeeb6;margin-bottom:24px;display:flex}.auth-tab{color:#5a8a6a;cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;flex:1;margin-bottom:-2px;padding:8px 0;font-size:.95rem;transition:color .15s,border-color .15s}.auth-tab.is-active{color:#294934;border-bottom-color:#4a8c35;font-weight:700}.auth-form{flex-direction:column;gap:16px;display:flex}.auth-field{flex-direction:column;gap:6px;display:flex}.auth-field label{color:#294934;font-size:.85rem;font-weight:700}.auth-input{font:inherit;color:#294934;background:#f8fdf2;border:2px solid #c8e0a8;border-radius:8px;outline:none;padding:10px 12px;font-size:.95rem;transition:border-color .15s}.auth-input:focus{border-color:#4a8c35}.auth-password-control{position:relative}.auth-password-control .auth-input{width:100%;padding-right:64px}.auth-password-toggle{color:#4a8c35;min-width:36px;min-height:28px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:4px 2px;font-size:.8rem;font-weight:700;transition:color .15s;display:inline-flex;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.auth-password-toggle:hover{color:#294934}.auth-password-toggle:focus-visible{outline-offset:2px;outline:2px solid #ffda61}.auth-error{color:#c0392b;background:#fce4e4;border-radius:6px;margin:0;padding:8px 10px;font-size:.85rem}.auth-submit{width:100%;margin-top:4px}.home-user-bar{align-items:center;gap:10px;display:flex}.home-user-name{color:#fffef0;opacity:.9;font-size:.85rem;font-weight:700}.home-logout-button{color:#fffef0;cursor:pointer;background:#fffef026;border:1px solid #fffef059;border-radius:6px;padding:4px 12px;font-size:.8rem;font-weight:700;transition:background .15s}.home-logout-button:hover{background:#fffef047}body.encyclopedia-open{overflow:hidden}.lore-button{color:#fffef0;cursor:pointer;background:#fffef029;border:1px solid #fffef073;border-radius:6px;align-items:center;gap:5px;min-height:30px;padding:4px 11px;font-size:.8rem;font-weight:900;transition:background .14s,transform .14s;display:inline-flex}.lore-button:hover{background:#fffef04d;transform:translateY(-1px)}.encyclopedia-modal{z-index:100;place-items:center;padding:clamp(10px,3vw,30px);display:grid;position:fixed;inset:0}.encyclopedia-modal[hidden]{display:none!important}.encyclopedia-backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#152e1ca8;position:absolute;inset:0}.encyclopedia-dialog{z-index:1;background:#fffdf0;border:2px solid #f3d16b;border-radius:10px;flex-direction:column;width:min(1120px,100%);height:min(770px,100dvh - 20px);min-height:0;animation:.18s ease-out encyclopedia-enter;display:flex;position:relative;overflow:hidden;box-shadow:0 24px 60px #102f1966}.encyclopedia-header{background:#e9f5c9;justify-content:space-between;align-items:flex-start;gap:24px;padding:20px 24px 14px;display:flex}.encyclopedia-eyebrow{color:#7d994d;letter-spacing:.16em;margin:0 0 3px;font-size:10px;font-weight:900}.encyclopedia-header h2{color:#315b3d;margin:0;font-size:25px;font-weight:900;line-height:1.1}.encyclopedia-subtitle{color:#6b8563;margin:5px 0 0;font-size:12px;font-weight:700}.encyclopedia-close{color:#4a744d;cursor:pointer;background:#fffff8c7;border:1px solid #3e704147;border-radius:6px;flex:0 0 34px;place-items:center;width:34px;height:34px;padding:0;font-size:24px;line-height:1;display:grid}.encyclopedia-close:hover{background:#fff;border-color:#36734199}.encyclopedia-tabs{background:#e9f5c9;border-bottom:1px solid #466d3929;gap:5px;padding:0 24px;display:flex}.encyclopedia-tab{color:#75906a;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:7px;min-height:39px;padding:0 14px;font-size:13px;font-weight:900;display:inline-flex}.encyclopedia-tab span{color:#e0a341;font-size:12px}.encyclopedia-tab small{color:#91a279;font-size:10px}.encyclopedia-tab.is-active{color:#315b3d;border-bottom-color:#df9b38}.encyclopedia-body{flex:auto;grid-template-columns:260px minmax(0,1fr);min-height:0;display:grid}.encyclopedia-list-panel{background:#f3f8df;border-right:1px solid #426b3e29;flex-direction:column;min-height:0;display:flex}.encyclopedia-list-heading{color:#47734c;border-bottom:1px solid #426b3e1f;justify-content:space-between;align-items:center;min-height:39px;padding:0 13px;font-size:12px;font-weight:900;display:flex}.encyclopedia-list-heading small{color:#8ba06e;font-size:10px}.encyclopedia-list{gap:5px;min-height:0;padding:8px;display:grid;overflow:auto}.encyclopedia-list-item{color:#3b6544;cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:6px;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:8px;min-height:66px;padding:5px 7px;transition:background .14s,border-color .14s,transform .14s;display:grid}.encyclopedia-list-item:hover{background:#fffffabd;border-color:#4e8b4b57;transform:translate(2px)}.encyclopedia-list-item.is-selected{background:#fff6cf;border-color:#e6a83d;box-shadow:inset 3px 0 #e6a83d}.encyclopedia-list-item img{object-fit:contain;filter:drop-shadow(0 3px 2px #2f582a29);width:52px;height:52px}.encyclopedia-list-item span{gap:4px;min-width:0;display:grid}.encyclopedia-list-item strong,.encyclopedia-list-item small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.encyclopedia-list-item strong{color:#315b3d;font-size:12px;font-weight:900}.encyclopedia-list-item small{color:#7a906d;font-size:10px;font-weight:800}.encyclopedia-detail{color:#365b3d;min-width:0;padding:20px 24px 30px;overflow:auto}.encyclopedia-detail-hero{border-bottom:1px solid #426b3e29;grid-template-columns:188px minmax(0,1fr);align-items:center;gap:22px;min-height:184px;padding-bottom:17px;display:grid}.encyclopedia-portrait{background:#edf5d7;border:1px solid #4c804540;border-radius:8px;place-items:center;width:188px;height:188px;display:grid;position:relative;overflow:hidden}.encyclopedia-portrait img{object-fit:contain;filter:drop-shadow(0 7px 5px #2b532838);width:100%;height:100%}.enemy-portrait{background:#efe9f4}.encyclopedia-level-badge{color:#87551a;background:#fff2bd;border:1px solid #b1701b61;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:900;position:absolute;bottom:8px;right:8px}.encyclopedia-level-badge.is-threat{color:#724568;background:#f7e0f4;border-color:#894b7e47}.encyclopedia-hero-copy{min-width:0}.encyclopedia-kicker-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.encyclopedia-kicker{color:#98651f;background:#fff0c2;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:900}.encyclopedia-kicker.is-soft{color:#5f8166;background:#e8f3d9}.encyclopedia-hero-copy h3{color:#2f5e3d;margin:11px 0 6px;font-size:clamp(22px,3vw,31px);font-weight:900;line-height:1.1}.encyclopedia-hero-copy p{color:#6b8067;max-width:600px;margin:0;font-size:13px;font-weight:700;line-height:1.55}.encyclopedia-chip-row{flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}.encyclopedia-chip{color:#527858;background:#f1f8e2;border:1px solid #4a7a4533;border-radius:4px;padding:4px 7px;font-size:10px;font-weight:900}.encyclopedia-chip.is-lime{color:#6b742e;background:#f7f2bd}.encyclopedia-chip.is-enemy{color:#815274;background:#f8e7f4;border-color:#8d4c8038}.encyclopedia-threat{color:#d88f31;gap:2px;font-size:11px;line-height:1;display:inline-flex}.encyclopedia-threat i{font-style:normal}.encyclopedia-threat i:nth-child(n+4){color:#d6c99a}.encyclopedia-controls{flex-wrap:wrap;align-items:center;gap:18px;padding:12px 0 4px;display:flex}.encyclopedia-control-group{align-items:center;gap:8px;display:flex}.encyclopedia-control-group>span{color:#78906b;font-size:10px;font-weight:900}.encyclopedia-segmented{background:#edf5dc;border:1px solid #426b3e33;border-radius:5px;gap:2px;padding:2px;display:inline-flex}.encyclopedia-segment{color:#6c8668;cursor:pointer;background:0 0;border:0;border-radius:3px;min-height:25px;padding:0 8px;font-size:10px;font-weight:900}.encyclopedia-segment:hover{color:#3b6846;background:#fff}.encyclopedia-segment.is-selected{color:#fff;background:#4b8a55;box-shadow:inset 0 -2px #26582a33}.encyclopedia-section{margin-top:17px}.encyclopedia-section-heading{color:#426d47;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px;font-size:12px;font-weight:900;display:flex}.encyclopedia-section-heading small{color:#91a17c;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:800;overflow:hidden}.encyclopedia-stat-grid{border-top:1px solid #426b3e24;border-left:1px solid #426b3e24;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.encyclopedia-stat{background:#fbfdec;border-bottom:1px solid #426b3e24;border-right:1px solid #426b3e24;gap:4px;min-width:0;padding:9px 10px;display:grid}.encyclopedia-stat span{color:#829677;font-size:10px;font-weight:800}.encyclopedia-stat strong{color:#365f40;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:900;overflow:hidden}.encyclopedia-lore{color:#5f765e;margin:0;font-size:12px;font-weight:700;line-height:1.65}.encyclopedia-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.encyclopedia-info{background:#f3f8df;border-left:3px solid #e2ad45;padding:9px 10px}.encyclopedia-info span{color:#81976f;margin-bottom:3px;font-size:10px;font-weight:900;display:block}.encyclopedia-info p{color:#557052;margin:0;font-size:11px;font-weight:700;line-height:1.5}.encyclopedia-route-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.encyclopedia-route{background:#f7fbe9;border:1px solid #426b3e2e;border-radius:6px;overflow:hidden}.encyclopedia-route.is-selected{border-color:#dfaa42;box-shadow:0 3px #d6992b1f}.encyclopedia-route-heading{color:#3d6b48;cursor:default;text-align:left;background:0 0;border:0;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:6px;width:100%;padding:9px 10px 7px;display:grid}.encyclopedia-route-heading:hover{background:0 0}.encyclopedia-route-icon{color:#df9b38;text-align:center;font-size:14px}.encyclopedia-route-heading span:nth-child(2){gap:2px;min-width:0;display:grid}.encyclopedia-route-heading strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.encyclopedia-route-heading small{color:#8a9c76;font-size:9px;font-weight:800}.encyclopedia-route-arrow{color:#a9b28d;text-align:center;font-size:20px}.encyclopedia-route-steps{gap:4px;padding:0 7px 7px;display:grid}.encyclopedia-route-step{border-top:1px solid #426b3e1f;padding:7px 8px}.encyclopedia-route-step-top{grid-template-columns:30px minmax(0,1fr) auto;align-items:baseline;gap:5px;display:grid}.encyclopedia-route-step-top>span{color:#c17f25;font-size:9px;font-weight:900}.encyclopedia-route-step-top strong{color:#4b6f4c;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.encyclopedia-route-step-top small{color:#9a9c70;white-space:nowrap;font-size:9px;font-weight:900}.encyclopedia-route-step p{color:#71836a;margin:4px 0;font-size:10px;font-weight:700;line-height:1.45}.encyclopedia-route-stats{color:#6e986c;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;margin-top:5px;font-size:9px;font-weight:900;line-height:1.3;display:grid}.encyclopedia-route-stats span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.encyclopedia-route-stats span.is-wide{grid-column:1/-1}.encyclopedia-route-stats strong{color:#426d47;font-weight:900}.encyclopedia-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:17px;display:grid}.encyclopedia-bullet-section{background:#f3f8df;border-top:3px solid #77a567;min-width:0;padding:10px 11px 9px}.encyclopedia-bullet-section.is-caution{background:#fff8df;border-top-color:#d99943}.encyclopedia-bullet-section .encyclopedia-section-heading{margin-bottom:5px}.encyclopedia-bullet-section ul{color:#61765e;gap:4px;margin:0;padding-left:16px;font-size:10px;font-weight:700;line-height:1.45;display:grid}.encyclopedia-bullet-section li::marker{color:#70a064}.encyclopedia-bullet-section.is-caution li::marker{color:#d1923d}.encyclopedia-trait-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.encyclopedia-trait{background:#fbf0f9;border:1px solid #8d4c8029;gap:4px;padding:8px 9px;display:grid}.encyclopedia-trait strong{color:#7d5073;font-size:11px;font-weight:900}.encyclopedia-trait span{color:#8b7887;font-size:10px;font-weight:700;line-height:1.4}.encyclopedia-info-row{color:#83617d;background:#f8eef8;border-left:3px solid #9c6bb1;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;padding:8px 10px;font-size:10px;font-weight:800;display:flex}.encyclopedia-info-row strong{color:#704768;text-align:right}.encyclopedia-phase-list{gap:6px;display:grid}.encyclopedia-phase{background:#fbf0f4;border-left:3px solid #a8688d;grid-template-columns:42px minmax(0,1fr);gap:9px;padding:8px 10px;display:grid}.encyclopedia-phase>span{color:#9b5c7e;font-size:13px;font-weight:900}.encyclopedia-phase strong{color:#734c67;font-size:11px}.encyclopedia-phase p{color:#8b7280;margin:3px 0 0;font-size:10px;font-weight:700;line-height:1.4}@keyframes encyclopedia-enter{0%{opacity:0;transform:translateY(12px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@media (width<=860px){.encyclopedia-dialog{height:calc(100dvh - 16px)}.encyclopedia-body{flex-direction:column;display:flex}.encyclopedia-list-panel{border-bottom:1px solid #426b3e29;border-right:0;flex:none}.encyclopedia-list{gap:6px;max-height:105px;display:flex;overflow:auto hidden}.encyclopedia-list-item{width:182px;min-width:182px}.encyclopedia-detail{padding:16px 18px 26px}}@media (width<=560px){.encyclopedia-modal{padding:0}.encyclopedia-dialog{border-width:0;border-radius:0;width:100%;height:100dvh}.encyclopedia-header{padding:16px 16px 12px}.encyclopedia-tabs{padding-inline:12px}.encyclopedia-tab{flex:1 1 0;justify-content:center;padding-inline:5px;font-size:12px}.encyclopedia-detail-hero{grid-template-columns:126px minmax(0,1fr);gap:13px;min-height:126px}.encyclopedia-portrait{width:126px;height:126px}.encyclopedia-hero-copy h3{margin-top:7px;font-size:21px}.encyclopedia-hero-copy p{font-size:11px}.encyclopedia-chip-row{margin-top:7px}.encyclopedia-chip{font-size:9px}.encyclopedia-controls{flex-direction:column;align-items:flex-start;gap:8px}.encyclopedia-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.encyclopedia-info-grid,.encyclopedia-route-grid,.encyclopedia-columns,.encyclopedia-trait-list{grid-template-columns:1fr}.encyclopedia-section-heading small{max-width:52%}.home-user-bar{gap:6px}.lore-button{padding-inline:8px}}
