/* Unified Body Map Styling */
.body-map-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.body-map-container .body-image {
  width: 65%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  margin-top: 10px;
  margin-left: 20px;
}

.body-map-container .stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.body-map-container .star {
  position: absolute;
  background-image: url("../assets/star.webp");
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  z-index: 5;
}

.body-map-container .star::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4;
}

/* Auras by type */
.body-map-container .star.physical:hover::before {
  background: radial-gradient(circle, rgba(255,215,0,0.6) 0%, rgba(255,215,0,0) 70%);
  opacity: 1;
}

.body-map-container .star.skeletal:hover::before {
  background: radial-gradient(circle, rgba(100,149,237,0.6) 0%, rgba(100,149,237,0) 70%);
  opacity: 1;
}

.body-map-container .star.skin:hover::before {
  background: radial-gradient(circle, rgba(255,99,99,0.6) 0%, rgba(255,99,99,0) 70%);
  opacity: 1;
}

.body-map-container .star.dental:hover::before {
  background: radial-gradient(circle, rgba(11, 156, 49, 0.6) 0%, rgba(11, 156, 49, 0) 70%);
  opacity: 1;
}

.body-map-container .star:hover::before {
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
}

.body-map-container .info-card {
  position: absolute;
  width: 300px;
  max-width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 5;
  margin-left: -100px;
}

.body-map-container .info-card.visible {
  opacity: 1;
}

.body-map-container .hidden {
  display: none !important;
}

/* Tooltip */
.body-map-container .tooltip {
  position: absolute;
  background: rgba(255, 255, 240, 0.95);
  color: #4b2e05;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  z-index: 10;
}

.body-map-container .tooltip.show {
  opacity: 1;
}