/* WAHAJ prototype — Mission 02: Our First Base. The mission screen itself is shared with Green the Desert
   (css/mission.css); this file draws the Moon around the base and the parts that are Moon-only. */

/* ---------- the scene: sky, ground and the base in the open middle of the screen ---------- */
.mm .mx-scene.mm-scene { background: #0a0a0b}
.mm-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.mm-host { position: absolute; inset-inline-start: 296px; top: 206px; width: 732px; height: 457px; direction: ltr; transition: filter .6s}
.mm-host .g2d, .mm-host .g2d-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.mm-host .g2d-scale, .mm-host .g2d-north, .mm-host .g2d-xy { display: none}
.mm-host .g-bg { fill: transparent}
.mm-host .g-minor, .mm-host .g-major { stroke: transparent}
.mm-host .g-nob { opacity: .55}
.mm-host .g-bgl { display: none}
.mm-host .g-it { cursor: default}
.mm-host .g-it .g-sh { fill-opacity: .55; stroke-width: 1.8}
.mm-host .g-it .g-ic { color: #111112}
.mm-host .g-lab { font-size: 1.15px}
.mm-host.night { filter: brightness(.45) saturate(.6)}
.mm-host.storm { filter: sepia(.45) brightness(.8)}
.mm-host.light-night { filter: brightness(.4) saturate(.5)}
.mm-host.light-dust { filter: sepia(.5) brightness(.75)}

/* build: what isn't built yet glows as a slot to tap */
.mm-host.mm-build .g-it { cursor: pointer}
.mm-host .g-it.slot .g-sh { fill-opacity: .06; stroke-dasharray: 3 3; animation: mmSlot 1.6s ease-in-out infinite}
.mm-host .g-it.slot .g-ic { color: currentColor; opacity: .7}
.mm-host .g-it.slot:hover .g-sh { fill-opacity: .2}
.mm-host .g-it.mm-new .g-sh, .mm-host .g-it.mm-flash .g-sh { animation: mmPop .9s ease-out 2}
@keyframes mmSlot { 50% { stroke-opacity: .35} }
@keyframes mmPop { 50% { stroke: #ffffff; stroke-width: 3; fill-opacity: .8} }
body.reduce-motion .mm-host .g-it.slot .g-sh, body.reduce-motion .mm-host .g-it.mm-new .g-sh { animation: none}

/* labels on the empty site (Understand) */
.mm-hot { position: absolute; transform: translate(-50%, -50%); z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(9, 9, 9, 0.86); border: 1px solid rgba(255, 255, 255, 0.22); color: #ffffff; font-size: 12.5px; font-weight: 500; white-space: nowrap}
.mm-hot:hover { border-color: var(--accent)}

/* the design board's Base view */
.mx-plan .mm-host.mm-in { inset-inline-start: 12px; inset-inline-end: 12px; top: 12px; bottom: 86px; width: auto; height: auto; border-radius: 10px; overflow: hidden; background: #0a0a0b}

/* inventory: eleven parts in one row, shown as their photos */
.mm .mx-card .art { width: 80px; height: 70px}
.mm .mx-card .art img { width: 80px; height: 66px; object-fit: cover; border-radius: 8px; display: block}
.mm .mx-rr .ri img, .mm-rimg { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; display: block}
.mm .fb-sel-art img { width: 44px; height: 36px; object-fit: cover; border-radius: 6px; display: block}
.mm-timg { display: block; width: 220px; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 12px}

/* night planner: one night's energy against one battery bank */
.mpl-bars { display: grid; gap: 14px; margin-top: 16px}
.mpl-bar { display: grid; grid-template-columns: 170px 1fr 92px; align-items: center; gap: 12px}
.mpl-bl { font-size: 14px; color: var(--text)}
.mpl-bl small { display: block; font-size: 12px; color: var(--muted)}
.mpl-track { height: 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden}
.mpl-track i { display: block; height: 100%; border-radius: 0 4px 4px 0}
.mpl-bar b { font-size: 14px; color: var(--text); text-align: end}

/* Missions page: with two missions the cards sit side by side, so the page still fits without scrolling */
.missions .feat-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: hidden}
.feat-row.two .mcard.mbig { height: 466px; grid-template-columns: 1fr; grid-template-rows: 206px 1fr}
.feat-row.two .mcard.mbig + .mcard.mbig { margin-top: 0}
.feat-row.two .mcard.mbig .mi img { object-fit: cover}
.feat-row.two .mcard.mbig .mb { padding: 16px 20px 18px}
.feat-row.two .mcard.mbig .mb b { margin-top: 6px; font-size: 24px}
.feat-row.two .mcard.mbig .mb p { margin-top: 4px; font-size: 14.5px; line-height: 1.45}
.feat-row.two .mcard.mbig .ms-tags { margin-top: 10px}
.feat-row.two .mstats { margin-top: 10px}
.mcard.locked .mi img { filter: grayscale(.85) brightness(.55)}
.mcard.locked .mgo { background: rgba(255, 255, 255, 0.08); color: var(--text-2)}
.mcard.mbig.locked:hover .mgo { background: rgba(255, 255, 255, 0.12)}

/* the test overlay's day ring: its title sits beside the ring, not on top of it */
.mm .f2-oc.ring b { position: static; inset: auto; display: block; place-items: initial; font-size: 18px; font-weight: 600}

/* the host keeps left-to-right for the drawing, so in Arabic it is placed in the mirrored open middle by hand */
#stage[dir="rtl"] .mm-host:not(.mm-in) { inset-inline-start: 420px}

/* mentor messages made of several lines */
.mm #st-msg > div + div { margin-top: 6px}

/* Missions card: the district a mission builds in My City */
.ms-tags .ms-city { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); border-color: rgba(0, 255, 111, .35)}
