:root {
  --cream: #f4eee0;
  --muted: #c3cdc2;
  --orange: #eba875;
  --teal: #a3ccb8;
  --dark: #15272a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #192f33;
  color: var(--cream);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 13px;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
}
button {
  border: 0;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(11, 30, 34, 0.4),
      transparent 26%,
      transparent 65%,
      rgba(9, 22, 22, 0.66)
    ),
    linear-gradient(90deg, rgba(11, 26, 28, 0.1), transparent 50%);
}
header {
  position: absolute;
  top: 29px;
  left: 38px;
  right: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.wordmark {
  color: var(--cream);
  text-decoration: none;
  font-size: 19px;
  letter-spacing: 5px;
  font-weight: 350;
  pointer-events: auto;
}
.wordmark b {
  font-weight: 650;
}
.wordmark span {
  display: block;
  font-size: 8px;
  letter-spacing: 4.3px;
  margin-top: 7px;
  opacity: 0.65;
}
.compass {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 10px;
  color: #fff9;
  letter-spacing: 2px;
}
.compass #heading {
  color: var(--cream);
  font-size: 13px;
}
.compass i {
  font-style: normal;
  font-size: 14px;
  color: #fff5;
}
.compass-dot {
  position: absolute;
  top: 26px;
  left: 49%;
  font-size: 6px;
  color: var(--orange);
}
.session {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.6px;
}
.session button {
  pointer-events: auto;
  background: #17323855;
  border: 1px solid #efffe326;
  border-radius: 7px;
  padding: 9px 11px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: #b6d6b6;
  box-shadow: 0 0 12px #a8f5ad;
}
.location {
  position: absolute;
  left: 39px;
  top: 124px;
  text-shadow: 0 2px 20px #213d36;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e4e9dc;
}
.tiny-line {
  width: 20px;
  height: 1px;
  background: var(--orange);
}
h2 {
  font-weight: 450;
}
.location h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.6px;
  margin: 12px 0 15px;
}
.weather {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #e8eadbcc;
}
.weather > span:first-child {
  color: #f4d0a1;
  font-size: 17px;
}
.divider {
  height: 10px;
  width: 1px;
  background: #fff4;
  margin: 0 3px;
}
.objective {
  position: absolute;
  right: 38px;
  top: 126px;
  width: 250px;
  padding: 20px 21px 0;
  background: linear-gradient(115deg, #173432bb, #18322d88);
  border: 1px solid #e8eee221;
  border-radius: 3px;
  backdrop-filter: blur(14px);
}
.objective .eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #d9d9ba;
}
.diamond {
  color: #eabc88;
  font-size: 17px;
}
.objective h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 11px 0 9px;
}
.objective p {
  font-size: 11px;
  line-height: 1.85;
  color: #d7dfd1bb;
  margin: 0 0 19px;
}
.objective button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 18px;
  background: none;
  font-size: 9px;
  color: #e7e8d1c9;
  width: 100%;
  text-align: left;
}
.objective button > span {
  margin-left: auto;
}
.objective-progress {
  height: 2px;
  background: #dae6cb20;
  margin: 0 -21px;
}
.objective-progress i {
  display: block;
  height: 2px;
  width: 5%;
  background: #dfb587;
  transition: width 0.6s;
}
kbd {
  font-family: inherit;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  padding: 2px 4px;
  border: 1px solid #eee6ce45;
  border-radius: 3px;
  color: #ececde;
}
footer {
  position: absolute;
  bottom: 23px;
  left: 38px;
  right: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.vitals {
  width: 168px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 12px;
}
.vital {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vital > div {
  flex: 1;
}
.vital-icon {
  font-size: 22px;
  width: 20px;
  color: #ecbca4;
}
.vital:nth-child(2) .vital-icon {
  color: #bdcbaa;
}
.vital:nth-child(3) .vital-icon {
  color: #a3d0d2;
}
.vital label {
  font-size: 7px;
  letter-spacing: 1.4px;
  display: flex;
  justify-content: space-between;
  color: #e7e9d8bb;
}
.vital label b {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
}
.meter {
  height: 3px;
  background: #d6dcbe25;
  margin-top: 7px;
}
.meter i {
  height: 100%;
  display: block;
  width: 100%;
  background: #dab295;
  transition: width 0.5s;
}
.vital:nth-child(2) i {
  background: #bccba4;
}
.vital:nth-child(3) i {
  background: #9cc6c8;
}
.loadout {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  text-align: center;
}
.hotbar {
  display: flex;
  gap: 5px;
  pointer-events: auto;
}
.hotbar button {
  position: relative;
  width: 64px;
  height: 68px;
  border: 1px solid #e9eee02b;
  background: #172b2cbc;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  transition: 0.2s;
}
.hotbar button:hover {
  background: #44615a;
}
.hotbar button.selected {
  border-color: #e8ba8a;
  background: linear-gradient(135deg, #e6ae7245, #b5884830);
  box-shadow: inset 0 -2px #ebbb83;
}
.hotbar kbd {
  position: absolute;
  left: 5px;
  top: 4px;
  font-size: 8px;
  border: 0;
  opacity: 0.6;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
}
.hotbar button > span {
  font-size: 28px;
  display: block;
  margin: 1px 0 5px;
  color: #eddbc0;
}
.hotbar small {
  font-size: 6px;
  letter-spacing: 0.8px;
  color: #e6e9d3b0;
  display: block;
}
.hotbar b {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 8px;
  font-weight: 400;
}
.movement-hint {
  font-size: 8px;
  color: #e9eee19c;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  letter-spacing: 0.3px;
}
.movement-hint kbd {
  font-size: 7px;
  min-height: 14px;
}
.movement-hint > span {
  margin: 0 3px;
}
.map-corner {
  text-align: center;
  pointer-events: auto;
}
.map-corner button {
  position: relative;
  padding: 0;
  background: none;
  width: 132px;
  height: 151px;
}
.map-corner canvas {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 1px solid #eae3ca5c;
  box-shadow: 0 0 0 5px #e4e8da07;
  background: #1a403ae0;
}
.map-north {
  position: absolute;
  top: 2px;
  left: 48%;
  font-size: 8px;
}
.map-caption {
  display: block;
  font-size: 7px;
  letter-spacing: 1.3px;
  margin-top: 7px;
}
.map-caption kbd {
  font-size: 7px;
  margin-left: 7px;
  min-height: 15px;
}
.map-corner > small {
  display: block;
  margin-top: 10px;
  font-size: 6px;
  letter-spacing: 1.5px;
  color: #f0ecd078;
}
#interaction {
  position: absolute;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 19px;
  background: #142b29c9;
  border: 1px solid #e7edda33;
  border-radius: 5px;
  backdrop-filter: blur(12px);
}
#interaction > kbd {
  height: 30px;
  width: 29px;
  font-size: 13px;
  background: #f2e5ce;
  color: #23413e;
}
#interaction-title {
  font-size: 12px;
  display: block;
}
#interaction-subtitle {
  font-size: 9px;
  color: #c4d0bc;
  display: block;
  margin-top: 4px;
}
.landmark-label {
  position: absolute;
  top: 40%;
  left: 37%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  text-shadow: 0 1px 8px #243b32;
}
.landmark-label > span {
  font-size: 23px;
  color: #f2d9a4;
}
.landmark-label small {
  font-size: 7px;
  letter-spacing: 1.8px;
}
.landmark-label b {
  font-size: 9px;
  font-weight: 400;
  color: #eee8ccaa;
}
#toast {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 11px 20px;
  border-radius: 4px;
  background: #152d2ee8;
  border: 1px solid #e5d5b349;
  font-size: 11px;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hidden {
  display: none !important;
}
#loading { position: static; display: inline; background: none; }
#loading h1 {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: 15px;
}
#loading h1 span {
  font-weight: 650;
  margin-left: 20px;
}
#loading p {
  font-size: 11px;
  color: #b4c6bc;
}
.loading-line {
  height: 1px;
  width: 200px;
  background: linear-gradient(90deg, transparent, #e2b586, transparent);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
#modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #081c2466;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
#panel {
  position: relative;
  width: 820px;
  max-width: 100%;
  max-height: 88vh;
  overflow: auto;
  background: linear-gradient(130deg, #203a3af5, #142a2dfc);
  border: 1px solid #e6e7ce36;
  border-radius: 9px;
  padding: 38px;
  box-shadow: 0 30px 100px #0004;
}
#close-panel {
  position: absolute;
  right: 17px;
  top: 12px;
  font-size: 27px;
  background: none;
  color: #dce7da8c;
}
#panel h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin: 10px 0;
}
#panel .sub {
  font-size: 12px;
  color: #c0cdc1;
  line-height: 1.8;
  max-width: 620px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.tabs button {
  padding: 9px 17px;
  background: #dbe8cd0c;
  border: 1px solid #e0ead322;
  border-radius: 3px;
  font-size: 11px;
}
.tabs .active {
  color: #eed2ac;
  border-color: #eac49688;
  background: #e2c29115;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  background: #dce5cc08;
  border: 1px solid #e2e9dc22;
  border-radius: 5px;
  padding: 17px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card:hover {
  border-color: #e6be8177;
}
.card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.card p {
  font-size: 10px;
  line-height: 1.7;
  color: #b8c9bf;
  margin: 0;
}
.card .cost {
  font-size: 9px;
  color: #c9cdb8;
  line-height: 1.8;
}
.cost .missing {
  color: #e79b86;
}
.card button,
.primary {
  background: #e2b88b;
  color: #213632;
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.card button {
  margin-top: auto;
}
.card button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.card .installed {
  color: #a8ccaf;
  font-size: 10px;
  margin-top: auto;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.resource {
  background: #d9e9d009;
  border: 1px solid #e4e8cc20;
  padding: 14px;
  border-radius: 4px;
}
.resource strong {
  display: block;
  font-size: 24px;
  font-weight: 300;
  color: #dfc4a0;
}
.resource span {
  font-size: 11px;
}
.resource small {
  display: block;
  font-size: 8px;
  line-height: 1.6;
  color: #99b3a8;
  margin: 5px 0;
}
.resource button {
  font-size: 9px;
  background: #d6ddc21b;
  padding: 5px 10px;
  border-radius: 3px;
}
.journal-row {
  padding: 16px 0;
  border-bottom: 1px solid #d3e3cf1b;
  display: flex;
  gap: 20px;
}
.journal-row > span {
  color: #e4bf91;
  font-size: 13px;
}
.journal-row h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.journal-row p {
  color: #b3c5ba;
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.journal-row.locked {
  opacity: 0.4;
}
input,
select {
  background: #0d2227;
  color: #ede8d9;
  border: 1px solid #aecbb13b;
  border-radius: 4px;
  padding: 10px;
  font: inherit;
}
label.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #d1e3cc14;
  font-size: 12px;
}
.control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.control-grid button {
  background: #d1e2c810;
  border: 1px solid #dae9d426;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  border-radius: 3px;
  font-size: 10px;
}
.intro {
  position: absolute;
  left: 39px;
  top: 36%;
  width: 370px;
  background: linear-gradient(90deg, #19342bbc, transparent);
  padding: 25px 25px 25px 0;
}
.intro-index {
  font-size: 12px;
  color: #e7bd8b;
  letter-spacing: 2px;
}
.intro-index span {
  font-size: 8px;
  color: #d7e1cd99;
  margin-left: 8px;
}
.intro h2 {
  font-family: Georgia, serif;
  font-size: 37px;
  line-height: 1.13;
  margin: 17px 0;
}
.intro p {
  font-size: 11px;
  color: #e0e7d6b8;
  line-height: 1.9;
}
.intro button {
  background: #e9c096;
  color: #243b34;
  padding: 13px 17px;
  border-radius: 3px;
  font-size: 11px;
  margin: 13px 0 17px;
  width: 237px;
  display: flex;
  justify-content: space-between;
}
.intro > small {
  font-size: 6px;
  letter-spacing: 1.4px;
  color: #dee7ca85;
}
#discovery {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 20px #102b27;
}
#discovery .eyebrow {
  justify-content: center;
  font-size: 9px;
  color: #dfbc8a;
}
#discovery h2 {
  font: 40px Georgia;
  margin: 12px;
}
#discovery p {
  font-size: 12px;
  color: #d8e1d0;
}
#build-help,
#launch-hud {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: #142c2bdd;
  border: 1px solid #e7c39b77;
  border-radius: 5px;
  padding: 14px 25px;
  text-align: center;
}
#build-help p {
  font-size: 10px;
  color: #c6d5c2;
}
#launch-hud {
  top: 100px;
  bottom: auto;
  font-size: 12px;
  line-height: 2;
  min-width: 300px;
}
.big-map {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  margin: 16px 0;
}
.ending {
  text-align: center;
  padding: 20px;
}
.ending h2 {
  font-size: 52px !important;
}
.ending .eyebrow {
  justify-content: center;
}
.ending .sub {
  margin: 18px auto;
}
.planet-preview {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 25%,
    #dbdfd8,
    #8097b4 35%,
    #304756 68%,
    #162c2e
  );
  box-shadow: -10px -4px 50px #9ad0dc20;
  margin: 30px auto;
}
.crew-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.crew-form input {
  flex: 1;
  min-width: 160px;
}
.notice {
  border-left: 2px solid #d9b789;
  padding: 12px 17px;
  color: #c2d1c4;
  line-height: 1.8;
  font-size: 11px;
  margin-top: 18px;
}
@media (max-width: 1000px) {
  .objective {
    width: 215px;
    right: 24px;
  }
  .location {
    left: 24px;
  }
  .location h2 {
    font-size: 27px;
  }
  header {
    left: 24px;
    right: 24px;
  }
  .session > span:not(.live-dot) {
    display: none;
  }
  footer {
    left: 24px;
    right: 24px;
  }
  .hotbar button {
    width: 53px;
  }
  .vitals {
    width: 135px;
  }
  .map-corner button {
    width: 105px;
    height: 125px;
  }
  .map-corner canvas {
    width: 100px;
    height: 100px;
  }
  .intro {
    left: 24px;
  }
  .compass {
    gap: 12px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-height: 680px) {
  .location {
    top: 100px;
  }
  .objective {
    top: 100px;
  }
  .intro {
    top: 34%;
  }
  .intro h2 {
    font-size: 29px;
  }
  .intro p {
    font-size: 10px;
  }
  .intro > small {
    display: none;
  }
  .intro button {
    margin-top: 3px;
  }
  .map-corner canvas {
    width: 95px;
    height: 95px;
  }
  .map-corner button {
    height: 121px;
  }
  .vitals {
    gap: 9px;
  }
  .hotbar button {
    height: 57px;
  }
  .movement-hint {
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.ascending footer,
.ascending .objective,
.ascending .location,
.ascending .compass,
.ascending #interaction,
.ascending #landmark-label {
  display: none !important;
}
.ascending #launch-hud {
  top: auto;
  bottom: 35px;
  background: none;
  border: 0;
  letter-spacing: 3px;
  font-size: 10px;
  text-shadow: 0 1px 10px #123;
}
.ascending #vignette {
  background: linear-gradient(
    180deg,
    #081e2933,
    transparent 20%,
    transparent 80%,
    #081e2977
  );
}
/* Quiet exploration HUD: everything else lives in the backpack. */
.quiet-header {
  display: block;
  pointer-events: none;
  top: 31px;
  left: 34px;
  right: auto;
}
.quiet-header .wordmark {
  font-size: 21px;
  letter-spacing: 5px;
}
.quiet-time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 15px;
  color: #e5e9d8aa;
}
.quiet-time #sun-icon {
  font-size: 16px;
  color: #e1c99f;
}
.pack-button {
  position: fixed;
  left: 31px;
  bottom: 29px;
  width: 54px;
  height: 58px;
  border: 1px solid #dce7d329;
  border-radius: 12px;
  background: #17333366;
  backdrop-filter: blur(12px);
  color: #ece2ca;
  transition:
    background 0.2s,
    transform 0.2s;
  z-index: 2;
}
.pack-button:hover {
  background: #2b4947cc;
  transform: translateY(-2px);
}
.pack-button svg {
  width: 33px;
  height: 38px;
}
.pack-nav {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #dce8d526;
  margin: -10px 0 27px;
  padding: 0 0 16px;
}
.pack-nav button {
  background: none;
  padding: 10px 16px;
  color: #bdcabe;
  font-size: 11px;
  border-radius: 5px;
}
.pack-nav button.active {
  background: #e3cfab18;
  color: #ead5b2;
}
.item-icon {
  width: 52px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 3px 6px #0003);
}
.resource {
  position: relative;
  min-height: 143px;
  padding: 15px;
  background: linear-gradient(145deg, #d9e9d010, #d9e9d005);
}
.resource strong {
  position: absolute;
  right: 14px;
  top: 15px;
  font-size: 20px;
}
.resource > span {
  display: block;
  margin-top: 8px;
}
.resource .item-icon {
  width: 47px;
  height: 47px;
}
.status-icon {
  width: 23px;
  height: 23px;
}
.pack-vitals {
  display: flex;
  gap: 25px;
  margin: 22px 0;
  padding: 15px 0;
  border-block: 1px solid #dce8d519;
  color: #c3d3c6;
}
.pack-vitals > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.pack-vitals b {
  color: #e8d7b8;
  font-weight: 400;
}
.equipment-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px;
  margin-bottom: 18px;
  border: 1px solid #d9c59a30;
  border-radius: 5px;
}
.equipment-row small {
  display: block;
  color: #adbdad;
  font-size: 10px;
  margin-top: 5px;
}
.equipment-row .item-icon {
  width: 39px;
  height: 39px;
}
.card > .item-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}
.replay-button {
  background: #c5d2bd15;
  border: 1px solid #d3dbc332;
  padding: 11px 15px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 15px;
}
.intro-motion {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dbe8d2aa;
}
.intro-motion input {
  accent-color: #d8b182;
}
.intro {
  width: 370px;
}
.intro h2 {
  font-size: 41px;
}
#interaction {
  bottom: 43px;
  border-color: #eee4ce20;
  background: #1e363377;
  padding: 10px 15px;
}
#interaction-subtitle {
  display: none;
}
#build-help {
  bottom: 38px;
}
.ascending .pack-button {
  display: none;
}
.cinematic .quiet-header,
.cinematic .pack-button,
.cinematic #interaction,
.cinematic #vignette,
.cinematic #toast {
  display: none;
}
#cinematic-ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  border-top: 7vh solid #02080c;
  border-bottom: 7vh solid #02080c;
  z-index: 20;
}
#crash-caption {
  position: absolute;
  bottom: 24px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: #c7d9da;
  text-shadow: 0 2px 12px #000;
}
#skip-crash {
  pointer-events: auto;
  position: absolute;
  bottom: -5vh;
  right: 30px;
  background: none;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8fa7ac;
}
#crash-blackout {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: 0;
  z-index: 21;
  transition: opacity 0.12s;
}
#panel {
  width: 860px;
}
.cinematic #modal {
  display: none;
}
.card .eyebrow {
  font-size: 7px;
}
.intro .intro-index {
  display: none;
}
@media (max-width: 700px) {
  .pack-nav {
    flex-wrap: wrap;
  }
  .pack-nav button {
    padding: 8px;
  }
  .inventory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .quiet-header {
    left: 22px;
  }
  .pack-button {
    left: 20px;
    bottom: 20px;
  }
  .pack-vitals {
    gap: 10px;
  }
  .pack-vitals > span {
    font-size: 9px;
  }
}

