body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Quicksand', sans-serif;
}

/* Gentle floating motion for Bé Boo */
@keyframes booFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
.animate-boo-float {
  animation: booFloat 3.2s ease-in-out infinite;
}

/* Relaxed sway for Bé Boo chilling on Sunday */
@keyframes booChill {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}
.animate-boo-chill {
  animation: booChill 4.2s ease-in-out infinite;
}

/* Shimmer gradient for Goal Progress Bars */
@keyframes barShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.boo-progress-fill {
  background: linear-gradient(90deg, #FF9EBB 0%, #FFB7CE 35%, #A2D2FF 75%, #FF9EBB 100%);
  background-size: 200% 100%;
  animation: barShimmer 4.5s linear infinite;
}

/* 3D Flip Animation for Anki Flashcards */
.perspective-1000 {
  perspective: 1000px;
}
.preserve-3d {
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.rotate-y-180 {
  transform: rotateY(180deg);
}
.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Pop-up Celebration Animation */
@keyframes popUp {
  0% { transform: translate(-50%, 0) scale(0.85); opacity: 1; }
  100% { transform: translate(-50%, -40px) scale(1.12); opacity: 0; }
}
.animate-pop-up {
  animation: popUp 0.95s ease-out forwards;
}

/* Anki Typing Check Diff Highlights */
.anki-diff-ok {
  color: #059669;
  font-weight: 800;
}
.dark .anki-diff-ok {
  color: #34d399;
}
.anki-diff-err {
  color: #e11d48;
  background: rgba(244, 63, 94, 0.14);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 800;
  text-decoration: line-through;
}
.dark .anki-diff-err {
  color: #fb7185;
}

/* Subtle Pastel Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(162, 210, 255, 0.55); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 158, 187, 0.75); }
