:root {
  --ink: #5b4356;
  --accent: #b56d9c;
  --a: #f7d8e9;
  --b: #e7e1fa;
  --c: #fff8f9;
  --line: #ead9e6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Serif KR", serif;
  background:
    radial-gradient(circle at 10% 9%, var(--a), transparent 47%),
    radial-gradient(circle at 91% 38%, var(--b), transparent 49%), linear-gradient(150deg, var(--c), #fffafc);
  background-attachment: fixed;
  transition: background-color 1.5s;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(135deg, var(--a), var(--b), var(--c));
  opacity: 0.53;
  transition: background 1.4s;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bb83aa;
  outline-offset: 3px;
}
.shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0 23px 48px;
  position: relative;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0 20px;
  gap: 10px;
}
.brand {
  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 1.8px;
}
.music {
  border: 1px solid #ffffffad;
  border-radius: 30px;
  background: #ffffffa8;
  padding: 9px 12px;
  color: #855b79;
  font-size: 11px;
}
.page {
  animation: appear 0.7s ease both;
}
.hidden {
  display: none !important;
}
.eyebrow {
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 3px;
  color: #a67d9e;
  text-align: center;
}
.hero {
  text-align: center;
}
.hero h1 {
  font-size: clamp(29px, 7vw, 39px);
  line-height: 1.48;
  letter-spacing: -1.8px;
  margin: 14px 0 8px;
}
.hero h2 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  margin: 8px 0 24px;
}
.heroimg {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 46% 46% 20px 20px;
  box-shadow: 0 18px 42px #aa799337;
}
.paper {
  border: 1px solid #ffffffc7;
  background: #ffffffb8;
  box-shadow: 0 15px 45px #b98ba61c;
  backdrop-filter: blur(13px);
  border-radius: 24px;
  padding: 26px 22px;
  margin: 20px 0;
}
.poem {
  font-size: 13px;
  line-height: 2.25;
  text-align: center;
  word-break: keep-all;
}
.poem p {
  margin: 0 0 16px;
}
.poem strong {
  color: #985878;
}
.primary,
.secondary {
  display: block;
  width: 100%;
  border-radius: 50px;
  padding: 16px 18px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
}
.primary {
  background: linear-gradient(110deg, #c57da8, #a77cba);
  color: white;
  box-shadow: 0 10px 24px #ba81aa4a;
}
.secondary {
  background: #fffafce8;
  color: #8e5e83;
  border: 1px solid #e5c9da;
  margin-top: 11px;
}
.mini {
  text-align: center;
  color: #9b8092;
  font-size: 11px;
  line-height: 1.8;
}
.sectiontitle {
  text-align: center;
  font-size: 23px;
  line-height: 1.65;
  margin: 13px 0;
}
.intro2 {
  font-size: 13px;
  line-height: 2.25;
  text-align: center;
}
.intro2 strong {
  color: #a05f8a;
}
.field {
  margin: 17px 0;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 9px;
}
.tabs {
  display: flex;
  background: #f7edf3;
  border-radius: 14px;
  padding: 4px;
  gap: 5px;
}
.tabs button {
  width: 50%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 11px;
  color: #97768d;
}
.tabs button.active {
  background: white;
  box-shadow: 0 3px 11px #98738d25;
  color: #a45e88;
  font-weight: 700;
}
.dategrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid #e9d6e2;
  background: #fffcfe;
  border-radius: 12px;
  color: #62495c;
  font-size: 14px;
}
input[type="checkbox"] {
  accent-color: #a76e98;
}
.choice {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
}
.help {
  font-size: 11px;
  color: #a08496;
  line-height: 1.8;
  margin: 7px 0;
}
.error {
  color: #ad4565;
  font-size: 12px;
  min-height: 20px;
  margin: 10px 0;
}
.resulthero {
  text-align: center;
}
.resultphoto {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 42% 42% 20px 20px;
  box-shadow: 0 20px 48px #8f789e40;
}
.resulthero h1 {
  font-size: 39px;
  margin: 13px 0 4px;
}
.resulthero p {
  font-size: 13px;
  line-height: 1.9;
}
.tag {
  display: inline-block;
  background: #ffffffb8;
  border: 1px solid #ffffff;
  border-radius: 40px;
  padding: 9px 16px;
  font-size: 12px;
  margin-top: 15px;
}
.quote {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.8;
  margin: 24px 0;
}
.block {
  margin: 18px 0;
}
.block h3 {
  font-size: 17px;
  margin: 0 0 12px;
  color: #865273;
}
.block p {
  font-size: 13px;
  line-height: 2.2;
  white-space: pre-line;
  margin: 0;
}
.story {
  font-size: 14px !important;
}
.message {
  text-align: center;
  padding: 27px 14px;
  background: #ffffffa8;
  border-radius: 22px;
  font-size: 17px;
  line-height: 2;
  white-space: pre-line;
  font-weight: 600;
}
.card {
  background: linear-gradient(145deg, #fff9fbe8, #ffffffa8);
  border: 1px solid white;
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  margin: 23px 0;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
}
.card h2 {
  margin: 15px 0 4px;
}
.card p {
  font-size: 13px;
  line-height: 1.9;
}
.card small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9d7890;
}
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}
.petal {
  position: absolute;
  top: -45px;
  opacity: 0;
  animation: fall linear infinite;
  filter: drop-shadow(0 2px 3px #a78ca422);
  will-change: transform;
}
.loading {
  position: fixed;
  inset: 0;
  background: #fff9f5ed;
  display: grid;
  place-items: center;
  z-index: 8;
  text-align: center;
  font-size: 15px;
}
.loading span {
  display: block;
  font-size: 42px;
  animation: pulse 1s infinite alternate;
}
.footer {
  text-align: center;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #aa90a2;
  padding: 30px 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #62475a;
  color: white;
  padding: 12px 18px;
  border-radius: 40px;
  font-size: 12px;
  z-index: 20;
  white-space: nowrap;
}
@keyframes fall {
  0% {
    transform: translate3d(0, -35px, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.68;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(75px, 110vh, 0) rotate(280deg);
    opacity: 0;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  to {
    transform: scale(1.13);
    opacity: 0.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 360px) {
  .shell {
    padding: 0 15px 30px;
  }
  .paper {
    padding: 22px 16px;
  }
  .poem {
    font-size: 12px;
  }
}