/* A quiet, opaque title screen keeps the planet undiscovered until Start. */
#intro {
  position: fixed;
  inset: 0;
  width: auto;
  padding: 24px;
  z-index: 19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  background: #02050b;
}
#intro.hidden {
  display: none;
}
#intro h1 {
  margin: 0;
  color: #f1f0e9;
  font-family: inherit;
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-align: center;
  text-shadow: 0 0 32px #b7d6ff25;
}
#intro h1 strong {
  font-weight: 650;
}
#intro #begin-button {
  display: block;
  width: 168px;
  margin: 0;
  padding: 14px 24px;
  background: #c4d9f008;
  border: 1px solid #c9dcec66;
  border-radius: 3px;
  color: #f1f0e9;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-align: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}
#intro #begin-button:hover,
#intro #begin-button:focus-visible {
  background: #c4d9f01c;
  border-color: #e0edff;
  outline: 2px solid #e0edff44;
  outline-offset: 5px;
}
body:has(#intro:not(.hidden)) .quiet-header,
body:has(#intro:not(.hidden)) .pack-button,
body:has(#intro:not(.hidden)) #vignette,
body:has(#intro:not(.hidden)) #interaction,
body:has(#intro:not(.hidden)) #toast {
  visibility: hidden;
}

#intro .title-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#intro h1,
#intro #begin-button {
  position: relative;
  z-index: 1;
}

#name-home {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0;
}
#name-home label {
  display: grid;
  gap: 9px;
  flex: 1;
  min-width: 190px;
  color: #ccd8ca;
  font-size: 12px;
}
#name-home input {
  width: 100%;
  box-sizing: border-box;
}
#name-home button {
  padding: 12px 20px;
  border: 1px solid #cdb38970;
  background: #cdb38918;
  color: #e8dac0;
  border-radius: 3px;
}

