/* Generated by scripts/build_layout_css.py; edit style.css, then rebuild. */
/* ============================================================
   사주릭스 — 베이지 & 바이올렛 캄 디자인 시스템
   Fonts: Pretendard (본문) + Noto Serif KR (헤딩)
   ============================================================ */

600;700&display=swap');

/* ── CSS 변수 ─────────────────────────────────────────────── */
:root {

  --gold-text:   #6429c1;
  /* 바이올렛 계열 (Primary) */
  --gold:        #6d28d9;
  --gold-bright: #7c3aed;
  --gold-dark:   #5b21b6;
  --gold-bg:     rgba(109, 40, 217, 0.06);
  --gold-border: rgba(109, 40, 217, 0.18);

  /* 하위 호환 */
  --crimson:     #6d28d9;
  --crimson-dim: #5b21b6;
  --crimson-bg:  rgba(109, 40, 217, 0.06);

  /* 배경 계열 (뉴트럴 그레이/화이트) */
  --navy:        #f1f0ee;
  --navy-2:      #ffffff;
  --navy-3:      #f3ebe2;
  --paper:       #fffaf5;
  --paper-2:     #ffffff;
  --surface:     #f3ebe2;

  /* 텍스트 */
  --ink:         #1f2937;
  --ink-2:       rgba(31, 41, 55, 0.82);
  --ink-3:       rgba(31, 41, 55, 0.55);

  /* 보더 */
  --border:      #e7d8c9;
  --border-dark: rgba(109, 40, 217, 0.25);

  /* 폰트 */
  --font-serif:  'Noto Serif KR', 'Batang', serif;
  --font-sans:   'Pretendard Variable', 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;

  /* 기타 */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow:      0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md:   0 4px 20px rgba(0, 0, 0, 0.1);
  --transition:  0.18s ease;
}

/* ── 리셋 & 기본 ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 600px;
  margin: 0 auto;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }

/* ── 헤더 ─────────────────────────────────────────────────── */
.site-header {
  background: rgb(255, 255, 255);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--gold-bright); }
.tagline {
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}

/* ── 버거 메뉴 버튼 ─────────────────────────────────────────── */
.burger-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  color: inherit; padding: 0; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger-btn:hover { background: rgba(0,0,0,.04); }
.burger-icon { display: flex; flex-direction: column; gap: 4.5px; width: 18px; }
.burger-icon span {
  display: block; height: 2px; border-radius: 1px;
  background: currentColor; transition: all .2s;
}

/* ── 슬라이드 네비게이션 ───────────────────────────────────── */
.nav-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(24,20,38,.42); z-index: 998;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.nav-backdrop.open { display: block; }

.slide-nav {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(250,248,253,.97) 100%);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-left: 1px solid rgba(109,40,217,.10);
  border-radius: 20px 0 0 20px;
  z-index: 999;
  box-shadow: -16px 0 48px rgba(31,41,55,.14);
  transition: right .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.slide-nav.open { right: 0; }

.slide-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid rgba(109,40,217,.08);
}
.slide-nav-title {
  font-size: .72rem; font-weight: 700; color: var(--ink-3);
  letter-spacing: 1.2px; text-transform: uppercase;
}
.slide-nav-close {
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; color: var(--ink-3);
  border-radius: 8px; cursor: pointer; background: none; border: none;
  transition: background .15s, color .15s;
}
.slide-nav-close:hover { background: rgba(109,40,217,.07); color: var(--gold); }

