/* Gift selection popup */
#giftPanel {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,0.95);
  border-radius: 16px;
  padding: 1rem;
  width: 90%;
  max-width: 400px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#giftPanel.open {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1rem;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gift-item {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.gift-item:hover {
  background: #3a3a3a;
  transform: scale(1.05);
}

.gift-item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.gift-item .cost {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Gift overlay animation */
.gift-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  animation: giftFloat 2s ease forwards;
}

@keyframes giftFloat {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
