/* =========================================================
   QUIZ CHARACTER INTERACTION v1
   Adds playful Babu + Doggy reactions without changing layout.
   ========================================================= */

.quiz-character-row{
  position:relative;
  overflow:hidden;
}

.quiz-character-row::after{
  content:"";
  position:absolute;
  right:14px;
  top:10px;
  font-size:20px;
  opacity:0;
  transform:scale(.7);
  pointer-events:none;
}

.quiz-character-row.dog-thinking::after{
  content:"💭";
  opacity:1;
  animation:quizBubbleFloat .8s ease both;
}

.quiz-character-row.dog-happy::after{
  content:"🎉 ⭐";
  opacity:1;
  animation:quizCelebrate .65s ease both;
}

.quiz-character-row.dog-try-again::after{
  content:"💛";
  opacity:1;
  animation:quizTryAgain .55s ease both;
}

.quiz-character-row.dog-happy .quiz-doggy{
  animation:quizDogHappy .65s ease both;
}

.quiz-character-row.dog-try-again .quiz-doggy{
  animation:quizDogTry .5s ease both;
}

.quiz-character-row.dog-thinking .quiz-doggy{
  animation:quizDogThink .9s ease both;
}

.quiz-character-bubble{
  transition:transform .2s ease, box-shadow .2s ease;
}

.quiz-character-row.dog-happy .quiz-character-bubble{
  transform:rotate(-1deg) scale(1.02);
  box-shadow:0 10px 24px rgba(109,93,252,.14);
}

.quiz-character-row.dog-try-again .quiz-character-bubble{
  transform:rotate(1deg);
}

.quiz-option{
  animation:quizOptionIn .35s ease both;
}

.quiz-option:nth-child(2){animation-delay:.04s}
.quiz-option:nth-child(3){animation-delay:.08s}
.quiz-option:nth-child(4){animation-delay:.12s}

@keyframes quizOptionIn{
  from{opacity:0;transform:translateY(7px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes quizDogHappy{
  0%{transform:translateY(0) rotate(0)}
  35%{transform:translateY(-8px) rotate(-3deg)}
  70%{transform:translateY(2px) rotate(3deg)}
  100%{transform:translateY(0) rotate(0)}
}

@keyframes quizDogTry{
  0%{transform:translateX(0)}
  25%{transform:translateX(-6px) rotate(-2deg)}
  50%{transform:translateX(6px) rotate(2deg)}
  75%{transform:translateX(-4px)}
  100%{transform:translateX(0)}
}

@keyframes quizDogThink{
  0%{transform:translateY(2px)}
  50%{transform:translateY(-3px)}
  100%{transform:translateY(0)}
}

@keyframes quizBubbleFloat{
  0%{opacity:0;transform:translateY(6px) scale(.7)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}

@keyframes quizCelebrate{
  0%{opacity:0;transform:translateY(8px) scale(.6)}
  45%{opacity:1;transform:translateY(-3px) scale(1.15)}
  100%{opacity:0;transform:translateY(-15px) scale(1)}
}

@keyframes quizTryAgain{
  0%{opacity:0;transform:translateX(8px) scale(.7)}
  50%{opacity:1;transform:translateX(0) scale(1.1)}
  100%{opacity:0;transform:translateX(-6px) scale(1)}
}

@media (prefers-reduced-motion: reduce){
  .quiz-option,
  .quiz-character-row::after,
  .quiz-doggy,
  .quiz-character-bubble{
    animation:none !important;
    transition:none !important;
  }
}
