* {
  box-sizing: border-box;
}
:root {
  --pink: #e995b2;
  --deep: #a95779;
  --ink: #634657;
  --muted: #987d8c;
  --line: #f1dce5;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, #ffe5ef 0, transparent 30%),
    radial-gradient(circle at 90% 85%, #f9dce8 0, transparent 30%), #fff8fb;
  color: var(--ink);
  font-family: Cairo, sans-serif;
  overflow-x: hidden;
}
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}
.glow-a {
  width: 260px;
  height: 260px;
  right: -130px;
  top: 8%;
  background: #f7d6e3;
  opacity: 0.6;
}
.glow-b {
  width: 300px;
  height: 300px;
  left: -150px;
  bottom: -150px;
  background: #fbe4ec;
}
.shell {
  width: min(900px, calc(100% - 30px));
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f2dfe7;
}
.brand {
  font:
    700 21px "Playfair Display",
    serif;
  color: var(--deep);
  text-decoration: none;
}
.topbar > span,
.english-note {
  font:
    italic 11px "Playfair Display",
    serif;
  color: #b28c9d;
}
.progress-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
  font-size: 11px;
  color: #a77d8e;
}
.track {
  height: 4px;
  flex: 1;
  background: #f1dce5;
  border-radius: 9px;
  overflow: hidden;
}
.track div {
  height: 100%;
  width: 14%;
  background: linear-gradient(90deg, #e9a2bb, #c86d91);
  transition: width 0.4s;
}
.chapter {
  display: none;
  min-height: 570px;
  padding: 30px 0 40px;
  flex-direction: column;
  justify-content: center;
  animation: appear 0.5s ease;
}
.chapter.active {
  display: flex;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.panel {
  background: #ffffffc9;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 55px #bd81951a;
}
.hero {
  text-align: center;
  padding: 48px 22px;
}
.tiny-label,
.heading small,
.final-panel > small {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #b16b87;
}
.hero-heart {
  font-size: 68px;
  color: #e9a2bb;
  margin: 4px;
}
.to {
  color: #b16b87;
  font-size: 13px;
  margin: 0;
}
h1,
h2 {
  font:
    600 clamp(30px, 5vw, 45px)/1.5 "Playfair Display",
    Cairo,
    serif;
  color: #684557;
  margin: 8px 0;
}
h1 em,
h2 em {
  font-style: normal;
  color: #d17d9e;
}
.description,
.heading p {
  max-width: 500px;
  margin: 12px auto 24px;
  color: #927785;
  font-size: 13px;
  line-height: 2;
}
.main-btn {
  border: 0;
  border-radius: 30px;
  padding: 12px 23px;
  background: linear-gradient(135deg, #e9a0b9, #cf7899);
  color: #fff;
  font: 700 12px Cairo;
  cursor: pointer;
  box-shadow: 0 8px 20px #e9bfd0;
  transition: 0.2s;
}
.main-btn:hover {
  transform: translateY(-2px);
}
.main-btn span {
  margin-right: 8px;
}
.hint {
  display: block;
  margin-top: 22px;
  color: #ae8b9a;
  font-size: 10px;
}
.english-note {
  text-align: center;
  margin-top: 15px;
}
.heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
}
.heading h2 {
  font-size: clamp(28px, 5vw, 38px);
}
.date-panel {
  max-width: 430px;
  width: 100%;
  margin: auto;
  padding: 25px;
  text-align: center;
}
.flower {
  font-size: 30px;
  color: #d783a2;
}
.date-panel label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 8px;
}
.date-panel input {
  width: 100%;
  padding: 11px;
  border: 1px solid #efd5e0;
  border-radius: 12px;
  background: #fffafd;
  font: 13px Cairo;
  color: var(--ink);
}
.date-panel > small {
  display: block;
  font-size: 10px;
  color: #ad96a1;
  margin: 8px;
}
.counter {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  padding: 12px;
  background: #fff4f8;
  border-radius: 14px;
}
.counter strong {
  font:
    36px "Playfair Display",
    serif;
  color: #ce7898;
}
.counter span {
  font-size: 11px;
  color: #9d7e8d;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.memory {
  text-align: center;
  padding: 23px 14px;
}
.memory b {
  font-size: 30px;
  color: #d887a5;
}
.memory h3 {
  font-size: 14px;
  color: #85536a;
}
.memory p {
  font-size: 11px;
  line-height: 1.9;
  color: #9a8290;
  margin-bottom: 0;
}
.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.back-btn {
  border: 1px solid #eacbd8;
  border-radius: 30px;
  background: #fff9fc;
  color: #a66c84;
  padding: 10px 20px;
  font: 600 11px Cairo;
  cursor: pointer;
}
.letter {
  max-width: 570px;
  width: 100%;
  margin: auto;
  padding: 25px 30px;
  position: relative;
}
.letter:before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: #e8a6bd;
  border-radius: 0 24px 24px 0;
}
.letter-head {
  display: flex;
  justify-content: space-between;
  color: #c47b97;
  font-size: 12px;
}
.letter p {
  min-height: 165px;
  white-space: pre-line;
  line-height: 2.2;
  font-size: 13px;
  color: #775565;
}
.sign {
  border-top: 1px solid #f5e5eb;
  padding-top: 13px;
  color: #c27694;
  font-size: 11px;
}
.upload {
  max-width: 430px;
  width: 100%;
  margin: 0 auto 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1.5px dashed #e6b7ca;
  background: #fff9fc;
  cursor: pointer;
  color: #a96b85;
  box-shadow: none;
}
.upload b {
  font-size: 27px;
}
.upload strong {
  font-size: 12px;
}
.upload small {
  font-size: 10px;
  color: #b49aa6;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.photo-placeholder {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, #fff, #fcecf2);
  border: 1px solid #f2dce5;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #d28aa5;
}
.photo-placeholder span {
  font-size: 35px;
}
.photo-placeholder small {
  font-size: 10px;
  color: #a98595;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 15px;
  border: 5px solid white;
  box-shadow: 0 8px 22px #d7b4c355;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.video-placeholder {
  min-height: 150px;
  border: 1px dashed #e8bfd0;
  background: linear-gradient(140deg, #fff, #fff0f6);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bd7b96;
  gap: 5px;
}
.video-placeholder span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f8dce7;
  font-size: 19px;
}
.video-placeholder strong {
  font-size: 12px;
}
.video-placeholder small {
  font-size: 10px;
  color: #aa929e;
}
.video-grid video {
  width: 100%;
  max-height: 260px;
  border-radius: 16px;
  background: #24151d;
  box-shadow: 0 8px 22px #d7b4c355;
}
.final-panel {
  text-align: center;
  max-width: 640px;
  width: 100%;
  margin: auto;
  padding: 42px 25px;
}
.gift {
  font-size: 52px;
}
.final-panel h2 {
  font-size: clamp(31px, 6vw, 44px);
}
.final-panel > p {
  max-width: 440px;
  margin: 12px auto 22px;
  color: #947b87;
  line-height: 2;
  font-size: 13px;
}
#surprise {
  margin-top: 22px;
  padding: 20px;
  background: #fff3f7;
  border: 1px solid #f3d6e2;
  border-radius: 18px;
  animation: appear 0.5s;
}
.big-heart {
  font-size: 42px;
  color: #df86a5;
}
#surprise h3 {
  color: #a95e7c;
}
#surprise p {
  font-size: 12px;
  line-height: 2;
  color: #896d7b;
}
#surprise b {
  font-size: 11px;
  color: #c27694;
}
.restart {
  display: block;
  margin: 18px auto 0;
}
footer {
  text-align: center;
  padding: 18px 0 24px;
  color: #b094a1;
  font-size: 10px;
}
.spark {
  position: fixed;
  z-index: -1;
  color: #e9a4bc;
  opacity: 0.45;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-24px) rotate(15deg);
    opacity: 0.7;
  }
}
@media (max-width: 620px) {
  .shell {
    width: calc(100% - 24px);
  }
  .topbar {
    height: 62px;
  }
  .chapter {
    min-height: 560px;
    padding: 22px 0;
  }
  .hero {
    padding: 40px 16px;
  }
  .memory-grid {
    grid-template-columns: 1fr;
  }
  .memory {
    padding: 15px;
  }
  .memory p {
    margin: 0;
  }
  .letter {
    padding: 22px;
  }
  .photo-grid {
    gap: 7px;
  }
  .controls {
    gap: 7px;
  }
  .main-btn,
  .back-btn {
    padding: 10px 15px;
    font-size: 10px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}
