/* HAIDI Scent Quiz — fullscreen overlay (bright) */

.haidi-home .haidi-quiz {
  --quiz-ink: #262019;
  --quiz-muted: #8c8375;
  --quiz-line: rgba(38, 32, 25, 0.14);
  --quiz-card: #fff;
  --quiz-bg: #faf7f1;
  --quiz-panel: #f7f2ea;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background: rgba(38, 32, 25, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.haidi-home .haidi-quiz.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.haidi-home .haidi-quiz-panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--quiz-panel);
  color: var(--quiz-ink);
  padding: 56px 0 64px;
  box-sizing: border-box;
  transform: translateY(18px) scale(0.985);
  opacity: 0.85;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.haidi-home .haidi-quiz.is-open .haidi-quiz-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.haidi-home .haidi-quiz-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  max-width: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196, 164, 132, 0.28), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(140, 72, 58, 0.12), transparent 50%);
  pointer-events: none;
}

.haidi-home .haidi-quiz-close {
  position: fixed;
  top: 14px;
  right: max(14px, env(safe-area-inset-right));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--quiz-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: opacity 0.2s ease;
}

.haidi-home .haidi-quiz-close:hover {
  background: transparent;
  border: none;
  opacity: 0.55;
}

.haidi-home .haidi-quiz-close svg {
  width: 20px;
  height: 20px;
}

.haidi-home .haidi-quiz-progress {
  position: relative;
  top: auto;
  z-index: 1;
  width: min(100% - 36px, 920px);
  max-width: 920px;
  margin: 0 auto 28px;
  height: 2px;
  background: var(--quiz-line);
  border-radius: 2px;
  overflow: hidden;
}

.haidi-home .haidi-quiz-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8c483a, #c4a484);
  border-radius: 2px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.haidi-home .haidi-quiz-stage {
  position: relative;
  width: min(100% - 36px, 920px);
  max-width: 920px;
  margin: 0 auto;
  z-index: 1;
  box-sizing: border-box;
}

.haidi-home .haidi-quiz-screen {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.haidi-home .haidi-quiz-screen.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.haidi-home .haidi-quiz-screen.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.haidi-home .haidi-quiz-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--quiz-muted) !important;
}

.haidi-home .haidi-quiz-hero-title {
  margin: 0 0 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: none;
  white-space: nowrap;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-question,
.haidi-home .haidi-quiz-step-label {
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-hint {
  margin: -10px 0 20px;
  font-size: 13px;
  color: var(--quiz-muted) !important;
  font-weight: 300;
}

.haidi-home .haidi-quiz-choice-grid {
  display: grid;
  gap: 14px;
}

.haidi-home .haidi-quiz-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 24px;
  border: 1px solid var(--quiz-line);
  background: var(--quiz-card);
  color: var(--quiz-ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  max-width: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.haidi-home .haidi-quiz-choice:hover,
.haidi-home .haidi-quiz-choice:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(38, 32, 25, 0.28);
  box-shadow: 0 14px 32px rgba(38, 32, 25, 0.08);
  outline: none;
}

.haidi-home .haidi-quiz-choice-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-choice-sub {
  font-size: 13px;
  color: var(--quiz-muted) !important;
  font-weight: 300;
  line-height: 1.4;
}

.haidi-home .haidi-quiz-cards {
  display: grid;
  gap: 12px;
}

.haidi-home .haidi-quiz-cards--3 {
  grid-template-columns: 1fr;
}

.haidi-home .haidi-quiz-cards--occasion {
  grid-template-columns: 1fr 1fr;
}

.haidi-home .haidi-quiz-cards--occasion .haidi-quiz-card:first-child {
  grid-column: 1 / -1;
}

.haidi-home .haidi-quiz-cards--mood {
  grid-template-columns: 1fr 1fr;
}

.haidi-home .haidi-quiz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--quiz-line);
  background: #2a221c;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.25s ease, box-shadow 0.28s ease;
}

.haidi-home .haidi-quiz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 1;
  transition: transform 0.5s ease;
}

.haidi-home .haidi-quiz-card > * {
  position: relative;
  z-index: 1;
}

.haidi-home .haidi-quiz-card span,
.haidi-home .haidi-quiz-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  line-height: 1.1;
}

