body {
  font-family: Inter, sans-serif;
}
.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

/* Pet display */
#pet-stage {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pet SVG bounce */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes sleeping {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(2px) rotate(2deg);
  }
}
.pet-bounce {
  animation: bounce 0.6s ease-in-out 3;
}
.pet-shake {
  animation: shake 0.4s ease-in-out 3;
}
.pet-pop {
  animation: pop 0.35s ease-out;
}
.pet-sleeping {
  animation: sleeping 2s ease-in-out infinite;
}

/* Stat bars */
.stat-bar-track {
  background: #f3f4f6;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  flex: 1;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* Action buttons */
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  min-width: 0;
}
.action-btn:hover {
  background: #f0fdf4;
  border-color: #6ee7b7;
}
.action-btn:active {
  transform: scale(0.95);
}
.action-btn.used {
  background: #f9fafb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}
.action-btn .icon {
  font-size: 22px;
  line-height: 1;
}

/* Pet type selector */
.pet-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  transition: all 0.15s;
  flex: 1;
}
.pet-pick:hover {
  border-color: #6ee7b7;
  background: #f0fdf4;
}
.pet-pick.active {
  border-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}
.pet-pick .big {
  font-size: 32px;
}

/* Speech bubble */
#pet-bubble {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 5px 12px;
  font-size: 12px;
  color: #065f46;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 5;
}
#pet-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #d1fae5;
  border-bottom: none;
}
#pet-bubble.show {
  opacity: 1;
}

/* Z particles for sleep */
#zzz {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
#zzz.show {
  opacity: 1;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 99;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* level badge */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* Adopt screen */
#adopt-screen {
  display: block;
}
#game-screen {
  display: none;
}
