/* Panels from the approved printed-comic palette. All motion has a static reading. */
.mission-view {
  --panel-ink: #173c36;
  --panel-cream: #fff5d9;
  --panel-copper: #ac5a3e;
  --panel-gold: #edc26b;
}
.mission-view .opening-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(235px, .8fr);
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  margin: 10px 0 28px;
}
.mission-view .call-scene-frame {
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--panel-ink);
  border: 2px solid var(--panel-ink);
  border-radius: 9px 3px 12px 4px;
  background: var(--panel-cream);
  box-shadow: 3px 4px 0 var(--panel-ink);
}
.mission-view .call-scene-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(circle at 1px 1px, #92794f 1px, transparent 1.3px) 0 0 / 6px 6px, #dfbc7d;
}
.mission-view .call-scene-art > .character-slot {
  width: 100%;
  max-width: none;
  margin: 0;
}
.mission-view .call-scene-art .book-customer img {
  display: block;
  width: 100%;
  height: clamp(150px, 30vw, 340px);
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 33%;
}
.mission-view .call-scene-art > .character-customer { max-width: 240px; margin: auto; }
.mission-view .scene-caption, .mission-view .completion-seal {
  display: inline-block;
  padding: 3px 12px;
  border: 2px solid var(--panel-ink);
  background: var(--panel-gold);
  color: var(--panel-ink);
  font-weight: 800;
  line-height: 1.75;
}
.mission-view .scene-caption {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  transform: rotate(1.6deg);
}
.mission-view .scene-dialogue {
  position: relative;
  border-top: 2px solid var(--panel-ink);
  padding: clamp(13px, 2.5vw, 23px);
}
.mission-view .scene-dialogue h1 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
.mission-view .speech-bubble, .mission-view .mentor-copy blockquote {
  position: relative;
  max-width: 48ch;
  margin: 0 0 14px;
  padding: 11px 15px;
  border: 2px solid var(--panel-ink);
  border-radius: 15px 3px 15px 15px;
  background: #fffdf2;
  color: var(--panel-ink);
  font-size: 1.03rem;
  line-height: 1.9;
}
.mission-view .speech-bubble::before {
  content: '';
  position: absolute;
  inset-inline-start: 20px;
  top: -7px;
  width: 9px;
  height: 9px;
  background: inherit;
  border: solid var(--panel-ink);
  border-width: 2px 0 0 2px;
  transform: rotate(45deg);
}
.mission-view .opening-assignment {
  padding: clamp(18px, 3vw, 32px);
  align-self: end;
  border-inline-start: 5px solid var(--panel-copper);
  background: #fffbef;
}
.mission-view .opening-assignment p { max-width: 40ch; }
.mission-view .opening-assignment .actions { margin-top: 16px; }
.mission-view .opening-assignment .mission-brief { margin-top: 16px; }
.mission-view .opening-assignment .mission-brief .character-slot { display: none; }
.mission-view .voice-pulse {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 30px;
  border: 2px solid var(--panel-ink);
  border-radius: 12px;
  background: #ffefca;
}
.mission-view .voice-pulse i { width: 3px; height: 7px; border-radius: 3px; background: var(--panel-ink); }
.mission-view .voice-pulse i:nth-child(even) { height: 14px; }
.mission-view .voice-pulse i:nth-child(3) { height: 19px; }
.mission-view .option.selected {
  border: 2px solid var(--panel-ink);
  background: #e8f2d5;
  box-shadow: 2px 3px 0 #4d6a53;
}
.mission-view .option.selected .option-index {
  width: auto;
  min-width: 30px;
  border-color: var(--panel-ink);
  background: var(--panel-gold);
  color: var(--panel-ink);
  font-weight: 800;
}
.mission-view .preview { border-inline-start: 4px solid var(--panel-ink); }
.mission-view .comic-lesson { padding: clamp(15px, 3vw, 32px); }
.mission-view .mentor-panel {
  display: grid;
  grid-template-columns: clamp(95px, 19vw, 175px) minmax(0, 1fr);
  margin: 16px 0;
  color: var(--panel-ink);
  overflow: hidden;
  border: 2px solid var(--panel-ink);
  border-radius: 7px;
  background: #fcf4d9;
  text-align: start;
}
.mission-view .mentor-pane {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-inline-end: 2px solid var(--panel-ink);
  background: #d3a763;
}
.mission-view .mentor-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}
.mission-view .mentor-pane figcaption {
  margin-top: auto;
  padding: 4px 7px;
  border-block-start: 2px solid var(--panel-ink);
  background: var(--panel-ink);
  color: #fff5db;
  text-align: center;
  font-size: .78rem;
}
.mission-view .mentor-copy { align-self: center; padding: clamp(10px, 2vw, 20px); overflow-wrap: anywhere; }
.mission-view .mentor-copy h2 { margin: 0 0 5px; font-size: 1.05rem; }
.mission-view .mentor-copy blockquote { margin-top: 12px; font-size: .95rem; }
.mission-view .mentor-disclosure { min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.mission-view .mentor-copy .mentor-disclosure { margin-top: 5px; }
.mission-view .rehearsal-note { margin-top: 12px; border-top: 1px solid #928773; padding-top: 12px; }
.mission-view .comic-completion {
  display: grid;
  grid-template-columns: minmax(140px, .66fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  border: 2px solid var(--panel-ink);
  border-radius: 3px 14px 4px 12px;
  background: var(--panel-cream);
  text-align: start;
}
.mission-view .completion-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 2px solid var(--panel-ink);
  background: #b88851;
}
.mission-view .completion-duo img { aspect-ratio: .72; min-width: 0; }
.mission-view .completion-duo img + img { border-inline-start: 3px solid var(--panel-ink); }
.mission-view .completion-copy { min-width: 0; }
.mission-view .completion-links { justify-content: flex-start; }
.mission-view .completion-copy .primary { margin-top: 0; }
@media (max-width: 660px) {
  .mission-view .opening-spread, .mission-view .comic-completion { grid-template-columns: 1fr; gap: 12px; }
  .mission-view .opening-spread .call-scene-frame { margin-bottom: 0; }
  .mission-view .completion-duo { max-width: 235px; }
  .mission-view .call-scene-art .book-customer img { height: clamp(155px, 48vw, 255px); }
}
@media (max-width: 600px) {
  .mission-view .mentor-panel { grid-template-columns: minmax(0, 1fr); }
  .mission-view .mentor-pane {
    display: grid;
    grid-template-columns: minmax(110px, 46%) minmax(0, 1fr);
    align-items: center;
    border: 0;
    border-block-end: 2px solid var(--panel-ink);
    background-color: #efd293;
    background-image: radial-gradient(#af8859 0.65px, transparent 0.8px);
    background-size: 5px 5px;
  }
  .mission-view .mentor-pane .mentor-portrait {
    width: 100%;
    max-height: 168px;
    aspect-ratio: 1;
    border-inline-end: 2px solid var(--panel-ink);
  }
  .mission-view .mentor-pane figcaption {
    justify-self: center;
    align-self: center;
    margin: 8px;
    padding: 5px 10px;
    border: 2px solid var(--panel-ink);
    box-shadow: 3px 3px 0 var(--panel-ink);
    transform: rotate(-2deg);
    font-size: .88rem;
  }
  .mission-view .mentor-copy { width: 100%; padding: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mission-view:not(.call-motion-off) [data-speaking="yes"] .voice-pulse i {
    animation: call-voice-pulse .65s ease-in-out infinite alternate;
  }
  .mission-view:not(.call-motion-off) [data-speaking="yes"] .voice-pulse i:nth-child(even) {
    animation-delay: -.35s;
  }
}
@keyframes call-voice-pulse { to { transform: scaleY(.45); } }

.mission-view .call-step-map { background: #f8edce; border: 2px solid var(--panel-ink); }
.mission-view .call-step-map .journey-head { flex-wrap: wrap; margin-bottom: 8px; }
.mission-view .call-step-map .step-map-toggle { padding: 4px 10px; min-height: 44px; font-size: .78rem; }
.mission-view .inner-step-road { position: relative; width: min(100%, 520px); margin: auto; isolation: isolate; }
.mission-view .inner-route-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mission-view .inner-route-line path { fill: none; stroke: #9c8057; stroke-width: 3; stroke-linecap: round; }
.mission-view .call-step-map ol { display: grid; gap: 0; padding: 0; margin: 0; overflow: visible; }
.mission-view .call-step-map li {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  height: 70px; min-width: 0; text-align: start;
}
.mission-view .call-step-map li::after { content: none; }
.mission-view .call-step-map li:nth-child(even) .step-chip { grid-column: 2; }

.mission-view .call-step-map .step-chip {
  display: flex; width: fit-content; max-width: 100%; justify-self: center; align-items: center; gap: 6px;
  padding: 3px 7px; min-height: 45px; border: 1px solid #b39d76; border-radius: 8px;
  background: #fff8e7; color: var(--panel-ink); box-shadow: 1px 2px 0 #b6a17f; font-weight: 600;
}
.mission-view .call-step-map .step-chip small { line-height: 1.6; overflow-wrap: anywhere; }
.mission-view .call-step-map .step-chip .node { margin: 0; width: 28px; height: 28px; flex-shrink: 0; }
.mission-view .call-step-map .step-chip[aria-expanded="true"] small { text-decoration: underline; text-underline-offset: 4px; }
.mission-view .call-step-map .step-chip[data-return-target="yes"] .node {
  border: 3px double var(--panel-ink); border-radius: 8px; background: var(--panel-gold); color: var(--panel-ink);
}
.mission-view .step-map-detail {
  margin-top: 10px; border-inline-start: 4px solid var(--panel-copper);
  background: #fff9e9; padding: 8px 12px;
}
.mission-view .step-map-detail p { margin: 0; }
