:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --pink: #ec4d91;
  --deep-pink: #c92f72;
  --ink: #57384a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #f8dce9;
  background-image:
    linear-gradient(135deg, rgb(255 230 242 / 62%), rgb(255 245 224 / 48%)),
    url("img/anh_nen.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  transition: background-image 350ms ease;
}

body.reject-state {
  background-image:
    linear-gradient(135deg, rgb(255 229 239 / 52%), rgb(255 242 224 / 42%)),
    url("img/reject.jpg");
}

body.success-state {
  background-image:
    linear-gradient(135deg, rgb(255 229 239 / 48%), rgb(255 242 224 / 38%)),
    url("img/success.jpg");
}

button {
  font: inherit;
}

.page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 32px 18px;
}

.card {
  position: relative;
  width: min(100%, 540px);
  padding: 42px 36px 32px;
  overflow: hidden;
  text-align: center;
  background: rgb(255 250 253 / 48%);
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 30px;
  box-shadow: 0 22px 65px rgb(113 46 79 / 24%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.kitty {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgb(201 47 114 / 18%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--deep-pink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1 {
  margin: 0;
  color: #a72f67;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.15;
}

.subtitle {
  margin: 14px 0 26px;
  color: #76596a;
  font-size: 1rem;
}

.actions {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.button {
  min-height: 48px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button:focus-visible {
  outline: 3px solid #6c3b8e;
  outline-offset: 4px;
}

.button-yes,
.button-again {
  color: #fff;
  background: linear-gradient(135deg, #f568a4, #d83c83);
  box-shadow: 0 7px 16px rgb(216 60 131 / 26%);
}

.button-yes:hover,
.button-again:hover {
  background: linear-gradient(135deg, #f14b94, #c92f72);
  box-shadow: 0 9px 20px rgb(216 60 131 / 34%);
  transform: translateY(-2px);
}

.button-no {
  color: #6d5262;
  background: #f4e8ef;
  box-shadow: inset 0 0 0 1px #ead8e2;
}

.button-no:hover {
  background: #f8dbe9;
}

.hint {
  min-height: 1.25em;
  margin: 16px 0 0;
  color: #987386;
  font-size: 0.85rem;
}

.button-again {
  margin-top: 25px;
}

.footer-note {
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-shadow: 0 1px 5px rgb(91 38 66 / 50%);
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .page {
    gap: 14px;
    padding: 20px 14px;
  }

  .card {
    padding: 34px 20px 27px;
    border-radius: 24px;
  }

  .kitty {
    width: 78px;
    height: 78px;
    margin-bottom: 16px;
  }

  .actions {
    gap: 10px;
  }

  .button {
    min-height: 46px;
    padding: 0 17px;
    font-size: 0.93rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
