/* Opening portraits show the upper body; comparison mascots remain whole. */
body.quiz-lp-theme .gender img.mascot-choice {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  padding: 12px 10px 0;
}

body.quiz-lp-theme .cmp-col img.mascot-state,
body.quiz-lp-theme .ind2 .cmp-col img.mascot-state {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 448 / 557;
  object-fit: contain;
  padding: 12px 8px 0;
}

body.quiz-lp-theme .mascot-community.illus {
  position: relative;
  width: min(320px, 100%);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
}

body.quiz-lp-theme .mascot-community .community-orbit {
  position: absolute;
  inset: 7%;
  border: 1px solid #dceaf5;
  border-radius: 50%;
}

/* Os rostos orbitam o mascote; cada avatar contra-gira para ficar sempre em pé. */
body.quiz-lp-theme .mascot-community .community-ring {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation: community-orbit 48s linear infinite;
  will-change: transform;
}

@keyframes community-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body.quiz-lp-theme .mascot-community .community-avatar {
  position: absolute;
  width: 15%;
  aspect-ratio: 1 / 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eef6fc;
  box-shadow: 0 4px 12px #21486714;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

body.quiz-lp-theme .mascot-community .community-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: community-orbit 48s linear infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
  body.quiz-lp-theme .mascot-community .community-ring,
  body.quiz-lp-theme .mascot-community .community-avatar img {
    animation: none;
  }
}

body.quiz-lp-theme .community-avatar img[src$="/person-07.jpg"] {
  object-position: center 25%;
}

body.quiz-lp-theme .mascot-community .community-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.quiz-lp-theme .mascot-community .community-center img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.quiz-lp-theme .mascot-community.is-pair .community-center {
  width: 54%;
  gap: 4px;
}

body.quiz-lp-theme .mascot-community.is-pair .community-center img {
  width: 50%;
  min-width: 0;
}

body.quiz-lp-theme .brainfx .mascot-cycle-character {
  position: absolute;
  left: 9%;
  top: 22%;
  width: 45%;
  height: 55%;
  overflow: hidden;
  border-radius: 45%;
}

/* Override the absolute sizing inherited by all original brainfx layers. */
body.quiz-lp-theme .brainfx .mascot-cycle-character img {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
}

body.quiz-lp-theme .brainfx .mascot-cycle-character.is-pair {
  display: flex;
  align-items: flex-start;
}

body.quiz-lp-theme .brainfx .mascot-cycle-character.is-pair img {
  width: 50%;
  min-width: 0;
}

body.quiz-lp-theme .mascot-invite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 18px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 52%, #e7f2fb 0%, #eef6fc88 42%, transparent 80%);
}

body.quiz-lp-theme .mascot-invite img {
  display: block;
  width: auto;
  height: 300px;
  max-width: 90%;
  object-fit: contain;
}

body.quiz-lp-theme .mascot-invite.is-pair img {
  width: 45%;
  min-width: 0;
  height: 260px;
}

@media (max-width: 640px) {
  body.quiz-lp-theme .mascot-invite img {
    height: 260px;
  }

  body.quiz-lp-theme .mascot-invite.is-pair img {
    height: 210px;
  }
}
