*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(circle at top, #ffe8ea 0, #f5c5c7 30%, #e63b3b 75%, #b31217 100%);
  min-height: 100vh;
  color: #b31217;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.quiz-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 1.6rem 2rem;
  box-shadow: 0 18px 45px rgba(148, 27, 39, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.quiz-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #056839;
  color: #f9fafb;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.pill-emoji {
  font-size: 1rem;
}

h1 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: #b31217;
}

.quiz-intro {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.quiz-step {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.quiz-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: #b31217;
  margin-bottom: 0.9rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, transform 0.08s ease;
}

.quiz-option:hover {
  border-color: #b31217;
  box-shadow: 0 8px 20px rgba(148, 27, 39, 0.18);
  transform: translateY(-1px);
}

.quiz-option.selected {
  border-color: #b31217;
  background: #fff5f5;
}

.option-icon {
  font-size: 1.4rem;
}

.option-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.option-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.option-desc {
  font-size: 0.8rem;
  color: #6b7280;
}

.quiz-next {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #e02424;
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(148, 27, 39, 0.4);
  transition: transform 0.08s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.quiz-next:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 34px rgba(148, 27, 39, 0.55);
}

.quiz-result {
  border-radius: 18px;
  border: 1px dashed #fecaca;
  background: #fff7f7;
  padding: 0.9rem 0.8rem 1rem;
}

.quiz-result h2 {
  font-size: 1rem;
  color: #b31217;
  margin-bottom: 0.4rem;
}

.quiz-result p {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

.result-btn {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: #b31217;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(148, 27, 39, 0.4);
}

.result-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.35rem;
  }
}
