@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,500&display=swap");

:root {
  --ink: #232025;
  --paper: #F4F2EC;
  --paper-raised: #FFFFFF;
  --line: #E4E1D8;
  --muted: #767268;
  --accent: #463F52;
  --accent-soft: #EAE6F0;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 60px -20px rgba(35, 32, 37, 0.25);
  --font-display: "Fraunces", "Pretendard", serif;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Gowun Dodum', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Gowun Dodum', sans-serif;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(70,63,82,0.05), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(226,84,61,0.05), transparent 45%);
  min-height: 100vh;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: 100vh;
}

button { font-family: inherit; }

/* ---------------------------------------------------------- */
/* Shared                                                      */
/* ---------------------------------------------------------- */
.screen { animation: fadeUp 0.45s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(35,32,37,0.45);
}
.btn-primary:not([disabled]):hover { box-shadow: 0 14px 30px -8px rgba(35,32,37,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:not([disabled]):hover { background: var(--paper-raised); }

/* ---------------------------------------------------------- */
/* Intro                                                       */
/* ---------------------------------------------------------- */
.intro-screen { padding-top: 24px; }

.brand-mark { display: flex; align-items: baseline; gap: 10px; margin-bottom: 28px; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.brand-full { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero-desc {
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.intro-dots { display: flex; gap: 10px; margin-bottom: 36px; }
.intro-dots .dot { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }

.intro-dots {
  display: none;
}

.name-field { margin-bottom: 28px; }
.name-field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.name-field input {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
.name-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-start { width: 100%; padding: 18px; font-size: 16px; margin-bottom: 16px; }

.question-count-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------- */
/* Quiz                                                         */
/* ---------------------------------------------------------- */
.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.progress-label { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.question-text {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 10px;
}

.question-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 24px; }

.option-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option-btn:hover { border-color: #cfcabf; }
.option-btn:active { transform: scale(0.995); }

.option-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
}

.option-btn.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.option-btn.is-selected .option-badge { background: #fff; color: var(--ink); }

.option-label { flex: 1; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------------------------------------------------------- */
/* Result                                                       */
/* ---------------------------------------------------------- */
.result-screen { padding-top: 8px; }

.result-card {
  position: relative;
  width: 794px;
  min-height: 1123px;
  margin: 0 auto;

  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 44px 30px 40px;
}



.result-content {
  position: relative;
  z-index: 1;
}

.result-card.is-exporting {
  box-shadow: none;
  max-width: none;
}

.result-content { position: relative; z-index: 1; }

.result-prefix { /*님을 가장 잘 나타낸 색은*/
    color: #888787 !important;
   position: relative;
   
    top: 190px;   /* 아래 */
    left: 54px;  /* 오른쪽 */

    font-size: 26px; /* 글자 크기 */
    font-weight: 600; /* 굵기 */
    letter-spacing: -0mm;

    
}

/* 원형 이미지(.swatch-circle)와 색상 이름(.swatch-name)은 세로로 쌓여있는
   flex 레이아웃(.color-swatch-lg) 안에 들어있지만, 둘 다 position:relative +
   top/left 오프셋을 쓰고 있어서 서로 영향 없이 각각 따로 움직일 수 있습니다.
   - 이미지만 옮기고 싶으면 .swatch-circle 의 top/left 값을 바꾸세요.
   - "Yellow" 같은 색 이름 글자만 옮기고 싶으면 .swatch-name 의 top/left 값을 바꾸세요.
   (양수 top = 아래로, 음수 top = 위로 / 양수 left = 오른쪽, 음수 left = 왼쪽) */
.swatch-circle-sm {
  display: none;
}
.swatch-circle { /*대표색이미지*/
  width: 100px;
  height: 100px;
  object-fit: contain;

  position: relative;
  top: 157px;
  left: 17px;

  transform: scale(0.7);
}
.swatch-circle-sm { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }

.swatch-name { /*색이름*/
  position: relative;
  top: 105px;  /* 글자 위/아래 이동 (이미지와 겹치지 않게 위로 당겨둔 값) */
  left: 15px;   /* 글자 좌/우 이동 */

  font-size: 30px; /* 글자 크기 */
  font-family: 'Gowun Dodum', sans-serif; /* 글꼴 */
  font-weight: 600; /* 굵기 */
  letter-spacing: -0.1mm;
}

.result-quote { /*색에대한 한줄설명*/
  
 position: relative;
  top: 82px;   /* 아래 */
  left: 111px;  /* 오른쪽 */

    font-size: 18px; /* 글자 크기 */
    font-weight: 500; /* 굵기 */
     letter-spacing: -0mm;

  color: var(--ink);
}

.result-desc { /*색에대한 긴 설명*/
 position: relative;
  top: 68px;   /* 아래 */
  left: 41px;  /* 오른쪽 */

   width: 690px; /* 글 영역 제한 */
  max-width: 690px;

    font-size: 17px; /* 글자 크기 */
    font-weight: 500; /* 굵기 */
     letter-spacing: -0.1mm;

  color: #888787;
  word-break: keep-all;  text-align: left;
  
  
}

.simple-text-block {
  position: relative;

      font-size: 20px; /* 글자 크기 */
          font-weight: 500; /* 굵기 */
     letter-spacing: -0.1mm;

  color: #888787;

  top: 90px !important;
  left: 40px !important;

  margin-bottom: 48px;

}

.keyword-box { /*대표키워드*/
  position: relative;
  top: px;
  left: 40px;
}


.strength-box { /*장점*/
  position: relative;
  top: 500px;
  left: 40px;
}


.growth-box { /*성장포인트*/
  position: relative;
  top: 500px;
  left: 40px;
}


.chip-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.chip-row {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
}

.chip {
  font-size: 15px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.twocol-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.secondary-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.secondary-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.secondary-row img { /*후위색이미지*/
  display:block;
  width:85px;
  height:85px;
    object-fit: contain;

  position:relative;
  top:78px;
  left:25px;

  transform: scale(0.7);
}
.secondary-text { display: flex; flex-direction: column; gap: 4px; } /*함께 컬러*/
.secondary-name {
  font-family: 'Gowun Dodum', sans-serif; /* 글꼴 */
  font-weight: 900;
  font-size: 25px;
            font-weight: 600; /* 굵기 */

  position: relative;
  top: 102px;
  left: 0px;
  letter-spacing: -0.1mm;
}
.secondary-desc { /*함께 컬러 설명*/
  font-family: 'Gowun Dodum', sans-serif; /* 글꼴 */
  font-weight: 500;
  font-size: 18px;
  position: relative;
  top: 106px;
  left: -55px;
  letter-spacing: 0.1mm;
  color: #9b9b9a; /* 글자색 */
  
}
.radar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
}
.radar-box { display: flex; justify-content: center; margin-bottom: 30px; }
.radar-box svg { max-width: 280px; }

.remember-note {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.result-actions .btn { flex: 1; }

.keyword-text {
  font-size: 15px;
  margin: 0;
  line-height: 1.8;
}

.user-name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.result-desc {
  white-space: pre-line;
}
/* ---------------------------------------------------------- */
/* Responsive                                                   */
/* ---------------------------------------------------------- */
@media (max-width: 480px) {
  #app { padding: 28px 16px 60px; }
  .hero-title { font-size: 32px; }
  .question-text { font-size: 22px; }
  .result-card { padding: 32px 18px 28px; }
  .twocol-block { grid-template-columns: 1fr; }
  .swatch-circle { width: 88px; height: 88px; }
  .swatch-name { font-size: 26px; }
}

@media (min-width: 640px) {
  #app { padding-top: 60px; }
}

/* ================= 결과 색상에 따른 자동 글자색 ================= */
/* renderResult()에서 결과 색상(primary)의 hex 값을
   .result-content 에 --dynamic-color 로 세팅합니다.
   Yellow가 나오면 이 값이 자동으로 노란색(#EFAA2E)이 되는 식입니다. */
.swatch-name,
.result-quote {
  color: var(--dynamic-color, var(--ink));
  transition: color 0.3s ease;
}