:root {
  --andromeda-bg: radial-gradient(circle at top, #a855f7 0, #312e81 35%, #020617 80%);
  --andromeda-card: #ffffff;
  --andromeda-card-overlay: radial-gradient(circle at top left, rgba(167, 139, 250, 0.35), transparent 55%);
  --andromeda-primary-start: #a855f7;
  --andromeda-primary-end: #4f46e5;
  --andromeda-primary: #7c3aed;
  --andromeda-accent: #4b5563;
  --andromeda-button: #22c55e;
  --andromeda-button-hover: #16a34a;
  --andromeda-step-pill-bg: rgba(216, 180, 254, 0.35);
  --andromeda-progress-bg: rgba(209, 213, 219, 0.7);
}

.andromeda-quiz-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--andromeda-bg);
  padding: 32px 16px;
  box-sizing: border-box;
}

.andromeda-quiz-card {
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.andromeda-quiz-card-inner {
  width: 100%;
  background: var(--andromeda-card);
  border-radius: 24px;
  padding: 24px 20px 22px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.65);
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.andromeda-quiz-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--andromeda-card-overlay);
  pointer-events: none;
}

.andromeda-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.andromeda-quiz-step-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--andromeda-primary);
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--andromeda-step-pill-bg);
}

.andromeda-quiz-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.8);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(124, 58, 237, 0.05));
  color: #92400e;
  font-size: 13px;
}

.andromeda-quiz-timer-icon {
  font-size: 14px;
}

.andromeda-quiz-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--andromeda-progress-bg);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.andromeda-quiz-progress-inner {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--andromeda-primary-start), var(--andromeda-primary-end));
  transition: width 0.25s ease;
}

.andromeda-quiz-social {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.andromeda-quiz-social::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.andromeda-quiz-social-pop {
  transform: translateY(-1px);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.andromeda-quiz-step-area {
  position: relative;
  min-height: 170px;
  z-index: 1;
}

.andromeda-quiz-step {
  opacity: 0;
  transform: translateY(10px);
}

.andromeda-quiz-step-enter {
  opacity: 0;
  transform: translateY(10px);
}

.andromeda-quiz-step-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.andromeda-quiz-step-leave .andromeda-quiz-step {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.andromeda-quiz-question-text {
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  margin: 0 0 16px;
  font-weight: 600;
}

.andromeda-quiz-title {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #111827;
  font-weight: 700;
}

.andromeda-quiz-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 18px;
}

.andromeda-quiz-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.andromeda-quiz-button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  position: relative;
}

.andromeda-quiz-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  border-color: rgba(124, 58, 237, 0.7);
  background: #f9f5ff;
}

.andromeda-quiz-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.andromeda-quiz-option-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
}

.andromeda-quiz-option-label {
  flex: 1;
}

.andromeda-quiz-final-cta {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.andromeda-quiz-button-pulse {
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: var(--andromeda-button);
  color: #ffffff;
  text-align: center;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  text-decoration: none !important;
}

.andromeda-quiz-button-pulse:hover {
  background: var(--andromeda-button-hover);
  box-shadow: none;
  text-decoration: none !important;
}

.andromeda-quiz-button-pulse .andromeda-quiz-option-mark {
  display: none;
}

.andromeda-quiz-button-pulse::after {
  content: none;
}

.andromeda-quiz-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
  font-style: normal;
}

@media (max-width: 480px) {
  .andromeda-quiz-card-inner {
    border-radius: 22px;
    padding: 22px 14px 18px;
  }

  .andromeda-quiz-question-text {
    font-size: 15px;
  }

  .andromeda-quiz-button {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .andromeda-quiz-wrap {
    padding: 40px 24px;
  }
}
