/* ===== 궁합 페이지 전용 스타일 ===== */
.gh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.gh-person-label {
  font-family: 'Noto Serif KR', serif;
  font-size: 13px;
  color: #8a6b1f;
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-align: center;
}
@media (max-width: 560px) {
  .gh-form-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== 결과 영역 ===== */
.gh-result-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(139,19,19,0.08) 100%);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
}
.gh-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #c9a84c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(201,168,76,0.12);
}
.gh-score-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 40px;
  font-weight: 900;
  color: #8a6b1f;
  line-height: 1;
}
.gh-score-label {
  font-size: 11px;
  color: #8a6b1f;
  letter-spacing: .05em;
  margin-top: 2px;
}
.gh-grade {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(17px, 4.5vw, 22px);
  font-weight: 700;
  color: #8a6b1f;
  margin-bottom: 10px;
  word-break: keep-all;
}
.gh-grade-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto;
}

/* 두 사람 오행 */
.gh-persons-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.gh-person-card {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 16px;
}
.gh-person-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 12px;
  color: #8a6b1f;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.gh-person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.gh-day-stem {
  font-family: 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.gh-person-detail {
  font-size: 12px;
  color: #555;
}
.gh-yongsin {
  font-size: 11px;
  color: #8a6b1f;
}
.gh-el-bar {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  background: #eee;
}
.gh-vs {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: #aaa;
  flex-shrink: 0;
  font-weight: 700;
}
@media (max-width: 480px) {
  .gh-persons-grid { flex-direction: column; align-items: stretch; }
  .gh-vs { text-align: center; padding: 4px 0; }
}

/* 항목별 궁합 */
.gh-cats { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.gh-cat-item {
  background: #fff;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 14px 18px;
}
.gh-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gh-cat-icon { font-size: 16px; }
.gh-cat-label {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  flex: 1;
}
.gh-cat-score {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  color: #8a6b1f;
  font-weight: 700;
}
.gh-score-bar-bg {
  height: 5px;
  background: #eeeeee;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.gh-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8324a, #c9a84c);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.gh-cat-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* 로딩 */
#loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}
#results { display: none; }
#results.active { display: block; animation: fadeInUp 0.8s ease; }

.fun-note {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 8px;
  margin-bottom: 0;
}
.gh-char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 7px;
}
.gh-char-traits .char-trait {
  font-size: 12px;
  padding: 3px 9px;
}
.gh-char-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.55;
  word-break: keep-all;
}

@keyframes gradeReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* S/A/B/C/F 등급 배너 — 라이트 테마 */
.gh-grade-banner {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid rgba(201,168,76,0.3);
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  padding: 28px 24px 22px;
  text-align: center;
  margin-bottom: 20px;
  animation: gradeReveal 0.6s cubic-bezier(.22,1,.36,1) 0.8s both;
  opacity: 0;
}
.gh-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  border: 2.5px solid currentColor;
  margin-bottom: 12px;
}
.gh-tier-label {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 700;
  margin: 4px 0 2px;
}
.gh-tier-sub {
  font-family: 'Gowun Batang', serif;
  font-size: 12px;
  letter-spacing: .06em;
  opacity: 0.7;
  margin-bottom: 12px;
}
.gh-tier-score-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 38px;
  font-weight: 900;
  margin: 4px 0 2px;
}
.gh-tier-score-label {
  font-size: 11px;
  letter-spacing: .08em;
  opacity: 0.55;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.gh-tier-desc {
  font-size: 14px;
  line-height: 1.8;
  max-width: 340px;
  margin: 0 auto;
  font-family: 'Gowun Batang', serif;
  word-break: keep-all;
  color: #555;
}

/* S급 — 황금 */
.gh-grade-banner.gh-tier-S { border-color: rgba(201,168,76,0.55); }
.gh-grade-banner.gh-tier-S .gh-tier-badge     { color:#8a6b1f; background:rgba(201,168,76,0.12); border-color:#c9a84c; }
.gh-grade-banner.gh-tier-S .gh-tier-label     { color:#8a6b1f; }
.gh-grade-banner.gh-tier-S .gh-tier-sub       { color:#a08030; }
.gh-grade-banner.gh-tier-S .gh-tier-score-num { color:#c9a84c; }
/* A급 — 장미 */
.gh-grade-banner.gh-tier-A { border-color: rgba(220,70,110,0.35); }
.gh-grade-banner.gh-tier-A .gh-tier-badge     { color:#c03060; background:rgba(220,70,110,0.10); border-color:#e0507a; }
.gh-grade-banner.gh-tier-A .gh-tier-label     { color:#c03060; }
.gh-grade-banner.gh-tier-A .gh-tier-sub       { color:#904050; }
.gh-grade-banner.gh-tier-A .gh-tier-score-num { color:#d04070; }
/* B급 — 보라 */
.gh-grade-banner.gh-tier-B { border-color: rgba(112,80,200,0.30); }
.gh-grade-banner.gh-tier-B .gh-tier-badge     { color:#5030a0; background:rgba(112,80,200,0.09); border-color:#7050c0; }
.gh-grade-banner.gh-tier-B .gh-tier-label     { color:#5030a0; }
.gh-grade-banner.gh-tier-B .gh-tier-sub       { color:#604090; }
.gh-grade-banner.gh-tier-B .gh-tier-score-num { color:#7050c0; }
/* C급 — 청회색 */
.gh-grade-banner.gh-tier-C { border-color: rgba(74,112,144,0.30); }
.gh-grade-banner.gh-tier-C .gh-tier-badge     { color:#2a5570; background:rgba(74,112,144,0.09); border-color:#4a7090; }
.gh-grade-banner.gh-tier-C .gh-tier-label     { color:#2a5570; }
.gh-grade-banner.gh-tier-C .gh-tier-sub       { color:#3a6070; }
.gh-grade-banner.gh-tier-C .gh-tier-score-num { color:#4a7090; }
/* F급 — 적색 */
.gh-grade-banner.gh-tier-F { border-color: rgba(180,40,40,0.30); }
.gh-grade-banner.gh-tier-F .gh-tier-badge     { color:#901818; background:rgba(180,40,40,0.09); border-color:#b03030; }
.gh-grade-banner.gh-tier-F .gh-tier-label     { color:#901818; }
.gh-grade-banner.gh-tier-F .gh-tier-sub       { color:#803030; }
.gh-grade-banner.gh-tier-F .gh-tier-score-num { color:#b03030; }
