*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --pink-bg: #fce4ec;
  --pink-deep: #f8bbd0;
  --pink-btn: #f06292;
  --pink-btn-hover: #ec407a;
  --lavender: #ce93d8;
  --lavender-hover: #ba68c8;
  --text: #880e4f;
  --text-muted: #ad1457;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(136, 14, 79, 0.12);
  --radius: 24px;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100svh;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgb(255, 240, 245) 0%,
    rgb(252, 228, 236) 50%,
    rgb(248, 240, 255) 100%
  );
}

.floating-deco {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  font-size: 1.2rem;
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}

.float-anim-alt {
  animation: floatAlt 4s ease-in-out infinite;
}

.float-anim-slow {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

@keyframes floatAlt {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  flex: 1;
}

.screen {
  display: none;
  width: 100%;
  max-width: 520px;
}

.screen--active {
  display: block;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  text-align: center;
}

.card--wide {
  max-width: 520px;
  margin: 0 auto;
}

.card__photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card__emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.card__title {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.card__title--sm {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
}

.card__title-flower--above {
  display: none;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

@media (max-width: 767px) {
  .screen[data-screen="ask"] .card__title-flower--above {
    display: block;
  }

  .screen[data-screen="ask"] .card__title-flower--inline {
    display: none;
  }
}

@media (min-width: 768px) {
  .screen,
  .card--wide {
    max-width: 600px;
  }

  .screen[data-screen="ask"] .card__title {
    font-size: 1.625rem;
    white-space: nowrap;
  }
}

.card__subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.card__footnote {
  margin: 16px 0 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.actions--proposal {
  padding-top: 4px;
}

.no-btn-spacer {
  width: 110px;
  height: 44px;
  visibility: hidden;
  flex-shrink: 0;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 500;
  border-radius: 999px;
}

.btn--yes {
  color: #fff;
  background: rgb(244, 143, 177);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: rgba(244, 143, 177, 0.4) 0 4px 14px;
}

.btn--yes:hover {
  background: rgb(233, 30, 140);
  transform: scale(1.05);
}

.btn--no {
  color: #fff;
  background: rgb(206, 147, 216);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  user-select: none;
  transition: none;
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 50;
  box-shadow: rgba(206, 147, 216, 0.4) 0 4px 14px;
}

.btn--wide {
  width: 100%;
  max-width: 280px;
  padding: 0.7rem 1.8rem;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--pink-deep);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--pink-bg);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
}

@media (min-width: 420px) {
  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.activity {
  cursor: pointer;
  display: block;
}

.activity input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.activity__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 2px solid var(--pink-deep);
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}

.activity__icon {
  font-size: 1.5rem;
}

.activity__name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.activity input:checked + .activity__inner {
  border-color: var(--pink-btn);
  background: #fce4ec;
  transform: scale(1.02);
}

.activity:hover .activity__inner {
  border-color: var(--pink-btn);
}

.form-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--pink-deep);
  color: var(--text);
  background: #fff;
}

.date-input {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--pink-deep);
  background: #fff;
}

.date-input:focus-within {
  border-color: var(--pink-btn);
}

.date-input input[type="date"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  line-height: 40px;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.date-input input[type="date"]:focus {
  border-color: transparent;
}

.date-input input[type="date"]::-webkit-datetime-edit,
.date-input input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.date-input input[type="date"]::-webkit-datetime-edit-text,
.date-input input[type="date"]::-webkit-datetime-edit-month-field,
.date-input input[type="date"]::-webkit-datetime-edit-day-field,
.date-input input[type="date"]::-webkit-datetime-edit-year-field {
  min-width: 0;
  padding: 0;
  line-height: 40px;
}

.date-input input[type="date"]::-webkit-date-and-time-value {
  display: block;
  text-align: left;
  min-width: 0;
  width: 100%;
  min-height: 40px;
  line-height: 40px;
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--pink-btn);
}

.hint--error {
  color: #c62828;
  font-size: 0.9rem;
  margin: -8px 0 12px;
}

.footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: center;
  padding: 0 16px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.85;
}
