/* 小牛容器 */
#puppet {
  position: fixed;
  pointer-events: none;
  left: 8px;
  bottom: 0px; /* 会根据 footer 自动调整（JS 会修改） */
  width: 96px;
  height: 128px;
  pointer-events: auto;
  z-index: 9999;
  user-select: none;
  -webkit-user-drag: none;
  transition: bottom 200ms linear;
}

/* 小牛 sprite 图片 */
#puppet img#sprite {
  width: 100%;
  height: 100%;
  display: block;
}

/* 悬浮文本框 */
#bubble {
  position: fixed;
  max-width: 300px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(249, 214, 120, 0.85); /* 背景 */
  color: #727374; /* 字体颜色 */
  font-size: 14px;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  will-change: left, top, opacity, transform;
}
#bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 方向 */
#puppet.facing-right {
  transform-origin: center;
  transform: scaleX(-1);
}

/* 为本地加载保留的回退，不知道为什么浏览器不让读 */
#load-ui {
  position: fixed;
  right: 8px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 10000;
  display: none;
}
#load-ui button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
