:root {
  --bg: #fffaf0;        /* 아이보리 */
  --sky: #dcf0fb;       /* 연한 하늘색 */
  --lavender: #ece5ff;  /* 연보라 */
  --card: #ffffff;
  --text: #2a2640;
  --muted: #6f6a85;
  --line: #ece6f3;
  --main: #6c4df6;
  --main-soft: #eeeaff;
  --accent: #ff7a9a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, var(--sky) 0, transparent 45%),
    radial-gradient(circle at 100% 35%, var(--lavender) 0, transparent 40%),
    radial-gradient(circle at 0% 100%, var(--sky) 0, transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.screen { display: none; min-height: 100vh; padding: 24px 16px; }
.screen.active { display: flex; justify-content: center; }

/* ---------- 버튼 ---------- */
.primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--main), #9b6bff);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(108, 77, 246, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(108, 77, 246, 0.35); }

/* ---------- 백구 ---------- */
.baekgu img { display: block; width: 100%; height: auto; }
.baekgu-lg { width: 320px; max-width: 88%; }
.baekgu-md { width: 120px; flex: none; }
.baekgu-sm { width: 84px; flex: none; }
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.bubble {
  position: relative;
  background: var(--card);
  border: 2px solid var(--lavender);
  border-radius: 18px;
  padding: 10px 18px;
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--main);
  box-shadow: 0 6px 18px rgba(108, 77, 246, 0.08);
  word-break: keep-all;
}
/* 아래쪽 꼬리 (첫 화면) */
.bubble::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -9px;
  width: 14px; height: 14px;
  background: var(--card);
  border-right: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
  transform: translateX(-50%) rotate(45deg);
}
/* 왼쪽 꼬리 (문항·결과 화면) */
.bubble-left::after {
  left: -9px; top: 50%; bottom: auto;
  border: none;
  border-left: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
  transform: translateY(-50%) rotate(45deg);
}

