/* Original WAR ATLAS menu and presentation tokens. No game hit-layer changes. */
:root{--atlas-paper:#ccc6b7;--atlas-metal:#2e2e2c;--atlas-brass:#a39b81;--atlas-ink:#111210}
.playable-integrated .atlas-home.home-screen{max-width:none;margin:0;position:relative;isolation:isolate;width:100%;height:100svh;min-height:620px;padding:0;overflow:hidden;background:#262725;color:var(--atlas-paper);font-family:"Segoe UI","Microsoft YaHei","Yu Gothic",sans-serif}
.atlas-backdrop{position:absolute;inset:0;z-index:-2;background:#31312f url('./battlefield.jpg') center center/cover no-repeat;pointer-events:none}
.atlas-home:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(14,14,13,.28),rgba(19,19,17,.06) 48%,rgba(11,11,10,.64));pointer-events:none}
.atlas-logo{position:absolute;top:max(13%,116px);left:50%;transform:translateX(-50%);width:min(690px,84vw);text-align:center;filter:drop-shadow(0 3px 1px #161715);pointer-events:none}
.atlas-logo>span{font:700 clamp(16px,1.7vw,25px)/1.2 Georgia,serif;letter-spacing:.32em;color:#c7c2b3}
.playable-integrated .atlas-logo h1{margin:5px 0 0!important;font:900 clamp(46px,6.6vw,98px)/1 Impact,"Arial Black",Georgia,serif;white-space:nowrap;letter-spacing:.01em;font-family:Impact,"Arial Narrow","Arial Black",sans-serif!important;color:#bfbaaa;-webkit-text-stroke:1px #1d1d1c;text-shadow:0 2px 0 #787774,0 5px 0 #171815;background:linear-gradient(#d7d1c1 4%,#a7a6a3 48%,#d0cabb 50%,#969591 96%);background-clip:text;-webkit-text-fill-color:transparent}
.atlas-logo-rule{height:25px;display:flex;justify-content:center;align-items:center}.atlas-logo-rule:before,.atlas-logo-rule:after{content:"";height:2px;width:28%;background:#b7af96;box-shadow:0 2px #212120}.atlas-logo-rule svg{width:70px;height:22px;stroke:#bfbca5;fill:none;stroke-width:1.5}
.atlas-logo p{font:700 clamp(19px,2vw,29px)/1.3 "SimSun","Songti SC",serif;margin:2px 0 0;letter-spacing:.48em;padding-left:.48em;color:#ccc7b8}
.atlas-motto-field{position:absolute;inset:0 0 auto;height:49%;pointer-events:none;overflow:hidden;contain:layout paint;z-index:1}
.atlas-slogan{position:absolute;box-sizing:border-box;max-width:calc(100% - 32px);text-align:center;color:var(--slogan-color,#e0daca);font:800 clamp(24px,2.4vw,36px)/1.15 Georgia,"Microsoft YaHei","Yu Gothic",serif;text-shadow:0 2px 2px #000000;margin:0;padding:8px 14px;pointer-events:none;will-change:transform,opacity;overflow-wrap:normal;word-break:normal;background:#121311d9;border-left:3px solid currentColor;border-right:3px solid currentColor}
.atlas-slogan span{display:block;text-wrap:balance}.atlas-slogan small{display:block;margin-top:5px;font:600 13px/1.3 "Segoe UI","Microsoft YaHei",sans-serif;letter-spacing:.08em;color:#d8d2c3}
.atlas-slogan[data-compact=true]{padding:4px 12px}.atlas-slogan[data-compact=true] small{font-size:11px;line-height:1.2;margin-top:3px}
[data-slogan-group=de]{--slogan-color:#d7d1c2}[data-slogan-group=su]{--slogan-color:#ffb585}[data-slogan-group=uk]{--slogan-color:#c3bdae}[data-slogan-group=us]{--slogan-color:#d6d1c1}[data-slogan-group=fr]{--slogan-color:#bdb8a8}[data-slogan-group=it]{--slogan-color:#bfbaaa}[data-slogan-group=jp]{--slogan-color:#c4bfb0}[data-slogan-group=kmt]{--slogan-color:#91caff}[data-slogan-group=cpc]{--slogan-color:#ff9486}
.atlas-source-group h3{color:var(--slogan-color);border-bottom:2px solid currentColor;margin-top:24px;padding-bottom:5px}.atlas-source-group h3 small{display:inline;color:inherit;font-size:13px}
.atlas-menu{position:absolute;top:51%;left:50%;transform:translateX(-50%);width:clamp(228px,20vw,320px);padding:10px;display:grid;gap:7px;border:2px solid #62615c;outline:1px solid #151614;box-shadow:inset 0 0 0 2px #191917,0 4px 8px #12131199;background:#1c1c1ad9 url('../art-reset/metal.svg')}
.atlas-home button,.atlas-dialog button{border-radius:0;color:var(--atlas-paper);font-family:inherit;cursor:pointer}
.atlas-menu>button{width:100%;height:clamp(34px,4.6vh,46px);min-height:34px;padding:4px 12px;font-size:16px;font-weight:650;letter-spacing:.2em;background:linear-gradient(#484947,#323231);border:1px solid #7a7972;box-shadow:inset 1px 1px #79777044,inset -1px -1px #121310,0 1px 2px #000000}
.atlas-menu>button:hover:enabled{background:linear-gradient(#62615a,#41413f);border-color:#ccc1a1;color:#e1dbcb}
.atlas-menu>button:active:enabled{box-shadow:inset 1px 2px 4px #121310;transform:translateY(1px)}
.atlas-menu>button:disabled{color:#8e8d8a;background:#2e2e2d;cursor:not-allowed;border-color:#434342}
.atlas-home button:focus-visible,.atlas-home a:focus-visible{outline:2px solid #e0d2a9;outline-offset:3px}
.atlas-menu-status{position:absolute;top:calc(51% + clamp(170px,23vh,230px) + 59px);width:min(700px,95vw);left:50%;transform:translateX(-50%);text-align:center;font-size:12px;line-height:1.5;text-shadow:0 1px 2px #000000;pointer-events:none}
.atlas-menu-status p{margin:3px 0}.atlas-menu-status [role=alert]{color:#c9c4b4}
.playable-integrated .atlas-home .atlas-home-footer{background:none;border:0;padding:0;height:auto;min-height:0;position:absolute;bottom:12px;left:20px;right:20px;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#cec5ac}
.atlas-home-footer button{background:#1b1b1abf;border:1px solid #716f69;padding:5px 12px;font-size:12px}
.atlas-dialog{width:min(680px,90vw);max-height:85svh;padding:0;color:#cdc8b9;border:2px solid #877f67;background:#262724 url('../art-reset/metal.svg');box-shadow:0 8px 28px #000000aa;font:15px/1.6 "Segoe UI","Microsoft YaHei","Yu Gothic",sans-serif}
.atlas-dialog::backdrop{background:#10110fc2}.atlas-dialog>header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#393937;border-bottom:1px solid #7e7c76;padding:8px 14px;z-index:2}.atlas-dialog h2{font-size:20px;margin:0}.atlas-dialog>header button{width:30px;height:30px;padding:0}
#atlas-dialog-body{padding:12px 20px}.atlas-dialog button{border:1px solid #7e7d75;background:#3b3c39;padding:6px 16px;min-height:34px}.atlas-dialog label{display:block;padding:9px 0;font-weight:600}.atlas-dialog input{accent-color:#a19f96;margin-right:10px}.atlas-dialog small{display:block;color:#b6b5af;font-size:12px}.atlas-dialog p{margin:8px 0}.atlas-dialog a{color:#c4beaf}.atlas-dialog-actions{display:flex;gap:10px;flex-wrap:wrap}.atlas-sources{padding-left:22px}.atlas-sources li{padding:12px 0;border-bottom:1px solid #696761}.atlas-sources b{font-family:Georgia,"Microsoft YaHei","Yu Gothic",serif;font-size:18px}.atlas-sources small{margin:5px 0}
[data-atlas-materials=off] .atlas-menu,[data-atlas-materials=off] .atlas-dialog,[data-atlas-materials=off] .hoi-top,[data-atlas-materials=off]  .ui-sidebar,[data-atlas-materials=off] .hoi-commanders{background-image:none!important}
[data-atlas-contrast=high]{--art-ink:#e5dfd0;--art-muted:#cdc8b9}[data-atlas-contrast=high] .hoi-roster small,[data-atlas-contrast=high]  .ui-sidebar small{color:#d5d0c0}
@media(max-height:740px){.atlas-logo{top:15%}.playable-integrated .atlas-logo h1{font-size:clamp(46px,7vw,90px)}.atlas-motto-field{height:48%}.atlas-menu{top:50%;gap:5px;padding:8px}.atlas-menu>button{height:34px;font-size:15px}.atlas-menu-status{top:calc(50% + 220px)}.playable-integrated .atlas-home .atlas-home-footer{background:none;border:0;padding:0;height:auto;min-height:0;bottom:8px}}
@media(prefers-reduced-motion:reduce){.atlas-slogan{display:none}.atlas-menu>button:active:enabled{transform:none}}
[data-atlas-contrast=high] .hoi-ui{--art-ink:#e5dfd0;--art-muted:#cdc8b9}

/* Political intelligence and military visibility are separate layers. */
#eastfront-map[data-political-map="yes"] .production-grid{stroke-opacity:.025;opacity:.15}
#eastfront-map[data-political-map="yes"][data-map-planning="yes"] .production-grid{stroke-opacity:.22;opacity:1}
#eastfront-map[data-political-map="yes"] #control-boundaries{pointer-events:none}
#eastfront-map[data-political-map="yes"] #province-map{opacity:.4}
