* { box-sizing: border-box; }

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

body {
  background: var(--bg, #ffe9f0);
  color: var(--fg, #333);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
  overflow-x: hidden;
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.screen {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.screen.hidden { display: none; }

.pic {
  max-width: 100%;
  height: var(--img-h, 200px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

h1 {
  margin: 20px 0 24px;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.3;
  word-break: break-word;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 60px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
  max-width: 90vw;
  transition: transform .12s ease, filter .12s ease;
}

.btn:hover { filter: brightness(.88); }
.btn:active { transform: scale(.97); }

.btn-yes { background: var(--yes, #22c55e); }
.btn-no  { background: var(--no,  #ef4444); }

.heart {
  position: fixed;
  top: -40px;
  font-size: 22px;
  pointer-events: none;
  user-select: none;
  animation: fall linear forwards;
  z-index: 9999;
}

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

@media (prefers-reduced-motion: reduce) {
  .heart { display: none; }
}
