.space {
  --discover-accent: #6555d8;
  --discover-soft: #ecebff;
  --discover-border: #c9c4f3;
  background: radial-gradient(circle at 12% 3%, #33256e, transparent 28%), linear-gradient(180deg, #10142f, #eef0ff 47%, #f5f7ff);
}

.space .landing-topbar, .space .discover-hero { color: #fff; }
.space .discover-hero { background: linear-gradient(145deg, rgba(21,22,63,.95), rgba(74,47,126,.9)); }
.space .discover-hero-art { background: radial-gradient(circle at 70% 28%, #ffd96a 0 7%, transparent 7.4%), radial-gradient(circle at 28% 68%, #518ff5 0 8%, transparent 8.5%), radial-gradient(circle, #fff 0 1px, transparent 1.5px); background-size: auto, auto, 27px 27px; }

.space-symbol { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 32% 28%, #8ed8ff, #5960d8 48%, #251b55 100%); box-shadow: 0 8px 18px rgba(31,25,80,.2), inset 0 0 0 4px rgba(255,255,255,.25); }
.space-symbol span { font-size: 2.8rem; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.28)); }
.space-sun { background: radial-gradient(circle at 35% 30%, #fff9a0, #ffad2e 55%, #d85229); }
.space-moon { background: radial-gradient(circle at 34% 30%, #fff, #bfc9df 58%, #65708b); }
.space-black-hole { background: radial-gradient(circle, #080713 0 28%, #e999ff 30%, #6278ff 39%, #1a153a 57%); }
.space-nebula { background: radial-gradient(ellipse at 35% 35%, #ffb6e8, #7359cf 48%, #1a2854 75%); }
.space-galaxy { background: conic-gradient(from 25deg, #1a2458, #9d88ff, #fff, #516ad1, #1a2458); }
.space-rocket, .space-space-telescope { border-radius: 34% 66% 38% 62%; }

.mission-builder { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 14px 0; }
.mission-builder label { margin: 0; }
.favorite-preview small { grid-column: 1/-1; color: #51467d; text-align: center; }
.submission-mission { padding: 8px 10px; border-radius: 12px; background: var(--discover-soft); }

.space-world { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 73% 24%, #bb7cf4 0 4%, transparent 17%), radial-gradient(circle at 18% 72%, #286fc7 0 3%, transparent 15%), radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px), linear-gradient(145deg, #05081b, #151345 55%, #281651); background-size: auto, auto, 31px 31px, auto; }
.space-world::before { content: ""; position: absolute; left: 6%; top: 10%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9ce9ff, #3379d4 58%, #173b80); box-shadow: inset -15px -10px rgba(0,0,0,.18), 0 0 35px rgba(66,154,255,.35); }
.space-world::after { content: ""; position: absolute; right: 7%; bottom: 10%; width: 170px; height: 90px; border: 13px solid rgba(238,195,96,.7); border-radius: 50%; transform: rotate(-12deg); box-shadow: 0 0 24px rgba(255,205,108,.25); }

.space-mission { position: absolute; z-index: 3; width: 155px; margin: 0; transform: translate(-50%,-50%) scale(var(--scale)); text-align: center; color: #fff; animation: mission-float 5.4s ease-in-out infinite alternate; animation-delay: var(--delay); }
.mission-path { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 54px; }
.space-mission strong, .space-mission small { display: block; width: max-content; max-width: 190px; margin: 3px auto 0; padding: 3px 7px; border-radius: 999px; background: rgba(8,10,34,.78); }
.space-mission small { font-size: .66rem; color: #e7e9ff; }
.mission-craft { position: relative; display: inline-block; width: 32px; height: 18px; border-radius: 55% 18% 18% 55%; background: #e7ebf8; transform: rotate(-12deg); box-shadow: inset -5px -3px #8d9aba; }
.mission-craft::before { content: ""; position: absolute; left: -13px; top: 5px; border-right: 14px solid #ff9d37; border-top: 4px solid transparent; border-bottom: 4px solid transparent; filter: drop-shadow(-5px 0 #ffdf55); }
.mission-craft::after { content: ""; position: absolute; right: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #54bde8; }
.craft-rover { width: 34px; height: 20px; border-radius: 5px; background: #e0b95d; }
.craft-rover::before { left: 3px; top: 16px; width: 9px; height: 9px; border: 0; border-radius: 50%; background: #323950; box-shadow: 19px 0 #323950; filter: none; }
.craft-rover::after { right: 5px; top: -10px; width: 18px; height: 12px; border-radius: 3px; background: #6ca5d9; }
.craft-telescope { border-radius: 3px; background: #b8c6e2; }
.craft-telescope::before { left: -11px; top: 0; width: 7px; height: 18px; border: 0; background: #6089d2; filter: none; }
.craft-station-module { width: 40px; border-radius: 4px; }
.craft-station-module::before { left: -17px; top: 1px; width: 15px; height: 16px; border: 0; background: #4679be; box-shadow: 59px 0 #4679be; filter: none; }
.mission-target { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f9f1a0, #b86ecc 50%, #3c367e); box-shadow: 0 0 14px rgba(203,178,255,.65); }
.target-black-hole { background: radial-gradient(circle, #000 0 35%, #f1a3ff 38%, #4d68ff 55%, transparent 58%); }
.target-nebula, .target-galaxy { border-radius: 58% 42% 64% 36%; background: conic-gradient(#7658d0,#ffa2d4,#fff,#3f7bd7,#7658d0); }
.target-space-station, .target-rocket, .target-astronaut, .target-space-telescope { border-radius: 6px; background: #d8e3f7; }

@keyframes mission-float { to { margin-left: 28px; margin-top: -13px; transform: translate(-50%,-50%) scale(var(--scale)) rotate(2deg); } }

@media (max-width: 700px) {
  .mission-builder { grid-template-columns: 1fr; }
  .space-world::before { width: 80px; height: 80px; }
  .space-world::after { width: 110px; height: 55px; }
}

@media (prefers-reduced-motion: reduce) {
  .space-mission { animation: none !important; }
}
