/* 천지신명 타로 웹 스토어 — wolhasaju.today 레퍼런스에서 추출한 토큰 기반.
   bg #0c0c14 · 카드 #1a1a2e · 악센트 violet-600 #7c3aed · 폰트 Wanted Sans Variable */

:root {
  --bg: #0c0c14;
  --bg-deep: #08080d;
  --ink: #ededed;
  --violet: #7c3aed;
  --violet-hi: #8b5cf6;
  --violet-soft: #a78bfa;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.08);
  --card-r: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Wanted Sans Variable", "Wanted Sans", "Pretendard Variable", Pretendard,
    system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.wrap { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ─────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 20, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-head nav {
  max-width: 1024px; margin: 0 auto; padding: 0 16px;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.brand svg { display: block; }
.head-links { display: flex; align-items: center; gap: 4px; }
.head-links a, .head-links button {
  padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.65); transition: color 0.15s, background 0.15s;
}
.head-links a:hover, .head-links button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.btn-login {
  margin-left: 4px; padding: 7px 14px !important; border-radius: 10px;
  background: var(--violet); color: #fff !important; font-weight: 700 !important;
}
.btn-login:hover { background: var(--violet-hi) !important; }
@media (max-width: 640px) { .head-links .hide-m { display: none; } }

/* ── 프로모 배너 ───────────────────────────────── */
.promo { margin-top: 12px; }
.promo-card {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 16px 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 38% 75%, rgba(255,255,255,0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 63% 15%, rgba(255,255,255,0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 60%, rgba(255,255,255,0.5) 0 1px, transparent 1.6px),
    radial-gradient(circle at 93% 30%, rgba(255,255,255,0.35) 0 1px, transparent 1.4px),
    radial-gradient(120% 160% at 85% 0%, rgba(124, 58, 237, 0.28), transparent 55%),
    linear-gradient(100deg, rgba(124, 58, 237, 0.14), rgba(24, 18, 43, 0.6));
}
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.promo-inner > div:first-child { flex: 1 1 240px; min-width: 0; }
.promo-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.3); border: 1px solid rgba(167, 139, 250, 0.4);
  font-size: 11.5px; font-weight: 700; color: #ede9fe; margin-bottom: 8px;
}
.promo-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; line-height: 1.375; }
.promo-price .all { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.promo-price .was { font-size: 17px; color: rgba(255, 255, 255, 0.35); text-decoration: line-through; }
.promo-price .arrow { font-size: 17px; color: rgba(255, 255, 255, 0.4); }
.promo-price .now {
  font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(transparent 45%, rgba(139, 92, 246, 0.6) 45%);
  padding: 0 3px; border-radius: 2px;
}
.promo-sub { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.promo-sub b {
  font-weight: 700; color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(transparent 55%, rgba(139, 92, 246, 0.45) 55%);
  padding: 0 2px; border-radius: 2px;
}
.promo-cta {
  flex-shrink: 0; padding: 10px 16px; border-radius: 12px;
  background: var(--violet); color: #fff; font-size: 14px; font-weight: 700; transition: background 0.15s;
}
.promo-cta:hover { background: var(--violet-hi); }
@media (min-width: 640px) {
  .promo-card { padding: 16px 20px; }
  .promo-price .all { font-size: 17px; }
  .promo-price .was, .promo-price .arrow { font-size: 20px; }
  .promo-price .now { font-size: 30px; }
}

/* ── 카테고리 칩 ───────────────────────────────── */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px;
  max-width: 1024px; margin: 0 auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c, #8b5cf6) 45%, transparent);
  color: color-mix(in srgb, var(--c, #8b5cf6) 88%, #fff);
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: all 0.15s;
  background: color-mix(in srgb, var(--c, #8b5cf6) 8%, transparent);
}
.chip:hover { border-color: var(--c, #8b5cf6); background: color-mix(in srgb, var(--c, #8b5cf6) 16%, transparent); }

/* ── 피처드 캐러셀 ─────────────────────────────── */
.rail {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 12px;
  max-width: 1024px; margin: 0 auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.hero-card {
  position: relative; flex-shrink: 0; scroll-snap-align: center;
  width: 86%; max-width: 420px;
  border-radius: var(--card-r); overflow: hidden;
  border: 1px solid var(--line-strong); transition: border-color 0.2s;
}
.hero-card:hover { border-color: rgba(255, 255, 255, 0.25); }
@media (min-width: 640px) { .hero-card { width: 420px; } }
.hero-card .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-card .ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s;
}
.hero-card:hover .ph img { transform: scale(1.04); }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-deep) 0%, rgba(8, 8, 13, 0.6) 45%, transparent 100%); }
.badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #fff;
  backdrop-filter: blur(4px);
  background: color-mix(in srgb, var(--bc, #ec4899) 27%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc, #ec4899) 53%, transparent);
}
.hero-card .txt { position: absolute; inset: auto 0 0 0; padding: 20px; }
.hero-card .cat {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  margin-bottom: 8px; color: var(--c); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.hero-card h3 { font-size: 22px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 6px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.92); }
.hero-card p { font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9); }
@media (min-width: 640px) { .hero-card .txt { padding: 24px; } .hero-card h3 { font-size: 24px; } }

/* ── 상품 섹션 ─────────────────────────────────── */
.section-head { text-align: center; margin: 56px 0 32px; }
.section-head .eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--violet-soft); margin-bottom: 8px;
}
.section-head h2 { font-size: 24px; font-weight: 700; }
@media (min-width: 640px) { .section-head h2 { font-size: 30px; } }

.group { margin-bottom: 36px; }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.group-head .icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 16px; font-size: 24px; flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}
.group-head h3 { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.25; }
.group-head .desc { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-top: 2px; }
.group-head .count { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, 0.25); flex-shrink: 0; }
@media (min-width: 640px) { .group-head h3 { font-size: 20px; } }

