/* Local mockup: Fictional Boyfriend-style result navigation for the Trope Quiz. */
.bbb-tmq__result-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 24px;
  margin: 0 0 28px;
}

/* Standard migration: the legacy Trope form remains only as a data/behavior adapter. */
[data-trope-matchmaker] > .bbb-tmq__intro,
[data-trope-matchmaker] > .bbb-tmq__quiz,
[data-trope-matchmaker] > .bbb-tmq__result,
[data-trope-matchmaker] > .bbb-tmq__annotation {
  display: none !important;
}

[data-trope-matchmaker] [data-standard-reader-quiz] {
  width: 100%;
}

/* Exact hierarchy correction from the Fictional Boyfriend question screen. */
.bbb-tmq .bbb-tmq__quiz-head {
  display: block !important;
  max-height: none !important;
  margin: 0 auto 4px;
  padding: 4px 24px 8px;
  opacity: 1 !important;
  overflow: visible;
  text-align: center;
  transform: none !important;
}

.bbb-tmq .bbb-tmq__quiz-head > p,
.bbb-tmq .bbb-tmq__quiz-head > span {
  display: none;
}

.bbb-tmq .bbb-tmq__quiz-head h1 {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
}

.bbb-tmq__titleTrope {
  position: relative;
  display: inline-block;
}

.bbb-tmq .bbb-tmq__titleQuiz {
  position: absolute;
  right: -0.3em;
  bottom: -0.28em;
  z-index: 1;
  width: auto;
  margin: 0;
  color: #ff8ac7;
  font-size: 0.52em;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-8deg);
  pointer-events: none;
}

.bbb-tmq .bbb-tmq__annotation {
  width: calc(100% - 48px);
  margin: 0 auto 8px;
  color: #ff8ac7;
  font: 700 14px/1.2 Georgia, serif;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: lowercase;
  transform: none;
}

