:root {
  --bg: #f4f1fb;
  --surface: #ffffff;
  --text: #24212e;
  --muted: #7a7590;
  --line: #e9e5f5;
  --primary: #7c5cff;
  --primary-soft: #efeaff;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(60, 40, 140, 0.08);
  --accent: #7c5cff; /* 테스트별 색상으로 바뀜 */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

/* 모바일 화면 기준 폭. PC에서는 가운데 정렬로 보여요. */
.container { max-width: 520px; margin: 0 auto; padding: 0 16px 40px; min-height: 70vh; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 241, 251, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .logo {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; margin: 0 auto; padding: 14px 16px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.logo-mark { font-size: 20px; }
.logo-sub { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.site-footer { text-align: center; font-size: 13px; color: var(--muted); padding: 24px 16px 40px; }
.site-footer p { margin: 4px 0; }
.site-footer a { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------- 홈 ---------- */
.hero { padding: 20px 4px 8px; }
.hero h1 { font-size: 26px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -0.03em; }
.hero p { margin: 0; color: var(--muted); }

.test-grid { display: grid; gap: 14px; margin-top: 20px; }

.test-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.test-card:active { transform: scale(0.98); }
@media (hover: hover) { .test-card:hover { transform: translateY(-2px); } }
.test-card .thumb {
  flex: 0 0 72px; height: 72px; border-radius: 18px;
  display: grid; place-items: center; font-size: 40px;
}
.test-card h3 { margin: 0 0 2px; font-size: 17px; letter-spacing: -0.02em; }
.test-card p { margin: 0; font-size: 14px; color: var(--muted); }
.test-card .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* PC처럼 넓은 화면에서는 카드를 2열로 */
@media (min-width: 720px) {
  .container { max-width: 760px; }
  .site-header .logo { max-width: 760px; }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .narrow { max-width: 520px; margin: 0 auto; }
}

/* ---------- 공통 카드 / 버튼 ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 14px 18px;
  border-radius: 16px; font-weight: 700; font-size: 17px;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line); }
.btn-row { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- 테스트 소개 ---------- */
.intro { text-align: center; padding-top: 16px; }
.intro .big-emoji {
  width: 140px; height: 140px; margin: 8px auto 16px; border-radius: 40px;
  display: grid; place-items: center; font-size: 76px;
}
.intro h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.03em; line-height: 1.35; }
.intro .desc { color: var(--muted); margin: 0 0 6px; white-space: pre-line; }
.intro .meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ---------- 질문 ---------- */
.quiz-top { display: flex; align-items: center; gap: 12px; padding: 12px 0 8px; }
.back-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; display: grid; place-items: center; }
.back-btn:hover { background: var(--line); }
.progress { flex: 1; height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.3s ease; }
.progress-label { font-size: 13px; color: var(--muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

.question { padding: 24px 4px 20px; }
.question .qnum { color: var(--accent); font-weight: 800; font-size: 15px; }
.question h2 { font-size: 22px; line-height: 1.45; margin: 6px 0 0; letter-spacing: -0.02em; white-space: pre-line; }

.answers { display: grid; gap: 10px; }
.answer {
  width: 100%; text-align: left; padding: 18px; border-radius: 16px;
  background: var(--surface); border: 2px solid transparent; box-shadow: var(--shadow);
  font-size: 16px; line-height: 1.5; transition: border-color 0.12s, transform 0.12s;
}
.answer:active { transform: scale(0.98); }
@media (hover: hover) { .answer:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); } }
.answer.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white); }

.fade-in { animation: fadeIn 0.3s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 로딩 ---------- */
.loading { text-align: center; padding: 80px 0; }
.loading .spinner {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  border: 6px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 결과 ---------- */
.friend-banner {
  margin-top: 12px; padding: 12px 16px; border-radius: 14px;
  background: var(--primary-soft); font-size: 14px; text-align: center;
}
.result-head { text-align: center; padding: 20px 0 8px; }
.result-head .label { font-size: 14px; color: var(--muted); }
.result-head .big-emoji { font-size: 96px; line-height: 1.1; margin: 10px 0; }
.result-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; color: var(--accent); }
.result-head .summary { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 4px; }
.tag { padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, white); color: color-mix(in srgb, var(--accent) 80%, black); }

.result-body { margin-top: 16px; }
.result-body h3 { font-size: 16px; margin: 0 0 10px; }
.result-body ul { margin: 0; padding-left: 20px; }
.result-body li { margin-bottom: 8px; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.match a { display: block; background: var(--surface); border-radius: 16px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.match .m-label { font-size: 12px; color: var(--muted); }
.match .m-emoji { font-size: 34px; line-height: 1.3; }
.match .m-name { font-size: 14px; font-weight: 700; }

.share-title { text-align: center; font-weight: 700; margin: 28px 0 12px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ic-insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.insta-save {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 16px;
  background: var(--surface); border: 2px solid #e8a3c9; border-radius: 16px; text-align: left; box-shadow: var(--shadow);
}
.insta-save .ic-insta { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.insta-save b { display: block; font-size: 15px; color: #24212e; }
.insta-save small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 0; }
.share-btn .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.ic-kakao { background: #fee500; color: #3c1e1e; }
.ic-link { background: #e9e5f5; }
.ic-x { background: #111; color: #fff; }
.ic-image { background: color-mix(in srgb, var(--accent) 20%, white); }

.section-title { font-size: 18px; margin: 36px 0 12px; letter-spacing: -0.02em; }

/* ---------- 대표 이미지 카드 (순정만화 등) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.feature-card {
  display: block; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease;
}
.feature-card:active { transform: scale(0.98); }
@media (hover: hover) { .feature-card:hover { transform: translateY(-2px); } }
.feature-card .cover { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--line); }
.feature-card .body { padding: 12px 14px 14px; }
.feature-card h3 { margin: 6px 0 2px; font-size: 15px; line-height: 1.4; letter-spacing: -0.02em; }
.feature-card .meta { font-size: 12px; color: var(--muted); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; color: #fff; font-size: 12px; font-weight: 700; }
.mini-badge { font-size: 12px; font-weight: 700; }
/* 올린 지 7일 이내 표시 */
.new-badge { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 99px; background: #ff4d6d; color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.5; vertical-align: middle; }
.rcc-over .new-badge { margin: 0 6px 0 0; padding: 4px 10px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.test-card img.thumb { object-fit: cover; }
.test-grid.one-col { grid-template-columns: 1fr; }

.intro-cover { display: block; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; margin: 4px auto 16px; border-radius: 24px; box-shadow: var(--shadow); }
.intro .badge { margin-bottom: 8px; }
.btn-text { color: var(--muted); font-weight: 600; font-size: 15px; min-height: 44px; }

/* 배경 이미지가 있는 질문 */
.q-hero {
  position: relative; display: flex; align-items: flex-end;
  height: min(44vh, 400px); min-height: 240px; margin: 8px 0 16px;
  border-radius: var(--radius); overflow: hidden;
  background-color: var(--line); background-size: cover; background-position: center;
  box-shadow: var(--shadow);
}
.q-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20, 14, 40, 0) 35%, rgba(20, 14, 40, 0.78) 100%);
}
.q-hero-text { position: relative; z-index: 1; padding: 20px; color: #fff; }
.q-hero-text .qnum { font-weight: 800; font-size: 15px; opacity: 0.9; }
.q-hero-text h2 { margin: 4px 0 0; font-size: 21px; line-height: 1.45; letter-spacing: -0.02em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }

/* 캐릭터 결과 */
.rich-head { text-align: center; margin-top: 12px; padding: 20px 16px 24px; }
.rich-head .label { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.rich-head .char-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 16px; background: var(--line); }
.rich-head .role { margin-top: 18px; font-weight: 700; color: var(--accent); font-size: 15px; }
.rich-head h1 { margin: 2px 0 0; font-size: 34px; letter-spacing: -0.03em; }
/* 캐릭터 대사: 테마색으로 크게 */
.rich-head .quote {
  margin: 16px 4px 4px; padding: 14px 18px;
  font-size: 19px; font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; word-break: keep-all;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
  border-radius: 18px;
}
.rich-head .quote .qm { font-size: 26px; line-height: 0; vertical-align: -0.2em; opacity: 0.45; margin: 0 2px; }
.rich-sec { margin-top: 14px; }
.rich-sec h3 { margin: 0 0 10px; font-size: 16px; color: var(--accent); }
.rich-sec p { margin: 0; }
.rich-sec ul { margin: 0; padding-left: 20px; }
.rich-sec li { margin-bottom: 8px; }
.rich-sec li:last-child { margin-bottom: 0; }
/* 다크판타지: 필살기·약점 강조 */
.dark-skill { background: linear-gradient(160deg, #2a1620, #1b1018); color: #f3e6ea; border: 1px solid #5a2a36; }
.dark-skill h3 { color: #ffb3c0; }
.dark-weak { border-left: 4px solid #7a1f2b; }
.love { margin: 0; }
.love dt { font-weight: 700; font-size: 14px; margin-top: 12px; }
.love dt:first-child { margin-top: 0; }
.love dd { margin: 2px 0 0; }
.heart-list { list-style: none; padding-left: 0 !important; }
.heart-list li { position: relative; padding-left: 24px; }
.heart-list li::before { content: "💗"; position: absolute; left: 0; font-size: 14px; top: 2px; }
.strength-list b { display: block; }
.catch p { font-size: 18px; font-weight: 700; text-align: center; padding: 4px 0; }

.match-list { display: grid; gap: 10px; }
.match-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.match-card img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.match-card .m-label { font-size: 12px; color: var(--muted); }
.match-card .m-name { font-weight: 800; font-size: 16px; }
.match-card .m-name .muted { font-weight: 500; font-size: 13px; }
.match-card p { margin: 4px 0 0; font-size: 14px; color: #4a4560; }
/* 최고의 궁합 = 핑크, 잘 맞는 궁합 = 하늘색, 안 맞는 궁합 = 회색 */
.match-card.best { background: #fff0f6; border: 2px solid #f06fa5; }
.match-card.good { background: #eef8ff; border: 2px solid #5bb8f0; }
.match-card.bad { background: #f3f3f5; border: 2px solid #a3a3ad; }
.match-card.best img { box-shadow: 0 0 0 3px #f06fa5; }
.match-card.good img { box-shadow: 0 0 0 3px #5bb8f0; }
.match-card.bad img { box-shadow: 0 0 0 3px #a3a3ad; }
.match-card.best .m-label, .match-card.good .m-label, .match-card.bad .m-label {
  display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.match-card.best .m-label { background: #e0569b; }
.match-card.good .m-label { background: #3a9fdc; }
.match-card.bad .m-label { background: #8a8a94; }

/* ---------- 광고 자리 ---------- */
.ad-slot {
  margin: 20px 0; min-height: 100px; border-radius: 12px;
  border: 1.5px dashed #c9c3dd; color: #a49fb8; font-size: 13px;
  display: grid; place-items: center;
}

/* ---------- 토스트 / 모달 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: rgba(30, 27, 40, 0.92); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 100;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 16, 35, 0.6);
  display: grid; place-items: center; padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 20px; padding: 18px; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; text-align: center; }
.modal-box img { width: 100%; border-radius: 12px; display: block; }
.modal-box p { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* ---------- 개인정보처리방침 등 문서 페이지 ---------- */
.doc { padding-top: 16px; }
.doc h1 { font-size: 24px; }
.doc h2 { font-size: 17px; margin-top: 24px; }
.doc p, .doc li { font-size: 15px; color: #444; }

/* ==================== 심리 분석 레포트 ==================== */
.home-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px 0 4px;
  background: var(--surface); padding: 4px; border-radius: 14px; box-shadow: var(--shadow);
}
.home-tabs a {
  text-align: center; padding: 10px 8px; border-radius: 11px; font-weight: 700; font-size: 15px; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.home-tabs a.on { background: var(--accent); color: #fff; }

.report-grid { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 720px) { .report-grid { grid-template-columns: 1fr 1fr; } }
.report-card {
  display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); border-left: 5px solid var(--rc); transition: transform 0.15s ease;
}
.report-card:active { transform: scale(0.98); }
@media (hover: hover) { .report-card:hover { transform: translateY(-2px); } }
.rc-thumb { flex: 0 0 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 34px;
  background: color-mix(in srgb, var(--rc) 14%, white); }
.rc-series { font-size: 12px; font-weight: 800; color: var(--rc); }
.report-card h3 { margin: 2px 0; font-size: 17px; letter-spacing: -0.02em; }
.report-card p { margin: 0; font-size: 14px; color: var(--muted); }
.report-card .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.rp-soon { text-align: center; font-size: 14px; margin-top: 18px; }

/* 사진 썸네일이 있는 레포트 카드 */
.report-cover-card {
  display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.15s ease;
}
.report-cover-card:active { transform: scale(0.98); }
@media (hover: hover) { .report-cover-card:hover { transform: translateY(-2px); } }
.rcc-img { position: relative; aspect-ratio: 4 / 5; background: var(--line); }
.rcc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rcc-over {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 110px 20px 22px; color: #fff;
  background: linear-gradient(to top, rgba(22, 14, 20, 0.92) 0%, rgba(22, 14, 20, 0.7) 45%, rgba(22, 14, 20, 0) 100%);
}
.rcc-over .rc-series {
  display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 13px; letter-spacing: 0.02em;
  color: #fff; background: var(--rc);
}
.rcc-over h3 {
  margin: 10px 0 0; font-family: "Nanum Myeongjo", "Batang", serif; font-size: 31px; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.03em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  text-wrap: balance; /* 한 글자만 다음 줄로 떨어지지 않게 */
}
@media (min-width: 720px) { .rcc-over h3 { font-size: 28px; } }
.rcc-body { padding: 14px 18px 16px; }
.rcc-body p { margin: 0; font-size: 14px; color: var(--text); }
.rcc-body .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.rp-intro-cover {
  display: block; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover;
  margin: 4px auto 18px; border-radius: 24px; box-shadow: var(--shadow);
}

/* ---------- 테마: 심리 분석 레포트 (차분한 아이보리 + 명조체) ---------- */
body, .site-header { transition: background-color 0.35s ease; }
body.theme-report {
  --bg: #f6f0ea;
  --surface: #fffcf9;
  --text: #2b2428;
  --muted: #8c7f82;
  --line: #ece2da;
  --shadow: 0 6px 24px rgba(80, 50, 40, 0.08);
}
body.theme-report .site-header { background: rgba(246, 240, 234, 0.92); }
body.theme-report .logo-mark { filter: grayscale(0.2); }
body.theme-report .hero h1 { font-family: "Nanum Myeongjo", "Batang", "AppleMyungjo", serif; font-weight: 700; font-size: 23px; line-height: 1.5; }
body.theme-report .intro h1 { font-family: "Nanum Myeongjo", "Batang", "AppleMyungjo", serif; }
body.theme-report .home-tabs a.on { background: #3e2c38; }

.rp-notice { margin: 22px 0 0; font-size: 12px; line-height: 1.6; color: #9a95ad; text-align: left; white-space: pre-line; }
/* 한 화면 척도 문항 (번아웃 리포트 Q6~Q10) */
.rp-scale { display: grid; gap: 12px; margin-top: 18px; }
.rp-scale-row { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.rp-scale-row p { margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.rp-scale-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rp-scale-btn { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; letter-spacing: -0.04em; line-height: 1.3; white-space: nowrap; cursor: pointer; }
@media (max-width: 360px) { .rp-scale-btn { font-size: 11px; } }
.rp-scale-btn.selected { background: var(--accent, #c0643a); border-color: var(--accent, #c0643a); color: #fff; font-weight: 700; }
/* 번아웃 단계 표시 */
.bo-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 14px; }
.bo-step span { display: block; height: 8px; border-radius: 99px; background: var(--line); }
.bo-step.past span { background: #e9b48f; }
.bo-step.on span { background: #c0643a; }
.bo-sub { display: inline-block; margin-top: 6px; padding: 4px 14px; border-radius: 99px; background: #fbefe7; color: #a4502b; font-size: 15px; font-weight: 800; }
.rp-result .bo-step b { background: none !important; }
.bo-step b { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.bo-step.on b { color: #c0643a; font-weight: 800; }
.bo-line { padding: 10px 12px; border-radius: 12px; background: #fbefe7; color: #7a3f22; font-size: 14px; }
.bo-help { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #f3eef5; color: #5d5266; font-size: 12px; line-height: 1.6; }

.rp-part { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line); padding: 2px 10px; border-radius: 99px; margin-bottom: 8px; }
.rp-hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.answers.multi .answer { padding-left: 50px; position: relative; }
.answers.multi .answer::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 6px; border: 2px solid var(--line); background: #fff;
}
.answers.multi .answer.selected::before { border-color: var(--accent); background: var(--accent); }
.answers.multi .answer.selected::after {
  content: ""; position: absolute; left: 25px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.rp-text input {
  width: 100%; font: inherit; font-size: 17px; padding: 16px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); outline: none;
}
.rp-text input:focus { border-color: var(--accent); }
.rp-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

.rp-result { padding-top: 8px; }
.rp-hero { text-align: center; padding: 32px 8px 36px; }
.rp-series { font-size: 13px; font-weight: 700; color: var(--accent); }
.rp-type-label { margin-top: 36px; font-size: 16px; color: var(--muted); }
.rp-type { font-size: 34px; margin: 4px 0 0; letter-spacing: -0.03em; }
/* 소제목: 여운이 남도록 위아래를 넉넉히 띄우고 명조(바탕) 계열 글씨체로 */
.rp-quote {
  font-family: "Nanum Myeongjo", "Batang", "AppleMyungjo", serif;
  font-size: 19px; font-weight: 700; line-height: 1.7; letter-spacing: -0.01em;
  margin: 40px 8px 44px; color: #3a2f45;
}
.rp-quote::before, .rp-quote::after {
  content: ""; display: block; width: 28px; height: 1px; margin: 0 auto; background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.rp-quote::before { margin-bottom: 22px; }
.rp-quote::after { margin-top: 22px; }
.rp-summary { margin: 0; color: #4a4560; line-height: 1.85; text-align: left; }
.rp-sec { margin-top: 14px; }
.rp-sec h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: -0.02em; }
.rp-sec p { margin: 0 0 12px; line-height: 1.8; color: #3a3550; }
.rp-sec p:last-child { margin-bottom: 0; }
.rp-sec b { color: var(--text); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 22%, transparent) 62%); }
.rp-patterns { display: grid; gap: 10px; }
.rp-pattern { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; opacity: 0.6; }
.rp-pattern.mine { opacity: 1; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, white); }
.rp-p-name { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.rp-chip { font-size: 11px; color: #fff; background: var(--accent); padding: 2px 8px; border-radius: 99px; }
.rp-p-who { font-size: 14px; margin-top: 4px; }
.rp-p-said { font-size: 13px; color: var(--muted); margin-top: 6px; }
.rp-p-said span { display: block; font-size: 11px; font-weight: 700; }

.rp-banner { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fff6e5; color: #7a5a12; font-size: 14px; line-height: 1.6; }

.rp-lock {
  margin-top: 18px; border-radius: var(--radius); padding: 22px 18px; color: #fff;
  background: linear-gradient(160deg, #2b2340, #43284a);
  box-shadow: 0 10px 30px rgba(40, 20, 60, 0.25);
}
.rp-lock-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.rp-lock-head > span { font-size: 28px; }
.rp-lock-head b { display: block; font-size: 19px; }
.rp-lock-head small { color: rgba(255,255,255,0.7); font-size: 13px; }
.rp-lock-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.rp-lock-list li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.rp-lock-list li:first-child { border-top: 0; }
.rp-n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.14); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.rp-lock-list b { display: block; font-size: 15px; }
.rp-lock-list small { display: block; color: rgba(255,255,255,0.68); font-size: 13px; margin-top: 2px; }
.rp-peek { margin-top: 8px; font-size: 13px; background: rgba(255,255,255,0.08); border-radius: 10px; padding: 8px 10px; color: rgba(255,255,255,0.9); }
.rp-blur { filter: blur(5px); user-select: none; font-weight: 800; }
.rp-buy { background: #ff6f9d; box-shadow: 0 8px 22px rgba(255, 111, 157, 0.4); font-size: 16px; line-height: 1.4; }
.rp-price { text-align: center; font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 8px; }

.rp-sources { margin-top: 18px; font-size: 13px; color: var(--muted); }
.rp-sources summary { cursor: pointer; font-weight: 700; }
.rp-sources ul { padding-left: 18px; margin: 10px 0 0; }
.rp-sources li { margin-bottom: 6px; }
.rp-sources li b { display: block; color: #5a556c; }
.rp-disclaimer { font-size: 12px; color: #9a95ad; margin: 14px 0 0; }

/* ---------- 순위형 레포트 (취미) ---------- */
.hb-note { font-size: 13px !important; color: var(--muted) !important; margin-top: 14px !important; }
.hb-title { font-size: 20px; margin: 30px 4px 4px; letter-spacing: -0.02em; }
.hb-title small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.hb-card { margin-top: 14px; position: relative; }
.hb-rank { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 800; color: var(--accent); font-size: 14px; }
.hb-rank span { font-size: 26px; line-height: 1; }
.hb-card h3 { margin: 4px 0 10px; font-size: 21px; letter-spacing: -0.02em; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.hb-chips span { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 9%, white); color: var(--text); }
.hb-card h4 { margin: 16px 0 4px; font-size: 14px; color: var(--accent); }
.hb-card p { margin: 0; line-height: 1.75; font-size: 15px; color: #3a3550; }
.hb-link {
  display: block; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, white); color: var(--accent);
}
.hb-link small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.hb-fit { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg); font-size: 14px; }
.hb-fit b { display: block; font-size: 13px; margin-bottom: 4px; }
.hb-fit ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.hb-ok { margin-top: 8px; color: #2f8f5b; font-weight: 700; font-size: 13px; }
.hb-cons { margin-top: 10px; color: #a0522d; }
.hb-cons b { color: #a0522d; }
.hb-cons span { display: block; font-size: 13px; line-height: 1.6; }
.hb-cons span::before { content: "· "; }
.hb-pitch { margin: 0 0 14px; font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.88); }
.hb-lock-list { list-style: none; padding: 0; margin: 0 0 14px; }
.hb-lock-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.hb-lock-list li:first-child { border-top: 0; }
.hb-lrank { flex: 0 0 34px; font-weight: 800; color: #ffd3e2; }
.hb-lock-ic { margin-left: auto; opacity: 0.8; }
.hb-benefits { margin: 0 0 18px; padding: 12px 14px 12px 32px; border-radius: 12px; background: rgba(255,255,255,0.08); font-size: 13px; line-height: 1.8; }
.hb-blocked .btn { margin-top: 12px; }

.rp-soon-box { padding: 26px 22px 20px; }
.rp-soon-ic { font-size: 40px; }
.rp-soon-box h3 { margin: 8px 0 0; }
.rp-soon-box .btn { margin-top: 18px; }

/* 주문 확인 */
.co-box { padding: 22px 20px 14px; text-align: left; }
.co-box h3 { margin: 0 0 14px; text-align: center; }
.co-rows { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.co-row { display: flex; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.co-row:last-child { border-bottom: 0; }
.co-row span { flex: 0 0 64px; color: var(--muted); }
.co-row b { flex: 1; font-weight: 600; color: var(--text); word-break: keep-all; }
.co-total b { font-size: 18px; font-weight: 800; color: var(--accent); }
.co-agree { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--text); cursor: pointer; }
.co-agree input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--accent); }
.modal-box p.co-links { margin: 6px 0 0 26px; font-size: 12px; }
.co-links a { color: var(--muted); }
.co-box .btn { width: 100%; margin-top: 14px; }
.co-box .btn-text { margin-top: 4px; }
#co-pay:disabled { opacity: 0.45; cursor: not-allowed; }

.biz-info { margin-top: 12px; }
.biz-info .biz { font-size: 12px; text-decoration: none; }
