:root {
  --night: #081327;
  --navy: #10213d;
  --paper: #f4efe6;
  --ivory: #fffaf0;
  --gold: #d7ad62;
  --red: #a83345;
  --violet: #8d72d7;
  --ink: #142139;
  --muted: #5e606d;
  --line: #ddd3c2;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--night);
  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% -10%, #26395d 0, transparent 35rem),
    var(--night);
  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(215, 173, 98, 0.55);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(calc(100% - 32px), 680px);
  margin: auto;
  padding: 18px 0 30px;
}
.header {
  display: flex;
  height: 48px;
  padding: 0 4px;
  color: var(--ivory);
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}
.brand span {
  color: var(--gold);
}
.header-note {
  color: #9ba6b9;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.card {
  overflow: hidden;
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}
.screen {
  padding: clamp(28px, 7vw, 52px);
  animation: enter 0.45s var(--ease) both;
}
.intro {
  text-align: center;
}
.poster {
  position: relative;
  overflow: hidden;
  width: min(100%, 370px);
  height: 255px;
  margin: 0 auto 27px;
  border-radius: 3px;
  background: linear-gradient(145deg, #071226, #172b4d);
  box-shadow: 0 18px 38px rgba(8, 19, 39, 0.25);
  color: var(--gold);
}
.poster:before,
.poster:after {
  position: absolute;
  top: 0;
  width: 34px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 13px,
    rgba(215, 173, 98, 0.25) 13px 21px
  );
  content: "";
}
.poster:before {
  left: 0;
  border-right: 1px solid rgba(215, 173, 98, 0.2);
}
.poster:after {
  right: 0;
  border-left: 1px solid rgba(215, 173, 98, 0.2);
}
.poster-top,
.poster-bottom {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
}
.poster-top {
  top: 20px;
}
.poster-bottom {
  bottom: 18px;
}
.spotlight {
  position: absolute;
  top: 48px;
  left: 50%;
  display: grid;
  width: 130px;
  height: 155px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 236, 188, 0.38),
    rgba(255, 236, 188, 0)
  );
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  place-items: center;
}
.spotlight span {
  display: grid;
  width: 76px;
  height: 76px;
  margin-top: 54px;
  border: 1px solid rgba(215, 173, 98, 0.7);
  border-radius: 50%;
  background: #0d1a31;
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 42px;
  place-items: center;
}
.kicker {
  margin: 0;
  color: #8a6170;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}
.intro h1 {
  margin: 11px 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 10vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
.intro h1 em {
  color: var(--red);
  font-style: normal;
}
.intro-copy {
  margin: 0;
  color: #5f6471;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}
.meta {
  display: flex;
  width: fit-content;
  margin: 25px auto;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #686977;
  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: 58px;
  border-radius: 15px;
  font-weight: 850;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.primary {
  border: 1px solid var(--night);
  background: var(--night);
  box-shadow: 0 12px 22px rgba(8, 19, 39, 0.2);
  color: white;
}
.primary span {
  color: var(--gold);
  font-size: 20px;
}
.secondary {
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
}
.disclaimer {
  margin: 16px auto 0;
  max-width: 430px;
  color: #6f6a62;
  font-size: 10px;
  line-height: 1.55;
}
.progress-copy {
  display: flex;
  margin-bottom: 10px;
  color: #747683;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  justify-content: space-between;
}
.progress-copy strong {
  color: var(--red);
}
.progress {
  overflow: hidden;
  height: 6px;
  border-radius: 99px;
  background: #e5ddcf;
}
.progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.35s var(--ease);
}
.question-panel {
  margin-top: clamp(48px, 11vw, 72px);
  outline: 0;
}
.question-panel h2 {
  max-width: 540px;
  margin: 12px 0 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(27px, 6vw, 38px);
  line-height: 1.38;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.helper {
  margin: 13px 0 29px;
  color: var(--muted);
  font-size: 13px;
}
.answers {
  display: grid;
  gap: 12px;
}
.answer {
  position: relative;
  width: 100%;
  min-height: 76px;
  padding: 16px 48px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.48;
  text-align: left;
  word-break: keep-all;
  cursor: pointer;
}
.answer:after {
  position: absolute;
  top: 50%;
  right: 19px;
  transform: translateY(-50%);
  color: #a49d92;
  content: "→";
}
.answer:hover,
.answer:focus-visible,
.answer.selected {
  border-color: var(--red);
  background: #fff4f1;
}
.back {
  min-height: 44px;
  margin-top: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #73737d;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.back:disabled {
  opacity: 0.3;
}
.result {
  text-align: center;
}
.result-badge {
  display: flex;
  width: 145px;
  height: 145px;
  margin: 18px auto 20px;
  border: 1px solid rgba(215, 173, 98, 0.75);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 17px 34px rgba(8, 19, 39, 0.24);
  color: var(--ivory);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.result-badge span {
  font-family: Georgia, serif;
  font-size: 44px;
  letter-spacing: 0.04em;
}
.result-badge small {
  margin-top: 7px;
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.15em;
}
.result-role {
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 850;
}
.result > h2 {
  margin: 10px 0 15px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: clamp(29px, 7vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.result-copy {
  margin: 0 auto 24px;
  max-width: 490px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}
.actor-card {
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #152743, #09152a);
  color: white;
}
.actor-card span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.actor-card strong {
  display: block;
  margin: 8px 0 6px;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 25px;
}
.actor-card p {
  margin: 0;
  color: #b9c0ce;
  font-size: 12px;
  line-height: 1.6;
}
.axis-section {
  margin-top: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.section-title {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  gap: 9px;
}
.section-title span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}
.section-title h3,
.story-card h3 {
  margin: 0;
  font-size: 20px;
}
.axis-list {
  display: grid;
  gap: 18px;
}
.axis-row {
  display: grid;
  gap: 8px;
}
.axis-label {
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
}
.axis-track {
  position: relative;
  height: 9px;
  border-radius: 99px;
  background: #dfd7cb;
}
.axis-track:after {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 1px;
  height: 15px;
  background: #bcb2a3;
  content: "";
}
.axis-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--violet));
}
.story-card {
  padding: 25px;
  border-radius: 20px;
  background: #e9e0d2;
  text-align: left;
}
.story-card > span {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.story-card h3 {
  margin-top: 10px;
}
.story-card p {
  margin: 10px 0 0;
  color: #595b67;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}
.story-card hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #d3c7b5;
}
.actions {
  display: grid;
  margin-top: 26px;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}
.share-status {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}
footer {
  display: flex;
  padding: 22px 4px 0;
  color: #7d899d;
  font-size: 9px;
  justify-content: space-between;
}
.noscript {
  padding: 30px;
  text-align: center;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 560px) {
  .shell {
    width: 100%;
    padding: 0;
  }
  .header {
    height: 58px;
    padding: 0 18px;
  }
  .header-note {
    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;
  }
  .poster {
    height: 220px;
  }
  .question-panel {
    margin-top: 42px;
  }
  .answer {
    min-height: 78px;
  }
  .result-badge {
    width: 130px;
    height: 130px;
  }
  .actions {
    grid-template-columns: 1fr;
  }
  footer {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.next-test {
  margin-top: 24px;
  padding: 24px;
  border-radius: 19px;
  background: #09152a;
  color: white;
  text-align: left;
}
.next-test > span {
  color: #d7ad62;
  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: #b9c0ce;
  font-size: 13px;
  line-height: 1.65;
}
.next-test a {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: #fffaf0;
  color: #152743;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.next-test .all-tests {
  margin-top: 8px;
  padding: 9px;
  background: transparent;
  color: #aab4c5;
  font-size: 11px;
}
