/* WAHAJ prototype — Mission 04: Hands for the Harvest. The mission screen is shared with the other missions
   (css/mission.css, and the Moon's .mm rules for part photos); this file draws the packing hall on the site
   plan, the 2D fallback scene and the Program panel. */

/* ---------- the scene (2D fallback): the hall, with the cell in the open middle of the screen ---------- */
.hm .mx-scene.fc-scene { background: #a9a59c}
.fc-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.fc-host { position: absolute; inset-inline-start: 296px; top: 206px; width: 732px; height: 457px; direction: ltr; transition: filter .6s}
.fc-host .g2d, .fc-host .g2d-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.fc-host .g2d-scale, .fc-host .g2d-north, .fc-host .g2d-xy { display: none}
.fc-host .g-minor, .fc-host .g-major { stroke: transparent}
.fc-host .g-it { cursor: default}
.fc-host .g-it .g-sh { fill-opacity: .75; stroke-width: 1.4}
.fc-host .g-it .g-ic { color: #111112}
.fc-host.stop { filter: saturate(.5) brightness(.75)}
.fc-host.fc-build .g-it { cursor: pointer}
.fc-host .g-it.slot .g-sh { fill-opacity: .08; stroke-dasharray: 3 3; animation: mmSlot 1.6s ease-in-out infinite}
.fc-host .g-it.slot .g-ic { color: currentColor; opacity: .7}
.fc-host .g-it.slot:hover .g-sh { fill-opacity: .22}
.fc-host .g-it.mm-new .g-sh, .fc-host .g-it.mm-flash .g-sh { animation: mmPop .9s ease-out 2}
#stage[dir="rtl"] .fc-host:not(.fc-in) { inset-inline-start: 420px}
.mx-plan .fc-host.fc-in { inset-inline-start: 12px; inset-inline-end: 12px; top: 12px; bottom: 86px; width: auto; height: auto; border-radius: 10px; overflow: hidden; background: #a9a59c}

/* ---------- the packing hall on the site plan ---------- */
.fc-floor { fill: #b9b5ac}
.fc-wall { fill: none; stroke: #6e6e73; stroke-width: .2}
.fc-aisle { fill: #f2c230; fill-opacity: .16}
.fc-aisle-l { stroke: #f2c230; stroke-width: .12; fill: none}
.fc-team { fill: #d2cdc3; stroke: #8f8a80; stroke-width: .06}
.fc-table { fill: #e5e5ea; stroke: #8f8a80; stroke-width: .05}
.fc-person { fill: #6e6e73}
.fc-belt { fill: #2b2f33}
.fc-roll { stroke: #3a3d41; stroke-width: .05}
.fc-arrow { stroke: #f5f5f7; stroke-width: .1; fill: none; stroke-linecap: round; stroke-linejoin: round}
.fc-mach { fill: #d2d2d7; stroke: #8f8a80; stroke-width: .08}
.fc-exit { fill: #00FF6F}
.g2d-svg .g-bgl.wk { fill: #8a6d12}
.fc-host .fc-floor { fill: transparent}

/* ---------- inventory: four parts and the program ---------- */

/* ---------- Program: the arms' gripper, speed and grip ---------- */
.hg { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start}
.hg h5 { margin: 0 0 8px}
.hg h5 + * { margin-bottom: 18px}
.hg-grips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px}
.hg-grip { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); text-align: start; transition: border-color .15s}
.hg-grip img { width: 72px; height: 60px; border-radius: 10px; object-fit: cover; display: block}
.hg-grip b { display: block; font-size: 15px; color: var(--text)}
.hg-grip small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-2)}
.hg-grip.on { border-color: var(--accent); background: var(--tile)}
.hg-seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px}
.hg-seg button { height: 58px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-content: center; gap: 2px; text-align: center}
.hg-seg button b { font-size: 17px; color: var(--text)}
.hg-seg button small { font-size: 11px; color: var(--muted); min-height: 13px}
.hg-seg button.on { border-color: var(--accent); background: var(--tile)}
.hg-seg button.on b { color: var(--accent)}
.hg-r { display: grid; gap: 8px}
.hg-st { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2)}
.hg-st small { display: block; font-size: 12px; color: var(--muted)}
.hg-st b { display: block; margin-top: 2px; font-size: 20px; color: var(--text)}
.hg-st em { display: block; font-style: normal; font-size: 12px; color: var(--text-2)}
.hg-st.ok b { color: var(--accent)}
.hg-st.bad b { color: var(--warn)}
.hg-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2)}
.hg-note .ico { flex: none; margin-top: 2px; color: var(--accent-2-text)}

/* the factory plan is drawn in metres, so its label outlines are thin */
.g2d-svg[data-g2d-svg^="factory"] .g-lab { stroke-width: .16px}
.g2d-svg[data-g2d-svg^="factory"] text { text-rendering: geometricPrecision; letter-spacing: 0}
