:root{--bg:#081116;--panel:#101d20;--panel2:#142225;--panel3:#192b2d;--line:#2a3a3c;--line2:#344a4b;--gold:#d6b77a;--goldhi:#f0dbad;--text:#e1e8dc;--muted:#91a29e;--dim:#607573;--blue:#73c5e4;--red:#e67d6d;--green:#7bc69c}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--text);background:radial-gradient(circle at 12% -20%,#17312e,transparent 45%),#081116;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.38!important}button:focus-visible{outline:2px solid var(--goldhi);outline-offset:2px}button:hover:not(:disabled){filter:brightness(1.16)}.app-shell{max-width:1920px;margin:auto;min-height:100vh;display:flex;flex-direction:column}.topbar{min-height:88px;display:flex;align-items:center;gap:25px;padding:16px 26px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#112021,#0c1719);flex-wrap:wrap}.logo{display:flex;align-items:center;gap:14px;min-width:295px}.sigil{width:46px;height:46px;background:linear-gradient(145deg,#263b38,#122a2a);border:1px solid #6e795e;display:grid;place-items:center;font-size:32px;color:#f3cc83;transform:rotate(45deg);border-radius:5px}.sigil::first-letter{transform:rotate(-45deg)}.logo-name{font-family:Georgia,serif;font-size:27px;letter-spacing:.11em;font-weight:700;white-space:nowrap}.logo-name span{color:var(--gold)}.logo-sub{font-size:9px;letter-spacing:.14em;color:#90a19c;margin-top:3px}.topstats{display:flex;gap:0;flex:1;justify-content:center}.topstat{min-width:128px;padding:2px 22px;border-left:1px solid #293838}.topstat span{display:block;color:var(--dim);font-size:10px;letter-spacing:.13em;font-weight:700;margin-bottom:6px}.topstat strong{color:var(--goldhi);font-size:22px;font-family:Georgia,serif;font-weight:500}.topstat strong small{font-family:inherit;font-size:12px;color:var(--gold)}.top-actions{display:flex;gap:7px;margin-left:auto}.utility{background:#142225;color:#aebeb5;border:1px solid #354748;border-radius:4px;padding:10px 12px;font-size:10px;letter-spacing:.06em;font-weight:800;white-space:nowrap}.top-actions .utility:last-child{color:var(--goldhi);border-color:#5c6249}.workspace{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 378px;min-height:0}.battle-section{padding:22px 22px 16px 26px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;min-height:28px;padding-bottom:14px;color:var(--goldhi);font-size:11px;letter-spacing:.12em;font-weight:800}.panel-head-left{display:flex;align-items:center;gap:8px}.online-dot{display:inline-block;height:7px;width:7px;border-radius:50%;background:#83d2ac;box-shadow:0 0 9px #83d2ac88}.section-dim{color:var(--dim)}.hud-right{font-size:10px;color:#9caeae}.hud-right #enemyTag{color:var(--red)}.separator{color:#394e4e;padding:0 9px}.battleframe{width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;border:1px solid #526655;box-shadow:0 4px 35px #0008;background:#111e1b}.battleframe:after{content:"";position:absolute;inset:0;border:9px solid #03080755;pointer-events:none}.battleframe canvas{width:100%;height:100%;display:block}.canvas-top-left{position:absolute;top:14px;left:14px;z-index:1;display:flex;gap:8px}.team-label{background:#0a1614df;border:1px solid #41504d;padding:7px 10px;border-radius:3px;letter-spacing:.1em;font-size:9px;color:#bdc9c3;font-weight:700}.team-label b{font-size:12px;padding-left:8px;color:#fff}.blue-square,.red-square{display:inline-block;width:7px;height:7px;margin-right:5px;background:var(--blue)}.red-square{background:var(--red)}.timeflag{position:absolute;top:14px;left:50%;transform:translateX(-50%);color:#f1dfb7;font-size:10px;font-weight:700;letter-spacing:.12em;padding:9px 14px;background:#0b1719dd;border:1px solid #6a674d;white-space:nowrap;text-align:center;max-width:65%;overflow:hidden;text-overflow:ellipsis}.battle-bottom{position:absolute;bottom:12px;left:15px;right:15px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.legend{display:flex;align-items:center;gap:15px;color:#dae5d7;font-size:10px;background:#091312db;padding:8px 11px;flex-wrap:wrap}.legend span{white-space:nowrap}.legend i{display:inline-block;width:7px;height:7px;vertical-align:middle;margin-right:5px}.legend-blue{background:var(--blue)}.legend-red{background:var(--red)}.legend-amber{background:#e0b068}.legend-teal{background:#76d6bc}.map-control{pointer-events:auto}.map-control button{background:#101d1edc;color:#c5cecb;border:1px solid #59635c;padding:8px 11px;font-size:10px;font-weight:700}.belowbattle{display:grid;grid-template-columns:1fr 1fr minmax(190px,.85fr);gap:12px;margin-top:14px}.core-card,.battlefeed{background:#101d1f;border:1px solid #273b3b;padding:16px}.card-kicker{color:#8c9f98;letter-spacing:.15em;font-size:10px;font-weight:800;margin-bottom:9px}.hp-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.hp-line b{font-family:Georgia,serif;font-size:17px;font-weight:500}.hp-line span{font-weight:800;color:var(--gold);font-size:11px}.hp-track{height:7px;background:#304242;overflow:hidden;border:1px solid #435252}.hp-fill{height:100%;transition:width .2s}.own-hp{background:linear-gradient(90deg,#3e8b8e,#86cfcd)}.enemy-hp{background:linear-gradient(90deg,#983e39,#eb8e78)}.speed-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.speed-buttons button{padding:7px 2px;background:#1d3030;color:#93a9a4;border:1px solid #3b5050;border-radius:3px;font-size:12px;font-weight:800}.speed-buttons button.active{color:#1a231e;background:var(--gold);border-color:var(--gold)}.battlefeed{margin-top:13px;padding:13px 16px}.battle-log{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;min-height:20px;color:#a9bcb2}.battle-log span:first-child{color:#e5d0a2}.battle-log em{font-style:normal;color:#6b8786;margin-right:5px}.command-section{background:linear-gradient(170deg,#192a2b,#101d1f 70%);border-left:1px solid #38504b;display:flex;flex-direction:column;min-height:0}.command-head{display:flex;align-items:center;justify-content:space-between;padding:25px 21px 18px}.eyebrow{font-size:9px;letter-spacing:.2em;font-weight:800;color:var(--gold);margin-bottom:8px}.command-head h2{font-size:19px;letter-spacing:.045em;font-family:Georgia,serif;font-weight:500;margin:0}.crest{font-size:27px;color:#cfad74;border:1px solid #5c624f;width:37px;height:37px;display:grid;place-items:center}.tabs{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #465451;border-top:1px solid #354846;margin:0 20px}.tabs button{border:0;background:transparent;color:#8b9c98;font-size:10px;font-weight:800;letter-spacing:.09em;padding:15px 0;position:relative}.tabs button.active{color:var(--goldhi)}.tabs button.active:after{content:"";height:2px;background:var(--gold);position:absolute;bottom:-1px;left:0;right:0}.command-content{padding:19px 20px 24px;overflow-y:auto;flex:1;max-height:calc(100vh - 235px);min-height:550px;scrollbar-width:thin;scrollbar-color:#53665e transparent}.side-footer{font-size:9px;font-weight:800;letter-spacing:.035em;color:#6c8480;border-top:1px solid #324746;padding:15px 20px;display:flex;justify-content:space-between;gap:10px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;letter-spacing:.13em;font-weight:800;color:#d2bf93;margin-bottom:11px;margin-top:18px}.section-title:first-child{margin-top:0}.section-title small{color:#7b9490;font-size:10px;font-weight:600;letter-spacing:0}.town-card{background:#1e3030;border:1px solid #4e5c50;padding:14px;margin-bottom:11px}.town-top{display:flex;justify-content:space-between;align-items:center}.town-icon{font-size:26px;color:var(--gold);margin-right:12px}.town-info{flex:1}.town-name{font-weight:800;font-size:13px}.town-desc{font-size:11px;color:#98aca4;margin-top:4px}.pill{font-size:10px;font-weight:800;color:var(--gold);background:#33413a;padding:5px 7px}.progress-mini{height:5px;background:#43534b;margin-top:13px}.progress-mini div{height:100%;background:var(--gold)}.cmd-button{border-radius:3px;border:1px solid #81765a;background:linear-gradient(#cbb17b,#ad925f);color:#151c19;font-size:11px;letter-spacing:.04em;font-weight:900;min-height:36px;padding:9px 12px;text-align:center}.cmd-button.outline{background:#203132;color:#dae5d5;border-color:#566c64}.cmd-button.secondary{background:#253737;color:var(--goldhi);border-color:#656d54}.cmd-button.full{width:100%;margin-top:10px}.building-row{display:flex;align-items:center;gap:10px;background:#182a2b;border:1px solid #344747;margin:7px 0;padding:10px;min-height:68px}.building-icon{height:41px;width:41px;display:grid;place-items:center;background:#2a3d39;border:1px solid #4a5b4d;font-size:23px;flex-shrink:0}.building-copy{flex:1;min-width:0}.building-name{font-size:12px;font-weight:800}.building-detail{font-size:10px;color:#94a99d;margin-top:4px;line-height:1.45}.building-row button{font-size:10px;padding:8px 6px;min-width:70px;background:#273837;color:var(--goldhi);border:1px solid #67694f;border-radius:2px;font-weight:800}.building-row button:disabled{border-color:#414c49}.small-note{color:#839b92;font-size:11px;line-height:1.55;margin:8px 0 14px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.resource-box{background:#1a2c2c;border:1px solid #344844;padding:12px 5px;text-align:center}.resource-box b{display:block;font:22px Georgia,serif;color:var(--goldhi)}.resource-box span{display:block;color:#7d9790;font-size:9px;letter-spacing:.075em;margin-top:6px}.hero-card{border:1px solid #3e524b;background:linear-gradient(135deg,#203534,#192929);padding:13px;margin:9px 0}.hero-top{display:flex;gap:10px;align-items:center}.hero-avatar{width:52px;height:52px;flex-shrink:0;background:#314b44;border:1px solid #6a7b66;display:grid;place-items:center;font-size:29px}.hero-card:nth-child(3) .hero-avatar{background:#374354}.hero-name{font-size:14px;font-weight:800}.hero-status{color:#c4b88f;margin-top:4px;font-size:10px}.hero-path{font-size:10px;color:#8ea7a2;margin-top:11px;line-height:1.6}.skill-choice{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}.skill-choice button{background:#283b3b;color:#d3e2d4;border:1px solid #657561;text-align:left;padding:9px 6px;min-height:63px}.skill-choice button b{display:block;color:#e8d29e;font-size:10px;margin-bottom:3px}.skill-choice button span{font-size:9px;line-height:1.4;color:#a7bab0}.skill-earned{font-size:10px;color:#b1cbb8;background:#263b35;margin-top:6px;padding:8px 9px;border-left:2px solid #c8b782}.upgrade-card{border:1px solid #39514c;margin:8px 0;background:#1b2e2d;padding:11px}.upgrade-heading{display:flex;align-items:center;justify-content:space-between;font-weight:800;font-size:12px}.upgrade-badges{color:var(--gold);font-size:10px;margin-top:5px}.upgrade-info{font-size:10px;color:#91a79e;margin-top:5px;line-height:1.4}.upgrade-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin-top:9px}.upgrade-actions button{background:#263a39;border:1px solid #576c61;color:#d8ccb0;padding:8px 3px;font-size:9px;text-align:center}.tactic-button{display:block;width:100%;background:#1b3030;color:#bacdc4;border:1px solid #364f48;text-align:left;padding:13px;margin:7px 0}.tactic-button b{display:block;color:#e5eadf;font-size:12px;margin-bottom:4px}.tactic-button span{font-size:10px;color:#a2b2a9;line-height:1.5}.tactic-button.active{border-color:#bba16c;background:#354238}.tactic-button.active b{color:#ead1a1}.hint-tag{font-size:10px;border:1px solid #4d5d56;padding:5px 7px;color:#a0b1a5}.bottom-status{padding:10px 26px;background:#0b1517;border-top:1px solid #283b38;display:flex;justify-content:space-between;gap:20px;color:#657d76;letter-spacing:.1em;font-size:9px;font-weight:700}.overlay{position:fixed;inset:0;z-index:100;background:#030a0cdd;display:none;place-items:center;padding:24px;overflow-y:auto}.overlay.show{display:grid}.dialog{max-width:760px;width:100%;border:1px solid #8b8764;background:radial-gradient(circle at 50% -50%,#344c3f,transparent 65%),#152524;padding:30px;box-shadow:0 25px 85px #000c}.dialog .eyebrow{color:#d6ba83}.dialog h1{font:42px/1.1 Georgia,serif;margin:8px 0 12px;color:#f0e3c3;letter-spacing:.07em}.dialog p{line-height:1.75;color:#aec3b6;font-size:13px}.dialog .intro{font:20px Georgia,serif;color:#e0d3b1}.modal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.modal-actions .cmd-button{min-height:42px;min-width:165px}.campaign-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0}.stage-choice{background:#203433;border:1px solid #556a5c;color:#dbe2d5;padding:13px 4px}.stage-choice span{display:block;font:23px Georgia,serif;color:#e6c992}.stage-choice small{display:block;font-size:9px;margin-top:6px;color:#a3b8ab}.stage-choice.selected{border:2px solid #e1c17d;background:#394a3b}.stage-choice.locked{opacity:.3}.checklist{display:grid;grid-template-columns:repeat(2,1fr);gap:7px 25px;padding:10px 0}.checklist div{font-size:11px;color:#a6bbaf;line-height:1.6}.checklist b{color:#e4d3ae}.dialog-rule{border:0;border-top:1px solid #3b5248;margin:17px 0}.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 20px}.guide-grid p{margin:4px 0 11px}.error-note{color:#ee998d;font-size:11px}.end-title.win{color:#a9d5af}.end-title.lose{color:#e59c8e}.end-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.end-stats div{background:#243532;padding:15px;text-align:center}.end-stats b{display:block;font:28px Georgia,serif;color:#ebd6a8}.end-stats span{font-size:10px;color:#9bad9f}.settings-text{font-size:11px;color:#849e92;margin-top:14px}
@media(max-width:1280px){.topbar{gap:10px}.logo{min-width:235px}.logo-name{font-size:23px}.topstat{min-width:103px;padding:2px 13px}.workspace{grid-template-columns:minmax(0,1fr) 340px}.battle-section{padding:15px}.command-content{padding:15px}.top-actions .utility{padding:8px}.legend{gap:8px}}
@media(max-width:980px){.workspace{display:flex;flex-direction:column}.command-section{border-left:0;border-top:1px solid #40514a}.command-content{max-height:none;min-height:0}.topbar{justify-content:space-between}.topstats{order:3;flex-basis:100%;justify-content:space-around}.command-head{padding:18px}.belowbattle{grid-template-columns:1fr 1fr}.speed-card{grid-column:span 2}.side-footer{padding:12px 20px}.bottom-status{flex-wrap:wrap}.panel-head{flex-wrap:wrap;gap:7px}}
@media(max-width:550px){.topbar{padding:13px;gap:11px}.logo{min-width:unset}.logo-name{font-size:21px}.logo-sub{font-size:7px}.sigil{width:36px;height:36px;font-size:22px}.topstat{padding:0 6px;min-width:0}.topstat span{font-size:8px;letter-spacing:.02em}.topstat strong{font-size:15px}.top-actions .utility{font-size:9px}.battle-section{padding:12px}.panel-head{font-size:9px}.hud-right{font-size:8px}.canvas-top-left{top:5px;left:5px;gap:4px}.team-label{font-size:8px;padding:4px}.team-label b{font-size:9px}.timeflag{top:32px;font-size:7px;padding:5px}.battle-bottom{bottom:4px;left:5px;right:5px}.legend{font-size:7px;padding:4px;gap:5px}.legend i{width:5px;height:5px}.map-control button{font-size:8px;padding:4px}.core-card{padding:10px}.hp-line b{font-size:13px}.card-kicker{font-size:8px}.dialog{padding:19px}.dialog h1{font-size:29px}.campaign-grid{grid-template-columns:repeat(5,1fr);gap:4px}.stage-choice{padding:9px 2px}.stage-choice span{font-size:17px}.stage-choice small{font-size:7px}.guide-grid,.checklist{grid-template-columns:1fr}.end-stats{gap:4px}.end-stats div{padding:8px}.end-stats b{font-size:20px}}