.haidi-home .haidi-quiz-card-sub {
  margin-top: 6px;
  font-family: var(--sans, 'Outfit', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

.haidi-home .haidi-quiz-card:hover,
.haidi-home .haidi-quiz-card:focus-visible,
.haidi-home .haidi-quiz-card.is-selected {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(20, 17, 12, 0.22);
  outline: none;
}

.haidi-home .haidi-quiz-card:hover::before,
.haidi-home .haidi-quiz-card.is-selected::before {
  transform: scale(1.06);
}

/* Gender atmospheres */
.haidi-home .haidi-quiz-card--gender {
  min-height: 160px;
}
.haidi-home .haidi-quiz-card--gender.women {
  background:
    linear-gradient(160deg, rgba(20, 12, 14, 0.25), rgba(20, 12, 14, 0.72)),
    linear-gradient(145deg, #6b3a44 0%, #2a1418 55%, #120a0c 100%);
}
.haidi-home .haidi-quiz-card--gender.men {
  background:
    linear-gradient(160deg, rgba(10, 14, 18, 0.2), rgba(10, 14, 18, 0.75)),
    linear-gradient(145deg, #3d4d5a 0%, #171d22 55%, #0a0d10 100%);
}
.haidi-home .haidi-quiz-card--gender.unisex {
  background:
    linear-gradient(160deg, rgba(18, 14, 8, 0.2), rgba(18, 14, 8, 0.72)),
    linear-gradient(145deg, #6a5630 0%, #2a2212 55%, #120e08 100%);
}

/* Occasion photo-like cards */
.haidi-home .haidi-quiz-card--photo {
  min-height: 150px;
  background-size: cover;
  background-position: center;
}
.haidi-home .occasion-everyday {
  background-image:
    linear-gradient(180deg, transparent 20%, rgba(12, 10, 8, 0.78)),
    linear-gradient(135deg, #c4b39a, #6e6558 50%, #2c2822);
}
.haidi-home .occasion-date {
  background-image:
    linear-gradient(180deg, transparent 15%, rgba(20, 8, 12, 0.82)),
    linear-gradient(145deg, #8a3d4a, #3a1520 55%, #14080c);
}
.haidi-home .occasion-party {
  background-image:
    linear-gradient(180deg, transparent 15%, rgba(8, 6, 18, 0.85)),
    linear-gradient(145deg, #5b3d8a, #1c1234 50%, #080612);
}
.haidi-home .occasion-vacation {
  background-image:
    linear-gradient(180deg, transparent 20%, rgba(18, 12, 6, 0.78)),
    linear-gradient(145deg, #e0b56a, #8a6a3a 45%, #2a1c0c);
}
.haidi-home .occasion-office {
  background-image:
    linear-gradient(180deg, transparent 20%, rgba(10, 12, 14, 0.8)),
    linear-gradient(145deg, #8a94a0, #3a424a 50%, #121518);
}

/* Mood cards */
.haidi-home .mood-sweet {
  background-image:
    linear-gradient(180deg, transparent 10%, rgba(30, 10, 18, 0.8)),
    linear-gradient(145deg, #e8a0b4, #7a3048 50%, #220812);
}
.haidi-home .mood-woody {
  background-image:
    linear-gradient(180deg, transparent 15%, rgba(18, 12, 6, 0.82)),
    linear-gradient(145deg, #a67c52, #6b4a28 40%, #1a1208);
}
.haidi-home .mood-fresh {
  background-image:
    linear-gradient(180deg, transparent 15%, rgba(6, 16, 22, 0.8)),
    linear-gradient(145deg, #7ec8d8, #2a6070 45%, #0a1820);
}
.haidi-home .mood-floral {
  background-image:
    linear-gradient(180deg, transparent 10%, rgba(28, 12, 24, 0.8)),
    linear-gradient(145deg, #d4a0c8, #6a3860 50%, #1a0c18);
}
.haidi-home .mood-spicy {
  background-image:
    linear-gradient(180deg, transparent 15%, rgba(24, 10, 6, 0.82)),
    linear-gradient(145deg, #d4783c, #7a3018 45%, #1a0a06);
}
.haidi-home .mood-luxurious {
  background-image:
    linear-gradient(180deg, transparent 10%, rgba(12, 10, 6, 0.85)),
    linear-gradient(145deg, #c9b07a, #6a5830 45%, #141008);
}

/* Projection */
.haidi-home .haidi-quiz-card--proj {
  min-height: 150px;
  justify-content: center;
}
.haidi-home .haidi-quiz-card--proj.soft {
  background: linear-gradient(160deg, #3a342e, #1c1814);
}
.haidi-home .haidi-quiz-card--proj.moderate {
  background: linear-gradient(160deg, #4a3c30, #221a14);
}
.haidi-home .haidi-quiz-card--proj.beast {
  background: linear-gradient(160deg, #5a2820, #1a0c0a 70%);
}

.haidi-home .haidi-quiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.haidi-home .haidi-quiz-chip {
  appearance: none;
  border: 1px solid var(--quiz-line);
  background: #fff;
  color: var(--quiz-ink);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.haidi-home .haidi-quiz-chip.is-on {
  background: var(--quiz-ink);
  color: #faf7f1;
  border-color: var(--quiz-ink);
}

.haidi-home .haidi-quiz-continue {
  appearance: none;
  min-height: 52px;
  padding: 14px 28px;
  border: none;
  background: var(--quiz-ink);
  color: #faf7f1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.haidi-home .haidi-quiz-continue:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.haidi-home .haidi-quiz-continue:not(:disabled):hover {
  transform: translateY(-2px);
}

.haidi-home .haidi-quiz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 280px;
  text-align: center;
  color: var(--quiz-muted) !important;
}

.haidi-home .haidi-quiz-loading-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(38, 32, 25, 0.12);
  background:
    radial-gradient(circle at 35% 35%, #f0e2d0, transparent 55%),
    radial-gradient(circle at 70% 70%, #8c483a, transparent 50%);
  animation: haidi-quiz-pulse 1.6s ease-in-out infinite;
}

@keyframes haidi-quiz-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Results */
.haidi-home .haidi-quiz-results-hero {
  text-align: center;
  margin-bottom: 40px;
}

.haidi-home .haidi-quiz-found {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiz-muted) !important;
}

.haidi-home .haidi-quiz-match {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  color: #8c483a !important;
}

.haidi-home .haidi-quiz-hero-img {
  width: min(220px, 55vw);
  aspect-ratio: 4 / 5;
  margin: 0 auto 20px;
  overflow: hidden;
  background: #ebe4d8;
  border: 1px solid var(--quiz-line);
}

.haidi-home .haidi-quiz-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.haidi-home .haidi-quiz-hero-name {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-hero-name a {
  color: inherit !important;
  text-decoration: none;
}

.haidi-home .haidi-quiz-hero-inspired {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--quiz-muted) !important;
  font-weight: 300;
}

.haidi-home .haidi-quiz-perfect-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiz-muted) !important;
}

.haidi-home .haidi-quiz-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.haidi-home .haidi-quiz-tag {
  padding: 8px 12px;
  border: 1px solid var(--quiz-line);
  background: #fff;
  font-size: 12px;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.haidi-home .haidi-quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--quiz-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.haidi-home .haidi-quiz-btn--solid {
  background: var(--quiz-ink);
  color: #faf7f1 !important;
}

.haidi-home .haidi-quiz-btn--ghost {
  background: transparent;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-btn--solid:hover {
  background: #1a1612;
}

.haidi-home .haidi-quiz-btn--ghost:hover {
  background: rgba(38, 32, 25, 0.05);
}

.haidi-home .haidi-quiz-why {
  margin: 48px 0 40px;
  padding: 28px 24px;
  border-top: 1px solid var(--quiz-line);
  border-bottom: 1px solid var(--quiz-line);
  text-align: center;
}

.haidi-home .haidi-quiz-why h3 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-why p {
  margin: 0 auto;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--quiz-muted) !important;
  font-weight: 300;
}

.haidi-home .haidi-quiz-top-title {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-recs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.haidi-home .haidi-quiz-rec {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--quiz-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.haidi-home .haidi-quiz-rec:hover {
  border-color: rgba(38, 32, 25, 0.28);
  box-shadow: 0 10px 24px rgba(38, 32, 25, 0.06);
}

.haidi-home .haidi-quiz-rec-img {
  width: 88px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ebe4d8;
}

.haidi-home .haidi-quiz-rec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.haidi-home .haidi-quiz-rec-name {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--quiz-ink) !important;
}

.haidi-home .haidi-quiz-rec-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--quiz-muted) !important;
}

.haidi-home .haidi-quiz-rec-match {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #8c483a !important;
  white-space: nowrap;
}

.haidi-home .haidi-quiz.is-entering {
  animation: none;
}

@keyframes haidi-quiz-enter {
  from { opacity: 0.35; filter: saturate(0.7); }
  to { opacity: 1; filter: none; }
}

body.haidi-quiz-lock {
  overflow: hidden;
}

@media (max-width: 480px) {
  .haidi-home .haidi-quiz-hero-title {
    white-space: normal;
    font-size: 28px;
  }
}

@media (min-width: 900px) {
  .haidi-home .haidi-quiz-panel {
    padding: 64px 0 88px;
  }

  .haidi-home .haidi-quiz-close {
    top: 22px;
    right: 22px;
  }

  .haidi-home .haidi-quiz-hero-title {
    white-space: nowrap;
  }

  .haidi-home .haidi-quiz-choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .haidi-home .haidi-quiz-choice {
    min-height: 200px;
    padding: 36px 32px;
    justify-content: flex-end;
  }

  .haidi-home .haidi-quiz-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .haidi-home .haidi-quiz-card--gender,
  .haidi-home .haidi-quiz-card--proj {
    min-height: 280px;
  }

  .haidi-home .haidi-quiz-cards--occasion {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  .haidi-home .haidi-quiz-cards--occasion .haidi-quiz-card:first-child {
    grid-column: span 2;
  }

  .haidi-home .haidi-quiz-cards--occasion .haidi-quiz-card {
    grid-column: span 2;
    min-height: 220px;
  }

  .haidi-home .haidi-quiz-cards--mood {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .haidi-home .haidi-quiz-card--photo {
    min-height: 240px;
  }

  .haidi-home .haidi-quiz-recs {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .haidi-home .haidi-quiz-recs .haidi-quiz-rec:first-child {
    grid-column: 1 / -1;
  }
}
