.app-quiz {
  max-width: 800px;
}

.quiz-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quiz-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(30, 64, 175, 0.4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #e5e7eb;
}

.stat-value.correct {
  color: #22c55e;
}

.stat-value.incorrect {
  color: #ef4444;
}

.quiz-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.word-to-translate {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.options-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .options-container {
    grid-template-columns: 1fr;
  }
}

.option-btn {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f2937, #111827);
  border: 2px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.option-btn:hover:not(.correct):not(.incorrect):not(:disabled) {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.option-btn:active:not(.correct):not(.incorrect):not(:disabled) {
  transform: translateY(0);
}

.option-btn.correct {
  background: linear-gradient(135deg, #166534, #14532d);
  border-color: #22c55e;
  color: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.5);
  cursor: default;
}

.option-btn.incorrect {
  background: linear-gradient(135deg, #7f1d1d, #450a0a);
  border-color: #ef4444;
  color: #fef2f2;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
  cursor: default;
}

.option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.quiz-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.next-btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 500;
  align-self: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  color: white;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.next-btn:active {
  transform: translateY(0);
}

.progress-bar {
  height: 8px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-result {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(30, 64, 175, 0.6);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.quiz-result h2 {
  font-size: 28px;
  color: #f9fafb;
  margin-bottom: 30px;
  font-weight: 600;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .result-stats {
    grid-template-columns: 1fr;
  }
}

.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.result-label {
  font-size: 14px;
  color: #94a3b8;
}

.result-value {
  font-size: 24px;
  font-weight: 600;
  color: #e5e7eb;
}

.result-value.correct {
  color: #22c55e;
}

.result-value.incorrect {
  color: #ef4444;
}

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

@keyframes correctPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

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