/* mission.css — Nieuw bestand naast index.html en styles.css. */

.mission-launch-group,
.mission-toolbar,
.mission-flight,
.mission-sky { display: none; }

.mission-ready:not(.mission-active) #play { display: none; }

.mission-ready:not(.mission-active) .intro {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: clamp(420px, 70svh, 680px);
  padding-block: 35px;
}

.mission-ready:not(.mission-active) .intro .planet-purple {
  top: 43%;
  left: 3%;
  width: clamp(40px, 16vw, 174px);
}

.mission-ready:not(.mission-active) .intro .planet-lime {
  top: 24%;
  right: 7%;
  width: clamp(26px, 9vw, 96px);
}

.mission-ready .mission-launch-group { display: block; margin-top: 21px; }

.mission-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: min(295px, 90vw);
  min-height: 54px;
  padding: 10px 20px;
  border: 1px solid #aaffec;
  color: #0a2423;
  background: #98f4dc;
  box-shadow: inset 0 0 0 3px #416e64, 4px 5px 0 #070c1e, 0 0 32px #6ae4cb42;
  font: 800 1rem/1.3 var(--mono);
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 140ms, transform 140ms;
}

.mission-launch:hover { background: #c1fff0; transform: translateY(-2px); }
.mission-launch:active { transform: translateY(1px); }
.mission-launch-arrow { color: #263d6d; }

body.mission-active {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  background: #121131;
}

.mission-active > .top,
.mission-active > .footer,
.mission-active main > .guide,
.mission-active main > .faq,
.mission-active .intro,
.mission-active .mission-launch-group { display: none; }

.mission-active .mission-sky {
  display: block;
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}

.mission-active::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, #12122336 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 27%, #10112c14 0 40%, #0d102c65 100%);
  pointer-events: none;
}

.mission-active .masthead {
  width: min(1240px, calc(100% - 44px));
  min-height: 100svh;
  padding: 0 0 clamp(28px, 6vh, 64px);
  border: 0;
  background: none;
}

.mission-toolbar {
  width: min(1010px, 100%);
  min-height: 65px;
  margin: 0 auto clamp(13px, 3vh, 29px);
  padding: 9px 0;
  border-bottom: 1px solid #aaadce66;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.mission-active .mission-toolbar { display: grid; }

.mission-brand {
  color: #f9f3ff;
  font: 900 clamp(1.02rem, 3.2vw, 1.65rem)/1 var(--mono);
  letter-spacing: .13em;
  text-align: center;
  text-shadow: 2px 2px #4e3982;
}

.mission-brand-sub {
  display: block;
  margin-top: 5px;
  color: #d3caee;
  font: 700 .66rem/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mission-return, .mission-stats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #8e87af;
  color: #eee8ff;
  background: #171933ed;
  box-shadow: 2px 2px 0 #0c0e21;
  font: 700 .77rem/1.25 var(--mono);
  text-align: center;
  text-decoration: none;
}

.mission-return { justify-self: start; }
.mission-stats { justify-self: end; }
.mission-return:hover, .mission-stats:hover { border-color: #9af4dc; color: #9af4dc; }

.mission-active .play {
  width: min(884px, calc(100% - 8px));
  margin-inline: auto;
  padding: clamp(13px, 3vw, 31px);
  border: 1px solid #b6a8d1;
  color: #f9f3ff;
  background: linear-gradient(150deg, #292448f5, #171b35f7 67%);
  box-shadow: 0 0 0 4px #12142bcd, 7px 8px 0 #0c0e22c2, 0 17px 72px #0e091eaa;
}

.mission-active .mission-flight {
  display: block;
  margin: 0 0 15px;
  padding: 9px 11px 11px;
  border: 1px solid #615a8a;
  background: repeating-linear-gradient(90deg, #aaa9d414 0 1px, transparent 1px 22px), #10172c;
}

.mission-flight-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: #c8c0de;
  font: 700 .72rem/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mission-flight-caption strong { color: #9af4dc; }
.mission-route { position: relative; display: flex; justify-content: space-between; gap: 5px; margin: 8px 4px 0; }

.mission-route::before, .mission-route::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  height: 1px;
}

.mission-route::before {
  right: 8px;
  background: repeating-linear-gradient(90deg, #aaa1c1 0 3px, transparent 3px 7px);
}

.mission-route::after {
  width: calc((100% - 16px) * var(--flight-progress, 0));
  background: #a0f4dc;
}

.mission-waypoint {
  position: relative;
  z-index: 1;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #aaa1c1;
  border-radius: 50%;
  color: #e0d9ed;
  background: #222542;
  font: 700 .68rem/1 var(--mono);
}

.mission-waypoint-done { border-color: #a0f4dc; color: #a0f4dc; background: #1d3b46; }
.mission-waypoint-active { border-color: #ffce9d; color: #ffce9d; box-shadow: 0 0 9px #ffc49465; }

.mission-active .game-header { border-color: #72668f; }
.mission-active .game-header h2 { font-size: clamp(1.35rem, 3.8vw, 2.45rem); }
.mission-active .edition { color: #e0caf7; }
.mission-active .timer { border-color: #8b81a9; background: #11182e; }
.mission-active .game-hud { gap: 8px; }
.mission-active .rounds { gap: 5px; }
.mission-active .round, .mission-active .running-score { min-height: 46px; }
.mission-active .panel { padding: clamp(13px, 3vw, 25px); border-color: #77709a; background: #11182e; }
.mission-active .question-meta { color: #dad3e8; }
.mission-active .question h3 { font-size: clamp(1.25rem, 3.4vw, 2.25rem); }
.mission-active .goal { color: #ffce9d; font-size: clamp(.91rem, 2vw, 1.06rem); }
.mission-active .context, .mission-active .muted, .mission-active .reveal-copy { color: #cdc8e2; }
.mission-active .options { gap: 8px; margin-top: 9px; }

.mission-active .option {
  min-height: 53px;
  padding-block: 9px;
  border-color: #747da5;
  background: #202a48;
  font-size: clamp(.88rem, 2vw, 1rem);
}

.mission-active .option:not(:disabled):hover { border-color: #d3bafa; background: #323155; }
.mission-active .option[aria-pressed="true"] { border-color: #abf4dc; background: #23484b; }
.mission-active .option[aria-invalid="true"] { border-color: #ffbac5; background: #482b42; }
.mission-active .button:not(:disabled) { box-shadow: inset 0 0 0 2px #335f55, 3px 3px 0 #080f26; }
.mission-active .score, .mission-active .total { color: #a0f4dc; text-shadow: 2px 2px #1e3d4c; }
.mission-active .gap-map { border-color: #77709a; background-color: #0c162b; }

@media (min-width: 760px) {
  .mission-active .options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mission-active .option { min-height: 65px; }
  .mission-active .question h3 { max-width: 34ch; }
}

@media (max-width: 570px) {
  .mission-active .masthead { width: calc(100% - 18px); }
  .mission-toolbar { min-height: 56px; gap: 6px; }
  .mission-brand { letter-spacing: .07em; }
  .mission-brand-sub { font-size: .59rem; letter-spacing: .05em; }
  .mission-return, .mission-stats { padding-inline: 5px; font-size: .69rem; }
  .mission-active .play { padding: 11px; }
  .mission-flight-caption { font-size: .65rem; }
  .mission-launch { min-width: min(255px, 90vw); }
}

@media (prefers-reduced-motion: reduce) {
  .mission-launch { transition: none; }
}
