@import url("https://gistcdn.githack.com/mfd/09b70eb47474836f25a21660282ce0fd/raw/e06a670afcb2b861ed2ac4a1ef752d062ef6b46b/Gilroy.css");


:root {
  color-scheme: dark;
  --shell-padding: clamp(8px, 1.4vw, 14px);
  --shell-height: calc(100dvh - (var(--shell-padding) * 2));
  --shell-width: min(calc(100vw - (var(--shell-padding) * 2)), calc(var(--shell-height) * 0.56));
  --bg-top: #05060a;
  --bg-bottom: #010206;
  --font-body: "Gilroy", "Segoe UI", Arial, sans-serif;
  --font-display: "Gilroy", "Segoe UI", Arial, sans-serif;
  --text: #f8fafc;
  --muted: rgba(241, 245, 255, 0.84);
  --muted-soft: rgba(241, 245, 255, 0.62);
  --nav-bg: rgba(16, 17, 22, 0.94);
  --nav-border: rgba(255, 255, 255, 0.05);
  --marker-dark: rgba(19, 21, 29, 0.88);
  --marker-border: rgba(255, 255, 255, 0.14);
  --transition-x: 50%;
  --transition-y: 50%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html {
  font-family: var(--font-body);
}

body {
  padding: var(--shell-padding);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  color: var(--text);
  font-family: inherit;
}

.screen-home, .phone-shell::before{
background: url("./images/app-bg.svg");
    background-size: 125%;
    background-repeat: no-repeat;
}
button,
input,
textarea,
select {
  font: inherit;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 7% 11%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.7px),
    radial-gradient(circle at 15% 32%, rgba(255, 255, 255, 0.62) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 22% 17%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 8%, rgba(255, 255, 255, 0.95) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 39% 24%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 48% 10%, rgba(255, 255, 255, 0.88) 0 1.1px, transparent 1.6px),
    radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.65) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 66% 15%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 9%, rgba(255, 255, 255, 0.58) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 88% 21%, rgba(255, 255, 255, 0.92) 0 1px, transparent 1.6px),
    radial-gradient(circle at 94% 12%, rgba(255, 255, 255, 0.48) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 10% 54%, rgba(255, 255, 255, 0.44) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 27% 43%, rgba(255, 255, 255, 0.66) 0 1px, transparent 1.6px),
    radial-gradient(circle at 41% 35%, rgba(255, 255, 255, 0.5) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 55% 51%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 39%, rgba(255, 255, 255, 0.56) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 89% 47%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 16% 74%, rgba(255, 255, 255, 0.62) 0 1.1px, transparent 1.8px),
    radial-gradient(circle at 36% 67%, rgba(255, 255, 255, 0.46) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 63% 79%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 83%, rgba(255, 255, 255, 0.52) 0 1px, transparent 1.6px);
  opacity: 0.92;
}

body::after {
  background:
    radial-gradient(circle at 70% 64%, rgba(71, 133, 255, 0.12), transparent 24%),
    radial-gradient(circle at 36% 100%, rgba(55, 120, 230, 0.11), transparent 34%);
}

.app-body::before,
.app-body::after {
  display: none;
}

.device-stage {
  width: 100%;
  min-height: var(--shell-height);
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-shell {
  position: relative;
  width: var(--shell-width);
  height: var(--shell-height);
  min-height: var(--shell-height);
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 58%, rgba(63, 111, 207, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.64) 0%, rgba(2, 4, 11, 0.74) 32%, rgba(1, 2, 6, 0.88) 100%);
  isolation: isolate;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.03),
    0 28px 76px rgba(0, 0, 0, 0.56);
}

.phone-shell::-webkit-scrollbar {
  display: none;
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 0;

    z-index: 1;
  pointer-events: none;
}

.screen {
  position: relative;
  z-index: 2;
  min-height: var(--shell-height);
  padding: 30px 14px 112px;
}

