:root {
  --rose-50: #f8e6ea;
  --rose-100: #f2d6dd;
  --rose-500: #d85d7f;
  --rose-600: #c44d70;
  --ink-900: #2b2024;
  --ink-700: #5e4b52;
  --card: #fff7f8;
  --card-border: #e9d7dd;
  --shadow: 0 24px 56px -34px rgba(73, 34, 45, 0.32);
  --font-sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --text-title: clamp(2rem, 4.5vw, 2.5rem);
  --text-body: 1.06rem;
  --text-button: 1.16rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink-900);
  font-family: var(--font-sans);
  background:
    radial-gradient(58vw 42vw at 6% 4%, #f1b4c6 0%, transparent 70%),
    radial-gradient(44vw 38vw at 94% 8%, #e8b09f 0%, transparent 72%),
    radial-gradient(62vw 50vw at 50% 108%, #edc8d4 0%, transparent 68%),
    linear-gradient(165deg, #f0d7d1 0%, #efd8d4 45%, #ead0da 100%);
}

.shell {
  width: min(560px, 100%);
  position: relative;
}

.panel {
  width: 100%;
  background: linear-gradient(180deg, #fff9fa 0%, var(--card) 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  animation: fade-up 240ms ease-out;
}

.intro-panel,
.final-panel {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.intro-title,
#question {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-title);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.final-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.card {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#question {
  margin-bottom: 24px;
  min-height: 56px;
}

#main-image {
  width: 286px;
  height: 286px;
  max-width: calc(100vw - 128px);
  max-height: calc(100vw - 128px);
  object-fit: contain;
  background: #f6eef1;
  border: 1px solid #e6d8de;
  border-radius: 16px;
  box-shadow: 0 14px 28px -20px rgba(60, 30, 40, 0.45);
}

#main-image {
  margin-bottom: 16px;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

#main-image.is-loading {
  opacity: 0.45;
  transform: scale(0.98);
}

#caption {
  margin: 0 0 24px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-700);
  font-size: var(--text-body);
  font-weight: 600;
}

#hint {
  margin: -16px 0 20px;
  min-height: 22px;
  color: var(--ink-700);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
}

.button-row {
  width: 100%;
  margin-top: auto;
  min-height: 56px;
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
}

.btn {
  min-width: 136px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--text-button);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid #e293ad;
  outline-offset: 2px;
}

.btn.yes {
  color: #fff;
  background: var(--rose-500);
  box-shadow: 0 10px 18px -12px rgba(216, 93, 127, 0.9);
}

.btn.yes:hover {
  background: var(--rose-600);
}

.btn.no {
  color: var(--ink-700);
  background: #f2e9ed;
  border-color: #dfd0d7;
  position: relative;
}

.btn.no:hover {
  background: #ecdee4;
}

@media (max-width: 600px) {
  .panel {
    border-radius: 20px;
    padding: 26px 18px;
  }

  .card {
    min-height: 560px;
  }

  #question {
    min-height: 72px;
    margin-bottom: 18px;
    font-size: clamp(1.85rem, 7.4vw, 2.25rem);
  }

  #main-image {
    width: min(260px, calc(100vw - 112px));
    height: min(260px, calc(100vw - 112px));
  }

  #main-image {
    margin-bottom: 14px;
  }

  #caption {
    margin-bottom: 20px;
  }

  .btn {
    min-width: 122px;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  #main-image {
    transition: none;
  }
}

.hidden {
  display: none !important;
}
