:root {
  --accent: #ad2458;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #3d2430;
  background: #fff5f7;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.card { width: 100%; max-width: 560px; }

.picture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

h1 {
  margin: 28px 0 24px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(56px, auto));
  gap: 16px;
}

.answer {
  width: 100%;
  min-height: 56px;
  padding: 14px 8px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.answer:focus-visible { outline: 3px solid #3d2430; outline-offset: 4px; }
.answer:active { filter: brightness(0.93); }
.yes { grid-column: 1; grid-row: 1; background: var(--accent); color: white; }

.love-message {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.no { grid-column: 2; grid-row: 1; background: #eedde3; color: #3d2430; }

/* Two original column widths, without the gap; double height and label size. */
.final-answer .yes {
  grid-column: 1 / -1;
  width: calc(100% - 16px);
  min-height: 112px;
  padding: 28px 16px;
  font-size: 2.5rem;
}
noscript { display: block; margin-top: 16px; }

@media (min-width: 768px) {
  .card { max-width: 680px; }
}
