:root {
  color-scheme: dark;
  color: #eeeef7;
  background: #101323;
  font: 16px/1.6 system-ui,-apple-system,sans-serif;
  --muted: #b7bdd5;
  --amber: #ffd08a;
  --cyan: #8cdaf4;
  --mint: #91dfba;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at top,#2a2844,#101323 65%);
}
button {
  font: inherit;
  cursor: pointer;
  min-width: 44px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #606784;
  background: #2b304c;
  color: #fff;
  text-align: left;
  overflow-wrap: anywhere;
}
button:hover {
  background: #3a4161;
  border-color: #c4cbe6;
}
button:focus-visible,a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}
[tabindex="-1"]:focus {
  outline: none;
}
button.primary-button {
  background: var(--amber);
  color: #30223a;
  border-color: var(--amber);
  font-weight: 750;
}
button.primary-button:hover {
  background: #ffe5bc;
}
p {
  margin: 0 0 18px;
}
h1,h2 {
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 10px 0 20px;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2rem,4vw,3rem);
}
h2 {
  font-size: 1.6rem;
}
#app {
  padding: 0 24px;
}
.mission-shell {
  max-width: 1160px;
  margin: auto;
}
.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: .14em;
  line-height: 1.3;
}
.wordmark strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: .12em;
}
.brand-orbit {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #8e95b4;
  border-radius: 50%;
  color: var(--amber);
  font-size: 2rem;
}
.mission-tag,.eyebrow {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: .12em;
  font-weight: 650;
}
.mission-tag {
  border: 1px solid #454b67;
  padding: 7px 16px;
  border-radius: 30px;
}
.mars-scene {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  border: 1px solid #66506c;
  border-radius: 24px;
  overflow: hidden;
  background: #673f55 url("assets/images/environment/mars/landscape-3x.png") center 58% / cover;
  image-rendering: pixelated;
}
.mars-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#17162966,transparent 45%,#241421b3);
  z-index: -1;
}
.scene-heading {
  padding: 25px 30px;
  text-shadow: 0 2px 6px #180d19;
}
.scene-heading .eyebrow {
  color: #ffdfbc;
}
.scene-heading h2 {
  font-size: 2rem;
}
.crew-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 64px;
  margin: 0 16px 18px;
}
.crew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.crew li,.shazer-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  text-shadow: 0 2px 3px #161324;
}
.crew-sprite {
  --crew-size: 80px;
  display: block;
  width: var(--crew-size);
  height: var(--crew-size);
  background: url("assets/images/characters/astronauts/crew-helmet-sprites-1x.png") 0 calc(var(--crew-size) * var(--row)) / calc(var(--crew-size) * 12) calc(var(--crew-size) * 4);
  image-rendering: pixelated;
}
.shazer-sprite {
  width: 120px;
  height: 120px;
  display: block;
  background: url("assets/images/characters/shazer/shazer-sprites-1x.png") 0 0 / 1440px 120px;
  image-rendering: pixelated;
}
.screen-content {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 24px;
  padding: 24px 0;
  align-items: start;
}
.panel {
  min-width: 0;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid #424863;
  background: #1b2035;
  box-shadow: 0 10px 30px #0002;
}
.welcome {
  background: #25263f;
}
.welcome h1 {
  color: #fff0d8;
}
.welcome .primary-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}
.briefing ol {
  padding-left: 24px;
}
.briefing li {
  margin-bottom: 18px;
  padding-left: 6px;
}
.briefing li::marker {
  color: var(--amber);
  font-weight: 700;
}
.briefing strong {
  color: #fff0d8;
}
.simulation-note {
  color: var(--muted);
  border-top: 1px solid #424863;
  padding-top: 20px;
  margin-bottom: 0;
}
.mission-status h1 {
  font-size: 2rem;
}
.sol-progress {
  display: inline-block;
  color: var(--amber);
  background: #382f31;
  border: 1px solid #675544;
  border-radius: 30px;
  padding: 5px 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sol-definition,.passive-energy-use {
  color: var(--muted);
}
.resource-list {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.resource-status {
  color: var(--amber);
}
.resource-status:nth-child(2) {
  color: var(--cyan);
}
.resource-status:nth-child(3) {
  color: var(--mint);
}
.resource-label,.resource-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.resource-label {
  justify-content: space-between;
  margin-bottom: 8px;
}
.resource-label output {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.resource-icon {
  width: 28px;
  height: 28px;
  flex: none;
}
progress {
  appearance: none;
  width: 100%;
  height: 14px;
  border: 0;
  border-radius: 20px;
  background: #0e1224;
  accent-color: currentColor;
  display: block;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #0e1224;
  border-radius: 20px;
}
progress::-webkit-progress-value {
  background: currentColor;
  border-radius: 20px;
}
progress::-moz-progress-bar {
  background: currentColor;
  border-radius: 20px;
}
.resource-status--low {
  outline: 2px solid #ffb1a2;
  outline-offset: 8px;
  border-radius: 6px;
}
.resource-warning {
  color: #ffc3b6;
  margin: 8px 0 0;
  font-weight: 750;
}
.choice-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}
.choice-list button {
  width: 100%;
}
.shazer-hint {
  padding: 18px;
  margin: 18px 0 0;
  background: #283346;
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
}
.mission-outcome {
  grid-column: 1 / -1;
  max-width: 760px;
  width: 100%;
  justify-self: center;
}
.mission-outcome--victory h1 {
  color: var(--mint);
}
.mission-outcome--defeat h1 {
  color: #ffbdad;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 30px;
  color: var(--muted);
}
@media(max-width:700px) {
  #app {
    padding: 0 16px;
  }
  .site-header {
    min-height: 92px;
    gap: 12px;
  }
  .mission-tag {
    display: none;
  }
  .wordmark {
    font-size: 1rem;
  }
  .wordmark strong {
    font-size: 1.15rem;
  }
  .mars-scene {
    min-height: 270px;
    border-radius: 18px;
  }
  .scene-heading {
    padding: 20px;
  }
  .scene-heading h2 {
    font-size: 1.6rem;
    max-width: 240px;
  }
  .crew-line {
    gap: 6px;
    margin: 20px 4px 16px;
    justify-content: space-evenly;
  }
  .crew {
    gap: 4px;
  }
  .crew-sprite {
    --crew-size: 48px;
  }
  .shazer-sprite {
    width: 72px;
    height: 72px;
    background-size: 864px 72px;
  }
  .screen-content {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
    padding: 16px 0;
  }
  .panel {
    padding: 22px;
    border-radius: 16px;
  }
  .eyebrow {
    letter-spacing: .07em;
  }
  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

/* Archived science stays inside the responsive decision/outcome panels. */
.science-source, .science-explanation { overflow-wrap: anywhere; }
.science-source { color: var(--muted); }
.science-source a { color: #9dd8ff; }
.science-source a:visited { color: #d1baff; }
.science-explanation { margin: 24px 0; padding-top: 20px; border-top: 1px solid #424863; }
button:disabled { opacity: .65; cursor: not-allowed; }
