/* The missions board (app.js openMissions): the trips under way, then the notices pinned on a wooden board. A notice
   opened shows its seats and, under it, the heroes at home as small portraits. */
.missions-board { display: flex; flex-direction: column; gap: 12px; }
.mb-head { padding-right: 44px; }
.mb-head h2 { margin: 0 0 2px; }
.mb-head small { display: block; line-height: 1.3; }

/* on the roads */
.mb-roads { display: flex; flex-direction: column; gap: 6px; }
.mb-roads-head { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.mb-roads-head b { font: .95rem var(--pixel); color: var(--gold); }
.mb-trip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  border: 2px solid var(--edge); background: linear-gradient(#34373b, #27292c); }
.mb-trip.done { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(242, 155, 58, .35), 0 0 12px rgba(242, 155, 58, .25); }
.mb-trip-who { display: flex; align-items: flex-end; }
.mb-trip-who canvas { image-rendering: pixelated; max-height: 36px; }
.mb-trip-who canvas + canvas { margin-left: -8px; }
.mb-trip-mid { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mb-trip-mid b { font: .85rem var(--pixel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the road walked so far: a dotted trail filling with ochre */
.mb-path { position: relative; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #4a3a26 0 6px, #2b2219 6px 10px); overflow: hidden; }
.mb-path i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#d9a24a, #a8702a); }
.mb-trip.done .mb-path i { background: linear-gradient(#f2c35a, #d9902a); }
.mb-path span { position: relative; display: block; text-align: center; font: .6rem var(--pixel); line-height: 14px; color: #fff4df; text-shadow: 0 1px 0 #000; }

/* the board */
.mb-board-wrap { position: relative; padding: 26px 8px 10px; border-radius: 6px; border: 3px solid #3a2410;
  background: repeating-linear-gradient(90deg, #5a3a1e 0 46px, #4e3219 46px 48px), #4e3219; box-shadow: inset 0 0 0 2px #6a4624, 0 4px 0 #1c120a; }
.mb-board-title { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); padding: 3px 14px; border-radius: 3px; white-space: nowrap;
  font: .85rem var(--pixel); color: #f3e2bd; background: linear-gradient(#7a5028, #5a3a1c); border: 2px solid #2a180a; box-shadow: 0 3px 0 #1c120a; }
.mb-board { display: flex; flex-direction: column; gap: 14px; }
.mb-empty, .mb-note { margin: 0; padding: 6px 10px; border-radius: 4px; font-size: .8rem; color: #f3e2bd; background: rgba(0, 0, 0, .25); }

/* a notice: parchment, pinned, slightly askew; it straightens once opened */
.mb-note-card { position: relative; padding: 12px 12px 10px; border-radius: 3px; color: #3a2410; cursor: pointer;
  background: linear-gradient(#efe0b8, #e2cf9e); border: 1px solid #8a6a3a; box-shadow: 0 3px 0 rgba(0, 0, 0, .4), inset 0 0 18px rgba(138, 100, 50, .25);
  transform: rotate(-.6deg); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.mb-note-card:nth-child(even) { transform: rotate(.7deg); }
.mb-note-card.open { transform: none; cursor: default; }
.mb-note-card.cannot { filter: saturate(.5) brightness(.85); cursor: default; }
.mb-pin { position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a6a, #b0301c 60%, #6a160c); box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.mb-n-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mb-n-head b { font: .95rem var(--pixel); color: #5a2a10; }
.mb-n-meta { display: flex; gap: 8px; font: .68rem var(--pixel); color: #6a4a24; white-space: nowrap; }
.mb-n-text { margin: 3px 0 8px; font-size: .8rem; line-height: 1.3; color: #4a3218; }
.mb-n-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mb-n-why { display: block; margin-top: 6px; font-size: .74rem; color: #7a3a1a; }
.mb-note-card .chips { gap: 4px; flex: 1; min-width: 0; }
.mb-note-card .chip { background: rgba(90, 58, 30, .14); color: #3a2410; border-color: rgba(90, 58, 30, .35); font-size: .6rem; padding: 2px 6px; }

/* seats: who goes; solid for those the mission needs, dashed for the ones it can take more */
.mb-seats { display: flex; gap: 5px; }
.mb-seat { position: relative; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 4px;
  background: rgba(90, 58, 30, .12); border: 2px solid #8a6a3a; }
.mb-seat.extra { border-style: dashed; }
.mb-seat.on { background: #3a2a1a; border-color: #5a3a1c; border-style: solid; }
.mb-seat canvas { image-rendering: pixelated; max-width: 34px; max-height: 34px; }
.mb-seat i { position: absolute; right: -4px; bottom: -5px; font: .55rem var(--pixel); font-style: normal; color: #fff4df; background: #5a2a10; border-radius: 3px; padding: 0 3px; }

/* the heroes at home */
.mb-pick { margin-top: 10px; padding: 8px; border-radius: 4px; background: #2e241a; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
.mb-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 5px; }
.mb-roster-sep { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font: .62rem var(--pixel); color: var(--gold); }
.mb-roster-sep::before, .mb-roster-sep::after { content: ""; flex: 1; height: 1px; background: rgba(242, 155, 58, .4); }
.mb-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; height: 62px; padding: 3px 2px;
  border-radius: 4px; border: 2px solid #1c140c; background: linear-gradient(#3e3224, #2a2118); color: var(--ink); }
.mb-hero canvas { image-rendering: pixelated; max-height: 38px; }
.mb-hero small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; color: #c9bfae; }
.mb-hero .mb-lv { position: absolute; left: 2px; top: 1px; font: .55rem var(--pixel); font-style: normal; color: #fff4df; }
.mb-hero.low .mb-lv { color: #ff9a7a; }
.mb-hero .mb-asc { position: absolute; right: 2px; top: 0; font-size: .6rem; font-style: normal; color: var(--gold); letter-spacing: -1px; }
.mb-hero.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 10px rgba(242, 155, 58, .45); background: linear-gradient(#5a4428, #3a2c1a); }
.mb-n-go { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.mb-n-go .btn.primary { flex: 1; }
.mb-n-go .btn.ghost { color: #5a2a10; background: rgba(90, 58, 30, .12); border-color: #8a6a3a; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }

/* calling a mission back: a small horn-and-arrow sign on the strip, then the question asked on the strip itself */
.mb-recall { display: flex; flex-direction: column; align-items: center; gap: 0; width: 54px; padding: 3px 0 2px; border-radius: 4px; color: #e6d3a8;
  background: linear-gradient(#4a3a26, #34281a); border: 2px solid #1c140c; box-shadow: inset 0 1px 0 #6a5436, 0 2px 0 #0c0d0e; }

.mb-recall small { font: .5rem var(--pixel); color: #c9b89a; }
.mb-recall:active { transform: translateY(1px); }
.mb-recall-ask { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px dashed rgba(230, 211, 168, .25); font-size: .76rem; color: #e6d3a8; }
.mb-recall-ask span { flex: 1; line-height: 1.25; }
.mb-recall-ask .btn { margin: 0; display: inline-flex; }
.mb-recall canvas { image-rendering: pixelated; width: 26px; height: 26px; }
