:root {
  --wine: #24070f;
  --deep: #3a0b18;
  --red: #c62545;
  --hot: #b91f3f;
  --blush: #f8d7da;
  --paper: #fff8f3;
  --cream: #f3e8df;
  --ink: #26141a;
  --muted: #6e5d64;
  --line: #decfc8;
  --shadow: 0 28px 80px rgba(25, 0, 8, 0.35);
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--wine);
  font-family:
    Pretendard,
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, #5b1328 0, transparent 34rem), var(--wine);
  color: var(--ink);
}
button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid rgba(255, 91, 112, 0.45);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(calc(100% - 32px), 680px);
  margin: auto;
  padding: 18px 0 30px;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header {
  height: 48px;
  padding: 0 4px;
  color: white;
}
header a {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
}
header a span {
  color: var(--hot);
}
header small {
  color: #c8919d;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.card {
  overflow: hidden;
  min-height: 710px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.screen {
  padding: clamp(28px, 7vw, 52px);
  animation: in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro {
  text-align: center;
}
.hero {
  position: relative;
  overflow: hidden;
  height: 235px;
  margin: 0 auto 28px;
  border-radius: 20px;
  background: linear-gradient(145deg, #18050b, #4c1020);
  box-shadow: 0 17px 40px rgba(36, 7, 15, 0.28);
  color: white;
}
.hero:after {
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    115deg,
    transparent 43%,
    rgba(255, 255, 255, 0.08) 49%,
    transparent 55%
  );
  content: "";
  transform: rotate(8deg);
}
.hero b {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #f5cbd1;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 0.9;
  text-align: left;
}
.phone {
  position: absolute;
  z-index: 2;
  top: 42px;
  right: 30px;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  text-align: left;
  transform: rotate(-4deg);
  backdrop-filter: blur(8px);
}
.phone span {
  color: #df9aa7;
  font-size: 9px;
  font-weight: 850;
}
.phone strong {
  display: block;
  margin: 8px 0 14px;
  font-size: 19px;
}
.phone i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--hot);
  animation: pulse 1.2s infinite;
}
.phone i:nth-of-type(2) {
  animation-delay: 0.15s;
}
.phone i:nth-of-type(3) {
  animation-delay: 0.3s;
}
.eyebrow {
  margin: 0;
  color: #a33a50;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.intro h1 {
  margin: 11px 0 17px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(39px, 9vw, 57px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.intro h1 em {
  color: var(--red);
  font-style: normal;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  word-break: keep-all;
}
.lead strong {
  color: var(--ink);
}
.meta {
  display: flex;
  width: fit-content;
  margin: 25px auto;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7a6a70;
  font-size: 12px;
  gap: 10px;
  align-items: center;
}
.meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}
.primary,
.secondary {
  display: flex;
  width: 100%;
  min-height: 59px;
  border-radius: 15px;
  font-weight: 850;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.primary {
  border: 1px solid var(--wine);
  background: var(--wine);
  box-shadow: 0 12px 24px rgba(36, 7, 15, 0.22);
  color: white;
}
.primary span {
  color: var(--hot);
  font-size: 20px;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.note {
  margin: 15px 0 0;
  color: #75666b;
  font-size: 10px;
}
.progress-copy {
  display: flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
}
.progress-copy strong {
  color: var(--red);
}
.progress {
  overflow: hidden;
  height: 7px;
  border-radius: 99px;
  background: #eaded7;
}
.progress span {
  display: block;
  width: 13%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--hot));
  transition: width 0.4s;
}
.question {
  margin-top: clamp(45px, 10vw, 70px);
  outline: 0;
}
.question h2 {
  margin: 12px 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(27px, 6vw, 37px);
  line-height: 1.4;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.question > p:not(.eyebrow) {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 13px;
}
.answers {
  display: grid;
  gap: 11px;
}
.answer {
  position: relative;
  width: 100%;
  min-height: 70px;
  padding: 15px 48px 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.5;
  text-align: left;
  word-break: keep-all;
  cursor: pointer;
}
.answer:after {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #ae9ea1;
  content: "→";
}
.answer:hover,
.answer:focus-visible,
.answer.selected {
  border-color: var(--red);
  background: #fff1f2;
}
.back {
  min-height: 44px;
  margin-top: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8c7c80;
  font-size: 12px;
  font-weight: 750;
}
.back:disabled {
  opacity: 0.3;
}
.result {
  text-align: center;
}
.result-icon {
  display: grid;
  width: 105px;
  height: 105px;
  margin: 17px auto 18px;
  border-radius: 50% 50% 48% 52%;
  background: var(--wine);
  box-shadow: 0 14px 30px rgba(36, 7, 15, 0.25);
  color: var(--hot);
  font-family: Georgia, serif;
  font-size: 55px;
  place-items: center;
  transform: rotate(-5deg);
}
.result > p:not(.eyebrow):not(.status) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.result > h2 {
  margin: 7px 0 10px;
  color: var(--red);
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(37px, 9vw, 52px);
  letter-spacing: -0.05em;
}
.result blockquote {
  margin: 0 auto 20px;
  max-width: 470px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.55;
  word-break: keep-all;
}
.traits {
  display: flex;
  margin-bottom: 27px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.traits span {
  padding: 7px 10px;
  border-radius: 99px;
  background: var(--cream);
  font-size: 11px;
  font-weight: 750;
}
.truth {
  padding: 24px;
  border-radius: 19px;
  background: var(--wine);
  color: white;
  text-align: left;
}
.truth span,
.split span,
.red-flag span {
  color: var(--hot);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.truth h3,
.split h3 {
  margin: 9px 0 0;
  font-size: 18px;
}
.truth p,
.split p,
.red-flag p {
  margin: 10px 0 0;
  color: #d6bec4;
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}
.scores {
  margin-top: 29px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.heading {
  display: flex;
  margin-bottom: 21px;
  align-items: end;
  gap: 8px;
}
.heading > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}
.heading h3 {
  margin: 0;
  font-size: 20px;
}
.heading small {
  margin-left: auto;
  color: #75666b;
}
.score-list {
  display: grid;
  gap: 15px;
}
.score-row {
  display: grid;
  gap: 7px;
}
.score-label {
  display: flex;
  font-size: 12px;
  font-weight: 780;
  justify-content: space-between;
}
.score-track {
  overflow: hidden;
  height: 8px;
  border-radius: 99px;
  background: #e9ddd6;
}
.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #df7990);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}
.split article {
  padding: 21px;
  border-radius: 17px;
  background: var(--cream);
}
.split p {
  color: var(--muted);
}
.red-flag {
  margin: 24px 0;
  padding: 24px;
  border-left: 4px solid var(--red);
  background: #fae5e6;
  text-align: left;
}
.red-flag p {
  color: #59474c;
  font-size: 14px;
}
.actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
}
.status {
  min-height: 20px;
  margin: 13px 0 0 !important;
  color: var(--red) !important;
  font-size: 12px !important;
  font-weight: 800;
}
footer {
  padding: 22px 4px 0;
  color: #9f6f7b;
  font-size: 9px;
}
.noscript {
  padding: 30px;
  text-align: center;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: translateY(-2px);
  }
}
.invite-banner {
  margin: -8px 0 22px;
  padding: 15px;
  border: 1px solid #efb4bd;
  border-radius: 14px;
  background: #fff0f2;
  color: #6d2635;
  font-size: 13px;
  line-height: 1.55;
}
.invite-banner strong {
  color: var(--red);
}
.comparison {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #e2a5b0;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff0f1, #f6dedf);
  text-align: left;
}
.comparison > span {
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.comparison h3 {
  margin: 9px 0 4px;
  font-size: 20px;
}
.comparison > strong {
  display: block;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 42px;
}
.comparison p {
  margin: 7px 0 0;
  color: #67545a;
  font-size: 13px;
  line-height: 1.7;
}
.actions {
  grid-template-columns: 1fr 1fr;
}
.actions .compare-button {
  grid-column: 1/-1;
}
.save-button {
  border-color: #d999a6;
  color: #8f2940;
}
.next-test {
  margin-top: 28px;
  padding: 24px;
  border-radius: 19px;
  background: #18050b;
  color: white;
  text-align: left;
}
.next-test > span {
  color: var(--hot);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.next-test h3 {
  margin: 8px 0;
  font-size: 19px;
}
.next-test p {
  margin: 0 0 17px;
  color: #d6bec4;
  font-size: 13px;
  line-height: 1.65;
}
.next-test a {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: #fff0f1;
  color: #7d2035;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.next-test .all-tests {
  margin-top: 8px;
  padding: 9px;
  background: transparent;
  color: #cfaab2;
  font-size: 11px;
}
@media (max-width: 560px) {
  .shell {
    width: 100%;
    padding: 0;
  }
  header {
    height: 58px;
    padding: 0 18px;
  }
  header small {
    display: none;
  }
  .card {
    min-height: calc(100vh - 58px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 26px 26px 0 0;
  }
  .screen {
    padding: 27px 20px 38px;
  }
  .hero {
    height: 205px;
  }
  .phone {
    right: 20px;
    width: 190px;
  }
  .split,
  .actions {
    grid-template-columns: 1fr;
  }
  footer {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
