.rocket-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 60px;
}

.section-title {
  margin: 0;
  font-size: 1.4rem;
}

.section-subtitle {
  margin: 0;
  color: #cfd8ff;
  font-size: 1rem;
}

.rocket-scene {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 320px;
  margin-top: 10px;
}

.rocket-scene[hidden] {
  display: none;
}

.launch-pad {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 110px;
  height: 54px;
  transform: translateX(-50%);
}

.pad-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 110px;
  height: 14px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
  border-radius: 4px;
}

.pad-strut {
  position: absolute;
  bottom: 14px;
  width: 6px;
  height: 40px;
  background: linear-gradient(180deg, #94a3b8, #64748b);
}

.pad-strut-left {
  left: 16px;
}

.pad-strut-right {
  right: 16px;
}

.recovery-pad {
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 50px;
  height: 10px;
  background: repeating-linear-gradient(90deg, #64748b 0 6px, #475569 6px 12px);
  border-radius: 2px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.rocket {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translate(-50%, 0px);
  transition: transform 1.2s ease-out;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  z-index: 2;
}

.rocket-flame {
  width: 20px;
  height: 26px;
  margin-bottom: -6px;
  background: radial-gradient(circle at 50% 20%, #fff6c0, #ffd166 45%, #ef476f 90%);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  opacity: 0;
  transition: opacity 0.25s ease;
  animation-name: flame-flicker;
  animation-duration: 0.15s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.rocket-flame.active {
  opacity: 1;
  animation-play-state: running;
}

@keyframes flame-flicker {
  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }
  50% {
    transform: scaleY(1.18) scaleX(0.88);
  }
}

.rocket-stage1 {
  position: relative;
  width: 34px;
  height: 70px;
  background: linear-gradient(180deg, #f1f5f9, #cbd5e1);
  border-radius: 6px 6px 0 0;
}

.rocket-fin {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 26px;
  background: #94a3b8;
}

.rocket-fin-left {
  left: -12px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.rocket-fin-right {
  right: -12px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.booster-flame {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 16px;
  height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 20%, #bfdbfe, #60a5fa 45%, #1d4ed8 90%);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  opacity: 0;
  transition: opacity 0.25s ease;
  animation-name: flame-flicker;
  animation-duration: 0.15s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.booster-flame.active {
  opacity: 1;
  animation-play-state: running;
}

.rocket-stage1.landed {
  box-shadow: 0 0 16px 4px rgba(6, 214, 160, 0.65);
}

.rocket-stage2 {
  width: 28px;
  height: 50px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
}

.rocket-fairing {
  width: 26px;
  height: 44px;
  background: linear-gradient(180deg, #ffffff, #e2e8f0);
  border-radius: 50% 50% 6px 6px / 65% 65% 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fairing-window {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
  border: 2px solid #cbd5e1;
}

.falling {
  transition: transform 1.1s ease-in, opacity 0.9s ease-in;
}

.orbit-scene {
  position: relative;
  width: 240px;
  height: 240px;
  margin-top: 10px;
}

.orbit-scene[hidden] {
  display: none;
}

.earth {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #60a5fa, #2563eb 60%, #1e3a8a 100%);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  transform: translate(-50%, -50%);
}

.ground-station {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 3;
}

.station-a {
  left: 91px;
  top: 144px;
  background: #ffd166;
  box-shadow: 0 0 6px #ffd166;
}

.station-b {
  left: 141px;
  top: 144px;
  background: #a78bfa;
  box-shadow: 0 0 6px #a78bfa;
}

.gps-pin {
  position: absolute;
  left: 91px;
  top: 128px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid #ef476f;
  transform-origin: top center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 4;
}

.gps-pin.active {
  transform: scale(1);
}

.gps-ring {
  position: absolute;
  left: 95px;
  top: 148px;
  width: 8px;
  height: 8px;
  border: 2px solid #ef476f;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.gps-ring.active {
  animation: gps-pulse 1.2s ease-out;
}

#gpsRing2.active {
  animation-delay: 0.3s;
}

@keyframes gps-pulse {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.5);
  }
}

.comm-line {
  position: absolute;
  height: 2px;
  width: 96px;
  background: repeating-linear-gradient(90deg, rgba(255, 209, 102, 0.75) 0 5px, transparent 5px 10px);
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comm-line.active {
  opacity: 1;
}

.comm-line-a {
  left: 95px;
  top: 148px;
  transform: rotate(-75deg);
}

.comm-line-b {
  left: 120px;
  top: 55px;
  transform: rotate(75deg);
}

.comm-pulse {
  position: absolute;
  left: 95px;
  top: 148px;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 8px #ffd166;
  opacity: 0;
  z-index: 4;
}

.sat-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sat-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation-name: spin;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.sat-anchor {
  position: absolute;
  left: 95px;
  top: -8px;
}

.satellite {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  animation-name: counter-spin;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes counter-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.sat-panel {
  width: 14px;
  height: 8px;
  background: #3b82f6;
  border: 1px solid #1e40af;
}

.sat-body {
  width: 10px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 2px;
}

.camera-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
}

.camera-flash.active {
  animation: flash-pop 0.4s ease-out;
}

@keyframes flash-pop {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
  }
}

.satellite-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.satellite-services[hidden] {
  display: none;
}

.service-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.service-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8ff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.service-btn:hover {
  background: linear-gradient(90deg, #ffd166, #ef476f);
  color: #1b1035;
  transform: scale(1.05);
}

.service-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.result-photo[hidden],
.result-comm[hidden],
.result-gps[hidden] {
  display: none;
}

.result-comm p,
.result-gps p {
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: bold;
  color: #cfd8ff;
}

.polaroid {
  background: #ffffff;
  padding: 8px 8px 14px;
  border-radius: 4px;
  width: 110px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: scale(0.6) rotate(-6deg);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.polaroid.active {
  transform: scale(1) rotate(-3deg);
  opacity: 1;
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: radial-gradient(circle at 35% 35%, #60a5fa, #2563eb 60%, #1e3a8a 100%);
}

.polaroid-caption {
  margin: 6px 0 0;
  font-size: 0.7rem;
  color: #1b1035;
  text-align: center;
  font-weight: bold;
}

.rocket-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8ff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.step-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.step-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.step-btn.next {
  background: linear-gradient(90deg, #ffd166, #ef476f);
  color: #1b1035;
  border-color: transparent;
  font-weight: bold;
}

.step-btn.done {
  background: linear-gradient(90deg, #06d6a0, #4d7cff);
  color: #1b1035;
  border-color: transparent;
  opacity: 1;
}

.step-check {
  display: none;
  font-weight: bold;
}

.step-btn.done .step-check {
  display: inline;
}

.restart-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #cfd8ff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.restart-btn[hidden] {
  display: none;
}

.restart-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}
