.page-space .game-card {
  position: relative;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.start-orbit {
  width: min(100%, 240px);
  margin: 0.35rem auto 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.1rem 0.85rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #1a237e 0%, #283593 45%, #3949ab 100%);
  box-shadow: 0 6px 0 rgba(26, 35, 126, 0.28);
  pointer-events: none;
}

.start-orbit .subject-emoji {
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
}

.subtitle {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.35;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.question-text {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0;
}

.subject-card {
  width: min(100%, 240px);
  margin: 0.1rem auto;
  min-height: 9.5rem;
  padding: 1.25rem 0.85rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a237e 0%, #283593 45%, #3949ab 100%);
  box-shadow:
    inset 0 -12px 0 rgba(0, 0, 0, 0.12),
    0 8px 0 rgba(26, 35, 126, 0.22);
  user-select: none;
}

.subject-emoji {
  font-size: clamp(4rem, 18vw, 5.2rem);
  line-height: 1;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.18));
}

.planet-ball {
  width: clamp(4.4rem, 20vw, 5.6rem);
  height: clamp(4.4rem, 20vw, 5.6rem);
  border-radius: 50%;
  box-shadow:
    inset -10px -8px 0 rgba(0, 0, 0, 0.18),
    inset 8px 6px 0 rgba(255, 255, 255, 0.28),
    0 4px 0 rgba(0, 0, 0, 0.2);
}

.planet-ball.tone-mercury {
  background: radial-gradient(circle at 32% 28%, #eceff1, #90a4ae 55%, #607d8b);
}

.planet-ball.tone-venus {
  background: radial-gradient(circle at 32% 28%, #fff8e1, #ffcc80 50%, #ffb74d);
}

.planet-ball.tone-uranus {
  background: radial-gradient(circle at 32% 28%, #e0f7fa, #80deea 48%, #26c6da);
}

.planet-ball.tone-neptune {
  background: radial-gradient(circle at 32% 28%, #bbdefb, #42a5f5 45%, #1565c0);
}

.subject-card.pulse {
  animation: pulse 0.5s ease;
}

.choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.btn-space-choice {
  min-height: 3.35rem;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
}

.feedback {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.75rem;
}

.feedback-correct {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.feedback-wrong {
  background: var(--color-warn-bg);
  color: #d68910;
}

.final-score {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0.5rem 0 1rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake {
  animation: shake 0.45s ease;
}

@media (min-width: 420px) {
  .choices {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .btn-space-choice {
    min-height: 4.2rem;
    font-size: clamp(0.95rem, 2.8vw, 1.05rem);
    padding: 0.55rem 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse,
  .shake,
  .subject-card.pulse {
    animation: none;
  }
}
