:root {
  color-scheme: dark;
  font-family: "Noto Sans KR", sans-serif;
  background: #170e10;
  color: #fff8ee;
  --accent: #df9a88;
  --button: #a64f57;
  --line: #f2c4b840;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f6c1a8;
  outline-offset: 4px;
}
#app {
  position: relative;
  max-width: 520px;
  min-height: 100svh;
  margin: auto;
  container-type: inline-size;
  background: #281719;
}
.screen {
  position: relative;
  min-height: 100svh;
  height: 100dvh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.screen:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    180deg,
    #190b0e12 0%,
    #17080a00 28%,
    #29131636 48%,
    #221014d6 73%,
    #1d1013f7 100%
  );
}
.screen:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: inset 0 0 80px #18090c32;
  pointer-events: none;
}
.brand-header {
  position: absolute;
  top: max(17px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-header img {
  width: 44px;
  height: auto;
}
.home-back {
  position: absolute;
  left: 10px;
  top: -12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff9ee;
  text-decoration: none;
  font-size: 18px;
}
.cover .scene {
  object-position: 50% 25%;
}
.cover .scene {
  filter: saturate(0.9);
}
.cover-copy {
  margin-top: auto;
  padding: 0 25px 16px;
  text-align: center;
}
.cover-copy .overline {
  font-size: 11px;
  letter-spacing: 4px;
  color: #f5c9b5;
  margin: 0 0 13px;
}
.cover h1 {
  font-family: "Noto Serif KR", serif;
  font-weight: 600;
  font-size: clamp(28px, 8.7cqw, 42px);
  line-height: 1.55;
  letter-spacing: -1.7px;
  margin: 0;
  text-shadow: 0 2px 24px #281219;
}
.cover-sub {
  font-size: 13px;
  line-height: 1.9;
  color: #e3cec7;
  margin: 16px 0 7px;
}
.thread-mark {
  display: block;
  font-size: 19px;
  color: #e7aa99;
  margin: 12px 0;
}
.cover-footer {
  padding: 0 20px max(18px, env(safe-area-inset-bottom));
}
.primary {
  height: 60px;
  width: 100%;
  border: 1px solid #edb49b46;
  border-radius: 11px;
  color: #fff9f2;
  background: linear-gradient(110deg, #aa5358, #8f3e4d);
  box-shadow:
    0 4px 22px #300c1933,
    inset 0 1px 0 #ffffff12;
  font-size: 18px;
  font-weight: 600;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}
.primary .arrow {
  font-size: 19px;
  font-weight: 400;
}
.primary:disabled {
  opacity: 0.38;
}
.question-content {
  margin-top: auto;
  padding: 24px 20px max(16px, env(safe-area-inset-bottom));
  position: relative;
}
.question-eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  color: #e4b4a5;
  margin: 0 0 14px;
}
.progress-thread {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 13px;
  width: 106px;
  position: relative;
}
.progress-thread:before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: #f4b7a728;
  top: 50%;
}
.progress-thread i {
  display: block;
  width: 5px;
  height: 5px;
  background: #f3d3c346;
  border-radius: 50%;
  position: relative;
}
.progress-thread i.current {
  background: #e9a99b;
  width: 17px;
  border-radius: 4px;
  box-shadow: 0 0 12px #eaa39555;
}
.progress-thread i.complete {
  background: #d89b89;
}
.question-title {
  font-size: clamp(19px, 5.82cqw, 27px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.6px;
  white-space: pre-line;
  margin: 0 0 18px;
  text-wrap: pretty;
  text-shadow: 0 2px 10px #1d0a0f80;
  word-break: keep-all;
}
.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 36px;
}
.text-field {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  border-bottom: 1px solid #edc9ba55;
  border-radius: 0;
  background: transparent;
  outline-offset: 2px;
  padding: 0 0 7px;
  font-size: 18px;
  color: #fffaf3;
  caret-color: #ffd0bb;
}
.text-field::placeholder {
  color: #e2cdc380;
  opacity: 1;
}
.text-field:disabled {
  opacity: 0.7;
}
.segmented {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #fae1d013;
  flex-shrink: 0;
  border: 1px solid #ffe3d01c;
}
.segmented button {
  border: 0;
  border-radius: 999px;
  min-width: 49px;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  color: #dbc8bf;
  background: none;
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  color: #fff6ee;
  background: #ab5d61;
  box-shadow: 0 2px 7px #1a080d28;
}
.unknown {
  height: 38px;
  flex-shrink: 0;
  border: 1px solid #f4d5c330;
  background: #fff1d810;
  color: #e7d0c5;
  border-radius: 999px;
  font-size: 13px;
  padding: 0 14px;
}
.unknown[aria-pressed="true"] {
  background: #a8575b;
  border-color: #dcab99;
  color: #fff;
}
.choice-list {
  display: grid;
  gap: 8px;
}
.choice {
  height: 56px;
  width: 100%;
  border-radius: 15px;
  border: 1px solid #efccb52b;
  background: linear-gradient(115deg, #462b30d1, #37232ae0);
  color: #fff2e7;
  text-align: left;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  backdrop-filter: blur(12px);
}
.choice:after {
  content: "↗";
  color: #d5a390;
  font-size: 18px;
  font-weight: 400;
}
.choice:hover,
.choice[aria-pressed="true"] {
  background: #8d4a53d9;
  border-color: #edbca171;
}
.previous-question {
  display: block;
  margin: 13px auto -2px;
  padding: 2px 10px;
  min-height: 26px;
  font-size: 11px;
  color: #c9aaa1;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.choice-screen .previous-question {
  margin-top: 10px;
}
.optional-label {
  font-size: 10px;
  font-weight: 400;
  color: #d4b8ae;
  margin-left: 8px;
  white-space: nowrap;
}
.free-question {
  display: block;
  height: 94px;
  width: 100%;
  resize: none;
  border: 1px solid #efccb538;
  border-radius: 11px;
  background: #311f25a6;
  color: #fff8ed;
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 25px;
  outline-offset: 3px;
}
.free-question::placeholder {
  color: #d3bbb1aa;
}
.field-error {
  margin: -23px 0 15px;
  color: #ffd0b6;
  font-size: 11px;
  min-height: 16px;
}
.field-error:empty {
  display: none;
}
.review-screen {
  height: auto;
  min-height: 100dvh;
  padding: 65px 20px 28px;
  background: #2c191c;
}
.review-screen .scene {
  height: 480px;
  opacity: 0.4;
}
.review-top {
  text-align: center;
  margin: 30px 0;
}
.review-top small {
  font-size: 11px;
  letter-spacing: 3px;
  color: #deb29e;
}
.review-top h1 {
  font:
    600 28px/1.65 "Noto Serif KR",
    serif;
  letter-spacing: -1px;
}
.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  font:
    500 24px "Noto Serif KR",
    serif;
  margin: 25px 0 30px;
}
.couple-names span {
  color: #dd9e91;
  font-size: 20px;
}
.review-card {
  border-top: 1px solid #e3b6a347;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  font-size: 13px;
  line-height: 1.9;
}
.review-card dt {
  color: #bd9b91;
}
.review-card dd {
  margin: 0;
  color: #f7e4d8;
  overflow-wrap: anywhere;
}
.review-actions {
  margin-top: 20px;
}
.secondary {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: none;
  color: #d6b6a9;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fade-in {
  animation: arrive 0.32s ease both;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.review-all .screen {
  height: 216.41cqw;
  min-height: 0;
}
.review-all .review-screen {
  height: auto;
}
.review-all .cover-footer {
  padding-bottom: 18px;
}
.review-all .question-content {
  padding-bottom: 16px;
}
@media (max-height: 650px) and (min-width: 521px) {
  .screen {
    height: 760px;
  }
}
@media (max-width: 350px) {
  .question-title {
    font-size: 20px;
  }
  .segmented button {
    min-width: 43px;
    padding: 0 8px;
  }
  .field-row {
    gap: 7px;
  }
  .primary {
    font-size: 16px;
  }
  .question-eyebrow {
    margin-bottom: 10px;
  }
  .progress-thread {
    margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.previous-question {
  position: absolute;
  right: 12px;
  top: -9px;
  bottom: auto;
  margin: 0;
  padding: 3px 8px;
  min-height: 24px;
}
.choice-screen .previous-question {
  margin: 0;
  top: -9px;
}
.question-content {
  padding-top: 24px;
}
.choice-screen .question-content {
  padding-bottom: 12px;
}

:root {
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.primary {
  background: #b86475;
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: none;
  font-weight: 720;
  font-size: 18px;
  line-height: 18px;
  padding: 18px 20px;
}
.primary:disabled {
  opacity: 0.4;
}
.question-title {
  font-weight: 650;
  font-size: clamp(19px, 5.82564cqw, 27px);
  line-height: 1.4;
  letter-spacing: -0.35px;
}
.text-field {
  border: 0;
  font-weight: 560;
  font-size: clamp(16px, 4.59487cqw, 22px);
  padding: 0;
  line-height: normal;
}
.segmented {
  padding: 4px;
  gap: 3px;
  border: 0;
  background: #ffffff14;
}
.segmented button {
  font-weight: 700;
  min-width: 53.76px;
  padding: 0 12px;
}
.segmented button[aria-pressed="true"] {
  background: #b86475;
  box-shadow: none;
}
.field-row {
  gap: 10px;
}
.choice {
  font-weight: 650;
  background: #30272bba;
  border: 1px solid #fff2e21c;
  box-shadow: none;
}
.choice:hover,
.choice[aria-pressed="true"] {
  background: #82515ccc;
}
.choice:after {
  display: none;
}
.screen:before {
  background: linear-gradient(
    180deg,
    #100b1006 0%,
    #100b1000 40%,
    #190f1833 58%,
    #1b101abf 84%,
    #160c17de 100%
  );
}
.cover:before {
  background: linear-gradient(
    180deg,
    #100b1000 0%,
    #100b1000 45%,
    #1a0c1830 62%,
    #1c101b9e 85%,
    #170c18c9 100%
  );
}
.cover .scene {
  filter: none;
  object-position: 50% 25%;
}
.cover-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px max(16px, env(safe-area-inset-bottom));
}
.cover-wordmark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 76px;
  height: 50cqw;
  max-height: 260px;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  line-height: 1 !important;
  text-align: center;
}
.cover-wordmark small {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(14px, 4.2cqw, 21px);
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #fff8ed;
  text-shadow: 0 2px 8px #1d0b18;
  margin-bottom: 7px;
}
.cover-wordmark strong {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: clamp(58px, 20cqw, 100px);
  letter-spacing: -6px;
  line-height: 1.25;
  transform: rotate(-5deg);
  color: #fff5eb;
  text-shadow: 0 3px 18px #24101e8a;
}
.cover-wordmark strong span {
  color: #f3a5b6;
}
.floating-cue {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 14px;
  background: #1d1418b8;
  color: #fff8f1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  z-index: 2;
}
.a11y-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
video.scene {
  object-fit: cover;
}
.brand-header {
  z-index: 5;
}
.scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover .floating-cue {
  animation: none;
}

.cover-wordmark {
  padding: 0 12px;
}
.cover-wordmark > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.preview-screen {
  height: auto;
  min-height: 100dvh;
  display: block;
  background: #21171b;
}
.preview-screen:before {
  display: none;
}
.preview-hero {
  position: relative;
  min-height: 740px;
  height: 100dvh;
  max-height: 960px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.preview-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #21171b05 24%,
    #21171b55 52%,
    #21171b 100%
  );
}
.preview-heading {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 20px 28px;
  text-align: center;
}
.preview-heading > small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #f4d9ce;
}
.preview-heading > p {
  font-size: 16px;
  margin: 20px 0 12px;
}
.preview-heading h1 {
  font:
    600 clamp(26px, 7.2cqw, 36px)/1.6 "Noto Serif KR",
    serif;
  letter-spacing: -1px;
  margin: 0;
}
.preview-heading .preview-intro {
  font-size: 14px;
  line-height: 1.9;
  color: #ecd3c9;
  margin: 17px 0 26px;
}
.preview-body {
  padding: 0 20px 32px;
}
.preview-status {
  font-size: 11px;
  text-align: center;
  color: #cfb4aa;
  border: 1px solid #b7938340;
  border-radius: 8px;
  padding: 12px 8px;
  margin: 0 0 44px;
}
.reading-contents {
  scroll-margin-top: 24px;
  outline-offset: 8px;
}
.preview-kicker {
  font-size: 11px;
  letter-spacing: 1px;
  color: #dd9eae;
}
.preview-body h2 {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.6px;
  margin: 12px 0;
}
.preview-description {
  font-size: 12px;
  line-height: 1.8;
  color: #c6aaa0;
  margin-bottom: 25px;
}
.preview-chapters article {
  display: flex;
  gap: 16px;
  padding: 23px 0;
  border-top: 1px solid #c7a18f33;
}
.preview-chapters article > span {
  font:
    italic 24px "Noto Serif KR",
    serif;
  color: #dba3ae;
  min-width: 32px;
}
.preview-chapters h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 8px;
}
.preview-chapters p {
  font-size: 13px;
  line-height: 1.8;
  color: #cbb5ab;
  margin: 0;
}
.preview-question {
  border: 1px solid #c79b9540;
  background: #e6b6ab09;
  border-radius: 16px;
  padding: 22px;
  margin: 30px 0;
}
.preview-question small {
  color: #dfa6b1;
  font-size: 11px;
}
.preview-question h2 {
  font-size: 19px;
}
.preview-question p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
  color: #eddbd1;
}
.concern-tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.8;
  padding: 6px 9px;
  border-radius: 7px;
  background: #fff1e80d;
  color: #dab9ad;
}
.preview-profile {
  border-top: 1px solid #c7a18f33;
  border-bottom: 1px solid #c7a18f33;
  padding: 18px 0;
}
.preview-profile summary {
  cursor: pointer;
  font-size: 14px;
  color: #ead4c9;
  min-height: 28px;
  line-height: 28px;
}
.preview-profile dl {
  margin-bottom: 0;
}
.preview-profile .review-card {
  grid-template-columns: minmax(65px, 1fr) 2fr;
}
.preview-screen .review-actions {
  margin-top: 12px;
}
.review-all .preview-screen {
  height: auto;
}

.cover .floating-cue {
  pointer-events: none;
  opacity: 0;
  animation: compatibility-cue 7s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes compatibility-cue {
  0%,
  5% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  13%,
  35% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  45%,
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover .floating-cue {
    animation: none;
    opacity: 0;
    will-change: auto;
  }
}