.hero {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy--home {
  width: min(52vw, 244px);
  padding-top: 4px;
}

.hero-copy--apparatus {
  width: min(56vw, 274px);
  padding-top: 2px;
}

.hero-title {
  margin: 0;
  color: #fbfcff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title--home {
  font-size: clamp(2.6rem, 8vw, 3.35rem);
  line-height: 0.8;
}

.hero-title--apparatus {
  font-size: clamp(2.6rem, 7.3vw, 3.1rem);
  line-height: 0.8;
}

.hero-text {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.36;
}

.hero-text--secondary {
  margin-top: 18px;
  color: var(--muted-soft);
}

.moon-orb,
.moon-stage {
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

.moon-orb {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.05), transparent 42%),
    radial-gradient(circle at 35% 30%, #cfd5df 0%, #9aa3b2 45%, #6a7482 100%);
}

.moon-orb::after,
.moon-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, transparent 54%, rgba(4, 7, 14, 0.92) 80%);
  pointer-events: none;
}

.moon-orb--home {
  width: 102px;
  height: 102px;
  margin-top: 108px;
  margin-right: -2px;
}

.moon-stage--home {
  width: 112px;
  height: 112px;
  margin-top: 92px;
  margin-right: -14px;
}

.moon-orb--apparatus {
  width: 102px;
  height: 102px;
  margin-top: 54px;
  margin-right: -4px;
}

.moon-stage {
  isolation: isolate;
}

.moon-stage--apparatus {
  width: 132px;
  height: 132px;
  margin-top: 30px;
  margin-right: -2px;
}

.moon-canvas {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  cursor: grab;
}

.moon-canvas:active {
  cursor: grabbing;
}

.screen-home {
  overflow: hidden;
  padding-bottom: 132px;
}

.screen-apparatus {
  overflow: hidden;
  padding-bottom: 132px;
}

.planet-frame {
  position: relative;
}

.planet-frame--home {
  position: absolute;
  top: clamp(216px, 29dvh, 262px);
  right: -100px;
  bottom: 30px;
  left: -136px;
}

.planet-frame--apparatus {
  height: clamp(500px, 60dvh, 640px);
  margin-top: 0;
}

.planet-stage {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.planet-stage--apparatus {
  overflow: visible;
}

.planet-stage--home {
  overflow: hidden;
}

.planet-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.planet-canvas:active {
  cursor: grabbing;
}

.planet-marker {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  user-select: none;
}

.planet-marker--home {
  width: 34px;
  height: 34px;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(255, 255, 255, 0.1);
  left: 50%;
  top: 79%;
}


canvas#apparatus-planet-canvas {
    transform: scale(1.2);
}

.planet-marker--home::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
}

.planet-marker--home::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: homePulse 2.8s ease-in-out infinite;
}

