@font-face{font-family:Vazir;src:local('Vazirmatn')}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font:14px Vazir,Tahoma,Arial,sans-serif;background:#111f27;color:#e8ddc2;--gold:#d6ad65;--ink:#17252b;--line:#755b39;--panel:#17262d}button,select,input{font:inherit;color:inherit}button{cursor:pointer;background:#1b2d34;border:1px solid #695638;border-radius:5px;padding:8px 12px}button:hover,button:focus-visible{border-color:#e5c783;background:#35403d}button.active{background:linear-gradient(135deg,#997038,#c7a058);color:#13232a;border-color:#f3d799;font-weight:bold}header{height:70px;display:flex;justify-content:space-between;align-items:center;padding:8px 20px;border-bottom:1px solid #937242;background:linear-gradient(100deg,#19272b,#111b22,#273334);position:relative;gap:12px}header:after,footer:before{content:"";position:absolute;inset:4px;border:1px solid #a2824a45;pointer-events:none}h1{font-size:22px;letter-spacing:.2px;margin:0;color:#e5c47e}small{color:#b8b4a1;font-size:11px;line-height:1.7}.title{text-align:center}.title small{display:block}.shell{height:calc(100dvh - 70px - 112px);display:grid;grid-template-columns:258px minmax(0,1fr) 155px;direction:rtl;min-height:0}.panel{background:linear-gradient(160deg,#1e3034,#15242a);overflow:auto;direction:rtl;border-left:1px solid #8e713f;padding:13px;scrollbar-width:thin;scrollbar-color:#8a7048 #16262c}.menu{border-right:1px solid #8e713f;border-left:0;padding:10px 8px}.menu button{width:100%;margin-bottom:6px;display:flex;align-items:center;gap:8px;justify-content:flex-start;text-align:right;padding:10px 8px;font-size:12px}.menu svg{width:21px;height:21px;color:#e1bc78;flex-shrink:0}.menu button.active svg{color:#192b2f}.menu .legend{font-size:10px;line-height:2;padding:7px 6px;border-top:1px solid #705e41;color:#c5c5b5}.menu .legend span{color:var(--gold)}.mapbox{position:relative;overflow:hidden;min-width:0;min-height:0;background:#193846;direction:ltr}.mapbox svg#map{width:100%;height:100%;display:block;touch-action:none;user-select:none;cursor:grab}.mapbox svg#map.dragging{cursor:grabbing}.maptools{position:absolute;top:9px;right:9px;display:flex;gap:5px;direction:rtl;flex-wrap:wrap}.maptools button{background:#142b34ed;padding:6px 9px;font-size:12px;color:#e3c68b;box-shadow:0 2px 5px #0003}.mapnote{position:absolute;bottom:9px;left:10px;right:10px;color:#e9ddc0;text-align:center;background:#182c33da;padding:6px;border:1px solid #94784c70;border-radius:5px;direction:rtl;font-size:10px;pointer-events:none}.natural-label{font-family:Tahoma,Arial;font-weight:bold;fill:#e9e0bc;stroke:#26434a;stroke-width:3;paint-order:stroke;letter-spacing:.3px;font-size:16px}.territory-label{font-family:Tahoma,Arial;font-weight:bold;fill:#fff1cf;stroke:#26312c;stroke-width:4;paint-order:stroke;text-anchor:middle;pointer-events:none}.territory-shape{cursor:pointer;transition:fill-opacity .18s}.territory-shape:hover{fill-opacity:.86;stroke:#fff4bf;stroke-width:4}.pin{cursor:pointer;outline:none}.pin .halo{fill:#1b302d;stroke:#f3d694;stroke-width:1.5}.pin:hover .halo,.pin:focus .halo,.pin.selected .halo{stroke:white;stroke-width:3;fill:#a17635}.pin-label{font-size:12px;font-weight:bold;fill:#fff2ce;stroke:#26322f;stroke-width:3;paint-order:stroke;pointer-events:none}.route{cursor:pointer;fill:none;stroke:#fbda94;stroke-width:3.5;stroke-dasharray:7 6;paint-order:stroke;filter:drop-shadow(0 1px 1px #27323a)}.route:hover{stroke:white;stroke-width:5}.tooltip{display:none;position:absolute;z-index:3;max-width:min(290px,80%);background:#15282eea;color:#f2dfb3;border:1px solid #d3ad68;border-radius:5px;pointer-events:none;padding:9px;direction:rtl;line-height:1.7;font-size:12px;box-shadow:0 4px 10px #0005}.panel h2{font-size:18px;color:#efcc8a;margin:8px 0}.panel h3{font-size:13px;color:#d7b677;margin:12px 0 7px}.panel p{font-size:12px;line-height:1.9;margin:7px 0}.panel .picture{aspect-ratio:16/9;width:100%;height:auto;max-height:155px;object-fit:cover;border:1px solid #b68e50;border-radius:6px;background:#243a40}.panel .tag{display:inline-block;font-size:10px;padding:2px 6px;border:1px solid #8e754f;border-radius:4px;margin:2px;color:#e6c98f}.panel select,.panel input{width:100%;background:#15282f;border:1px solid #796345;border-radius:4px;padding:8px;color:#e8ddc2;margin:4px 0}.panel input::placeholder{color:#b2b2a4}.panel label{display:block;color:#d0c7b1;font-size:11px;margin-top:5px}.panel label input[type=checkbox]{width:auto;vertical-align:middle;margin-left:5px;accent-color:#d6ad65}.panel details{border-top:1px solid #62563e;margin-top:10px;padding-top:8px}.panel summary{color:#d6b16d;cursor:pointer;font-size:12px}.panel .row{display:flex;justify-content:space-between;gap:5px;margin:8px 0}.panel .row>*{flex:1}.result{width:100%;margin:3px 0;text-align:right;font-size:11px;padding:7px;background:#25383b;border-color:#554f38}.result small{display:block}.source{color:#b5d7d4;font-size:11px;overflow-wrap:anywhere}.summary{color:#d6c8ad}.muted{color:#b1b5a8;font-size:11px}.eraName{font-size:14px;color:#e6c485;text-align:center}.back{float:left;font-size:11px;padding:4px 8px}.stop{border-right:2px solid #bfa166;padding:6px 7px;margin:5px 0;background:#23383d;border-radius:3px}.stop button{width:100%;text-align:right;font-size:11px;padding:6px}footer{height:112px;background:#132129;position:relative;border-top:1px solid #95733d;padding:9px 14px;direction:rtl;display:flex;gap:10px;align-items:center}#timeline{display:flex;gap:6px;overflow-x:auto;min-width:0;flex:1;height:92px;scrollbar-width:thin;scrollbar-color:#8d7549 #132129;direction:rtl}.eraCard{min-width:105px;width:105px;height:80px;padding:3px;background:#1c2a2d;border:1px solid #725f40;text-align:center;position:relative;flex-shrink:0}.eraCard img{height:44px;width:100%;object-fit:cover;display:block;border-radius:2px}.eraCard span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;margin-top:4px}.eraCard.active{box-shadow:0 0 10px #c99c45a0}.eraCard.active img{opacity:1}.eraCard:after{content:"";position:absolute;bottom:-7px;left:50%;width:5px;height:5px;border-radius:50%;background:#d4ab64}.timelineCtl{display:flex;flex-direction:column;gap:4px;flex-shrink:0}.timelineCtl button{padding:5px;font-size:11px}.hidden{display:none!important}#mobilePanel{display:none}.count{font-size:11px;color:#e5c78b}.badge{font-size:10px;color:#d7c4a4}.stage-arrow{padding:6px 8px}
@media(min-width:1500px){.shell{grid-template-columns:290px minmax(0,1fr) 175px}.eraCard{width:110px;min-width:110px}.menu button{font-size:13px}.panel h2{font-size:20px}}
@media(max-width:850px){header{height:58px;padding:6px 10px}h1{font-size:16px}.title small{font-size:9px}.shell{height:calc(100dvh - 58px - 94px);grid-template-columns:minmax(0,1fr) 55px}.panel:not(.menu){position:absolute;right:0;top:58px;bottom:94px;width:min(290px,85vw);z-index:6;display:none;box-shadow:-8px 0 15px #0005}.panel.open{display:block}.menu{padding:6px 4px;overflow:hidden}.menu button{padding:8px 5px;display:block;text-align:center;font-size:9px}.menu svg{display:block;margin:auto;width:19px;height:19px}.menu .legend{display:none}#mobilePanel{display:block}.maptools{right:4px;top:5px;gap:3px}.maptools button{font-size:10px;padding:5px}.mapnote{font-size:9px;bottom:4px}.header-side{display:none}footer{height:94px;padding:5px 7px;gap:4px}#timeline{height:78px}.eraCard{height:66px;width:87px;min-width:87px}.eraCard img{height:35px}.eraCard span{font-size:9px}.timelineCtl button{padding:4px;font-size:10px}}


.territory-shape{filter:drop-shadow(0 1px 1px #64512c70)}.eraCard img{height:44px;max-height:44px}.territory-label{letter-spacing:.2px}.pin-label{direction:rtl}.panel .picture{display:block;margin-top:5px}.menu button{line-height:1.5}.mapbox{box-shadow:inset 0 0 25px #0d1c22}.mapbox:after{content:"";position:absolute;inset:5px;border:1px solid #b89a6050;pointer-events:none}