/* Field equipment: clear hierarchy, readable inventories, quiet transitions. */
#modal {
  background: #07101380;
  backdrop-filter: blur(9px) saturate(0.75);
}
#panel {
  width: 940px;
  padding: 32px 40px 38px;
  background: linear-gradient(125deg, #20302feb, #111e22fa);
  border-color: #c1cdc52b;
  border-radius: 8px;
  box-shadow:
    0 24px 90px #0008,
    inset 0 1px #ffffff08;
  scrollbar-color: #8e9e9270 transparent;
}
#panel h2 {
  font-family: inherit;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 9px 0;
}
#panel .eyebrow {
  color: #aabdae;
  letter-spacing: 0.17em;
}
#panel .sub {
  font-size: 13px;
  color: #bbc8c1;
}
.pack-nav {
  gap: 4px;
  padding-right: 20px;
}
.pack-nav button {
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 2px;
  border-bottom: 2px solid transparent;
}
.pack-nav button.active {
  border-bottom-color: #e3c59a;
  background: #cbd9c807;
}
.cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 9px 15px;
  padding: 20px;
  min-height: unset;
  background: #dce5cc04;
  border-color: #e2e9dc18;
}
.card > .item-icon {
  grid-row: 1 / 4;
  align-self: center;
}
.card .eyebrow,
.card h3,
.card p {
  grid-column: 2;
}
.card .eyebrow {
  font-size: 9px;
}
.card h3 {
  font-size: 15px;
}
.card p {
  font-size: 12px;
  line-height: 1.55;
}
.card .cost {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid #dce5cc12;
  padding-top: 13px;
  margin-top: 5px;
}
.cost > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 1.4;
}
.cost .item-icon {
  width: 25px;
  height: 25px;
  filter: none;
}
.cost b {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
}
.card button,
.card .installed {
  grid-column: 1 / -1;
  font-size: 12px;
  margin-top: 7px;
}
.card button:disabled {
  opacity: 0.55;
  background: #93a49c19;
  color: #bec7c0;
}
.inventory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.resource {
  min-height: 150px;
  border-color: #e4e8cc18;
  background: radial-gradient(ellipse at 25% 15%, #b1c5b00e, transparent 75%);
}
.resource strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #f0e2c9;
}
.resource > span {
  font-size: 12px;
  font-weight: 500;
  margin-top: 12px;
}
.resource small {
  font-size: 10px;
  line-height: 1.5;
  color: #adbbb3;
}
.resource button {
  padding: 7px 12px;
  font-size: 11px;
  margin-top: 5px;
}
.pack-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 15px;
  font-size: 12px;
  color: #c4cec5;
}
.pack-search input {
  width: 55%;
  max-width: 300px;
  padding: 10px 12px;
  color: #eef0e5;
  background: #08141650;
  border: 1px solid #dce8cc26;
  border-radius: 3px;
  font: inherit;
}
.resource[hidden] {
  display: none;
}
button {
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ead0a2;
  outline-offset: 3px;
}
#close-panel {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 24px;
}
#interaction {
  background: #112a2ad9;
  border-radius: 4px;
  box-shadow: 0 8px 28px #0003;
}
@media (max-width: 700px) {
  #modal {
    padding: 12px;
  }
  #panel {
    padding: 25px 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pack-nav button {
    padding: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}
