/* Front page redesign – scoped to the home page */
body.command-layout.home-gate .atlas-page{padding:0 14px 36px!important}
/* hero */
body.command-layout.home-gate .atlas-command-hero{position:relative;display:block!important;margin:0 0 14px!important;padding:0!important;min-height:0!important;border:1px solid rgba(80,140,230,.28)!important;border-radius:12px;overflow:hidden;background:linear-gradient(90deg,rgba(2,9,20,.94) 0%,rgba(2,9,20,.55) 38%,rgba(2,9,20,.1) 75%),url('../img/races/hero.jpg') right center/cover,#030b18!important}
body.command-layout.home-gate .atlas-command-hero .hm-title{position:absolute;left:24px;top:20px;z-index:8;display:flex;gap:14px;align-items:flex-start;width:min(36%,520px);max-width:none!important;min-height:0!important;padding:0!important}
.hm-compass{width:62px;height:auto;flex:none;filter:drop-shadow(0 2px 8px #000)}
body.command-layout.home-gate .hm-title h1{margin:0!important;font:800 clamp(22px,2vw,32px)/1.05 'Segoe UI',Arial,sans-serif!important;letter-spacing:.05em!important;text-transform:uppercase;color:#fff!important}
body.command-layout.home-gate .hm-title .hm-sub{margin:6px 0 8px!important;font:600 11px/1.3 'Segoe UI',Arial,sans-serif!important;letter-spacing:.06em!important;color:#c9d6ea!important;text-transform:none!important}
body.command-layout.home-gate .hm-title .atlas-welcome-intro{margin:0!important;max-width:380px!important;font:12px/1.5 'Segoe UI',Arial,sans-serif!important;color:#b9c8de!important;letter-spacing:0!important}
.hm-cta{display:flex;gap:8px;margin-top:12px}
.hm-cta .btn{padding:6px 12px!important;font-size:11px!important;margin:0!important;min-height:0!important}
body.command-layout.home-gate .atlas-hero-map{width:100%!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important}
body.command-layout.home-gate .atlas-hero-map .atlas-panel,body.command-layout.home-gate .atlas-map-card{background:none!important;border:0!important;box-shadow:none!important}
body.command-layout.home-gate .atlas-map{background:none!important;border:0!important;min-height:clamp(340px,27vw,430px)!important}
body.command-layout.home-gate .atlas-map-scene{min-height:clamp(340px,27vw,430px)!important}
body.command-layout.home-gate .atlas-map-legend{left:24px!important;bottom:36px!important;top:auto!important;display:flex!important;flex-direction:column;gap:5px;padding:9px 12px!important;background:rgba(3,10,22,.78)!important;border:1px solid rgba(120,160,220,.22)!important;border-radius:6px;font-size:10px}
body.command-layout.home-gate .atlas-map-legend i{display:inline-block;width:22px;height:0;border-top:2px solid #6cb6ff;vertical-align:middle;margin-right:8px}
body.command-layout.home-gate .atlas-map-legend .legend-border{border-top:2px dashed #6cb6ff}
body.command-layout.home-gate .atlas-map-legend .legend-pvp{border-top-color:#ff4b55}
body.command-layout.home-gate .atlas-map-legend .legend-faction{border-top-color:#d9a94f}
body.command-layout.home-gate .atlas-map-legend .legend-restricted{border-top:2px dotted #ff8a3c}
@media(max-width:1000px){body.command-layout.home-gate .atlas-command-hero .hm-title{position:relative;left:0;top:0;width:auto;padding:16px!important}}
/* metrics */
body.command-layout.home-gate .atlas-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 14px!important}
body.command-layout.home-gate .atlas-metrics a{display:flex;align-items:center;gap:14px;padding:12px 16px!important;border-radius:10px!important;background:rgba(8,18,38,.85)!important;border:1px solid var(--mc,#2fb48a)!important;min-height:0!important}
body.command-layout.home-gate .atlas-metrics a:nth-child(1){--mc:#23b585}body.command-layout.home-gate .atlas-metrics a:nth-child(2){--mc:#2f7fe0}body.command-layout.home-gate .atlas-metrics a:nth-child(3){--mc:#c8912f}body.command-layout.home-gate .atlas-metrics a:nth-child(4){--mc:#8a4bd0}
body.command-layout.home-gate .atlas-metrics a>span:last-child{display:flex!important;flex-direction:column}
body.command-layout.home-gate .atlas-metrics strong{order:1;font-size:28px!important;line-height:1;color:#fff}
body.command-layout.home-gate .atlas-metrics small{order:2;color:var(--mc)!important;font-weight:700;letter-spacing:.08em}
body.command-layout.home-gate .atlas-metrics em{display:none}
/* panel grid */
body.command-layout.home-gate .hm-rows{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;margin:0 0 14px}
body.command-layout.home-gate .atlas-overview-grid,body.command-layout.home-gate .atlas-mid-grid{display:contents!important}
body.command-layout.home-gate .hm-rows>*{min-width:0;margin:0!important;grid-column:span 6}
body.command-layout.home-gate .atlas-status{order:1}body.command-layout.home-gate .atlas-missions{order:2}body.command-layout.home-gate .atlas-koth-mini{order:3}body.command-layout.home-gate .hm-upcoming{order:4}
body.command-layout.home-gate .hm-rows:not(:has(.atlas-missions)) .hm-upcoming{order:2}
body.command-layout.home-gate .hm-rows:not(:has(.atlas-missions)) .atlas-koth-mini{grid-column:1/-1}
body.command-layout.home-gate .atlas-intel{order:5;grid-column:span 7}body.command-layout.home-gate .atlas-transmissions{order:6;grid-column:span 5}
body.command-layout.home-gate .atlas-races{order:7;grid-column:span 7}body.command-layout.home-gate .atlas-me{order:8;grid-column:span 5}
body.command-layout.home-gate .atlas-account{order:9;grid-column:1/-1}
@media(max-width:1200px){body.command-layout.home-gate .hm-rows>*{grid-column:1/-1!important}}
/* panels */
body.command-layout.home-gate .hm-rows .atlas-panel,body.command-layout.home-gate .hm-gallery,body.command-layout.home-gate .atlas-operations{background:rgba(8,18,38,.86)!important;border:1px solid rgba(80,140,230,.26)!important;border-radius:10px!important;padding:14px 16px!important}
body.command-layout.home-gate .atlas-panel-head h2{font:700 13px/1.2 'Segoe UI',Arial,sans-serif!important;letter-spacing:.08em;color:#f4f1e8}
body.command-layout.home-gate .atlas-panel-head>a{font-size:11px!important;color:#6cb6ff!important}
/* upcoming events */
.hm-ev{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(120,160,220,.12);color:#fff}
.hm-ev:last-child{border-bottom:0}
.hm-ev i{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(40,100,200,.25);border:1px solid #3b82f6}
.hm-ev i svg{width:18px;height:18px;fill:#d9a94f}
.hm-ev span{flex:1;min-width:0}.hm-ev b{display:block;font-size:13px}.hm-ev small{display:block;font-size:11px;color:#8fa2bd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-ev em{font-style:normal;font-size:11px;color:#c9d6ea;text-align:right}
/* KOTH */
body.command-layout.home-gate .atlas-koth-mini{background:linear-gradient(90deg,rgba(8,18,38,.96) 45%,rgba(8,18,38,.35)),url('../img/terr/hero.jpg') right center/cover!important}
body.command-layout.home-gate .atlas-koth-mini .empty{font:600 22px/1.2 Georgia,serif;border:0;background:none;color:#fff;text-align:left;padding:18px 0}
/* ship gallery */
.hm-gallery{margin:0 0 14px}
.hm-ships{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.hm-ship{position:relative;display:block;height:96px;border-radius:9px;border:1px solid rgba(80,140,230,.3);background-size:cover;background-position:center;overflow:hidden}
.hm-ship:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(2,8,18,.85))}
.hm-ship span{position:absolute;left:8px;bottom:7px;z-index:2;display:flex;gap:6px;align-items:center;font:700 13px 'Segoe UI',Arial;color:#fff}
.hm-ship span img{width:24px;height:24px;border-radius:50%}
.hm-ship small{position:absolute;right:8px;bottom:8px;z-index:2;color:#d9e6ff}
@media(max-width:1200px){.hm-ships{grid-template-columns:repeat(3,minmax(0,1fr))}.atlas-metrics{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:600px){.hm-ships{grid-template-columns:repeat(2,minmax(0,1fr))}body.command-layout.home-gate .atlas-metrics{grid-template-columns:1fr!important}}
/* v2 */
body.command-layout.home-gate .hm-rows .atlas-panel{min-height:0!important;height:auto!important}
body.command-layout.home-gate .atlas-koth-mini .empty{font:600 17px/1.3 'Segoe UI',Arial,sans-serif!important;padding:14px 0!important}
body.command-layout.home-gate .atlas-account{display:grid;grid-template-columns:auto 1fr;column-gap:16px;align-items:center}
body.command-layout.home-gate .atlas-account>.atlas-panel-head{grid-column:1/-1}
body.command-layout.home-gate .atlas-ops-empty{background:linear-gradient(90deg,rgba(8,18,38,.96) 40%,rgba(8,18,38,.2)),url('../img/races/hero.jpg') right center/cover!important;border:1px solid rgba(80,140,230,.25)!important;border-radius:10px;padding:22px 26px!important}
body.command-layout.home-gate .atlas-ops-empty h3{font:600 22px Georgia,serif!important;color:#fff!important}
body.command-layout.home-gate .atlas-bottom-grid{display:block!important;margin:0!important}
body.command-layout.home-gate .atlas-race-list a{display:grid;grid-template-columns:26px 1fr auto 70px;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid rgba(120,160,220,.1)}
/* planets */
body.command-layout.home-gate .atlas-map-scene .atlas-planet-disc{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;mix-blend-mode:normal!important;opacity:1!important;filter:drop-shadow(0 0 14px color-mix(in srgb,var(--node) 60%,transparent))!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="tau'ri"] .atlas-planet-disc{background-image:url("../img/home/planet-tauri.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="jaffa"] .atlas-planet-disc{background-image:url("../img/home/planet-jaffa.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="goa'uld"] .atlas-planet-disc{background-image:url("../img/home/planet-goauld.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="asgard"] .atlas-planet-disc{background-image:url("../img/home/planet-asgard.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="travelers"] .atlas-planet-disc{background-image:url("../img/home/planet-travelers.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="lantean"] .atlas-planet-disc{background-image:url("../img/home/planet-lantean.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="wraith"] .atlas-planet-disc{background-image:url("../img/home/planet-wraith.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="asuran"] .atlas-planet-disc{background-image:url("../img/home/planet-asuran.png")!important}
body.command-layout.home-gate .atlas-map-scene .atlas-node b{font-size:13px!important;text-shadow:0 1px 6px #000,0 0 12px #000!important}
body.command-layout.home-gate .atlas-map-scene .atlas-node{justify-content:center!important;padding:0!important}
/* planets copied from the mockup */
body.command-layout.home-gate .atlas-node[data-atlas-race="tau'ri"] .atlas-planet-disc{background-image:url("../img/home/mp-tauri.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="jaffa"] .atlas-planet-disc{background-image:url("../img/home/mp-jaffa.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="goa'uld"] .atlas-planet-disc{background-image:url("../img/home/mp-goauld.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="asgard"] .atlas-planet-disc{background-image:url("../img/home/mp-asgard.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="travelers"] .atlas-planet-disc{background-image:url("../img/home/mp-travelers.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="lantean"] .atlas-planet-disc{background-image:url("../img/home/mp-lantean.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="wraith"] .atlas-planet-disc{background-image:url("../img/home/mp-wraith.png")!important}
body.command-layout.home-gate .atlas-node[data-atlas-race="asuran"] .atlas-planet-disc{background-image:url("../img/home/mp-asuran.png")!important}
body.command-layout.home-gate .atlas-map-scene .atlas-node{width:clamp(96px,8vw,134px)!important;height:clamp(96px,8vw,134px)!important;justify-content:flex-end!important;padding:0 0 clamp(12px,1vw,17px)!important;box-sizing:border-box!important}
body.command-layout.home-gate .atlas-map-scene .atlas-node:before{content:"";position:absolute;display:block!important;inset:auto 5% 2% 5%;height:46%;background:#090d17;border:1px solid rgba(120,160,220,.18);border-radius:11px;z-index:1}
body.command-layout.home-gate .atlas-map-scene .atlas-node b,body.command-layout.home-gate .atlas-map-scene .atlas-node small{position:relative;z-index:2}
body.command-layout.home-gate .atlas-map-scene .atlas-node b{font-size:clamp(11px,.85vw,14px)!important;text-shadow:none!important;margin-bottom:1px}
body.command-layout.home-gate .atlas-map-scene .atlas-node small{color:var(--node)!important;font-size:10px!important;text-shadow:none!important;margin:0!important}
body.command-layout.home-gate .atlas-map-scene .atlas-planet-disc{filter:drop-shadow(0 0 16px color-mix(in srgb,var(--node) 55%,transparent))!important}

body.command-layout.home-gate .atlas-map-scene .atlas-node:before{display:none!important}
body.command-layout.home-gate .atlas-map-scene .atlas-node{padding:0 0 clamp(14px,1.15vw,20px)!important}
/* v3 compact missions (mockup: 2x2 cards, text left, art right) */
body.command-layout.home-gate .hm-diffl{display:none}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-diffl{display:block;font:700 10px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--c)}
body.command-layout.home-gate .atlas-missions .hm{padding:0!important}
body.command-layout.home-gate .atlas-missions .hm-bar{margin-bottom:12px}
body.command-layout.home-gate .atlas-missions .hm-tab{padding:7px 14px;font-size:12px;border-radius:7px}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-height:none!important;overflow:visible!important}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-card{flex-direction:row!important;border:1px solid color-mix(in srgb,var(--c) 70%,transparent)!important;border-radius:9px;min-height:92px}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-card:hover{transform:none;box-shadow:0 0 14px color-mix(in srgb,var(--c) 35%,transparent)}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-body{order:1;flex:1 1 auto;min-width:0;padding:10px 12px!important;gap:4px!important;justify-content:center}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-body b{font-size:14px!important}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-body small{display:block!important;font-size:11px;color:#9fb6c9;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-meta{display:none}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-rew{font-size:11px;margin-top:2px}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-ban{order:2;flex:0 0 38%;height:auto!important;min-height:0;opacity:.95}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-ban em{display:none}
body.command-layout.home-gate .atlas-missions .hm-compact .hm-ban i{font-size:30px!important}
body.command-layout.home-gate .hm-rows.hm-top>*{align-self:start}
