/* Premium Futuristic Aesthetic for Cyber Quiz */
#cyber-quiz-arena {
  position: relative;
  width: 100%;
  animation: fadeIn 0.4s ease-out forwards;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.quiz-timer {
  font-family: "Fira Code", monospace;
  font-size: 1.4rem;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.quiz-progress {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.quiz-question-container {
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

#quiz-question-text {
  font-family: "Space Grotesk", sans-serif;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 1.05rem;
  color: var(--text-base);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  backdrop-filter: blur(4px);
}

.quiz-option-btn:hover:not(:disabled) {
  background: rgba(0, 229, 255, 0.08);
  border-color: #00e5ff;
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.2),
    0 0 10px rgba(138, 43, 226, 0.3);
  transform: translateX(6px);
  color: #ffffff;
}

.quiz-option-btn:active:not(:disabled) {
  transform: translateX(2px) scale(0.99);
}

.quiz-option-btn:disabled {
  cursor: default;
  opacity: 0.9;
}

.quiz-option-btn.correct {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
  color: #00ff66;
  animation: pulseCorrect 1s ease;
}

.quiz-option-btn.wrong {
  border-color: #ff0055;
  background: rgba(255, 0, 85, 0.15);
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
  color: #ff0055;
  animation: shakeWrong 0.5s ease;
}

@keyframes pulseCorrect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shakeWrong {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

#quiz-game-over {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease-out forwards;
}

.eval-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.eval-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.5);
}

.eval-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eval-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  color: #00e5ff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

#quiz-final-score,
#quiz-earned-xp {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.5);
}

#quiz-earned-xp {
  animation-delay: 0.2s;
  color: #00ff66;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.3);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