.bbb-tmq .bbb-tmq__card legend {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0 0 44px;
  color: #f6f6f6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}

.bbb-tmq .bbb-tmq__card legend > span {
  margin-bottom: 10px;
  color: #ff8ac7;
  font: 700 14px/1.2 Georgia, serif;
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: lowercase;
}

.bbb-tmq .bbb-tmq__answers span {
  justify-content: flex-start;
  text-align: left;
}

.bbb-tmq .bbb-tmq__answers img {
  display: none;
}

.bbb-tmq .bbb-tmq__answers b {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  font-weight: 400;
  text-align: left;
}

@media (max-width: 640px) {
  .bbb-tmq .bbb-tmq__quiz-head {
    padding: 0 14px 6px;
  }

  .bbb-tmq .bbb-tmq__quiz-head h1 {
    margin-top: 7px;
    font-size: clamp(32px, 10vw, 46px);
  }

  .bbb-tmq .bbb-tmq__annotation {
    width: calc(100% - 28px);
  }

  .bbb-tmq .bbb-tmq__card legend {
    margin-bottom: 28px;
    font-size: 34px;
    text-align: center;
  }

  .bbb-tmq .bbb-tmq__card legend > span,
  .bbb-tmq .bbb-tmq__answers b {
    text-align: center;
  }
}

/* Local mockup: align the Trope Quiz experience with Fictional Boyfriend. */
.bbb-tmq__intro,
.bbb-tmq__quiz {
  width: min(100%, 880px);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.bbb-tmq__intro {
  min-height: 0;
  padding: 4px 24px 32px;
}

.bbb-tmq__intro::before,
.bbb-tmq__intro::after {
  content: none;
}

.bbb-tmq__intro h2,
.bbb-tmq__quiz-head h1 {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  color: #f6f6f6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.bbb-tmq__eyebrow,
.bbb-tmq__quiz-head > p,
.bbb-tmq__annotation,
.bbb-tmq__card legend > span {
  color: #ff8ac7;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.bbb-tmq__lede,
.bbb-tmq__quiz-head > span {
  max-width: 560px;
  margin-inline: auto;
  color: rgba(246, 246, 246, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-style: normal;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

.bbb-tmq__promise li {
  border-color: rgba(255, 138, 199, 0.3);
  border-radius: 999px;
  background: rgba(255, 138, 199, 0.08);
  color: #f6d9e6;
  font-family: Georgia, serif;
  text-transform: lowercase;
}

.bbb-tmq__start,
.bbb-tmq__next {
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid #ff8ac7;
  border-radius: 4px;
  background: #ff8ac7;
  color: #0b0b0b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  box-shadow: none;
}

.bbb-tmq__start:hover,
.bbb-tmq__next:hover {
  background: #ffb0d1;
  border-color: #ffb0d1;
  transform: translateY(-1px);
}

.bbb-tmq__progress {
  margin: 0 0 8px;
  padding: 0 24px;
}

.bbb-tmq__progress button,
.bbb-tmq__progress p {
  color: rgba(246, 246, 246, 0.72);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.bbb-tmq__progress div > span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bbb-tmq__progress i {
  border-radius: inherit;
  background: #ff8ac7;
}

.bbb-tmq__card {
  min-height: 0;
  padding: clamp(24px, 4vw, 38px) 24px;
  border: 0;
  background: transparent;
  color: #f6f6f6;
  box-shadow: none;
  clip-path: none;
}

.bbb-tmq__card::before {
  content: none;
}

.bbb-tmq__card legend {
  margin: 0 0 44px;
  color: #f6f6f6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.bbb-tmq__card legend > span {
  margin-bottom: 10px;
}

.bbb-tmq__answers {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bbb-tmq__answers span {
  width: 100%;
  min-height: 0;
  padding: 20px 26px;
  border: 1px solid rgba(255, 138, 199, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #f6f6f6;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bbb-tmq__answers span::before {
  content: none;
}

.bbb-tmq__answers img {
  width: 34px;
  height: 34px;
  margin-right: 14px;
  object-fit: contain;
}

.bbb-tmq__answers input:hover + span {
  border-color: rgba(255, 138, 199, 0.38);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.bbb-tmq__answers input:checked + span {
  border-color: #ff8ac7;
  background: #ff8ac7;
  color: #0b0b0b;
  box-shadow: 0 0 0 5px rgba(255, 138, 199, 0.24), 0 16px 34px rgba(255, 138, 199, 0.22);
  transform: translateY(-2px) scale(1.015);
}

@media (max-width: 640px) {
  .bbb-tmq__intro {
    padding: 0 14px 22px;
  }

  .bbb-tmq__intro h2,
  .bbb-tmq__quiz-head h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .bbb-tmq__lede,
  .bbb-tmq__quiz-head > span {
    font-size: 14px;
  }

  .bbb-tmq__progress {
    padding: 0 14px;
  }

  .bbb-tmq__card {
    min-height: 0;
    padding: 22px 14px;
  }

  .bbb-tmq__card legend {
    margin-bottom: 28px;
    font-size: 34px;
  }

  .bbb-tmq__answers span {
    padding: 18px 20px;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
  }
}

.bbb-tmq__result-nav a {
  gap: 7px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(246, 246, 246, 0.82) !important;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none !important;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Use the active Fictional Boyfriend control appearance, overriding Trope defaults. */
.bbb-tmq__result-nav.bbb-livequiz--funnel-mockup .bbb-livequiz__back {
  opacity: 0.62;
}

.bbb-tmq__result-nav .bbb-livequiz__again {
  border-color: rgba(246, 246, 246, 0.3);
  background: transparent;
  color: #f6f6f6;
}

.bbb-tmq__result-nav .bbb-livequiz__again:hover,
.bbb-tmq__result-nav .bbb-livequiz__again:focus-visible {
  border-color: #ff8ac7;
  background: #ff8ac7;
  color: #0b0b0b;
}

.bbb-tmq__result-nav button {
  appearance: none;
  border: 1px solid rgba(255, 138, 199, 0.42);
  border-radius: 4px;
  background: rgba(255, 138, 199, 0.12);
  color: #f6d9e6;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bbb-tmq__result-nav a:hover,
.bbb-tmq__result-nav a:focus-visible {
  color: #ff8ac7 !important;
  transform: translateX(-2px);
}

.bbb-tmq__result-nav button:hover,
.bbb-tmq__result-nav button:focus-visible {
  border-color: #ff8ac7;
  background: #ff8ac7;
  color: #0b0b0b;
  transform: translateY(-2px);
}

.bbb-livequiz__afterResult--simple [data-tmq-more-quizzes] {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.bbb-livequiz__afterResult--simple [data-tmq-more-quizzes]:hover,
.bbb-livequiz__afterResult--simple [data-tmq-more-quizzes]:focus-visible {
  color: #ffb0d1;
}

@media (max-width: 749px) {
  .bbb-tmq__result-nav {
    padding: 0 14px;
    margin-bottom: 24px;
  }

  .bbb-tmq__result-nav a,
  .bbb-tmq__result-nav button,
  .bbb-livequiz__afterResult--simple [data-tmq-more-quizzes] {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 1.2em;
    line-height: 1.1;
    text-align: center;
    text-wrap: balance;
  }
}
