/* 사주몽서 스타일
 * 색: 백자 바탕 + 쪽빛 + 치자 노랑, 도장(인주) 빨강은 띠 도장에만 씁니다.
 */
:root {
  --paper: #F2F3EE;
  --card: #FFFFFF;
  --ink: #22232B;
  --ink-soft: #565A68;
  --line: #D8DBD1;
  --indigo: #27407A;
  --indigo-deep: #1B2E5C;
  --indigo-wash: #E6EAF3;
  --gold: #D9A21B;
  --gold-wash: #FBF1D6;
  --seal: #B23A32;
  --danger: #A12C2C;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---------- 머리글 ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
/* 로고: 펼친 책(書) 위의 초승달(夢) */
.brand-mark { width: 30px; height: 26px; display: inline-block; flex: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
  padding: 6px 10px; border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--indigo-wash); }
.site-nav a[aria-current="page"] { color: var(--indigo); background: var(--indigo-wash); }

main { padding-top: 32px; padding-bottom: 64px; }

/* ---------- 제목 ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
.lede { color: var(--ink-soft); font-size: 18px; margin-bottom: 24px; max-width: 34em; }

/* 메인 히어로 */
.hero { padding: 16px 0 8px; }
.hero h1 { font-size: clamp(32px, 8vw, 52px); line-height: 1.25; margin-bottom: 16px; }
.hero h1 .line2 { display: block; color: var(--indigo); }

/* ---------- 생년월일 입력 ---------- */
.birth-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; margin: 8px 0 28px;
}
.birth-form fieldset { border: 0; padding: 0; margin: 0; }
.birth-form legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.cal-toggle { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.cal-toggle label { position: relative; cursor: pointer; }
.cal-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cal-toggle span { display: block; padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.cal-toggle input:checked + span { background: var(--indigo); color: #fff; }
.cal-toggle input:focus-visible + span { outline: 3px solid var(--gold); }

.date-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.date-field { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: 0 12px; }
.date-field:focus-within { border-color: var(--indigo); }
.date-field input {
  width: 100%; border: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 600;
  padding: 12px 0; color: var(--ink); min-width: 0; -moz-appearance: textfield;
}
.date-field input::-webkit-outer-spin-button, .date-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.date-field input:focus { outline: none; }
.date-field .unit { color: var(--ink-soft); font-size: 15px; padding-left: 4px; }
.leap-wrap { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.leap-wrap input { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; accent-color: var(--indigo); }
.form-actions { margin-top: 16px; }
.btn {
  display: inline-block; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 18px;
  background: var(--indigo); color: #fff; padding: 14px 20px; border-radius: var(--radius-sm); text-align: center; text-decoration: none;
}
.btn:hover { background: var(--indigo-deep); color: #fff; }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 15px; font-weight: 500; }

/* ---------- 결과 ---------- */
.result { margin: 0 0 32px; outline: none; }
.result-head { font-family: var(--serif); font-size: 18px; color: var(--ink-soft); margin: 0 0 12px; }
.result-head strong { color: var(--ink); }
.answer {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 20px; margin-bottom: 12px;
}
.answer-main { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); font-weight: 700; line-height: 1.1; margin: 4px 0 8px; color: var(--indigo); }
.answer-main small { font-size: 0.45em; color: var(--ink); margin-left: 4px; }
.answer-sub { color: var(--ink-soft); margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.facts .k { color: var(--ink-soft); }
.facts .v { font-weight: 600; text-align: right; }
.note { font-size: 15px; color: var(--ink-soft); background: var(--gold-wash); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }

/* 띠 도장: 이 사이트에서 하나뿐인 강조 요소 */
.seal-row { display: flex; align-items: center; gap: 20px; }
.seal {
  flex: none; width: 92px; height: 92px; border: 4px solid var(--seal); border-radius: 14px;
  display: grid; place-items: center; color: var(--seal); font-family: var(--serif); font-weight: 700;
  font-size: 54px; line-height: 1; transform: rotate(-4deg); background: #fff;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--seal);
}
.seal-row .answer-main { color: var(--ink); font-size: clamp(34px, 9vw, 48px); }

/* 메인 통합 결과 */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.summary-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; text-decoration: none; color: var(--ink);
}
.summary-card:hover { border-color: var(--indigo); color: var(--ink); }
.summary-card .k { font-size: 14px; color: var(--ink-soft); display: block; }
.summary-card .v { font-family: var(--serif); font-size: 26px; font-weight: 700; display: block; margin: 2px 0; line-height: 1.3; }
.summary-card .s { font-size: 14px; color: var(--ink-soft); display: block; }
.summary-card .more { font-size: 14px; color: var(--indigo); font-weight: 600; display: block; margin-top: 8px; }

/* ---------- 광고 자리 ---------- */
.ad-slot { margin: 28px 0; min-height: 100px; text-align: center; }
.ad-slot:empty { display: none; }

/* ---------- 본문 글 ---------- */
.article { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 8px; }
.article p, .article li { max-width: 40em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 16px; }
.article li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--paper); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--indigo); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-soft); }

/* 다른 도구 */
.related { margin-top: 48px; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
.related-list a {
  display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600;
}
.related-list a:hover { border-color: var(--indigo); }
.related-list span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-soft); }

/* 일반 페이지(소개·약관) */
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc p, .doc li { color: var(--ink); max-width: 40em; }
.doc .updated { color: var(--ink-soft); font-size: 15px; }

