/* ============================================
   SURPRISE GIFT BOX
   ============================================ */

.surprise-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(155, 109, 215, 0.18), transparent 60%);
}

.surprise-box {
  width: 200px;
  height: 200px;
  position: relative;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.surprise-box:hover {
  transform: scale(1.05);
}

.box-body {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(145deg, var(--purple-mid), var(--purple-dark));
  border-radius: 12px;
  border: 2px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.box-ribbon-v {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 100%;
  background: linear-gradient(to right, var(--gold-accent), #ffec80, var(--gold-accent));
}

.box-ribbon-h {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, var(--gold-accent), #ffec80, var(--gold-accent));
}

.box-lid {
  position: absolute;
  top: 0;
  width: 110%;
  left: -5%;
  height: 50px;
  background: linear-gradient(145deg, var(--purple-mid), #7e50c0);
  border-radius: 8px;
  border: 2px solid var(--border-glow);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.box-lid .box-ribbon-bow {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
}

.surprise-box.opened .box-lid {
  transform: translateY(-80px) rotate(-30deg);
  opacity: 0;
}

.box-message {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 1s ease 0.5s;
  white-space: nowrap;
}

.surprise-box.opened .box-message {
  opacity: 1;
  bottom: 200px;
}

.box-message .surprise-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold-accent);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  animation: surpriseFloat 3s ease-in-out infinite;
}

.surprise-instruction {
  font-family: 'Quicksand', sans-serif;
  color: var(--purple-light);
  font-size: 0.9rem;
  letter-spacing: 2px;
  animation: fadeInOut 2s ease infinite;
}
