@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600&family=Noto+Sans+KR:wght@300;400;500&display=swap');

:root {
  --bg: #fff8f9;
  --bg-card: #ffffff;
  --bg-input: #fff8f9;
  --border: #f0d8de;
  --border-focus: #d4607a;
  --pink: #d4607a;
  --pink-light: #e8909a;
  --pink-dim: rgba(212, 96, 122, 0.1);
  --text: #2a1520;
  --text-muted: #c09098;
  --text-dim: #d8b8c0;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 2px 16px rgba(200, 100, 120, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
}

body {
  background: #f5eef0;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  min-height: 100dvh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── 모바일 너비 고정 (데스크탑에서도 폰처럼) ── */
.app-shell {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

/* ── 상단 네비게이션 ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 50px;
}

.top-nav-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pink);
  cursor: pointer;
  letter-spacing: 0.03em;
  background: none;
  border: none;
  padding: 0;
}

.top-nav-logo:active { opacity: 0.7; }

.top-nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-nav {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #a07080;
  font-size: 0.75rem;
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  white-space: nowrap;
}

.btn-nav:active { opacity: 0.7; }

.btn-nav.primary {
  background: var(--pink-dim);
  border-color: #f0c8d4;
  color: var(--pink);
  font-weight: 500;
}

/* ── 공유 버튼 ── */
.btn-share {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: #a07080;
  font-size: 0.82rem;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  margin: 0 auto 16px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-share:active {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── 토스트 ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #2a1520;
  color: #fff;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 헤더 ── */
.app-header {
  padding: 36px 28px 28px;
  text-align: center;
}

.app-header .ornament {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 14px;
}

.app-header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.app-header .tagline {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  word-break: keep-all;
  line-height: 1.6;
}

.keyword-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.keyword-tag {
  background: #ffeef2;
  border: 1px solid #f5d0d8;
  border-radius: 20px;
  color: #c07080;
  font-size: 0.72rem;
  padding: 4px 12px;
}

/* ── 스텝 진행바 ── */
.progress-wrap {
  padding: 8px 28px 16px;
}

.progress-bar {
  height: 3px;
  background: #f0d8de;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.step-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

/* ── 스텝 컨테이너 ── */
.steps-wrap {
  padding: 0 20px;
}

.step {
  display: none;
  animation: fadeUp 0.3s ease;
}

.step.active {
  display: block;
}

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

/* ── 카드 ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pink);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-title .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink-light);
  flex-shrink: 0;
}

/* ── 입력 공통 ── */
input[type="number"],
input[type="text"],
select {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus {
  border-color: var(--border-focus);
}

input::placeholder {
  color: var(--text-dim);
}

select option {
  background: #fff;
  color: var(--text);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ── 큰 숫자 입력 (연도) ── */
.year-input {
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 20px 16px !important;
}

/* ── 시간 모름 ── */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.check-row input[type="checkbox"] {
  width: auto;
  height: 18px;
  width: 18px;
  accent-color: var(--pink);
  cursor: pointer;
  border-radius: 4px;
}

.check-row label {
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* ── 성별 버튼 ── */
.gender-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gender-btn {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.gender-btn.selected {
  background: var(--pink-dim);
  border-color: var(--pink);
  color: var(--pink);
}

/* ── MBTI 그리드 ── */
.mbti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mbti-btn {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 13px 4px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.mbti-btn:active {
  transform: scale(0.95);
}

.mbti-btn.selected {
  background: var(--pink-dim);
  border-color: var(--pink);
  color: var(--pink);
  font-weight: 500;
}

/* ── 다음 버튼 ── */
.btn-next {
  width: 100%;
  background: linear-gradient(135deg, #d4607a, #e8909a);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 17px;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 32px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-next:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 뒤로가기 */
.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── 로딩 ── */
#loading {
  display: none;
  text-align: center;
  padding: 60px 28px 28px;
}

.ad-slot-loading {
  margin-top: 28px;
  min-height: 100px;
  background: #f5eef0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.ad-slot-loading:empty::after {
  content: '광고';
}

#loading.visible {
  display: block;
}

.loading-ring {
  width: 52px;
  height: 52px;
  border: 2px solid #f0d8de;
  border-top-color: var(--pink);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#loading p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dots span { animation: blink 1.4s infinite; opacity: 0; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* ── 결과 ── */
#result-section {
  display: none;
  padding-bottom: 60px;
}

#result-section.visible {
  display: block;
}

.result-pillars {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem;
  color: var(--pink);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 10px;
}

.meta-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.meta-tag {
  background: #ffeef2;
  border: 1px solid #f5d0d8;
  border-radius: 20px;
  color: #c07080;
  font-size: 0.75rem;
  padding: 4px 12px;
}

/* 오행 바 */
.element-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.el-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 36px;
  flex-shrink: 0;
}

.el-bar-wrap {
  flex: 1;
  height: 6px;
  background: #f5e8ea;
  border-radius: 3px;
  overflow: hidden;
}

.el-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.el-bar.wood  { background: #7dc48a; }
.el-bar.fire  { background: #e87060; }
.el-bar.earth { background: #c8a060; }
.el-bar.metal { background: #a0b8cc; }
.el-bar.water { background: #708cc8; }

.el-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* ── 사주팔자 설명 한 줄 ── */
.pillars-desc {
  font-size: 0.83rem;
  color: #7a5868;
  line-height: 1.7;
  word-break: keep-all;
  margin: 2px 0 12px;
  padding: 8px 12px;
  background: #fdf0f4;
  border-radius: 10px;
  border-left: 3px solid var(--pink-light);
}

/* ── 사주팔자 4기둥 ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pillar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fdf5f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px 8px;
}

.pillar-col.pillar-day {
  background: var(--pink-dim);
  border-color: #e8a0b0;
}

.pillar-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pillar-gan {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--pink);
  line-height: 1;
}

.pillar-col:not(.pillar-day) .pillar-gan {
  color: var(--text);
}

.pillar-ji {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  color: #8a6070;
  line-height: 1;
}

.pillar-sublabel {
  font-size: 0.58rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
}

/* 일간 정보 행 */
.daymaster-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.dm-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dm-char {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pink);
}

.dm-element {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dm-strength {
  font-size: 0.72rem;
  border-radius: 10px;
  padding: 2px 9px;
  font-weight: 500;
}

.dm-strength.strong { background: #ffeef2; color: #c06070; }
.dm-strength.weak   { background: #f0f4ff; color: #6070c0; }

.dm-yongshin {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dm-yongshin b {
  color: var(--pink);
  font-weight: 600;
}

/* ── 오행 분포 시각화 ── */
.el-visual-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.el-visual-row.el-top {
  margin-bottom: 2px;
}

.el-top-keywords {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 12px 36px;
  letter-spacing: 0.02em;
}

.el-visual-left {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 90px;
  flex-shrink: 0;
}

.el-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.el-visual-name {
  font-size: 0.8rem;
  color: var(--text);
}

.el-strength-badge {
  font-size: 0.6rem;
  border-radius: 8px;
  padding: 1px 6px;
  font-weight: 500;
}

.el-strength-badge.wood  { background: #e8f5eb; color: #4a8a58; }
.el-strength-badge.fire  { background: #fdecea; color: #c05040; }
.el-strength-badge.earth { background: #fdf3e3; color: #a07030; }
.el-strength-badge.metal { background: #edf2f7; color: #506880; }
.el-strength-badge.water { background: #edf0fa; color: #405890; }

.el-visual-bar-wrap {
  flex: 1;
  height: 7px;
  background: #f0e6ea;
  border-radius: 4px;
  overflow: hidden;
}

.el-visual-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.el-visual-bar.wood  { background: linear-gradient(90deg, #7dc48a, #a8dab5); }
.el-visual-bar.fire  { background: linear-gradient(90deg, #e87060, #f0a090); }
.el-visual-bar.earth { background: linear-gradient(90deg, #c8a060, #dcc090); }
.el-visual-bar.metal { background: linear-gradient(90deg, #a0b8cc, #c0d0e0); }
.el-visual-bar.water { background: linear-gradient(90deg, #708cc8, #90a8e0); }

.el-visual-right {
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.el-visual-count {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.el-total {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* 해석 */
.interpretation-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  word-break: keep-all;
}

.interpretation-text.streaming::after {
  content: '▌';
  color: var(--pink);
  animation: cur 0.8s step-end infinite;
}

@keyframes cur { 50% { opacity: 0; } }

/* 다시하기 */
.btn-retry {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.875rem;
  padding: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color 0.2s;
}

.btn-retry:active {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── 에러 ── */
.error-msg {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.25);
  border-radius: var(--radius-sm);
  color: #c86060;
  font-size: 0.85rem;
  padding: 13px 16px;
  margin-top: 8px;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* ── 프리미엄 언락 카드 ── */
.premium-gate {
  background: linear-gradient(160deg, #fff0f3, #fdf5ff);
  border: 1.5px solid #f0c8d0;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 14px;
  text-align: center;
}

.premium-gate .lock-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.premium-gate h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.premium-gate p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  word-break: keep-all;
}

.premium-features {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
  display: inline-block;
}

.premium-features li {
  font-size: 0.82rem;
  color: #a06070;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.premium-features li::before {
  content: '✦';
  font-size: 0.6rem;
  color: var(--pink);
  flex-shrink: 0;
}

.btn-premium {
  width: 100%;
  background: linear-gradient(135deg, #c05070, #e0809a);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 17px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-premium:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-premium:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-premium .price-badge {
  background: rgba(255,255,255,0.25);
  border-radius: 12px;
  font-size: 0.82rem;
  padding: 2px 10px;
  font-weight: 400;
  font-family: 'Noto Sans KR', sans-serif;
}

/* 결제 완료 후 유료 해석 */
#premium-result {
  display: none;
}

#premium-result.visible {
  display: block;
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #c05070, #e0809a);
  border-radius: 12px;
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ── 정보 콘텐츠 섹션 ── */
.info-section {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.info-wrap {
  padding: 0 20px 20px;
}

.info-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.info-block:last-child {
  border-bottom: none;
}

.info-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.info-text {
  font-size: 0.875rem;
  color: #5a4050;
  line-height: 1.85;
  word-break: keep-all;
  margin-bottom: 10px;
}

.info-text:last-child { margin-bottom: 0; }

/* 오행 설명 그리드 */
.element-info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.element-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.el-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.el-dot.wood  { background: #7dc48a; }
.el-dot.fire  { background: #e87060; }
.el-dot.earth { background: #c8a060; }
.el-dot.metal { background: #a0b8cc; }
.el-dot.water { background: #708cc8; }

.element-info-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.element-info-item p {
  font-size: 0.82rem;
  color: #7a6070;
  line-height: 1.7;
  margin: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 16px 14px;
  font-size: 0.82rem;
  color: #7a6070;
  line-height: 1.75;
  word-break: keep-all;
  margin: 0;
}

/* ── 광고 슬롯 ── */
.ad-slot {
  margin: 12px 0;
  min-height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ad-slot-form {
  padding: 0 20px;
  margin: 4px 0 0;
}

/* ── 프리미엄 마케팅 문구 ── */
.premium-pitch {
  background: linear-gradient(135deg, #fff4f7, #fdf5ff);
  border: 1.5px solid #f0c8d8;
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  margin-bottom: 12px;
}

.pitch-headline {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 14px;
  word-break: keep-all;
}

.pitch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pitch-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #5a4050;
  line-height: 1.5;
  word-break: keep-all;
}

.pitch-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── 십성 태그 ── */
.ten-god-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}

.ten-god-tag {
  background: #f5f0ff;
  border: 1px solid #d8c8f0;
  border-radius: 20px;
  color: #7858b8;
  font-size: 0.72rem;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ten-god-tag .tg-count {
  font-weight: 600;
  color: #9070d0;
}

.ten-god-tag .tg-dots {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: #9070d0;
  vertical-align: middle;
  line-height: 1;
}

/* ── 오행 개수 표시 ── */
.el-count-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.el-count-row .el-name {
  width: 42px;
}

.el-dots {
  display: flex;
  gap: 4px;
  flex: 1;
}

.el-dot-filled, .el-dot-empty {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.el-dot-empty {
  background: #f0e4e8;
}

.el-dot-filled.wood  { background: #7dc48a; }
.el-dot-filled.fire  { background: #e87060; }
.el-dot-filled.earth { background: #c8a060; }
.el-dot-filled.metal { background: #a0b8cc; }
.el-dot-filled.water { background: #708cc8; }

.el-count-num {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

/* ── 블러 게이트 ── */
.blur-gate-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.blur-gate-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 0;
  margin-bottom: 14px;
}

.blur-gate-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.blur-gate-content {
  padding: 0 16px 20px;
  /* 위는 선명, 중간부터 blur */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 30%,
    transparent 72%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 30%,
    transparent 72%
  );
  user-select: none;
  pointer-events: none;
}

.blur-preview-section {
  margin-bottom: 16px;
}

.blur-preview-section:last-child {
  margin-bottom: 0;
}

/* 그라데이션 페이드 + CTA 오버레이 */
.blur-gate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68%;
  background: linear-gradient(
    to bottom,
    rgba(255, 248, 249, 0) 0%,
    rgba(255, 248, 249, 0.85) 40%,
    rgba(255, 248, 249, 1) 65%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
}

.blur-gate-cta {
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.blur-cta-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
  word-break: keep-all;
}

/* ── 축 토글 ── */
.axis-tap-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
  background: var(--pink-dim);
  border-radius: 20px;
  padding: 6px 14px;
}

.axis-tap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

.axis-toggle-wrap {
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.axis-toggle-wrap:hover {
  border-color: var(--border);
  background: #fff8f9;
}

.axis-row {
  cursor: pointer;
  padding: 6px 8px;
}

.axis-row:active { opacity: 0.75; }

.axis-chevron {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
  display: inline-block;
}

.axis-chevron.open {
  transform: rotate(90deg);
}

.axis-toggle-body {
  display: none;
  margin: 2px 8px 10px;
  background: #fdf5f7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #7a5868;
  line-height: 1.75;
  word-break: keep-all;
  animation: fadeUp 0.2s ease;
}

.axis-toggle-body.open {
  display: block;
}

/* ── 사주로 본 MBTI 축 카드 ── */
.axis-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.axis-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.axis-row-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  width: 54px;
  flex-shrink: 0;
}

.axis-bar-wrap {
  flex: 1;
  height: 8px;
  background: #f0e4e8;
  border-radius: 4px;
  overflow: hidden;
}

.axis-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.axis-bar-fill.strong  { background: linear-gradient(90deg, #d4607a, #e8909a); }
.axis-bar-fill.slight  { background: #e8a0b0; }
.axis-bar-fill.neutral { background: #d8b8c0; }
.axis-bar-fill.opposite{ background: #a0b8cc; }

.axis-row-pct {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.axis-drift-badge {
  font-size: 0.68rem;
  border-radius: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}

.axis-drift-badge.strong  { background: #ffeef2; color: #c06070; }
.axis-drift-badge.slight  { background: #fdf5f0; color: #c08060; }
.axis-drift-badge.neutral { background: #f5f5f5; color: #a09090; }
.axis-drift-badge.opposite{ background: #f0f4ff; color: #6070c0; }

.suggested-mbti-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fdf0f4, #f5f0ff);
  border: 1px solid #e8c8d8;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
  word-break: keep-all;
}

.suggested-mbti-box strong {
  color: var(--pink);
  font-size: 1rem;
}

/* ── 체크 카드 ── */
.axis-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* ── 체크 카드 2단 구조 ── */
.check-card {
  border: 1px solid #f0dde4;
  border-radius: 14px;
  overflow: hidden;
  animation: fadeUp 0.3s ease;
}

/* 상단: "이 유형이라면 보통" */
.check-card-top {
  background: #f5eef2;
  padding: 10px 14px 12px;
}

.check-card-top-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.check-mbti-label {
  font-size: 0.68rem;
  color: #a08090;
  letter-spacing: 0.01em;
}

.check-trait {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  word-break: keep-all;
  margin: 0;
}

/* 하단: "당신은요?" */
.check-card-bottom {
  background: #fff;
  padding: 10px 14px 12px;
}

.check-card-bottom-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.check-you-label {
  font-size: 0.68rem;
  color: #a08090;
  letter-spacing: 0.01em;
}

.check-result-badge {
  font-size: 0.73rem;
  font-weight: 500;
  border-radius: 20px;
  padding: 2px 9px;
}

.badge-match {
  background: #e6f7ec;
  color: #2e8048;
  border: 1px solid #b8e8c8;
}

.badge-partial {
  background: #fdf5e0;
  color: #8a6a10;
  border: 1px solid #e8d898;
}

.badge-different {
  background: #fdf0f2;
  color: #a03050;
  border: 1px solid #f0c8d0;
}

.check-domain {
  font-size: 0.68rem;
  color: var(--text-dim);
  background: #ece4e8;
  border-radius: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* 카드 컬러 테두리 */
.check-card.match {
  border-color: #c8e8d0;
}

.check-card.match .check-card-top {
  background: #eaf6ef;
}

.check-card.partial {
  border-color: #f0e0b0;
}

.check-card.partial .check-card-top {
  background: #faf5e8;
}

.check-card.different {
  border-color: #f0d0d8;
}

.check-card.different .check-card-top {
  background: #faeef2;
}

.check-reason {
  font-size: 0.85rem;
  color: #5a4050;
  line-height: 1.85;
  word-break: keep-all;
  margin-bottom: 8px;
}

.check-saju-link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: rgba(212, 96, 122, 0.06);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  color: #b05868;
  line-height: 1.6;
  word-break: keep-all;
}

.check-tip {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #9070a8;
  line-height: 1.6;
  word-break: keep-all;
  border-left: 2px solid #d8c0e8;
  padding-left: 8px;
}

/* 체크 요약 배너 */
.check-summary-banner {
  background: var(--pink-dim);
  border: 1px solid #f0c8d4;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
  word-break: keep-all;
}

.match-score {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pink);
  margin-bottom: 6px;
}

/* 해석 섹션 구조 */
.interp-loading {
  padding: 12px 0 8px;
}

.interp-overview {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  word-break: keep-all;
  margin-bottom: 4px;
}

.interp-section {
  margin-top: 16px;
}

.interp-section-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pink);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.interp-section-body {
  font-size: 0.88rem;
  color: #5a4050;
  line-height: 1.85;
  word-break: keep-all;
}

.interp-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.interp-relatable {
  font-size: 0.88rem;
  color: #8a6070;
  line-height: 1.8;
  word-break: keep-all;
  font-style: italic;
  margin-bottom: 10px;
}

.interp-closing {
  font-size: 0.88rem;
  color: var(--pink);
  font-weight: 500;
  word-break: keep-all;
  line-height: 1.7;
}

/* ── 텍스트 하이라이트 ── */
mark.hl {
  background: linear-gradient(120deg, rgba(212,96,122,0.18) 0%, rgba(212,96,122,0.12) 100%);
  color: #b84060;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 500;
  font-style: normal;
}

/* ── 프리미엄 로딩 ── */
.premium-loading-wrap {
  text-align: center;
  padding: 32px 0 24px;
}

.premium-loading-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  word-break: keep-all;
}

/* ── 프리미엄 상단 (tagline + keywords + code) ── */
.premium-tagline {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 12px;
  word-break: keep-all;
}

.premium-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.kw-chip {
  background: var(--pink-dim);
  border: 1px solid #f0c8d4;
  border-radius: 20px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
}

.premium-share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.premium-code {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  font-family: monospace;
}

.btn-share-sm {
  background: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #a07080;
  font-size: 0.75rem;
  padding: 4px 12px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn-share-sm:active { opacity: 0.7; }

/* ── 아코디언 ── */
.accordion-section {
  border-top: 1px solid var(--border);
}

.accordion-section:first-child {
  border-top: none;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 13px 0;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: left;
}

.accordion-header:active { opacity: 0.7; }

.acc-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

.acc-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.acc-chevron {
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: transform 0.22s;
  display: inline-block;
  margin-left: auto;
}

.accordion-section.open .acc-chevron {
  transform: rotate(90deg);
}

.accordion-body {
  display: none;
  padding-bottom: 14px;
}

.accordion-section.open .accordion-body {
  display: block;
  animation: fadeUp 0.2s ease;
}

.accordion-text {
  font-size: 0.875rem;
  color: #5a4050;
  line-height: 1.95;
  word-break: keep-all;
  margin: 0;
  white-space: pre-line;
}

.acc-footer-block {
  margin-bottom: 12px;
}

.acc-footer-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* ── 푸터 ── */
footer {
  text-align: center;
  padding: 28px 24px 40px;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.8;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--pink);
}

.footer-biz {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(180,100,130,0.12);
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.9;
}

/* ── 랜딩 페이지 ── */
.landing-page {
  min-height: 88dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px 24px 28px;
}

.landing-inner {
  max-width: 400px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.landing-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.landing-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.35;
  word-break: keep-all;
}

.landing-tagline {
  font-size: 0.97rem;
  color: var(--text);
  opacity: 0.72;
  line-height: 1.85;
  margin-bottom: 32px;
  word-break: keep-all;
}

.landing-counter-inline {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: -16px;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.landing-counter-inline span {
  color: var(--text-muted);
  font-weight: 500;
}

.btn-landing-start {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 48px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 18px rgba(180,80,120,0.28);
  margin-bottom: 24px;
}

.btn-landing-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(180,80,120,0.38);
}

.btn-landing-start:active {
  transform: translateY(0);
}

.landing-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-chips span {
  background: rgba(180,100,130,0.08);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  border: 1px solid rgba(180,100,130,0.15);
}

.free-event-banner {
  background: linear-gradient(135deg, #fff0f5, #fde8f0);
  border: 1px solid rgba(180,100,130,0.25);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #b84060;
  font-weight: 500;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.event-price-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

.event-price-note s {
  color: var(--text-dim);
}

.ad-slot-landing {
  max-width: 500px;
  margin: 0 auto;
  padding: 8px 24px;
}

/* 앱 진입 페이드인 */
@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing-fadein {
  animation: landingFadeIn 0.35s ease forwards;
}