.cards-row {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cards-row::-webkit-scrollbar { display: none; }
.p-card {
  position: relative; display: block; flex-shrink: 0; scroll-snap-align: start;
  width: 50vw; max-width: 200px;
  border-radius: var(--card-r); overflow: hidden;
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, transform 0.2s;
}
.p-card:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
@media (min-width: 640px) { .p-card { width: 180px; max-width: none; } }
.p-card .ph { position: relative; aspect-ratio: 2 / 3; overflow: hidden; }
.p-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.p-card:hover .ph img { transform: scale(1.05); }
.p-card .badge { top: 12px; right: 12px; }
.p-card .txt { position: absolute; inset: auto 0 0 0; padding: 14px; }
.p-card .cat {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  margin-bottom: 6px; color: var(--c); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.p-card .bullets {
  font-size: 11px; color: rgba(255, 255, 255, 0.55); line-height: 1.4; margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card h4 { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.25; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.p-card .reader { display: block; margin-top: 6px; font-size: 10px; color: rgba(255, 255, 255, 0.35); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85); }
.see-all { display: block; text-align: center; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.5); }
.see-all:hover { color: #fff; }

/* ── 점술사 소개 ───────────────────────────────── */
.readers-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px; max-width: 1024px; margin: 0 auto; scrollbar-width: none; }
.readers-rail::-webkit-scrollbar { display: none; }
.reader-card {
  flex-shrink: 0; width: 168px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-strong); background: #12121f;
  transition: border-color 0.2s, transform 0.2s;
}
.reader-card:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.reader-card .ph { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.reader-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.reader-card .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #12121f, transparent 40%); }
.reader-card .txt { padding: 0 14px 14px; margin-top: -6px; position: relative; }
.reader-card h4 { font-size: 15px; font-weight: 700; }
.reader-card .role { font-size: 11px; color: var(--violet-soft); margin-bottom: 6px; }
.reader-card p { font-size: 11px; color: rgba(255, 255, 255, 0.45); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 무료 맛보기 ───────────────────────────────── */
.teaser { padding: 24px 0 96px; scroll-margin-top: 80px; }
.teaser-head { max-width: 560px; margin: 0 auto 32px; text-align: center; }
.teaser-head .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  background: rgba(76, 29, 149, 0.3); border: 1px solid rgba(109, 40, 217, 0.3);
  color: #c4b5fd; font-size: 12px; font-weight: 500; margin-bottom: 20px;
}
.teaser-head h2 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 16px; }
.teaser-head h2 .hl { color: var(--violet-soft); }
.teaser-head p { color: rgba(255, 255, 255, 0.45); font-size: 15px; }
@media (min-width: 640px) { .teaser-head h2 { font-size: 30px; } }

.teaser-box { max-width: 448px; margin: 0 auto; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.q-chip {
  padding: 9px 15px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55); transition: all 0.15s;
}
.q-chip:hover { border-color: rgba(255, 255, 255, 0.25); }
.q-chip.on { background: var(--violet); border-color: var(--violet-hi); color: #fff; }
.draw-btn {
  display: block; width: 100%; padding: 14px; border-radius: 14px;
  background: var(--violet); color: #fff; font-size: 15px; font-weight: 700; transition: background 0.15s;
}
.draw-btn:hover { background: var(--violet-hi); }
.draw-btn:disabled { opacity: 0.4; cursor: default; }

.draw-stage { display: none; margin-top: 28px; }
.draw-stage.on { display: block; }
.draw-cards { display: flex; gap: 12px; justify-content: center; }
.t-card { width: 30%; max-width: 128px; perspective: 800px; cursor: pointer; }
.t-card .flip { position: relative; width: 100%; aspect-ratio: 2 / 3; transform-style: preserve-3d; transition: transform 0.6s; }
.t-card.open .flip { transform: rotateY(180deg); }
.t-card .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14);
}
.t-card .face img { width: 100%; height: 100%; object-fit: cover; }
.t-card .front { transform: rotateY(180deg); }
.t-card .front img.rv { transform: rotate(180deg); }
.t-card .pos { text-align: center; margin-top: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.draw-hint { text-align: center; margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.35); }
.draw-result { margin-top: 20px; display: grid; gap: 10px; }
.dr-item {
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
}
.dr-item .t { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.dr-item .nm { font-size: 14px; font-weight: 700; }
.dr-item .ori { font-size: 11px; color: var(--violet-soft); }
.dr-item .kw { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin-bottom: 6px; }
.dr-item .tx { font-size: 13px; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.dr-cta {
  display: block; text-align: center; margin-top: 16px; padding: 13px; border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.5); color: #ddd6fe; font-size: 14px; font-weight: 700;
  background: rgba(124, 58, 237, 0.12); transition: background 0.15s;
}
.dr-cta:hover { background: rgba(124, 58, 237, 0.25); }

/* ── 푸터 ─────────────────────────────────────── */
.site-foot { margin-top: auto; border-top: 1px solid var(--line); }
.site-foot .inner { max-width: 1024px; margin: 0 auto; padding: 32px 16px; text-align: center; }
.site-foot .links { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.35); margin-bottom: 12px; }
.site-foot .links a:hover { color: rgba(255, 255, 255, 0.6); }
.site-foot .tag { color: rgba(255, 255, 255, 0.2); font-size: 12px; margin-bottom: 12px; }
.site-foot .fine { color: rgba(255, 255, 255, 0.15); font-size: 11px; margin-top: 12px; }