/* Quiet quick equipment: a matching dock button and a spring-out item wheel. */
.held-button {
  left: 97px;
}
.empty-hand {
  font-size: 27px;
}
#equipment-wheel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 440px;
  transform: translate(-50%, -48%) scale(0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(12, 32, 32, 0.96) 22%,
    rgba(12, 32, 32, 0.88) 55%,
    transparent 72%
  );
  transition:
    opacity 0.22s,
    transform 0.28s,
    visibility 0.28s;
  color: #ece8d7;
}
#equipment-wheel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.wheel-center {
  position: absolute;
  inset: 165px 100px auto;
  text-align: center;
  display: grid;
  gap: 9px;
  pointer-events: none;
}
.wheel-center span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #b1c1b5;
}
.wheel-center strong {
  font-size: 16px;
}
.wheel-center small {
  font-size: 10px;
  line-height: 1.6;
  color: #bdc9c0;
}
.wheel-item {
  position: absolute;
  left: calc(50% - 40px);
  top: calc(50% - 50px);
  width: 80px;
  height: 85px;
  padding: 7px;
  border: 1px solid #819d8d55;
  border-radius: 16px;
  background: #183d3bdd;
  color: inherit;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  transform: translate(0, 0) scale(0.5);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.18s;
  transition-delay: calc(var(--i) * 15ms);
}
.open .wheel-item {
  transform: translate(var(--x), var(--y)) scale(1);
}
.wheel-item svg {
  width: 31px;
  height: 31px;
}
.wheel-item span {
  font-size: 10px;
}
.wheel-item small {
  font-size: 9px;
  color: #bacdbb;
}
.wheel-item:hover,
.wheel-item.selected {
  background: #576a4d;
  border-color: #e6bb86;
}
.wheel-item:focus-visible {
  outline: 2px solid #e6bb86;
  outline-offset: 3px;
}
.wheel-footer {
  position: absolute;
  bottom: -10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.wheel-footer button {
  background: #173b39;
  color: #ede8d8;
  border: 1px solid #84998966;
  border-radius: 9px;
  padding: 8px 13px;
}
@media (prefers-reduced-motion: reduce) {
  #equipment-wheel,
  .wheel-item {
    transition: none;
  }
}
@media (max-width: 600px) {
  .held-button {
    left: 100px;
  }
  #equipment-wheel {
    transform: translate(-50%, -50%) scale(0.8);
  }
  #equipment-wheel.open {
    transform: translate(-50%, -50%) scale(0.8);
  }
}
#interaction.structure-target #interaction-subtitle,
#interaction.discovery-target #interaction-subtitle {
  display: block;
  font-size: 10px;
  color: #c9d5c4;
  margin-top: 3px;
  max-width: min(62vw, 440px);
  line-height: 1.4;
}
body.touch-active #interaction > kbd {width:auto;min-width:44px;padding:0 6px;font-size:10px;}

