body {
  margin: 0;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, #ffe7fa 0%, #ffeaea 50%, #fccde2 100%);
}
html, body {
  height: 100%;
}

body.loaded main { display: block; }
main { display: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/static/pattern-light-roses.svg");
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

.parent {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff0f5;
}


.heart {
  width: 100px;
  height: 100px;
  background: linear-gradient(to bottom, #E53038, #bb2025);
  border-radius: 50%;
  animation: beat 1.5s ease infinite;
  text-align: center;
  line-height: 100px;
  box-shadow: 0 7px 20px rgba(0,0,0,0.2);
  color: white;
  font-size: 22pt;
}

.main-love-block {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 240, 251, 0.94);
  border-radius: 1.6rem;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 174, 200, 0.5);
}

.pulse-heart {
  animation: pulse 1.6s infinite ease-in-out;
  transform-origin: center;
}

.quote-block {
  font-size: 1.2rem;
  color: #d63384;
  margin: 20px 0;
  min-height: 5.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.glow-button {
  padding: 12px 24px;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(to right, #f472b6, #fb7185);
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 0 16px #fecdd3cc;
  cursor: pointer;
  margin-bottom: 2rem;
}

.love-letter {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff0fbcc;
  border-radius: 1.6rem;
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  color: #c026d3;
  line-height: 1.8;
}

.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #2b2b2b;
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  z-index: 999;
}

.toast.hidden { display: none; }

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Fotorama */
.fotorama-container {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.fotorama {
  display: inline-block;
  max-width: 100%;
}

.fotorama__thumb {
  border: 2px solid #fb7185;
}

/* Адаптация */
@media (max-width: 768px) {
  .main-love-block {
    padding: 1.5rem;
  }

  .love-letter {
    font-size: 1.4rem;
  }

  .fotorama-container {
    padding: 10px;
  }
}
.floating-word {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #e11d48;
  animation: float-up 3s ease-out forwards;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
@keyframes float-up {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150px);
    opacity: 0;
  }
}

