.treasure-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  animation: pop-in-item 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.treasure-container:not(.protected):hover {
  transform: scale(1.1);
}

.treasure-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
  transition: filter 0.3s, transform 0.3s;
  z-index: 2;
}

.treasure-glow-back {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0) 50%);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.treasure-container.being-pulled {
  animation: treasure-shake 0.15s linear infinite alternate;
}

.treasure-container.being-pulled .treasure-image {
  filter: drop-shadow(0 0 15px var(--color-gold-glow)) brightness(1.2);
}

.treasure-container.protected {
  cursor: default;
  z-index: 6;
  transition: bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes treasure-shake {
  0% {
    transform: translate(-0.2cqw, -0.2cqh) rotate(-1deg);
  }

  100% {
    transform: translate(0.2cqw, 0.2cqh) rotate(1deg);
  }
}

@keyframes shield-scale-idle {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.tutorial-shield-container {
  width: 24cqw;
  height: 24cqh;
  bottom: 2cqh;
  z-index: 7;
  margin-left: -11cqw;
  animation: shield-scale-idle 3s ease-in-out infinite;
}

#mooshak-ground-shield {
  pointer-events: none;
  cursor: default;
}

@keyframes shield-hover-pulse {
  0% { transform: scale(1.1); }
  50% { transform: scale(1.22); }
  100% { transform: scale(1.1); }
}

#boy-ground-shield:hover {
  animation: shield-hover-pulse 1.2s ease-in-out infinite;
}

#treasure-chest {
  left: 35cqw;
  bottom: 5cqh;
  width: 22cqw;
  height: 22cqh;
  z-index: 10;
}

#treasure-chest .shield-bubble {
  left: 5cqw;
  bottom: 0.5cqw;
  width: 12cqw;
  height: 19cqh;
  z-index: 11;
}

#treasure-pot {
  left: 50cqw;
  bottom: 8cqh;
  width: 17cqw;
  height: 17cqh;
  z-index: 10;
}

#treasure-pot .shield-bubble {
  left: 4cqw;
  bottom: 0.4cqw;
  width: 9cqw;
  height: 16cqh;
  z-index: 11;
}


#treasure-crown {
  left: 14cqw;
  bottom: 5cqh;
  width: 15cqw;
  height: 15cqh;
  z-index: 10;
}

#treasure-crown .shield-bubble {
  width: 9cqw;
  height: 16cqh;
  left: 2.7cqw;
  bottom: -1cqw;
  z-index: 11;
}


#treasure-flower-vase {
  left: 10cqw;
  bottom: 5cqh;
  width: 16cqw;
  height: 16cqh;
  z-index: 10;
}

#treasure-flower-vase .shield-bubble {
  width: 10cqw;
  height: 16cqh;
  left: 3cqw;
  bottom: 0cqw;
  z-index: 11;
}

#treasure-incense-burner {
  left: 80cqw;
  bottom: 10cqh;
  width: 14cqw;
  height: 14cqh;
  z-index: 10;
}

#treasure-incense-burner .shield-bubble {
  width: 9cqw;
  height: 14cqh;
  left: 2.5cqw;
  bottom: 0cqw;
  z-index: 11;
}

#treasure-idol {
  left: 23cqw;
  bottom: 7cqh;
  z-index: 10;
  width: 20cqw;
  height: 20cqh;
}

#treasure-idol .shield-bubble {
  width: 8cqw;
  height: 19cqh;
  z-index: 11;
  left: 6cqw;
  bottom: 0.2cqw;
}

#treasure-lamp {
  left: 62cqw;
  bottom: 10cqh;
  z-index: 10;
  width: 12cqw;
  height: 12cqh;
}

#treasure-lamp .shield-bubble {
  z-index: 11;
  width: 7cqw;
  height: 12cqh;
  left: 2.8cqw;
  bottom: 0.1cqw;
}

#treasure-vase {
  left: 70cqw;
  bottom: 10cqh;
  width: 15cqw;
  height: 15cqh;
  z-index: 10;
}

#treasure-vase .shield-bubble {
  width: 8cqw;
  height: 15cqh;
  z-index: 11;
  left: 3.6cqw;
  bottom: 0.2cqw;
}

#treasure-table {
  left: 39cqw;
  bottom: 4cqh;
  width: 27cqw;
  height: 27cqh;
  z-index: 10;
}

#treasure-table .shield-bubble {
  width: 19cqw;
  height: 27cqh;
  z-index: 11;
  left: 4cqw;
  bottom: 0cqw;
}