/* Mission Results Screen */
.mission-results-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: var(--sat) 0 var(--sab);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mission-results-container {
  width: 90%;
  max-width: 400px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Result Header */
.mission-result-header {
  text-align: center;
}

.mission-result-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.5s ease-out;
}

.mission-result-title.victory {
  color: #4ade80;
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

.mission-result-title.defeat {
  color: #f87171;
  text-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reward Badge */
.mission-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a2e;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 12px;
  animation: bounceIn 0.6s ease-out 0.3s both;
}

.mission-reward-badge.hidden {
  display: none;
}

.reward-icon {
  font-size: 1.2rem;
}

.reward-text {
  font-size: 1rem;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mission Stats */
.mission-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.mission-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.stat-value {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.best-time-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a2e;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: pulse 1s ease-in-out infinite;
}

.best-time-badge.hidden {
  display: none;
}

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

/* Objectives Section */
.mission-objectives-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.section-title {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.objective-status {
  font-size: 1.2rem;
}

.objective-status.completed::before {
  content: "✅";
}

.objective-status.failed::before {
  content: "❌";
}

.objective-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.objective-progress {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Action Buttons */
.mission-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.mission-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mission-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mission-btn-retry {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

.mission-btn-retry:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.mission-btn-retry.hidden {
  display: none;
}

.mission-btn-next {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #fff;
}

.mission-btn-next:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.mission-btn-next.hidden {
  display: none;
}

.mission-btn-menu {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.mission-btn-menu:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Stars Display */
.mission-stars-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.mission-star {
  font-size: 2.2rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mission-star.empty {
  color: rgba(255, 255, 255, 0.15);
}

.mission-star.filled {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.mission-star.star-animate {
  animation: starPop 0.5s ease-out forwards;
  opacity: 0;
  transform: scale(0);
}

@keyframes starPop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-30deg);
  }
  60% {
    transform: scale(1.3) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Death Count */
.mission-death-count {
  text-align: center;
  color: rgba(248, 113, 113, 0.8);
  font-size: 0.9rem;
  padding: 4px;
}

.btn-icon {
  font-size: 1.2rem;
}