.planet-marker--orbit {
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(22, 24, 31, 0.82);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.planet-marker--surface {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

.planet-marker--inactive {
  opacity: 0.58;
  pointer-events: none;
}

.planet-marker:hover {
  filter: brightness(1.08);
}

.planet-marker.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.planet-marker.is-ready {
  opacity: 1;
}

.marker-pos-1 {
  left: 10%;
  top: 31%;
}

.marker-pos-2 {
  left: 49%;
  top: 13%;
}

.marker-pos-3 {
  left: 50%;
  top: 74%;
}

.marker-pos-4 {
  right: 9%;
  top: 40%;
}

.marker-pos-5 {
  left: 10%;
  top: 62%;
}

.marker-pos-6 {
  left: 50%;
  top: 72%;
}

.planet-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.bottom-nav {
  position: fixed;
  right: auto;
  bottom: 20px;
  left: 50%;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: calc(var(--shell-width) - 12px);
  padding: 10px 6px 12px;
  border-radius: 18px;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  max-width: calc(var(--shell-width) - 12px);
  transform: translateX(-50%);
}

.planet-wrapper{
    position: fixed;
  right: auto;
  bottom: 85px;
  left: 50%;
  z-index: 8;
  gap: 4px;
  width: calc(var(--shell-width) - 12px);
  padding: 10px 6px 12px;
  border-radius: 18px;
  
  max-width: calc(var(--shell-width) - 12px);
  transform: translateX(-50%);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.34);
  text-decoration: none;
}

.nav-item span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.54rem;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item img,
.nav-item svg {
  width: 20px;
  height: 20px;
}

.nav-item svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.is-active {
  color: rgba(255, 255, 255, 0.96);
}

.screen-info {
  padding-top: 24px;
  background:
    radial-gradient(circle at 78% 16%, rgba(79, 128, 230, 0.14), transparent 22%),
    radial-gradient(circle at 24% 86%, rgba(63, 117, 209, 0.14), transparent 28%);
}

.screen-project {
  padding-top: 24px;
  padding-bottom: 126px;
}

.project-hero {
  max-width: 320px;
}

.project-kicker,
.project-block-kicker {
  margin: 0;
  color: rgba(156, 186, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 7vw, 2.95rem);
  line-height: 0.84;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.44;
}

.project-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.project-card,
.project-source,
.project-roadmap-item {
  padding: 16px 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 19, 27, 0.9);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.project-card-label {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h2,
.project-block h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}

.project-card p,
.project-source p,
.project-roadmap-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.42;
}

.project-block {
  margin-top: 28px;
}

.project-block-head {
  margin-bottom: 14px;
}

.project-block-head h2 {
  margin-top: 10px;
}

.project-source-list,
.project-roadmap {
  display: grid;
  gap: 12px;
}

.project-source strong,
.project-roadmap-item strong {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.project-source a {
  display: inline-block;
  margin-top: 10px;
  color: rgba(144, 194, 255, 0.96);
  font-size: 0.88rem;
  line-height: 1.3;
  word-break: break-word;
  text-decoration: none;
}

.mission-circle.is-active {
  color: rgba(132, 198, 255, 0.98);
  border-color: rgba(132, 198, 255, 0.34);
  box-shadow:
    0 10px 18px rgba(37, 93, 192, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.screen-vault,
.screen-academy,
.screen-hangar {
  padding-top: 24px;
  padding-bottom: 126px;
}

.vault-hero,
.academy-hero,
.hangar-hero {
  max-width: 320px;
}

.vault-kicker,
.academy-kicker,
.hangar-kicker {
  margin: 0;
  color: rgba(156, 186, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vault-title,
.academy-title,
.hangar-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 2.95rem);
  line-height: 0.84;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vault-text,
.academy-text,
.hangar-text {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.42;
}

.vault-grid,
.academy-list,
.hangar-grid,
.academy-breakdown {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.vault-card,
.academy-card,
.hangar-stat,
.hangar-run,
.academy-summary {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 19, 27, 0.9);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vault-card.is-focus {
  border-color: rgba(111, 174, 255, 0.3);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(111, 174, 255, 0.16);
}

.vault-card-chip,
.academy-index,
.academy-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vault-card h2,
.academy-card h2,
.academy-summary h2 {
  margin: 14px 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.18;
}

.vault-card p,
.academy-card p,
.academy-summary p,
.hangar-run p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.42;
}

.vault-meta {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.vault-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.vault-meta dt,
.vault-meta dd {
  margin: 0;
  font-size: 0.84rem;
}

.vault-meta dt {
  color: rgba(255, 255, 255, 0.42);
}

.vault-meta dd {
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

.vault-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.vault-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-size: 0.86rem;
}

.academy-form {
  margin-top: 22px;
}

.academy-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.academy-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.academy-option input {
  margin: 0;
}

.academy-submit {
  width: 100%;
}

.academy-result {
  margin-top: 18px;
}

.academy-card.is-success {
  border-color: rgba(87, 198, 138, 0.26);
}

.academy-card.is-warning {
  border-color: rgba(255, 170, 86, 0.22);
}

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

.hangar-stat strong,
.hangar-run strong {
  display: block;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.hangar-stat span {
  display: block;
  margin-top: 10px;
  color: rgba(139, 193, 255, 0.98);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.hangar-block {
  margin-top: 28px;
}

.hangar-runs {
  display: grid;
  gap: 12px;
}

.screen-mission {
  padding-top: 22px;
  padding-bottom: 132px;
}

.mission-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.mission-circle,
.mission-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 18, 24, 0.82);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.mission-circle {
  width: 42px;
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.mission-circle--favorite svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-pill {
  justify-self: center;
  width: fit-content;
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 500;
}

.mission-arrow {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.mission-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.mission-copy {
  position: relative;
  z-index: 3;
}

.mission-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mission-description {
  margin: 18px 0 0;
  max-width: 214px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.36;
}

.mission-visual {
  position: relative;
  margin-top: 2px;
  margin-right: -2px;
  perspective: 1200px;
  transform-style: preserve-3d;
  --spacecraft-tilt-x: -2deg;
  --spacecraft-tilt-y: -14deg;
  --spacecraft-shift-x: 0px;
  --spacecraft-shift-y: 0px;
  z-index: 2;
}

.mission-visual-placeholder {
  width: 190px;
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.07), transparent 20%);
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.38;
  text-transform: uppercase;
}

.mission-visual-image {
  max-height: 100%;
  width: 70%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.42));
 
  transform-origin: 50% 46%;
  animation: spacecraftFloat 6.8s ease-in-out infinite;
  will-change: transform;
}

.mission-planet-wrap {
  position: absolute;
  right: -66px;
  bottom: 92px;
  z-index: 1;
  width: min(94%, 376px);
  height: clamp(420px, 57dvh, 564px);
  pointer-events: none;
}

.planet-stage--mission {
  overflow: visible;
}

.mission-marker {
  left: 52%;
  top: 40%;
  transform: translate(-50%, -50%);
}

.mission-specs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}

.mission-spec {
  padding: 12px 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 26, 34, 0.9);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3);
}

.mission-spec strong,
.mission-spec span {
  display: block;
}

.mission-spec strong {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.77rem;
  font-weight: 500;
}

.mission-spec span {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.96rem;
  line-height: 1.18;
}

.mission-cta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ea2ff 0%, #3a7af5 100%);
  color: #f8fbff;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;

}

