* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #ffd6e8 0%, #ffafcc 50%, #ff8fab 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
  overflow-x: hidden;
  color: #6a1b3d;
  position: relative;
}

/* Soft floating hearts drifting in the background */
.bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-hearts span {
  position: absolute;
  bottom: -40px;
  font-size: 1.4rem;
  opacity: 0.55;
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Header with romantic date ideas */
.ideas-header {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 8px auto 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(106, 27, 61, 0.12);
}

.ideas-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #8a2748;
}

.ideas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.idea-chip {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #c9184a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(201, 24, 74, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.idea-chip:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 18px rgba(201, 24, 74, 0.3);
}

.idea-chip.active {
  background: #ff4d6d;
  color: #fff;
}

.picked-idea {
  min-height: 1.4em;
  font-size: 1.1rem;
  font-weight: 700;
  color: #c9184a;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
}

.container {
  position: relative;
  z-index: 1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 28px;
}

.gif {
  width: 240px;
  max-width: 80vw;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(106, 27, 61, 0.25);
  background: rgba(255, 255, 255, 0.4);
  animation: bob 3s ease-in-out infinite;
}

.emoji-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  width: 240px;
  height: 240px;
  max-width: 80vw;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  max-width: 700px;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

.buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 14px 36px;
  font-size: 1.15rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yes-btn {
  background: #ff4d6d;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.45);
}

.yes-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 26px rgba(255, 77, 109, 0.55);
}

.no-btn {
  background: #fff;
  color: #ff4d6d;
  box-shadow: 0 8px 20px rgba(106, 27, 61, 0.15);
}

.no-btn:hover {
  transform: translateY(-2px);
}

.evidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin-top: 6px;
  animation: fadeUp 0.6s ease both;
}

.evidence-msg {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: #8a2748;
}

.evidence-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  opacity: 0.8;
}

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

/* Respect users who prefer less motion (also saves battery). */
@media (prefers-reduced-motion: reduce) {
  .gif, .bg-hearts span, .heart, .evidence { animation: none !important; }
}

.footer {
  padding: 18px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #8a2748;
  opacity: 0.85;
}

/* Confetti hearts on success */
.heart {
  position: fixed;
  top: -40px;
  font-size: 1.6rem;
  animation: fall linear forwards;
  pointer-events: none;
  z-index: 50;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}
