/* Pop Win Modal Styling */
.pop-win {
  position: absolute;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, backdrop-filter 0.2s ease, visibility 0.2s ease;
  transform: scale(0.95);
}

.pop-win.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  background: rgba(0, 30, 15, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pop-win-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 15px 35px;
}

.pop-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.pop-logo {
  width: 45%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 2px;
}

.pop-title2 {
  width: 80%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  animation: popTitlePulse 1.8s ease-in-out infinite alternate;
}

.pop-title3 {
  width: 60%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

.pop-gift-box {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pop-celebrate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  max-width: 400px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  animation: celebratePulse 3s ease-in-out infinite alternate;
}

.pop-prize-img {
  position: absolute;
  top:25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  z-index: 2;
  animation: prizeFloat 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
/* 
.pop-cap {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  max-width: 230px;
  height: auto;
  z-index: 3;
  animation: floatCap 2.2s ease-in-out infinite alternate;
} */

.pop-gift {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  max-width: 270px;
  height: auto;
  z-index: 1;
}

.pop-action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.pop-accept-btn {
  width: 70%;
  max-width: 230px;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: pointer;
  animation: popBtnPulse 1.5s infinite ease-in-out;
  transition: filter 0.2s ease;
}

.pop-accept-btn:hover {
  filter: brightness(1.15);
}

.pop-accept-btn:active {
  transform: scale(0.95);
  animation: none;
}

@keyframes prizeFloat {
  0% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  100% { transform: translate(-50%, -55%) scale(1.06) rotate(2deg); }
}

@keyframes popBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes floatCap {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-14px); }
}

@keyframes popTitlePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes celebratePulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
