/* Homepage teaser of the quiz couple (template/homepage/section_quiz.php). */
.quiz-teaser {
  padding: clamp(28px, 6vw, 56px) 16px;
  color: #2a142d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.quiz-teaser *,
.quiz-teaser *::before,
.quiz-teaser *::after {
  box-sizing: border-box;
}

.quiz-teaser__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 48px);
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(255, 143, 171, .28), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(139, 44, 246, .18), transparent 70%),
    #fff;
  box-shadow: 0 24px 70px rgba(72, 22, 64, .14);
}

.quiz-teaser__kicker {
  margin: 0 0 10px;
  color: #8b2cf6;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quiz-teaser h2 {
  margin: 0 0 12px;
  color: #2a142d;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.quiz-teaser__lead {
  margin: 0 0 18px;
  color: #6f5a71;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 600;
  line-height: 1.55;
}

.quiz-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}

.quiz-teaser__chips li {
  padding: 7px 13px;
  border-radius: 999px;
  background: #f7f1fb;
  color: #4b2a55;
  font-size: .88rem;
  font-weight: 800;
}

.quiz-teaser__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #e91e75, #8b2cf6);
  box-shadow: 0 14px 30px rgba(233, 30, 117, .3);
  font-size: 1.04rem;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease;
}

.quiz-teaser__cta:hover,
.quiz-teaser__cta:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(233, 30, 117, .38);
}

.quiz-teaser__cta:focus-visible {
  outline: 3px solid rgba(139, 44, 246, .5);
  outline-offset: 3px;
}

/* Number of revealed duos, once switched on in /admin/quiz/. */
.quiz-teaser__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: #6f5a71;
  font-size: .92rem;
  font-weight: 700;
}

.quiz-teaser__social strong {
  color: #2a142d;
  font-weight: 900;
}

.quiz-teaser__faces {
  display: inline-flex;
}

.quiz-teaser__faces span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(72, 22, 64, .14);
  font-size: .9rem;
}

.quiz-teaser__faces span:first-child {
  margin-left: 0;
}

/* A question of the quiz, slightly tilted, as a preview. */
.quiz-teaser__preview {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, #2a0f33 0%, #4a1d6e 100%);
  box-shadow: 0 20px 50px rgba(42, 15, 51, .3);
  transform: rotate(1.5deg);
}

.quiz-teaser__q {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.25;
}

.quiz-teaser__a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}

.quiz-teaser__a--picked {
  background: #fff;
  border-color: #fff;
  color: #2a142d;
}

/* Japanese lines break between word groups, not in the middle of one. */
.quiz-teaser:lang(ja) :is(h2, p, li, span) {
  word-break: auto-phrase;
}

@media (max-width: 760px) {
  .quiz-teaser__inner {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .quiz-teaser__cta {
    width: 100%;
  }

  .quiz-teaser__preview {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-teaser__cta {
    transition: none;
  }
}
