/* ============================================================
   QuizWhiz Club — Custom Styles
   Bubbly toy-store aesthetic layered on top of Tailwind utilities.
   ============================================================ */

* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overscroll-behavior: none;
}

body {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------------- Mascot presentation ---------------- */

.owl-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.owl-glow-base {
  position: absolute;
  inset: -20%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 236, 179, 0.9),
    rgba(186, 230, 253, 0.45) 60%,
    transparent 75%
  );
  filter: blur(2px);
  animation: glow-breathe 3.6s ease-in-out infinite;
}

.owl-img {
  position: relative;
  z-index: 1;
  cursor: pointer;
  animation: owl-float 3.4s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.owl-img:active {
  transform: scale(0.92) rotate(-3deg);
}

@keyframes owl-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.tap-hint-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
}

/* Positioned to sit over the slate of holding-blackboard.png (measured from source art). */
.chalk-overlay {
  position: absolute;
  left: 33%;
  top: 56%;
  width: 37%;
  height: 23%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.chalk-overlay.hidden {
  opacity: 0;
}

.chalk-number {
  color: #fefce8;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ---------------- Mascot speech bubble ---------------- */

.mascot-bubble {
  transform-origin: bottom left;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}

.mascot-bubble-pop {
  animation: bubble-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bubble-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------------- Chunky, squashable buttons ---------------- */

.chunky-btn {
  border-radius: 24px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15), 0 10px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-width: 68px;
  min-height: 68px;
}

.chunky-btn:active {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------------- Floating Home button ---------------- */

.home-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  box-shadow: 0 6px 0 #0369a1, 0 10px 18px rgba(14, 165, 233, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.home-fab svg {
  width: 26px;
  height: 26px;
}

.home-fab:hover {
  transform: translateY(-2px);
}

.home-fab:active {
  transform: translateY(4px) scale(0.96);
  box-shadow: 0 2px 0 #0369a1, 0 4px 8px rgba(14, 165, 233, 0.3);
}

@media (min-width: 640px) {
  .home-fab {
    left: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
  }

  .home-fab svg {
    width: 30px;
    height: 30px;
  }
}

.tab-btn {
  min-height: 68px;
  border-radius: 20px;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease, color 0.15s ease;
}

.tab-btn:active {
  transform: translateY(3px) scale(0.97);
}

.tab-active {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9) !important;
  color: #fff !important;
  box-shadow: 0 4px 0 #0369a1, 0 8px 16px rgba(14, 165, 233, 0.35);
}

/* ---------------- Shared sub-nav pill (Alphabets, Colors & Shapes, ...) ---------------- */

.subnav-pill {
  padding: 0.6rem 1.25rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f766e;
  min-height: 44px;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.subnav-pill:active {
  transform: translateY(2px) scale(0.97);
}

.subnav-pill-active {
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  color: #fff;
  box-shadow: 0 3px 0 #0f766e, 0 6px 10px rgba(13, 148, 136, 0.35);
}

/* ---------------- Shared flashcard (Alphabets Phonics, Colors & Shapes) ---------------- */

.flash-card {
  position: relative;
  min-width: 68px;
  min-height: 140px;
  padding: 1.5rem 0.5rem 0.85rem;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
  border: 3px solid var(--accent-border, #99f6e4);
  box-shadow: 0 6px 0 var(--accent-shadow, #14b8a6), 0 10px 18px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.flash-card:active {
  transform: translateY(4px) scale(0.96);
  box-shadow: 0 2px 0 var(--accent-shadow, #14b8a6), 0 4px 8px rgba(15, 23, 42, 0.1);
}

.flash-card-emoji {
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  line-height: 1;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.12));
  animation: fruit-idle-bob 3s ease-in-out infinite;
}

.flash-card-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-text, #0f766e);
  text-align: center;
  line-height: 1.15;
}

.flash-card-active {
  animation: card-pop 0.4s ease;
}

@keyframes card-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------------- Shared simple tile (Alphabets Letters, Numbers) ---------------- */
/* Color set via a theme class on the grid container (CSS custom properties
   inherit down to each .simple-tile), so the same markup/JS shape works for
   any accent color. */

.simple-tile {
  aspect-ratio: 1;
  min-width: 68px;
  min-height: 68px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--tile-bg-light, #ccfbf1), var(--tile-bg-dark, #99f6e4));
  border: 3px solid var(--tile-border, #2dd4bf);
  color: var(--tile-text, #0f766e);
  font-weight: 800;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 0 var(--tile-shadow, #14b8a6), 0 8px 14px rgba(20, 184, 166, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.simple-tile:active {
  transform: translateY(4px) scale(0.94);
  box-shadow: 0 1px 0 var(--tile-shadow, #14b8a6), 0 2px 6px rgba(20, 184, 166, 0.2);
}

.simple-tile-active {
  animation: card-pop 0.4s ease;
  background: linear-gradient(180deg, #fef08a, #fde047);
  border-color: #eab308;
  color: #854d0e;
}

.tile-theme-teal {
  --tile-bg-light: #ccfbf1;
  --tile-bg-dark: #99f6e4;
  --tile-border: #2dd4bf;
  --tile-shadow: #14b8a6;
  --tile-text: #0f766e;
}

.tile-theme-cyan {
  --tile-bg-light: #cffafe;
  --tile-bg-dark: #a5f3fc;
  --tile-border: #22d3ee;
  --tile-shadow: #0891b2;
  --tile-text: #155e75;
}

.tile-theme-violet {
  --tile-bg-light: #ede9fe;
  --tile-bg-dark: #ddd6fe;
  --tile-border: #a78bfa;
  --tile-shadow: #7c3aed;
  --tile-text: #5b21b6;
}

.tile-theme-sky {
  --tile-bg-light: #e0f2fe;
  --tile-bg-dark: #bae6fd;
  --tile-border: #38bdf8;
  --tile-shadow: #0284c7;
  --tile-text: #075985;
}

.tile-theme-purple {
  --tile-bg-light: #f3e8ff;
  --tile-bg-dark: #e9d5ff;
  --tile-border: #c084fc;
  --tile-shadow: #9333ea;
  --tile-text: #6b21a8;
}

.tile-theme-rose {
  --tile-bg-light: #ffe4e6;
  --tile-bg-dark: #fecdd3;
  --tile-border: #fb7185;
  --tile-shadow: #e11d48;
  --tile-text: #9f1239;
}

.tile-theme-amber {
  --tile-bg-light: #fef3c7;
  --tile-bg-dark: #fde68a;
  --tile-border: #fbbf24;
  --tile-shadow: #d97706;
  --tile-text: #92400e;
}

/* ---------------- Home screen: welcome + activity picker tiles ---------------- */

.home-owl-bounce {
  animation: fruit-idle-bob 3s ease-in-out infinite;
}

.home-tile {
  position: relative;
  min-height: 108px;
  padding: 1rem 0.75rem;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--tile-bg-light, #ccfbf1), var(--tile-bg-dark, #99f6e4));
  border: 3px solid var(--tile-border, #2dd4bf);
  color: var(--tile-text, #0f766e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 6px 0 var(--tile-shadow, #14b8a6), 0 10px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.home-tile:hover {
  transform: translateY(-3px);
  animation: home-tile-wiggle 0.5s ease;
}

.home-tile:active {
  transform: translateY(4px) scale(0.96);
  box-shadow: 0 2px 0 var(--tile-shadow, #14b8a6), 0 4px 8px rgba(15, 23, 42, 0.12);
}

.home-tile-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.home-tile-label {
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.15;
}

.home-tile-star {
  position: absolute;
  top: -10px;
  left: -8px;
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.home-tile-new {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(180deg, #fb923c, #ea580c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #c2410c, 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(8deg);
}

@keyframes home-tile-wiggle {

  0%,
  100% {
    transform: translateY(-3px) rotate(0deg);
  }

  25% {
    transform: translateY(-3px) rotate(-4deg);
  }

  75% {
    transform: translateY(-3px) rotate(4deg);
  }
}

/* ---------------- Shared flashcard corner badge (Alphabets Phonics, Numbers Counting) ---------------- */

.flash-card-badge {
  position: absolute;
  top: -14px;
  right: -12px;
  width: 46px;
  height: 46px;
  min-width: 0;
  min-height: 0;
  border-radius: 14px;
  background: var(--accent-bg, #2dd4bf);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 3px 0 var(--accent-shadow, #0f766e), 0 6px 10px rgba(0, 0, 0, 0.22);
}

/* Row of small repeated icons inside a Numbers "Counting" card. */

.flash-card-icon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  max-width: 100%;
  font-size: clamp(1rem, 4.5vw, 1.35rem);
  line-height: 1;
}

/* ---------------- Colors & Shapes ---------------- */

.color-swatch {
  width: clamp(3.5rem, 12vw, 5rem);
  height: clamp(3.5rem, 12vw, 5rem);
  border-radius: 50%;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.18), inset 0 -6px 10px rgba(0, 0, 0, 0.12),
    inset 0 4px 8px rgba(255, 255, 255, 0.35);
  animation: fruit-idle-bob 3s ease-in-out infinite;
}

.shape-glyph {
  width: clamp(3.5rem, 12vw, 5rem);
  height: clamp(3.5rem, 12vw, 5rem);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.18));
  animation: fruit-idle-bob 3s ease-in-out infinite;
}

.shape-circle {
  border-radius: 50%;
}

.shape-square {
  border-radius: 16px;
}

.shape-rectangle {
  width: clamp(4.5rem, 15vw, 6rem);
  height: clamp(2.6rem, 9vw, 3.6rem);
  border-radius: 12px;
}

.shape-triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-star {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

.shape-diamond {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-oval {
  width: clamp(4.5rem, 15vw, 6rem);
  height: clamp(3rem, 10vw, 4rem);
  border-radius: 50%;
}

.shape-pentagon {
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

/* ---------------- Count & Munch ---------------- */

.plate-zone {
  background: repeating-linear-gradient(
    45deg,
    #fef3c7,
    #fef3c7 12px,
    #fde68a 12px,
    #fde68a 24px
  );
  border: 4px dashed #7dd3fc;
  border-radius: 28px;
}

.carrot-btn {
  font-size: 2.5rem;
  line-height: 1;
  min-width: 68px;
  min-height: 68px;
  padding: 0.75rem;
  background: rgba(253, 230, 138, 0.55);
  border: 3px solid #fbbf24;
  border-radius: 22px;
  box-shadow: 0 5px 0 #f59e0b, 0 8px 14px rgba(245, 158, 11, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.3s ease;
}

.carrot-btn:active,
.carrot-btn.carrot-squash {
  transform: translateY(4px) scale(0.85);
  box-shadow: 0 1px 0 #f59e0b, 0 2px 6px rgba(245, 158, 11, 0.2);
}

/* ---------------- Sound Pop phonics ---------------- */

.phonics-bubble {
  width: 5.5rem;
  height: 5.5rem;
  min-width: 68px;
  min-height: 68px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  color: #6d28d9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.95),
    rgba(216, 180, 254, 0.55) 60%,
    rgba(168, 85, 247, 0.35) 100%
  );
  border: 3px solid rgba(196, 181, 253, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.8);
  animation: bubble-drift 3.6s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.phonics-bubble:active {
  transform: scale(0.92);
}

@keyframes bubble-drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-10px) translateX(4px);
  }
  66% {
    transform: translateY(6px) translateX(-4px);
  }
}

.bubble-correct {
  background: radial-gradient(circle at 30% 30%, #fff, #6ee7b7 70%) !important;
  border-color: #34d399 !important;
  transform: scale(1.15) !important;
  animation: none !important;
}

.wobble {
  animation: wobble 0.5s ease-in-out;
}

@keyframes wobble {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-10px) rotate(-4deg);
  }
  40%,
  80% {
    transform: translateX(10px) rotate(4deg);
  }
}

.star-particle {
  position: fixed;
  color: #fbbf24;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 50;
  animation: star-burst 0.7s ease-out forwards;
}

@keyframes star-burst {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(1.2);
    opacity: 0;
  }
}

/* ---------------- Sing-Along toy TV ---------------- */

.toy-tv-frame {
  background: linear-gradient(145deg, #fcd34d, #f59e0b);
  border-radius: 32px;
  padding: 14px;
  box-shadow: 0 12px 0 #b45309, 0 20px 28px rgba(180, 83, 9, 0.3);
}

.toy-tv-screen {
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid #1e293b;
}

.yt-play-button {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  min-width: 68px;
  min-height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5252, #e02424 70%);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 6px 0 #a11616, 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.group:active .yt-play-button {
  transform: translateY(4px) scale(0.93);
  box-shadow: 0 2px 0 #a11616, 0 4px 10px rgba(0, 0, 0, 0.3);
}

.yt-watch-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------------- On-page video modal ---------------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(3px);
  animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.video-modal-box {
  position: relative;
  width: 100%;
  max-width: 42rem;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background: #fbbf24;
  color: #78350f;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #b45309, 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

.video-modal-close:active {
  transform: translateY(3px) scale(0.94);
}

.tv-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #94a3b8 70%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ---------------- Social follow buttons ---------------- */

.social-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 6px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn:hover {
  filter: brightness(1.08);
}

.social-btn:active {
  transform: translateY(3px) scale(0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.social-btn-facebook {
  background: #1877f2;
}

.social-btn-instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-btn-tiktok {
  background: #010101;
}

.social-btn-youtube {
  background: #ff0000;
}

/* ---------------- Guess the Fruit ---------------- */

.fruit-showcase-card {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #fff1f2, #ffe4e6 60%, #fecdd3 100%);
  border: 4px solid #fda4af;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.6), 0 10px 22px rgba(244, 63, 94, 0.15);
}

.fruit-emoji {
  font-size: 6.5rem;
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.15));
  animation: fruit-idle-bob 2.8s ease-in-out infinite;
}

@keyframes fruit-idle-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.timer-track {
  width: 100%;
  height: 16px;
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 999px;
  overflow: hidden;
}

.timer-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #fbbf24, #fb7185);
  transform-origin: left center;
  transform: scaleX(1);
}

.mic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 68px;
  min-height: 68px;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 0 #9f1239, 0 10px 18px rgba(225, 29, 72, 0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.mic-btn:active {
  transform: translateY(4px) scale(0.97);
  box-shadow: 0 2px 0 #9f1239, 0 4px 8px rgba(225, 29, 72, 0.25);
}

.mic-btn:disabled {
  opacity: 0.7;
}

.mic-icon {
  font-size: 1.4rem;
  display: inline-block;
}

.mic-btn.is-listening {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  box-shadow: 0 6px 0 #92400e, 0 10px 18px rgba(217, 119, 6, 0.3);
}

.mic-btn.is-listening .mic-icon {
  animation: mic-pulse 0.9s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}

.fruit-chip {
  min-width: 68px;
  min-height: 68px;
  padding: 0.6rem 1.1rem;
  border-radius: 22px;
  background: #fff;
  border: 3px solid #fecdd3;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  box-shadow: 0 5px 0 #fda4af, 0 8px 14px rgba(244, 63, 94, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.fruit-chip:active {
  transform: translateY(4px) scale(0.94);
  box-shadow: 0 1px 0 #fda4af, 0 2px 6px rgba(244, 63, 94, 0.18);
}

.fruit-chip-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9f1239;
  text-transform: capitalize;
}

.owl-happy-dance {
  animation: owl-dance 0.5s ease-in-out 4;
}

@keyframes owl-dance {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-8deg) translateY(-4px);
  }
  75% {
    transform: rotate(8deg) translateY(-4px);
  }
}

/* ---------------- Visitor counter ---------------- */

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #a78bfa 55%, #60a5fa);
  box-shadow: 0 5px 0 rgba(76, 29, 149, 0.35), 0 10px 18px rgba(76, 29, 149, 0.3);
}

.visitor-counter-icon {
  font-size: 1.5rem;
  animation: bounce-slow 2.4s infinite ease-in-out;
}

.visitor-counter-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.2rem;
  text-align: center;
}

.odometer {
  display: flex;
  gap: 3px;
}

.odometer-digit {
  width: 1.4rem;
  height: 1.8rem;
  border-radius: 6px;
  background: #1e293b;
  color: #4ade80;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.75);
}

/* ---------------- Shared motion ---------------- */

.animate-bounce-slow {
  animation: bounce-slow 2.4s infinite ease-in-out;
}

@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
