.smart-search-mascot .mascot-shell {
  fill: var(--dock-mascot-tile);
  fill: color-mix(in srgb, var(--dock-mascot-tile) 83%, var(--dock-mascot));
}
.mascot-blink, .mascot-smile {
  transform-box: fill-box;
  transform-origin: center;
}
.mascot-thinking-dots { display: none; }
[role="search"]:has(textarea:focus) .mascot-antenna,
[data-thinking] .mascot-antenna { fill: currentColor; }
[data-thinking] .mascot-smile { display: none; }
[data-thinking] .mascot-thinking-dots { display: inline; }
[data-thinking] .mascot-eyes { transform: translate(.6px, -.8px); }
[data-replied] .mascot-smile { transform: scale(1.16, 1.25); }

@media (prefers-reduced-motion: no-preference) {
  /* The outer eye group still looks up when the hand points at results. */
  .smart-search-mascot .mascot-blink { animation: luna-blink 6.8s ease-in-out infinite; }
  .smart-search-mascot .mascot-eyes { transition: transform .2s ease-out; }
  [role="search"]:not([data-thinking], [data-pointing], [data-replied]):has(textarea:focus) .mascot-eyes {
    transform: translate(1.1px, .5px);
  }
  [role="search"]:not([data-thinking], [data-pointing], [data-replied]):has(textarea:focus:not(:placeholder-shown)) .mascot-face {
    transform: rotate(4deg);
  }
  .smart-search-mascot .mascot-face { transition: transform .25s ease-out; }
  [data-thinking] .mascot-thinking-dots circle { animation: luna-thinking 1.65s ease-in-out infinite; }
  [data-thinking] .mascot-thinking-dots circle:nth-child(2) { animation-delay: .18s; }
  [data-thinking] .mascot-thinking-dots circle:nth-child(3) { animation-delay: .36s; }
  [data-replied] .mascot-face { animation: luna-nod .6s ease-in-out; }
}
@keyframes luna-blink {
  0%, 67%, 70%, 100% { transform: scaleY(1); }
  68.5% { transform: scaleY(.14); }
}
@keyframes luna-thinking {
  0%, 18%, 100% { opacity: 1; }
  52%, 72% { opacity: .32; }
}
@keyframes luna-nod {
  0%, 100% { transform: none; }
  40% { transform: translateY(1.7px) rotate(-5deg); }
}
