:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe3ec;
  --pink-200: #ffc2d9;
  --pink-400: #ff8fb3;
  --pink-500: #ff6b9c;
  --pink-600: #ec407a;
  --pink-700: #d63384;
  --white: #ffffff;
  --text: #4a2c3a;
  --text-light: #8a6572;
  --radius: 26px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #ffeef5 0%, #ffe0ec 45%, #ffd3e6 100%);
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--pink-700);
  letter-spacing: 0.2px;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }

.bg-blobs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
}
.b1 { width: 280px; height: 280px; background: var(--pink-200); top: -60px; left: -80px; animation: float 9s ease-in-out infinite; }
.b2 { width: 220px; height: 220px; background: var(--pink-400); bottom: -60px; right: -60px; animation: float 11s ease-in-out infinite reverse; }
.b3 { width: 180px; height: 180px; background: #ffffff; top: 45%; left: 60%; animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(25px) translateX(15px); }
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(214, 51, 132, 0.18);
  border-radius: var(--radius);
  padding: 36px 26px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.glass.wide { max-width: 440px; }

.icon { font-size: 2.6rem; margin-bottom: 4px; }
.icon.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.subtitle {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
  margin: 6px 0 20px;
}
.subtitle.small { font-size: 0.9rem; margin-bottom: 14px; }
.subtitle.big { font-size: 1.15rem; color: var(--pink-600); font-weight: 600; }

.btn-row { display: flex; gap: 12px; justify-content: center; }

.btn {
  border: none;
  border-radius: 50px;
  padding: 13px 26px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white;
  box-shadow: 0 6px 18px rgba(236, 64, 122, 0.35);
}
.btn-outline {
  background: rgba(255,255,255,0.5);
  color: var(--pink-600);
  border: 1.5px solid var(--pink-300, var(--pink-200));
}
.btn.full { width: 100%; margin-top: 6px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.option-btn {
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 13px 16px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.option-btn:hover { background: rgba(255, 200, 220, 0.55); }
.option-btn:active { transform: scale(0.97); }

.error-msg {
  display: none;
  color: var(--pink-700);
  background: rgba(255, 200, 220, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
  margin: 10px 0 0;
}
.error-msg.show { display: block; animation: shake 0.35s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.gift-box {
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 18px;
  padding: 10px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gift-box:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(214,51,132,0.22); }
.gift-box:active { transform: scale(0.95); }
.gift-box span { font-size: 0.78rem; font-weight: 600; color: var(--text-light); }
.box-svg { width: 100%; height: auto; }

input[type="url"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.6);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  margin-top: 4px;
}
input[type="url"]:focus { border-color: var(--pink-500); }
input[type="url"]::placeholder { color: var(--text-light); }

@media (min-width: 480px) {
  .glass { padding: 44px 34px; }
}
