/* 等级和经验系统 */
.level-badge {
  position: absolute;
  left: 50%;
  bottom: 95px;
  transform: translateX(-50%) scale(0.8);
  width: 30px;
  height: 30px;
  background-color: #ffcc00;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.level-badge.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.exp-bar-container {
  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) scale(0.8);
  width: 80px;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.exp-bar-container.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.exp-bar {
  height: 100%;
  background-color: #4caf50;
  width: 50%;
  transition: width 0.3s ease;
}

/* 互动按钮容器 */
.interaction-buttons {
  position: absolute;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%) scale(0.8);
  display: flex;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.interaction-buttons.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.interaction-buttons.hidden {
  display: none;
}

/* 互动按钮样式 */
.interaction-button {
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.interaction-button.show {
  opacity: 1;
  transform: scale(1);
}

.interaction-button:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.interaction-button:active {
  transform: scale(0.95);
}

/* 消息弹窗 */
.message-popup {
  position: absolute;
  left: 50%;
  bottom: 160px;
  transform: translateX(-50%) scale(0.8);
  background-color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.message-popup.hidden {
  display: none;
}

.message-popup.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.message-popup:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.pet-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pet {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: #ff9800;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
} 