/* Responsive styles for tablet screens (768px-1024px) and below */

/* Planet detail pages - stack vertically on narrow screens */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .planet-illustration {
    width: 150px;
    height: 150px;
  }

  .planet-name {
    font-size: 2rem;
  }

  .facts-section {
    max-width: 100%;
  }

  .back-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Challenges page responsive */
@media (max-width: 768px) {
  .challenge-section {
    padding: 1.25rem;
  }

  /* Match the Fact: stack vertically */
  .match-container {
    flex-direction: column;
    gap: 1rem;
  }

  .match-targets,
  .match-facts {
    max-width: 100%;
    flex: none;
    width: 100%;
  }

  /* Planet cards need touch targets */
  .planet-card {
    padding: 0.75rem 1.2rem;
    min-height: 44px;
  }

  .fact-card {
    min-height: 44px;
    padding: 0.85rem 1.2rem;
  }

  .match-target {
    min-height: 44px;
  }

  /* Drop zones need touch targets */
  .drop-zone {
    min-height: 50px;
    padding: 0.75rem 1rem;
  }

  /* Quiz answer buttons */
  .quiz-answer-btn {
    min-height: 44px;
    padding: 0.9rem 1.2rem;
  }

  .quiz-area {
    max-width: 100%;
  }

  /* Reset buttons */
  .reset-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Mission Log responsive */
@media (max-width: 768px) {
  .mission-dashboard {
    max-width: 100%;
  }

  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .total-stars-display {
    font-size: 3rem;
  }

  .rank-badge {
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
  }

  .btn-reset {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Home page responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .btn-launch {
    min-height: 44px;
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
  }
}

/* Saturn ring wrapper responsive for planet detail page */
@media (max-width: 768px) {
  .planet-illustration-wrapper {
    transform: scale(0.75);
  }
}
