/* Kingdom 1066 classic map skin restored from the user's proven map. */
.legacy-map-root{--lm-bg:#07110f;--lm-panel:rgba(10,20,18,.88);--lm-line:rgba(255,255,255,.09);--lm-text:#f3f7f5;--lm-muted:#8ea39b;--lm-gold:#f0bd62;--lm-green:#47d68a;--lm-cyan:#64d8ff;--lm-red:#ff6d66;--lm-shadow:0 20px 70px rgba(0,0,0,.38);position:relative;height:100%;min-height:0;color:var(--lm-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.legacy-map-root *{box-sizing:border-box}.legacy-map-root button,.legacy-map-root input{font:inherit}.legacy-map-root button{color:inherit}.legacy-map-root [hidden]{display:none!important}.legacy-map-root .glass{background:linear-gradient(180deg,rgba(18,35,30,.88),rgba(7,15,13,.84));backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--lm-line);box-shadow:var(--lm-shadow)}
.desktop-window.app-map .window-content{padding:0!important;overflow:hidden!important;background:#07110f!important}
.legacy-map-root .map-card{position:relative;width:100%;height:100%;min-height:460px;overflow:hidden;background:#0d1714}
.legacy-map-root #mapCanvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.legacy-map-root #mapCanvas.dragging{cursor:grabbing}
.legacy-map-root .hud-left{position:absolute;left:14px;top:14px;z-index:12}.legacy-map-root .hud-right{position:absolute;right:14px;top:14px;z-index:12}.legacy-map-root .hud-badge{border-radius:999px;padding:10px 14px;font-size:12px;color:#bcd0c7;display:flex;gap:9px;align-items:center}.legacy-map-root .pulse{width:8px;height:8px;border-radius:50%;background:#48df91;box-shadow:0 0 0 5px rgba(72,223,145,.10),0 0 18px rgba(72,223,145,.7)}
.legacy-map-root .map-top-actions{display:flex;align-items:center;gap:7px}.legacy-map-root .icon-btn,.legacy-map-root .primary-btn,.legacy-map-root .chip,.legacy-map-root .tab,.legacy-map-root .zoom-stack button{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.05);cursor:pointer}.legacy-map-root .icon-btn{width:42px;height:42px;border-radius:13px;font-size:20px;display:grid;place-items:center}.legacy-map-root .icon-btn.small{width:34px;height:34px;border-radius:11px}.legacy-map-root .primary-btn{height:42px;padding:0 15px;border-radius:13px;background:linear-gradient(135deg,#eab45b,#b87d2e);color:#1c1408;font-weight:900}.legacy-map-root .map-refresh-btn{background:linear-gradient(135deg,rgba(240,189,98,.96),rgba(178,116,35,.96));display:flex;align-items:center;gap:8px}.legacy-map-root .refresh-dot{width:8px;height:8px;border-radius:50%;background:#6f3b14;box-shadow:0 0 0 4px rgba(255,255,255,.12)}.legacy-map-root .map-refresh-btn.is-busy .refresh-dot{animation:legacyPulse 1s infinite}.legacy-map-root .map-refresh-btn.is-busy{pointer-events:none;opacity:.78}@keyframes legacyPulse{50%{transform:scale(1.45);opacity:.55}}
.legacy-map-root .zoom-stack{position:absolute;right:14px;top:68px;z-index:11;border-radius:16px;padding:5px;display:grid;gap:4px}.legacy-map-root .zoom-stack button{width:38px;height:38px;border-radius:11px;font-size:20px}.legacy-map-root .zoom-stack button:hover,.legacy-map-root .icon-btn:hover,.legacy-map-root .chip:hover,.legacy-map-root .tab:hover{background:rgba(255,255,255,.09)}
.legacy-map-root .map-bottombar{position:absolute;left:14px;right:14px;bottom:14px;z-index:9;border-radius:18px;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.legacy-map-root .map-kpis{display:flex;gap:18px;flex-wrap:wrap}.legacy-map-root .map-kpis div{display:flex;align-items:baseline;gap:6px}.legacy-map-root .map-kpis span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#82988f}.legacy-map-root .map-kpis strong{font-size:14px}.legacy-map-root .coords{font-size:12px;color:#9fb4ab;font-variant-numeric:tabular-nums}
.legacy-map-root .search-panel,.legacy-map-root .detail-panel,.legacy-map-root .alliance-dock{position:absolute;border-radius:22px}.legacy-map-root .search-panel{left:338px;top:70px;z-index:30;width:min(430px,calc(100% - 366px));padding:16px}.legacy-map-root .detail-panel{right:14px;bottom:78px;z-index:24;width:min(380px,calc(100% - 28px));padding:16px}.legacy-map-root .alliance-dock{left:14px;right:auto;top:70px;z-index:20;width:310px;max-height:calc(100% - 160px);padding:14px;transition:.25s ease}.legacy-map-root .alliance-dock.collapsed{transform:translateX(calc(-100% + 44px))}.legacy-map-root .alliance-dock.collapsed .filter-row,.legacy-map-root .alliance-dock.collapsed .alliance-list,.legacy-map-root .alliance-dock.collapsed .dock-head>div{opacity:0;pointer-events:none}.legacy-map-root .panel-head,.legacy-map-root .dock-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.legacy-map-root .panel-head h2,.legacy-map-root .dock-head h3{margin:3px 0 0;font-size:17px}.legacy-map-root .eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;color:#8da39a}
.legacy-map-root .search-input{width:100%;margin:14px 0 10px;border-radius:14px;border:1px solid rgba(255,255,255,.09);background:#07110f;color:#fff;padding:12px 13px;outline:none}.legacy-map-root .search-input:focus{border-color:rgba(240,189,98,.5);box-shadow:0 0 0 3px rgba(240,189,98,.08)}.legacy-map-root .search-tabs,.legacy-map-root .filter-row{display:flex;gap:6px;margin-bottom:10px}.legacy-map-root .tab,.legacy-map-root .chip{border-radius:999px;padding:8px 11px;font-size:11px;font-weight:800;color:#b7c6c0}.legacy-map-root .tab.active,.legacy-map-root .chip.active{background:rgba(240,189,98,.16);border-color:rgba(240,189,98,.38);color:#f6d596}
.legacy-map-root .search-results,.legacy-map-root .alliance-list{display:flex;flex-direction:column;gap:7px;overflow:auto;max-height:470px;padding-right:2px}.legacy-map-root .result,.legacy-map-root .alliance-row{width:100%;text-align:left;border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.035);border-radius:14px;padding:10px 11px;cursor:pointer;display:grid;gap:2px}.legacy-map-root .result:hover,.legacy-map-root .alliance-row:hover{background:rgba(255,255,255,.07)}.legacy-map-root .result strong,.legacy-map-root .alliance-row strong{font-size:13px}.legacy-map-root .result small,.legacy-map-root .alliance-row small{font-size:11px;color:#869d94}.legacy-map-root .alliance-row{grid-template-columns:10px 1fr auto;align-items:center;column-gap:9px}.legacy-map-root .alliance-row.active{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.085);box-shadow:inset 0 0 0 1px rgba(255,255,255,.035)}.legacy-map-root .alliance-row.active strong:after{content:'  • FOCUS';font-size:9px;letter-spacing:.08em;color:#b8c8c1}.legacy-map-root .swatch{width:9px;height:9px;border-radius:50%;box-shadow:0 0 14px currentColor}.legacy-map-root .count{font-size:11px;color:#789087}
.legacy-map-root .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.legacy-map-root .detail-kpi{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.05);padding:10px;border-radius:13px}.legacy-map-root .detail-kpi span{display:block;font-size:10px;color:#839a90;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}.legacy-map-root .detail-kpi strong{font-size:14px}.legacy-map-root .detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.legacy-map-root .tag{font-size:10px;padding:6px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.04)}
.legacy-map-root .legend{position:absolute;left:14px;bottom:78px;z-index:9;border-radius:14px;padding:8px 10px;display:flex;gap:10px;flex-wrap:wrap;font-size:10px;color:#9bb0a7}.legacy-map-root .legend span{display:flex;align-items:center;gap:5px}.legacy-map-root .dot{width:7px;height:7px;border-radius:50%;display:inline-block}.legacy-map-root .dot.focus{background:#f0bd62}.legacy-map-root .dot.shield{background:#64d8ff}.legacy-map-root .dot.burning{background:#ff6d66}.legacy-map-root .map-position-count{padding-left:8px;border-left:1px solid rgba(255,255,255,.1)}
.legacy-map-root .map-card:fullscreen{width:100vw;height:100vh;border-radius:0}.legacy-map-root .map-card:fullscreen .map-bottombar{bottom:18px}
@media(max-width:900px){.legacy-map-root .search-panel{left:62px;right:14px;width:auto;z-index:30}.legacy-map-root .alliance-dock{width:285px}.legacy-map-root .map-kpis div:nth-child(2),.legacy-map-root .map-kpis div:nth-child(3){display:none}.legacy-map-root .coords{font-size:11px}.legacy-map-root .map-top-actions .primary-btn#btnFitKingdom{display:none}}
@media(max-width:620px){.desktop-window.app-map .window-content{padding:0!important}.legacy-map-root .search-panel{left:14px;right:14px;width:auto;top:66px}.legacy-map-root .hud-left{top:10px;left:10px}.legacy-map-root .hud-right{top:10px;right:10px}.legacy-map-root .hud-badge{padding:8px 10px}.legacy-map-root .map-refresh-btn{height:36px;padding:0 10px}.legacy-map-root .map-refresh-btn span:last-child{font-size:10px}.legacy-map-root .icon-btn{width:36px;height:36px;border-radius:11px}.legacy-map-root .zoom-stack{right:10px;top:58px}.legacy-map-root .zoom-stack button{width:34px;height:34px}.legacy-map-root .alliance-dock{top:auto;bottom:72px;left:10px;right:auto;width:min(320px,calc(100% - 20px));max-height:52%}.legacy-map-root .alliance-dock.collapsed{transform:translateY(calc(100% - 44px))}.legacy-map-root .legend{display:none}.legacy-map-root .detail-panel{bottom:72px;right:10px;width:calc(100% - 20px)}.legacy-map-root .map-bottombar{left:10px;right:10px;bottom:10px}.legacy-map-root .map-kpis div:nth-child(4){display:none}}
