:root {
  --ink:#121d23;
  --paper:#fff9ee;
  --orange:#f44c2c;
  --grey:#c9cbcd;
  --accent:var(--orange);
  font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color:var(--ink);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--grey);
  word-break:keep-all;
  overflow-wrap:break-word;
}
button,input {
  font:inherit;
}
button {
  cursor:pointer;
  touch-action:manipulation;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #007bb2;
  outline-offset:5px;
}
h1,h2,h3,p {
  margin:0;
}
img {
  display:block;
  max-width:100%;
  height:auto;
}
[hidden] {
  display:none!important;
}
.view {
  min-height:100svh;
}
.button {
  border:2px solid var(--ink);
  border-radius:12px;
  min-height:56px;
  padding:14px 22px;
  font-size:19px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  transition:transform .15s,box-shadow .15s,background .15s;
  line-height:1.4;
}
.button span {
  font-size:25px;
  line-height:1;
}
.button:hover:not(:disabled) {
  transform:translateY(-2px);
  box-shadow:3px 4px 0 var(--ink);
}
.button:active:not(:disabled) {
  transform:translateY(1px);
  box-shadow:none;
}
.primary {
  background:var(--orange);
  color:var(--ink);
}
.secondary {
  background:transparent;
  color:var(--ink);
}
.button:disabled {
  opacity:.4;
  cursor:default;
}
.text-button {
  border:0;
  background:none;
  padding:10px;
  color:var(--ink);
  font-weight:700;
  line-height:1.5;
}
.home {
  display:grid;
  place-items:center;
  padding:28px 24px;
}
.home-inner {
  display:flex;
  align-items:center;
  flex-direction:column;
  width:min(100%,440px);
  gap:20px;
}
.book-title {
  width:88%;
  max-width:340px;
}
.home h1 {
  font-size:clamp(24px,6.7vw,35px);
  letter-spacing:-1.7px;
  line-height:1.2;
  font-weight:900;
  margin-top:-7px;
}
.book-cover {
  width:auto;
  max-width:86%;
  height:min(51svh,490px);
  object-fit:contain;
  filter:drop-shadow(5px 12px 12px #0002);
  margin:3px 0 7px;
}
.home .button {
  max-width:360px;
}
.story {
  background:var(--paper);
  padding-bottom:45px;
}
.story-header {
  height:63px;
  position:sticky;
  top:0;
  z-index:5;
  background:var(--paper);
  border-bottom:2px solid var(--ink);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 max(16px,calc((100% - 760px)/2));
  font-weight:900;
  font-size:16px;
}
.story-header .text-button {
  font-size:13px;
  padding-left:0;
  font-weight:600;
}
#story-count {
  font-variant-numeric:tabular-nums;
  font-size:13px;
}
.story-track {
  position:absolute;
  bottom:-2px;
  left:0;
  right:0;
  height:3px;
}
.story-track span {
  display:block;
  background:var(--orange);
  height:100%;
  width:25%;
  transition:width .35s;
}
.story-opening {
  text-align:center;
  padding:66px 20px 12px;
}
.story-opening>p:first-child {
  font-size:14px;
  font-weight:600;
  margin-bottom:18px;
}
.story-opening h2 {
  font-size:clamp(30px,7.6vw,46px);
  line-height:1.3;
  letter-spacing:-1.5px;
  font-weight:900;
}
.scroll-hint {
  font-size:13px;
  margin-top:25px;
  color:#596168;
}
.scroll-hint span {
  display:block;
  font-size:22px;
  margin-top:8px;
  animation:nudge 1.6s ease-in-out infinite;
}
.comic-story {
  width:min(100%,760px);
  margin:auto;
  padding:0 26px;
}
.story-scene {
  min-height:88svh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:58px 0;
  gap:35px;
  --tilt:-1deg;
}
.story-scene:nth-child(even) {
  --tilt:1deg;
}
.comic-cut {
  background:white;
  border:3px solid var(--ink);
  box-shadow:7px 8px 0 var(--ink);
  transform:rotate(var(--tilt));
  transform-origin:50% 70%;
}
.comic-cut>img {
  width:100%;
  aspect-ratio:4/3;
  object-fit:contain;
  background:white;
  border-bottom:3px solid var(--ink);
}
.comic-caption {
  background:var(--paper);
  padding:24px 26px 28px;
}
.comic-caption h3 {
  font-size:clamp(23px,5.8vw,31px);
  font-weight:900;
  line-height:1.35;
  letter-spacing:-1px;
  color:#c82f15;
}
.comic-caption p {
  font-size:clamp(16px,4.1vw,19px);
  line-height:1.8;
  margin-top:13px;
}
.story-scene.pending .comic-cut {
  opacity:0;
  transform:translateY(70px) scale(.82) rotate(calc(var(--tilt) * 3));
}
.story-scene.entered .comic-cut {
  animation:comic-pop .7s cubic-bezier(.16,1,.3,1) both;
}
.story-scene .button {
  max-width:430px;
  margin:0 auto;
}
.story-note {
  text-align:center;
  font-size:11px;
  color:#676b70;
  margin:15px 20px;
}
.quiz {
  background:var(--paper);
  padding:24px 22px 32px;
}
.quiz-inner {
  max-width:480px;
  margin:auto;
}
.small-header {
  text-align:center;
  font-weight:900;
  background:var(--ink);
  color:#ff694b;
  font-size:22px;
  padding:12px 16px;
  letter-spacing:-1px;
}
.question-progress {
  display:flex;
  align-items:center;
  gap:16px;
  margin:28px 0 26px;
  font-size:14px;
  font-weight:800;
}
.progress-track {
  height:9px;
  border:2px solid var(--ink);
  border-radius:8px;
  flex:1;
  overflow:hidden;
}
#question-bar {
  height:100%;
  background:var(--orange);
  display:block;
  transition:width .25s;
}
#question-count {
  min-width:35px;
  font-variant-numeric:tabular-nums;
}
#question-title {
  font-size:clamp(23px,5.9vw,29px);
  letter-spacing:-.9px;
  line-height:1.45;
  font-weight:900;
  white-space:pre-line;
  margin-bottom:27px;
  min-height:3em;
}
.answers {
  display:grid;
  gap:12px;
  margin-bottom:25px;
}
.answer {
  display:flex;
  align-items:center;
  text-align:left;
  gap:15px;
  width:100%;
  border:2px solid var(--ink);
  border-radius:11px;
  background:white;
  color:var(--ink);
  padding:16px;
  min-height:80px;
  transition:background .15s,transform .15s,box-shadow .15s;
  font-size:16px;
  font-weight:600;
  line-height:1.55;
  white-space:pre-line;
}
.answer-letter {
  font-size:23px;
  font-weight:900;
  border-right:1px solid #bdc0c2;
  padding-right:15px;
  line-height:1.3;
}
.answer:hover {
  background:#ffead9;
}
.answer[aria-pressed="true"] {
  background:#ffdcc3;
  box-shadow:3px 3px 0 var(--ink);
  transform:translate(-1px,-1px);
}
.answer[aria-pressed="true"] .answer-letter {
  color:#b62a13;
}
.back-button {
  display:block;
  margin:14px auto 8px;
  font-size:14px;
}
.question-note {
  font-size:11px;
  color:#62676a;
  text-align:center;
  line-height:1.7;
}
.result {
  padding:25px 20px;
  background:var(--paper);
}
.result-inner {
  max-width:460px;
  margin:auto;
}
.result-card {
  text-align:center;
  padding:28px 12px 24px;
}
.result-eyebrow {
  font-size:21px;
  font-weight:800;
  letter-spacing:-.7px;
}
#result-name {
  font-size:clamp(52px,15vw,74px);
  line-height:1.2;
  font-weight:900;
  letter-spacing:-3px;
  color:var(--accent);
  margin:6px 0 20px;
}
#result-image {
  width:min(100%,330px);
  aspect-ratio:1;
  object-fit:contain;
  margin:0 auto 23px;
  background:white;
  border:2px solid var(--ink);
}
.result-trait {
  font-size:18px;
  font-weight:800;
  line-height:1.65;
  white-space:pre-line;
  letter-spacing:-.4px;
}
.result-bridge {
  margin-top:21px;
  font-size:17px;
  font-weight:800;
}
.result-adventure {
  font-size:16px;
  line-height:1.8;
  margin-top:6px;
  white-space:pre-line;
}
.result-actions {
  display:grid;
  gap:12px;
}
.book-invitation { margin:8px 0 16px; text-align:center; }
.book-invitation p { font-size:14px; line-height:1.7; margin-bottom:12px; }
.book-invitation .button { font-size:17px; gap:8px; }
.result-actions { grid-template-columns:1fr 1fr; }
.result-actions .button { font-size:15px; padding:12px 8px; gap:8px; }
.book { background:var(--paper); padding:0 22px 36px; }
.book-inner { max-width:700px; margin:auto; }
.book-navigation { display:flex; justify-content:space-between; align-items:center; padding:16px 0; border-bottom:2px solid var(--ink); font-size:13px; font-weight:800; }
.book-navigation .text-button { padding-left:0; }
.book-heading { text-align:center; padding:44px 0 30px; }
.book-kicker { font-size:14px; font-weight:700; line-height:1.7; }
.book-heading h2 { font-size:clamp(32px,8vw,48px); line-height:1.3; letter-spacing:-1.5px; margin:18px 0; }
.book-heading>p:last-child { font-size:16px; line-height:1.8; }
.book-showcase { background:var(--grey); border:2px solid var(--ink); box-shadow:5px 6px 0 var(--ink); padding:30px 22px; text-align:center; }
.book-showcase>img { width:230px; max-width:86%; margin:auto; filter:drop-shadow(5px 9px 7px #0002); }
.book-details { margin-top:22px; }
.book-details h3 { font-size:29px; letter-spacing:-1px; }
.book-subtitle { font-size:16px; font-weight:700; margin-top:8px; }
.book-author { font-size:13px; margin-top:14px; }
.book-synopsis { padding:52px 0 36px; text-align:center; }
.book-synopsis h3 { font-size:clamp(25px,6.5vw,34px); letter-spacing:-1px; line-height:1.4; color:#c82f15; }
.book-synopsis p { font-size:16px; line-height:1.9; margin-top:22px; }
.book-synopsis>img { width:100%; border:2px solid var(--ink); margin-top:28px; }
.book-synopsis .book-reading { font-weight:700; }
.book-purchase { text-align:center; border-top:2px solid var(--ink); padding:32px 0; }
.book-purchase h3 { font-size:clamp(23px,5.5vw,30px); letter-spacing:-1px; line-height:1.45; margin:9px 0 24px; }
.purchase-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-width:560px; margin-inline:auto; }
.purchase-links a { text-decoration:none; min-width:0; min-height:72px; padding:12px 4px; border-width:1px; border-radius:10px; }
.purchase-links .store-label { display:grid; gap:5px; font-size:clamp(11px,3.2vw,16px); line-height:1.45; }
.purchase-links .store-label strong { font-size:inherit; white-space:nowrap; }
.purchase-links .store-label>span { font-size:clamp(11px,3vw,14px); line-height:1.4; font-weight:600; }
.store-yes24 { background:#dde6ee; color:#304e68; border-color:#aabcca; }
.store-aladin { background:#efdee3; color:#774253; border-color:#cbaeb8; }
.store-kyobo { background:#e0e7d9; color:#435c38; border-color:#adbea2; }
.purchase-links a:hover { box-shadow:2px 3px 0 #121d2320; }
.purchase-note { color:#62676a; font-size:12px; margin-top:16px; }
.book-footer { text-align:center; }
.book-footer .book-credit { margin-top:14px; }
@media(min-width:600px) {
  .book-showcase { display:flex; align-items:center; gap:30px; padding:36px; text-align:left; }
  .book-showcase>img { width:240px; margin:0; }
  .book-details { margin:0; }
}
.result-share {
  background:var(--accent);
  color:white;
}
.book-credit {
  font-size:11px;
  color:#62676a;
  text-align:center;
  margin-top:28px;
  line-height:1.7;
}
dialog {
  width:min(calc(100% - 32px),430px);
  border:2px solid var(--ink);
  border-radius:16px;
  background:var(--paper);
  color:var(--ink);
  padding:24px;
  box-shadow:7px 7px 0 #0002;
}
dialog::backdrop {
  background:#111d2399;
}
.dialog-heading {
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
}
.dialog-heading h2 {
  font-size:20px;
  line-height:1.5;
}
#share-description {
  font-size:15px;
  line-height:1.7;
  margin:15px 0 20px;
}
dialog label {
  font-size:13px;
  font-weight:700;
}
#share-url {
  width:100%;
  margin:8px 0 16px;
  padding:12px;
  border:1px solid #898d90;
  border-radius:6px;
  font-size:14px;
  background:white;
  color:var(--ink);
}
#copy-status {
  font-size:13px;
  line-height:1.6;
  margin-top:13px;
  min-height:21px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.noscript {
  padding:20px;
  text-align:center;
  background:var(--paper);
}
@keyframes comic-pop {
  0% {
    opacity:0;
    transform:translateY(70px) scale(.82) rotate(calc(var(--tilt) * 3));
  }
  65% {
    opacity:1;
    transform:translateY(-5px) scale(1.025) rotate(var(--tilt));
  }
  100% {
    opacity:1;
    transform:translateY(0) scale(1) rotate(var(--tilt));
  }
}
@keyframes nudge {
  50% {
    transform:translateY(6px);
  }
}
@media(min-width:800px) {
  .home {
    padding:36px;
  }
  .home-inner {
    gap:22px;
  }
  .quiz {
    padding:40px 24px;
  }
  .result {
    padding:36px;
  }
  .story-scene {
    min-height:90svh;
  }
  .comic-story {
    padding:0 40px;
  }
  .comic-cut>img {
    max-height:440px;
  }
  .comic-caption {
    padding:26px 32px;
  }
  .comic-caption h3 br {
    display:none;
  }
}
@media(max-width:360px) {
  .home {
    padding:20px;
  }
  .home h1 {
    letter-spacing:-1px;
  }
  .quiz {
    padding:18px 16px;
  }
  .answer {
    padding:13px 12px;
    font-size:15px;
    gap:12px;
  }
  .comic-story {
    padding:0 20px;
  }
  .comic-caption {
    padding:20px;
  }
  .story-header {
    font-size:14px;
  }
  .result-card {
    padding-left:0;
    padding-right:0;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
  .story-scene.pending .comic-cut {
    opacity:1;
    transform:none;
  }
  .comic-cut {
    transform:none;
  }
}
