.avatar-main {
  padding-top: 24px;
}

.robot-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.robot-face {
  width: min(320px, 60vw);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(15, 110, 92, 0.18));
}

#pupil-left,
#pupil-right {
  transition: transform 0.02s linear;
}

#eyelid-left,
#eyelid-right {
  transition: none;
}

#eyelid-left.blink,
#eyelid-right.blink {
  animation: eyelid-blink 0.16s ease;
}

@keyframes eyelid-blink {
  0% { height: 0; }
  45% { height: 76px; }
  100% { height: 0; }
}

.face-group.nod {
  animation: face-nod 0.7s ease-in-out;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

@keyframes face-nod {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(5px) rotate(-2deg); }
  62% { transform: translateY(-3px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

#mouth {
  transition: none;
}

.camera-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.camera-video-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