.screen-timeline {
  padding-top: 24px;
  padding-bottom: 132px;
}

.timeline-header {
  display: flex;
  align-items: center;
}

.timeline-hero {
  margin-top: 12px;
}

.timeline-copy {
  max-width: 300px;
}

.timeline-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 2.7rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-year {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  line-height: 1;
}

.timeline-visual {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  perspective: 1200px;
  transform-style: preserve-3d;
  --spacecraft-tilt-x: -1deg;
  --spacecraft-tilt-y: -12deg;
  --spacecraft-shift-x: 0px;
  --spacecraft-shift-y: 0px;
}

.timeline-visual-image {
  width: min(310px, 96%);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.42));
  transform:
    translate3d(var(--spacecraft-shift-x), var(--spacecraft-shift-y), 0)
    rotateX(var(--spacecraft-tilt-x))
    rotateY(var(--spacecraft-tilt-y));
  transform-origin: 50% 48%;
  animation: spacecraftFloat 7.2s ease-in-out infinite;
  will-change: transform;
}

.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.timeline-tabs::-webkit-scrollbar {
  display: none;
}




.timeline-tab {
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(19, 21, 28, 0.84);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 10px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.24);
}

.timeline-tab:disabled {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.timeline-tab.is-active {
  background: rgba(32, 34, 43, 0.96);
  border-color: rgba(255, 255, 255, 0.24);
}

.timeline-source {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
}

.timeline-source-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.timeline-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-source-link,
.timeline-source-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 23, 30, 0.9);
  color: rgba(163, 197, 255, 0.94);
  text-decoration: none;
}

.timeline-source-fallback {
  color: rgba(255, 255, 255, 0.58);
}

