body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffccd5, #ff758f);
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}


.hint {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.6;
}

.container {
  width: 90%;
  max-width: 700px;
  color: white;
}

.timeline {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
  margin-bottom: 50px;
}

#path {
  position: absolute;
  height: 6px;
  width: 0%;
  background: white;
  border-radius: 5px;
  transition: width 1s ease;
}

#milestones {
  position: absolute;
  width: 100%;
  height: 100%;
}

.milestone {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.milestone.active {
  opacity: 1;
}

.milestone.future {
  background: #ffd6e0;
}

#memory {
  text-align: center;
  background: rgba(255, 240, 245, 0.95);
  color: #a4133c;
  padding: 30px;
  border-radius: 25px;
  width: 90%;
  max-width: 500px;
  opacity: 0;
  transition: opacity 0.8s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


#label {
  margin-bottom: 10px;
}

#memoryImage {
  width: 100%;
  max-width: 350px;
  max-height: 60vh;
  object-fit: contain;
  margin-top: 20px;
  border-radius: 20px;
  transition: opacity 0.6s ease;
}

#memoryImage:hover {
  transform: scale(1.03);
}

#memory, #path, #milestones {
  display: none;
}

#finalScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: linear-gradient(135deg, #c9184a, #ff4d6d);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;

  opacity: 0;
  visibility: hidden;

  transition: opacity 1.5s ease;

  z-index: 9999;
}

#finalScreen.show {
  opacity: 1;
  visibility: visible;
}

@keyframes pulseLove {

  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }

}

#finalScreen h1 {
  font-size: 4rem;
  animation: pulseLove 5s infinite ease-in-out;
  text-shadow:
    0 0 10px rgba(255,255,255,0.7),
    0 0 20px rgba(255,255,255,0.5),
    0 0 40px rgba(255,255,255,0.3);
}

#finalScreen p {
  font-size: 1.5rem;
  margin-top: 20px;
  opacity: 0.9;
}

#pinScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffccd5, #ff758f);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  text-align: center;
  color: white;
}

#pinScreen input {
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  margin-top: 15px;
  text-align: center;
}

#pinScreen button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  background: #c9184a;
  color: white;
  cursor: pointer;
}