* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #ffd6e8, #ffeef5);
  overflow: hidden;
}

#app {
  max-width: 420px;
  margin: auto;
}

.step {
  display: none;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.step.active {
  display: block;
}

h1 {
  font-size: 1.8rem;
  margin-top: 40px;
}

.final {
  font-size: 2.2rem;
}

p {
  font-size: 1.1rem;
}

.image-placeholder img {
  width: 80%;
  margin: 20px 0;
  border-radius: 20px;

  /* Soft edge effect */
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 6px rgba(255, 255, 255, 0.35) inset;

  /* Slight smoothing */
  filter: saturate(1.05) contrast(1.02) blur(0.3px);
}

.image-placeholder {
  position: relative;
  display: inline-block;
}

.image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;

  box-shadow:
    0 0 30px rgba(255, 92, 138, 0.25);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

button {
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
}

.primary {
  background: #ff5c8a;
  color: white;
}

.secondary {
  background: #eee;
}

.big {
  font-size: 1.2rem;
}

#musicToggle {
  position: fixed;
  top: 12px;
  right: 12px;
}

#countdown {
  position: fixed;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
}

/* NO button effects */
.no {
  transition: transform 0.25s ease, background-color 0.25s ease;
}

/* Shake animation */
.no.shake {
  animation: shake 0.3s;
}

/* Shrink state */
.no.shrinked {
  transform: scale(0.8);
  background-color: #ffd6e8;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-4px); }
  50%  { transform: translateX(4px); }
  75%  { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* Floating Hearts Background */
#hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.heart {
  position: absolute;
  bottom: -40px;
  color: #ff3b7f; /* darker pink */
  opacity: 0.8;
  animation-name: floatUp;
  animation-timing-function: linear;
}

@keyframes floatUp {
  from {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  to {
    transform: translateY(-110vh) scale(1.1);
    opacity: 0;
  }
}

/* Make sure app content stays above hearts */
#app {
  position: relative;
  z-index: 2;
}

#musicToggle,
#countdown {
  z-index: 3; /* keep above hearts */
}

#countdown {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Confetti */
.confetti {
  position: fixed;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 999;
  animation: confetti-fall ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(720deg);
    opacity: 0;
  }
}