/* Damage feedback appears only when hurt or critically low. No strobing or camera shake. */
#damage-overlay{position:fixed;inset:0;pointer-events:none;z-index:6;opacity:0;transition:opacity .3s ease;background:radial-gradient(ellipse at center,transparent 40%,rgba(157,30,24,.72) 100%);box-shadow:inset 0 0 45px #b1443544}
#health-warning{position:fixed;left:32px;bottom:122px;z-index:7;width:230px;padding:16px 18px;color:#fff1e5;background:#321e1ee8;border:1px solid #c8766480;border-radius:10px;pointer-events:none}
#health-warning>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:2px}
#health-number{font-size:22px;letter-spacing:0}
.health-track{height:4px;background:#ffffff25;margin-top:9px}.health-track i{display:block;height:100%;background:#ed8c77;transition:width .2s}
#health-warning p{font-size:12px;line-height:1.5;margin:10px 0 0;color:#f2cabc}

#controller-hint{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:110;color:#f0e6d1;background:#102c2ddd;padding:9px 16px;border-radius:20px;font-size:12px;pointer-events:none;white-space:nowrap}#controller-hint:empty{display:none}.controller-active :focus{outline:2px solid #edc393!important;outline-offset:4px}.controller-active [data-remap]{display:none}#controller-keyboard{position:fixed;z-index:200;left:50%;top:50%;transform:translate(-50%,-50%);width:min(600px,90vw);padding:28px;background:#122d30;box-shadow:0 0 0 100vmax #0009;border:1px solid #b7c6b466;border-radius:16px;color:#f4eddc}#controller-keyboard output{display:block;min-height:40px;padding:12px;background:#081c20;margin-bottom:20px;overflow-wrap:anywhere}#controller-keyboard>div{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}#controller-keyboard button{min-height:42px;padding:8px}.controller-active [data-tip]:focus:after{content:attr(data-tip);display:block;font-size:12px;max-width:240px}
#controller-hint{max-width:80vw;white-space:normal;text-align:center}body:has(#controller-keyboard) #controller-hint{z-index:201}
.card button.unavailable{opacity:.65}.card button.unavailable:focus{opacity:1}.recipe-feedback{border-left:2px solid #e6bb86;padding:10px 12px;margin:12px 0 0;color:#f1d7b3;font-size:13px;line-height:1.6}

/* No permanent controller instruction ribbon. */
#controller-hint { display:none !important; }
button.primary, .departure-button { color:#172b2c !important; background:#edc491 !important; opacity:1; }
.departure-button { min-height:56px; padding:16px 28px; font-size:17px; margin:12px 0; }
#flight-hud { position:fixed; inset:0; pointer-events:none; color:#e7f3f4; z-index:9; }
#flight-hud[hidden] { display:none; }
.flight-celebration { position:absolute; top:15%; left:0; right:0; text-align:center; text-shadow:0 2px 20px #000; }
.flight-celebration small { letter-spacing:.25em; font-size:10px; }
.flight-celebration h2 { font-size:48px; margin:14px; font-weight:400; }
.flight-celebration p { color:#c7d9de; }
.flight-readout { position:absolute; bottom:12%; left:50%; transform:translateX(-50%); min-width:240px; text-align:center; padding:16px 26px; background:#0a202de6; border:1px solid #84b9c43b; border-radius:9px; display:grid; gap:6px; }
.flight-readout strong {font-size:24px;font-weight:400}.flight-readout small {color:#9db4c1}.flight-readout button {pointer-events:auto;margin-top:8px}.flight-readout button[hidden]{display:none}
.flight-reticle {position:absolute;top:49%;left:50%;font-size:30px;color:#afd0d6}
.in-space .quiet-time,.in-space #interaction,.in-space #launch-hud,.in-space #health-warning,.in-space #held-button {display:none!important}
.in-space #inventory-button {z-index:12}

/* Controller-friendly catalogue: large silhouettes, compact information. */
#panel:has(.build-catalog){width:min(1240px,96vw);max-height:94vh;}
.build-catalog h2{font-size:32px;margin:12px 0 4px}
.build-catalog>.eyebrow{display:none}
.build-catalog>.sub{margin:0 0 14px}
.build-catalog .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.build-catalog .card{display:grid;grid-template-columns:76px minmax(0,1fr);padding:14px;gap:4px 12px;min-height:158px;background:linear-gradient(135deg,#28444088,#142928dd);border:1px solid #9fbdad25;border-radius:12px;}
.build-catalog .card>.item-icon{width:76px;height:76px;grid-column:1;grid-row:1/4;filter:drop-shadow(0 5px 8px #0005)}
.build-catalog .card>.eyebrow{display:none}
.build-catalog .card h3{grid-column:2;margin:5px 0;font-size:16px;align-self:end}
.build-catalog .card p{grid-column:2;font-size:11px;line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.build-catalog .card .cost{grid-column:1/-1;margin:4px 0;padding:6px 0 0;gap:10px;flex-wrap:nowrap;}
.build-catalog .cost>span{font-size:0;gap:3px;}
.build-catalog .cost b{font-size:11px;white-space:nowrap}
.build-catalog .cost .item-icon{width:20px;height:20px}
.build-catalog .card button{grid-column:1/-1;min-height:30px;padding:7px;font-size:11px;border-radius:6px}
.build-catalog .card:focus-within{border-color:#e6bb86;background:#35534b;box-shadow:0 0 0 1px #e6bb86}
.build-catalog .tabs{gap:7px;margin-bottom:14px}
.build-catalog .tabs button{border-radius:20px;padding:9px 16px}
@media(min-width:1400px){.build-catalog .cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:740px){.build-catalog .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.build-catalog .card{grid-template-columns:52px minmax(0,1fr);padding:10px}.build-catalog .card>.item-icon{width:52px;height:62px}}

.build-finishes{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:12px;color:#b4c6bc}.build-finishes button{padding:6px 12px;border-radius:6px}.build-finishes .active{border-color:#e6bb86;color:#f2d0a0}

.build-finishes button{background:#142e2d;color:#cad4c6;border:1px solid #a8c2b044;cursor:pointer}.build-finishes button.active{background:#e6bb8620;color:#efcc9a;border-color:#e6bb86}
.build-catalog .card{grid-template-rows:auto auto auto 30px;min-height:150px;}
.build-catalog .card>.item-icon{grid-row:1/3}
.build-catalog .card p{align-self:start}
.build-catalog .card .cost{grid-row:3}
.build-catalog .card button{grid-row:4}
.build-catalog .card .recipe-feedback{display:block;grid-column:1/-1;grid-row:5;-webkit-line-clamp:unset;overflow:visible}
/* Native-world upgrades may combine more ingredients than a building piece. */
.build-catalog .card .cost{flex-wrap:wrap;row-gap:4px}
/* Quiet, readable feedback: no flashing, no additional control legend. */
#boost-readout{position:fixed;right:28px;bottom:30px;width:150px;padding:12px 15px;background:#102a2bdc;border:1px solid #90b7ab55;border-radius:10px;pointer-events:none;color:#eae4cf;font-size:11px;letter-spacing:1.6px}
#boost-readout[hidden]{display:none}#boost-readout>div{height:4px;margin-top:9px;background:#b5d6cd22;border-radius:4px;overflow:hidden}#boost-fill{display:block;height:100%;background:#c0e9da;transition:width .15s linear}
.build-search{display:flex;align-items:center;gap:16px;margin:12px 0 16px}.build-search span{font-size:12px;color:#b9ccc3}.build-search input{flex:1;min-width:0;padding:12px 15px;border:1px solid #91b5a955;border-radius:8px;background:#0a2325;color:#f6edda;font:inherit}.build-search input:focus{outline:2px solid #e6bd8a;outline-offset:2px}.search-empty{padding:20px;color:#ded7c6}
#placement-status{padding:8px 12px;border-radius:6px;background:#163c30e8;color:#c2f0d2!important;font-size:13px!important;letter-spacing:0!important;margin:8px 0 0!important}#placement-status.invalid{background:#54342ae8;color:#ffcfb3!important}
.ascending #launch-hud{color:#fff0d8!important;letter-spacing:1.5px;font-size:12px;background:#0d202bba;padding:12px 18px;border-radius:9px;min-width:230px;text-align:center}.ascending #launch-hud:empty{display:none}.ascending #launch-hud:after{content:"";display:block;margin-top:9px;width:var(--launch-progress,0%);height:2px;background:#e7c595;transition:width .3s linear}
#damage-overlay{transition:opacity .65s ease}
@media(prefers-reduced-motion:reduce){#boost-fill,.ascending #launch-hud:after,#damage-overlay{transition:none}}

.recipe-feedback{color:#ffb09a;border-left-color:#f08872;background:#4b252333;}

.build-catalog .card p.recipe-feedback{color:#ff9b83;border-left-color:#f08872;background:#4b252355;font-size:12px;padding:10px 12px;}

#begin-button:disabled { cursor: wait; opacity: .7; pointer-events: none; }
/* One creation menu row, shared by mouse and controller. */
.build-menu-switch{display:flex;gap:8px;margin:14px 0 20px;flex-wrap:wrap}
.build-menu-switch button{flex:1;min-width:140px;padding:12px 16px;font-size:14px}
.build-menu-switch button.active{background:#dfb986;color:#142b2c;border-color:#edcaa0}
.equipment-row>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.equipment-row>span small{opacity:.7}
.build-menu-switch button{background:#253c3d;color:#f3eddd;border:1px solid #4a5e5c;border-radius:8px;font-family:inherit;cursor:pointer}
.build-menu-switch button.active{background:#dfb986;color:#142b2c;border-color:#edcaa0}
.usable-grid .resource{min-height:100px;padding:12px}
.usable-grid .resource svg{width:38px;height:38px}
.usable-grid .resource span{margin-top:4px}

#combat-hud{position:fixed;top:14%;left:50%;transform:translateX(-50%);width:min(330px,72vw);padding:13px 17px;background:#0c2328dc;border:1px solid #a6c4bd55;border-radius:9px;color:#f2ecdc;pointer-events:none;z-index:8}
#combat-hud[hidden],#combat-hit[hidden]{display:none}
.combat-heading{display:flex;justify-content:space-between;gap:16px;font-size:13px}.combat-heading span{font-variant-numeric:tabular-nums;color:#b8d4ce}.combat-track{height:5px;background:#ffffff22;margin:9px 0;border-radius:3px;overflow:hidden}.combat-track i{display:block;height:100%;background:#bddec8;transition:width .16s ease}#combat-hud p{font-size:11px;color:#c3d5cf;margin:0}#combat-hud.incoming{border-color:#ec9c68}#combat-hud.incoming p{color:#ffd09a}#combat-hit{position:fixed;left:50%;top:52%;transform:translateX(-50%);color:#fff0c4;font-size:22px;font-weight:600;text-shadow:0 2px 6px #000;pointer-events:none;z-index:9}
.menu-pad-symbol{display:inline-block;margin-right:.65em;font-size:1.3em;line-height:1;vertical-align:-.04em}

/* Nivalis adventure: quiet guidance outside combat, readable attack tells inside. */
#nivalis-story{position:fixed;right:24px;top:100px;width:290px;padding:18px 20px;background:linear-gradient(135deg,#102c36ed,#123f45cf);border:1px solid #80c8c54a;border-radius:14px;color:#e9f3e8;pointer-events:none;z-index:8;box-shadow:0 10px 30px #00151b33}
#nivalis-story[hidden]{display:none}#nivalis-story small{font-size:9px;letter-spacing:2px;color:#9ac4bc}#nivalis-story strong{display:block;font-size:19px;margin-top:7px}#nivalis-story p{font-size:13px;line-height:1.55;margin:9px 0}#nivalis-story span{font-size:10px;color:#b6ddd2}.serpent-health{height:5px;background:#253b45;margin:13px 0;border-radius:4px;overflow:hidden}.serpent-health i{display:block;height:100%;background:#d6ac70;transition:width .2s}.hoard-confirm{padding:20px;border:1px solid #d6ac70;border-radius:14px;margin-top:20px}.hoard-confirm button{margin-right:12px}
@media(max-width:800px){#nivalis-story{right:12px;top:80px;width:210px;padding:12px}#nivalis-story p{font-size:11px}}

/* Keep the desktop fullscreen control quiet but available over menus. */
#fullscreen-toggle{position:fixed;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));z-index:1000;width:42px;height:42px;padding:10px;display:grid;place-items:center;color:#f1eee2;background:rgba(20,42,43,.35);border:1px solid rgba(224,240,234,.3);border-radius:12px;opacity:.65;cursor:pointer;backdrop-filter:blur(8px);transition:opacity .18s,background .18s}
#fullscreen-toggle:hover,#fullscreen-toggle:focus-visible{opacity:1;background:rgba(20,42,43,.8)}
#fullscreen-toggle:focus-visible{outline:2px solid #e5bd84;outline-offset:3px}
#fullscreen-toggle .contract,#fullscreen-toggle.is-fullscreen .expand{display:none}
#fullscreen-toggle.is-fullscreen .contract{display:block}
#fullscreen-notice{position:fixed;right:18px;top:70px;max-width:300px;z-index:1001;padding:12px 16px;border-radius:10px;background:rgba(20,42,43,.92);color:#f1eee2;font-size:13px}
@media (pointer:coarse) and (hover:none){#fullscreen-toggle{display:none}}

/* An optional field journal for the outer provinces; no progression gates. */
.remnant-journal{margin-top:24px;border-top:1px solid #a3ccb833;padding-top:16px}
.remnant-journal article{padding:14px 0;border-bottom:1px solid #a3ccb820;max-width:650px}
.remnant-journal h4{font-size:15px;letter-spacing:.04em;margin:0 0 8px;color:var(--cream)}
.remnant-journal article p{line-height:1.6;margin:0 0 8px;color:var(--muted)}
.remnant-journal small{color:#a3ccb8;font-size:10px;letter-spacing:.13em}

/* Cartography has its own gestures; map zoom never changes the world camera. */
#panel:has(#exploration-map){width:min(1100px,96vw);}
.map-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:15px 0 10px;}
.map-toolbar button{padding:9px 12px;min-height:40px;font-size:12px;}
.map-toolbar output{min-width:95px;text-align:center;font-size:11px;color:#c6d7d4;}
.map-viewport{position:relative;border:1px solid #bad5cc38;border-radius:8px;overflow:hidden;background:#0d2028;}
#big-map{display:block;width:100%;height:clamp(230px,48vh,520px);touch-action:none;cursor:crosshair;outline-offset:-3px;}
#big-map:focus-visible{outline:2px solid #8fddd4;}
.map-north{position:absolute;top:12px;left:15px;font-size:12px;color:#e0e9dc;pointer-events:none;}
.map-crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:22px;color:#ecedcfb0;text-shadow:0 1px 3px #000;pointer-events:none;}
.map-scale{position:absolute;bottom:12px;left:15px;pointer-events:none;color:#e0e9dc;font-size:10px;}
.map-scale span{display:block;border:1px solid #e0e9dc;border-top:0;height:5px;margin-bottom:3px;}
.map-footer,.map-legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#b5c9c4;font-size:11px;margin-top:12px;}
.map-help{font-size:11px!important;line-height:1.7!important;color:#b5c9c4;}
.map-legend{justify-content:flex-start;gap:17px;}
#map-feedback{min-height:16px;font-size:12px;color:#aee5dc;}
#map-navigation{display:flex;margin-top:5px;pointer-events:none;font-size:10px;line-height:16px;text-shadow:0 1px 4px #07191f;}
#map-navigation[hidden]{display:none;}
#map-navigation span{display:flex;align-items:center;gap:6px;}
#map-navigation i{display:inline-block;font-style:normal;font-size:14px;}
#map-navigation b{font-weight:500;}
#map-navigation [data-nav=waypoint]{color:#8fe9e4;}
@media(max-width:650px){#panel:has(#exploration-map){padding:22px 14px 14px;}#big-map{height:42vh;min-height:220px;}.map-toolbar{gap:5px;}.map-toolbar button{padding:8px 10px;}}
@media(max-height:500px){#panel:has(#exploration-map) h2{font-size:22px;}#panel:has(#exploration-map)>.sub,#panel:has(#exploration-map) .eyebrow{display:none;}#big-map{height:50vh;min-height:160px;}.map-help{font-size:10px!important;}}
.map-toolbar button{background:#1d393d;color:#e6efe3;border:1px solid #b3d2c83b;border-radius:6px;font:inherit;font-size:12px;cursor:pointer;}
.map-toolbar button:hover,.map-toolbar button:focus-visible{background:#305558;border-color:#9adbd0;outline:2px solid #9adbd066;outline-offset:2px;}
.map-toolbar button:disabled{opacity:.4;cursor:default;}
@media(max-height:500px){#panel:has(#exploration-map) #panel-content>.sub{display:none;}.map-toolbar{margin-top:5px;}#panel:has(#exploration-map){padding:18px;}}

/* Expedition equipment uses the same field-kit palette as the existing menus. */
#gear-hud{position:fixed;left:50%;top:18%;transform:translateX(-50%);max-width:min(660px,85vw);padding:10px 16px;border:1px solid #bcd4be55;border-radius:8px;background:#123031db;color:#f2e6cb;text-align:center;font-size:13px;pointer-events:none;z-index:12;backdrop-filter:blur(8px)}
#gear-hud[hidden]{display:none}.gear-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:start}.gear-actions>p,.gear-actions>h3,.gear-cargo{width:100%}.gear-actions button:disabled{opacity:.4;cursor:not-allowed}.gear-cargo-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #bcd4be22}.gear-cargo-row>span{flex:1}.gear-cargo-row small{display:block;opacity:.65;font-size:12px}.gear-cargo-row button{padding:9px 12px}#crew-signals{color:#83e5d5;font-size:13px}.map-toolbar{flex-wrap:wrap}