/* ---------- 바닥글 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--ink-soft); }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0; }
.footer-tag { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--ink-soft); }
.footer-note, .footer-copy { margin: 0; font-size: 14px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-inner { min-height: auto; }
  .site-nav { width: 100%; margin: 0 -10px; }
  .birth-form { padding: 16px; }
  .date-field input { font-size: 18px; }
  .seal { width: 76px; height: 76px; font-size: 44px; }
  .seal-row { gap: 16px; }
  .related-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .ad-slot, .birth-form, .related { display: none; }
  body { background: #fff; }
}

/* ===================== 운세 공통 ===================== */
:root {
  --wood: #2F7A4A; --fire: #C0392E; --earth: #A87A1E; --metal: #6F7682; --water: #23365E;
  --wood-wash: #E3F0E6; --fire-wash: #F8E3E0; --earth-wash: #F6ECD6; --metal-wash: #ECEDEF; --water-wash: #E1E6F0;
}
.muted { color: var(--ink-soft); font-size: 15px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin: -8px 0 16px; }
.crumbs a { color: var(--ink-soft); }
.form-title { font-family: var(--serif); font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.row-fieldset { margin-top: 18px !important; }
.legend-note { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 6px; }
.time-row { grid-template-columns: 2fr 1fr; }
.select-field { padding: 0 8px; }
.select-field select { width: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 600; padding: 13px 0; color: var(--ink); }
.select-field select:focus { outline: none; }
.options { margin-top: 16px; font-size: 15px; }
.options summary { cursor: pointer; color: var(--indigo); font-weight: 500; }
.options-body { padding: 8px 0 0; }
.opt-title { font-weight: 600; margin: 10px 0 4px; }
.opt { display: block; color: var(--ink-soft); margin-bottom: 4px; }
.opt input { accent-color: var(--indigo); margin-right: 6px; }
.btn-ghost { display: inline-block; width: auto; background: var(--card); color: var(--indigo); border: 1.5px solid var(--indigo); font-size: 16px; padding: 10px 16px; margin: 4px 6px 4px 0; }
.btn-ghost:hover { background: var(--indigo-wash); color: var(--indigo-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* 오행 색 */
.e-wood { color: var(--wood); } .e-fire { color: var(--fire); } .e-earth { color: var(--earth); } .e-metal { color: var(--metal); } .e-water { color: var(--water); }
.e-bg-wood { background: var(--wood); } .e-bg-fire { background: var(--fire); } .e-bg-earth { background: var(--earth); } .e-bg-metal { background: var(--metal); } .e-bg-water { background: var(--water); }
.seal.e-seal-wood { color: var(--wood); border-color: var(--wood); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--wood); }
.seal.e-seal-fire { color: var(--fire); border-color: var(--fire); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--fire); }
.seal.e-seal-earth { color: var(--earth); border-color: var(--earth); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--earth); }
.seal.e-seal-metal { color: var(--metal); border-color: var(--metal); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--metal); }
.seal.e-seal-water { color: var(--water); border-color: var(--water); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--water); }

/* 간지 글자 칩 */
.gz { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 62px; border-radius: 10px; line-height: 1.1; }
.gz b { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.gz i { font-style: normal; font-size: 12px; opacity: .8; }
.gz.e-wood { background: var(--wood-wash); } .gz.e-fire { background: var(--fire-wash); } .gz.e-earth { background: var(--earth-wash); }
.gz.e-metal { background: var(--metal-wash); } .gz.e-water { background: var(--water-wash); }

/* 원국표 */
table.wonguk { table-layout: fixed; }
table.wonguk th, table.wonguk td { text-align: center; white-space: normal; padding: 8px 4px; }
table.wonguk thead th { font-family: var(--serif); font-size: 15px; }
table.wonguk tbody th { width: 64px; font-size: 13px; color: var(--ink-soft); background: var(--paper); font-weight: 500; }
table.wonguk small { font-size: 13px; }
.calc-info { margin: 8px 0 16px; font-size: 15px; color: var(--ink-soft); }
.calc-info summary { cursor: pointer; color: var(--indigo); }
.saju-result h2 { margin-top: 40px; }
.saju-result details summary { cursor: pointer; color: var(--indigo); font-weight: 500; margin: 8px 0; }

/* 오행 막대 */
.elem-bars { display: grid; gap: 8px; margin: 12px 0 16px; }
.elem-bar { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.elem-name { font-weight: 600; }
.bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 999px; }
.elem-num { color: var(--ink-soft); font-size: 14px; white-space: nowrap; }

/* 십신 */
.god-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.god { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; padding: 8px 2px; }
.god span { display: block; font-size: 13px; color: var(--ink-soft); }
.god b { font-family: var(--serif); font-size: 22px; }
.god.zero { opacity: .45; }

/* 강약 미터 */
.meter { position: relative; height: 14px; background: var(--line); border-radius: 999px; margin: 16px 0 6px; overflow: hidden; }
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--indigo); border-radius: 999px; }
.meter-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--gold); }
.meter-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.meter-label strong { color: var(--ink); font-size: 16px; }
.yong { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.yong > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.yong .k { display: block; font-size: 13px; color: var(--ink-soft); }
.yong .v { font-family: var(--serif); font-size: 20px; font-weight: 700; }

/* 대운 */
.daeun-scroll { overflow-x: auto; margin: 12px 0; padding-bottom: 6px; }
.daeun { display: flex; flex-direction: row; gap: 6px; width: max-content; }
.du { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 68px; }
.du.now { border: 2px solid var(--gold); background: var(--gold-wash); }
.du .gz { width: 46px; height: 50px; }
.du .gz b { font-size: 24px; }
.du .age { font-weight: 600; font-size: 14px; }
.du-god { font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.4; }
.du-year { font-size: 12px; color: var(--ink-soft); }
tr.now td { background: var(--gold-wash); font-weight: 600; }

/* 점수 */
.score-big { font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--indigo); line-height: 1; }
.score-big small { font-size: 22px; color: var(--ink-soft); }
.score-list { list-style: none; padding: 0; margin: 12px 0; }
.score-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-list .pts { font-weight: 700; white-space: nowrap; }
.score-list .pts.plus { color: var(--wood); } .score-list .pts.minus { color: var(--fire); }
.pair-forms { display: grid; gap: 12px; }
.fortune-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin: 12px 0; }
.fortune-block h3 { margin-top: 0; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* 목록·카드 그리드 (일주·꿈·타로) */
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 12px 0 24px; }
.index-grid a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; text-decoration: none; color: var(--ink); }
.index-grid a:hover { border-color: var(--indigo); }
.index-grid b { display: block; font-family: var(--serif); font-size: 17px; }
.index-grid span { display: block; font-size: 13px; color: var(--ink-soft); }
.search-box { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card); padding: 0 12px; margin: 8px 0 16px; }
.search-box:focus-within { border-color: var(--indigo); }
.search-box input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 18px; padding: 12px 0; min-width: 0; }
.search-box input:focus { outline: none; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--indigo-wash); color: var(--indigo); margin: 0 4px 4px 0; }
.tag.good { background: var(--wood-wash); color: var(--wood); } .tag.bad { background: var(--fire-wash); color: var(--fire); } .tag.mid { background: var(--earth-wash); color: var(--earth); }