.slide-nav-list {
  list-style: none; padding: 12px 0; margin: 0;
}
.slide-nav-list li { list-style: none; }
.slide-nav-list a {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 10px; padding: 12px 14px; border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  color: var(--ink-2); text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.slide-nav-list a:hover {
  background: rgba(109,40,217,.06); color: var(--gold);
  transform: translateX(2px);
}
.slide-nav-sub a { font-size: .85rem; font-weight: 500; color: var(--ink-3); }

.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 9px;
  font-size: .82rem; font-weight: 600;
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
  letter-spacing: 0;
}
.nav-icon-saju       { background: rgba(28,37,65,.10); color: #1c2541; }
.nav-icon-gunghap    { background: rgba(168,69,106,.10); color: #a8456a; }
.nav-icon-jeongsaeng { background: rgba(124,58,237,.10); color: #7c3aed; }
.nav-icon-kids       { background: rgba(22,163,74,.10);  color: #16a34a; }
.nav-icon-family     { background: rgba(13,148,136,.10); color: #0d9488; }
.nav-icon-charm      { background: rgba(225,29,99,.10);   color: #e11d63; }
.nav-icon-money      { background: rgba(20,83,45,.10);   color: #14532d; }
.nav-icon-celebs     { background: rgba(100,116,139,.10); color: #64748b; }

.slide-nav-divider {
  height: 1px; background: rgba(109,40,217,.09); margin: 8px 22px;
}

.slide-nav-foot {
  margin-top: auto;
  padding: 16px 16px 22px;
  border-top: 1px solid rgba(109,40,217,.08);
}
.slide-nav-foot .footer-contact {
  display: flex; justify-content: center; width: 100%;
  box-sizing: border-box;
}

/* ── 컨테이너 ─────────────────────────────────────────────── */
.manga-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 10px 40px;
}

/* ── 히어로 ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #fffaf5 0%, #f5ede4 55%, #ede3d8 100%);
  color: var(--ink);
  text-align: center;
  padding: 56px 24px 52px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 25% 20%, rgba(109, 40, 217, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(196, 181, 253, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(109, 40, 217, 0.03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(109, 40, 217, 0.03) 60px);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* 히어로 뱃지 */
.hero-badge {
  display: block;
  width: fit-content;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 22px;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

/* 히어로 말풍선 */
.hero-quote {
  display: block;
  width: fit-content;
  background: #ffffff;
  color: #1f2937;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 18px 18px 18px 4px;
  margin-bottom: 22px;
  max-width: 340px;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.1);
  border: 1px solid rgba(109, 40, 217, 0.1);
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 0.95rem;
  color: rgba(31, 41, 55, 0.55);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* 히어로 별점 */
.hero-rating {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: rgb(0, 0, 0);
  margin-bottom: 28px;
}
.hero-stars { color: #f59e0b; letter-spacing: 1px; font-size: 0.85rem; }

/* 히어로 특징 아이콘 */
.hero-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 4px 0 0;
}
.hero-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-icon-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 1.5px solid rgba(109, 40, 217, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: rgba(109, 40, 217, 0.06);
  box-shadow: 0 0 20px rgba(109, 40, 217, 0.08);
}
.hero-icon-label {
  font-size: 0.7rem;
  color: rgba(31, 41, 55, 0.6);
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* ── 섹션 타이틀 ──────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title span { color: var(--gold); }
.tag {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

/* ── 피처 카드 ────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.feature-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}
.feature-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ── 폼 카드 ──────────────────────────────────────────────── */
.form-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.required { color: var(--gold); }
.form-input,
.form-select {
  display: block;
  width: 100%;
  padding: 11px 14px;
  background: var(--navy-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--ink-3); }
.form-input:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d28d9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--navy-3);
  padding-right: 36px;
}
.form-select option { background: var(--navy-2); color: var(--ink); }
.radio-group { display: flex; gap: 10px; }
.radio-btn { flex: 1; position: relative; }
.radio-btn input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.radio-btn label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--navy-3);
}
.radio-btn input:checked + label {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(109, 40, 217, 0.06);
  font-weight: 700;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.5;
}
.btn-submit {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(109, 40, 217, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  animation: btn-shine 2.8s ease-in-out infinite;
}
@keyframes btn-shine {
  0%   { left: -100%; }
  35%  { left: 140%; }
  100% { left: 140%; }
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(109, 40, 217, 0.35);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  background: var(--navy-3);
  color: var(--ink-3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ── 오류 메시지 ──────────────────────────────────────────── */
.error-box {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-left: 3px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: #b91c1c;
}

/* ── 결과 헤더 ────────────────────────────────────────────── */
.result-header {
  background: linear-gradient(160deg, #fffaf5 0%, #f3ebe2 100%);
  color: var(--ink);
  text-align: center;
  padding: 36px 24px 32px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.result-header .name-badge {
  display: inline-block;
  border: 1px solid rgba(109, 40, 217, 0.35);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.result-header h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.result-header .birth-info {
  font-size: 0.88rem;
  color: var(--ink-3);
  letter-spacing: 1px;
}

/* ── 사주 명식 ────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.pillar-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 16px 8px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}
.pillar-card::after {
  content: attr(data-label);
  position: absolute;
  top: 6px;
  left: 0; right: 0;
  font-size: 0.6rem;
  color: var(--ink-3);
  letter-spacing: 1px;
  text-align: center;
}
.pillar-stem,
.pillar-branch,
.pillar-hanja {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 12px;
}
.pillar-branch { margin-top: 4px; }


#elements-grid {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* ── 오행 분포 ────────────────────────────────────────────── */
.elements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.element-badge {
  border: 1px solid;
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
}
.el-name {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.el-count {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

/* ── AI 풀이 결과 ─────────────────────────────────────────── */
.saju-result-wrap { margin: 0; }

.one-line-review {
  margin: 0 0 20px;
  padding: 18px 20px;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.speech-bubble {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.8;
  text-align: center;
}
.speech-bubble::before { content: '\201C'; color: var(--gold); margin-right: 4px; }
.speech-bubble::after  { content: '\201D'; color: var(--gold); margin-left:  4px; }

/* 점수 그리드 */
.score-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}
.score-card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.score-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.score-bar-wrap {
  background: rgba(109, 40, 217, 0.08);
  border-radius: 2px;
  height: 7px;
  margin-bottom: 6px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}
.score-val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

/* 망가(섹션) 패널 */
.manga-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 0 0 14px;
  page-break-inside: avoid;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
}

/* 섹션 배너 이미지 */
.section-banner {
  display: block;
  width: calc(100% + 40px);
  margin: 14px -20px 18px;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.section-banner:first-child {
  margin: -24px -20px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.panel-number {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.panel-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.4;
}
.panel-content {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(31,41,55,.8);
}
.panel-content strong { font-weight: 500; color: rgba(31,41,55,.85); }
.panel-content p { margin: 0 0 14px; }
.panel-content p:last-child { margin-bottom: 0; }
.panel-content ul { padding-left: 18px; margin: 8px 0; list-style: none; }
.panel-content li { margin-bottom: 6px; line-height: 1.8; list-style: none; }
.panel-content li::before { content: '·'; margin-right: 6px; color: var(--gold-text); font-weight: 700; }
.panel-content br { display: block; margin-bottom: 0.45em; content: ''; }

/* ── 4번 섹션 서버단 블러 (무료 미리보기) ─────────────────── */
.free-panel4-wrap .panel-content {
  position: relative;
}
.free-blur-block {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
  margin-top: 12px;
}
.free-lock-overlay {
  position: relative;
  margin-top: -60px;
  padding-top: 60px;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,250,245,.97) 45%);
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
.free-lock-inner {
  text-align: center;
}
.free-lock-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.free-lock-msg {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.free-lock-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(109,40,217,.25);
  letter-spacing: -.2px;
}
.free-lock-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

/* ── 잠금 섹션 ────────────────────────────────────────────── */
.locked-section {
  position: relative;
  max-height: 260px;
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding:0 20px 10px;
}

#live-status-wrap {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding:0 20px 10px;
}
.locked-content {
  pointer-events: none;
  user-select: none;
}
.lock-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--navy));
}

/* 잠금 카드 — 글라스 */
.lock-card-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.lock-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(109, 40, 217, 0.4);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.lock-icon { font-size: 1.7rem; margin-bottom: 10px; }
.lock-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.lock-desc {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 14px;
}
.lock-list {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 12px;
}
.lock-list li {
  font-size: 0.78rem;
  color: var(--ink-2);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}
.lock-list li::before {
  content: '\2022';
  color: var(--gold);
  margin-right: 6px;
  font-weight: 700;
}

/* ── 공통 반짝임 애니메이션 ──────────────────────── */
@keyframes btnShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes btnPulseGlow {
  0%,100% { box-shadow: 0 4px 20px var(--btn-glow, rgba(109,40,217,.3)); }
  50%     { box-shadow: 0 6px 32px var(--btn-glow, rgba(109,40,217,.5)); }
}
.shimmer-btn {
  position: relative;
  overflow: hidden;
  animation: btnPulseGlow 2.5s ease-in-out infinite;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,.18) 35%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,.18) 65%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: btnShimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
.shimmer-btn:disabled::after { display: none; }
.shimmer-btn:disabled { animation: none; }

/* 결제 버튼 — 바이올렛 */
.btn-unlock {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 50%, #6d28d9 100%);
  background-size: 200% auto;
  color: #ffffff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  --btn-glow: rgba(109,40,217,.3);
}
.btn-unlock:hover {
  background-position: right center;
  transform: translateY(-1px);
  --btn-glow: rgba(109,40,217,.5);
}
.btn-unlock:active { transform: translateY(0); }
.btn-unlock:disabled {
  background: var(--navy-3);
  color: var(--ink-3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.price-tag {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.price-sub {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 400;
  font-family: var(--font-sans);
}

/* ── PDF 버튼 ─────────────────────────────────────────────── */
.btn-pdf {
  display: inline-block;
  padding: 11px 28px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-pdf:hover {
  background: var(--gold);
  color: #ffffff;
}

/* ── 풀이 섹션 ────────────────────────────────────────────── */
#full-content .saju-result-wrap { }
#full-content .manga-panel { }

/* ── 애니메이션 ───────────────────────────────────────────── */
.fade-up { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 로딩 오버레이 (폼 제출 시) ─────────────────────────── */
.submit-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 250, 245, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.submit-loading-overlay.active { display: flex; }
.submit-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e7d8c9;
  border-top-color: #6d28d9;
  border-radius: 50%;
  animation: submitSpin 0.75s linear infinite;
}
@keyframes submitSpin { to { transform: rotate(360deg); } }
.submit-loading-text {
  font-size: 0.92rem;
  color: #1f2937;
  font-weight: 600;
}

/* ── 푸터 ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 28px 24px 32px;
  text-align: center;
  background: #fafafa;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: #FEE500;
  color: #3A1D1D;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  /* button 태그로도 쓰이므로 브라우저 기본 스타일 제거 */
  border: 0;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.footer-contact:hover { opacity: .85; }
.footer-contact svg { flex-shrink: 0; }
.footer-links {
  margin-top: 16px;
  font-size: .75rem;
  color: rgba(31,41,55,.35);
}
.footer-links a {
  color: rgb(31, 41, 55);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: rgba(31,41,55,.6); }
.footer-dot { margin: 0 6px; }
.footer-copy {
  margin-top: 6px;
  font-size: .7rem;
  color: rgb(31, 41, 55);
  letter-spacing: .3px;
}

/* ── 반응형 ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feature-card { padding: 14px 8px; }
  .feature-icon { font-size: 1.3rem; }
  .feature-name { font-size: 0.78rem; }
  .feature-desc { display: none; }

  .elements-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }

  .pillars-grid { gap: 7px; }
  .pillar-stem, .pillar-branch, .pillar-hanja { font-size: 1.6rem; }

  .score-grid { grid-template-columns: repeat(2, 1fr); }

  .form-card { padding: 24px 18px; }
  .hero { padding: 44px 20px 40px; }

  .lock-list { grid-template-columns: 1fr; }
  .lock-card { padding: 24px 20px; }

  .hero-icons { gap: 16px; }
  .hero-icon-circle { width: 56px; height: 56px; font-size: 1.4rem; }
  .hero-icon-label { font-size: 0.66rem; }
  .hero-quote { font-size: 0.88rem; padding: 10px 16px; }
}

@media (max-width: 400px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .pillar-stem, .pillar-branch, .pillar-hanja { font-size: 1.35rem; }
  .hero-icons { gap: 10px; }
  .hero-icon-circle { width: 50px; height: 50px; font-size: 1.25rem; }
}
