:root {
  --animation-speed: 1; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; }

body {
  overflow: hidden;
  background: #1a1a2e;
  font-family: 'Arial', sans-serif; }

.universe {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: radial-gradient(ellipse at center, #16213e 0%, #1a1a2e 100%);
  overflow: hidden; }

.starfield {
  position: absolute;
  width: 100%;
  height: 100%;
  perspective: 1000px; }

.stars {
  position: absolute;
  width: 100%;
  height: 100%; }
  .stars::before, .stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 100px 100px 0 #ffffff, 200px 150px 0 #ffffff, 300px 50px 0 #ffffff, 400px 300px 0 #ffffff, 500px 200px 0 #ffffff, 600px 350px 0 #ffffff, 700px 100px 0 #ffffff, 800px 250px 0 #ffffff, 150px 400px 0 #ffffff, 250px 450px 0 #ffffff, 350px 380px 0 #ffffff, 450px 420px 0 #ffffff, 550px 480px 0 #ffffff, 650px 410px 0 #ffffff, 750px 460px 0 #ffffff, 850px 390px 0 #ffffff; }

.stars-layer-1 {
  animation-name: twinkle;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both;
  opacity: 0.3; }

.stars-layer-2 {
  animation-name: twinkle-reverse;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-delay: 0.5s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both;
  opacity: 0.5;
  transform: scale(0.8); }

.stars-layer-3 {
  animation-name: twinkle;
  animation-duration: 4s;
  animation-timing-function: ease-in-out;
  animation-delay: 1s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both;
  opacity: 0.7;
  transform: scale(0.6); }

.solar-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px; }

.sun {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6a00 100%);
  border-radius: 50%;
  position: relative;
  transform: translateZ(0);
  transform-style: preserve-3d;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.3), 0 0 90px rgba(255, 165, 0, 0.2);
  animation-name: sun-pulse;
  animation-duration: 4s;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }
  .sun .sun-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 154, 86, 0.8) 0%, transparent 70%);
    animation-name: glow-pulse;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: both; }

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(60deg); }
  .orbit .planet {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%; }
    .orbit .planet .planet-shadow {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%); }

.earth-orbit {
  width: 300px;
  height: 300px;
  animation-name: orbit;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }
  .earth-orbit .earth {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    animation-name: planet-rotate;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: both; }

.mars-orbit {
  width: 400px;
  height: 400px;
  animation-name: orbit-reverse;
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }
  .mars-orbit .mars {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    animation-name: planet-rotate;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: both; }

.jupiter-orbit {
  width: 500px;
  height: 500px;
  animation-name: orbit;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }
  .jupiter-orbit .jupiter {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-radius: 50%;
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
    animation-name: planet-rotate;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: both; }

.rocket-container {
  position: absolute;
  top: 20%;
  left: -100px;
  animation-name: rocket-fly;
  animation-duration: 8s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: 2s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }

.rocket {
  position: relative;
  width: 60px;
  height: 100px; }
  .rocket .rocket-body {
    width: 40px;
    height: 80px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    margin: 0 auto;
    border-radius: 50% 50% 10% 10% / 60% 60% 40% 40%;
    position: relative; }
    .rocket .rocket-body::before, .rocket .rocket-body::after {
      content: '';
      position: absolute;
      width: 0;
      height: 0;
      border-style: solid; }
    .rocket .rocket-body::before {
      left: -10px;
      top: 20px;
      border-width: 15px 10px 15px 0;
      border-color: transparent #e74c3c transparent transparent; }
    .rocket .rocket-body::after {
      right: -10px;
      top: 20px;
      border-width: 15px 0 15px 10px;
      border-color: transparent transparent transparent #e74c3c; }
  .rocket .rocket-window {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #87ceeb, #4682b4);
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.2); }
  .rocket .rocket-flame {
    position: absolute;
    bottom: 15px;
    left: 20%;
    transform: translateX(-50%); }
    .rocket .rocket-flame .flame {
      position: absolute;
      width: 0;
      height: 0;
      border-style: solid;
      animation: flame-flicker 0.2s ease-in-out infinite; }
    .rocket .rocket-flame .flame-1 {
      border-width: 30px 10px 0 10px;
      border-color: #ff6b35 transparent transparent transparent;
      left: -10px; }
    .rocket .rocket-flame .flame-2 {
      border-width: 25px 8px 0 8px;
      border-color: #ffa500 transparent transparent transparent;
      left: 12px; }
    .rocket .rocket-flame .flame-3 {
      border-width: 20px 6px 0 6px;
      border-color: #ffff00 transparent transparent transparent;
      left: 28px; }

.ufo-container {
  position: absolute;
  top: 60%;
  right: -150px;
  animation-name: ufo-hover;
  animation-duration: 12s;
  animation-timing-function: ease-in-out;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }

.ufo {
  position: relative;
  width: 100px;
  height: 50px; }
  .ufo .ufo-body {
    width: 100px;
    height: 30px;
    background: linear-gradient(to bottom, #34495e, #2c3e50);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.3), 0 0 45px rgba(0, 255, 0, 0.2); }
  .ufo .ufo-dome {
    width: 50px;
    height: 30px;
    background: radial-gradient(ellipse, rgba(135, 206, 235, 0.8), transparent);
    border-radius: 50% 50% 0 0;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation-name: dome-glow;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: both; }
  .ufo .ufo-lights {
    position: absolute;
    bottom: -10px;
    width: 100%;
    display: flex;
    justify-content: space-around; }
    .ufo .ufo-lights .light {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #00ff00;
      box-shadow: 0 0 5px rgba(0, 255, 0, 0.5), 0 0 10px rgba(0, 255, 0, 0.3), 0 0 15px rgba(0, 255, 0, 0.2); }
      .ufo .ufo-lights .light.light-1 {
        animation-name: light-pulse;
        animation-duration: 1s;
        animation-timing-function: ease-in-out;
        animation-delay: 0s;
        animation-iteration-count: infinite;
        animation-direction: normal;
        animation-fill-mode: both; }
      .ufo .ufo-lights .light.light-2 {
        animation-name: light-pulse;
        animation-duration: 1s;
        animation-timing-function: ease-in-out;
        animation-delay: 0.25s;
        animation-iteration-count: infinite;
        animation-direction: normal;
        animation-fill-mode: both; }
      .ufo .ufo-lights .light.light-3 {
        animation-name: light-pulse;
        animation-duration: 1s;
        animation-timing-function: ease-in-out;
        animation-delay: 0.5s;
        animation-iteration-count: infinite;
        animation-direction: normal;
        animation-fill-mode: both; }
      .ufo .ufo-lights .light.light-4 {
        animation-name: light-pulse;
        animation-duration: 1s;
        animation-timing-function: ease-in-out;
        animation-delay: 0.75s;
        animation-iteration-count: infinite;
        animation-direction: normal;
        animation-fill-mode: both; }

.asteroid-container {
  position: absolute;
  top: 40%;
  left: 80%;
  animation-name: asteroid-spin;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }

.asteroid {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #8b7355, #5d4e37);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.5);
  animation-name: asteroid-rotate;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: both; }

.new-star {
  animation: star-appear 1s ease-out forwards; }

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1); }
  50% {
    opacity: 1;
    transform: scale(1.2); } }