/* 타로 카드 (그림 없이 활자로 만든 카드) */
.tcard { position: relative; width: 132px; aspect-ratio: 7 / 12; border-radius: 12px; background: var(--indigo-deep); color: #F2F3EE; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 8px; text-align: center; border: 3px solid var(--gold); box-shadow: inset 0 0 0 4px var(--indigo-deep), inset 0 0 0 5px rgba(217,162,27,.6); }
.tcard .tnum { font-family: var(--serif); font-size: 15px; color: var(--gold); }
.tcard .tsym { font-size: 40px; line-height: 1; color: var(--gold); }
.tcard .tname { font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.3; }
.tcard .ten { font-size: 10px; opacity: .7; }
.tcard.rev .tsym, .tcard.rev .tnum { transform: rotate(180deg); }
.tcard.back { background: repeating-linear-gradient(45deg, var(--indigo-deep) 0 8px, var(--indigo) 8px 16px); }
.tcard.back .tsym { font-size: 32px; }
.spread { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.spread figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spread figcaption { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin: 16px 0; }
.deck button { aspect-ratio: 7 / 12; border-radius: 6px; border: 2px solid var(--gold); background: repeating-linear-gradient(45deg, var(--indigo-deep) 0 5px, var(--indigo) 5px 10px); cursor: pointer; transition: transform .15s; }
.deck button:hover { transform: translateY(-4px); }
.deck button[disabled] { opacity: .25; cursor: default; transform: none; }
.card-hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }

.footer-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.footer-tools p { margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.footer-tools a { display: block; color: var(--ink-soft); text-decoration: none; padding: 2px 0; }
.footer-tools a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .site-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .gz { width: 46px; height: 54px; } .gz b { font-size: 25px; }
  table.wonguk tbody th { width: 50px; font-size: 12px; }
  table.wonguk small { font-size: 12px; }
  .god-grid { grid-template-columns: repeat(5, 1fr); }
  .god b { font-size: 18px; }
  .elem-bar { grid-template-columns: 58px 1fr; }
  .elem-num { grid-column: 2; }
  .footer-tools { grid-template-columns: 1fr 1fr; }
  .tcard { width: 100px; padding: 10px 6px; } .tcard .tsym { font-size: 30px; } .tcard .tname { font-size: 13px; }
  .card-hero { flex-direction: column; align-items: center; }
}
.home-services { grid-template-columns: repeat(3, 1fr); }
.home-services .v { font-size: 22px; }
@media (max-width: 620px) { .home-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .deck { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; } }
.home-services li { display: flex; }
.home-services .summary-card { flex: 1; }

/* 사주 결과: 해석 안내·보기 단계·근거 블록 */
.notice { font-size: 14px; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--indigo); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 12px; }
.notice strong { color: var(--ink); margin-right: 6px; }
.mode-bar { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 12px; }
.mode-bar button { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-soft); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.mode-bar button[aria-pressed="true"] { background: var(--indigo); color: #fff; }
.scope { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.summary-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; margin: 12px 0; }
.summary-box ul { margin: 0; padding-left: 1.1em; }
.summary-box li { margin-bottom: 8px; }
.fcd { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 8px 0 16px; }
.fcd p { margin: 0 0 6px; }
.fcd p:last-child { margin: 0; }
.fcd-k { display: inline-block; font-size: 12px; font-weight: 600; color: var(--indigo); background: var(--indigo-wash); border-radius: 4px; padding: 1px 6px; margin-right: 8px; }
table.fields td, table.fields th { white-space: normal; min-width: 120px; vertical-align: top; font-size: 14px; }
.result[data-mode="quick"] [data-lv="2"], .result[data-mode="quick"] [data-lv="3"] { display: none; }
.result[data-mode="standard"] [data-lv="3"], .result[data-mode="standard"] .lv3row { display: none; }
.result[data-mode="quick"] .lv3row { display: none; }
@media (max-width: 480px) { .mode-bar { display: flex; flex-wrap: wrap; border-radius: 16px; } .mode-bar button { padding: 6px 12px; font-size: 14px; } }

/* =====================================================================
   PREMIUM THEME (2026-10-15) — 프리미엄 리포트와 같은 톤
   밤하늘 쪽빛(#161C40) · 금박(#C9A24A) · 한지 미색(#F7F3EA) · 명조 제목
   ===================================================================== */
:root {
  --paper: #F7F3EA;
  --card: #FFFEFB;
  --ink: #1F2238;
  --ink-soft: #5E6075;
  --line: #E4DCC9;
  --indigo: #1D2452;
  --indigo-deep: #161C40;
  --indigo-wash: #ECEDF5;
  --gold: #C9A24A;
  --gold-deep: #A8832F;
  --gold-wash: #F6EEDA;
  --night: #161C40;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(22,28,64,.04), 0 8px 24px -12px rgba(22,28,64,.18);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
html, body { overflow-x: clip; }
body {
  background: var(--paper);
  background-image: radial-gradient(rgba(201,162,74,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  letter-spacing: -0.005em;
}
::selection { background: var(--gold-wash); color: var(--indigo-deep); }
a { color: var(--indigo); }
.wrap { max-width: 820px; padding: 0 20px; }

/* 머리글: 밤하늘 띠 */
.site-header { background: var(--night); border-bottom: 1px solid rgba(201,162,74,.35); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 68px; }
.brand, .brand:hover { color: #F4ECD8; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.brand-mark { width: 32px; height: 28px; }
.site-nav a { color: rgba(244,236,216,.72); font-size: 14.5px; letter-spacing: .01em; border-radius: 6px; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-nav a[aria-current="page"] { color: var(--gold); background: transparent; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

main { padding-top: 40px; padding-bottom: 80px; }

/* 제목 */
h1, h2, h3 { color: var(--indigo-deep); letter-spacing: -0.02em; }
h1 { font-weight: 900; }
h2 { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: relative; }
h2::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 44px; height: 2px; background: var(--gold); }
.lede { color: var(--ink-soft); }
main > h1:first-of-type::before, .crumbs + h1::before {
  content: '◆'; display: block; color: var(--gold); font-size: 11px; letter-spacing: .4em; margin-bottom: 10px;
}
.section-eyebrow { font-size: 12px; letter-spacing: .32em; color: var(--gold-deep); font-weight: 600; margin: 8px 0 4px; }
.section-title { margin-top: 0; }

/* 버튼 */
.btn { background: var(--indigo-deep); border: 1px solid var(--indigo-deep); border-radius: 6px; letter-spacing: .02em; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 6px 16px -8px rgba(22,28,64,.6); }
.btn:hover { background: #222A5E; transform: translateY(-1px); }
.btn-gold, .btn-gold:hover { background: linear-gradient(180deg, #D8B562, #C9A24A 55%, #B48E3A); color: #161C40; border-color: #B48E3A; font-weight: 700; }
.btn-line, .btn-line:hover { background: transparent; color: #F4ECD8; border: 1px solid rgba(244,236,216,.45); box-shadow: none; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { border-radius: 6px; border-width: 1px; box-shadow: none; }

/* 카드 공통 */
.birth-form, .answer, .summary-card, .fortune-block, .summary-box, .fcd, .notice, .related-list a, .index-grid a, .yong > div, .god, .du, .table-wrap {
  border-color: var(--line); box-shadow: var(--shadow);
}
.birth-form { border-top: 3px solid var(--gold); padding: 26px 24px; }
.form-title { font-size: 20px; color: var(--indigo-deep); }
.cal-toggle { background: var(--paper); border: 1px solid var(--line); }
.cal-toggle input:checked + span { background: var(--indigo-deep); color: var(--gold); }
.date-field { border-width: 1px; border-color: #D9D0BB; background: #fff; }
.date-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
.form-actions .btn { background: linear-gradient(180deg, #232B63, #161C40); color: #F4ECD8; font-family: var(--serif); font-size: 18px; padding: 16px; }
.form-actions .btn:hover { color: var(--gold); }

.summary-card { position: relative; padding: 20px 18px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.summary-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(22,28,64,.35); }
.summary-card .k { color: var(--gold-deep); font-size: 12.5px; letter-spacing: .04em; font-weight: 600; }
.summary-card .v { color: var(--indigo-deep); font-weight: 700; }
.summary-card .more { color: var(--gold-deep); }

.answer { border-top: 3px solid var(--gold); }
.answer-main { color: var(--indigo-deep); font-weight: 900; }
.note { background: var(--gold-wash); border-left: 3px solid var(--gold); border-radius: 4px; }
.notice { border-left: 3px solid var(--gold); }

/* 사주 결과 */
.mode-bar { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.mode-bar button[aria-pressed="true"] { background: var(--indigo-deep); color: var(--gold); font-weight: 600; }
.saju-result h2 { margin-top: 48px; }
.saju-result details summary, .calc-info summary, .options summary { color: var(--gold-deep); }
.fcd-k { color: var(--indigo-deep); background: var(--gold-wash); }
.meter-fill { background: linear-gradient(90deg, #2A3470, #161C40); }
.du.now { border: 1.5px solid var(--gold); background: var(--gold-wash); }
tr.now td { background: var(--gold-wash); }
.yong .v, .god b, .score-big { color: var(--indigo-deep); }
.gz { border: 1px solid rgba(0,0,0,.04); }
.gz b { font-weight: 900; }

/* 표: 리포트처럼 쪽빛 머리 */
.table-wrap { border-radius: 10px; }
th { background: var(--indigo-deep); color: #F4ECD8; font-weight: 500; }
table.wonguk thead th { background: var(--indigo-deep); color: var(--gold); }
table.wonguk tbody th { background: #F3EEE1; color: var(--ink-soft); }
tbody tr:nth-child(even) td { background: rgba(247,243,234,.6); }

/* 본문·FAQ */
.article { border-top: 0; margin-top: 56px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 28px 20px; box-shadow: var(--shadow); }
.faq summary::after { color: var(--gold); }
.tag { background: var(--indigo-wash); color: var(--indigo-deep); }
.related-list a:hover, .index-grid a:hover { border-color: var(--gold); }
.index-grid b { color: var(--indigo-deep); }

/* 타로 카드 금박 */
.tcard { background: radial-gradient(120% 80% at 50% 0%, #2A3470, #161C40); border-color: var(--gold); }
.tcard .tnum, .tcard .tsym { color: var(--gold); }

/* 바닥글: 밤하늘 */
.site-footer { background: #10142F; color: rgba(244,236,216,.6); border-top: 1px solid rgba(201,162,74,.35); padding: 48px 0 56px; }
.footer-brand { color: #F4ECD8; letter-spacing: .08em; font-size: 20px; }
.footer-tools p { color: var(--gold); font-family: var(--serif); }
.footer-tools a, .footer-nav a { color: rgba(244,236,216,.7); }
.footer-tools a:hover, .footer-nav a:hover { color: var(--gold); }
.footer-note, .footer-copy { color: rgba(244,236,216,.45); }


@media (max-width: 520px) {
  .site-header { position: static; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
}
@media print { .hero { display: none; } }

/* =====================================================================
   V2 LAYOUT & MOTION (2026-10-15)
   ===================================================================== */
@font-face { font-family: x; src: local(x); }
.site-header { background: rgba(16,20,47,.97); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(201,162,74,.18); transition: background .3s, border-color .3s; }
.site-header.scrolled { background: rgba(16,20,47,.94); border-bottom-color: rgba(201,162,74,.4); }
.header-inner { max-width: 1160px; flex-wrap: nowrap; }
.site-nav { flex-wrap: nowrap; margin-left: auto; }
.header-cta { flex: none; text-decoration: none; font-size: 14px; font-weight: 600; color: #161C40; background: linear-gradient(180deg,#E2C277,#C9A24A); padding: 8px 16px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 6px 18px -6px rgba(201,162,74,.6); transition: transform .2s, box-shadow .2s; }
.header-cta:hover { color: #161C40; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 24px -6px rgba(201,162,74,.75); }
canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* 공통 풀블리드 */
.hero, .page-hero, .services-band, .report-band { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- 메인 히어로 ---------- */
.page-home main { padding-top: 0; }
.hero {
  min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); margin-bottom: 0; overflow: hidden; color: #F4ECD8;
  display: grid; grid-template-rows: 1fr auto; align-items: center;
  padding: 56px max(24px, calc(50vw - 560px)) 0;
  background: radial-gradient(90% 70% at 78% 30%, #2C3A7E 0%, rgba(44,58,126,0) 60%), radial-gradient(60% 50% at 10% 100%, rgba(201,162,74,.12), transparent 70%), linear-gradient(180deg, #10142F 0%, #161C40 60%, #10142F 100%);
}
.hero-in { position: relative; z-index: 2; max-width: 700px; }
.hero-ring { position: absolute; z-index: 1; right: max(-180px, calc(50vw - 760px)); top: 50%; width: min(760px, 92vw); aspect-ratio: 1; transform: translateY(calc(-50% + var(--py, 0px))); opacity: .9; }
.hero-ring svg { width: 100%; height: 100%; overflow: visible; }
.hero-ring circle { fill: none; stroke: rgba(201,162,74,.38); stroke-width: 1; }
.hero-ring line { stroke: rgba(201,162,74,.55); stroke-width: 1.2; }
.hero-ring text { fill: rgba(226,194,119,.85); font-family: var(--serif); font-size: 30px; font-weight: 500; }
.hero-ring .r3 text { font-size: 22px; fill: rgba(244,236,216,.45); }
.hero-ring g { transform-origin: 300px 300px; }
.hero-ring .r1 { animation: spin 160s linear infinite; }
.hero-ring .r2 { animation: spin 90s linear infinite reverse; }
.hero-ring .r3 { animation: spin 220s linear infinite; }
.hero-ring::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(226,194,119,.22), transparent 65%); filter: blur(8px); animation: breathe 6s ease-in-out infinite; }
.hero-moon { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-30%, -50%); box-shadow: -2.2vw .7vw 0 0 #E2C277; filter: drop-shadow(0 0 22px rgba(226,194,119,.45)); }
@media (min-width: 1200px) { .hero-moon { box-shadow: -26px 9px 0 0 #E2C277; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.06); } }

.hero-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold); font-family: var(--serif); font-size: 15px; letter-spacing: .3em; margin: 0 0 26px; }
.hero-eyebrow i { width: 26px; height: 1px; background: rgba(201,162,74,.6); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.22; font-weight: 900; margin: 0 0 26px; letter-spacing: -0.035em; }
.hero h1::before { display: none !important; }
.hero h1 .ln { display: block; overflow: hidden; padding: .04em 0 .16em; margin-bottom: -.12em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 .line2 > span { background: linear-gradient(100deg, #F4ECD8 0%, #E2C277 35%, #C9A24A 60%, #F4ECD8 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer { 50% { background-position: 100% 0; } }
.hero .lede { color: rgba(244,236,216,.78); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.8; max-width: 31em; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.hero-cta .btn { width: auto; padding: 16px 28px; font-size: 16.5px; border-radius: 999px; }
.btn-gold span { display: inline-block; transition: transform .2s; }
.btn-gold:hover span { transform: translateX(4px); }
.hero-trust { position: relative; z-index: 2; list-style: none; margin: 56px 0 0; padding: 22px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid rgba(201,162,74,.28); font-size: 13.5px; color: rgba(244,236,216,.58); }
.hero-trust b { display: block; font-family: var(--serif); color: #F4ECD8; font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 128px; width: 22px; height: 36px; border: 1.5px solid rgba(244,236,216,.4); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* 히어로 첫 등장 */
.js .hero-eyebrow, .js .hero .lede, .js .hero-cta, .js .hero-trust { opacity: 0; animation: up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero h1 .ln > span { transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2,.75,.15,1) forwards; }
.js .hero h1 .ln:nth-child(2) > span { animation-delay: .14s; }
.js .hero-eyebrow { animation-delay: .05s; } .js .hero .lede { animation-delay: .45s; } .js .hero-cta { animation-delay: .6s; } .js .hero-trust { animation-delay: .8s; }
.js .hero-ring { opacity: 0; animation: ringIn 2.2s .1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ringIn { from { opacity: 0; scale: .92; } to { opacity: .9; scale: 1; } }

/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* 섹션 공통 */
.classics, .elements { padding: 96px 0 24px; }
.section-eyebrow { text-align: center; }
.section-title { text-align: center; font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; border: 0 !important; padding: 0; margin: 6px 0 14px; }
.section-title::after { position: static; display: block; margin: 18px auto 0; width: 40px; }
.section-lede { text-align: center; max-width: 34em; margin: 0 auto 40px; font-size: 16px; line-height: 1.8; }

.classic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.classic { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px 26px; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s, border-color .35s; }
.classic:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 40px -22px rgba(22,28,64,.45); }
.classic .glyph { position: absolute; right: -6px; top: -18px; font-family: var(--serif); font-size: 120px; font-weight: 900; color: rgba(201,162,74,.12); line-height: 1; transition: color .35s, transform .6s; }
.classic:hover .glyph { color: rgba(201,162,74,.24); transform: rotate(-6deg) scale(1.05); }
.classic b { display: block; position: relative; font-family: var(--serif); font-size: 22px; color: var(--indigo-deep); }
.classic em { display: block; position: relative; font-style: normal; color: var(--gold-deep); font-size: 14px; font-weight: 600; margin: 4px 0 14px; }
.classic p { position: relative; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

/* 서비스: 밤하늘 띠 */
.services-band { margin-top: 88px; padding: 96px max(20px, calc(50vw - 560px)) 104px; background: radial-gradient(70% 60% at 50% 0%, #26306B, #161C40 60%, #10142F); color: #F4ECD8; overflow: hidden; }
.services-band .section-title { color: #fff; }
.svc-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-grid li { display: flex; }
.svc { position: relative; flex: 1; overflow: hidden; display: block; text-decoration: none; color: #F4ECD8; padding: 30px 26px 28px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(201,162,74,.22); transition: transform .35s, border-color .35s, background .35s; }
.svc::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(226,194,119,.18), transparent 45%); opacity: 0; transition: opacity .35s; }
.svc:hover { color: #F4ECD8; transform: translateY(-5px); border-color: rgba(226,194,119,.6); }
.svc:hover::before { opacity: 1; }
.svc .glyph { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(201,162,74,.55); font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold); margin-bottom: 22px; transition: background .35s, color .35s; }
.svc:hover .glyph { background: var(--gold); color: #161C40; }
.svc .k { position: relative; display: block; font-size: 12.5px; color: var(--gold); letter-spacing: .04em; }
.svc .v { position: relative; display: block; font-family: var(--serif); font-size: 24px; font-weight: 700; color: #fff; margin: 4px 0 8px; }
.svc .s { position: relative; display: block; font-size: 14px; color: rgba(244,236,216,.6); }
.svc::after { content: '→'; position: absolute; right: 24px; bottom: 24px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: .3s; }
.svc:hover::after { opacity: 1; transform: none; }

/* 오행 */
.elem-row { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 28px); flex-wrap: wrap; }
.elem-orb { width: clamp(96px, 15vw, 132px); aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; position: relative; animation: float 6s ease-in-out infinite; box-shadow: 0 18px 40px -18px var(--c), inset 0 -10px 24px rgba(0,0,0,.18), inset 0 8px 18px rgba(255,255,255,.25); background: radial-gradient(circle at 32% 28%, var(--c2), var(--c) 70%); }
.elem-orb b { font-family: var(--serif); font-size: clamp(34px, 5vw, 46px); font-weight: 900; line-height: 1; }
.elem-orb span { font-size: 12.5px; margin-top: 6px; opacity: .9; }
.elem-orb::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--c); opacity: .35; animation: spin 30s linear infinite; }
.o-wood { --c: #2F7A4A; --c2: #5DAA74; animation-delay: 0s; } .o-fire { --c: #B8382D; --c2: #E8705F; animation-delay: -1.2s; }
.o-earth { --c: #A87A1E; --c2: #DDB15A; animation-delay: -2.4s; } .o-metal { --c: #6C7383; --c2: #A9AFBC; animation-delay: -3.6s; }
.o-water { --c: #1F3268; --c2: #4D66A8; animation-delay: -4.8s; }
@keyframes float { 50% { translate: 0 -10px; } }
.elem-orb.rv.in { transition-duration: 1.1s; }

/* 프리미엄 리포트 */
.report-band { margin-top: 104px; margin-bottom: 24px; padding: 96px max(20px, calc(50vw - 560px)); background: linear-gradient(120deg, #F3EBD7, #FBF7EC 55%, #EFE5CC); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; overflow: hidden; }
.report-copy .section-eyebrow, .report-copy .section-title { text-align: left; }
.report-copy .section-title::after { margin-left: 0; }
.report-copy p { color: var(--ink-soft); line-height: 1.85; }
.report-copy ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.report-copy li { padding: 9px 0 9px 28px; border-bottom: 1px dashed #D8CDB2; position: relative; font-weight: 500; }
.report-copy li::before { content: '◆'; position: absolute; left: 4px; color: var(--gold); font-size: 11px; top: 13px; }
.soon { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; padding: 8px 18px; }
.report-mock { position: relative; height: 440px; perspective: 1400px; }
.report-mock .pg { position: absolute; width: 250px; aspect-ratio: 1 / 1.414; border-radius: 6px; background: #fff; box-shadow: 0 30px 60px -24px rgba(22,28,64,.45), 0 0 0 1px rgba(0,0,0,.04); padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.report-mock .pg i { display: block; height: 7px; border-radius: 4px; background: #E9E3D3; }
.report-mock .pg i.s { width: 60%; } .report-mock .pg i.h { height: 12px; width: 55%; background: #1D2452; margin-bottom: 8px; }
.report-mock .pg i.box { height: 56px; background: #F7F3E8; border-left: 3px solid #C9A24A; border-radius: 3px; }
.report-mock .p1 { left: 50%; top: 20px; z-index: 3; background: radial-gradient(80% 60% at 80% 10%, #2C3A7E, #161C40 60%); color: #F4ECD8; transform: translateX(-30%) rotate(4deg); }
.report-mock .p2 { left: 50%; top: 44px; z-index: 2; transform: translateX(-62%) rotate(-5deg); }
.report-mock .p3 { left: 50%; top: 70px; z-index: 1; transform: translateX(-88%) rotate(-12deg); opacity: .9; }
.report-mock:not(.in) .p1, .report-mock:not(.in) .p2, .report-mock:not(.in) .p3 { transform: translateX(-50%) rotate(0); }
.report-mock:hover .p1 { transform: translateX(-24%) rotate(6deg) translateY(-8px); }
.report-mock .m { position: absolute; top: 26px; right: 30px; width: 44px; height: 44px; border-radius: 50%; box-shadow: -11px 4px 0 0 #E2C277; }
.report-mock .b { margin-top: 110px; font-family: var(--serif); font-size: 11px; letter-spacing: .3em; color: #C9A24A; }
.report-mock .t { font-family: var(--serif); font-weight: 900; font-size: 20px; line-height: 1.35; color: #fff; }
.report-mock .w { margin-top: auto; height: 1px; background: #C9A24A; }

/* 홈의 생일 폼 영역 */
.page-home main > h2:not(.section-title) { margin-top: 88px; }

/* ---------- 다른 페이지: 밤하늘 머리 ---------- */
main:has(> .page-hero) { padding-top: 0; }
.page-hero { overflow: hidden; margin-bottom: 36px; padding: 64px max(20px, calc(50vw - 390px)) 60px; color: #F4ECD8; background: radial-gradient(70% 90% at 85% 0%, #2C3A7E, #161C40 55%, #10142F); border-bottom: 1px solid rgba(201,162,74,.3); }
.page-hero::after { content: ''; position: absolute; right: max(-60px, calc(50vw - 520px)); top: 50%; width: 300px; height: 300px; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(201,162,74,.28); box-shadow: 0 0 0 26px rgba(201,162,74,.04), 0 0 0 27px rgba(201,162,74,.18), 0 0 0 70px rgba(201,162,74,.025), 0 0 0 71px rgba(201,162,74,.12); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
.page-hero-in { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; }
.page-hero h1 .muted { color: rgba(244,236,216,.55); }
.page-hero h1::before { color: var(--gold) !important; }
.page-hero .lede { color: rgba(244,236,216,.78); margin: 0; max-width: 36em; }
.page-hero .crumbs { margin: 0 0 18px; color: rgba(244,236,216,.55); }
.page-hero .crumbs a { color: rgba(244,236,216,.75); }
.js .page-hero-in > * { opacity: 0; animation: up .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .page-hero-in > :nth-child(2) { animation-delay: .08s; } .js .page-hero-in > :nth-child(3) { animation-delay: .16s; }

/* 사주 결과 카드화 */
.saju-result { animation: up .7s cubic-bezier(.2,.7,.2,1); }
.answer { position: relative; overflow: hidden; }
.answer::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,74,.16), transparent 70%); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; row-gap: 0; }
  .site-nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }
  .hero-ring { right: -38vw; width: 100vw; opacity: .55; }
  .report-band { grid-template-columns: 1fr; }
  .report-mock { height: 380px; }
}
@media (max-width: 720px) {
  .classic-grid, .svc-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-ring { top: 22%; right: -45vw; width: 110vw; opacity: .35; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .classics, .elements { padding-top: 72px; }
  .services-band, .report-band { padding-top: 72px; padding-bottom: 72px; margin-top: 64px; }
  .page-hero { padding: 44px 20px 42px; }
  .page-hero::after { width: 200px; height: 200px; right: -90px; }
  .report-mock .pg { width: 200px; }
}
@media (max-width: 520px) {
  .site-header { position: sticky; }
  .header-inner { min-height: 56px; padding-top: 6px; padding-bottom: 0; }
  .brand-name { font-size: 19px; }
  .header-cta { padding: 7px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ring g, .hero-ring::after, .elem-orb, .elem-orb::after, .page-hero::after, .hero h1 .line2 > span, .scroll-cue span { animation: none !important; }
  .js .hero *, .js .page-hero-in > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

.site-footer .footer-inner { max-width: 1160px; }
.report-mock { max-width: 520px; width: 100%; justify-self: center; }
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .hero-ring { opacity: .22; }
}

/* 사주 보기 단계 탭: 크게 (2026-10-15) */
.mode-bar { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; gap: 6px; padding: 6px; margin: 4px 0 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 10px 28px -14px rgba(22,28,64,.35); }
.mode-bar button { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--indigo-deep); padding: 15px 8px; border-radius: 11px; transition: background .2s, color .2s; }
.mode-bar button:hover { background: var(--gold-wash); }
.mode-bar button[aria-pressed="true"] { background: linear-gradient(180deg, #232B63, #161C40); color: var(--gold); box-shadow: 0 6px 16px -8px rgba(22,28,64,.7); }
@media (min-width: 901px) { .mode-bar { position: sticky; top: 80px; z-index: 10; } }
@media (max-width: 480px) { .mode-bar { display: grid; flex-wrap: nowrap; gap: 4px; padding: 5px; } .mode-bar button { font-size: 16px; padding: 13px 2px; } }

/* 쉬운 풀이 V2 (2026-10-15) */
.mode-bar { grid-template-columns: repeat(2, 1fr); }
.topic-list { display: grid; gap: 14px; }
.topic { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow); }
.topic h3 { margin: 0 0 8px; font-size: 19px; color: var(--indigo-deep); }
.topic p { margin: 0; line-height: 1.85; }
.topic .when-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft); }
.when { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-right: 4px; }
.when.good { background: var(--gold-wash); color: var(--gold-deep); }
.when.bad { background: #EEF0F6; color: var(--indigo); margin-left: 6px; }
table.life th[scope=row] { white-space: nowrap; }
table.life td:nth-child(2) { white-space: nowrap; text-align: center; }
.now-tag { color: var(--gold-deep); font-size: 12.5px; }
ol.todo { margin: 0 0 14px; padding-left: 20px; line-height: 1.85; }
ol.todo li { margin-bottom: 8px; }
.closing { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 16.5px; line-height: 1.8; color: var(--indigo-deep); }
.ez-scope { font-size: 14px; color: var(--ink-soft); margin: 4px 0 14px; }
.ez-why { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.ez-why span { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 8px; margin-right: 6px; }
.ez-last { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: #EEF0F6; font-size: 14px; color: var(--indigo); }
/* ghost buttons: readable on the premium navy button base (fix 2026-10-15) */
.btn.btn-ghost, a.btn-ghost { background: #161C40; color: #F7F3EA; border: 1px solid #C9A24A; text-decoration: none; }
.btn.btn-ghost:hover, a.btn-ghost:hover { background: #C9A24A; color: #161C40; border-color: #C9A24A; }

/* gunghap single button 2026-10-15 */
#gh-a .form-actions, #gh-b .form-actions { display: none; }
.gh-go-row { margin: 16px 0 8px; text-align: center; }
.gh-go-row .btn { width: 100%; max-width: 420px; }
.gh-detail { margin: 22px 0; }
.gh-detail > summary { cursor: pointer; font-weight: 700; padding: 12px 0; }

/* ===== RELATED V3: 결과 위 '이어서 보기' 줄 + 하단 카드 + 홈 서브 도구 ===== */
.next-strip { margin: 28px 0 14px; padding: 14px 16px 12px; border-radius: 16px; background: linear-gradient(135deg, #161C40, #222B5E); border: 1px solid rgba(201,162,74,.35); box-shadow: 0 10px 28px rgba(22,28,64,.18); }
.next-strip[hidden] { display: none; }
.next-strip .ns-label { display: block; font-size: 12px; letter-spacing: .14em; color: #C9A24A; font-weight: 700; margin-bottom: 9px; }
.next-strip .ns-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.next-strip .ns-row::-webkit-scrollbar { display: none; }
.next-strip a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(201,162,74,.3); color: #F4ECD8; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .25s, border-color .25s, transform .25s; }
.next-strip a:hover { background: rgba(201,162,74,.18); border-color: #E2C277; color: #fff; transform: translateY(-2px); }
.next-strip a i { font-style: normal; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(201,162,74,.6); color: #E2C277; font-family: 'Noto Serif KR', serif; font-size: 13px; font-weight: 700; }
.next-strip a.ns-all { padding: 8px 14px; background: transparent; border-style: dashed; color: #E2C277; }

.related { margin-top: 64px; padding: 36px 28px 30px; border-radius: 22px; background: radial-gradient(80% 70% at 50% 0%, #26306B, #161C40 65%, #10142F); border: 1px solid rgba(201,162,74,.28); color: #F4ECD8; scroll-margin-top: 90px; }
.related .section-eyebrow { color: #C9A24A; margin: 0 0 6px; }
.related h2 { color: #fff; margin: 0 0 22px; font-family: 'Noto Serif KR', serif; }
.related-list { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-list a { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 16px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(201,162,74,.24); border-radius: 14px; color: #F4ECD8; box-shadow: none; transition: transform .3s, border-color .3s, background .3s; }
.related-list a:hover { border-color: rgba(226,194,119,.7); transform: translateY(-3px); color: #fff; background: rgba(201,162,74,.12); }
.related-list .rg { grid-row: span 2; font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201,162,74,.55); color: #E2C277; font-family: 'Noto Serif KR', serif; font-size: 18px; font-weight: 700; }
.related-list b { font-size: 15.5px; color: #fff; }
.related-list span { font-size: 13px; color: rgba(244,236,216,.7); margin-top: 2px; }

.tools-band { margin-top: 64px; }
.tools-band .section-lede { margin-bottom: 0; }
.tool-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-grid a { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #E6DCC4; color: #161C40; text-decoration: none; box-shadow: 0 6px 18px rgba(22,28,64,.06); transition: transform .3s, border-color .3s, box-shadow .3s; }
.tool-grid a:hover { transform: translateY(-4px); border-color: #C9A24A; box-shadow: 0 12px 26px rgba(22,28,64,.12); color: #161C40; }
.tool-grid .tg { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #161C40; color: #E2C277; font-family: 'Noto Serif KR', serif; font-size: 19px; font-weight: 700; }
.tool-grid b { font-size: 16px; }
.tool-grid span { font-size: 13.5px; color: #6B6A75; margin-top: 2px; }

@media (max-width: 760px) {
  .related { padding: 28px 16px 22px; border-radius: 18px; }
  .related-list, .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .related-list a, .tool-grid a { grid-template-columns: 1fr; row-gap: 8px; padding: 14px; }
  .related-list .rg, .tool-grid .tg { grid-row: auto; }
}
@media print { .next-strip, .tools-band { display: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#more { scroll-margin-top: 90px; }
