:root {
  color-scheme: dark;
  --bg: #101c24;
  --surface: #172630;
  --surface-raised: #1c2e39;
  --ink: #f4eedf;
  --muted: #9bafb7;
  --line: #30434d;
  --gold: #e8c777;
  --gold-dark: #342e21;
  --mission-color: #8ed6ad;
  font-family:
    Inter,
    "Avenir Next",
    Avenir,
    system-ui,
    -apple-system,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
a {
  color: var(--gold);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}
h1 em {
  font-weight: 400;
  color: var(--gold);
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.7;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8ed6ad;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 4px #8ed6ad14;
}
.site-header {
  max-width: 1300px;
  margin: auto;
  height: 100px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 650;
  letter-spacing: 0.17em;
  font-size: 21px;
  padding: 0;
}
.brand-symbol {
  font-size: 42px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 7px;
  letter-spacing: 0.19em;
  margin-top: 4px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav button {
  font-size: 12px;
  padding: 10px 0;
  color: var(--muted);
}
nav button:hover {
  color: var(--ink);
}
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--surface-raised);
  font-size: 10px;
  margin-left: 4px;
}
.icon-button {
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  display: inline-grid;
  place-items: center;
}
.site-header .icon-button {
  padding: 0;
}
#app {
  max-width: 1300px;
  margin: auto;
  padding: 0 5%;
}
.home-hero {
  min-height: 510px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  align-items: center;
  padding: 55px 0 44px;
}
.hero-copy > .eyebrow {
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1.08;
}
.hero-description {
  color: var(--muted);
  max-width: 380px;
  font-size: 15px;
  margin-top: 25px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.button {
  padding: 15px 23px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  min-height: 47px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button.primary {
  background: var(--gold);
  color: #16232b;
}
.button.primary:hover {
  background: #f0d696;
  transform: translateY(-1px);
}
.button.secondary {
  background: var(--surface-raised);
  border: 1px solid var(--line);
}
.button.secondary:hover {
  background: #293e4a;
}
.button.full {
  width: 100%;
}
.text-button {
  padding: 10px 0;
  font-size: 12px;
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
.text-button:hover {
  color: var(--gold);
}
.hero-facts {
  display: flex;
  gap: 30px;
  margin-top: 41px;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.hero-facts strong {
  font-family: Georgia, serif;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  margin-right: 7px;
}
.hero-space {
  height: 385px;
  position: relative;
  background: radial-gradient(ellipse at center, #21394380, transparent 68%);
  isolation: isolate;
  overflow: hidden;
}
.space-label {
  position: absolute;
  top: 5px;
  left: 28%;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 350px;
  height: 350px;
  border: 1px solid #40535c55;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-26deg);
}
.orbit-two {
  width: 430px;
  height: 190px;
}
.planet-orb {
  width: 70px;
  height: 70px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    var(--planet),
    var(--planet-dark) 70%,
    #101c24 120%
  );
  box-shadow:
    inset -12px -12px 20px #101c2440,
    0 15px 45px #0003;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
}
.hero-orb {
  width: 242px;
  height: 242px;
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  box-shadow:
    inset -28px -22px 40px #101c2490,
    0 0 75px #8ed6ad18,
    0 24px 70px #0003;
}
.orb-land {
  position: absolute;
  display: block;
  background: var(--planet-dark);
  opacity: 0.62;
  border-radius: 38% 62% 68% 32% / 54% 28% 72% 46%;
  transform: rotate(-20deg);
}
.land-one {
  width: 67%;
  height: 30%;
  left: 6%;
  top: 20%;
}
.land-two {
  width: 45%;
  height: 48%;
  right: 0;
  top: 42%;
  transform: rotate(25deg);
}
.land-three {
  width: 30%;
  height: 20%;
  left: 15%;
  bottom: 12%;
}
.orb-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, #fff8, transparent 48%);
  z-index: 2;
  mix-blend-mode: soft-light;
}
.orb-frost .orb-land {
  background: #f4faf8;
  opacity: 0.45;
}
.orb-dunes .orb-land {
  background: #f0d59f;
}
.orb-prism .orb-land {
  background: #815fab;
  opacity: 0.8;
}
.orb-ember .orb-land {
  background: #422e30;
  opacity: 0.8;
}
.orb-aurora .orb-land {
  background: #7999b3;
}
.satellite {
  position: absolute;
  right: 0;
  top: 8%;
}
.satellite .planet-orb {
  width: 68px;
  height: 68px;
}
.hero-crew {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  left: 11%;
  bottom: 12px;
  border: 1px solid var(--line);
  background: #16262ee6;
  padding: 10px 16px;
  border-radius: 9px;
  backdrop-filter: blur(10px);
  transform: rotate(-4deg);
}
.hero-crew img {
  width: 31px;
  height: auto;
  margin-top: -28px;
}
.hero-crew b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.hero-crew small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.signal-bars {
  color: var(--gold);
  margin-left: 16px;
  font-size: 19px;
}
.coordinate {
  position: absolute;
  right: 0;
  bottom: 28px;
  font:
    8px/1.8 ui-monospace,
    monospace;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.tiny-star {
  position: absolute;
  color: var(--gold);
}
.star-one {
  left: 12%;
  top: 22%;
  font-size: 22px;
}
.star-two {
  right: 11%;
  bottom: 19%;
  font-size: 20px;
}
.star-three {
  right: 25%;
  top: 3%;
  font-size: 40px;
}
.home-bottom {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.progress-copy {
  font-size: 14px;
  margin-top: 5px;
}
.home-progress {
  width: 260px;
  font:
    10px ui-monospace,
    monospace;
  flex-shrink: 0;
}
.home-progress > span {
  display: block;
  margin: 5px 0;
}
.progress-track {
  height: 4px;
  background: var(--surface-raised);
  margin: 12px 0;
  overflow: hidden;
  border-radius: 2px;
}
.progress-track > div {
  height: 100%;
  background: var(--gold);
}
.extra-expeditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 27px;
}
.expedition-card {
  text-align: left;
  padding: 23px 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.expedition-card:hover {
  border-color: #657981;
}
.expedition-card strong {
  font-weight: 500;
  font-size: 18px;
}
.expedition-card strong span {
  float: right;
  color: var(--gold);
}
.expedition-card > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  padding: 28px 0 30px;
  align-items: center;
}
.atlas-heading {
  padding: 43px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.atlas-heading h1 {
  font-size: clamp(40px, 4.5vw, 62px);
  margin-top: 16px;
}
.atlas-total {
  display: flex;
  gap: 14px;
  align-items: center;
}
.atlas-total strong {
  font:
    56px Georgia,
    serif;
  color: var(--gold);
}
.atlas-total span {
  font:
    10px/1.7 ui-monospace,
    monospace;
  color: var(--muted);
}
.planet-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-bottom: 26px;
}
.planet-tab {
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  position: relative;
  background: var(--surface);
}
.planet-tab .planet-orb {
  width: 47px;
  height: 47px;
}
.planet-tab.selected {
  background: var(--surface-raised);
  border-color: var(--gold);
}
.planet-tab small {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  color: var(--muted);
  margin-bottom: 5px;
}
.planet-status {
  position: absolute;
  right: 7px;
  top: 7px;
  color: var(--muted);
  font:
    8px ui-monospace,
    monospace;
}
.planet-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  overflow: hidden;
  background: var(--surface);
}
.planet-intro {
  padding: 36px;
  position: relative;
  overflow: hidden;
  min-height: 470px;
  background: radial-gradient(
    circle at 50% 90%,
    color-mix(in srgb, var(--planet) 17%, transparent),
    transparent 65%
  );
}
.planet-intro h2 {
  font-size: 42px;
  margin: 16px 0;
  color: var(--planet);
}
.planet-intro > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
}
.planet-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.planet-tags span {
  font:
    9px ui-monospace,
    monospace;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.detail-orb {
  position: absolute;
  width: 190px;
  height: 190px;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
}
.mission-list {
  padding: 8px 25px;
  border-left: 1px solid var(--line);
}
.mission-row {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  min-height: 65px;
}
.mission-row:last-child {
  border-bottom: 0;
}
.mission-row:hover .mission-name {
  color: var(--gold);
}
.mission-number {
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
  width: 22px;
}
.complete .mission-number {
  color: #8ed6ad;
}
.mission-name {
  flex: 1;
  font-size: 13px;
}
.mission-name small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.mission-end {
  font-size: 20px;
  color: var(--gold);
  text-align: right;
}
.mission-end small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.star-rating {
  font-size: 13px;
  letter-spacing: 2px;
}
.locked {
  opacity: 0.58;
}
.play-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 23px 0 20px;
}
.back-link {
  font-size: 10px;
  color: var(--muted);
  padding: 0;
  margin-bottom: 18px;
}
.back-link:hover {
  color: var(--gold);
}
.play-heading h1 {
  font-size: clamp(26px, 3.2vw, 39px);
  letter-spacing: -0.04em;
  margin-top: 8px;
  line-height: 1.15;
}
.mission-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  white-space: nowrap;
}
.mission-stats b {
  font:
    24px Georgia,
    serif;
  font-weight: 400;
  margin-right: 4px;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 25px;
  align-items: start;
}
.board-column {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.board-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.board-chrome > div {
  display: flex;
  gap: 3px;
}
.mini-button {
  min-width: 29px;
  height: 26px;
  background: var(--surface-raised);
  border-radius: 4px;
  font-size: 11px;
}
.mini-button:hover {
  background: #314652;
}
.board-field {
  height: 440px;
  position: relative;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--mission-color) 8%, #101c24),
    #101c24 78%
  );
  isolation: isolate;
}
.board-field:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#7897a52b 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  pointer-events: none;
}
#gameCanvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
}
.board-coordinate {
  position: absolute;
  left: 18px;
  bottom: 14px;
  pointer-events: none;
  font:
    8px ui-monospace,
    monospace;
  color: var(--muted);
}
.board-caption {
  position: absolute;
  left: 18px;
  top: 15px;
  pointer-events: none;
  font:
    8px/1.8 ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tool-tray {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  gap: 5px;
  border-top: 1px solid var(--line);
}
.tool {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 5px;
  color: var(--muted);
  font-size: 11px;
  border-radius: 6px;
  min-height: 43px;
}
.tool > span {
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.tool.selected {
  background: var(--gold);
  color: #16232b;
}
.tool.selected > span {
  color: #16232b;
}
.tool:hover:not(.selected) {
  background: var(--surface-raised);
}
.tool small {
  font:
    9px ui-monospace,
    monospace;
  background: #101c2426;
  padding: 3px 5px;
  border-radius: 4px;
}
.board-instruction {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  padding: 0 10px 12px;
  min-height: 25px;
}
.notebook {
  padding-top: 5px;
  min-width: 0;
}
.beacon-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 18px;
}
.beacon-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 5px;
  background: var(--surface);
  font-size: 11px;
}
.beacon-tab img {
  width: 23px;
  height: 35px;
  object-fit: contain;
}
.beacon-tab small {
  display: block;
  font-size: 7px;
  margin-top: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.beacon-tab.selected {
  border-color: var(--mission-color);
}
.signal-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 18px;
  min-height: 150px;
}
.signal-label {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 15px;
}
.signal-card strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  display: block;
  color: var(--gold);
}
.signal-card p {
  font-size: 10px;
  margin-top: 11px;
  color: var(--muted);
}
.field-report {
  margin: 20px 0;
}
.field-report p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.field-report b {
  color: var(--ink);
  font-weight: 500;
}
.guided-switch {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 11px;
  cursor: pointer;
}
.guided-switch small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.candidate-count {
  font:
    9px/1.6 ui-monospace,
    monospace;
  color: var(--mission-color);
  margin: 11px 0 20px;
}
.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.history-heading h2 {
  font:
    13px system-ui,
    sans-serif;
  letter-spacing: 0;
}
.history-heading > span {
  font-size: 9px;
  color: var(--muted);
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 9px 0 0;
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.reading-list li {
  border-bottom: 1px solid var(--line);
}
.reading-list li > button {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  width: 100%;
  font-size: 10px;
}
.reading-list small {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  color: var(--muted);
  margin-top: 5px;
}
.reading-badge {
  font:
    11px ui-monospace,
    monospace;
  min-width: 31px;
  height: 29px;
  padding: 6px;
  background: var(--surface-raised);
  border-radius: 5px;
  text-align: center;
  color: var(--gold);
}
.empty-trail {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  padding: 16px 0 20px;
  font-style: italic;
}
.mission-options {
  display: flex;
  gap: 20px;
  margin-top: 17px;
  justify-content: space-between;
}
.mission-options button {
  font-size: 9px;
  color: var(--muted);
  padding: 7px 0;
}
.mission-options button:hover {
  color: var(--gold);
}
.accessible-board {
  margin: 20px 0 32px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
}
.accessible-board summary {
  cursor: pointer;
  padding: 8px 0;
}
.accessible-board p {
  max-width: 700px;
  margin: 12px 0;
}
.accessible-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.accessible-tiles button {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 48px;
  background: var(--surface);
  font:
    11px ui-monospace,
    monospace;
}
.accessible-tiles small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #435761;
  border-radius: 16px;
  padding: 35px;
  max-width: 560px;
  width: calc(100% - 34px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #081017bd;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 16px 0 20px;
  max-width: 430px;
}
dialog p:not(.eyebrow) {
  font-size: 12px;
  margin-bottom: 20px;
}
.dialog-lead {
  color: #cbd6d8;
  font-size: 14px !important;
  line-height: 1.7 !important;
}
.close-button {
  position: absolute;
  right: 15px;
  top: 13px;
  min-width: 34px;
  min-height: 34px;
  color: var(--muted);
  font-size: 26px;
  border-radius: 50%;
}
.close-button:hover {
  background: var(--surface-raised);
}
.brief-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.brief-specs span {
  font:
    9px ui-monospace,
    monospace;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.result-crew {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 8px;
}
.result-crew img {
  width: auto;
  height: 70px;
  object-fit: contain;
}
.result-stars {
  font-size: 38px;
  color: var(--gold);
  letter-spacing: 7px;
  margin: 0 0 22px;
}
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 10px;
  color: var(--muted);
}
.result-meta b {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-right: 4px;
}
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.result-actions .text-button {
  width: 100%;
  justify-content: center;
}
.crew-grid {
  display: grid;
  gap: 12px;
}
.crew-card {
  display: flex;
  gap: 20px;
  padding: 18px;
  background: var(--surface-raised);
  border-radius: 8px;
  align-items: center;
}
.crew-card img {
  width: 45px;
  height: 72px;
  object-fit: contain;
}
.crew-card h3 {
  font:
    24px Georgia,
    serif;
  margin: 5px 0;
}
.crew-card small {
  font:
    9px ui-monospace,
    monospace;
  color: var(--gold);
}
.crew-card p:not(.eyebrow) {
  font-size: 10px;
  margin: 10px 0 0;
  color: var(--muted);
}
.crew-card .eyebrow {
  font-size: 8px;
}
.crew-card.unmet img {
  filter: grayscale(1);
  opacity: 0.45;
}
.settings-list {
  margin-bottom: 20px;
}
.setting-row {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.setting-row b {
  font-size: 12px;
  font-weight: 500;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.6;
  max-width: 350px;
}
.storage-note {
  color: var(--muted);
  font-size: 10px !important;
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.import-label {
  cursor: pointer;
}
.import-label input {
  max-width: 1px;
  position: absolute;
  opacity: 0;
}
.import-label:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.danger-link {
  font-size: 10px;
  color: #e7a492;
  margin-top: 24px;
  text-decoration: underline;
}
.help-list p {
  font-size: 12px !important;
  color: var(--muted);
}
.help-list b {
  color: var(--gold);
  font-weight: 500;
}
.free-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.free-form label:last-child {
  grid-column: 1/-1;
}
.free-form label,
.share-label {
  font-size: 11px;
  color: var(--muted);
}
select,
input:not([type="checkbox"]):not([type="file"]) {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  margin-top: 8px;
  min-height: 45px;
}
.share-label {
  display: block;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  color: #14232b;
  background: var(--gold);
  box-shadow: 0 10px 35px #0007;
  z-index: 10;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  max-width: calc(100vw - 32px);
  width: max-content;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.high-contrast {
  --muted: #c8d4d8;
  --line: #5b727e;
}
.high-contrast .locked {
  opacity: 0.8;
}
.reduce-motion * {
  transition: none !important;
  animation: none !important;
}
.loading {
  padding: 100px 0;
  text-align: center;
  color: var(--muted);
}
@media (min-width: 1400px) {
  .board-field {
    height: 480px;
  }
}
@media (max-width: 1000px) {
  .hero-space {
    height: 330px;
  }
  .hero-orb {
    width: 205px;
    height: 205px;
  }
  .orbit-one {
    width: 285px;
    height: 285px;
  }
  .orbit-two {
    width: 330px;
    height: 160px;
  }
  .coordinate {
    display: none;
  }
  .hero-crew {
    left: 2%;
    bottom: 0;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
  }
  .home-hero {
    gap: 15px;
    min-height: 470px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .beacon-tab {
    gap: 4px;
  }
  .beacon-tab img {
    width: 19px;
  }
  .beacon-tab small {
    font-size: 6px;
  }
  .board-field {
    height: 420px;
  }
  .planet-intro {
    padding: 27px;
  }
  .planet-intro h2 {
    font-size: 35px;
  }
  .mission-list {
    padding: 8px 20px;
  }
  .mission-row {
    gap: 12px;
  }
  .planet-tab {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 78px;
    padding: 0 6%;
  }
  #app {
    padding: 0 6%;
  }
  nav {
    gap: 18px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-symbol {
    font-size: 35px;
  }
  .brand-sub {
    font-size: 6px;
  }
  nav button {
    font-size: 10px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 35px 0 28px;
    min-height: 0;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero-copy > .eyebrow {
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(45px, 8vw, 62px);
  }
  .hero-description {
    font-size: 14px;
    max-width: 420px;
    margin-top: 18px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 18px;
  }
  .hero-facts {
    margin-top: 24px;
    gap: 24px;
  }
  .hero-space {
    height: 290px;
    max-width: 450px;
    width: 100%;
    margin: 12px auto 0;
  }
  .space-label {
    top: 12px;
    left: 12%;
    font-size: 8px;
  }
  .hero-orb {
    width: 190px;
    height: 190px;
  }
  .orbit-one {
    width: 265px;
    height: 265px;
  }
  .orbit-two {
    width: 350px;
    height: 150px;
  }
  .satellite {
    right: 7%;
    top: 8%;
  }
  .satellite .planet-orb {
    width: 50px;
    height: 50px;
  }
  .hero-crew {
    bottom: 0;
    left: 12%;
  }
  .coordinate {
    display: block;
    font-size: 7px;
    right: 0;
    bottom: 11px;
  }
  .hero-facts strong {
    font-size: 19px;
  }
  .home-bottom {
    padding: 23px 0;
    align-items: flex-start;
    gap: 18px;
  }
  .home-progress {
    width: 170px;
  }
  .progress-copy {
    font-size: 12px;
  }
  .home-bottom .eyebrow {
    font-size: 8px;
  }
  .extra-expeditions {
    gap: 12px;
  }
  .expedition-card {
    padding: 19px;
  }
  .expedition-card strong {
    font-size: 15px;
  }
  .expedition-card > span:last-child {
    font-size: 10px;
  }
  .expedition-card .eyebrow {
    font-size: 8px;
  }
  .atlas-heading {
    padding: 30px 0 26px;
  }
  .atlas-heading h1 {
    font-size: 44px;
  }
  .atlas-total strong {
    font-size: 40px;
  }
  .atlas-total span {
    font-size: 8px;
  }
  .planet-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .planet-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px;
    gap: 10px;
    text-align: left;
  }
  .planet-tab .planet-orb {
    width: 34px;
    height: 34px;
  }
  .planet-status {
    font-size: 7px;
  }
  .planet-tab small {
    font-size: 7px;
  }
  .planet-detail {
    grid-template-columns: 1fr;
  }
  .planet-intro {
    min-height: 220px;
    padding: 25px;
    padding-right: 150px;
  }
  .planet-intro h2 {
    font-size: 33px;
  }
  .planet-intro > p:not(.eyebrow) {
    font-size: 12px;
  }
  .detail-orb {
    width: 125px;
    height: 125px;
    left: auto;
    right: 15px;
    bottom: 45px;
    transform: none;
  }
  .planet-tags {
    gap: 6px;
    margin-top: 15px;
  }
  .planet-tags span {
    font-size: 8px;
    padding: 6px 8px;
  }
  .mission-list {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 6px 22px;
  }
  .mission-row {
    padding: 17px 0;
  }
  .mission-name {
    font-size: 13px;
  }
  .play-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .play-heading {
    align-items: center;
    padding: 20px 0 18px;
  }
  .play-heading h1 {
    font-size: 29px;
    max-width: 400px;
  }
  .play-heading .eyebrow {
    font-size: 8px;
  }
  .mission-stats {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 120px;
    min-width: 110px;
  }
  .mission-stats b {
    font-size: 22px;
  }
  .mission-stats .icon-button {
    height: 28px;
    min-width: 28px;
    font-size: 13px;
  }
  .mission-stats > .muted {
    order: 2;
    font-size: 9px;
  }
  .board-field {
    height: 390px;
  }
  .notebook {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }
  .notebook > .eyebrow,
  .beacon-tabs,
  .field-report,
  .guided-switch,
  .candidate-count,
  .history-heading,
  .reading-list,
  .mission-options {
    grid-column: 1/-1;
  }
  .notebook > .eyebrow {
    margin-bottom: 0;
  }
  .beacon-tabs {
    margin: 10px 0 15px;
  }
  .beacon-tab {
    padding: 10px;
    font-size: 12px;
    justify-content: flex-start;
    gap: 10px;
  }
  .beacon-tab img {
    width: 26px;
    height: 36px;
  }
  .beacon-tab small {
    font-size: 8px;
  }
  .signal-card {
    grid-column: 1/-1;
    min-height: 120px;
    padding: 17px 20px;
  }
  .signal-card strong {
    font-size: 21px;
  }
  .signal-card p {
    font-size: 11px;
  }
  .field-report {
    margin: 16px 0;
  }
  .field-report p {
    font-size: 12px;
  }
  .guided-switch {
    font-size: 12px;
  }
  .guided-switch small {
    font-size: 10px;
  }
  .candidate-count {
    font-size: 10px;
  }
  .reading-list {
    max-height: 260px;
  }
  .reading-list li > button {
    font-size: 12px;
  }
  .reading-list small {
    font-size: 9px;
  }
  .reading-badge {
    font-size: 12px;
  }
  .mission-options button {
    font-size: 11px;
  }
  footer {
    font-size: 9px;
    align-items: flex-start;
  }
  .board-instruction {
    font-size: 10px;
  }
  .board-caption,
  .board-coordinate {
    font-size: 8px;
  }
  .tool {
    font-size: 12px;
  }
  .board-chrome {
    font-size: 10px;
  }
  .mini-button {
    height: 31px;
    min-width: 32px;
  }
  .accessible-board {
    font-size: 12px;
  }
  .notebook .empty-trail {
    font-size: 12px;
  }
  .board-instruction {
    padding-bottom: 14px;
  }
  .back-link {
    font-size: 11px;
    margin-bottom: 13px;
  }
  dialog {
    padding: 30px 25px;
  }
  dialog h2 {
    font-size: 35px;
  }
  dialog p:not(.eyebrow) {
    font-size: 13px;
  }
  .setting-row small {
    font-size: 11px;
  }
  .button {
    font-size: 12px;
  }
  select,
  input:not([type="checkbox"]):not([type="file"]) {
    font-size: 16px;
  }
  .crew-card p:not(.eyebrow) {
    font-size: 11px;
  }
}
@media (max-width: 420px) {
  .site-header {
    padding: 0 5%;
  }
  #app {
    padding: 0 5%;
  }
  nav {
    gap: 12px;
  }
  .brand-sub {
    letter-spacing: 0.1em;
  }
  nav button {
    min-height: 40px;
  }
  .hero-description {
    max-width: 310px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .button {
    padding: 14px 18px;
    gap: 17px;
  }
  .hero-actions .text-button {
    font-size: 11px;
  }
  .hero-facts {
    gap: 21px;
  }
  .home-bottom {
    flex-direction: column;
  }
  .home-progress {
    width: 100%;
  }
  .extra-expeditions {
    grid-template-columns: 1fr;
  }
  .expedition-card {
    padding: 20px;
  }
  .expedition-card strong {
    font-size: 18px;
  }
  .expedition-card > span:last-child {
    font-size: 12px;
  }
  .coordinate {
    display: none;
  }
  .planet-tab {
    padding: 11px 8px;
    gap: 8px;
    font-size: 8px;
  }
  .planet-tab .planet-orb {
    width: 26px;
    height: 26px;
  }
  .planet-intro {
    padding: 23px;
    padding-right: 105px;
    min-height: 245px;
  }
  .planet-intro h2 {
    font-size: 29px;
  }
  .detail-orb {
    width: 85px;
    height: 85px;
    right: 10px;
    bottom: 75px;
  }
  .planet-intro > .eyebrow {
    font-size: 8px;
  }
  .atlas-total {
    gap: 7px;
  }
  .atlas-total strong {
    font-size: 34px;
  }
  .atlas-total span {
    font-size: 7px;
  }
  .atlas-heading h1 {
    font-size: 37px;
  }
  .mission-name {
    font-size: 12px;
  }
  .mission-row {
    gap: 10px;
  }
  .play-heading h1 {
    font-size: 25px;
  }
  .mission-stats {
    min-width: 89px;
    max-width: 95px;
  }
  .mission-stats span {
    font-size: 9px;
  }
  .mission-stats b {
    font-size: 21px;
  }
  .board-field {
    height: 335px;
  }
  .board-caption {
    left: 12px;
    top: 12px;
    font-size: 7px;
  }
  .board-coordinate {
    left: 12px;
    font-size: 7px;
  }
  .tool-tray {
    padding: 8px;
    gap: 3px;
  }
  .tool {
    font-size: 11px;
    gap: 5px;
  }
  .tool > span {
    font-size: 18px;
  }
  .tool small {
    font-size: 8px;
  }
  .board-instruction {
    font-size: 9px;
  }
  .beacon-tab {
    gap: 6px;
    padding: 8px;
    font-size: 11px;
  }
  .beacon-tab small {
    font-size: 7px;
  }
  .beacon-tab img {
    width: 22px;
  }
  .free-form {
    grid-template-columns: 1fr;
  }
  .free-form label:last-child {
    grid-column: auto;
  }
  .result-actions > .button {
    flex: 1;
    font-size: 11px;
    padding: 13px 12px;
    gap: 8px;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-height: 550px) and (min-width: 761px) {
  .site-header {
    height: 65px;
  }
  .play-heading {
    padding: 15px 0;
  }
  .back-link {
    margin-bottom: 8px;
  }
  .board-field {
    height: 290px;
  }
  .play-heading h1 {
    font-size: 26px;
  }
}
.mobile-signal {
  display: none;
}
.mission-record {
  font:
    11px ui-monospace,
    monospace !important;
  color: var(--gold);
}
@media (min-width: 761px) {
  .board-field {
    height: clamp(300px, calc(100dvh - 350px), 480px);
  }
}
@media (max-width: 760px) {
  .mobile-signal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 17px;
    background: var(--surface-raised);
    border-bottom: 1px solid var(--line);
    min-height: 60px;
  }
  .mobile-signal > span {
    font:
      8px ui-monospace,
      monospace;
    color: var(--muted);
    letter-spacing: 0.12em;
  }
  .mobile-signal > strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
  }
  .mission-stats #outcomeButton {
    font-size: 9px;
    order: 3;
    padding: 4px 0;
  }
  .board-field {
    height: clamp(285px, calc(100dvh - 440px), 390px);
  }
}
@media (pointer: coarse) {
  .mini-button {
    min-width: 40px;
    height: 36px;
  }
  .tool {
    min-height: 46px;
  }
  .beacon-tab {
    min-height: 49px;
  }
  .icon-button {
    min-height: 40px;
    min-width: 40px;
  }
  .mission-options button {
    min-height: 40px;
  }
}