@keyframes twinkle-reverse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.8); }
  50% {
    opacity: 0.2;
    transform: scale(0.6); } }
@keyframes orbit {
  from {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
  to {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); } }
@keyframes orbit-reverse {
  from {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
  to {
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); } }
@keyframes planet-rotate {
  from {
    transform: translateY(-50%) rotateY(0deg); }
  to {
    transform: translateY(-50%) rotateY(360deg); } }
@keyframes sun-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1); }
  50% {
    transform: translate(-50%, -50%) scale(1.1); } }
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1); }
  50% {
    opacity: 0.8;
    transform: scale(1.2); } }
@keyframes rocket-fly {
  0% {
    left: -100px;
    top: 20%;
    transform: translateY(0) rotate(0deg); }
  25% {
    top: 10%;
    transform: translateY(-20px) rotate(-10deg); }
  50% {
    top: 15%;
    transform: translateY(-10px) rotate(10deg); }
  75% {
    top: 25%;
    transform: translateY(10px) rotate(-5deg); }
  100% {
    left: 110%;
    top: 20%;
    transform: translateY(0) rotate(0deg); } }
@keyframes flame-flicker {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1); }
  50% {
    opacity: 0.8;
    transform: scaleY(1.2); } }
@keyframes ufo-hover {
  0% {
    right: -150px;
    transform: translateY(0) rotate(0deg); }
  25% {
    transform: translateY(-30px) rotate(-5deg); }
  50% {
    transform: translateY(10px) rotate(5deg); }
  75% {
    transform: translateY(-20px) rotate(-3deg); }
  100% {
    right: 110%;
    transform: translateY(0) rotate(0deg); } }
@keyframes dome-glow {
  0%, 100% {
    opacity: 0.8; }
  50% {
    opacity: 1; } }
@keyframes light-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1); }
  50% {
    opacity: 0.3;
    transform: scale(0.8); } }
@keyframes asteroid-spin {
  0% {
    transform: rotate(0deg) translateX(200px) rotate(0deg); }
  100% {
    transform: rotate(360deg) translateX(200px) rotate(-360deg); } }
@keyframes asteroid-rotate {
  from {
    transform: rotate(0deg); }
  to {
    transform: rotate(360deg); } }
@keyframes star-appear {
  0% {
    opacity: 0;
    transform: scale(0); }
  100% {
    opacity: 1;
    transform: scale(1); } }
@media (max-width: 768px) {
  .solar-system {
    width: 400px;
    height: 400px; }

  .earth-orbit {
    width: 200px;
    height: 200px; }

  .mars-orbit {
    width: 280px;
    height: 280px; }

  .jupiter-orbit {
    width: 360px;
    height: 360px; }

  .sun {
    width: 80px;
    height: 80px; }

  .earth {
    width: 25px;
    height: 25px; }

  .mars {
    width: 20px;
    height: 20px; }

  .jupiter {
    width: 40px;
    height: 40px; } }
