.app{display:flex;flex-direction:column;height:100vh;width:100vw}.app-header{flex:0 0 auto;display:flex;align-items:center;padding:10px 18px;background:linear-gradient(180deg,#101a2b,#0b1220);border-bottom:1px solid #1d2a40}.brand{display:flex;align-items:center;gap:12px}.brand .logo{font-size:28px;color:#ffd76a;line-height:1}.brand h1{margin:0;font-size:18px;letter-spacing:.4px}.brand p{margin:2px 0 0;font-size:12px;color:#8ba0bd}.app-main{position:relative;flex:1 1 auto;display:flex;min-height:0}.map-wrap{position:relative;flex:1 1 auto;min-width:0;overflow:hidden;background:#03060c}.map-canvas{display:block;cursor:grab;touch-action:none}.map-canvas:active{cursor:grabbing}.map-switch{position:absolute;top:14px;left:50%;transform:translate(-50%);display:flex;gap:6px;padding:4px;background:#0a101ad9;border:1px solid #26374f;border-radius:10px}.map-switch button{padding:7px 16px;font-size:13px;font-weight:600;color:#a9bcd4;background:transparent;border:1px solid transparent;border-radius:7px;cursor:pointer}.map-switch button:hover:not(:disabled){color:#e6edf6;background:#1e2e46e6}.map-switch button.active{color:#101827;background:#ffd76a;border-color:#ffd76a}.map-switch button:disabled{opacity:.55;cursor:wait}.map-controls{position:absolute;top:14px;right:14px;display:flex;flex-direction:column;gap:6px}.map-controls button{width:38px;height:38px;font-size:18px;color:#dbe7f6;background:#101a2be6;border:1px solid #26374f;border-radius:8px;cursor:pointer;transition:background .15s,border-color .15s}.map-controls button:hover{background:#1e2e46f2;border-color:#3d5a7a}.map-controls button.active{background:#2b6d9c;border-color:#4b9cd3;color:#fff}.map-hint{position:absolute;left:14px;bottom:14px;padding:6px 12px;font-size:12px;color:#a9bcd4;background:#0a101ab8;border:1px solid #1d2a40;border-radius:8px;pointer-events:none}.map-stats{position:absolute;right:14px;bottom:14px;padding:6px 12px;font-size:12px;color:#9fb2c9;background:#0a101ab8;border:1px solid #1d2a40;border-radius:8px;pointer-events:none}.tile-info{position:absolute;left:14px;top:14px;min-width:190px;padding:10px 12px;background:#0a101ae0;border:1px solid #26374f;border-radius:10px;font-size:13px;pointer-events:none}.tile-info-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}.tile-info-row{display:flex;justify-content:space-between;gap:16px;padding:2px 0;color:#a9bcd4}.tile-info-row span:last-child{color:#e6edf6}.swatch{display:inline-block;width:14px;height:14px;border-radius:3px;border:1px solid rgba(255,255,255,.25);flex:0 0 auto}.map-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#03060cd9;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.loader{text-align:center;color:#dbe7f6}.loader p{margin:10px 0 4px;font-size:15px}.loader .muted{font-size:12px;color:#7e93af}.loader.error p:first-child{color:#ff9c8a;font-weight:600}.loader code{background:#14203300;color:#ffd76a}.progress{width:260px;height:8px;margin:12px auto 0;background:#16233a;border:1px solid #26374f;border-radius:5px;overflow:hidden}.progress-bar{height:100%;background:linear-gradient(90deg,#2b6d9c,#ffd76a);transition:width .2s ease-out}.muted.small{margin-top:6px;font-size:11px}.economy-bar{display:flex;align-items:center;gap:16px;padding:8px 14px;background:#0a101ae6;border:1px solid #26374f;border-radius:10px;margin:8px auto 0;max-width:720px;font-size:13px;color:#dbe7f6}.economy-label{font-weight:700;color:#ffd76a;letter-spacing:.5px}.economy-res{flex:1 1 auto;font-weight:700;font-size:14px;font-variant-numeric:tabular-nums}.economy-inc{flex:0 0 auto;color:#9fb2c9;font-size:11px;font-variant-numeric:tabular-nums}.economy-bar button{flex:0 0 auto;padding:6px 12px;font-size:12px;background:#1e2e46e6;border:1px solid #3d5a7a;border-radius:6px;color:#dbe7f6;cursor:pointer}.economy-bar button:hover{background:#2b6d9ce6;border-color:#4b9cd3}.unit-panel{position:absolute;left:14px;bottom:52px;width:240px;padding:12px;background:#0a101aeb;border:1px solid #26374f;border-radius:10px;font-size:13px}.unit-panel-head{display:flex;align-items:center;gap:10px}.unit-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;font-size:20px;background:#101827;border:2px solid #888;border-radius:50%}.unit-panel-head .ghost{margin-left:auto;width:26px;height:26px;color:#a9bcd4;background:transparent;border:1px solid #26374f;border-radius:6px;cursor:pointer}.unit-panel-head .ghost:hover{color:#fff;border-color:#3d5a7a}.unit-blurb{margin:8px 0 10px;color:#a9bcd4;line-height:1.45}.unit-roster-title{margin-bottom:4px;text-transform:uppercase;letter-spacing:.8px;font-size:10px}.unit-roster{list-style:none;margin:0;padding:0;max-height:150px;overflow-y:auto}.unit-roster li{display:flex;align-items:center;gap:8px;padding:2px 0}.unit-roster-name{flex:1 1 auto}.unit-roster-n{color:#ffd76a;font-weight:700}.muted{color:#7e93af}.small{font-size:11px}.spinner{width:42px;height:42px;margin:0 auto;border:3px solid #24344c;border-top-color:#ffd76a;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.legend{flex:0 0 240px;padding:16px;overflow-y:auto;background:#0b1220;border-left:1px solid #1d2a40}.legend h2{margin:0 0 10px;font-size:13px;text-transform:uppercase;letter-spacing:1px;color:#8ba0bd}.legend h2:not(:first-child){margin-top:22px}.legend ul{list-style:none;margin:0;padding:0}.legend li{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:13px}.legend-name{flex:1 1 auto}.legend .tag{font-size:10px;color:#7e93af;text-transform:uppercase;letter-spacing:.5px}.legend .notes{display:block}.legend .notes li{display:list-item;list-style:disc;margin-left:16px;font-size:12px;color:#9fb2c9;line-height:1.5}.legend .notes b{color:#dbe7f6}*,*:before,*:after{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:Segoe UI,system-ui,-apple-system,Roboto,Arial,sans-serif;background:#0a0f18;color:#e6edf6;-webkit-font-smoothing:antialiased;overflow:hidden}button{font-family:inherit}
