:root {
  --text: #fff8f4;
  --soft: rgba(255, 248, 244, 0.82);
  --rose: #ff5f8f;
  --rose-deep: #d91f5b;
  --ink: #2c1620;
  --shadow: rgba(20, 8, 14, 0.36);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 222, 232, 0.22), transparent 38%),
    linear-gradient(135deg, #23141b, #0d1018 54%, #251018);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
}

button {
  font: inherit;
}

.app,
.screen {
  min-height: 100vh;
  width: 100%;
}

.screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 560ms ease,
    transform 560ms ease;
  transform: scale(1.02);
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.background {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 58px);
}

.background::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0), rgba(11, 8, 14, 0.26) 72%),
    rgba(12, 9, 14, 0.16);
}

.background-photo {
  position: relative;
  z-index: 0;
  display: block;
  width: auto;
  max-width: min(92vw, 980px);
  height: auto;
  max-height: min(82vh, 720px);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  object-fit: contain;
  opacity: 0.82;
}

.background-photo-final {
  max-height: min(88vh, 820px);
  opacity: 0.76;
}

.content,
.final-message,
.modal-card {
  text-align: center;
}

.content {
  display: grid;
  justify-items: center;
  gap: clamp(28px, 7vh, 64px);
  width: min(620px, 100%);
  text-shadow: 0 16px 36px var(--shadow);
}

h1 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(78px, 18vw, 172px);
  font-weight: 400;
  line-height: 0.86;
}

.question-panel {
  display: grid;
  gap: 20px;
  justify-items: center;
  width: min(330px, 100%);
}

.question-panel p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
}

.button-stack {
  display: grid;
  gap: 14px;
  width: min(240px, 100%);
}

.button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
  box-shadow: 0 18px 36px rgba(42, 10, 22, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

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

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

.button-yes {
  min-height: 64px;
  background: linear-gradient(135deg, #fff3f7, var(--rose) 42%, var(--rose-deep));
  color: #fff;
  font-size: 23px;
}

.button-no {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 18px;
}

.button-no.is-locked {
  opacity: 0.34;
  cursor: not-allowed;
  filter: grayscale(1);
  transform: none;
}

.button-return {
  width: min(260px, 100%);
  margin-top: 10px;
  background: var(--rose-deep);
  color: #fff;
}

.modal {
  width: min(420px, calc(100vw - 36px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.modal::backdrop {
  background: rgba(20, 8, 14, 0.58);
}

.modal-card {
  display: grid;
  gap: 12px;
  padding: 34px 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 250, 250, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal h2 {
  margin: 0;
  font-size: clamp(28px, 7vw, 38px);
}

.modal p {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.final-message {
  display: grid;
  gap: 10px;
  max-width: 760px;
  padding: 0 8px;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}

.final-message p {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(44px, 10vw, 92px);
  line-height: 1.02;
}

.final-message p + p {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(22px, 5vw, 38px);
  font-weight: 800;
}

.final-message span {
  display: block;
  color: #ff6f9d;
  font-size: clamp(52px, 12vw, 92px);
  line-height: 1;
  text-shadow: 0 14px 26px rgba(127, 0, 45, 0.34);
}

@media (max-width: 560px) {
  .screen {
    padding: 22px;
  }

  .background {
    padding: 16px;
  }

  .background-photo {
    max-width: calc(100vw - 28px);
    max-height: 78vh;
    border-radius: 18px;
  }

  .button-stack {
    width: min(230px, 100%);
  }
}