.timeline-feed {
  position: relative;
  margin-top: 14px;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 0;
  bottom: -16px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.timeline-item:last-child::before {
  bottom: 44px;
}

.timeline-date {
  position: relative;
  z-index: 1;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.96);
}

.timeline-date::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(96, 98, 110, 0.96);
  box-shadow: 0 0 0 4px rgba(18, 20, 27, 0.92);
}

.timeline-date strong,
.timeline-date span {
  display: block;
}

.timeline-date strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.1;
}

.timeline-date span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.1;
}

.timeline-card {
  position: relative;
  padding: 13px 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 27, 0.92);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.timeline-card-location {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.84rem;
  line-height: 1.2;
}

.timeline-card-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.98);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.14;
}

.timeline-card-description {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.99rem;
  line-height: 1.28;
}

.timeline-item.is-loading .timeline-card-title,
.timeline-item.is-loading .timeline-card-description,
.timeline-item.is-loading .timeline-card-location,
.timeline-item.is-loading .timeline-date strong,
.timeline-item.is-loading .timeline-date span {
  color: rgba(255, 255, 255, 0.74);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.detail-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.info-header {
  max-width: 300px;
}

.info-kicker {
  margin: 0 0 12px;
  color: rgba(156, 186, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.info-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.35rem, 7vw, 3rem);
  line-height: 0.84;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-description {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.info-card {
  margin-top: 30px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 21, 31, 0.9), rgba(9, 10, 18, 0.94));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
}

.info-card-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 224px;
  padding: 18px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 35% 30%, #cfd5df 0%, #9aa3b2 45%, #6a7482 100%);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}

.info-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.12), rgba(5, 6, 10, 0.62));
  z-index: -1;
}

.info-card-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.info-stat {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.info-stat strong,
.info-stat span {
  display: block;
}

.info-stat strong {
  margin-bottom: 6px;
  color: rgba(156, 186, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-stat span {
  color: rgba(245, 247, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.42;
}

.page-transition {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.page-transition::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  background: rgba(4, 8, 18, 0.66);
  backdrop-filter: blur(0px);
  z-index: 21;
}

body.is-transitioning .page-transition::before {
  animation: fadeInDarken 240ms ease-out forwards;
}

body.is-entering .page-transition::before {
  animation: fadeOutLighten 260ms ease-out forwards;
}

body.is-transitioning .screen {
  animation: screenExit 240ms ease-out forwards;
}

body.is-entering .screen {
  animation: screenEnter 320ms ease-out both;
}

@keyframes homePulse {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.08;
  }
}

@keyframes spacecraftFloat {
  0%,
  100% {
    transform:
      translate3d(var(--spacecraft-shift-x), calc(var(--spacecraft-shift-y) - 1px), 0)
      rotateX(var(--spacecraft-tilt-x))
      rotateY(var(--spacecraft-tilt-y));
  }

  50% {
    transform:
      translate3d(var(--spacecraft-shift-x), calc(var(--spacecraft-shift-y) + 7px), 0)
      rotateX(calc(var(--spacecraft-tilt-x) + 1.4deg))
      rotateY(calc(var(--spacecraft-tilt-y) + 2deg));
  }
}

@keyframes fadeInDarken {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeOutLighten {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes screenExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
}

@keyframes screenEnter {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.997);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mission-visual-image,
  .timeline-visual-image,
  .planet-marker--home::after,
  body.is-transitioning .page-transition::before,
  body.is-entering .page-transition::before,
  body.is-transitioning .screen,
  body.is-entering .screen {
    animation: none;
  }
}

@media (max-width: 430px) {
  .phone-shell {
    border-radius: 30px;
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0.025),
      0 18px 40px rgba(0, 0, 0, 0.42);
  }
}

@media (min-width: 431px) {
  body {
    padding: var(--shell-padding);
  }

  .phone-shell {
    width: var(--shell-width);
    height: var(--shell-height);
    min-height: var(--shell-height);
  }
}
