/* Say Yes — original blush theme + heart mascot */

.sayyes-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Sora", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 92, 106, 0.18), transparent 50%),
    linear-gradient(180deg, #fff5f7 0%, #ffe8ee 45%, #f7e6ea 100%);
  color: #7a3040;
}

.sayyes-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.sayyes-screen {
  width: min(520px, 100%);
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.sayyes-screen.is-on {
  display: flex;
}

.sayyes-hero {
  width: min(52vw, 210px);
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(140, 50, 70, 0.15));
}

.sayyes-hero-sm {
  width: min(42vw, 160px);
}

.sayyes-question,
.sayyes-success {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  color: #8a3044;
  line-height: 1.35;
}

.sayyes-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
  min-height: 5.5rem;
  position: relative;
}

.sayyes-actions.is-forced {
  min-height: 12rem;
}

.sayyes-btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 0.95rem 1.55rem;
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 20px rgba(80, 30, 40, 0.12);
}

.sayyes-btn-no {
  background: linear-gradient(180deg, #e07a88, #c45c6a);
  transform-origin: center center;
  position: relative;
  z-index: 50;
}

.sayyes-btn-yes {
  background: linear-gradient(180deg, #5ecf9a, #2faf78);
  transform-origin: center center;
  z-index: 10;
}

.sayyes-btn-no.is-tiny {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  opacity: 0.85;
  transform: scale(0.55) !important;
}

.sayyes-app.is-yes-fullscreen .sayyes-screen[data-screen="ask"] {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
}

.sayyes-actions.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 40;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.sayyes-btn-yes.is-fullscreen {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  font-size: clamp(3rem, 14vw, 7rem);
  letter-spacing: 0.08em;
  box-shadow: none;
  transform: none !important;
  animation: sayyes-pulse 1.2s ease-in-out infinite;
}

@keyframes sayyes-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.sayyes-gifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.sayyes-gift {
  appearance: none;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(140, 50, 70, 0.1);
  padding: 1rem 0.5rem;
  cursor: pointer;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  color: #8a3044;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.sayyes-gift:hover:not(:disabled) {
  transform: translateY(-4px);
}

.sayyes-gift:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sayyes-gift-box {
  width: 64px;
  height: 64px;
  background: url('/assets/img/sayyes/gift.png') center / contain no-repeat;
  font-size: 0;
}

.sayyes-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(40, 16, 24, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sayyes-modal[hidden] {
  display: none !important;
}

.sayyes-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff9fa;
  border-radius: 20px;
  padding: 1.25rem 1.15rem 1.4rem;
  box-shadow: 0 24px 50px rgba(40, 16, 24, 0.28);
  color: #4a2a32;
}

.sayyes-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(196, 92, 106, 0.12);
  color: #8a3044;
  font-size: 1.25rem;
  cursor: pointer;
}

.sayyes-gallery {
  display: grid;
  gap: 0.65rem;
}

.sayyes-gallery img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.sayyes-music {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.sayyes-music iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sayyes-modal-letter {
  background: rgba(40, 16, 24, 0.62);
  padding: 0;
  align-items: stretch;
}

.sayyes-modal-letter .letter-bloom {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff5f7, #f7e6ea);
}

.sayyes-letter-card {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 252, 248, 0.95);
  border-radius: 18px;
  position: relative;
}

.sayyes-letter-body {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.65;
  color: #3a2428;
}

.sayyes-demo-bar {
  position: fixed;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  left: 0.65rem;
  z-index: 30;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(80, 30, 40, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.sayyes-cta {
  margin-top: 0.75rem;
  display: inline-flex;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: #c45c6a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 520px) {
  .sayyes-gifts {
    grid-template-columns: 1fr;
  }

  .sayyes-app {
    padding: 1rem 0.75rem calc(1rem + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
    padding-top: max(3.2rem, calc(env(safe-area-inset-top, 0px) + 2.6rem));
  }

  .sayyes-btn {
    min-height: 48px;
    padding: 0.85rem 1.2rem;
  }

  .sayyes-actions.is-forced .sayyes-btn-yes {
    max-width: 92vw;
  }

  .sayyes-modal-card {
    max-height: 88dvh;
    padding: 1.1rem 0.9rem 1.2rem;
  }

  .sayyes-modal-letter .letter-bloom {
    min-height: 100dvh;
  }

  .letter-bloom-envelope {
    width: min(70vw, 220px);
  }
}

@media (max-height: 680px) and (max-width: 900px) {
  .sayyes-hero {
    width: min(36vw, 140px);
  }
  .sayyes-question {
    font-size: 1.2rem;
  }
}