/* ── 등장 애니메이션 ───────────────────────────── */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* ── 토스트 ────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(8px);
  z-index: 90; padding: 11px 18px; border-radius: 999px;
  background: rgba(30, 27, 50, 0.95); border: 1px solid rgba(139, 92, 246, 0.45);
  color: #ede9fe; font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══ 상품 상세 페이지 ══════════════════════════ */
.pd { max-width: 720px; margin: 0 auto; padding: 0 16px 120px; }
.pd-back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 12px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.pd-back:hover { color: #fff; }
.pd-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pd-meta .cat { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--c); }
.pd-meta .badge { position: static; }
.pd h1 { font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.pd .kicker { margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.4); }
@media (min-width: 640px) { .pd h1 { font-size: 34px; } }

.pd-hero { position: relative; margin: 24px 0; border-radius: var(--card-r); overflow: hidden; border: 1px solid var(--line-strong); }
.pd-hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 640px) { .pd-hero img { aspect-ratio: 16 / 12; object-position: center 30%; } }
.pd-hero .txt { position: absolute; inset: auto 0 0 0; padding: 24px; }
.pd-hero h2 { font-size: 24px; font-weight: 800; line-height: 1.3; white-space: pre-line; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95); }
@media (min-width: 640px) { .pd-hero h2 { font-size: 28px; } }
.pd-pitch { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, 0.75); }
.pd-bullets { margin-top: 12px; font-size: 13.5px; color: var(--violet-soft); font-weight: 600; }
.pd-greet {
  margin-top: 20px; padding: 14px 16px; border-radius: 14px;
  background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(139, 92, 246, 0.25);
  font-size: 13.5px; color: rgba(255, 255, 255, 0.8); line-height: 1.6;
}
.pd-greet b { color: #ddd6fe; }

.pd-cta {
  display: block; width: 100%; margin: 24px 0; padding: 15px; border-radius: 14px; text-align: center;
  background: var(--violet); color: #fff; font-size: 15.5px; font-weight: 700; transition: background 0.15s;
}
.pd-cta:hover { background: var(--violet-hi); }

.pd section { margin-top: 52px; }
.pd .sec-t { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.pd .sec-t small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--violet-soft); margin-bottom: 6px; }

.pd-came { display: grid; gap: 10px; }
.pd-came li {
  list-style: none; display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
  font-size: 14px; color: rgba(255, 255, 255, 0.75); line-height: 1.5;
}
.pd-came li::before { content: "✓"; color: var(--violet-soft); font-weight: 700; }
.pd-came-tail { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pd-stat {
  text-align: center; padding: 16px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
}
.pd-stat .v { font-size: 20px; font-weight: 800; color: #fff; }
.pd-stat .k { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }
.pd-deliver { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.65); }

.pd-toc { display: grid; gap: 6px; }
.pd-toc .ch {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line);
  font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.5;
}
.pd-toc .no { font-size: 12px; font-weight: 700; color: var(--violet-soft); flex-shrink: 0; }
.pd-toc .note {
  padding: 8px 16px 8px 46px; font-size: 12.5px; color: color-mix(in srgb, var(--c) 80%, #fff); line-height: 1.5;
}
.pd-toc-tail { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.4); line-height: 1.6; }

.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chips span {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: #ddd6fe;
}
.pd-chips-tail { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }

.pd-reader {
  display: flex; gap: 16px; padding: 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); align-items: center;
}
.pd-reader img { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.pd-reader .nm { font-size: 17px; font-weight: 800; }
.pd-reader .role { font-size: 12px; color: var(--violet-soft); margin: 2px 0 8px; }
.pd-reader p { font-size: 13px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.pd-reader .spec { margin-top: 8px; font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }
.pd-reader-tail { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

.pd-method { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .pd-method { grid-template-columns: 1fr; } }
.pd-method .m {
  padding: 15px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
}
.pd-method .m b { display: block; font-size: 14px; margin-bottom: 5px; }
.pd-method .m p { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); line-height: 1.6; }

.pd-calc { display: grid; gap: 7px; }
.pd-calc li {
  list-style: none; display: flex; gap: 10px; align-items: baseline;
  font-size: 13.5px; color: rgba(255, 255, 255, 0.7);
}
.pd-calc li::before { content: "◈"; font-size: 10px; color: var(--violet-soft); }

.pd-faq details {
  border: 1px solid var(--line-strong); border-radius: 14px; margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.pd-faq summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  display: flex; justify-content: space-between; align-items: center;
}
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "▾"; font-size: 11px; color: rgba(255, 255, 255, 0.35); transition: transform 0.2s; }
.pd-faq details[open] summary::after { transform: rotate(180deg); }
.pd-faq .a { padding: 0 16px 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; }

.pd-price { display: grid; gap: 12px; }
/* 카드는 하나다 — 웹은 구성(티어)을 고르지 않고 앱의 단건 상품 하나만 보여준다.
   2열로 두면 오른쪽 절반이 비므로 한 열로 두고 가운데에 세운다.
   (카드를 다시 둘로 늘릴 일이 생기면 `1fr 1fr` 로 되돌릴 것.) */
@media (min-width: 560px) {
  .pd-price { grid-template-columns: minmax(0, 380px); justify-content: center; }
}
.price-card {
  position: relative; padding: 22px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
}
.price-card.best { border-color: rgba(139, 92, 246, 0.55); background: rgba(124, 58, 237, 0.08); }
.price-card .tier { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.45); margin-bottom: 8px; }
.price-card.best .tier { color: var(--violet-soft); }
.price-card .flag {
  position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px;
  background: var(--violet); color: #fff; font-size: 11px; font-weight: 700;
}
.price-card .amount { font-size: 26px; font-weight: 800; }
.price-card .was2 { font-size: 13px; color: rgba(255, 255, 255, 0.3); text-decoration: line-through; margin-left: 6px; }
.price-card ul { margin: 12px 0 16px; display: grid; gap: 6px; }
.price-card li { list-style: none; font-size: 13px; color: rgba(255, 255, 255, 0.6); display: flex; gap: 8px; }
.price-card li::before { content: "·"; color: var(--violet-soft); font-weight: 800; }
.price-card button {
  width: 100%; padding: 11px; border-radius: 12px; font-size: 14px; font-weight: 700; transition: background 0.15s;
  background: rgba(255, 255, 255, 0.08);
}
.price-card button:hover { background: rgba(255, 255, 255, 0.14); }
.price-card.best button { background: var(--violet); }
.price-card.best button:hover { background: var(--violet-hi); }
.pd-price-tail { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.5); line-height: 1.7; }

