* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, #1d4ed8, transparent 30%),
    radial-gradient(circle at bottom right, #7c3aed, transparent 30%),
    linear-gradient(135deg, #0f172a, #111827, #1e293b);
  color: #ffffff;
}

.quiz-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
}

.quiz-shell {
  width: 100%;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 22px;
}

.quiz-top {
  margin-bottom: 22px;
}

#progressText {
  font-size: 13px;
  color: #dbeafe;
  margin-bottom: 10px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz-title {
  font-size: 30px;
  margin-bottom: 14px;
  color: #ffffff;
}

.question-text {
  font-size: 21px;
  line-height: 1.4;
  margin-bottom: 22px;
  color: #f8fafc;
}

.answers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.answer-btn {
  width: 100%;
  min-height: 68px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 16px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
}

.answer-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.answer-btn.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
}

.message {
  min-height: 20px;
  margin-top: 16px;
  color: #fca5a5;
  font-weight: bold;
  font-size: 14px;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

#nextBtn,
#restartBtn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
  transition: 0.2s ease;
}

#nextBtn:hover,
#restartBtn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.result-screen {
  text-align: center;
  padding: 20px 6px 6px;
}

.result-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.result-screen h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.score-text {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #38bdf8;
}

.score-message {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 22px;
}

.hidden {
  display: none;
}

@media (max-width: 700px) {
  .quiz-shell {
    padding: 18px;
  }

  .quiz-title {
    font-size: 26px;
  }

  .question-text {
    font-size: 19px;
  }

  .answers-container {
    grid-template-columns: 1fr;
  }

  .score-text {
    font-size: 34px;
  }

  .result-screen h2 {
    font-size: 26px;
  }
}
