/* ===== RESULT ===== */
#resultSection { display: none; }
.result-card {
  background: linear-gradient(145deg, var(--card-bg-start), var(--card-bg-end));
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 32px 22px; margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3); text-align: center;
}
.result-name { font-size: 14px; color: var(--text-muted); }
.result-name strong { color: var(--gold-light); font-weight: 700; }
.result-title {
  font-family: 'Noto Serif KR', serif; font-size: 20px; font-weight: 700;
  color: var(--gold); margin: 16px 0 24px;
}

/* 리텐션 배너 */
.retention-banner {
  text-align: center; padding: 12px 16px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(74,222,128,.08), rgba(74,222,128,.02));
  border: 1px solid rgba(74,222,128,.2);
  border-radius: 14px; font-size: 12.5px;
  color: rgba(74,222,128,.9); line-height: 1.6;
}
.retention-banner strong { color: #4ade80; font-weight: 700; }

/* ===== 기와집 사주 기둥 디자인 ===== */
.saju-pillars-wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 28px; padding: 0 4px;
}
.saju-pillar-col { text-align: center; }
.saju-pillar-col .pillar-label {
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px;
}

/* 기와집 지붕 SVG */
.giwa-roof {
  width: 100%; height: 28px; margin-bottom: -2px;
  position: relative;
}
.giwa-roof svg {
  width: 100%; height: 100%;
}

/* 기둥 박스 (천간/지지) */
.pillar-box {
  position: relative;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}
.pillar-cheongan {
  padding: 12px 4px 8px;
  background: rgba(212,168,83,.08);
  border-bottom: 1px dashed rgba(212,168,83,.15);
}
.pillar-jiji {
  padding: 8px 4px 12px;
  background: rgba(138,141,176,.06);
}