.pd-close { margin-top: 48px; text-align: center; }
.pd-close p { font-size: 15px; color: rgba(255, 255, 255, 0.75); line-height: 1.8; }
.pd-close .em { margin-top: 10px; font-size: 16px; font-weight: 700; color: #fff; }

.pd-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .pd-related { grid-template-columns: 1fr; } }
.rel-card {
  padding: 15px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); transition: border-color 0.15s;
}
.rel-card:hover { border-color: rgba(255, 255, 255, 0.25); }
.rel-card b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.rel-card span { font-size: 11.5px; color: rgba(255, 255, 255, 0.45); line-height: 1.5; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  border-top: 1px solid var(--line); background: rgba(12, 12, 20, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sticky-bar .inner {
  max-width: 720px; margin: 0 auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.sticky-bar .info { flex: 1; min-width: 0; }
.sticky-bar .l1 { font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.sticky-bar .l2 { font-size: 16px; font-weight: 800; }
.sticky-bar .go {
  flex-shrink: 0; padding: 11px 22px; border-radius: 12px;
  background: var(--violet); color: #fff; font-size: 14.5px; font-weight: 700; transition: background 0.15s;
}
.sticky-bar .go:hover { background: var(--violet-hi); }

/* ══ 사주 맛보기(실계산) 전용 ══════════════════ */
.sj-form { display: grid; gap: 12px; }
.sj-row { display: flex; gap: 12px; }
.sj-input, .sj-select {
  width: 100%; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #fff; font-family: inherit;
  transition: border-color 0.15s; -moz-appearance: textfield;
}
.sj-input::-webkit-outer-spin-button, .sj-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sj-input:focus, .sj-select:focus { outline: none; border-color: rgba(139, 92, 246, 0.7); }
.sj-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.sj-select { appearance: none; -webkit-appearance: none; }
.sj-unit { position: relative; flex: 1; }
.sj-unit span {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: rgba(255, 255, 255, 0.25); pointer-events: none;
}
.sj-gender { display: flex; gap: 8px; }
.sj-gender button {
  padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.4); transition: all 0.15s;
}
.sj-gender button.on { background: var(--violet); border-color: var(--violet-hi); color: #fff; }

.sj-result { display: none; margin-top: 24px; }
.sj-result.on { display: block; }
.sj-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sj-pillar {
  text-align: center; padding: 14px 6px 12px; border-radius: 14px;
  background: rgba(124, 58, 237, 0.08); border: 1px solid rgba(139, 92, 246, 0.28);
}
.sj-pillar .lb { font-size: 10px; color: rgba(255, 255, 255, 0.35); margin-bottom: 6px; }
.sj-pillar .gz { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.sj-pillar .ss { margin-top: 5px; font-size: 10.5px; color: var(--violet-soft); }
.sj-pillar.empty { opacity: 0.45; }
.sj-line { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.7; text-align: center; }
.sj-line b { color: #fff; }
.sj-cards { margin-top: 14px; display: grid; gap: 10px; }
.sj-gauge { margin-top: 8px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.08); display: flex; }
.sj-gauge .help { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.sj-gauge .weaken { background: rgba(255, 255, 255, 0.16); }
.sj-gauge-lb { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* ══ 체크아웃(주문서) ══════════════════════════ */
.ck { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }
.ck-prod {
  display: flex; gap: 14px; align-items: center; margin: 20px 0 24px;
  padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
}
.ck-prod img { width: 64px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.ck-prod .cat { font-size: 11px; font-weight: 700; color: var(--c, #a78bfa); letter-spacing: 0.05em; }
.ck-prod h1 { font-size: 17px; font-weight: 800; line-height: 1.35; margin-top: 3px; }
.ck-prod .meta { margin-top: 5px; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.ck h2.sec { font-size: 15px; font-weight: 700; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.ck h2.sec .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 7px; font-size: 11px; font-weight: 800;
  background: rgba(124, 58, 237, 0.25); color: #ddd6fe;
}
.ck h2.sec small { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.35); }
.ck-hint { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.35); line-height: 1.6; }
.ck-tiers { display: grid; gap: 10px; }
@media (min-width: 560px) { .ck-tiers { grid-template-columns: 1fr 1fr; } }
.ck-tier {
  position: relative; display: block; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); border: 1.5px solid var(--line-strong);
  transition: border-color 0.15s, background 0.15s;
}
.ck-tier input { position: absolute; opacity: 0; }
.ck-tier.on { border-color: rgba(139, 92, 246, 0.75); background: rgba(124, 58, 237, 0.1); }
.ck-tier .t1 { font-size: 13px; font-weight: 700; }
.ck-tier .t2 { margin-top: 3px; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); line-height: 1.5; }
.ck-tier .pr { margin-top: 8px; font-size: 17px; font-weight: 800; }
.ck-tier .pr .was { font-size: 11.5px; color: rgba(255, 255, 255, 0.3); text-decoration: line-through; margin-left: 6px; font-weight: 600; }
.ck-agree {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 13px 15px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.6; cursor: pointer;
}
.ck-agree input { margin-top: 2px; accent-color: #7c3aed; }
.ck-cta {
  display: block; width: 100%; margin-top: 18px; padding: 15px; border-radius: 14px; text-align: center;
  background: var(--violet); color: #fff; font-size: 15.5px; font-weight: 800; transition: background 0.15s;
}
.ck-cta:hover { background: var(--violet-hi); }
.ck-cta:disabled { opacity: 0.45; cursor: default; }
.ck-fine { margin-top: 10px; text-align: center; font-size: 11.5px; color: rgba(255, 255, 255, 0.35); line-height: 1.6; }
.ck-err { margin-top: 12px; text-align: center; font-size: 12.5px; color: #f9a8d4; display: none; }

/* ══ 리포트 뷰어 ══════════════════════════════ */
body.report-page { background: #08070c; }
.rp-hero {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse 120% 75% at 50% -10%, #251c47 0%, #14111d 48%, #08070c 100%);
  padding: 34px 20px 44px;
}
.rp-hero .stars { position: absolute; inset: 0; pointer-events: none; }
.rp-hero .star { position: absolute; border-radius: 50%; }
.rp-hero .star.ice { background: #dce6ff; }
.rp-hero .star.gold { background: #f3d9a0; }
.rp-hero .star.tw { animation: rp-tw 3.2s ease-in-out infinite; }
@keyframes rp-tw { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .rp-hero .star.tw { animation: none; } }
.rp-hero-in { position: relative; max-width: 720px; margin: 0 auto; }
.rp-ovl {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.16em; font-weight: 700; color: #ddd6fe;
  background: rgba(124, 58, 237, 0.22); border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 8px; padding: 4px 10px; margin-bottom: 18px;
}
.rp-orb {
  width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
}
.rp-orb img { width: 100%; height: 100%; object-fit: cover; }
.rp-brand { font-size: 11.5px; letter-spacing: 0.2em; color: #a78bfa; font-weight: 700; }
.rp-title {
  font-family: "MaruBuri", "Noto Serif KR", serif; font-weight: 600;
  font-size: 24px; line-height: 1.4; color: #f4f1ff; margin-top: 10px; letter-spacing: -0.01em;
}
.rp-title .nm { color: #e9d5ff; }
.rp-sig {
  margin: 16px auto 0; max-width: 540px;
  font-family: "MaruBuri", "Noto Serif KR", serif; font-size: 17px; line-height: 1.8; color: #f4f1ff;
}
.rp-sig::before { content: "“ "; color: #c4b5fd; }
.rp-sig::after { content: " ”"; color: #c4b5fd; }
.rp-chips { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.rp-chip {
  font-size: 11.5px; font-weight: 600; color: #cbc4e6;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 6px 11px;
}
.rp-paper { background: #faf5ee; color: #33302b; padding: 30px 18px 170px; }
.rp-paper-in { max-width: 720px; margin: 0 auto; }
.rp-sechead {
  display: flex; align-items: baseline; gap: 10px; margin: 38px 0 14px;
}
.rp-sechead small { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: #7c5fd3; }
.rp-sechead b { font-size: 18px; font-weight: 800; color: #241c3f; }
.rp-ch { margin-top: 34px; }
.rp-ch-head { display: flex; align-items: baseline; gap: 10px; }
.rp-ch-no {
  font-family: "MaruBuri", "Noto Serif KR", serif;
  font-size: 13px; font-weight: 600; color: #8a76d8; flex-shrink: 0; letter-spacing: 0.08em;
}
.rp-ch-title {
  font-family: "MaruBuri", "Noto Serif KR", serif;
  font-size: 18.5px; font-weight: 600; color: #241c3f; line-height: 1.45;
}
.rp-ch-note {
  margin-top: 8px; padding: 9px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  background: rgba(124, 95, 211, 0.08); border: 1px solid rgba(124, 95, 211, 0.18); color: #5b4a9e;
}
.rp-md { margin-top: 12px; }
.rp-md p { font-size: 15.5px; line-height: 1.82; color: #37332c; margin: 0 0 15px; }
.rp-md ul { list-style: none; margin: 0 0 15px; padding-left: 8px; }
.rp-md li { position: relative; padding-left: 17px; font-size: 15px; line-height: 1.78; margin-bottom: 7px; }
.rp-md li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: #7c5fd3; opacity: 0.75;
}
.rp-md strong { color: #1c1b1f; }
.rp-md h3 { font-size: 15px; font-weight: 800; color: #5b3fae; margin: 20px 0 8px; }
.rp-md .term {
  color: #6742c9; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.rp-divider { display: flex; align-items: center; gap: 10px; margin: 30px 0 0; color: #c9a85b; }
.rp-divider::before, .rp-divider::after { content: ""; flex: 1; height: 1px; background: rgba(126, 99, 50, 0.25); }
.rp-divider span { font-size: 12px; }
.rp-reader {
  display: flex; gap: 14px; margin-top: 40px; padding: 16px; border-radius: 16px;
  background: #fff; border: 1px solid #e8e0d0; align-items: center;
}
.rp-reader img { width: 62px; height: 62px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.rp-reader .nm { font-size: 15px; font-weight: 800; color: #241c3f; }
.rp-reader .role { font-size: 11.5px; color: #7c5fd3; margin: 1px 0 6px; }
.rp-reader p { font-size: 12.5px; color: #6d6659; line-height: 1.6; }
.rp-meta { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(51, 48, 43, 0.12); font-size: 12px; color: #8d8578; line-height: 1.7; }
.rp-ask {
  margin-top: 36px; padding: 18px; border-radius: 16px;
  background: #fff; border: 1.5px solid rgba(124, 95, 211, 0.35);
}
.rp-ask .t { font-size: 15px; font-weight: 800; color: #241c3f; display: flex; align-items: center; gap: 8px; }
.rp-ask .d { margin-top: 5px; font-size: 12.5px; color: #6d6659; line-height: 1.6; }
.rp-ask textarea {
  width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; resize: vertical;
  border: 1px solid #d8cfc0; background: #faf7f0; min-height: 76px;
  font: inherit; font-size: 14px; color: #33302b;
}
.rp-ask textarea:focus { outline: none; border-color: #8a76d8; }
.rp-ask button {
  margin-top: 10px; padding: 11px 18px; border-radius: 11px;
  background: #6742c9; color: #fff; font-size: 13.5px; font-weight: 700;
}
.rp-ask button:disabled { opacity: 0.5; }
.rp-ask .qa-q { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: #241c3f; }
.rp-ask .qa-a { margin-top: 8px; }
.rp-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(250, 245, 238, 0.96); border-top: 1px solid rgba(103, 66, 201, 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.rp-dock .in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.rp-dock .hint { flex: 1; min-width: 0; font-size: 12px; color: #6b5c3a; line-height: 1.5; }
.rp-dock .pdf {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 20px; border-radius: 13px; font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #8b5cf6, #6742c9); box-shadow: 0 6px 18px rgba(103, 66, 201, 0.35);
}
.rp-dock .pdf:disabled { opacity: 0.6; }

/* 생성 진행 스테이지(딥스페이스) */
.rp-gen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 32px 24px; position: relative; overflow: hidden;
}
.rp-gen .who { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(196, 181, 253, 0.5); box-shadow: 0 0 34px rgba(124, 58, 237, 0.5); animation: rp-float 2.8s ease-in-out infinite; }
.rp-gen .who img { width: 100%; height: 100%; object-fit: cover; }
@keyframes rp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.rp-gen h1 { font-size: 19px; font-weight: 700; color: #f4f1ff; margin: 4px 0 0; }
.rp-gen .line { font-size: 13.5px; color: #a99fc9; line-height: 1.7; max-width: 340px; min-height: 44px; }
.rp-gen .bar { width: min(320px, 76vw); height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.rp-gen .bar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #c4b5fd); transition: width 0.6s; }
.rp-gen .pct { font-size: 12px; color: #8f85b5; }
.rp-gen .err-box { display: none; }
.rp-gen .retry {
  padding: 12px 22px; border-radius: 12px; background: var(--violet); color: #fff; font-weight: 700; font-size: 14px;
}

/* ══ 분석지(SHEET) — 뷰어·PDF 공용 ═══════════════ */
.sheet { display: grid; gap: 12px; }
.sh-card { background: #fff; border: 1px solid #e8e0d0; border-radius: 16px; padding: 16px; }
.sh-t { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #7c5fd3; margin-bottom: 12px; }
.sh-t small { font-weight: 600; letter-spacing: 0; color: #a89e8c; margin-left: 6px; }
.sh-pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sh-pgrid.three { grid-template-columns: repeat(3, 1fr); }
.sh-p { text-align: center; padding: 10px 4px 9px; border-radius: 12px; background: #f7f3ea; border: 1px solid #e5dcc8; }
.sh-p.day { background: #f1ecfb; border-color: #cdbdf0; }
.sh-p .lb { font-size: 10px; color: #8d8578; }
.sh-p .gz { font-family: "Noto Serif KR", "MaruBuri", serif; font-size: 21px; font-weight: 600; color: #241c3f; margin-top: 3px; letter-spacing: 0.06em; }
.sh-p .kr { font-size: 10.5px; color: #6d6659; margin-top: 1px; }
.sh-p .ss { margin-top: 5px; font-size: 10.5px; font-weight: 700; color: #6742c9; }
.sh-p .un { font-size: 9.5px; color: #8d8578; margin-top: 2px; }
.sh-p .jj { font-size: 9px; color: #a89e8c; margin-top: 3px; letter-spacing: 0.04em; }
.sh-note { margin-top: 10px; font-size: 11.5px; color: #8d8578; line-height: 1.6; }
.sh-el { display: grid; gap: 7px; }
.sh-el .row { display: flex; align-items: center; gap: 9px; }
.sh-el .nm { width: 44px; font-size: 11.5px; font-weight: 700; color: #55503f; flex-shrink: 0; }
.sh-el .bar { flex: 1; height: 9px; border-radius: 999px; background: #f0ebdf; overflow: hidden; }
.sh-el .bar i { display: block; height: 100%; border-radius: 999px; }
.sh-el .ct { width: 20px; text-align: right; font-size: 11.5px; font-weight: 700; color: #55503f; }
.sh-gauge { height: 10px; border-radius: 999px; overflow: hidden; display: flex; background: #f0ebdf; }
.sh-gauge .h { background: linear-gradient(90deg, #8a76d8, #b7a5ec); }
.sh-gauge .w { background: #ddd5c4; }
.sh-gauge-lb { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: #8d8578; }
.sh-badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sh-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #f1ecfb; border: 1px solid #d5c8f2; color: #4b3697;
}
.sh-badge.gold { background: #faf3e2; border-color: #e4d4ac; color: #7e6332; }
.sh-badge.plain { background: #f7f3ea; border-color: #e5dcc8; color: #55503f; }
.sh-badge small { font-weight: 600; opacity: 0.7; }
.sh-dw { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.sh-dw::-webkit-scrollbar { display: none; }
.sh-dw .cell {
  flex: 0 0 auto; width: 58px; text-align: center; padding: 8px 2px; border-radius: 10px;
  background: #f7f3ea; border: 1px solid #e5dcc8;
}
.sh-dw .cell.cur { background: #f1ecfb; border-color: #8a76d8; }
.sh-dw .age { font-size: 9.5px; color: #8d8578; }
.sh-dw .gz { font-family: "Noto Serif KR", serif; font-size: 14px; font-weight: 600; color: #241c3f; margin-top: 2px; }
.sh-dw .tn { margin-top: 4px; font-size: 9px; font-weight: 700; }
.sh-dw .tag { margin-top: 3px; font-size: 8.5px; color: #7c5fd3; font-weight: 700; }
.sh-mo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sh-mo .cell { text-align: center; padding: 7px 2px; border-radius: 10px; background: #f7f3ea; border: 1px solid #e5dcc8; }
.sh-mo .m { font-size: 10px; font-weight: 700; color: #55503f; }
.sh-mo .gz { font-family: "Noto Serif KR", serif; font-size: 12px; color: #241c3f; margin-top: 1px; }
.sh-mo .tn { margin-top: 3px; font-size: 9px; font-weight: 700; }
.tn-길 { color: #3f7154; } .tn-약길 { color: #5c8a6e; } .tn-중립 { color: #8d8578; }
.tn-약흉 { color: #a8794a; } .tn-흉 { color: #9c5d58; }
.sh-score { display: flex; gap: 16px; align-items: center; }
.sh-ring {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
/* 링 채움은 SVG 스트로크(store-api.js) — conic+mask 는 html2canvas(PDF)가 못 그려 교체. */
.sh-ringsvg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh-ring .n { font-size: 26px; font-weight: 800; color: #241c3f; line-height: 1; }
.sh-ring .u { font-size: 9.5px; color: #8d8578; margin-top: 3px; }
.sh-axes { flex: 1; display: grid; gap: 6px; min-width: 0; }
.sh-axes .row { display: flex; align-items: center; gap: 8px; }
.sh-axes .nm { width: 44px; font-size: 11px; font-weight: 700; color: #55503f; flex-shrink: 0; }
.sh-axes .bar { flex: 1; height: 7px; border-radius: 999px; background: #f0ebdf; overflow: hidden; }
.sh-axes .bar i { display: block; height: 100%; border-radius: 999px; }
.sh-axes .v { width: 24px; text-align: right; font-size: 10.5px; font-weight: 700; color: #55503f; }
.sh-verdict { margin-top: 12px; font-size: 13px; font-weight: 700; color: #241c3f; line-height: 1.6; }
.sh-verdict small { display: block; font-weight: 500; color: #6d6659; margin-top: 3px; }

/* ══ PDF 지면(스테이지는 화면 밖) ═══════════════ */
.pdfstage { position: fixed; left: -20000px; top: 0; z-index: -1; }
.pdfpage {
  width: 794px; height: 1123px; overflow: hidden; position: relative;
  background: #fdfaf3; color: #33302b;
  font-family: "Pretendard Variable", Pretendard, system-ui, "Apple SD Gothic Neo", sans-serif;
}
.pdfpage.space { background: radial-gradient(ellipse 130% 80% at 50% -12%, #2a2050 0%, #151022 52%, #080610 100%); color: #e6e1f5; }
.pdfpage .inner { position: absolute; inset: 58px 64px; }
.pdf-cover-cat { font-size: 13px; letter-spacing: 0.3em; color: #a78bfa; font-weight: 700; text-align: center; }
.pdf-cover-title {
  font-family: "MaruBuri", "Noto Serif KR", serif; font-weight: 600; text-align: center;
  font-size: 40px; line-height: 1.35; color: #f4f1ff; margin-top: 18px; letter-spacing: -0.01em;
}
.pdf-cover-for { text-align: center; margin-top: 16px; font-size: 16px; color: #b7aed6; }
.pdf-cover-for b { color: #e9d5ff; }
.pdf-cover-art { width: 300px; height: 400px; border-radius: 18px; object-fit: cover; display: block; margin: 44px auto 0; border: 1px solid rgba(196, 181, 253, 0.35); }
.pdf-cover-sig {
  text-align: center; margin-top: 40px; font-family: "MaruBuri", "Noto Serif KR", serif;
  font-size: 17px; line-height: 1.8; color: #f4f1ff;
}
.pdf-cover-foot { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12px; color: #8f85b5; letter-spacing: 0.24em; }
.pdf-h1 {
  font-family: "MaruBuri", "Noto Serif KR", serif; font-weight: 600;
  font-size: 24px; color: #241c3f; letter-spacing: -0.01em;
}
.pdf-h1 small { display: block; font-family: Pretendard, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: #7c5fd3; margin-bottom: 10px; }
.pdf-rule { height: 1px; background: linear-gradient(90deg, #c9a85b, rgba(201, 168, 91, 0.1)); margin: 16px 0 22px; }
.pdfpage .sheet { gap: 10px; }
.pdfpage .sh-card { border-radius: 14px; box-shadow: none; }
.pdf-toc { margin-top: 6px; }
.pdf-toc .row { display: flex; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed rgba(126, 99, 50, 0.25); }
.pdf-toc .no { font-family: "MaruBuri", "Noto Serif KR", serif; font-size: 12px; color: #8a76d8; width: 26px; flex-shrink: 0; }
.pdf-toc .tt { font-size: 14.5px; color: #37332c; font-weight: 600; }
.pdf-ch-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 4px; }
.pdf-ch-no { font-family: "MaruBuri", "Noto Serif KR", serif; font-size: 12.5px; font-weight: 600; color: #8a76d8; letter-spacing: 0.1em; flex-shrink: 0; }
.pdf-ch-title { font-family: "MaruBuri", "Noto Serif KR", serif; font-size: 19px; font-weight: 600; color: #241c3f; line-height: 1.4; }
.pdf-body p { font-size: 13.5px; line-height: 1.85; color: #37332c; margin: 0 0 12px; }
.pdf-body ul { list-style: none; margin: 0 0 12px; padding-left: 6px; }
.pdf-body li { position: relative; padding-left: 15px; font-size: 13px; line-height: 1.8; margin-bottom: 6px; }
.pdf-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #7c5fd3; }
.pdf-body strong { color: #1c1b1f; }
.pdf-body h3 { font-size: 13.5px; font-weight: 800; color: #5b3fae; margin: 14px 0 7px; }
.pdf-body .term { color: #6742c9; font-weight: 600; }
.pdf-div { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #c9a85b; }
.pdf-div::before, .pdf-div::after { content: ""; flex: 1; height: 1px; background: rgba(126, 99, 50, 0.22); }
.pdf-div span { font-size: 11px; }
.pdf-foot { position: absolute; left: 64px; right: 64px; bottom: 26px; display: flex; justify-content: space-between; font-size: 10px; color: #a89e8c; }
.pdf-close-sig {
  font-family: "MaruBuri", "Noto Serif KR", serif; font-size: 24px; line-height: 1.9;
  color: #f4f1ff; text-align: center; margin-top: 340px;
}
.pdf-close-note { text-align: center; margin-top: 30px; font-size: 12.5px; color: #8f85b5; line-height: 1.9; }

/* ══ 내 리포트(보관함) ═══════════════════════════ */
.lib { max-width: 640px; margin: 0 auto; padding: 0 16px 120px; }
.lib-empty { text-align: center; padding: 80px 20px; color: rgba(255, 255, 255, 0.4); font-size: 14px; line-height: 1.8; }
.lib-card {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong); transition: border-color 0.15s;
}
.lib-card:hover { border-color: rgba(255, 255, 255, 0.25); }
.lib-card img { width: 52px; height: 68px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.lib-card .tt { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.lib-card .mt { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, 0.4); }
.lib-card .go { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--violet-soft); font-weight: 700; }

/* 소형 화면(폰) — 원국표 4열·월 스트립이 좁은 폭에서도 잘리지 않게 축소 조정 */
@media (max-width: 430px) {
  .sh-pgrid { gap: 5px; }
  .sh-p { padding: 8px 2px 7px; }
  .sh-p .gz { font-size: 16px; letter-spacing: 0.02em; }
  .sh-p .kr { font-size: 9.5px; }
  .sh-p .ss { font-size: 9px; }
  .sh-p .un { font-size: 8.5px; }
  .sh-p .jj { font-size: 8px; letter-spacing: 0; }
  .sh-mo { grid-template-columns: repeat(4, 1fr); }
  .sh-score { flex-direction: column; align-items: stretch; }
  .sh-ring { margin: 0 auto; }
}

/* ── 뷰어 챕터 헤더 v2 — 번호 메달리온 + CHAPTER 오버라인(앱 결과 화면과 동일 구성) ── */
.rp-ch-head { display: flex; gap: 12px; align-items: center; }
.rp-ch-med {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--chacc, #7c5fd3) 13%, transparent);
  color: var(--chacc, #7c5fd3); font-size: 13px; font-weight: 800;
}
.rp-ch-tt { min-width: 0; }
.rp-ch-ovl {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--chacc, #7c5fd3); opacity: 0.85; margin-bottom: 2px;
}
.rp-ch-title { margin: 0; }
.rp-ch-visual { margin: 14px 0 4px; }
.rp-ch-visual .sheet { gap: 10px; }
.rp-sig-echo {
  margin: 34px auto 0; max-width: 560px; text-align: center;
  font-family: "MaruBuri", "Noto Serif KR", serif;
  font-size: 18px; line-height: 1.8; color: #7e6332;
}