.guide { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

/* ---------- 첫 화면 ---------- */
.home-wrap {
  max-width: 640px;
  width: 100%;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
}
.badge {
  margin-top: 8px;
  background: var(--sky);
  color: #2f7fae;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
}
/* 크고 둥글고 두꺼운 제목 */
.title {
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 12vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #3a2b66;
  -webkit-text-stroke: 1.5px #3a2b66;
  text-shadow: 0 5px 0 #d9ceff, 0 10px 18px rgba(108, 77, 246, 0.18);
  word-break: keep-all;
}

/* 백구 무대: 말랑한 3D 느낌의 둥근 원 */
.stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 4px 0 4px;
}
.stage-circle {
  position: absolute;
  left: 50%; top: 40px;
  width: 270px; height: 270px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #e4f3fc 38%, #cfe3fb 70%, #c6d2ff 100%);
  box-shadow:
    inset -14px -18px 30px rgba(120, 110, 220, 0.18),
    inset 10px 12px 24px rgba(255, 255, 255, 0.9),
    0 18px 40px rgba(108, 77, 246, 0.15);
}
.stage .baekgu { position: relative; z-index: 1; margin-bottom: -6px; }
.stage-bubble {
  position: absolute; z-index: 2;
  top: 0; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.coin {
  position: absolute; z-index: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Jua", sans-serif; font-size: 22px; color: #c98a00;
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd84d 55%, #f2b400);
  box-shadow: inset -3px -4px 6px rgba(180, 110, 0, 0.35), inset 3px 3px 5px rgba(255, 255, 255, 0.8), 0 6px 12px rgba(200, 140, 0, 0.25);
  animation: bob 3s ease-in-out infinite;
}
.coin-1 { left: 6%; top: 90px; transform: rotate(-12deg); }
.coin-2 { right: 7%; top: 70px; width: 36px; height: 36px; font-size: 18px; animation-delay: -1s; }
.coin-3 { right: 16%; top: 150px; width: 28px; height: 28px; font-size: 14px; animation-delay: -2s; }
.sub { font-size: 18px; font-weight: 700; color: var(--main); }
.sub2 { font-size: 15px; color: var(--muted); margin-top: -8px; word-break: keep-all; }

/* 말랑한 3D 버튼 (첫 화면 · 결과 화면 공통) */
.clay-btn {
  font-family: "Jua", "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 22px;
  padding: 16px 40px 18px;
  background: linear-gradient(180deg, #8a6bff, #6c4df6);
  box-shadow:
    inset 0 -6px 0 rgba(40, 20, 140, 0.25),
    inset 0 4px 8px rgba(255, 255, 255, 0.35),
    0 12px 26px rgba(108, 77, 246, 0.35);
}
.start-btn {
  margin-top: 8px;
  width: 100%;
  max-width: 360px;
  font-size: 24px;
  padding: 18px 24px 20px;
  animation: glow 2.4s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.products { width: 100%; margin-top: 24px; }
.products-title { font-family: "Jua", sans-serif; font-weight: 400; font-size: 24px; color: #3a2b66; margin-bottom: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 12px 16px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  font: inherit; color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(108, 77, 246, 0.06), 0 8px 18px rgba(40, 30, 90, 0.06);
  transition: transform 0.15s, border-color 0.15s;
}
.product:hover { transform: translateY(-2px); }
.product.ready { border-color: #c9bcff; background: linear-gradient(180deg, #fff, var(--main-soft)); }
.product.soon { background: linear-gradient(180deg, #fff, #f3f9fd); cursor: default; }
.product.soon .p-icon { opacity: 0.75; }
.p-icon {
  font-size: 30px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 4px;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--bg) 55%, #f3e9d6);
  box-shadow: inset -3px -4px 8px rgba(160, 130, 80, 0.15), 0 4px 10px rgba(40, 30, 90, 0.06);
}
.product strong { font-family: "Jua", sans-serif; font-weight: 400; font-size: 19px; }
.p-desc { font-size: 13px; color: var(--muted); word-break: keep-all; }
.p-tag {
  margin-top: 6px;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: #eef1f4; color: #7a8190;
}
.p-tag.free { background: var(--main); color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--text); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  width: max-content; max-width: calc(100% - 32px); text-align: center; word-break: keep-all;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 질문 화면 ---------- */
.quiz-wrap { max-width: 600px; width: 100%; margin: 0 auto; padding-top: 16px; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.back-btn {
  border: none; background: none; cursor: pointer; padding: 6px 0;
  font-family: "Jua", sans-serif; font-size: 18px; color: var(--muted);
}
.back-btn:disabled { opacity: 0.3; cursor: default; }
.count { font-family: "Jua", sans-serif; font-size: 20px; color: var(--main); }
.progress {
  height: 14px; background: #fff; border-radius: 999px; overflow: hidden; margin-bottom: 18px;
  box-shadow: inset 0 2px 4px rgba(40, 30, 90, 0.1);
}
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #9fd4f0, var(--main));
  box-shadow: inset 0 3px 3px rgba(255, 255, 255, 0.45);
  transition: width 0.3s;
}

/* 질문 화면의 백구 안내 */
.quiz-guide {
  background: linear-gradient(135deg, var(--sky), var(--lavender));
  border-radius: 24px;
  padding: 8px 14px 8px 8px;
  box-shadow: inset 0 -4px 0 rgba(108, 77, 246, 0.06);
}
.quiz-guide .bubble { flex: 1; }

.q-card {
  background: var(--card); border-radius: 28px; padding: 30px 22px;
  box-shadow: inset 0 -6px 0 rgba(108, 77, 246, 0.05), 0 12px 30px rgba(40, 30, 90, 0.07);
}
.q-card.enter { animation: slide 0.15s ease; }
@keyframes slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-text {
  font-family: "Jua", "Noto Sans KR", sans-serif; font-weight: 400;
  font-size: 24px; line-height: 1.45; color: #3a2b66;
  margin-bottom: 24px; word-break: keep-all;
}

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 13px 16px 15px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  font-family: "Jua", "Noto Sans KR", sans-serif; font-size: 19px; color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(108, 77, 246, 0.06);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.option:hover { border-color: #b9aefb; }
.option:active { transform: translateY(2px); }
.option.selected { border-color: var(--main); background: var(--main-soft); }
.dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px; color: var(--main);
  background: radial-gradient(circle at 35% 30%, #fff, var(--main-soft) 60%, #ddd4ff);
  box-shadow: inset -2px -3px 5px rgba(108, 77, 246, 0.15);
}
.option.selected .dot { background: var(--main); color: #fff; }

/* ---------- 결과 화면 ---------- */
.result-wrap { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.r-header { text-align: center; font-family: "Jua", sans-serif; font-size: 26px; color: #3a2b66; margin-top: 4px; }

/* 결과를 발견한 백구: 보라색 결과 카드 위에 올라앉는다 */
.finder { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: -46px; position: relative; z-index: 1; }
.finder-stage { position: relative; }
.finder .baekgu-md { width: 220px; }
.finder-tag {
  position: absolute; left: -8px; top: 6px; z-index: 2;
  font-family: "Jua", sans-serif; font-size: 18px; color: #fff;
  background: var(--accent); padding: 4px 12px 6px; border-radius: 999px;
  transform: rotate(-10deg);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 4px 10px rgba(255, 122, 154, 0.35);
}
.spark { position: absolute; color: #ffc93c; font-size: 22px; animation: twinkle 1.6s ease-in-out infinite; }
.sp-1 { right: -6px; top: 0; }
.sp-2 { right: 26px; top: -18px; font-size: 14px; animation-delay: -0.5s; }
.sp-3 { left: 30px; top: -16px; font-size: 16px; animation-delay: -1s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.card {
  background: var(--card); border-radius: 26px; padding: 24px;
  box-shadow: inset 0 -5px 0 rgba(108, 77, 246, 0.05), 0 10px 30px rgba(40, 30, 90, 0.06);
}
.card h3 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 23px; color: #3a2b66; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 15px; }

.hero {
  text-align: center; background: linear-gradient(135deg, #6c4df6, #a06bff); color: #fff;
  padding-top: 56px;
  box-shadow: inset 0 -8px 0 rgba(40, 20, 140, 0.18), inset 0 6px 14px rgba(255, 255, 255, 0.2), 0 14px 30px rgba(108, 77, 246, 0.3);
}
.hero .muted, .hero .small-label, .hero .type-en { color: rgba(255, 255, 255, 0.85); }
.small-label { font-size: 14px; }
.hero h2 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 48px; line-height: 1.2; margin: 4px 0 0; text-shadow: 0 4px 0 rgba(40, 20, 140, 0.25); }
.type-en { font-size: 13px; letter-spacing: 0.15em; margin-bottom: 8px; }
.hero-stats { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats > div {
  background: rgba(255, 255, 255, 0.15); border-radius: 14px; padding: 12px 18px;
  display: flex; flex-direction: column; min-width: 140px;
}
.hero-stats small { font-size: 12px; opacity: 0.85; }
.big { font-family: "Jua", sans-serif; font-size: 32px; }
.big::after { content: "점"; font-size: 16px; margin-left: 2px; }
.mid { font-family: "Jua", sans-serif; font-size: 20px; padding: 6px 0; word-break: keep-all; }
.nowrap { white-space: nowrap; }

.code-names { font-family: "Jua", sans-serif; font-size: 18px; color: #fff; margin: 2px 0 8px; }

/* ---------- 상세 결과 안내 (잠금) ---------- */
.locked-box {
  border: 2px solid #d9d1ff;
  background: linear-gradient(180deg, #fff, var(--main-soft));
  text-align: center;
}
.lock-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; text-align: left; }
.lock-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 12px 14px;
  box-shadow: inset 0 -3px 0 rgba(108, 77, 246, 0.05);
}
.lock-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--lavender) 60%, #d9ceff);
}
.lock-list strong { display: block; font-family: "Jua", sans-serif; font-weight: 400; font-size: 18px; color: #3a2b66; }
.lock-list small { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; word-break: keep-all; }
.pay-btn { width: 100%; max-width: 360px; font-size: 21px; padding: 16px 12px 18px; white-space: nowrap; }
.pay-btn:disabled { opacity: 0.7; cursor: wait; }
.pay-note { font-size: 13px; color: var(--muted); margin-top: 10px; word-break: keep-all; }
.pay-notice {
  margin: -4px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff1f4; border: 1px solid #ffc9d6; color: #b4234a;
  font-size: 14px; font-weight: 500; text-align: left; word-break: keep-all;
}
.pay-notice[hidden] { display: none; }

/* ---------- 기다리는 화면 ---------- */
.waiting-wrap {
  max-width: 420px; width: 100%; margin: auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.waiting-wrap .baekgu-md { width: 200px; }
.waiting-wrap .bubble::after { display: none; }
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 4px solid var(--lavender); border-top-color: var(--main);
  animation: spin 0.9s linear infinite;
}
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 상세 결과 ---------- */
.detail { display: flex; flex-direction: column; gap: 16px; }
.detail .hero { padding-top: 28px; }
.detail[hidden], .modal[hidden] { display: none; }
.detail-title { text-align: center; font-family: "Jua", sans-serif; font-size: 24px; color: #3a2b66; margin-top: 8px; }
.sub-h { font-family: "Jua", sans-serif; font-weight: 400; font-size: 18px; color: #3a2b66; margin-top: 24px; }
.jobs-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- 상세 결과: 7개 섹션 긴 해설 ---------- */
.dev-banner {
  background: #fff4d6; border: 1px dashed #e0b84a; color: #7a5a00;
  border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: center;
}
.dev-banner[hidden] { display: none; }
.report-tools { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.text-btn {
  border: none; background: none; cursor: pointer; padding: 4px 2px;
  font-family: "Jua", sans-serif; font-size: 16px; color: var(--main);
}
.report { display: flex; flex-direction: column; gap: 12px; }
.report-sec {
  background: var(--card); border-radius: 24px;
  box-shadow: inset 0 -5px 0 rgba(108, 77, 246, 0.05), 0 10px 30px rgba(40, 30, 90, 0.06);
  overflow: hidden;
}
.report-sec summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px;
}
.report-sec summary::-webkit-details-marker { display: none; }
.sec-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--lavender) 60%, #d9ceff);
}
.sec-head { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sec-head small { font-size: 12px; color: var(--muted); font-weight: 500; }
.sec-head strong { font-family: "Jua", sans-serif; font-weight: 400; font-size: 21px; line-height: 1.3; color: #3a2b66; word-break: keep-all; }
.chev {
  flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid #b3abc9; border-bottom: 2px solid #b3abc9;
  transform: rotate(45deg); transition: transform 0.2s;
}
.report-sec[open] .chev { transform: rotate(-135deg); }
.sec-body { padding: 0 20px 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.75; word-break: keep-all; }
.sec-guide { display: flex; align-items: center; gap: 10px; }
.sec-guide img { width: 64px; flex: none; }
.sec-guide .bubble { font-size: 15px; padding: 8px 14px; }
.lead { font-size: 16.5px; line-height: 1.85; }
.soft-note { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.small { font-size: 13.5px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 13px; font-weight: 700; color: var(--main); background: var(--main-soft); padding: 3px 10px; border-radius: 999px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.score-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Jua", sans-serif; font-size: 17px; color: #3a2b66;
  background: var(--main-soft); padding: 4px 12px; border-radius: 999px;
}
.score-chip b { font-weight: 400; color: var(--main); }
.score-chip.low { background: #eef1f4; color: #5a6070; font-size: 15px; }
.score-chip.low b { color: #7a8190; }
.scene {
  background: var(--bg); border-left: 4px solid #c9bcff;
  border-radius: 0 14px 14px 0; padding: 10px 14px; font-size: 15px;
}
.scene-label { display: block; font-family: "Jua", sans-serif; font-size: 14px; color: var(--main); margin-bottom: 2px; }
.sec-body .sub-h { margin-top: 10px; }
.sec-body .bars { margin-top: 4px; }
.low-item { display: flex; flex-direction: column; gap: 8px; }
.moment-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.moment-list li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 14px; font-size: 15px;
}
.moment-list.up li { background: #eef8fd; }
.moment-list.down li { background: #f6f3f8; }
.moment-list em { font-style: normal; font-size: 12px; color: var(--muted); }
.axis { background: var(--bg); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.axis-scale { display: flex; align-items: center; gap: 10px; font-family: "Jua", sans-serif; font-size: 15px; color: #3a2b66; }
.axis-track { position: relative; flex: 1; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #cfe3fb, #ece5ff); }
.axis-track i {
  position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%;
  background: var(--main); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(108, 77, 246, 0.4);
  transform: translate(-50%, -50%);
}
.axis-title { font-family: "Jua", sans-serif; font-size: 18px; color: #3a2b66; margin-top: 4px; }
.axis p { font-size: 14.5px; }
.good, .cost { display: inline-block; font-family: "Jua", sans-serif; font-weight: 400; font-size: 13px; padding: 1px 8px; border-radius: 999px; margin-right: 4px; }
.good { background: #e3f4ea; color: #2f7a4b; }
.cost { background: #fdeee6; color: #a55220; }
.notice-box { background: #fff8e1; border: 1px solid #f3dc97; border-radius: 14px; padding: 10px 14px; font-size: 14px; color: #6b5a1e; }
.job-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job-head strong { font-family: "Jua", sans-serif; font-weight: 400; font-size: 19px; color: #3a2b66; }
.example-tag { flex: none; font-size: 12px; font-weight: 700; color: #8a6d12; background: #fff1c2; padding: 2px 8px; border-radius: 999px; }
.job-from { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.job-card p { font-size: 14.5px; }
.job-card b { font-weight: 700; color: #3a2b66; }
.q-list { padding-left: 0; list-style: none; counter-reset: q; display: flex; flex-direction: column; gap: 10px; }
.q-list li { counter-increment: q; background: var(--bg); border-radius: 14px; padding: 12px 14px 12px 50px; position: relative; font-size: 15px; }
.q-list li::before {
  content: "Q" counter(q); position: absolute; left: 12px; top: 12px;
  font-family: "Jua", sans-serif; color: var(--main); font-size: 17px;
}
.exp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-list li { border: 1px dashed #c9bcff; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.day { align-self: flex-start; font-family: "Jua", sans-serif; font-size: 14px; color: #fff; background: var(--accent); padding: 1px 10px 3px; border-radius: 999px; }

/* ---------- 결제 전 맛보기 (1번 공개 · 나머지 첫 문장 + 흐림) ---------- */
.locked-area { display: flex; flex-direction: column; gap: 14px; }
.locked-area[hidden] { display: none; }
.teaser-head { text-align: center; padding: 8px 4px 0; }
.teaser-kicker { font-family: "Jua", sans-serif; font-size: 15px; color: var(--accent); }
.teaser-head h3 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 26px; color: #3a2b66; }
.free-badge {
  align-self: flex-start; font-family: "Jua", sans-serif; font-size: 13px; color: #2f7a4b;
  background: #e3f4ea; padding: 2px 10px 3px; border-radius: 999px;
}
.teaser-open { border: 2px solid #c9e9d6; }
.teaser-first { font-size: 15.5px; }
.blur-wrap { position: relative; border-radius: 16px; overflow: hidden; margin-top: -4px; }
.blur-text {
  filter: blur(5px); user-select: none; pointer-events: none;
  color: #6b6784; font-size: 15px; line-height: 1.8; padding: 4px 2px;
}
.blur-lock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.85) 55%);
  text-align: center; padding: 12px;
}
.blur-lock span { font-family: "Jua", sans-serif; font-size: 16px; color: #3a2b66; }
.small-pay { font-size: 17px; padding: 11px 22px 13px; }
.cta-card {
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 2px solid #d9d1ff; background: linear-gradient(180deg, #fff, var(--main-soft));
}
.cta-kicker { font-family: "Jua", sans-serif; font-size: 15px; color: var(--accent); }
.cta-card h3 { font-size: 23px; word-break: keep-all; line-height: 1.35; }
.cta-list { list-style: none; text-align: left; width: 100%; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 6px; }
.cta-list li {
  position: relative; padding: 8px 12px 8px 34px; background: #fff; border-radius: 12px;
  font-size: 14.5px; word-break: keep-all; border: 1px solid var(--line);
}
.cta-list li::before { content: "🔓"; position: absolute; left: 10px; top: 8px; font-size: 14px; }
.sticky-pay {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 250, 240, 0), rgba(255, 250, 240, 0.95) 35%);
}
.sticky-pay[hidden] { display: none; }
.sticky-pay .primary-btn { width: 100%; max-width: 420px; font-size: 21px; padding: 15px 16px 17px; }
.result-wrap { padding-bottom: 110px; }
.owner-notice { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.owner-notice[hidden], .pay-btn[hidden], .pay-note[hidden] { display: none; }
.owner-notice p {
  font-size: 14.5px; word-break: keep-all; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
/* 다른 브라우저의 결과: 섹션 안 결제 버튼 숨김 */
.not-owner .blur-lock .pay-trigger { display: none; }

/* ---------- 무료 이벤트 ---------- */
.event-banner {
  margin-top: 8px; width: 100%; max-width: 420px;
  background: linear-gradient(135deg, #ffe066, #ffb3c4); color: #5a2a00;
  border-radius: 999px; padding: 10px 16px;
  font-family: "Jua", sans-serif; font-size: 16px; word-break: keep-all;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.06), 0 6px 14px rgba(255, 150, 120, 0.3);
}
.event-banner[hidden], .event-result-note[hidden] { display: none; }
.event-result-note {
  background: #fff4d6; border: 1px solid #f3dc97; color: #6b5a1e;
  border-radius: 14px; padding: 10px 14px; font-size: 14px; text-align: center; word-break: keep-all;
}

/* ---------- 무료 결과 첫 카드 ---------- */
.free-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-headline { font-family: "Jua", sans-serif; font-size: 20px; line-height: 1.4; word-break: keep-all; color: #fff; }
.free-hero h2 { font-size: 44px; }
.hero-persona { font-size: 15.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.95); word-break: keep-all; text-align: left; margin-top: 6px; }
.hero-interests { font-size: 13.5px; color: rgba(255, 255, 255, 0.85); margin-top: 4px; }

/* ---------- 직업 카드 · 운세 · 돈 버는 스타일 ---------- */
.job-from-tag { flex: none; font-size: 11.5px; font-weight: 700; color: var(--main); background: var(--main-soft); padding: 2px 8px; border-radius: 999px; }
.job-hook { font-size: 15px !important; color: #3a2b66; font-weight: 500; }
.job-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 4px; }
.job-stats > div { background: var(--bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.job-stats small { font-size: 12px; color: var(--muted); }
.job-stats em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }
.stars { font-size: 18px; color: #ffb400; letter-spacing: 1px; }
.stars i { font-style: normal; color: #e3dcef; }
.salary { font-family: "Jua", sans-serif; font-size: 19px; color: var(--main); white-space: nowrap; }
.fortune { background: var(--bg); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.fortune-if { font-family: "Jua", sans-serif; font-size: 17px; color: #3a2b66; }
.scene.caution { border-left-color: #f3c08b; }
.scene.caution .scene-label { color: #a55220; }
.salary-line { font-size: 14px; color: var(--main); font-weight: 700; }

/* ---------- 결제 후: 공유 · 보관 ---------- */
.keep-card { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; margin-top: 18px; }
.keep-card[hidden] { display: none; }
.keep-kicker { font-family: "Jua", sans-serif; font-size: 20px; color: #3a2b66; }
.kakao-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 16px; padding: 14px 16px 16px; cursor: pointer; text-decoration: none;
  font-family: "Jua", sans-serif; font-size: 19px; color: #191600;
  background: #fee500;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08), 0 6px 14px rgba(254, 229, 0, 0.35);
}
.kakao-btn.light { background: #fff8c2; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.05); font-size: 17px; }
.kakao-btn:disabled { opacity: 0.55; cursor: default; }
.kakao-btn[hidden] { display: none; }
.outline-btn {
  border: 2px solid #d9d1ff; background: #fff; border-radius: 16px; padding: 12px 16px; cursor: pointer;
  font-family: "Jua", sans-serif; font-size: 17px; color: var(--main);
}
.outline-btn:disabled { opacity: 0.55; cursor: default; }
.keep-hint { font-size: 13px; color: var(--muted); word-break: keep-all; }
.keep-divider { height: 1px; background: var(--line); margin: 6px 0; }
.saved-box { font-size: 14.5px; background: #e3f4ea; color: #2f7a4b; border-radius: 14px; padding: 12px; }
.saved-box[hidden], #save-box[hidden] { display: none; }
.saved-box a { color: #2f7a4b; font-weight: 700; }
.my-link { margin-top: -4px; text-decoration: none; }

/* 공유 카드 화면 */
.share-wrap, .my-wrap {
  max-width: 440px; width: 100%; margin: auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 20px 0 40px;
}
.share-kicker { font-family: "Jua", sans-serif; font-size: 17px; color: var(--accent); }
.share-card {
  width: 100%; border-radius: 28px; padding: 26px 20px 30px; color: #fff;
  background: linear-gradient(135deg, #6c4df6, #a06bff);
  box-shadow: inset 0 -8px 0 rgba(40, 20, 140, 0.18), 0 14px 30px rgba(108, 77, 246, 0.3);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.share-card .baekgu-md { width: 200px; margin-bottom: 6px; }
.share-label { font-size: 15px; opacity: 0.85; }
.share-card h2 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 44px; line-height: 1.2; }
.share-nickname { font-family: "Jua", sans-serif; font-size: 19px; word-break: keep-all; }

/* 내 보관함 */
.my-title { font-family: "Jua", sans-serif; font-weight: 400; font-size: 32px; color: #3a2b66; }
#my-login { display: flex; flex-direction: column; gap: 12px; width: 100%; }
#my-login[hidden], #my-empty[hidden], #my-logout[hidden], #my-notice[hidden], #my-login-off[hidden] { display: none; }
.my-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.my-item {
  display: flex; flex-direction: column; gap: 2px; text-align: left; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: inset 0 -4px 0 rgba(108, 77, 246, 0.05);
}
.my-item strong { font-family: "Jua", sans-serif; font-weight: 400; font-size: 21px; color: var(--main); }
.my-item span { font-size: 14.5px; }
.my-item small { font-size: 12px; color: var(--muted); }

/* ---------- 판매자 정보 · 안내 페이지 ---------- */
.dev-unlock-btn {
  width: 100%; max-width: 360px; cursor: pointer;
  border: 2px dashed #e0b84a; background: #fff8e1; color: #7a5a00; border-radius: 14px;
  padding: 10px 12px; font-family: "Jua", sans-serif; font-size: 15px;
}
.dev-unlock-btn[hidden] { display: none; }
.pay-legal { font-size: 12.5px; color: var(--muted); word-break: keep-all; margin-top: -2px; }
.pay-legal a { color: var(--main); }
.site-footer {
  max-width: 640px; margin: 0 auto; padding: 24px 16px 120px;
  font-size: 12.5px; line-height: 1.8; color: var(--muted); word-break: keep-all;
}
.site-footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.footer-links a { color: #3a2b66; text-decoration: none; }
.footer-note { margin-top: 8px; }
.need { color: inherit; font-weight: inherit; }
.legal-body { min-height: 100vh; }
.legal-page { max-width: 720px; margin: 0 auto; padding: 24px 16px 0; display: flex; flex-direction: column; gap: 18px; line-height: 1.75; word-break: keep-all; }
.legal-page h1 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 32px; color: #3a2b66; }
.legal-page h2 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 21px; color: #3a2b66; margin-bottom: 6px; }
.legal-page section { background: #fff; border-radius: 20px; padding: 18px 18px; box-shadow: 0 8px 24px rgba(40, 30, 90, 0.05); }
.legal-page p, .legal-page li, .legal-page td { font-size: 15px; }
.legal-back { color: var(--main); text-decoration: none; font-family: "Jua", sans-serif; font-size: 17px; }
.legal-note { font-size: 13.5px !important; color: var(--muted); margin-top: 6px; }
.draft-banner { background: #fff4d6; border: 1px dashed #e0b84a; color: #7a5a00; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.draft-banner[hidden] { display: none; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 9px 6px; border-bottom: 1px solid var(--line); }
.info-table th { width: 34%; font-size: 14px; color: #3a2b66; font-weight: 700; }
.info-table small { color: var(--muted); }
.plain-list { padding-left: 20px; }
@media (max-width: 480px) {
  .info-table th, .info-table td { display: block; width: 100%; padding: 6px 2px; }
  .info-table th { border-bottom: none; padding-top: 10px; }
}

/* ---------- 결제 안내 창 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(42, 38, 64, 0.45);
}
.modal-box {
  width: 100%; max-width: 360px;
  background: var(--bg); border-radius: 28px;
  padding: 24px 22px 26px; text-align: center;
  box-shadow: 0 20px 50px rgba(40, 30, 90, 0.25);
}
.modal-baekgu { width: 170px; margin: 0 auto 8px; }
.modal-box h3 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 24px; color: #3a2b66; }
.modal-box p { font-size: 15px; color: var(--muted); margin: 8px 0 20px; word-break: keep-all; }

.bars { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 36px; align-items: center; gap: 10px; }
.bar-label { font-size: 15px; font-weight: 500; line-height: 1.2; }
.bar-label small { display: block; font-size: 11px; color: var(--muted); }
.bar-track { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: #b9aefb; border-radius: 999px; transition: width 0.8s ease; }
.bar-row.top .bar-fill { background: linear-gradient(90deg, var(--main), var(--accent)); }
.bar-row.top .bar-label { color: var(--main); font-weight: 700; }
.bar-value { text-align: right; font-weight: 700; font-size: 14px; }

.summary { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.summary p { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 15px; word-break: keep-all; }

.jobs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jobs li { background: var(--main-soft); color: var(--main); font-weight: 500; padding: 8px 14px; border-radius: 999px; font-size: 15px; }

.disclaimer {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--main-soft);
  border: 1px solid #d9d1ff;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px; font-weight: 500; color: var(--text);
  word-break: keep-all;
}
.disclaimer-icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--main); color: #fff;
  font-size: 12px; font-weight: 700; font-style: italic;
  margin-top: 1px;
}
#restart-btn { align-self: center; }

@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .stage { height: 290px; }
  .stage-circle { width: 230px; height: 230px; top: 44px; }
  .baekgu-lg { width: 280px; }
  .q-card { padding: 24px 16px; }
  .q-text { font-size: 21px; margin-bottom: 20px; }
  .option { font-size: 17px; padding: 11px 14px 13px; }
  .bar-row { grid-template-columns: 80px 1fr 32px; }
  .hero h2 { font-size: 40px; }
  .hero-stats > div { min-width: 0; flex: 1; padding: 12px; }
  .finder .baekgu-md { width: 190px; }
  .bubble { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .bob, .start-btn, .coin { animation: none; }
}

/* ---------- 9,900원 심층 리포트 안내 카드 ---------- */
.deep-card { margin-top: 18px; border: 2px solid var(--main-soft); background: linear-gradient(180deg, #f6f3ff, #fff 70%); }
.deep-kicker { color: var(--main); font-weight: 700; font-size: 14px; }
.deep-card h3 { margin: 6px 0 10px; line-height: 1.4; }
.deep-price { text-align: center; margin: 12px 0 0; font-size: 18px; }
.deep-price s { color: var(--muted); font-size: 15px; margin-right: 4px; }
.deep-price b { color: var(--accent); }
.deep-btn { display: block; text-align: center; text-decoration: none; margin-top: 12px; }