/* 오행별 기둥 테두리 색상 */
.pillar-el-wood .pillar-box { border-color: #4ade80; }
.pillar-el-fire .pillar-box { border-color: #f87171; }
.pillar-el-earth .pillar-box { border-color: #fbbf24; }
.pillar-el-metal .pillar-box { border-color: #e2e8f0; }
.pillar-el-water .pillar-box { border-color: #60a5fa; }

/* 기와집 지붕 색상도 오행 따라감 */
.pillar-el-wood .giwa-roof svg path { fill: #4ade80; }
.pillar-el-fire .giwa-roof svg path { fill: #f87171; }
.pillar-el-earth .giwa-roof svg path { fill: #fbbf24; }
.pillar-el-metal .giwa-roof svg path { fill: #e2e8f0; }
.pillar-el-water .giwa-roof svg path { fill: #60a5fa; }

.pillar-hanja {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px; font-weight: 700; line-height: 1;
  color: #fff !important;
}
.pillar-hangul {
  font-size: 10px; margin-top: 3px;
  color: #fff !important; opacity: .7;
}

/* 오행색 배경 천간 */
.cheongan-el-wood .pillar-cheongan { background: rgba(74,222,128,.15); }
.cheongan-el-fire .pillar-cheongan { background: rgba(248,113,113,.15); }
.cheongan-el-earth .pillar-cheongan { background: rgba(251,191,36,.15); }
.cheongan-el-metal .pillar-cheongan { background: rgba(226,232,240,.15); }
.cheongan-el-water .pillar-cheongan { background: rgba(96,165,250,.15); }

/* 오행색 배경 지지 */
.jiji-el-wood .pillar-jiji { background: rgba(74,222,128,.08); }
.jiji-el-fire .pillar-jiji { background: rgba(248,113,113,.08); }
.jiji-el-earth .pillar-jiji { background: rgba(251,191,36,.08); }
.jiji-el-metal .pillar-jiji { background: rgba(226,232,240,.08); }
.jiji-el-water .pillar-jiji { background: rgba(96,165,250,.08); }

.day-master-tag {
  display: inline-block; margin-bottom: 20px; padding: 4px 12px;
  background: rgba(212,168,83,.1); border: 1px solid rgba(212,168,83,.25);
  border-radius: 8px; font-size: 12px; color: var(--gold-light);
}

/* 오행 레이더 차트 */
.ohaeng-section { margin: 20px 0; text-align: center; }
.ohaeng-section .bar-title { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.radar-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.radar-wrap canvas { width: 100%; height: 100%; }
.ohaeng-bar { margin: 12px 0 0; }
.ohaeng-row { display: flex; align-items: center; margin-bottom: 5px; gap: 8px; }
.ohaeng-row .oh-label { width: 28px; font-size: 12px; font-weight: 500; text-align: center; }
.ohaeng-row .oh-track {
  flex: 1; height: 7px; background: rgba(255,255,255,.06);
  border-radius: 4px; overflow: hidden;
}
.ohaeng-row .oh-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.ohaeng-row .oh-count { width: 18px; font-size: 10px; color: var(--text-muted); text-align: right; }
.oh-wood{background:linear-gradient(90deg,#22c55e,#4ade80)}
.oh-fire{background:linear-gradient(90deg,#ef4444,#f87171)}
.oh-earth{background:linear-gradient(90deg,#d97706,#fbbf24)}
.oh-metal{background:linear-gradient(90deg,#94a3b8,#e2e8f0)}
.oh-water{background:linear-gradient(90deg,#3b82f6,#60a5fa)}

/* el 색상 유틸 (레거시 호환) */
.el-wood .hanja{color:#4ade80} .el-fire .hanja{color:#f87171}
.el-earth .hanja{color:#fbbf24} .el-metal .hanja{color:#e2e8f0}
.el-water .hanja{color:#60a5fa}
.el-wood .hangul{color:#4ade80} .el-fire .hangul{color:#f87171}
.el-earth .hangul{color:#fbbf24} .el-metal .hangul{color:#e2e8f0}
.el-water .hangul{color:#60a5fa}
.el-wood .oh-label{color:#4ade80} .el-fire .oh-label{color:#f87171}
.el-earth .oh-label{color:#fbbf24} .el-metal .oh-label{color:#e2e8f0}
.el-water .oh-label{color:#60a5fa}

/* Reading cards */
.reading-card {
  background: linear-gradient(145deg, var(--card-bg-start), var(--card-bg-end));
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 26px 22px; margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.reading-card .step-badge {
  display: inline-block; padding: 4px 12px;
  background: linear-gradient(135deg, rgba(212,168,83,.2), rgba(212,168,83,.08));
  border: 1px solid rgba(212,168,83,.3);
  border-radius: 20px; font-size: 11px; font-weight: 700;
  color: var(--gold); margin-bottom: 14px;
}
.reading-card .step-title {
  font-family: 'Noto Serif KR', serif; font-size: 17px; font-weight: 700;
  color: var(--gold-light); margin-bottom: 16px; line-height: 1.5;
}
.reading-card .reading-text {
  font-size: 14.5px; line-height: 1.85;
  color: rgba(245,240,232,.88); word-break: keep-all;
}
.reading-card .reading-text strong { color: var(--gold-light); font-weight: 700; }

.fortune-block {
  padding: 16px 18px; margin: 12px 0;
  background: rgba(0,0,0,.2); border-radius: 14px;
  border-left: 3px solid var(--gold);
}
.fortune-block.warn { border-left-color: #f87171; }
.fortune-block.luck { border-left-color: #4ade80; }
.fortune-block .fb-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.fortune-block .fb-title.up { color: #4ade80; }
.fortune-block .fb-title.down { color: #f87171; }
.fortune-block .fb-title.lucky { color: var(--gold-light); }
.fortune-block .fb-text {
  font-size: 13.5px; line-height: 1.75;
  color: rgba(245,240,232,.8); word-break: keep-all;
}

.oneline-summary {
  text-align: center; padding: 18px; margin: 16px 0;
  background: linear-gradient(135deg, rgba(212,168,83,.1), rgba(212,168,83,.03));
  border: 1px solid rgba(212,168,83,.2); border-radius: 14px;
}
.oneline-summary p {
  font-family: 'Noto Serif KR', serif; font-size: 16px;
  font-weight: 700; color: var(--gold); line-height: 1.6;
}
.section-divider {
  text-align: center; padding: 10px 0;
  color: var(--gold); font-size: 18px; letter-spacing: 8px; opacity: .4;
}

/* 4대운세 아코디언 */
.fortune-category-card {
  background: linear-gradient(145deg, var(--card-bg-start), var(--card-bg-end));
  border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 0; margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.3); overflow: hidden;
}
.fortune-category-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 22px; cursor: pointer;
  transition: background .3s; user-select: none;
}
.fortune-category-header:active { background: rgba(212,168,83,.05); }
.fortune-category-header .fc-icon { font-size: 28px; flex-shrink: 0; }
.fortune-category-header .fc-info { flex: 1; }
.fortune-category-header .fc-title {
  font-family: 'Noto Serif KR', serif; font-size: 16px;
  font-weight: 700; color: var(--gold-light);
}
.fortune-category-header .fc-subtitle {
  font-size: 11px; color: var(--text-muted); margin-top: 3px;
}
.fortune-category-header .fc-score { text-align: right; flex-shrink: 0; }
.fortune-category-header .fc-score .score-num {
  font-size: 22px; font-weight: 900; color: var(--gold);
}
.fortune-category-header .fc-score .score-label {
  font-size: 10px; color: var(--text-muted);
}
.fortune-category-header .fc-arrow {
  font-size: 14px; color: var(--text-muted);
  transition: transform .3s; margin-left: 4px;
}
.fortune-category-card.open .fc-arrow { transform: rotate(180deg); }
.fortune-category-body {
  max-height: 0; overflow: hidden; transition: max-height .4s ease;
}
.fortune-category-card.open .fortune-category-body { max-height: 2000px; }
.fortune-category-content {
  padding: 0 22px 24px;
  border-top: 1px solid rgba(212,168,83,.1);
}
.score-bar-wrap { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.score-bar-track {
  flex: 1; height: 10px; background: rgba(255,255,255,.06);
  border-radius: 5px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 5px; transition: width 1.2s ease;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}
.score-bar-text {
  font-size: 13px; font-weight: 700; color: var(--gold);
  min-width: 35px; text-align: right;
}
.fd-section { margin-top: 16px; }
.fd-section .fd-label {
  font-size: 12px; font-weight: 700; color: var(--gold);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.fd-section .fd-text {
  font-size: 13.5px; line-height: 1.8;
  color: rgba(245,240,232,.85); word-break: keep-all;
}
.fd-section .fd-text strong { color: var(--gold-light); }
.fd-tip {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(212,168,83,.06);
  border: 1px solid rgba(212,168,83,.12); border-radius: 12px;
}
.fd-tip .fd-tip-title { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.fd-tip .fd-tip-text {
  font-size: 12.5px; line-height: 1.7; color: rgba(245,240,232,.75);
}

/* 대운 타임라인 (블러) */
.daeun-teaser {
  position: relative; margin: 0 0 16px; padding: 0;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(145deg, var(--card-bg-start), var(--card-bg-end));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.daeun-teaser-header { padding: 22px 22px 0; text-align: center; }
.daeun-teaser-header .step-badge {
  display: inline-block; padding: 4px 12px;
  background: linear-gradient(135deg, rgba(212,168,83,.2), rgba(212,168,83,.08));
  border: 1px solid rgba(212,168,83,.3);
  border-radius: 20px; font-size: 11px; font-weight: 700;
  color: var(--gold); margin-bottom: 10px;
}
.daeun-teaser-header .step-title {
  font-family: 'Noto Serif KR', serif; font-size: 17px; font-weight: 700;
  color: var(--gold-light); margin-bottom: 4px; line-height: 1.5;
}
.daeun-graph-wrap { position: relative; padding: 16px 22px 24px; overflow: hidden; }
.daeun-graph-blurred {
  filter: blur(5px); -webkit-filter: blur(5px);
  user-select: none; -webkit-user-select: none;
}
.daeun-graph-blurred canvas { width: 100%; height: 140px; display: block; }
.daeun-graph-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,14,39,.55);
}
.daeun-graph-overlay .lock-icon { font-size: 32px; margin-bottom: 8px; }
.daeun-graph-overlay p {
  font-size: 13px; color: var(--gold-light);
  font-weight: 600; text-align: center; line-height: 1.5;
}
.daeun-graph-overlay .peek-text {
  font-size: 11px; color: var(--text-muted); margin-top: 6px;
}

/* 블러 티저 */
.analysis-teaser {
  position: relative; padding: 24px 18px;
  background: rgba(0,0,0,.2); border-radius: 14px;
  overflow: hidden; margin-top: 18px;
}
.analysis-teaser .blurred {
  filter: blur(6px); user-select: none;
  font-size: 13px; line-height: 2; color: var(--text-muted);
}
.analysis-teaser .overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,14,39,.6);
}
.analysis-teaser .overlay .lock-icon { font-size: 36px; margin-bottom: 10px; }
.analysis-teaser .overlay p {
  font-size: 14px; color: var(--gold-light);
  font-weight: 600; text-align: center; line-height: 1.5;
}

.cta-section { text-align: center; padding: 10px 0 20px; }
.cta-section .cta-title {
  font-family: 'Noto Serif KR', serif; font-size: 17px; font-weight: 700;
  color: var(--gold); line-height: 1.6; margin-bottom: 8px;
}
.cta-section .cta-sub {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 20px; line-height: 1.6;
}
.btn-kakao {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; max-width: 360px;
  padding: 17px 24px;
  background: linear-gradient(135deg, #FEE500, #FFD700);
  border: none; border-radius: 14px;
  color: #3C1E1E; font-size: 16px; font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(254,229,0,.3);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 4px 16px rgba(254,229,0,.3); }
  50% { box-shadow: 0 4px 28px rgba(254,229,0,.5); }
}
.btn-kakao:active { transform: scale(.97); }
.btn-kakao svg { width: 22px; height: 22px; }
.btn-retry {
  display: inline-block; margin-top: 14px; padding: 10px 24px;
  background: transparent; border: 1px solid rgba(212,168,83,.25);
  border-radius: 10px; color: var(--text-muted);
  font-size: 13px; font-family: 'Noto Sans KR', sans-serif; cursor: pointer;
}
.btn-retry:hover { border-color: var(--gold); color: var(--gold-light); }
