@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --page: #020605;
  --panel: rgba(4, 13, 10, 0.78);
  --panel-strong: rgba(8, 24, 18, 0.82);
  --line: rgba(172, 246, 191, 0.18);
  --line-strong: rgba(177, 255, 199, 0.48);
  --text: #f2fff8;
  --muted: #8a9b90;
  --soft: #b6d5bf;
  --mint: #b4f7bf;
  --mint-bright: #d8ffe0;
  --warning: #f0d58b;
  --red: #ff786f;
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--page);
  color: var(--text);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.mission-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 34px 56px 44px;
  background:
    linear-gradient(rgba(180, 247, 191, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 247, 191, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 62% 42%, rgba(180, 247, 191, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(13, 34, 25, 0.35), rgba(2, 6, 5, 0.95) 62%),
    var(--page);
  background-size: 74px 74px, 74px 74px, auto, auto, auto;
}

.mission-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 5, 0.92), transparent 18%, transparent 78%, rgba(2, 6, 5, 0.88)),
    linear-gradient(180deg, rgba(2, 6, 5, 0.08), transparent 52%, rgba(2, 6, 5, 0.62));
  z-index: 1;
}

.mission-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: 0.42;
  z-index: 3;
}

.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 39%, rgba(242, 255, 248, 0.68) 0 2px, transparent 3px),
    radial-gradient(circle at 26% 53%, rgba(242, 255, 248, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 28%, rgba(242, 255, 248, 0.34) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 31%, rgba(180, 247, 191, 0.65) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 43%, rgba(242, 255, 248, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 94% 80%, rgba(180, 247, 191, 0.28) 0 1px, transparent 2px);
  z-index: 0;
}

.orbit-sweep {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(180, 247, 191, 0.12);
  border-radius: 50%;
  transform: rotate(-8deg);
  z-index: 0;
}

.orbit-sweep-one {
  width: 1420px;
  height: 520px;
  left: 50%;
  margin-left: -710px;
  top: 168px;
}

.orbit-sweep-two {
  width: 1820px;
  height: 820px;
  left: 50%;
  margin-left: -910px;
  top: -60px;
  border-style: dashed;
  border-color: rgba(180, 247, 191, 0.1);
}

.topbar,
.hero-grid,
.mission-rail {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: center;
  width: min(100%, 1360px);
  margin: 0 auto;
  color: var(--mint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.topbar p {
  margin: 0;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(216, 255, 224, 0.88);
}

.countdown span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(460px, 680px) minmax(420px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  width: min(100%, 1280px);
  margin: 0 auto;
  min-height: 680px;
  padding: 34px 0 0;
}

.vault-console {
  justify-self: start;
  width: 100%;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--mint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 6.2rem;
  font-weight: 300;
  line-height: 0.85;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

.mission-prompt {
  margin: 66px 0 18px;
  padding-bottom: 22px;
  width: min(520px, 100%);
  border-bottom: 1px solid var(--line-strong);
  color: var(--mint);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

.vault-copy {
  margin: 0 0 30px;
  width: min(520px, 100%);
  color: var(--soft);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.55;
}

.vault-form {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 96px;
}

.vault-form label {
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.turnstile-widget {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 18px;
  color: var(--text);
  font-family: var(--font-mono);
  background: rgba(1, 6, 4, 0.82);
  outline: none;
  box-shadow: inset 0 0 28px rgba(180, 247, 191, 0.04);
}

input:focus {
  border-color: var(--mint);
  box-shadow:
    0 0 0 1px rgba(180, 247, 191, 0.4),
    0 0 24px rgba(180, 247, 191, 0.08),
    inset 0 0 28px rgba(180, 247, 191, 0.06);
}

button,
.return-link {
  min-height: 58px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(180, 247, 191, 0.78);
  border-radius: 0;
  padding: 0 22px;
  color: #041009;
  background: var(--mint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover,
.return-link:hover {
  background: var(--mint-bright);
}

button:disabled {
  opacity: 0.66;
  cursor: wait;
}

.status-line {
  min-height: 28px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.status-line.is-error {
  color: var(--red);
}

.status-line.is-warning {
  color: var(--warning);
}

.status-line.is-success {
  color: var(--mint);
}

.return-link {
  width: fit-content;
  margin-top: 20px;
}

.is-hidden {
  display: none;
}

.trajectory-panel {
  min-width: 0;
  justify-self: start;
  width: min(560px, 100%);
  color: var(--soft);
}

.trajectory-header,
.trajectory-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: rgba(180, 247, 191, 0.68);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.trajectory-header span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(180, 247, 191, 0.74);
}

.trajectory-header p {
  margin: 0;
}

.trajectory-header small {
  color: rgba(180, 247, 191, 0.32);
  font-size: 0.76rem;
  font-weight: 700;
}

.trajectory-frame {
  position: relative;
  height: 500px;
  margin: 16px 0 18px;
}

.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--line-strong);
  border-style: solid;
  z-index: 2;
}

.corner-tl {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.corner-tr {
  top: 0;
  right: 0;
  border-width: 1px 1px 0 0;
}

.corner-bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1px 1px;
}

.corner-br {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.orbital-map {
  position: absolute;
  inset: 38px;
  display: grid;
  place-items: center;
}

.orbital-map::before,
.orbital-map::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(180, 247, 191, 0.16);
  border-radius: 50%;
}

.orbital-map::before {
  width: 410px;
  height: 410px;
}

.orbital-map::after {
  width: 600px;
  height: 600px;
  border-style: dotted;
  opacity: 0.55;
}

.planet {
  position: relative;
  width: 250px;
  height: 250px;
  border: 2px solid rgba(180, 247, 191, 0.36);
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(180, 247, 191, 0.16) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(180, 247, 191, 0.12) 41px 42px),
    rgba(54, 111, 75, 0.34);
  box-shadow:
    inset 0 0 50px rgba(180, 247, 191, 0.1),
    0 0 38px rgba(180, 247, 191, 0.12);
}

.planet::before,
.planet::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(180, 247, 191, 0.32);
  border-radius: 50%;
}

.planet::before {
  transform: rotate(90deg) scaleX(0.42);
}

.planet::after {
  transform: rotate(18deg) scaleX(0.58);
}

.orbit {
  position: absolute;
  border: 2px solid rgba(180, 247, 191, 0.28);
  border-radius: 50%;
}

.orbit-a {
  width: 520px;
  height: 124px;
  transform: rotate(-14deg);
}

.orbit-b {
  width: 420px;
  height: 420px;
  transform: rotate(19deg) scaleY(0.72);
}

.orbit-c {
  width: 480px;
  height: 128px;
  border-style: dashed;
  opacity: 0.58;
  transform: rotate(38deg);
}

.ship {
  position: absolute;
  top: 150px;
  right: 134px;
  width: 34px;
  height: 16px;
  border: 1px solid var(--mint);
  clip-path: polygon(0 50%, 78% 0, 100% 50%, 78% 100%);
  background: rgba(180, 247, 191, 0.75);
  box-shadow: 0 0 14px rgba(180, 247, 191, 0.5);
  transform: rotate(12deg);
}

.node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(180, 247, 191, 0.85);
}

.node-one {
  left: 205px;
  top: 178px;
}

.node-two {
  right: 184px;
  bottom: 210px;
}

.node-three {
  right: 92px;
  top: 172px;
}

.axis {
  position: absolute;
  color: rgba(180, 247, 191, 0.38);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.axis-top {
  top: 22px;
}

.axis-right {
  right: 24px;
}

.axis-bottom {
  bottom: 22px;
}

.axis-left {
  left: 24px;
}

.trajectory-footer {
  justify-content: flex-end;
  color: rgba(180, 247, 191, 0.42);
}

.mission-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 1360px);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: rgba(0, 8, 5, 0.58);
  box-shadow: 0 -20px 70px var(--shadow);
}

.mission-rail article {
  min-height: 148px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.mission-rail article:last-child {
  border-right: 0;
}

.mission-rail p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.mission-rail strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 300;
  line-height: 1;
}

.mission-rail span {
  display: block;
  margin-top: 12px;
  color: rgba(180, 247, 191, 0.42);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.result-shell .mission-prompt {
  color: var(--mint-bright);
}

.reward-panel {
  position: relative;
  width: min(560px, 100%);
  margin: 34px 0 14px;
  padding: 24px;
  border: 1px solid rgba(180, 247, 191, 0.38);
  background:
    linear-gradient(90deg, rgba(180, 247, 191, 0.13), transparent 42%),
    rgba(1, 9, 6, 0.76);
  box-shadow:
    0 0 0 1px rgba(180, 247, 191, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 42px rgba(180, 247, 191, 0.05);
}

.reward-panel::before,
.reward-panel::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--line-strong);
  border-style: solid;
}

.reward-panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.reward-panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.reward-label {
  margin: 0 0 16px;
  color: rgba(216, 255, 224, 0.8);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.reward-amount {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(180, 247, 191, 0.2);
}

.reward-amount strong {
  color: var(--mint-bright);
  font-family: var(--font-mono);
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(180, 247, 191, 0.25);
}

.reward-amount span {
  color: var(--mint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.reward-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.reward-details div {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(180, 247, 191, 0.28);
}

.reward-details dt,
.reward-details dd {
  margin: 0;
}

.reward-details dt {
  margin-bottom: 8px;
  color: rgba(180, 247, 191, 0.46);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
}

.reward-details dd {
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.reward-panel.is-muted {
  border-color: rgba(240, 213, 139, 0.34);
  background:
    linear-gradient(90deg, rgba(240, 213, 139, 0.1), transparent 42%),
    rgba(1, 9, 6, 0.76);
}

.reward-panel.is-muted .reward-amount strong,
.reward-panel.is-muted .reward-amount span {
  color: var(--warning);
}

.trajectory-panel.is-complete .planet {
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(216, 255, 224, 0.18) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(216, 255, 224, 0.14) 41px 42px),
    rgba(84, 132, 91, 0.48);
}

@media (max-width: 1180px) {
  .mission-shell {
    padding: 28px 34px 22px;
  }

  .hero-grid {
    grid-template-columns: minmax(340px, 0.9fr) minmax(340px, 1fr);
    gap: 24px;
  }

  h1 {
    font-size: 5rem;
  }

  .mission-prompt {
    margin-top: 52px;
    font-size: 2rem;
  }

  .trajectory-frame {
    height: 500px;
  }

  .orbital-map {
    transform: scale(0.86);
  }

  .mission-rail article {
    padding: 22px;
  }

  .reward-amount strong {
    font-size: 3.5rem;
  }
}

@media (max-width: 900px) {
  .mission-shell {
    overflow: visible;
    padding: 22px;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 0 28px;
  }

  .vault-console {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .vault-form {
    width: 100%;
  }

  h1 {
    font-size: 4.1rem;
  }

  .trajectory-panel {
    width: 100%;
    max-width: 460px;
    justify-self: center;
    margin-top: 8px;
    opacity: 0.78;
  }

  .trajectory-frame {
    height: 320px;
  }

  .orbital-map {
    inset: -58px;
    transform: scale(0.54);
  }

  .corner {
    width: 26px;
    height: 26px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  button,
  .return-link {
    width: 100%;
  }

  .reward-panel {
    width: 100%;
  }

  .reward-details {
    grid-template-columns: 1fr;
  }

  .mission-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-rail article:nth-child(2) {
    border-right: 0;
  }

  .mission-rail article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .mission-shell {
    min-height: 100svh;
    padding: 18px;
    background-size: 48px 48px, 48px 48px, auto, auto, auto;
  }

  .mission-shell::before {
    background:
      linear-gradient(90deg, rgba(2, 6, 5, 0.92), transparent 48%, rgba(2, 6, 5, 0.82)),
      linear-gradient(180deg, rgba(2, 6, 5, 0.04), transparent 58%, rgba(2, 6, 5, 0.76));
  }

  .orbit-sweep-one {
    width: 760px;
    height: 320px;
    left: -280px;
    margin-left: 0;
    top: 172px;
  }

  .orbit-sweep-two {
    display: none;
  }

  .topbar {
    gap: 10px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .countdown {
    gap: 8px;
  }

  .countdown span {
    width: 8px;
    height: 8px;
  }

  .hero-grid {
    gap: 34px;
    padding: 72px 0 0;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 9ch;
    font-size: 3.6rem;
    line-height: 0.88;
  }

  .vault-form {
    width: 100%;
    margin-top: 82px;
  }

  input,
  button,
  .return-link {
    min-height: 56px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  button,
  .return-link {
    width: 100%;
  }

  .trajectory-panel {
    width: 100%;
    max-width: 380px;
    justify-self: center;
    margin-top: 10px;
    opacity: 0.72;
  }

  .trajectory-header {
    font-size: 0.68rem;
  }

  .trajectory-frame {
    height: 260px;
    margin-top: 12px;
  }

  .corner {
    width: 22px;
    height: 22px;
  }

  .orbital-map {
    inset: -82px;
    transform: scale(0.46);
  }

  .orbital-map::before {
    width: 360px;
    height: 360px;
  }

  .orbital-map::after {
    width: 500px;
    height: 500px;
  }
}

@media (max-width: 560px) {
  .mission-shell {
    padding: 18px;
  }

  .topbar {
    gap: 8px;
    font-size: 0.6rem;
  }

  .countdown {
    min-width: 0;
    white-space: nowrap;
  }

  .countdown {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  h1 {
    font-size: 3.15rem;
  }

  .vault-form {
    margin-top: 78px;
  }

  .mission-prompt {
    margin-top: 40px;
    font-size: 1.58rem;
  }

  .vault-copy {
    font-size: 1rem;
  }

  .reward-panel {
    margin-top: 28px;
    padding: 20px;
  }

  .reward-amount strong {
    font-size: 3rem;
  }

  .trajectory-frame {
    height: 230px;
  }

  .orbital-map {
    inset: -92px;
    transform: scale(0.42);
  }

  .mission-rail {
    grid-template-columns: 1fr;
  }

  .mission-rail article,
  .mission-rail article:nth-child(2) {
    min-height: 118px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mission-rail article:last-child {
    border-bottom: 0;
  }

  .mission-rail strong {
    font-size: 2.3rem;
  }
}
