* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 20%, #ffe3ee 0%, #ffb6d0 45%, #ff8fb8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.heart {
  position: absolute;
  font-size: 22px;
  animation: float-up 1.6s ease-out forwards;
  opacity: 0.9;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-160px) scale(1.15) rotate(20deg);
    opacity: 0;
  }
}

/* ---- stage & characters ---- */
.stage {
  position: relative;
  width: min(92vw, 720px);
  height: min(48vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.character {
  position: absolute;
  top: 50%;
  left: 50%;
  height: min(46vh, 300px);
  width: auto;
  max-width: 44vw;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(120, 30, 70, 0.3));
  transition: transform 1.1s cubic-bezier(0.34, 1.2, 0.4, 1);
  animation: idle-bob 2.4s ease-in-out infinite;
  transform: translate(calc(-50% + var(--x, 0px)), -50%);
  z-index: 2;
}

.dudu {
  --x: -80vw;
}

.bubu {
  --x: 80vw;
  animation-delay: 0.3s;
}

@keyframes idle-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.stage.hugging .character {
  animation: none;
}

/* ---- button ---- */
.hug-btn {
  position: relative;
  z-index: 3;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6fa5, #ff3d81);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 61, 129, 0.45);
  transition: transform 0.2s ease, opacity 0.4s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.hug-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(255, 61, 129, 0.55);
}

.hug-btn:active {
  transform: translateY(0) scale(0.98);
}

.stage.hugging .hug-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.caption {
  margin: 0;
  font-size: 15px;
  color: #7a2c4a;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 3;
  text-align: center;
}
