* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f4f7f6;
  --paper-deep: #e7eeec;
  --surface: #ffffff;
  --ink: #17393b;
  --ink-soft: #526967;
  --line: #d5dfdc;
  --teal: #147568;
  --teal-soft: #e1f0eb;
  --gold: #a97825;
  --gold-soft: #f4e8c9;
  --coral: #c95c4b;
  --coral-soft: #f5dfd9;
  --blue: #2c6277;
  --blue-soft: #e2edf1;
  --wood: #3d8c62;
  --fire: #d95d4f;
  --earth: #c58a28;
  --metal: #71808b;
  --water: #3e72a7;
  --shadow: 0 12px 30px rgba(26, 62, 61, .08);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

button, input, select { font: inherit; letter-spacing: 0; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(22, 117, 101, .28);
  outline-offset: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #123f43 url("assets/unsedam-shrine-hero.webp") center 52% / cover no-repeat;
  color: #fff;
  border-bottom: 4px solid var(--gold);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(7, 27, 27, .62);
  content: "";
}

.hero-inner {
  width: min(920px, calc(100% - 32px));
  min-height: 272px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 42px 0;
}

.hero-copy { max-width: 590px; }

.hero-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 215, 144, .7);
  color: #f5d790;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 { font-size: 44px; line-height: 1.2; font-weight: 800; }
.hero .hanja { margin-left: 8px; color: #f5d790; font-size: 24px; font-weight: 500; }
.tagline { margin-top: 12px; color: #dbe8e3; font-size: 16px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: #e2ece9; font-size: 12px; font-weight: 700; }
.hero-points span::before { margin-right: 7px; color: #e8c87d; content: "✓"; }
.install-app { min-height: 38px; margin-top: 18px; padding: 7px 12px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .62); border-radius: 4px; font-size: 12px; font-weight: 800; cursor: pointer; }
.install-app span { margin-right: 5px; color: #f0d28d; font-size: 16px; }
.install-app:hover { background: #fff; color: var(--ink); }

main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }

.analysis-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; padding: 4px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 6px; }
.analysis-mode button { min-height: 44px; background: transparent; color: var(--ink-soft); border: 0; border-radius: 4px; font-size: 14px; font-weight: 800; cursor: pointer; }
.analysis-mode button.active { background: #fff; color: var(--teal); box-shadow: 0 3px 12px rgba(23, 57, 59, .08); }

.input-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 { font-size: 25px; line-height: 1.25; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--teal); font-size: 12px; font-weight: 800; }
.privacy-badge, .day-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid #b9d7cc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.concern-field { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.field-label { margin-bottom: 9px; color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.concern-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.concern-chip { min-height: 38px; padding: 7px 11px; background: #fff; color: var(--ink-soft); border: 1px solid #b9c8c4; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.concern-chip:hover { border-color: var(--teal); color: var(--teal); }
.concern-chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.custom-question-field { margin-top: 14px; }
.question-topic-hint { margin-top: 7px; color: #5d746f; font-size: 10px; line-height: 1.55; }
.custom-question-field > label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.custom-question-field > label span { margin-left: 4px; color: var(--blue); font-size: 10px; }
.question-input-row { position: relative; }
.question-input-row input { padding-right: 56px; }
.question-input-row small { position: absolute; right: 12px; top: 50%; color: #71817e; font-size: 10px; transform: translateY(-50%); }
.field { min-width: 0; border: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.field.muted, .check.muted { opacity: .48; }
.field-help { margin-top: 6px; color: var(--ink-soft); font-size: 11px; }

input[type="text"], input[type="date"], input[type="time"], select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfc8c3;
  border-radius: 6px;
}

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #bfc8c3; border-radius: 6px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; min-height: 46px; align-items: center; justify-content: center; background: #fff; color: var(--ink-soft); cursor: pointer; }
.seg label + label span { border-left: 1px solid #bfc8c3; }
.seg input:checked + span { background: var(--teal); color: #fff; font-weight: 800; }
.seg input:focus-visible + span { outline: 3px solid rgba(22, 117, 101, .25); outline-offset: -3px; }
.seg.compact span { min-height: 42px; font-size: 14px; }

.option-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }

.standards-control { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.standards-control summary { padding: 12px 0; color: var(--teal); font-size: 14px; font-weight: 800; cursor: pointer; }
.standards-body { display: grid; grid-template-columns: minmax(240px, 1fr) 1.4fr; gap: 24px; padding: 0 0 18px; }
.standards-body p { align-self: end; color: var(--ink-soft); font-size: 13px; }

.hint { margin-top: 14px; color: var(--ink-soft); font-size: 12px; }
.error { margin-top: 10px; color: #a8332e; font-size: 14px; font-weight: 700; }

.btn-primary {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.btn-primary:hover { background: #0c2924; }

.compatibility-input { border-top: 4px solid var(--blue); }
.compat-entry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid #afbfba; border-radius: 6px; overflow: hidden; }
.compat-entry-tabs button { min-height: 48px; padding: 8px; background: #fff; color: var(--ink-soft); border: 0; cursor: pointer; font-size: 13px; font-weight: 800; }
.compat-entry-tabs button + button { border-left: 1px solid #afbfba; }
.compat-entry-tabs button.active { background: var(--ink); color: #fff; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person-input { min-width: 0; padding: 18px; background: #f9fbfa; border: 1px solid var(--line); border-radius: 8px; }
.person-input > legend { padding: 0 7px; color: var(--ink); font-size: 15px; font-weight: 800; }
.person-input > legend span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; margin-right: 6px; background: var(--teal); color: #fff; border-radius: 4px; font-size: 12px; }
.person-input[data-person="b"] > legend span { background: var(--blue); }
.person-fields { display: grid; gap: 12px; }
.person-options { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.person-options .check { font-size: 12px; }
.compat-mode-note { margin-bottom: 18px; padding: 12px 14px; background: var(--blue-soft); color: #315d70; border-left: 3px solid var(--blue); font-size: 12px; }
.day-compare-grid { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 12px; align-items: end; }
.day-compare-grid .field { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }
.day-compare-grid .field label { grid-column: 1 / -1; }
.day-compare-grid .field select:last-child { grid-column: 1 / -1; }
.compat-plus { align-self: center; color: var(--gold); font-family: serif; font-size: 30px; text-align: center; }
.compat-deep-link { display: block; min-height: 40px; margin: 14px auto 0; padding: 7px 13px; background: var(--ink); color: #fff; border: 0; border-radius: 5px; font-size: 12px; font-weight: 800; cursor: pointer; }
.compat-deep-link:hover { background: var(--teal); }

.learning-strip { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: center; margin-top: 22px; padding: 24px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.learning-strip h2 { font-size: 20px; line-height: 1.3; }
.learning-strip p { margin-top: 6px; color: var(--ink-soft); font-size: 13px; }
.term-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.term-buttons button { min-height: 40px; padding: 7px; background: transparent; color: var(--ink); border: 1px solid #b8c7c3; border-radius: 4px; font-size: 12px; font-weight: 800; cursor: pointer; }
.term-buttons button:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

.result { margin-top: 28px; }
.compat-result { margin-top: 28px; }
.result-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px;
  background: rgba(244, 247, 246, .96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.result-nav::-webkit-scrollbar { display: none; }
.result-nav a { flex: 0 0 auto; padding: 8px 12px; color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 4px; }
.result-nav a:hover { background: var(--teal-soft); color: var(--teal); }

.analysis-section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.analysis-section:last-of-type { border-bottom: 0; }
.life-overview-section { overflow: hidden; padding: 0 0 34px; background: #fff; border: 1px solid #c8d7d2; border-top: 5px solid #d5b75d; }
.life-overview-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 34px 38px 30px; color: #fff; background: #153f42; }
.life-overview-hero > div { min-width: 0; }
.life-overview-hero span { color: #efd58d; font-size: 10px; font-weight: 900; }
.life-overview-hero h2 { margin-top: 6px; color: #fff; font-size: 29px; line-height: 1.35; }
.life-overview-hero p { max-width: 680px; margin-top: 9px; color: #c9dcd7; font-size: 12px; line-height: 1.7; }
.life-overview-hero > strong { flex: 0 0 auto; padding: 7px 10px; color: #153f42; background: #efd58d; border-radius: 4px; font-size: 10px; }
.life-overview-narrative { padding: 30px 38px; background: #f4f8f6; border-bottom: 1px solid #d9e5e1; }
.life-overview-narrative p { color: #294845; font-size: 14px; font-weight: 650; line-height: 2; word-break: keep-all; }
.life-overview-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 30px 38px 12px; }
.life-overview-subhead span { color: var(--coral); font-size: 9px; font-weight: 900; }
.life-overview-subhead h3 { color: var(--ink); font-size: 18px; }
.life-overview-subhead.age { margin-top: 34px; }
.life-overview-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 38px; }
.life-overview-fields article { min-width: 0; padding: 17px 18px; background: #fff; border: 1px solid #d8e3df; border-left: 4px solid #28746b; border-radius: 5px; }
.life-overview-fields article:last-child { grid-column: 1 / -1; }
.life-overview-fields span, .life-age-flow span { color: var(--teal); font-size: 9px; font-weight: 900; }
.life-overview-fields h4, .life-age-flow h4 { margin-top: 5px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.life-overview-fields p, .life-age-flow p { margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.life-age-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 38px; overflow: hidden; background: #d7e2de; border: 1px solid #d7e2de; border-radius: 5px; }
.life-age-flow article { min-width: 0; padding: 18px; background: #f7faf9; }
.life-age-flow span { display: inline-block; padding: 4px 7px; color: #fff; background: #315f5b; border-radius: 3px; }
.life-overview-note { margin: 18px 38px 0; padding-top: 13px; color: #71817d; border-top: 1px solid #dbe5e2; font-size: 9px; line-height: 1.65; }
.overview-section { padding-top: 34px; }
.section-desc { margin: -10px 0 18px; color: var(--ink-soft); font-size: 14px; }
.summary-line { margin: -8px 0 20px; color: var(--ink-soft); }
.summary-line b { color: var(--ink); }

.calculation-grade { flex: 0 0 auto; min-width: 88px; padding: 7px 11px; color: #176151; background: #e3f1ed; border: 1px solid #bddbd2; border-radius: 5px; font-size: 12px; font-weight: 900; text-align: center; }
.calculation-grade[data-grade="B"] { color: #7a591d; background: #fff4d8; border-color: #e5cf96; }
.calculation-grade[data-grade="C"] { color: #95463b; background: #f9e7e2; border-color: #e5bab2; }
.reliability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.reliability-grid > div { min-width: 0; padding: 17px; background: #fff; border-right: 1px solid var(--line); }
.reliability-grid > div:last-child { border-right: 0; }
.reliability-grid span { color: var(--teal); font-size: 10px; font-weight: 900; }
.reliability-grid strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; }
.reliability-grid p { margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.reliability-notes { display: grid; gap: 5px; margin-top: 14px; padding: 14px 16px 14px 34px; color: var(--ink-soft); background: #f8faf9; border-left: 3px solid var(--teal); font-size: 12px; }
.comparison-clear { margin-top: 12px; padding: 11px 13px; color: var(--ink-soft); background: #f8faf9; border: 1px solid var(--line); font-size: 11px; }
.calculation-comparisons { margin-top: 20px; }
.calculation-comparisons .subsection-head { margin: 0 0 10px; }
.comparison-row { padding: 15px 0; border-top: 1px solid var(--line); }
.comparison-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.comparison-title strong { font-size: 14px; }
.comparison-title p { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
.comparison-title > span { flex: 0 0 auto; padding: 4px 7px; color: #176151; background: #e3f1ed; border: 1px solid #bddbd2; font-size: 9px; font-weight: 900; }
.comparison-title > span.changed { color: #95463b; background: #f9e7e2; border-color: #e5bab2; }
.comparison-variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; margin-top: 10px; border: 1px solid var(--line); }
.comparison-variants > div { padding: 12px 14px; background: #fff; }
.comparison-variants > div + div { border-left: 1px solid var(--line); }
.comparison-variants span { color: var(--teal); font-size: 10px; font-weight: 900; }
.comparison-variants p { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 5px; color: var(--ink-soft); font-size: 11px; }
.comparison-variants b { margin-right: 2px; color: var(--gold); }
.reliability-limit { margin-top: 10px; color: var(--ink-soft); font-size: 11px; }
.reliability-limit strong { margin-right: 6px; color: var(--coral); }

.month-command { padding: 20px 22px; color: #eef7f4; background: #173f42; border-radius: 7px; }
.month-command span { color: #f0d28d; font-size: 10px; font-weight: 900; }
.month-command strong { display: block; margin-top: 3px; font-size: 19px; }
.month-command p { margin-top: 7px; color: #cbded8; font-size: 12px; }
.foundation-summary { margin: 12px 0 24px; padding: 12px 14px; color: var(--ink-soft); background: var(--gold-soft); border-left: 3px solid var(--gold); font-size: 12px; }
.foundation-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foundation-columns .subsection-head { margin-bottom: 10px; }
.hidden-list, .root-list { border-top: 1px solid var(--line); }
.hidden-row, .root-row { min-height: 78px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.hidden-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 12px; }
.hidden-row > div > span, .root-row > div span { color: var(--teal); font-size: 10px; font-weight: 900; }
.hidden-row > div > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.hidden-stem { display: inline-flex; min-width: 30px; min-height: 29px; align-items: center; justify-content: center; gap: 3px; padding: 4px 6px; color: #fff; border-radius: 3px; font-size: 12px; font-weight: 900; }
.hidden-stem small { padding: 1px 3px; color: var(--ink); background: rgba(255,255,255,.78); border-radius: 2px; font-size: 7px; }
.hidden-row p { color: var(--ink-soft); font-size: 10px; }
.hidden-row p b, .root-row p b { display: block; color: var(--gold); font-size: 8px; }
.root-row { display: grid; grid-template-columns: 90px 1fr 1fr; align-items: center; gap: 10px; }
.root-row > div strong { display: block; font-size: 14px; }
.root-row p { color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.root-row.day-root { padding-inline: 10px; background: #edf6f3; border-left: 3px solid var(--teal); }
.foundation-terms { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.foundation-terms button { min-height: 36px; padding: 6px 10px; color: var(--teal); background: #fff; border: 1px solid #a9c4bd; border-radius: 4px; font-size: 11px; font-weight: 900; cursor: pointer; }
.foundation-terms button:hover { background: var(--teal-soft); }

.quick-read-section { padding: 30px 20px; background: #e9f1ef; border-top: 3px solid var(--teal); }
.quick-date { flex: 0 0 auto; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.quick-question { padding: 14px 16px; background: var(--ink); color: #fff; border-left: 4px solid var(--gold); }
.quick-question span { display: block; color: #bed2ce; font-size: 10px; font-weight: 800; }
.quick-question strong { display: block; margin-top: 2px; font-size: 17px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid #b9ccc7; border-bottom: 1px solid #b9ccc7; }
.quick-grid > div { min-width: 0; padding: 15px; border-right: 1px solid #b9ccc7; }
.quick-grid > div:last-child { border-right: 0; }
.quick-grid span { display: block; color: var(--teal); font-size: 10px; font-weight: 800; }
.quick-grid strong { display: block; margin: 3px 0 6px; font-size: 14px; }
.quick-grid p { color: var(--ink-soft); font-size: 12px; }
.quick-grid small { display: block; margin-top: 7px; color: var(--blue); font-size: 10px; }
.daily-mission { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 14px 16px; background: #fff; border: 1px solid #b9ccc7; border-left: 4px solid var(--gold); }
.daily-mission > div { min-width: 0; }
.daily-mission > div span { display: block; color: var(--gold); font-size: 10px; font-weight: 800; }
.daily-mission > div strong { display: block; margin-top: 2px; font-size: 13px; }
.daily-mission label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--teal); font-size: 12px; font-weight: 800; cursor: pointer; }
.daily-mission input { width: 19px; height: 19px; accent-color: var(--teal); }
.quick-links { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.quick-links a { padding: 7px 10px; color: var(--teal); border: 1px solid #9ebdb5; border-radius: 4px; font-size: 11px; font-weight: 800; text-decoration: none; }
.quick-links a:hover { background: #fff; }

.compat-overview { padding-top: 30px; }
.compat-overview-grid { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: stretch; }
.compat-score { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: #fff; border-top: 5px solid var(--gold); border-radius: 8px; }
.compat-score.mid { border-top-color: var(--teal); }
.compat-score.care { border-top-color: var(--coral); }
.compat-score span { color: #bfd2ce; font-size: 11px; font-weight: 800; }
.compat-score strong { margin: 2px 0; color: #f2d48d; font-family: serif; font-size: 56px; line-height: 1.1; }
.compat-score em { font-size: 12px; font-style: normal; font-weight: 800; }
.compat-pair { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.compat-pair > span { color: var(--blue); font-size: 11px; font-weight: 800; }
.pair-pillars { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 8px; align-items: center; margin: 12px 0; }
.pair-pillars > div { min-width: 0; padding: 12px; background: var(--paper); border-left: 3px solid var(--teal); }
.pair-pillars > div:last-child { border-left-color: var(--blue); }
.pair-pillars small, .pair-pillars em { display: block; color: var(--ink-soft); font-size: 10px; font-style: normal; }
.pair-pillars strong { display: block; color: var(--ink); font-family: serif; font-size: 30px; line-height: 1.25; }
.pair-pillars > b { color: var(--gold); font-size: 20px; text-align: center; }
.compat-pair > p { color: var(--ink-soft); font-size: 13px; }
.compat-pair > p b { color: var(--teal); }
.compat-confidence { margin-top: 12px; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); }
.compat-confidence > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compat-confidence span, .compat-confidence small { color: var(--ink-soft); font-size: 10px; }
.compat-confidence strong { color: var(--teal); font-size: 12px; }
.compat-confidence .compat-meter { margin: 8px 0 5px; }
.spouse-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.spouse-role-grid > div { padding: 15px; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.spouse-role-grid span { display: block; color: var(--blue); font-size: 10px; font-weight: 800; }
.spouse-role-grid strong { display: block; margin: 2px 0 5px; font-size: 16px; }
.spouse-role-grid p { color: var(--ink-soft); font-size: 12px; }
.compat-disclaimer { margin-top: 12px; color: var(--ink-soft); font-size: 11px; }

.compat-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compat-category { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.compat-category-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.compat-category-head span { display: block; color: var(--ink-soft); font-size: 10px; }
.compat-category-head strong { display: block; margin-top: 1px; font-size: 15px; }
.compat-category-head b { color: var(--teal); font-family: serif; font-size: 25px; }
.compat-meter { height: 7px; margin: 11px 0; overflow: hidden; background: var(--paper-deep); border-radius: 4px; }
.compat-meter span { display: block; height: 100%; background: var(--teal); }
.compat-meter span.high { background: var(--gold); }
.compat-meter span.care { background: var(--coral); }
.compat-category p { color: var(--ink-soft); font-size: 12px; }
.compat-category > small { display: block; margin-top: 8px; color: #788783; font-size: 9px; line-height: 1.5; }

.full-pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.full-pillar-card { padding: 17px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 8px; }
.full-pillar-card:nth-child(2) { border-top-color: var(--blue); }
.full-pillar-card:nth-child(3) { border-top-color: var(--coral); }
.full-pillar-card:nth-child(4) { border-top-color: var(--gold); }
.full-pillar-card.limited { opacity: .72; border-top-color: #9aa8a5; }
.full-pillar-title { display: flex; align-items: flex-start; gap: 10px; }
.full-pillar-title > span { flex: 0 0 auto; padding: 5px 8px; background: var(--teal-soft); color: var(--teal); border-radius: 4px; font-size: 11px; font-weight: 800; }
.full-pillar-title strong, .full-pillar-title small { display: block; }
.full-pillar-title strong { font-size: 15px; }
.full-pillar-title small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.full-pillar-card > p { margin: 11px 0; color: var(--ink-soft); font-size: 12px; }
.connection-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.connection-pair > div { min-width: 0; padding: 9px; background: var(--paper); }
.connection-pair em, .connection-pair span, .connection-pair strong, .connection-pair small { display: block; }
.connection-pair em { margin-bottom: 4px; color: var(--blue); font-size: 9px; font-style: normal; font-weight: 800; }
.connection-pair span { color: var(--ink-soft); font-size: 8px; }
.connection-pair strong { margin: 2px 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.connection-pair small { color: var(--teal); font-size: 8px; line-height: 1.4; }
.full-action { display: flex; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; }
.full-action b { flex: 0 0 auto; color: var(--coral); }
.full-action span { color: var(--ink-soft); }
.limited-note { padding: 10px; background: var(--paper-deep); color: var(--ink-soft); font-size: 10px; }
.full-reading-block { margin-top: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.full-block-heading { margin-bottom: 13px; }
.full-block-heading span { color: var(--blue); font-size: 9px; font-weight: 800; }
.full-block-heading h3 { margin-top: 2px; font-size: 16px; }
.element-combined { display: grid; gap: 8px; }
.element-combined-row { display: grid; grid-template-columns: 22px minmax(80px, 1fr) 22px minmax(120px, 1.4fr); gap: 8px; align-items: center; }
.element-combined-row strong { font-size: 12px; }
.element-combined-row > div { height: 8px; overflow: hidden; background: var(--paper-deep); border-radius: 4px; }
.element-combined-row > div span { display: block; height: 100%; background: var(--teal); }
.element-combined-row em, .element-combined-row small { color: var(--ink-soft); font-size: 9px; font-style: normal; }
.element-bridge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.element-bridge-grid article { padding: 12px; background: var(--paper); border-left: 3px solid var(--gold); }
.element-bridge-grid span, .element-bridge-grid strong { display: block; }
.element-bridge-grid span { color: var(--blue); font-size: 9px; font-weight: 800; }
.element-bridge-grid strong { margin: 2px 0 5px; font-size: 12px; }
.element-bridge-grid p { color: var(--ink-soft); font-size: 10px; }
.ten-god-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ten-god-direction h3 { margin-bottom: 7px; font-size: 12px; }
.ten-god-direction > div { display: grid; gap: 6px; }
.ten-god-direction article { padding: 10px 11px; background: var(--paper); border-left: 3px solid var(--blue); }
.ten-god-direction article > span, .ten-god-direction article > strong, .ten-god-direction article > small { display: block; }
.ten-god-direction article > span, .ten-god-direction article > small { color: var(--ink-soft); font-size: 8px; }
.ten-god-direction article > strong { color: var(--teal); font-size: 12px; }
.ten-god-direction article > p { margin: 2px 0; font-size: 10px; }
.connection-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.connection-summary-grid h4 { margin-bottom: 7px; color: var(--blue); font-size: 11px; }
.connection-summary-grid article { margin-bottom: 6px; padding: 10px 11px; background: var(--paper); border-left: 3px solid var(--teal); }
.connection-summary-grid article.caution { border-left-color: var(--coral); }
.connection-summary-grid article span, .connection-summary-grid article strong, .connection-summary-grid article small { display: block; }
.connection-summary-grid article span { color: var(--ink-soft); font-size: 8px; }
.connection-summary-grid article strong { font-size: 11px; }
.connection-summary-grid article small { color: var(--teal); font-size: 9px; }
.connection-summary-grid article.caution small { color: var(--coral); }
.full-reading-empty { color: var(--ink-soft); font-size: 9px; }
.relationship-rules ol { display: grid; gap: 7px; padding-left: 22px; }
.relationship-rules li { padding-left: 4px; color: var(--ink-soft); font-size: 11px; }

.compat-matrix-wrap { overflow-x: auto; padding-bottom: 8px; }
.compat-matrix { width: 100%; min-width: 780px; border-collapse: collapse; table-layout: fixed; }
.compat-matrix th, .compat-matrix td { padding: 10px; border: 1px solid var(--line); vertical-align: top; }
.compat-matrix th { width: 136px; background: var(--paper-deep); text-align: left; }
.compat-matrix th span, .compat-matrix th small { display: block; color: var(--ink-soft); font-size: 9px; }
.compat-matrix th strong { display: block; color: var(--ink); font-family: serif; font-size: 21px; }
.compat-matrix td { background: #fff; }
.compat-matrix td.positive { background: #edf6f2; }
.compat-matrix td.caution { background: #fff3ef; }
.compat-matrix td div { display: flex; flex-wrap: wrap; gap: 4px; }
.compat-matrix td div span { padding: 2px 6px; background: var(--paper-deep); color: var(--ink-soft); border-radius: 3px; font-size: 9px; font-weight: 800; }
.compat-matrix td.positive div span { background: var(--teal-soft); color: var(--teal); }
.compat-matrix td.caution div span { background: var(--coral-soft); color: #8b4237; }
.compat-matrix td > small { display: block; margin-top: 8px; color: #7a8986; font-size: 9px; line-height: 1.45; }
.relation-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.relation-guide > div { padding: 11px 12px; background: #fff; border-left: 3px solid var(--gold); }
.relation-guide strong { color: var(--teal); font-size: 11px; }
.relation-guide p { margin-top: 2px; color: var(--ink-soft); font-size: 11px; }

.compat-subsection + .compat-subsection { margin-top: 24px; }
.compat-subsection h3 { margin-bottom: 10px; color: var(--ink); font-size: 16px; }
.bridge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bridge-card { padding: 15px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 7px; }
.bridge-card.star { border-top-color: var(--coral); }
.bridge-card > span { display: block; color: var(--blue); font-size: 10px; font-weight: 800; }
.bridge-card strong { display: block; margin: 2px 0 6px; font-size: 16px; }
.bridge-card p { color: var(--ink-soft); font-size: 12px; }
.bridge-card small { display: block; margin-top: 8px; color: #778783; font-size: 9px; }

.two-person-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.person-pillar-detail { min-width: 0; }
.person-detail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; padding: 10px 12px; background: var(--ink); color: #fff; }
.person-detail-title span { color: #c5d8d4; font-size: 11px; }
.person-detail-title strong { font-size: 13px; }
.pillar-detail-list { display: grid; gap: 8px; }
.pillar-detail-list article { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.pillar-detail-head { display: grid; grid-template-columns: 48px 56px 1fr; gap: 8px; align-items: center; }
.pillar-detail-head span { color: var(--teal); font-size: 11px; font-weight: 800; }
.pillar-detail-head strong { font-family: serif; font-size: 22px; white-space: nowrap; }
.pillar-detail-head em { font-size: 12px; font-style: normal; font-weight: 800; }
.pillar-detail-list article > p { margin: 6px 0 10px; color: var(--ink-soft); font-size: 10px; }
.pillar-detail-list dl { display: grid; gap: 5px; }
.pillar-detail-list dl div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding-top: 5px; border-top: 1px solid var(--line); }
.pillar-detail-list dt { color: var(--blue); font-size: 10px; font-weight: 800; }
.pillar-detail-list dd { color: var(--ink-soft); font-size: 10px; }
.pillar-symbol-group { padding: 9px 0; border-top: 1px solid var(--line); }
.pillar-symbol-group h4 { margin-bottom: 6px; color: var(--blue); font-size: 10px; }
.pillar-symbol-record + .pillar-symbol-record { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pillar-symbol-record > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pillar-symbol-record strong { color: var(--ink); font-size: 11px; }
.pillar-symbol-record span { color: #758481; font-size: 9px; text-align: right; }
.pillar-symbol-record p { margin-top: 3px; color: var(--ink-soft); font-size: 10px; }
.pillar-symbol-record em { display: block; margin-top: 4px; color: var(--teal); font-size: 9px; font-style: normal; }
.pillar-symbol-empty { color: #82908d; font-size: 10px; }

.annual-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.annual-person { padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 8px; }
.annual-person > span { color: var(--blue); font-size: 10px; font-weight: 800; }
.annual-person > strong { display: block; margin: 3px 0 8px; font-size: 18px; }
.annual-person > p { color: var(--ink-soft); font-size: 12px; }
.annual-person > div { margin-top: 10px; padding: 9px 10px; background: var(--paper); }
.annual-person > div b { color: var(--teal); font-size: 10px; }
.annual-person > div p { margin-top: 2px; font-size: 11px; }
.annual-person > small { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 9px; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pillar { min-width: 0; padding: 14px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.pillar-button { position: relative; color: var(--ink); cursor: pointer; }
.pillar-button:hover { border-color: var(--teal); transform: translateY(-1px); }
.pillar-button.active { border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.pillar.empty { opacity: .58; }
.p-label { margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.glyph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.pillar .glyph { width: 50px; height: 50px; margin: 5px auto; border-radius: 6px; font-size: 27px; }
.pillar .glyph.unknown { background: var(--paper-deep); color: var(--ink-soft); }
.pillar .kr { min-height: 22px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.pillar .p-god { margin-top: 7px; color: var(--teal); font-size: 12px; font-weight: 800; }
.pillar-more { display: block; margin-top: 8px; color: var(--blue); font-size: 10px; font-weight: 800; }
.pillar-prompt { margin-top: -8px; }

.pillar-explorer { margin-top: 12px; background: #fff; border: 1px solid #b9cbc6; border-top: 3px solid var(--teal); border-radius: 6px; }
.explorer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 12px; }
.explorer-head span { display: block; color: var(--teal); font-size: 11px; font-weight: 800; }
.explorer-head strong { display: block; margin-top: 2px; font-size: 17px; }
.explorer-head > button { padding: 5px 8px; background: transparent; color: var(--blue); border: 1px solid #aac1ca; border-radius: 4px; font-size: 11px; font-weight: 800; cursor: pointer; }
.explorer-tabs { display: flex; gap: 0; padding: 0 18px; border-bottom: 1px solid var(--line); }
.explorer-tabs button { min-height: 38px; padding: 7px 12px; background: transparent; color: var(--ink-soft); border: 0; border-bottom: 3px solid transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.explorer-tabs button.active { color: var(--teal); border-bottom-color: var(--teal); }
.explorer-body { padding: 16px 18px 18px; }
.pillar-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pillar-guide-grid > div { padding-left: 12px; border-left: 3px solid var(--blue); }
.pillar-guide-grid span { color: var(--blue); font-size: 11px; font-weight: 800; }
.pillar-guide-grid p { margin-top: 3px; color: var(--ink-soft); font-size: 13px; }
.pillar-question { margin-top: 14px; padding: 11px 12px; background: var(--gold-soft); color: #6f4b11; font-size: 13px; font-weight: 800; }
.explorer-list { display: grid; gap: 8px; }
.explorer-list > div { display: grid; grid-template-columns: 120px 105px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.explorer-list > div:last-child { border-bottom: 0; }
.explorer-list strong { font-size: 13px; }
.explorer-list span { color: var(--teal); font-size: 11px; font-weight: 800; }
.explorer-list p, .explorer-empty { color: var(--ink-soft); font-size: 12px; }
.explorer-empty { padding: 14px; background: var(--paper); }

.el-목 { background: var(--wood) !important; }
.el-화 { background: var(--fire) !important; }
.el-토 { background: var(--earth) !important; }
.el-금 { background: var(--metal) !important; }
.el-수 { background: var(--water) !important; }

.animal-feature { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; margin-top: 14px; padding: 18px; background: #ecf3ef; border: 1px solid #c8dbd3; border-radius: 8px; }
.animal-emoji { display: flex; width: 82px; height: 82px; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--aura); border-radius: 50%; font-size: 48px; }
.animal-label { color: var(--teal); font-size: 12px; font-weight: 800; }
.animal-name { margin: 2px 0 5px; font-size: 21px; font-weight: 800; }
.animal-desc { color: var(--ink-soft); font-size: 13px; }
.notice { margin-top: 12px; padding: 10px 12px; background: var(--blue-soft); color: #31577e; border-left: 3px solid var(--blue); font-size: 13px; }
.notice.warning { background: var(--coral-soft); color: #813d34; border-left-color: var(--coral); }

.element-chart { display: grid; gap: 12px; }
.el-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 32px; gap: 12px; align-items: center; }
.el-name { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.el-name small { color: var(--ink-soft); font-size: 11px; }
.element-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; }
.el-bar-track { height: 20px; overflow: hidden; background: #dedbd2; border-radius: 4px; }
.el-bar { min-width: 4px; height: 100%; border-radius: 4px; }
.el-count { color: var(--ink-soft); font-size: 14px; text-align: right; }
.element-analysis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.insight-row { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.insight-row strong { color: var(--teal); font-size: 14px; }
.insight-row p { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.element-analysis .hint { grid-column: 1 / -1; }

.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.feature-panel { padding: 20px; background: var(--teal-soft); border-left: 4px solid var(--teal); }
.dm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.daymaster .glyph, .feature-panel .glyph { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 6px; font-size: 32px; }
.dm-title { font-size: 18px; font-weight: 800; }
.dm-title span { color: var(--teal); font-size: 13px; }
.dm-symbol { color: var(--ink-soft); font-size: 13px; }
.feature-panel > p { font-size: 14px; }
.tg-item { margin-bottom: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
.tg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 800; }
.tg-head span { color: var(--gold); }
.tg-item p { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }

.persona-tabs, .section-tabs { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.persona-tabs::-webkit-scrollbar, .section-tabs::-webkit-scrollbar { display: none; }
.persona-tab, .section-tab { flex: 0 0 auto; min-height: 40px; padding: 8px 13px; background: transparent; color: var(--ink-soft); border: 1px solid #bfc8c3; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; }
.persona-tab.active, .section-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.persona-content { margin-top: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.persona-t { margin-bottom: 8px; color: var(--teal); font-size: 18px; font-weight: 800; }
.persona-x { font-size: 14px; }
.persona-s { margin-top: 14px; padding: 10px 12px; background: var(--gold-soft); color: #704b10; border-left: 3px solid var(--gold); font-size: 13px; font-weight: 800; }

.compat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compat-item { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 8px; }
.compat-item.caution { border-top-color: var(--coral); }
.compat-item > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.compat-item strong { display: block; font-size: 14px; }
.compat-item p { margin-top: 9px; color: var(--ink-soft); font-size: 13px; }
.compat-chip { display: inline-block; margin: 2px 3px 2px 0; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.chip-best { background: var(--gold-soft); color: #704b10; }
.chip-good { background: var(--blue-soft); color: #31577e; }

.tab-panel { padding-top: 16px; }
.tab-panel[hidden] { display: none; }
.daeun-track, .seun-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.daeun-item, .seun-item, .month-item { display: flex; min-height: 100px; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; scroll-snap-align: start; }
.daeun-item.current, .seun-item.current, .month-item.current { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.daeun-item.selected, .seun-item.selected, .month-item.selected { background: var(--teal-soft); border-color: var(--teal); }
.daeun-item span, .seun-item span, .month-item span { color: var(--ink-soft); font-size: 11px; }
.daeun-item strong, .seun-item strong, .month-item strong { margin: 5px 0; font-size: 20px; }
.daeun-item em { margin-top: 4px; color: var(--gold); font-size: 10px; font-style: normal; font-weight: 800; }
.seun-item small, .month-item small { color: var(--teal); font-size: 11px; font-weight: 700; }

.flow-detail { margin-top: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.flow-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.flow-detail-head span { display: block; color: var(--teal); font-size: 12px; font-weight: 800; }
.flow-detail-head strong { display: block; margin-top: 2px; font-size: 18px; }
.flow-detail-head em { flex: 0 0 auto; padding: 4px 8px; background: var(--gold-soft); color: #704b10; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; }
.flow-columns, .guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.flow-columns > div, .guidance-grid > div { padding: 13px; background: #f7f4ed; border-left: 3px solid var(--teal); }
.flow-columns span, .guidance-grid span { color: var(--teal); font-size: 12px; font-weight: 800; }
.flow-columns p, .guidance-grid p { margin-top: 4px; font-size: 13px; }
.flow-detail > p { margin: 12px 0; }
.relation-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.relation-chip { padding: 3px 8px; background: var(--coral-soft); color: #813d34; border-radius: 999px; font-size: 11px; font-weight: 800; }
.relation-chip.neutral { background: var(--paper-deep); color: var(--ink-soft); }
.context-note { padding: 10px 12px; background: var(--blue-soft); color: #31577e; font-size: 12px !important; }

.month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.month-item { min-height: 84px; }
.month-item strong { font-size: 17px; }
.compact-detail { margin-top: 14px; }

.symbol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.symbol-card { padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.symbol-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.symbol-head strong { color: var(--teal); font-size: 17px; }
.symbol-head span { color: var(--ink-soft); font-size: 11px; }
.symbol-card p { color: var(--ink-soft); font-size: 13px; }
.symbol-use { margin-top: 10px; padding: 9px 10px; background: var(--teal-soft); color: #145f52; font-size: 12px; }
.symbol-use.caution-text { background: var(--coral-soft); color: #813d34; }
.symbol-card small { display: block; margin-top: 9px; color: #7b827f; font-size: 10px; }
.empty-state { padding: 24px; background: var(--surface); border: 1px dashed #aeb9b4; text-align: center; }
.empty-state p { margin-top: 6px; color: var(--ink-soft); font-size: 13px; }

.relation-list { display: grid; gap: 8px; }
.relation-item { display: grid; grid-template-columns: 72px 180px 1fr; gap: 14px; align-items: center; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.relation-item > span { color: var(--coral); font-size: 12px; font-weight: 800; }
.relation-item strong { font-size: 13px; }
.relation-item p { color: var(--ink-soft); font-size: 12px; }

.concern-section { padding-inline: 20px; background: #eaf2f4; }
.year-badge { flex: 0 0 auto; padding: 6px 10px; background: #fff; color: var(--blue); border: 1px solid #b8ced7; border-radius: 4px; font-size: 11px; font-weight: 800; }
.concern-question { padding: 18px; background: var(--ink); color: #fff; border-left: 4px solid var(--gold); }
.concern-question span { display: block; color: #bcd3cf; font-size: 11px; font-weight: 800; }
.concern-question strong { display: block; margin-top: 3px; font-size: 19px; }
.concern-lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid #b9ced4; border-bottom: 1px solid #b9ced4; }
.concern-lenses > div { padding: 16px; border-right: 1px solid #b9ced4; }
.concern-lenses > div:last-child { border-right: 0; }
.concern-lenses span { display: block; color: var(--blue); font-size: 11px; font-weight: 800; }
.concern-lenses strong { display: block; margin: 3px 0 6px; font-size: 15px; }
.concern-lenses p { color: var(--ink-soft); font-size: 12px; }
.concern-relation { margin-top: 12px; color: var(--ink-soft); font-size: 12px; }
.followup-block { margin-top: 18px; padding-top: 15px; border-top: 1px solid #b9ced4; }
.followup-block > span { display: block; margin-bottom: 8px; color: var(--blue); font-size: 11px; font-weight: 800; }
.followup-questions { display: flex; flex-wrap: wrap; gap: 7px; }
.followup-questions button { min-height: 38px; padding: 7px 11px; background: #fff; color: var(--ink); border: 1px solid #abc2ca; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }
.followup-questions button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.today-section { background: #edf4f1; padding-inline: 20px; }
.today-summary { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; margin-bottom: 14px; }
.today-ganzhi { display: flex; min-height: 134px; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: #fff; border-radius: 8px; }
.today-ganzhi span { color: #c9ddd7; font-size: 11px; }
.today-ganzhi strong { margin: 3px 0; color: #f3d58d; font-family: serif; font-size: 38px; }
.today-ganzhi small { font-size: 11px; }
.today-summary h3 { margin-bottom: 6px; font-size: 20px; }
.today-summary p { color: var(--ink-soft); font-size: 14px; }
.today-relation { margin-top: 9px; padding-left: 10px; border-left: 3px solid var(--gold); }

.standards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.standards-grid div { padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.standards-grid strong { display: block; color: var(--teal); font-size: 13px; }
.standards-grid span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 12px; }

.actions { display: flex; gap: 10px; padding-top: 24px; }
.btn-secondary { flex: 1; min-height: 48px; padding: 10px 14px; background: transparent; color: var(--ink); border: 1px solid #97aaa3; border-radius: 6px; font-weight: 800; cursor: pointer; }
.btn-secondary:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.btn-share { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-share span { margin-right: 5px; font-size: 16px; }
.btn-share:hover { background: var(--teal); color: #fff; }
.action-status { min-height: 24px; padding-top: 7px; color: var(--teal); font-size: 12px; font-weight: 800; text-align: center; }
.mobile-dock { display: none; }

footer { padding: 28px 16px 42px; background: #143c35; color: #dbe8e3; text-align: center; font-size: 13px; }
footer .small { margin-top: 5px; color: #afc9c1; font-size: 11px; }

.term-dialog { width: min(560px, calc(100% - 28px)); max-height: min(680px, calc(100vh - 28px)); margin: auto; padding: 22px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px rgba(7, 35, 36, .28); }
.term-dialog::backdrop { background: rgba(8, 35, 36, .58); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 22px; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 38px; background: transparent; color: var(--ink); border: 1px solid #b5c3bf; border-radius: 4px; font-size: 24px; line-height: 1; cursor: pointer; }
#termDialogBody { padding-top: 16px; }
#termDialogBody > p { color: var(--ink-soft); font-size: 14px; }
#termDialogBody .dialog-lead { margin-bottom: 10px; color: var(--ink); font-size: 16px; font-weight: 800; }
.dialog-caution { display: grid; gap: 4px; margin-top: 16px; padding: 12px 14px; background: var(--coral-soft); border-left: 3px solid var(--coral); }
.dialog-caution strong { color: #843d34; font-size: 11px; }
.dialog-caution span { color: #6f4b46; font-size: 13px; }

@media (max-width: 720px) {
  .hero-inner { min-height: 220px; }
  .hero h1 { font-size: 38px; }
  .form-grid, .split-layout, .compat-grid, .symbol-grid, .learning-strip { grid-template-columns: 1fr; }
  .learning-strip { gap: 18px; }
  .concern-lenses, .quick-grid { grid-template-columns: 1fr; }
  .concern-lenses > div, .quick-grid > div { border-right: 0; border-bottom: 1px solid #b9ced4; }
  .concern-lenses > div:last-child, .quick-grid > div:last-child { border-bottom: 0; }
  .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relation-item { grid-template-columns: 64px 1fr; }
  .relation-item p { grid-column: 1 / -1; }
  .people-grid, .compat-category-list, .two-person-details, .annual-people, .full-pillar-grid { grid-template-columns: 1fr; }
  .compat-overview-grid { grid-template-columns: 150px 1fr; }
  .bridge-grid { grid-template-columns: 1fr; }
  .result-nav { display: none; }
  .result:not([hidden]), .compat-result:not([hidden]) { padding-bottom: 66px; }
  .mobile-dock { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23, 57, 59, .1); }
  .mobile-dock a { display: flex; min-width: 0; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 10px; font-weight: 800; text-decoration: none; }
  .mobile-dock a span { color: var(--teal); font-family: serif; font-size: 17px; line-height: 1.1; }
}

@media (max-width: 520px) {
  .hero-inner { min-height: 205px; padding: 30px 0; }
  .hero h1 { font-size: 34px; }
  .hero .hanja { display: block; margin: 4px 0 0; font-size: 18px; }
  .tagline { max-width: 250px; font-size: 14px; }
  .hero-points { gap: 5px 12px; margin-top: 14px; }
  main { width: min(100% - 20px, 920px); padding-top: 20px; }
  .input-card { padding: 20px 16px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 22px; }
  .privacy-badge, .day-badge { max-width: 120px; white-space: normal; text-align: center; }
  .standards-body { grid-template-columns: 1fr; gap: 12px; }
  .result-nav { margin-inline: -10px; }
  .analysis-section { padding: 34px 0; }
  .quick-read-section { padding-inline: 14px; }
  .quick-links { justify-content: stretch; }
  .quick-links a { flex: 1; text-align: center; }
  .compat-entry-tabs button { min-height: 54px; padding-inline: 6px; font-size: 11px; }
  .person-input { padding: 15px 12px; }
  .day-compare-grid { grid-template-columns: 1fr; }
  .compat-plus { font-size: 22px; line-height: 1; }
  .compat-overview-grid { grid-template-columns: 1fr; }
  .compat-score { min-height: 132px; }
  .compat-score strong { font-size: 46px; }
  .pair-pillars { grid-template-columns: 1fr 20px 1fr; }
  .pair-pillars strong { font-size: 23px; }
  .spouse-role-grid, .relation-guide { grid-template-columns: 1fr; }
  .element-bridge-grid, .ten-god-grid, .connection-summary-grid { grid-template-columns: 1fr; }
  .connection-pair { grid-template-columns: 1fr; }
  .element-combined-row { grid-template-columns: 22px 1fr 20px; }
  .element-combined-row small { grid-column: 2 / -1; }
  .compat-matrix { min-width: 700px; }
  .pillar-detail-list dl div { grid-template-columns: 70px 1fr; }
  .daily-mission { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pillars { gap: 5px; }
  .pillar { padding: 10px 3px; }
  .pillar .glyph { width: 40px; height: 40px; font-size: 21px; }
  .pillar .kr { font-size: 10px; }
  .pillar .p-god { font-size: 10px; }
  .pillar-more { min-height: 28px; font-size: 9px; line-height: 1.3; }
  .explorer-head { align-items: flex-start; padding-inline: 13px; }
  .explorer-tabs { padding-inline: 13px; overflow-x: auto; }
  .explorer-tabs button { flex: 0 0 auto; }
  .explorer-body { padding-inline: 13px; }
  .pillar-guide-grid { grid-template-columns: 1fr; }
  .explorer-list > div { grid-template-columns: 1fr auto; gap: 5px 10px; }
  .explorer-list p { grid-column: 1 / -1; }
  .animal-feature { grid-template-columns: 1fr; text-align: center; }
  .animal-emoji { margin: 0 auto; }
  .el-row { grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 7px; }
  .el-name { font-size: 12px; }
  .el-name small { display: none; }
  .element-analysis, .flow-columns, .guidance-grid { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .month-item { min-height: 78px; }
  .today-summary { grid-template-columns: 1fr; }
  .today-ganzhi { min-height: 116px; }
  .standards-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
}

/* v12 · 상황 기반 개인화와 상품 여정 */
.hero-cta { display: inline-flex; align-items: center; gap: 16px; min-height: 46px; margin-top: 22px; padding: 10px 16px; background: #f2d38a; color: #143c35; border-radius: 5px; font-size: 13px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 24px rgba(7, 32, 34, .2); }
.hero-cta:hover { background: #fff0bd; }
.hero-cta span { font-size: 18px; }
.hero-cta + .install-app { margin-left: 8px; }

.confidence-badge, .no-fear-badge, .coach-progress { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; color: #166354; background: #e0f1eb; border: 1px solid #badbd0; border-radius: 999px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.decision-intro { margin-bottom: 18px; padding: 18px 20px; background: #173f42; color: #eef7f4; border-radius: 8px; font-size: 16px; line-height: 1.8; }
.decision-core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.decision-core > div { padding: 16px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.decision-core > div:nth-child(2n) { border-right: 0; }
.decision-core > div:nth-last-child(-n + 2) { border-bottom: 0; }
.decision-core span, .decision-focus span, .subsection-head span, .replacement-action span, .roadmap-grid span, .choice-index, .coach-final > span { display: block; color: var(--teal); font-size: 11px; font-weight: 900; }
.decision-core strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; }
.decision-focus { margin-top: 14px; padding: 16px 18px; background: var(--gold-soft); border-left: 4px solid var(--gold); }
.decision-focus strong { display: block; margin-top: 3px; font-size: 17px; }
.decision-focus p { margin-top: 4px; color: #705b32; font-size: 13px; }
.subsection-head { margin: 32px 0 14px; }
.subsection-head h3 { margin-top: 3px; font-size: 19px; }
.pattern-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; }
.pattern-flow > div { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.pattern-flow span { color: var(--coral); font-size: 10px; font-weight: 900; }
.pattern-flow p { margin-top: 5px; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.pattern-flow i { align-self: center; color: #90a49e; font-style: normal; }
.replacement-action { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 14px 16px; background: var(--teal-soft); border-left: 4px solid var(--teal); }
.replacement-action strong { font-size: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-grid article { position: relative; padding: 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.choice-grid article:first-child { border-color: #90bcb1; box-shadow: inset 0 3px 0 var(--teal); }
.choice-grid h4 { margin: 5px 0 12px; font-size: 16px; }
.choice-grid dl > div { padding: 9px 0; border-top: 1px solid #e8eeec; }
.choice-grid dt { color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.choice-grid dd { margin-top: 3px; font-size: 12px; line-height: 1.55; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.roadmap-grid > div { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.roadmap-grid p { margin-top: 6px; font-size: 12px; line-height: 1.55; }
.avoid-action { display: flex; gap: 14px; margin-top: 10px; padding: 13px 15px; color: #70453f; background: var(--coral-soft); font-size: 12px; }
.avoid-action strong { flex: 0 0 auto; }
.action-tracker { margin-top: 26px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 7px; }
.tracker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tracker-head > div:first-child span { color: var(--teal); font-size: 10px; font-weight: 900; }
.tracker-head h3 { margin-top: 2px; font-size: 18px; }
.tracker-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.tracker-controls strong { color: var(--teal); font-size: 11px; }
.tracker-controls button { padding: 4px 7px; color: var(--ink-soft); background: transparent; border: 1px solid #afbfba; border-radius: 3px; font-size: 9px; font-weight: 900; cursor: pointer; }
.tracker-progress { height: 7px; overflow: hidden; margin-top: 14px; background: #e2eae7; border-radius: 2px; }
.tracker-progress i { display: block; height: 100%; background: var(--teal); transition: width .25s ease; }
.tracker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tracker-list label { display: grid; min-height: 104px; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; padding: 15px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.tracker-list label.completed { background: #edf6f3; }
.tracker-list input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.tracker-list span { color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.tracker-list b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; }
.tracker-list label.completed b { color: var(--teal); }
.tracker-privacy { margin-top: 9px; color: #71817e; font-size: 9px; text-align: right; }
.evidence-details { margin-top: 20px; padding: 14px 16px; background: #f8faf9; border: 1px solid var(--line); border-radius: 7px; }
.evidence-details summary { color: var(--teal); font-size: 12px; font-weight: 900; cursor: pointer; }
.evidence-details ul { margin: 12px 0 8px 18px; color: var(--ink-soft); font-size: 12px; }
.evidence-details p { color: var(--ink-soft); font-size: 11px; }

.daily-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.daily-eight > div { min-height: 112px; }
.coach-section sup { color: var(--coral); font-size: 10px; }
.coach-thread { display: grid; gap: 8px; max-height: 430px; margin-bottom: 16px; overflow-y: auto; }
.coach-user, .coach-reply { max-width: 84%; padding: 12px 14px; border-radius: 8px; }
.coach-user { justify-self: end; background: #173f42; color: #fff; }
.coach-reply { justify-self: start; background: var(--teal-soft); color: var(--ink); }
.coach-user span, .coach-reply span { display: block; margin-bottom: 3px; opacity: .72; font-size: 9px; font-weight: 900; }
.coach-user p, .coach-reply p { font-size: 13px; }
.coach-form { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.coach-form label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 900; }
.coach-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coach-form input { min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #a9bbb5; border-radius: 5px; }
.coach-form .btn-primary { width: auto; margin: 0; padding-inline: 22px; }
.coach-final { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.coach-final h3 { margin: 4px 0 16px; }
.coach-final dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.coach-final dl > div { padding: 12px; background: #f6f9f8; border-radius: 5px; }
.coach-final dt { color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.coach-final dd { margin-top: 3px; font-size: 13px; }
.coach-final .btn-secondary { width: 100%; margin-top: 14px; }

@media (max-width: 720px) {
  .pattern-flow { grid-template-columns: 1fr; }
  .pattern-flow i { display: none; }
  .choice-grid, .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hero-cta { width: 100%; justify-content: space-between; }
  .hero-cta + .install-app { margin-left: 0; }
  .confidence-badge { max-width: 136px; white-space: normal; text-align: center; }
  .decision-core, .choice-grid, .roadmap-grid, .daily-eight, .coach-final dl { grid-template-columns: 1fr; }
  .decision-core > div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .decision-core > div:last-child { border-bottom: 0 !important; }
  .replacement-action, .avoid-action { align-items: flex-start; flex-direction: column; gap: 4px; }
  .coach-user, .coach-reply { max-width: 94%; }
  .coach-form > div { grid-template-columns: 1fr; }
  .coach-form .btn-primary { width: 100%; }
  .reliability-grid, .foundation-columns { grid-template-columns: 1fr; }
  .reliability-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .reliability-grid > div:last-child { border-bottom: 0; }
  .hidden-row { grid-template-columns: 1fr; }
  .root-row { grid-template-columns: 72px 1fr; }
  .root-row p:last-child { grid-column: 2; }
  .comparison-title, .tracker-head { align-items: flex-start; flex-direction: column; }
  .comparison-variants, .tracker-list { grid-template-columns: 1fr; }
  .comparison-variants > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .action-tracker { padding: 16px 12px; }
  .tracker-controls { width: 100%; justify-content: space-between; }
  .tracker-list label { min-height: 92px; }
}

@media print {
  body { background: #fff; font-size: 12px; }
  .hero, .analysis-mode, .input-card, .learning-strip, .result-nav, .mobile-dock, .coach-section, .actions, footer, .tracker-controls { display: none !important; }
  main { width: 100%; padding: 0; }
  .result { display: block !important; }
  .analysis-section { break-inside: avoid; padding: 20px 0; }
}

/* 결과 상단 개인 사주 자연 명식도 */
.destiny-map-section { padding: 0; overflow: hidden; background: #f4f7f5; border-color: #b9cec8; }
.destiny-map-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 26px 28px 22px; background: #f4f7f5; }
.destiny-map-heading > div { min-width: 0; }
.destiny-map-heading h2 { margin-top: 5px; color: #123f3b; font-size: 23px; line-height: 1.4; }
.destiny-map-heading p { margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.destiny-map-download { flex: 0 0 auto; min-height: 44px; padding: 0 17px; color: #fff; background: #0d675d; border: 1px solid #0d675d; font-size: 10px; font-weight: 900; cursor: pointer; }
.destiny-map-download:hover { background: #094e47; }
.destiny-map-download:disabled { opacity: .5; cursor: wait; }
.destiny-map-frame { position: relative; width: min(800px, calc(100% - 56px)); margin: 0 auto; aspect-ratio: 2 / 3; overflow: hidden; background: #dce7e2; box-shadow: 0 16px 40px rgba(13, 54, 50, .12); }
.destiny-map-frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.destiny-living-animal { position: absolute; z-index: 3; top: var(--animal-top); left: var(--animal-left); width: 15%; aspect-ratio: 1 / .86; transform: translate(-50%,-50%) scale(var(--animal-scale)); transform-origin: center bottom; pointer-events: none; animation: destiny-animal-breathe 3.8s ease-in-out infinite; }
.destiny-animal-sprite { position: absolute; z-index: 2; inset: 0; background-image: url("assets/zodiac-mascots-cute.png?v=20260813-69"); background-repeat: no-repeat; background-size: 400% 300%; background-position: calc(var(--animal-column) * 33.333%) calc(var(--animal-row) * 50%); filter: drop-shadow(0 6px 7px rgba(22,49,43,.2)); transform: scaleX(var(--animal-direction)); animation: destiny-animal-look 5.6s ease-in-out infinite; }
.destiny-animal-sprite::after { position: absolute; inset: 0; background: var(--animal-color,#dce7e9); content: ""; -webkit-mask-image: url("assets/zodiac-mascots-cute.png?v=20260813-69"); mask-image: url("assets/zodiac-mascots-cute.png?v=20260813-69"); -webkit-mask-position: calc(var(--animal-column) * 33.333%) calc(var(--animal-row) * 50%); mask-position: calc(var(--animal-column) * 33.333%) calc(var(--animal-row) * 50%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 400% 300%; mask-size: 400% 300%; mix-blend-mode: color; opacity: .48; }
.destiny-animal-shadow { position: absolute; z-index: 1; right: 16%; bottom: 2%; left: 16%; height: 12%; background: rgba(15,45,40,.25); border-radius: 50%; filter: blur(5px); animation: destiny-animal-shadow 3.8s ease-in-out infinite; }
.destiny-animal-breath { position: absolute; z-index: 4; top: 18%; right: 8%; width: 10%; aspect-ratio: 1; background: rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,.85); animation: destiny-breath-light 3.2s ease-in-out infinite; }
.destiny-nature-particles { position: absolute; z-index: 2; top: 17.3%; right: 5.8%; left: 5.8%; height: 24.4%; overflow: hidden; border-radius: 6px; pointer-events: none; }
.destiny-nature-particles i { position: absolute; width: 5px; height: 5px; background: rgba(255,231,156,.86); border-radius: 50%; box-shadow: 0 0 8px rgba(255,231,156,.8); animation: nature-particle-rise 7s linear infinite; }
.destiny-nature-particles i:nth-child(1) { left: 12%; bottom: 8%; animation-delay: -1s; }
.destiny-nature-particles i:nth-child(2) { left: 28%; bottom: 17%; width: 3px; height: 3px; animation-delay: -4s; }
.destiny-nature-particles i:nth-child(3) { left: 43%; bottom: 5%; animation-delay: -2.5s; }
.destiny-nature-particles i:nth-child(4) { left: 61%; bottom: 20%; width: 4px; height: 4px; animation-delay: -5.5s; }
.destiny-nature-particles i:nth-child(5) { left: 76%; bottom: 9%; animation-delay: -3s; }
.destiny-nature-particles i:nth-child(6) { left: 88%; bottom: 24%; width: 3px; height: 3px; animation-delay: -6.2s; }
.destiny-nature-particles[data-season="겨울"] i { background: rgba(238,249,255,.9); box-shadow: 0 0 7px rgba(220,244,255,.8); }
@keyframes destiny-animal-breathe { 0%,100% { transform: translate(-50%,-50%) scale(var(--animal-scale)); } 50% { transform: translate(-50%,calc(-50% - 4px)) scale(calc(var(--animal-scale) * 1.018)); } }
@keyframes destiny-animal-look { 0%,42%,100% { transform: scaleX(var(--animal-direction)) rotate(0); } 49% { transform: scaleX(var(--animal-direction)) rotate(-1.8deg); } 58% { transform: scaleX(var(--animal-direction)) rotate(1.2deg); } }
@keyframes destiny-animal-shadow { 0%,100% { opacity: .75; transform: scaleX(1); } 50% { opacity: .5; transform: scaleX(.88); } }
@keyframes destiny-breath-light { 0%,70%,100% { opacity: 0; transform: scale(.5); } 78% { opacity: .85; transform: scale(1); } 90% { opacity: 0; transform: translate(8px,-8px) scale(1.35); } }
@keyframes nature-particle-rise { 0% { opacity: 0; transform: translateY(12px) scale(.7); } 18% { opacity: .9; } 78% { opacity: .45; } 100% { opacity: 0; transform: translate(16px,-85px) scale(1.2); } }
.destiny-map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #0d675d; background: #edf4f1; font-size: 12px; font-weight: 900; }
.destiny-map-loading[hidden] { display: none; }
.destiny-map-caption { width: min(920px, calc(100% - 56px)); margin: 0 auto; padding: 15px 0 24px; color: #59706b; font-size: 10px; line-height: 1.7; }
.destiny-shinsal-explorer { width: min(920px,calc(100% - 56px)); margin: 0 auto 28px; overflow: hidden; background: #fff; border: 1px solid #c8d8d4; border-radius: 7px; }
.destiny-shinsal-intro { padding: 22px 24px 19px; border-bottom: 1px solid #d9e4e1; }
.destiny-shinsal-intro h3 { color: #123f3b; font-size: 22px; }
.destiny-shinsal-intro p { max-width: 760px; margin-top: 7px; color: #60736f; font-size: 11px; line-height: 1.75; word-break: keep-all; }
.destiny-shinsal-layout { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(0,1.4fr); min-height: 390px; }
.destiny-shinsal-index { padding: 20px; background: #f5f8f7; border-right: 1px solid #d9e4e1; }
.destiny-shinsal-index > div > span { color: #176f63; font-size: 10px; font-weight: 900; }
.destiny-shinsal-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.destiny-shinsal-button { position: relative; min-height: 36px; padding: 7px 12px; color: #4e6662; background: #fff; border: 1px solid #b9cbc6; border-radius: 4px; font-size: 11px; font-weight: 850; cursor: pointer; }
.destiny-shinsal-button:hover { color: #126b61; border-color: #5b9c91; }
.destiny-shinsal-button.present { padding-right: 22px; color: #a94438; border-color: #dda79f; }
.destiny-shinsal-button i { position: absolute; top: 8px; right: 7px; width: 6px; height: 6px; background: #c65043; border-radius: 50%; }
.destiny-shinsal-button.active { color: #fff; background: #174d48; border-color: #174d48; box-shadow: 0 5px 12px rgba(23,77,72,.16); }
.destiny-shinsal-button.active i { background: #f5d76e; }
.destiny-shinsal-index details { margin-top: 20px; padding-top: 15px; border-top: 1px solid #d4dfdc; }
.destiny-shinsal-index summary { color: #365d58; font-size: 11px; font-weight: 900; cursor: pointer; }
.destiny-shinsal-empty { margin-top: 9px; color: #687b77; font-size: 10px; line-height: 1.65; }
.destiny-shinsal-detail { min-width: 0; padding: 26px 28px; }
.destiny-shinsal-detail header > span { color: #b04f43; font-size: 9px; font-weight: 900; }
.destiny-shinsal-detail h4 { margin-top: 3px; color: #153f3b; font-size: 27px; line-height: 1.25; }
.destiny-shinsal-detail header strong { display: block; margin-top: 5px; color: #a97825; font-size: 12px; }
.destiny-shinsal-meaning { margin-top: 14px; color: #405c58; font-size: 13px; line-height: 1.8; word-break: keep-all; }
.destiny-shinsal-detail dl { display: grid; margin-top: 20px; border-top: 1px solid #dce6e3; }
.destiny-shinsal-detail dl > div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 15px; padding: 12px 0; border-bottom: 1px solid #e2e9e7; }
.destiny-shinsal-detail dt { color: #167568; font-size: 10px; font-weight: 900; }
.destiny-shinsal-detail dd { color: #566c68; font-size: 11px; line-height: 1.7; }
.destiny-shinsal-detail footer { margin-top: 16px; padding: 11px 13px; color: #765d4f; background: #fff8ed; font-size: 9px; line-height: 1.65; }
.destiny-shinsal-detail footer b { color: #a4473c; }
#floatingFortuneGuide.map-view-hidden { display: none !important; }

@media (max-width: 720px) {
  .destiny-map-heading { display: grid; gap: 15px; padding: 22px 18px 18px; }
  .destiny-map-heading h2 { font-size: 20px; }
  .destiny-map-download { justify-self: start; }
  .destiny-map-frame, .destiny-map-caption,.destiny-shinsal-explorer { width: calc(100% - 24px); }
  .destiny-map-caption { padding-bottom: 18px; font-size: 9px; }
  .destiny-living-animal { width: 18%; }
  .destiny-shinsal-layout { grid-template-columns: 1fr; }
  .destiny-shinsal-index { border-right: 0; border-bottom: 1px solid #d9e4e1; }
  .destiny-shinsal-detail { padding: 22px 18px; }
  .destiny-shinsal-detail dl > div { grid-template-columns: 1fr; gap: 4px; }
}

@media print {
  .destiny-map-download, .destiny-map-loading, .destiny-living-animal, .destiny-nature-particles { display: none !important; }
  .destiny-map-section, .destiny-map-frame,.destiny-shinsal-explorer { break-inside: avoid; page-break-inside: avoid; }
  .destiny-map-frame { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* v64 · 시작 화면부터 이어지는 오른쪽 운세 메뉴 */
.fortune-menu-toggle { display: none; }
.fortune-quick-menu { position: fixed; z-index: 52; top: 86px; right: 16px; width: 178px; overflow: hidden; color: #183f3b; background: rgba(255,255,255,.97); border: 1px solid #aec5bf; border-radius: 7px; box-shadow: 0 18px 44px rgba(9,42,40,.18); backdrop-filter: blur(14px); transition: opacity .2s ease,transform .22s ease; }
.fortune-quick-menu > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 15px 14px 12px; color: #fff; background: #153f3b; border-bottom: 3px solid #f0cc68; }
.fortune-quick-menu > header span { color: #f0d88d; font-size: 8px; font-weight: 900; }
.fortune-quick-menu > header h2 { margin-top: 2px; font-size: 17px; line-height: 1.3; }
#fortuneMenuClose { display: none; width: 28px; height: 28px; place-items: center; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 18px; cursor: pointer; }
.fortune-quick-menu nav { display: grid; }
.fortune-quick-menu nav button { display: grid; min-height: 46px; grid-template-columns: 26px minmax(0,1fr); align-items: center; gap: 7px; padding: 8px 12px; color: #335752; background: #fff; border: 0; border-bottom: 1px solid #dbe5e2; text-align: left; cursor: pointer; transition: color .16s ease,background .16s ease; }
.fortune-quick-menu nav button:last-child { border-bottom: 0; }
.fortune-quick-menu nav button > span { color: #9aada8; font-size: 8px; font-weight: 900; }
.fortune-quick-menu nav button > strong { min-width: 0; font-size: 10px; line-height: 1.45; word-break: keep-all; }
.fortune-quick-menu nav button:hover { color: #0f6e63; background: #edf6f3; }
.fortune-quick-menu nav button.active { color: #fff; background: #167568; box-shadow: inset 3px 0 0 #f0cc68; }
.fortune-quick-menu nav button.active > span { color: #f6dc91; }
.fortune-quick-menu > p { padding: 11px 12px; color: #627772; background: #f5f8f7; border-top: 1px solid #d7e2df; font-size: 8px; line-height: 1.55; word-break: keep-all; }
body.charm-panel-open .fortune-quick-menu,body.charm-panel-open .fortune-menu-toggle { opacity: 0; transform: translateX(16px); pointer-events: none; }

@media (min-width: 821px) and (max-width: 1180px) {
  body:has(#result:not([hidden])) main { width: calc(100% - 300px); margin-right: 190px; margin-left: 110px; }
}
@media (min-width: 1181px) and (max-width: 1500px) {
  body:has(#result:not([hidden])) main { width: min(940px,calc(100% - 590px)); margin-right: 190px; margin-left: 370px; }
}
@media (max-width: 820px) {
  .fortune-menu-toggle { position: fixed; z-index: 67; right: 0; top: 44%; display: grid; width: 42px; min-height: 104px; place-items: center; gap: 4px; padding: 9px 6px; color: #fff; background: #153f3b; border: 1px solid #668680; border-right: 0; border-radius: 6px 0 0 6px; box-shadow: 0 10px 26px rgba(9,42,40,.2); cursor: pointer; }
  .fortune-menu-toggle span { color: #f0d88d; font-family: serif; font-size: 15px; }
  .fortune-menu-toggle strong { font-size: 9px; line-height: 1.35; writing-mode: vertical-rl; }
  .fortune-quick-menu { z-index: 73; top: 64px; right: 8px; bottom: 76px; width: min(300px,calc(100vw - 16px)); overflow-y: auto; opacity: 0; transform: translateX(calc(100% + 16px)); pointer-events: none; }
  body.fortune-menu-open .fortune-quick-menu { opacity: 1; transform: translateX(0); pointer-events: auto; }
  body.fortune-menu-open .fortune-menu-toggle { opacity: 0; pointer-events: none; }
  #fortuneMenuClose { display: grid; }
  .fortune-quick-menu nav button { min-height: 49px; }
  .fortune-quick-menu nav button > strong { font-size: 11px; }
}

@media print {
  .fortune-menu-toggle,.fortune-quick-menu { display: none !important; }
}

/* v13 · 사이트형 홈과 결제 여정 */
.site-header { position: sticky; z-index: 60; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 max(24px, calc((100% - 1060px) / 2)); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.site-logo span { display: grid; width: 34px; height: 34px; place-items: center; color: #f6d789; background: #123f43; border-radius: 50%; font-family: serif; font-size: 18px; }
.site-logo strong { font-size: 18px; letter-spacing: -.04em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--ink-soft); font-size: 13px; font-weight: 800; text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.library-button { min-height: 38px; padding: 7px 13px; color: var(--ink); background: #fff; border: 1px solid #a9bab5; border-radius: 5px; font-size: 12px; font-weight: 900; cursor: pointer; }
.library-button span { margin-right: 4px; color: var(--teal); }
.hero-inner { display: grid; width: min(1240px, calc(100% - 32px)); min-height: 760px; grid-template-columns: minmax(280px, .72fr) minmax(580px, 1.28fr); gap: 42px; }
main { width: min(1060px, calc(100% - 32px)); }
.hero-copy { max-width: 430px; text-shadow: 0 2px 18px rgba(0,0,0,.48); }
.hero h1 { font-size: 52px; }
.tagline { font-size: 19px; line-height: 1.65; }
.hero-actions { display: none; }
.hero-link { margin-top: 22px; color: #fff; font-size: 12px; font-weight: 800; text-underline-offset: 4px; }
.hero-entry { min-width: 0; align-self: center; color: var(--ink); text-shadow: none; }
.hero-entry .analysis-mode { margin-bottom: 8px; background: rgba(9, 34, 34, .9); border-color: rgba(242, 215, 145, .4); }
.hero-entry .analysis-mode button { min-height: 40px; color: #d8e5e1; font-size: 12px; }
.hero-entry .analysis-mode button.active { color: #164f49; background: #f5e3af; box-shadow: none; }
.hero-entry .input-card { max-height: min(720px, calc(100vh - 94px)); overflow-y: auto; padding: 22px; background: rgba(255, 255, 255, .97); border-color: rgba(255,255,255,.72); border-radius: 7px; box-shadow: 0 24px 70px rgba(0,0,0,.35); scrollbar-color: #8da7a0 transparent; }
.hero-entry .input-card .section-heading { margin-bottom: 16px; }
.hero-entry .input-card .section-heading h2 { font-size: 22px; }
.hero-entry .input-card .eyebrow { font-size: 10px; }
.hero-entry .input-card .privacy-badge { padding: 5px 8px; font-size: 9px; }
.hero-entry .input-card .concern-field { margin-bottom: 15px; padding-bottom: 15px; }
.hero-entry .input-card .concern-chip { min-height: 32px; padding: 5px 8px; border-radius: 4px; font-size: 10px; }
.hero-entry .input-card .custom-question-field { margin-top: 10px; }
.hero-entry .input-card .form-grid { gap: 11px 13px; }
.hero-entry .input-card .field label, .hero-entry .input-card .field legend { margin-bottom: 4px; font-size: 10px; }
.hero-entry .input-card input[type="text"], .hero-entry .input-card input[type="date"], .hero-entry .input-card input[type="time"], .hero-entry .input-card select { min-height: 41px; padding: 7px 9px; font-size: 12px; }
.hero-entry .input-card .seg span { min-height: 39px; font-size: 11px; }
.hero-entry .input-card .option-row { gap: 7px 14px; margin-top: 13px; }
.hero-entry .input-card .check { font-size: 10px; }
.hero-entry .input-card .check input { width: 15px; height: 15px; }
.hero-entry .input-card .standards-control { margin-top: 12px; }
.hero-entry .input-card .standards-control summary { padding: 9px 0; font-size: 11px; }
.hero-entry .input-card .hint { margin-top: 10px; font-size: 9px; }
.hero-entry .input-card .btn-primary { min-height: 43px; margin-top: 13px; }

.benefit-strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; margin-bottom: 28px; padding: 18px 22px; background: #fff8df; border: 1px solid #ead59b; border-radius: 8px; box-shadow: 0 8px 24px rgba(91, 69, 23, .06); }
.benefit-strip div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; }
.benefit-strip span { grid-row: 1 / 3; padding: 6px 10px; color: #735211; background: #f2d47e; border-radius: 4px; font-size: 10px; font-weight: 900; }
.benefit-strip strong { font-size: 14px; }
.benefit-strip small { color: #786b4f; font-size: 11px; }
.benefit-strip > a { min-height: 40px; padding: 8px 13px; color: #fff; background: #173f42; border-radius: 5px; font-size: 11px; font-weight: 900; text-decoration: none; }

.service-hub { margin-bottom: 36px; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.hub-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.hub-heading h2 { margin-top: 3px; font-size: 28px; line-height: 1.3; }
.hub-heading p { margin-top: 8px; color: var(--ink-soft); font-size: 13px; }
.safe-pay-badge { flex: 0 0 auto; padding: 6px 10px; color: #176151; background: #e4f2ed; border: 1px solid #c1ddd3; border-radius: 999px; font-size: 10px; font-weight: 900; }
.featured-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.featured-service { position: relative; display: grid; min-height: 260px; grid-template-columns: 112px 1fr; gap: 18px; overflow: hidden; padding: 24px; background: #e9f2ef; border: 1px solid #cadbd6; border-radius: 9px; }
.featured-service.premium { color: #fff; background: #153f42; border-color: #153f42; }
.service-symbol { display: grid; width: 104px; height: 100%; place-items: center; color: #fff2c9; background: linear-gradient(155deg, #1f7468, #123e42); border-radius: 7px; font-family: serif; font-size: 52px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.featured-service.premium .service-symbol { color: #173f42; background: linear-gradient(155deg, #f2db9a, #d8ad4f); }
.featured-service > div:last-child { display: flex; min-width: 0; flex-direction: column; }
.featured-service > div > span, .service-row > div > span { color: var(--teal); font-size: 9px; font-weight: 900; }
.featured-service.premium > div > span { color: #f2d38a; }
.featured-service h3 { margin-top: 3px; font-size: 19px; }
.featured-service p { margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.featured-service.premium p { color: #c7d9d5; }
.featured-service strong { margin-top: 10px; color: var(--gold); font-size: 16px; }
.featured-service.premium strong { color: #f2d38a; }
.featured-service button { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin-top: auto; padding: 7px 11px; color: var(--teal); background: #fff; border: 1px solid currentColor; border-radius: 5px; font-size: 10px; font-weight: 900; cursor: pointer; }
.featured-service.premium button { color: #f2d38a; background: transparent; }
.featured-service button i { font-style: normal; font-size: 15px; }
.service-list { display: grid; gap: 8px; margin-top: 12px; }
.service-row { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: #f8faf9; border: 1px solid var(--line); border-radius: 7px; }
.service-mini-symbol { display: grid; width: 46px; height: 46px; place-items: center; color: #fff2c9; background: #1a5d57; border-radius: 7px; font-family: serif; font-size: 20px; }
.service-row h3 { font-size: 14px; }
.service-row p { margin-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.service-row > div:last-child { display: grid; justify-items: end; gap: 5px; }
.service-row > div:last-child strong { color: var(--gold); font-size: 13px; white-space: nowrap; }
.service-row button { min-width: 54px; min-height: 30px; color: var(--teal); background: #fff; border: 1px solid #a9bcb6; border-radius: 4px; font-size: 10px; font-weight: 900; cursor: pointer; }
.site-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-bottom: 32px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 8px; }
.site-proof > div { padding: 20px; background: #fff; }
.site-proof span { color: var(--gold); font-size: 10px; font-weight: 900; }
.site-proof strong { display: block; margin-top: 3px; font-size: 14px; }
.site-proof p { margin-top: 5px; color: var(--ink-soft); font-size: 11px; }

.library-dialog::backdrop, .policy-dialog::backdrop { background: rgba(7, 31, 33, .68); backdrop-filter: blur(3px); }
.library-dialog { width: min(650px, calc(100% - 28px)); }
.library-dialog, .policy-dialog { max-height: calc(100vh - 28px); margin: auto; padding: 22px; color: var(--ink); background: #fff; border: 0; border-radius: 9px; box-shadow: 0 24px 80px rgba(7, 35, 36, .28); }
.policy-dialog { width: min(560px, calc(100% - 28px)); }
#libraryBody, #policyBody { padding-top: 18px; }
.library-empty { padding: 42px 20px; background: #f5f8f7; text-align: center; }
.library-empty > span { color: var(--teal); font-size: 34px; }
.library-empty h3 { margin-top: 7px; }
.library-empty p { margin: 6px auto 16px; max-width: 340px; color: var(--ink-soft); font-size: 12px; }
.library-empty a { display: inline-block; padding: 8px 13px; color: #fff; background: var(--teal); border-radius: 4px; font-size: 11px; font-weight: 900; text-decoration: none; }
.library-retry { min-height: 36px; padding: 8px 14px; color: #fff; background: var(--teal); border: 0; border-radius: 4px; font-size: 11px; font-weight: 900; cursor: pointer; }
.library-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0 2px; }
.library-summary strong { color: var(--teal); font-size: 14px; }
.library-summary span { color: var(--ink-soft); font-size: 10px; }
.saved-report-list { display: grid; gap: 8px; }
.saved-report-card { min-width: 0; padding: 16px 17px; background: #f5f8f7; border: 1px solid #dce7e3; border-left: 4px solid var(--teal); border-radius: 5px; }
.saved-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.saved-report-head > div { min-width: 0; }
.saved-report-head span { color: var(--teal); font-size: 9px; font-weight: 900; }
.saved-report-head h3 { margin-top: 2px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.saved-delete { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; color: #6f817c; background: #fff; border: 1px solid #cbd8d4; border-radius: 4px; font-size: 20px; line-height: 1; cursor: pointer; }
.saved-delete:hover { color: #8d3f35; border-color: #cf9f96; }
.saved-report-card > p { margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.saved-report-card > small { display: block; margin-top: 5px; color: #84938f; font-size: 9px; }
.saved-report-detail { margin-top: 10px; border-top: 1px solid #d8e2df; border-bottom: 1px solid #d8e2df; }
.saved-report-detail summary { padding: 9px 0; color: var(--teal); font-size: 10px; font-weight: 900; cursor: pointer; }
.saved-report-detail > p { padding: 0 0 9px; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.saved-report-detail > p b { display: block; color: var(--ink); }
.saved-report-detail dl { display: grid; gap: 1px; margin-bottom: 9px; background: #d8e2df; }
.saved-report-detail dl div { display: grid; grid-template-columns: 88px 1fr; gap: 9px; padding: 7px 9px; background: #fff; }
.saved-report-detail dt { color: var(--teal); font-size: 9px; font-weight: 900; }
.saved-report-detail dd { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }
.saved-report-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 11px; }
.saved-report-actions button { min-height: 34px; padding: 7px 11px; color: var(--teal); background: #fff; border: 1px solid #9eb9b2; border-radius: 4px; font-size: 10px; font-weight: 900; cursor: pointer; }
.saved-report-actions button:last-child { color: #fff; background: var(--teal); border-color: var(--teal); }
#policyBody p { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.policy-note { margin-top: 14px; padding: 10px 12px; color: #7a4d45; background: var(--coral-soft); font-size: 10px; }
.site-bottom-nav { display: none; }

.pdf-export-root { box-sizing: border-box; width: 720px; padding: 0; color: #183f3e; background: #fff; font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif; letter-spacing: 0; }
.pdf-export-staging { position: fixed !important; top: 0 !important; left: -10000px !important; z-index: -1 !important; }
.pdf-export-root *, .pdf-export-root *::before, .pdf-export-root *::after { box-sizing: border-box; }
.pdf-export-header { padding: 28px 30px 24px; color: #fff; background: #123f43; border-bottom: 5px solid #d7b75d; }
.pdf-export-header > div { display: flex; align-items: center; gap: 8px; }
.pdf-export-header > div span { display: grid; width: 30px; height: 30px; place-items: center; color: #123f43; background: #efd88f; border-radius: 4px; font-family: serif; font-size: 16px; }
.pdf-export-header > div strong { color: #fff; font-size: 16px; }
.pdf-export-header h1 { margin-top: 18px; color: #fff; font-size: 25px; line-height: 1.35; }
.pdf-export-header p { margin-top: 4px; color: #d6e4e0; font-size: 11px; }
.pdf-export-header small { display: block; margin-top: 11px; color: #adc5bf; font-size: 8px; }
.pdf-export-content { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 18px !important; background: #fff !important; }
.pdf-export-content > section, .pdf-export-content .analysis-section { overflow: visible !important; margin: 0 0 12px !important; box-shadow: none !important; }
.pdf-export-content .section-heading, .pdf-export-content .result-section-heading { break-after: avoid-page; }
.pdf-export-content .pillar,
.pdf-export-content .reliability-grid > div,
.pdf-export-content .life-reading-grid > div,
.pdf-export-content .choice-card,
.pdf-export-content .today-card,
.pdf-export-content .plain-summary-copy,
.pdf-export-content .reading-evidence > div,
.pdf-export-content .pillar-animal-count > div { break-inside: avoid-page; page-break-inside: avoid; }
.pdf-export-content .pdf-keep-together { break-inside: avoid-page !important; page-break-inside: avoid !important; }
.pdf-export-content .pdf-stack { display: block !important; overflow: visible !important; height: auto !important; min-height: 0 !important; }
.pdf-export-content .pdf-stack > * { width: 100% !important; min-height: 0 !important; margin: 0 0 10px !important; }
.pdf-export-content .daeun-track, .pdf-export-content .seun-track { overflow-x: visible !important; padding-bottom: 0 !important; }
.pdf-export-content p, .pdf-export-content li, .pdf-export-content dt, .pdf-export-content dd { orphans: 3; widows: 3; }
.pdf-export-content [hidden] { display: none !important; }
.pdf-export-content .zodiac-sprite { width: 270px; }
.pdf-export-content .zodiac-visual { min-height: 320px; }
.pdf-export-content .zodiac-intro { padding: 30px; }
.pdf-export-content .zodiac-intro h2 { font-size: 26px; }
.pdf-export-content .zodiac-seal { box-shadow: none; }
.legacy-pdf-source { display: grid; gap: 12px; width: 100%; }
.legacy-pdf-source section { padding: 19px 20px; background: #f5f8f7; border-left: 4px solid #1c675f; break-inside: avoid-page; }
.legacy-pdf-source section > span { color: #1c675f; font-size: 9px; font-weight: 900; }
.legacy-pdf-source h2 { margin-top: 5px; font-size: 20px; line-height: 1.45; }
.legacy-pdf-source h3 { margin-bottom: 10px; font-size: 15px; }
.legacy-pdf-source p { margin-top: 8px; color: #556b66; font-size: 11px; line-height: 1.7; }
.legacy-pdf-source dl { display: grid; gap: 1px; background: #d8e2df; }
.legacy-pdf-source dl div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; padding: 9px 11px; background: #fff; }
.legacy-pdf-source dt { color: #1c675f; font-size: 10px; font-weight: 900; }
.legacy-pdf-source dd { margin: 0; color: #556b66; font-size: 10px; line-height: 1.6; }
.legacy-pdf-source .legacy-result-text { white-space: pre-line; }
.legacy-pdf-source .pdf-disclaimer { padding: 8px 2px; color: #748781; font-size: 9px; }

footer { padding: 0; text-align: left; }
.footer-inner { width: min(1060px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 44px; }
.footer-inner > div:first-child { max-width: 560px; }
.footer-brand { font-size: 19px; }
.footer-brand span { margin-left: 5px; color: #e7c777; font-family: serif; font-size: 13px; }
.footer-inner > div:first-child p { margin-top: 5px; color: #b9d0c9; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0 16px; }
.footer-links button, .footer-links a { padding: 0; color: #dbe8e3; background: transparent; border: 0; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.footer-inner .small { text-align: left; }

.beginner-summary-section { overflow: hidden; padding: 0; border-color: #c8d7d2; }
#animalFeature { display: grid; min-height: 390px; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); background: #f7faf8; }
.zodiac-visual { position: relative; display: grid; min-height: 390px; place-items: center; overflow: hidden; border-right: 1px solid rgba(18,63,67,.12); }
.zodiac-visual.wood { color: #1f694f; background: #dcefe5; }
.zodiac-visual.fire { color: #9a3d36; background: #f7dfd9; }
.zodiac-visual.earth { color: #805714; background: #f3e3b7; }
.zodiac-visual.metal { color: #4e5d65; background: #e7ecee; }
.zodiac-visual.water { color: #123f43; background: #d9e8eb; }
.zodiac-sprite { position: relative; isolation: isolate; width: min(330px, 88%); aspect-ratio: 1 / 1; background-image: url('assets/zodiac-mascots-cute.png'); background-repeat: no-repeat; background-position: calc(var(--sprite-column) * 33.333%) calc(var(--sprite-row) * 50%); background-size: 400% 300%; filter: drop-shadow(0 12px 10px rgba(22,54,54,.1)); }
.zodiac-sprite::after, .pillar-animal-sprite::after { position: absolute; inset: 0; content: ""; background: var(--animal-color); -webkit-mask-image: url('assets/zodiac-mascots-cute.png'); mask-image: url('assets/zodiac-mascots-cute.png'); -webkit-mask-position: calc(var(--sprite-column) * 33.333%) calc(var(--sprite-row) * 50%); mask-position: calc(var(--sprite-column) * 33.333%) calc(var(--sprite-row) * 50%); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 400% 300%; mask-size: 400% 300%; mix-blend-mode: multiply; opacity: .76; pointer-events: none; }
.zodiac-seal { position: absolute; right: 18px; bottom: 18px; display: grid; min-width: 152px; gap: 1px; padding: 12px 14px; color: #fff; background: #123f43; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; box-shadow: 0 10px 24px rgba(18,63,67,.18); }
.zodiac-seal span { color: #ebcc7b; font-size: 9px; font-weight: 900; }
.zodiac-seal strong { font-size: 16px; }
.zodiac-seal small { color: #c8d9d5; font-size: 9px; }
.zodiac-intro { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 40px; }
.zodiac-intro h2 { margin-top: 7px; font-size: 30px; line-height: 1.35; }
.zodiac-intro h2 b { color: var(--teal); }
.zodiac-intro > p { margin-top: 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.animal-count { display: grid; gap: 2px; margin-top: 20px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--gold); }
.animal-count strong { color: var(--teal); font-size: 15px; }
.animal-count span { color: var(--ink-soft); font-size: 11px; }
.pillar-animal-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.pillar-animal-count > div { display: grid; min-width: 0; justify-items: center; gap: 3px; padding: 8px 6px 9px; background: #edf3f1; border: 1px solid transparent; text-align: center; }
.pillar-animal-count > div.same { background: #fff7df; border-color: #dfc778; }
.pillar-animal-count span { color: #6f817c; font-size: 8px; font-weight: 900; }
.pillar-animal-sprite { position: relative; isolation: isolate; width: 56px; aspect-ratio: 1; background-image: url('assets/zodiac-mascots-cute.png'); background-repeat: no-repeat; background-position: calc(var(--sprite-column) * 33.333%) calc(var(--sprite-row) * 50%); background-size: 400% 300%; }
.pillar-animal-count strong { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; overflow-wrap: anywhere; font-size: 10px; }
.pillar-animal-count strong i { width: 7px; height: 7px; flex: 0 0 7px; background: var(--swatch); border: 1px solid rgba(18,63,67,.18); border-radius: 50%; }
.pillar-animal-count small { color: var(--teal); font-size: 9px; }
.plain-summary { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; padding: 1px 0 0; background: var(--line); border-top: 1px solid var(--line); }
.plain-summary-copy { padding: 28px 32px; background: #fff; }
.plain-summary-copy > span { color: var(--coral); font-size: 9px; font-weight: 900; }
.plain-summary-copy h3 { margin-top: 5px; font-size: 21px; line-height: 1.45; }
.plain-summary-copy p { margin-top: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.plain-summary-points { display: grid; gap: 1px; background: var(--line); }
.plain-summary-points > div { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; padding: 14px 18px; background: #f8faf9; }
.plain-summary-points span { color: var(--teal); font-size: 9px; font-weight: 900; }
.plain-summary-points strong { font-size: 12px; line-height: 1.5; }
.reading-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding-top: 1px; background: var(--line); }
.reading-evidence > div { padding: 20px 24px; background: #f2f7f5; }
.reading-evidence > div > span { color: var(--teal); font-size: 9px; font-weight: 900; }
.reading-evidence p { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.reading-evidence p span { padding: 5px 8px; color: #fff; background: #315f5b; border-radius: 3px; font-size: 9px; font-weight: 900; }
.reading-evidence small { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.plain-badge { padding: 5px 8px; color: #1b675a; background: #e1f1eb; border: 1px solid #bfddd3; border-radius: 4px; font-size: 9px; font-weight: 900; }
.life-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 20px 0 0; border: 1px solid var(--line); }
.life-tabs button { min-width: 0; min-height: 42px; padding: 7px 4px; color: var(--ink-soft); background: #fff; border: 0; border-right: 1px solid var(--line); font-size: 10px; font-weight: 900; cursor: pointer; }
.life-tabs button:last-child { border-right: 0; }
.life-tabs button.active { color: #fff; background: var(--teal); }
.life-tabs button:focus-visible { position: relative; z-index: 1; outline: 3px solid #e5bd54; outline-offset: -3px; }
.life-reading-panel { overflow: hidden; border: 1px solid var(--line); border-top: 0; }
.life-reading-head { padding: 26px 28px; background: #edf5f2; }
.life-reading-head > span { color: var(--coral); font-size: 9px; font-weight: 900; }
.life-reading-head h3 { margin-top: 5px; font-size: 20px; line-height: 1.45; }
.life-reading-head p { max-width: 820px; margin-top: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.life-reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--line); gap: 1px; }
.life-reading-grid > div { min-width: 0; padding: 18px; background: #fff; }
.life-reading-grid span, .life-reading-basis span { display: block; color: var(--teal); font-size: 9px; font-weight: 900; }
.life-reading-grid strong { display: block; margin-top: 6px; font-size: 12px; line-height: 1.65; }
.life-reading-basis { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 18px; background: #f8faf9; border-top: 1px solid var(--line); }
.life-reading-basis p { color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.life-reading-note { padding: 12px 18px; color: #775047; background: #fff1ed; border-top: 1px solid #efd2cb; font-size: 10px; line-height: 1.6; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .hero { min-height: 0; background-position: 58% center; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 25px; padding: 42px 0; }
  .hero-copy { max-width: 620px; }
  .hero-entry .input-card { max-height: none; overflow: visible; }
  .featured-service { grid-template-columns: 84px 1fr; padding: 18px; }
  .service-symbol { width: 80px; }
}

@media (max-width: 620px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 56px; padding: 0 14px; }
  .site-logo span { width: 30px; height: 30px; font-size: 15px; }
  .site-logo strong { font-size: 16px; }
  .library-button { min-height: 34px; padding-inline: 10px; }
  .hero-inner { min-height: 0; padding-block: 34px; }
  .hero h1 { font-size: 40px; }
  .tagline { font-size: 16px; }
  .hero-points { gap: 6px 12px; }
  .hero-entry .input-card { padding: 17px 14px; }
  .hero-entry .input-card .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-entry .input-card .form-grid { grid-template-columns: 1fr; }
  .benefit-strip { grid-template-columns: 1fr auto; padding: 14px; }
  .benefit-strip div { display: block; }
  .benefit-strip span { display: inline-block; margin-bottom: 5px; }
  .benefit-strip strong, .benefit-strip small { display: block; }
  .benefit-strip small { display: none; }
  .service-hub { padding: 20px 14px; }
  .hub-heading { display: block; }
  .hub-heading h2 { font-size: 23px; }
  .safe-pay-badge { display: inline-block; margin-top: 12px; }
  .featured-services { gap: 8px; }
  .featured-service { display: flex; min-height: 310px; flex-direction: column; gap: 12px; padding: 13px; }
  .service-symbol { width: 100%; height: 104px; flex: 0 0 104px; }
  .featured-service h3 { font-size: 15px; }
  .featured-service p { display: none; }
  .featured-service strong { font-size: 13px; }
  .featured-service button { margin-top: 12px; padding-inline: 8px; }
  .service-row { grid-template-columns: 42px 1fr auto; gap: 9px; padding: 12px 10px; }
  .service-mini-symbol { width: 40px; height: 40px; }
  .service-row p { display: none; }
  .service-row h3 { font-size: 12px; }
  .service-row > div:last-child strong { font-size: 11px; }
  .site-proof { grid-template-columns: 1fr; }
  .site-proof > div { padding: 16px; }
  .life-overview-section { padding-bottom: 26px; }
  .life-overview-hero { align-items: flex-start; flex-direction: column; gap: 16px; padding: 27px 20px 24px; }
  .life-overview-hero h2 { font-size: 24px; }
  .life-overview-narrative { padding: 23px 20px; }
  .life-overview-narrative p { font-size: 13px; line-height: 1.9; word-break: normal; }
  .life-overview-subhead { align-items: flex-start; flex-direction: column; gap: 3px; margin: 26px 20px 10px; }
  .life-overview-fields { grid-template-columns: 1fr; padding: 0 20px; }
  .life-overview-fields article:last-child { grid-column: auto; }
  .life-age-flow { grid-template-columns: 1fr; margin-inline: 20px; }
  .life-age-flow article { padding: 16px; }
  .life-overview-note { margin-inline: 20px; }
  .library-dialog { padding: 17px; }
  .library-summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .saved-report-card { padding: 14px; }
  .saved-report-detail dl div { grid-template-columns: 74px 1fr; }
  .saved-report-actions { justify-content: stretch; }
  .saved-report-actions button { flex: 1; }
  #animalFeature { min-height: 0; grid-template-columns: 1fr; }
  .zodiac-visual { min-height: 310px; border-right: 0; border-bottom: 1px solid rgba(18,63,67,.12); }
  .zodiac-sprite { width: min(290px, 86%); }
  .zodiac-seal { right: 12px; bottom: 12px; min-width: 138px; padding: 10px 12px; }
  .zodiac-intro { padding: 25px 18px; }
  .zodiac-intro h2 { font-size: 24px; }
  .pillar-animal-count { gap: 4px; }
  .pillar-animal-count > div { padding: 7px 2px 8px; }
  .pillar-animal-sprite { width: 48px; }
  .pillar-animal-count strong { font-size: 9px; }
  .plain-summary, .reading-evidence { grid-template-columns: 1fr; }
  .plain-summary-copy { padding: 22px 18px; }
  .plain-summary-points > div { padding-inline: 14px; }
  .reading-evidence > div { padding: 17px 18px; }
  .life-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .life-tabs::-webkit-scrollbar { display: none; }
  .life-tabs button { flex: 0 0 78px; border-bottom: 0; }
  .life-reading-head { padding: 22px 18px; }
  .life-reading-head h3 { font-size: 18px; }
  .life-reading-grid { grid-template-columns: 1fr; }
  .life-reading-grid > div { padding: 15px 17px; }
  .life-reading-basis { grid-template-columns: 1fr; gap: 5px; }
  .site-bottom-nav { position: fixed; z-index: 55; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px 6px max(5px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -7px 22px rgba(23,57,59,.1); }
  .site-bottom-nav a, .site-bottom-nav button { display: flex; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--ink-soft); background: transparent; border: 0; font-size: 9px; font-weight: 900; text-decoration: none; cursor: pointer; }
  .site-bottom-nav span { color: var(--teal); font-family: serif; font-size: 16px; }
  .result .mobile-dock, .compat-result .mobile-dock { display: none !important; }
  .footer-inner { padding-bottom: 30px; }
}

/* v45 · 고정 캐릭터 해설형 보고서 */
.result-toolbar { position: sticky; z-index: 18; top: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 12px; padding: 9px; background: rgba(255,255,255,.94); border: 1px solid #c9d8d4; border-radius: 6px; box-shadow: 0 10px 26px rgba(18,61,57,.1); backdrop-filter: blur(14px); }
.reading-mode-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 3px; background: #edf3f1; border-radius: 5px; }
.reading-mode-switch button { min-width: 102px; min-height: 36px; padding: 7px 12px; color: #58716c; background: transparent; border: 0; border-radius: 4px; font-size: 11px; font-weight: 850; cursor: pointer; }
.reading-mode-switch button.active { color: #fff; background: #174d48; box-shadow: 0 3px 10px rgba(16,62,58,.16); }
.result-toolbar-links { display: flex; align-items: center; gap: 6px; }
.result-toolbar-links a,.result-toolbar-links button,.glossary-page-link { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 12px; color: #174d48; background: #fff; border: 1px solid #abc3bd; border-radius: 4px; font-size: 10px; font-weight: 850; text-decoration: none; cursor: pointer; }
.result-toolbar-links a:hover,.result-toolbar-links button:hover,.glossary-page-link:hover { color: #fff; background: #174d48; }
body[data-reading-mode="easy"] .expert-only,body[data-reading-mode="easy"] .expert-copy,body[data-reading-mode="easy"] .term-inline,body[data-reading-mode="easy"] .technical-disclosure,body[data-reading-mode="easy"] .beginner-evidence-disclosure,body[data-reading-mode="easy"] .life-reading-evidence,body[data-reading-mode="easy"] #tenGods { display: none !important; }
body[data-reading-mode="expert"] .easy-only,body[data-reading-mode="expert"] .easy-copy { display: none !important; }
.removed-from-report { display: none !important; }

.header-reading-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); overflow: hidden; padding: 3px; background: #eaf1ef; border: 1px solid #c4d2ce; border-radius: 5px; }
.header-reading-switch button { min-width: 74px; min-height: 30px; padding: 5px 9px; color: #58716c; background: transparent; border: 0; border-radius: 3px; font-size: 10px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.header-reading-switch button:hover { color: #174d48; background: rgba(255,255,255,.72); }
.header-reading-switch button.active { color: #fff; background: #174d48; box-shadow: 0 3px 9px rgba(16,62,58,.16); }

.mode-overview-section { padding-top: 30px; }
.mode-overview-intro { margin-bottom: 18px; }
.mode-overview-intro h2 { font-size: 25px; line-height: 1.35; }
.mode-overview-intro p { margin-top: 7px; color: var(--ink-soft); font-size: 12px; }
.mode-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.mode-overview-grid article,.easy-pattern-grid article { min-width: 0; padding: 19px 20px; background: #fff; border: 1px solid #d3dfdc; border-left: 4px solid #1c7b6d; border-radius: 6px; }
.mode-overview-grid article:nth-child(2),.mode-overview-grid article:nth-child(5) { border-left-color: #b58a31; }
.mode-overview-grid article:nth-child(3),.mode-overview-grid article:nth-child(6) { border-left-color: #47748b; }
.mode-overview-grid span,.easy-pattern-grid span { color: #167567; font-size: 10px; font-weight: 900; }
.mode-overview-grid h3,.easy-pattern-grid h3 { margin-top: 4px; font-size: 16px; line-height: 1.45; }
.mode-overview-grid p,.easy-pattern-grid p { margin-top: 7px; color: #526967; font-size: 12px; line-height: 1.78; word-break: keep-all; }
.expert-overview { border: 1px solid #cbd9d5; background: #fff; }
.expert-pillar-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #173f42; }
.expert-pillar-strip > div { display: grid; min-height: 112px; place-items: center; align-content: center; padding: 12px; color: #fff; border-right: 1px solid rgba(255,255,255,.16); }
.expert-pillar-strip > div:last-child { border-right: 0; }
.expert-pillar-strip span { color: #d4e3df; font-size: 9px; font-weight: 800; }
.expert-pillar-strip strong { margin-top: 2px; color: #f4d783; font-family: serif; font-size: 32px; line-height: 1.1; }
.expert-pillar-strip small { margin-top: 4px; color: #fff; font-size: 10px; }
.expert-facts { display: grid; }
.expert-facts > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 18px; padding: 15px 18px; border-top: 1px solid #e1e9e7; }
.expert-facts dt { color: #176f63; font-size: 11px; font-weight: 900; }
.expert-facts dd { min-width: 0; color: #233f40; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.expert-facts dd small { display: block; margin-top: 5px; color: #6b7d79; font-size: 10px; font-weight: 500; line-height: 1.55; }
.expert-glossary-link { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 10px 18px; color: #fff; background: #286860; font-size: 11px; font-weight: 900; text-decoration: none; }
.easy-pattern-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.easy-pattern-grid article:nth-child(2) { border-left-color: #b58a31; }
.easy-pattern-grid article:nth-child(3) { border-left-color: #c46354; }
.easy-pattern-note { margin-top: 12px; color: #6b7d79; font-size: 10px; }

.report-lead-section { position: relative; overflow: hidden; color: #f4fbf9; background: #153f3b; border-color: #153f3b; box-shadow: 0 16px 38px rgba(15,58,54,.16); }
.report-lead-section::after { position: absolute; top: -46px; right: -36px; width: 170px; height: 170px; border: 1px solid rgba(245,215,110,.26); border-radius: 50%; content: ""; }
.report-lead-section .eyebrow,.report-lead-section h2 { color: #fff; }
.report-lead-section .today-summary { border-color: rgba(214,234,229,.28); }
.report-lead-section .today-summary p,.report-lead-section .today-relation { color: #d7e7e3; }
.report-lead-section .today-ganzhi { color: #143d39; background: #f5d76e; }
.report-lead-section .today-ganzhi span,.report-lead-section .today-ganzhi small { color: #315a55; }
.report-lead-section .today-ganzhi strong { color: #103f3b; }
.today-friendly-guides { grid-template-columns: repeat(3,minmax(0,1fr)); }
.today-friendly-guides > div { background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.22); }

.narrated-bubble,.life-overview-narrative,.plain-summary-copy,.life-reading-head,.persona-content,.flow-detail { position: relative; }
.narrated-bubble::before,.life-overview-narrative::before,.plain-summary-copy::before,.life-reading-head::before,.persona-content::before,.flow-detail::before { position: absolute; top: 22px; left: -9px; width: 16px; height: 16px; background: inherit; border-bottom: 1px solid currentColor; border-left: 1px solid currentColor; content: ""; opacity: .14; transform: rotate(45deg); }

.floating-fortune-guide { position: fixed; z-index: 40; bottom: 28px; left: 20px; display: grid; width: 350px; grid-template-columns: 88px 1fr; align-items: end; gap: 18px; pointer-events: none; }
.floating-fortune-guide[hidden] { display: none; }
.floating-guide-character { position: relative; width: 88px; height: 112px; overflow: hidden; padding: 0; background: rgba(227,240,237,.94); border: 2px solid #f5d76e; border-radius: 44px 44px 10px 10px; box-shadow: 0 14px 30px rgba(14,52,49,.22); cursor: pointer; pointer-events: auto; animation: guide-breathe 3.4s ease-in-out infinite; }
.floating-guide-character video { position: absolute; inset: 0; width: 210%; height: 150%; object-fit: cover; object-position: center; transform: translate(-26%,-12%); }
.floating-guide-bubble { position: relative; min-width: 0; padding: 13px 14px 11px; color: #183f3b; background: rgba(255,255,255,.97); border: 1px solid #b7cec8; border-radius: 6px; box-shadow: 0 14px 34px rgba(15,58,54,.18); pointer-events: auto; }
.floating-guide-bubble::before { position: absolute; bottom: 24px; left: -7px; width: 12px; height: 12px; background: #fff; border-bottom: 1px solid #b7cec8; border-left: 1px solid #b7cec8; content: ""; transform: rotate(45deg); }
.floating-guide-bubble span { display: block; color: #148071; font-size: 10px; font-weight: 900; }
.floating-guide-bubble strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; }
.floating-guide-bubble p { margin-top: 6px; color: #536b66; font-size: 12px; line-height: 1.7; }
.floating-guide-bubble button { margin-top: 9px; padding: 6px 8px; color: #174d48; background: #edf5f2; border: 1px solid #bfd2cd; border-radius: 3px; font-size: 10px; font-weight: 850; cursor: pointer; }
.floating-guide-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.floating-guide-actions button { margin-top: 9px; }
.floating-guide-actions .floating-guide-charm { color: #fff; background: #174d48; border-color: #174d48; }
.floating-guide-actions .floating-guide-charm:hover { background: #0f665c; }
.floating-fortune-guide.collapsed { width: 88px; grid-template-columns: 88px; }
.floating-fortune-guide.collapsed .floating-guide-bubble { display: none; }
@keyframes guide-breathe { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-5px) rotate(.5deg); } }

.charm-panel { position: fixed; z-index: 72; top: 76px; right: 18px; bottom: 18px; display: flex; width: min(430px,calc(100vw - 28px)); flex-direction: column; overflow: hidden; color: #173c39; background: #fff; border: 1px solid #b9ccc7; border-radius: 7px; box-shadow: 0 24px 70px rgba(9,42,40,.22); opacity: 0; transform: translateX(calc(100% + 28px)); transition: opacity .2s ease,transform .22s ease; }
.charm-panel[hidden] { display: none; }
.charm-panel.open { opacity: 1; transform: translateX(0); }
.charm-panel-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 18px 17px; color: #fff; background: #153f3b; border-bottom: 3px solid #f0cc68; }
.charm-panel-header span { color: #f0d88d; font-size: 11px; font-weight: 900; }
.charm-panel-header h2 { margin-top: 4px; font-size: 21px; line-height: 1.35; }
.charm-panel-close { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 0; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.38); border-radius: 50%; font-size: 19px; line-height: 1; cursor: pointer; }
.charm-panel-close:hover { color: #153f3b; background: #f5d76e; border-color: #f5d76e; }
.charm-panel-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px 17px 22px; scrollbar-color: #97b0aa transparent; }
.charm-hero > span,.charm-at-a-glance > span,.charm-use > span { color: #168172; font-size: 11px; font-weight: 900; }
.charm-hero h3 { margin-top: 5px; font-size: 23px; line-height: 1.42; word-break: keep-all; }
.charm-hero p { margin-top: 10px; color: #4b625e; font-size: 13px; line-height: 1.78; word-break: keep-all; }
.charm-at-a-glance { margin-top: 18px; padding: 15px; background: #eef6f3; border-left: 3px solid #e4bd53; }
.charm-at-a-glance ul { display: grid; gap: 12px; margin-top: 12px; list-style: none; }
.charm-at-a-glance li { position: relative; padding-left: 13px; color: #284d49; font-size: 12px; line-height: 1.65; }
.charm-at-a-glance li::before { position: absolute; top: .65em; left: 0; width: 5px; height: 5px; background: #c85a4a; border-radius: 50%; content: ""; }
.charm-at-a-glance li strong { display: inline-block; min-width: 36px; color: #167568; font-size: 11px; }
.charm-at-a-glance li p { display: inline; }
.charm-card-list { display: grid; gap: 14px; margin-top: 18px; }
.charm-card { padding: 17px; background: #fff; border: 1px solid #cddbd8; border-radius: 6px; }
.charm-card header { display: flex; align-items: center; gap: 10px; }
.charm-card header > span { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; color: #fff; background: #176d63; border-radius: 50%; font-size: 10px; font-weight: 900; }
.charm-card small { display: block; color: #b24c40; font-size: 10px; font-weight: 900; }
.charm-card h4 { margin-top: 2px; font-size: 17px; line-height: 1.4; }
.charm-card blockquote { margin-top: 13px; padding: 12px 13px; color: #183f3b; background: #fff8e8; border-left: 3px solid #e7c25c; font-size: 13px; font-weight: 800; line-height: 1.72; word-break: keep-all; }
.charm-position { margin-top: 12px; padding: 11px 12px; color: #526b67; background: #f4f8f7; font-size: 11px; line-height: 1.68; word-break: keep-all; }
.charm-position b { display: block; margin-bottom: 3px; color: #167568; font-size: 10px; }
.charm-scenes { display: grid; margin-top: 12px; }
.charm-scenes section { padding: 11px 0; border-top: 1px solid #e2e9e7; }
.charm-scenes span,.charm-more span { color: #167568; font-size: 10px; font-weight: 900; }
.charm-scenes p,.charm-more p { margin-top: 4px; color: #526964; font-size: 12px; line-height: 1.72; word-break: keep-all; }
.charm-more { margin-top: 4px; border-top: 1px solid #dce6e3; }
.charm-more summary { position: relative; padding: 13px 25px 8px 0; color: #174f49; font-size: 11px; font-weight: 900; cursor: pointer; list-style: none; }
.charm-more summary::-webkit-details-marker { display: none; }
.charm-more summary::after { position: absolute; top: 12px; right: 2px; content: '+'; font-size: 17px; font-weight: 500; line-height: 1; }
.charm-more[open] summary::after { content: '−'; }
.charm-more > div { padding: 11px 0; border-top: 1px dashed #dce6e3; }
.charm-use { margin-top: 18px; padding: 15px; background: #173f42; color: #fff; }
.charm-use > span { color: #f4d985; }
.charm-use strong { display: block; margin-top: 5px; font-size: 14px; line-height: 1.62; }
.charm-use p { margin-top: 8px; color: #d3e2df; font-size: 11px; line-height: 1.7; }
.charm-note { margin-top: 12px; color: #788985; font-size: 10px; line-height: 1.65; }
.charm-copy { width: 100%; min-height: 42px; margin-top: 13px; color: #174d48; background: #fff; border: 1px solid #9ebbb4; font-size: 11px; font-weight: 900; cursor: pointer; }
.charm-copy:hover { color: #fff; background: #174d48; }

@media (min-width: 1380px) {
  body.charm-panel-open:has(#result:not([hidden])) main { width: min(850px,calc(100% - 880px)); margin-right: 470px; margin-left: 370px; transition: width .22s ease,margin .22s ease; }
}

.character-self-intro { max-width: 650px; padding: 13px 15px; color: #28534e; background: #eef6f3; border-left: 3px solid #f5d76e; font-size: 13px; line-height: 1.75; }
.fortune-preview { position: relative; overflow: hidden; }
.fortune-character-visual { position: absolute; z-index: 1; top: 18px; right: 18px; width: 110px; height: 104px; overflow: hidden; background: #e8f2ef; border: 1px solid #c8dcd6; border-radius: 6px; }
.fortune-character-visual > span { position: absolute; z-index: 2; right: 6px; bottom: 6px; padding: 3px 6px; color: #fff; background: #174d48; border-radius: 3px; font-size: 8px; font-weight: 900; }
.fortune-character-sprite,.age-character { background-color: #eef5f2; background-image: url("assets/zodiac-mascots-cute.png"); background-repeat: no-repeat; background-size: 400% 300%; background-position: calc(var(--sprite-column) * 33.333%) calc(var(--sprite-row) * 50%); }
.fortune-character-sprite { width: 100%; height: 100%; animation: mascot-nod 2.8s ease-in-out infinite; }
.life-reading-head { min-height: 136px; padding-right: 138px; }
@keyframes mascot-nod { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(1deg); } }

.age-fortune-chart { margin: 12px 20px 18px; padding: 16px; background: #f6f9f8; border: 1px solid #d4e1dd; border-radius: 6px; }
.age-chart-key { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.age-chart-key strong { color: #174d48; font-size: 12px; }
.age-chart-key span { color: #687d78; font-size: 9px; }
.age-fortune-chart svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.chart-axis { stroke: #c7d8d3; stroke-width: 1; }
.chart-line { fill: none; stroke: #168172; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #f5d76e; stroke: #174d48; stroke-width: 3; }
.age-fortune-chart text { fill: #617570; font-size: 11px; font-weight: 800; }
.age-fortune-chart .chart-value { fill: #174d48; font-size: 9px; }
.life-age-flow article { position: relative; padding-top: 70px; }
.age-character { position: absolute; top: 10px; right: 12px; width: 54px; height: 54px; border: 1px solid #cbdcd7; border-radius: 50%; animation: mascot-nod 3.2s ease-in-out infinite; }
.nearby-match { margin-top: 18px; padding: 16px; background: #f2f7f5; border-left: 4px solid #f5d76e; }
.nearby-match > span { color: #168172; font-size: 9px; font-weight: 900; }
.nearby-match h3 { margin-top: 3px; font-size: 16px; }
.nearby-match > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nearby-match > div > span { padding: 7px 9px; background: #fff; border: 1px solid #c7d8d3; border-radius: 4px; font-size: 9px; }
.nearby-match > div strong { display: block; color: #174d48; font-size: 11px; }
.nearby-match p { margin-top: 10px; color: #6a7d79; font-size: 9px; line-height: 1.6; }
.technical-disclosure > summary i { display: inline-grid; width: 23px; height: 23px; margin-right: 7px; place-items: center; color: #fff; background: #174d48; border-radius: 50%; font-family: serif; font-size: 10px; font-style: normal; }
.glossary-preview { align-items: center; }

.glossary-page { color: #183f3b; background: #f4f8f7; }
.glossary-header { position: sticky; z-index: 20; top: 0; display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 10px max(20px,calc((100% - 1080px)/2)); background: rgba(255,255,255,.96); border-bottom: 1px solid #d0dedb; backdrop-filter: blur(14px); }
.glossary-back { padding: 8px 11px; color: #174d48; border: 1px solid #abc3bd; border-radius: 4px; font-size: 10px; font-weight: 850; text-decoration: none; }
.glossary-main { width: min(1080px,calc(100% - 32px)); margin: 0 auto; padding: 72px 0 90px; }
.glossary-intro { max-width: 720px; }
.glossary-intro > span { color: #168172; font-size: 11px; font-weight: 900; }
.glossary-intro h1 { margin-top: 10px; font-size: 52px; line-height: 1.18; letter-spacing: 0; }
.glossary-intro p { margin-top: 14px; color: #5f7671; font-size: 15px; line-height: 1.7; }
.glossary-index { display: flex; gap: 7px; margin-top: 34px; overflow-x: auto; }
.glossary-index a { min-width: max-content; padding: 9px 12px; color: #174d48; background: #fff; border: 1px solid #c4d6d1; border-radius: 4px; font-size: 10px; font-weight: 850; text-decoration: none; }
.glossary-group { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 46px; padding: 52px 0; border-top: 1px solid #cad9d5; scroll-margin-top: 78px; }
.glossary-group:first-of-type { margin-top: 54px; }
.glossary-group-title { display: flex; align-items: flex-start; gap: 13px; }
.glossary-group-title > span { color: #168172; font-size: 10px; font-weight: 900; }
.glossary-group-title h2 { font-size: 25px; }
.glossary-group-title p { margin-top: 8px; color: #677b77; font-size: 11px; line-height: 1.7; }
.glossary-list { background: #fff; border-top: 2px solid #174d48; }
.glossary-list details { border-bottom: 1px solid #d4e0dd; }
.glossary-list summary { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 18px; padding: 19px 20px; cursor: pointer; }
.glossary-list summary span { color: #168172; font-size: 12px; font-weight: 900; }
.glossary-list summary strong { font-size: 13px; }
.glossary-list details p { padding: 0 20px 20px 158px; color: #5c716d; font-size: 12px; line-height: 1.8; }

@media (max-width: 1280px) {
  .floating-fortune-guide { bottom: 82px; left: 12px; width: 292px; grid-template-columns: 76px 1fr; }
  .floating-guide-character { width: 76px; height: 96px; }
}
@media (min-width: 1181px) {
  body:has(#result:not([hidden])) main { width: min(1060px,calc(100% - 390px)); margin-right: 20px; margin-left: 370px; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  body:has(#result:not([hidden])) main { width: calc(100% - 112px); margin-right: 12px; margin-left: 100px; }
  .floating-fortune-guide { width: 76px; grid-template-columns: 76px; }
  .floating-guide-bubble { position: absolute; bottom: 0; left: 84px; width: 220px; visibility: hidden; opacity: 0; transform: translateX(-8px); transition: opacity .18s ease,transform .18s ease,visibility .18s ease; }
  .floating-fortune-guide:hover .floating-guide-bubble,.floating-fortune-guide:focus-within .floating-guide-bubble { visibility: visible; opacity: 1; transform: translateX(0); }
}
@media (max-width: 820px) {
  .result-toolbar { top: 58px; }
  .today-friendly-guides { grid-template-columns: 1fr; }
  .floating-fortune-guide { right: 10px; bottom: 70px; left: auto; width: min(340px,calc(100% - 20px)); grid-template-columns: 66px minmax(0,1fr); gap: 16px; }
  .floating-guide-character { width: 66px; height: 78px; }
  .floating-guide-bubble { padding: 10px 11px 9px; }
  .floating-guide-bubble p { max-height: 48px; overflow: hidden; }
  .floating-fortune-guide.collapsed { width: 66px; grid-template-columns: 66px; }
  .glossary-group { grid-template-columns: 1fr; gap: 18px; }
  .mode-overview-grid,.easy-pattern-grid { grid-template-columns: 1fr; }
  .charm-panel { top: 64px; right: 8px; bottom: 76px; width: min(360px,calc(100vw - 16px)); }
  .charm-panel-body { padding: 17px 14px 20px; }
  .charm-panel-header { padding: 16px 14px 14px; }
  .charm-panel-header h2 { font-size: 17px; }
}
@media (max-width: 620px) {
  .site-header { gap: 7px; }
  .site-logo { flex: 0 0 auto; }
  .site-logo strong { display: none; }
  .site-actions { min-width: 0; gap: 4px; }
  .header-reading-switch { flex: 1 1 auto; min-width: 0; }
  .header-reading-switch button { min-width: 0; min-height: 28px; padding-inline: 7px; font-size: 9px; }
  .library-button { padding-inline: 8px; font-size: 10px; }
  .result-toolbar { align-items: stretch; flex-direction: column; padding: 7px; }
  .reading-mode-switch button { min-width: 0; }
  .result-toolbar-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-toolbar-links a,.result-toolbar-links button { justify-content: center; }
  .life-reading-head { min-height: 0; padding-top: 98px; padding-right: 18px; }
  .fortune-character-visual { top: 12px; right: auto; left: 16px; width: 86px; height: 80px; }
  .age-fortune-chart { margin-inline: 16px; padding: 12px 8px; overflow-x: auto; }
  .age-fortune-chart svg { min-width: 620px; }
  .age-chart-key { align-items: flex-start; flex-direction: column; }
  .glossary-main { width: min(100% - 24px,560px); padding-top: 46px; }
  .glossary-intro h1 { font-size: 35px; }
  .glossary-group { padding: 38px 0; }
  .glossary-list summary { grid-template-columns: 86px minmax(0,1fr); gap: 10px; padding: 15px 14px; }
  .glossary-list details p { padding: 0 14px 17px; }
  .mode-overview-section { padding-top: 24px; }
  .mode-overview-intro h2 { font-size: 21px; }
  .mode-overview-grid article,.easy-pattern-grid article { padding: 16px; }
  .expert-pillar-strip strong { font-size: 25px; }
  .expert-pillar-strip > div { min-height: 96px; padding: 9px 5px; }
  .expert-facts > div { grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 13px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-guide-character,.fortune-character-sprite,.age-character { animation: none; }
}

@media print {
  .site-header, .benefit-strip, .site-proof, .site-bottom-nav, .library-dialog, .policy-dialog,.charm-panel { display: none !important; }
}

/* v39 · 선녀 환영 장면과 신뢰 중심 첫 화면 */
.site-actions { display: flex; align-items: center; gap: 7px; }
.header-icon-button { display: inline-flex; min-width: 54px; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 6px 9px; color: var(--ink-soft); background: #fff; border: 1px solid #c5d0cd; border-radius: 5px; font-size: 10px; font-weight: 900; cursor: pointer; }
.header-icon-button:hover { color: var(--teal); border-color: #83aaa2; background: #f3f8f6; }
.header-icon-button > span:first-child { color: var(--teal); font-size: 15px; line-height: 1; }

.hero { min-height: 0; background-color: #081321; background-position: center 50%; border-bottom-color: #d9b95e; }
.hero::before { background: rgba(4, 17, 27, .76); }
.hero-stars { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.hero-stars i { position: absolute; width: 3px; height: 3px; background: #dff8ff; border-radius: 50%; box-shadow: 0 0 8px rgba(183, 238, 255, .8); animation: hero-star 3.6s ease-in-out infinite; }
.hero-stars i:nth-child(1) { top: 14%; left: 8%; animation-delay: .2s; }
.hero-stars i:nth-child(2) { top: 22%; left: 31%; animation-delay: 1.1s; }
.hero-stars i:nth-child(3) { top: 11%; left: 55%; animation-delay: 2.4s; }
.hero-stars i:nth-child(4) { top: 29%; left: 72%; animation-delay: .7s; }
.hero-stars i:nth-child(5) { top: 18%; left: 89%; animation-delay: 1.8s; }
.hero-stars i:nth-child(6) { top: 57%; left: 47%; animation-delay: 2.9s; }
.hero-inner { position: relative; z-index: 1; width: min(1420px, calc(100% - 32px)); min-height: min(760px, calc(100svh - 88px)); grid-template-columns: minmax(260px, .72fr) minmax(230px, .52fr) minmax(540px, 1.22fr); gap: 22px; padding: 24px 0 28px; }
.hero-copy { position: relative; z-index: 3; max-width: 410px; animation: hero-copy-in .85s ease-out .15s both; }
.hero-copy h2 { max-width: 390px; margin-top: 17px; color: #fff; font-size: 34px; line-height: 1.28; font-weight: 800; }
.hero h1 { font-size: 25px; }
.hero .hanja { font-size: 15px; }
.tagline { max-width: 400px; font-size: 14px; line-height: 1.75; }
.hero-points { gap: 7px 13px; margin-top: 17px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-cta { min-width: 164px; justify-content: space-between; margin-top: 0; background: #f5d76e; color: #102c38; box-shadow: 0 10px 28px rgba(0, 0, 0, .26); }
.hero-cta:hover { background: #fff0ad; box-shadow: 0 0 24px rgba(245, 215, 110, .34); }
.hero-secondary { min-height: 46px; padding: 10px 15px; color: #fff; background: rgba(8, 19, 33, .58); border: 1px solid rgba(197, 233, 241, .55); border-radius: 5px; font-size: 12px; font-weight: 900; cursor: pointer; }
.hero-secondary:hover { color: #e9fbff; background: rgba(24, 77, 87, .74); border-color: #9de7f2; box-shadow: 0 0 20px rgba(95, 209, 224, .2); }
.hero-privacy { margin-top: 13px; color: #bdd1d5; font-size: 10px; line-height: 1.55; }
.hero-privacy strong { color: #f3dd91; }

.maiden-stage { position: relative; align-self: end; height: 650px; margin: 0; pointer-events: none; }
.maiden-walk { position: absolute; right: -8px; bottom: 0; width: min(340px, 118%); transform-origin: 50% 100%; animation: maiden-arrive 2.7s cubic-bezier(.35, .02, .2, 1) .3s both; }
.maiden-walk::after { position: absolute; z-index: -1; right: 18%; bottom: 1.5%; width: 54%; height: 18px; background: rgba(2, 12, 21, .46); border-radius: 50%; filter: blur(8px); content: ""; animation: maiden-shadow 4.4s ease-in-out 3.2s infinite; }
.maiden-character { display: block; width: 100%; height: auto; transform-origin: 52% 90%; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .3)); animation: maiden-step .48s ease-in-out .3s 6, maiden-idle 4.4s ease-in-out 3.2s infinite; }
.maiden-stage figcaption { position: absolute; z-index: 3; right: -6px; bottom: 22px; display: grid; width: 220px; gap: 2px; padding: 12px 14px; color: #17393b; background: rgba(255, 255, 255, .94); border-left: 4px solid #f5d76e; border-radius: 5px; box-shadow: 0 12px 28px rgba(0, 0, 0, .22); opacity: 0; animation: maiden-caption .7s ease-out 2.65s forwards; }
.maiden-stage figcaption span { color: #16786c; font-size: 9px; font-weight: 900; }
.maiden-stage figcaption strong { font-size: 11px; line-height: 1.5; }

.hero-entry { position: relative; z-index: 4; animation: hero-entry-in .8s ease-out 1.05s both; }
.hero-entry .input-card { max-height: min(690px, calc(100svh - 112px)); background: rgba(255, 255, 255, .965); border-color: rgba(211, 235, 233, .82); box-shadow: 0 26px 80px rgba(0, 0, 0, .42); }
.hero-entry .analysis-mode { background: rgba(5, 25, 34, .92); }
.privacy-promises { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 11px; color: #52706a; font-size: 9px; font-weight: 800; }
.privacy-promises span::before { margin-right: 5px; color: #168274; content: "✓"; }

@keyframes hero-star { 0%, 100% { opacity: .22; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-entry-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes maiden-arrive { 0% { opacity: 0; transform: translateX(-58vw) scale(.96); } 12% { opacity: 1; } 78% { transform: translateX(10px) scale(1); } 90% { transform: translateX(-5px) scale(1); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes maiden-step { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-8px) rotate(-1.2deg); } 70% { transform: translateY(1px) rotate(.8deg); } }
@keyframes maiden-idle { 0%, 100% { transform: translateY(0) rotate(-.2deg) scale(1); } 50% { transform: translateY(-5px) rotate(.35deg) scale(1.006); } }
@keyframes maiden-shadow { 0%, 100% { opacity: .72; transform: scaleX(1); } 50% { opacity: .48; transform: scaleX(.88); } }
@keyframes maiden-caption { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) and (min-width: 821px) {
  .hero-inner { width: min(1120px, calc(100% - 24px)); grid-template-columns: minmax(240px, .72fr) 190px minmax(500px, 1.28fr); gap: 12px; }
  .hero-copy h2 { font-size: 29px; }
  .maiden-stage { height: 590px; }
  .maiden-walk { width: 285px; right: -35px; }
  .maiden-stage figcaption { right: -30px; width: 190px; }
}

@media (max-width: 820px) {
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 18px; padding: 34px 0 42px; }
  .hero-copy { max-width: 640px; }
  .hero-copy h2 { font-size: 32px; }
  .maiden-stage { width: 100%; height: 330px; align-self: auto; }
  .maiden-walk { right: 8%; width: 225px; }
  .maiden-stage figcaption { right: auto; bottom: 34px; left: 4%; width: min(310px, 52%); }
  .hero-entry .input-card { max-height: none; }
}

@media (max-width: 620px) {
  .site-actions { gap: 5px; }
  .header-action-label { display: none; }
  .header-icon-button { min-width: 34px; width: 34px; min-height: 34px; padding: 0; }
  .library-button { font-size: 10px; }
  .hero-inner { width: min(100% - 24px, 560px); padding-top: 28px; }
  .hero h1 { font-size: 22px; }
  .hero-copy h2 { max-width: 340px; font-size: 29px; }
  .tagline { max-width: 470px; font-size: 13px; }
  .hero-actions { align-items: stretch; }
  .hero-cta, .hero-secondary { flex: 1 1 145px; }
  .maiden-stage { height: 280px; }
  .maiden-walk { right: 2%; width: 190px; }
  .maiden-stage figcaption { bottom: 26px; left: 0; width: min(250px, 58%); padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stars i, .hero-copy, .hero-entry, .maiden-walk, .maiden-character, .maiden-walk::after, .maiden-stage figcaption { animation: none !important; opacity: 1; transform: none; }
}

/* v40 · 캐릭터 환영 영상 중심의 첫 화면 */
.hero { min-height: calc(100svh - 88px); background-position: center 56%; }
.hero::before { background: rgba(4, 15, 27, .82); }
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1040px, calc(100% - 32px));
  min-height: calc(100svh - 88px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 22px;
  text-align: center;
}
.welcome-brand { position: absolute; top: 18px; left: 0; display: flex; align-items: center; gap: 9px; color: #fff; text-align: left; }
.welcome-brand > span { display: grid; width: 36px; height: 36px; place-items: center; color: #102c38; background: #f5d76e; border: 1px solid #ffeaa1; border-radius: 50%; font-family: serif; font-size: 18px; font-weight: 900; box-shadow: 0 0 24px rgba(245, 215, 110, .25); }
.welcome-brand strong { display: grid; font-size: 17px; line-height: 1.15; }
.welcome-brand small { color: #bcd4d9; font-size: 9px; font-weight: 700; }
.welcome-character-stage { position: relative; width: min(920px, 96vw); height: min(56svh, 500px); min-height: 260px; margin-top: 24px; overflow: visible; }
.welcome-character-video, .welcome-character-static { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .34)); }
.welcome-character-static { display: none; }
.welcome-copy { display: grid; width: min(500px, 100%); justify-items: center; gap: 11px; animation: welcome-copy-in .7s ease-out .6s both; }
.welcome-copy h1 { color: #fff; font-size: 30px; line-height: 1.3; font-weight: 850; text-shadow: 0 3px 18px rgba(0, 0, 0, .55); }
.fortune-start-button { display: inline-flex; width: min(420px, 100%); min-height: 58px; align-items: center; justify-content: space-between; padding: 12px 18px 12px 22px; color: #102c38; background: #f5d76e; border: 1px solid #ffeaa1; border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28), 0 0 26px rgba(245, 215, 110, .16); font-size: 17px; font-weight: 900; cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.fortune-start-button span { font-size: 22px; line-height: 1; }
.fortune-start-button:hover { background: #fff0ad; box-shadow: 0 14px 34px rgba(0, 0, 0, .3), 0 0 30px rgba(245, 215, 110, .3); transform: translateY(-2px); }
.fortune-start-button:active { transform: translateY(0); }
.welcome-copy > p { color: #bfd0d4; font-size: 10px; line-height: 1.55; }
.welcome-copy .install-app { margin-top: 0; }
.analysis-mode, .input-card { scroll-margin-top: 82px; }

@keyframes welcome-copy-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .hero, .hero-inner { min-height: calc(100svh - 80px); }
  .hero-inner { width: min(100% - 24px, 680px); gap: 8px; padding: 12px 0 20px; }
  .welcome-brand { top: 13px; }
  .welcome-character-stage { width: 100%; height: min(52svh, 390px); min-height: 240px; margin-top: 30px; }
  .welcome-copy h1 { font-size: 27px; }
}

@media (max-width: 620px) {
  .hero, .hero-inner { min-height: calc(100svh - 74px); }
  .hero-inner { padding-bottom: 18px; }
  .welcome-brand > span { width: 32px; height: 32px; font-size: 16px; }
  .welcome-brand strong { font-size: 15px; }
  .welcome-character-stage { height: min(47svh, 330px); min-height: 210px; margin-top: 34px; }
  .welcome-copy { gap: 10px; }
  .welcome-copy h1 { font-size: 24px; }
  .fortune-start-button { min-height: 54px; padding-inline: 18px; font-size: 16px; }
  .welcome-copy > p { max-width: 310px; font-size: 9px; }
}

@media (max-height: 650px) and (min-width: 621px) {
  .welcome-character-stage { height: 320px; min-height: 220px; }
  .welcome-copy h1 { font-size: 25px; }
  .fortune-start-button { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-character-video { display: none; }
  .welcome-character-static { display: block; }
  .welcome-copy { animation: none; }
  .fortune-start-button { transition: none; }
}

/* v42 · 초보자 질문 우선 결과 구조 */
.question-suggestions { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.question-suggestions > span { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.question-suggestions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.question-suggestions button { min-height: 40px; padding: 8px 11px; color: #315d59; background: #f3f8f6; border: 1px solid #c5d9d3; border-radius: 5px; text-align: left; font-size: 11px; font-weight: 750; cursor: pointer; }
.question-suggestions button:hover, .question-suggestions button.selected { color: #fff; background: var(--teal); border-color: var(--teal); }

.answer-first-section { overflow: hidden; border-top: 4px solid var(--gold); }
.question-answer-card { min-width: 0; }
.character-message { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.character-message > p { position: relative; padding: 12px 15px; color: #244f4b; background: #eaf4f1; border: 1px solid #c7ddd7; border-radius: 6px; font-size: 12px; font-weight: 800; }
.character-message > p::before { position: absolute; top: 50%; left: -7px; width: 12px; height: 12px; background: #eaf4f1; border-bottom: 1px solid #c7ddd7; border-left: 1px solid #c7ddd7; content: ""; transform: translateY(-50%) rotate(45deg); }
.answer-guide-avatar { width: 70px; height: 70px; flex: 0 0 70px; overflow: hidden; background: #dcebe7; border: 1px solid #bfd6cf; border-radius: 50%; }
.answer-guide-avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.85); }
.direct-answer { padding: 22px 0 18px; }
.direct-answer > span { color: var(--coral); font-size: 10px; font-weight: 900; }
.direct-answer h3 { max-width: 760px; margin-top: 5px; font-size: 25px; line-height: 1.45; }
.direct-answer > p { max-width: 760px; margin-top: 9px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.direct-answer mark { display: block; max-width: 760px; margin-top: 14px; padding: 12px 14px; color: #244844; background: #fff3c8; border-left: 4px solid var(--gold); font-size: 13px; font-weight: 800; line-height: 1.65; }
.personalized-answer-detail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #b9ced4; border-bottom: 1px solid #b9ced4; }
.personalized-answer-detail section { min-width: 0; padding: 20px 18px; border-right: 1px solid #b9ced4; }
.personalized-answer-detail section:last-child { border-right: 0; }
.personalized-answer-detail span,.question-monthly-flow > div:first-child > span { color: var(--blue); font-size: 10px; font-weight: 900; }
.personalized-answer-detail h4,.question-monthly-flow h4 { margin-top: 5px; color: var(--ink); font-size: 16px; line-height: 1.45; }
.personalized-answer-detail p,.question-monthly-flow > div:first-child > p { margin-top: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.question-monthly-flow { padding: 22px 0 4px; }
.question-monthly-flow > div:first-child { max-width: 760px; }
.question-month-strip { display: grid; grid-template-columns: repeat(6,minmax(150px,1fr)); gap: 1px; margin-top: 14px; overflow-x: auto; background: #c9dad6; border: 1px solid #c9dad6; scrollbar-width: thin; }
.question-month-strip article { min-width: 150px; padding: 14px; background: #fff; }
.question-month-strip article > span { color: #627873; font-size: 9px; font-weight: 850; }
.question-month-strip article strong { display: block; margin-top: 3px; color: var(--teal); font-size: 13px; }
.question-month-strip article p { margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.question-month-strip article small { display: block; margin-top: 8px; color: #70837f; font-size: 8px; }
.question-evidence { margin-top: 16px; border-top: 1px solid #b9ced4; border-bottom: 1px solid #b9ced4; }
.question-evidence summary { padding: 13px 2px; color: var(--teal); font-size: 11px; font-weight: 900; cursor: pointer; }
.question-evidence ul { display: grid; gap: 6px; padding: 0 18px 16px 24px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.expandable-insight { margin-top: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expandable-insight > summary { min-height: 48px; padding: 12px 2px; color: var(--teal); font-size: 12px; font-weight: 900; cursor: pointer; }
.expandable-insight[open] > summary { border-bottom: 1px solid var(--line); }
.expandable-insight .concern-lenses { margin-top: 0; border-top: 0; }
.insight-card-actions, .compat-answer-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.insight-card-actions button, .compat-answer-actions button { min-height: 38px; padding: 7px 12px; color: var(--teal); background: #fff; border: 1px solid #9fbdb6; border-radius: 5px; font-size: 11px; font-weight: 850; cursor: pointer; }
.insight-card-actions button:hover, .compat-answer-actions button:hover { color: #fff; background: var(--teal); }
.interpretation-scope { margin-top: 12px; color: #71847f; font-size: 10px; line-height: 1.6; }

.overview-disclosure { margin: 0 20px; border-top: 1px solid #d9e4e1; border-bottom: 1px solid #d9e4e1; }
.overview-disclosure > summary { min-height: 48px; padding: 13px 2px; color: var(--teal); font-size: 12px; font-weight: 900; cursor: pointer; }
.overview-disclosure .life-overview-narrative { padding-inline: 0; }
.overview-topic-card details { margin-top: 10px; border-top: 1px solid #dce5e2; }
.overview-topic-card details summary { padding-top: 9px; color: var(--teal); font-size: 10px; font-weight: 850; cursor: pointer; }
.overview-topic-card details p { margin-top: 8px; }

.year-outlook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); }
.year-outlook-card { min-width: 0; padding: 16px; background: #fff; }
.year-outlook-card.current { background: #edf6f3; box-shadow: inset 0 3px 0 var(--teal); }
.year-outlook-card span { display: block; color: #637872; font-size: 9px; font-weight: 850; }
.year-outlook-card strong { display: block; margin-top: 4px; color: var(--teal); font-size: 14px; }
.year-outlook-card p { margin-top: 6px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.quick-narrative { margin-top: 16px; padding: 22px 22px 20px; background: #fff; border-top: 2px solid #167568; border-bottom: 1px solid #c7d8d3; }
.quick-narrative p { max-width: 900px; color: #385853; font-size: 13px; line-height: 1.95; word-break: keep-all; }
.quick-narrative p + p { margin-top: 10px; color: #5b716d; }
.quick-narrative p > span { color: #167568; font-weight: 900; }
.quick-narrative p > strong { color: #133f3b; font-weight: 900; }
.year-outlook.year-outlook-narrative { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 18px; background: #fff; border: 1px solid #cbd9d5; }
.year-outlook-narrative .year-outlook-card { display: grid; min-height: 0; grid-template-columns: 150px minmax(0,1fr); gap: 24px; align-items: start; padding: 19px 22px; border-bottom: 1px solid #dce5e2; }
.year-outlook-narrative .year-outlook-card:last-child { border-bottom: 0; }
.year-outlook-narrative .year-outlook-card.current { background: #edf6f3; box-shadow: inset 3px 0 0 var(--teal); }
.year-outlook-narrative .year-outlook-card div > span { display: block; }
.year-outlook-narrative .year-outlook-card div > strong { display: block; margin-top: 5px; color: var(--teal); font-size: 15px; line-height: 1.45; }
.year-outlook-narrative .year-outlook-card > p { margin-top: 0; font-size: 12px; line-height: 1.8; word-break: keep-all; }

.technical-disclosure { margin-top: 15px; border: 1px solid var(--line); border-radius: 6px; }
.technical-disclosure > summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; color: var(--teal); background: #f5f8f7; cursor: pointer; }
.technical-disclosure > summary span { font-size: 12px; font-weight: 900; }
.technical-disclosure > summary small { color: #71827e; font-size: 9px; font-weight: 750; text-align: right; }
.technical-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.technical-disclosure-body { padding: 18px; }
.term-inline { position: relative; flex: 0 0 auto; }
.term-inline > summary { padding: 6px 9px; color: var(--teal); background: #edf5f2; border: 1px solid #c5d9d3; border-radius: 4px; font-size: 10px; font-weight: 850; cursor: pointer; list-style: none; }
.term-inline > summary::-webkit-details-marker { display: none; }
.term-inline > p { position: absolute; z-index: 8; top: calc(100% + 6px); right: 0; width: min(280px, 75vw); padding: 12px; color: #fff; background: #173f3d; border-radius: 5px; box-shadow: 0 12px 24px rgba(22, 60, 57, .18); font-size: 10px; line-height: 1.65; }
.beginner-evidence-disclosure { border-top: 1px solid var(--line); }
.beginner-evidence-disclosure > summary, .life-reading-evidence > summary { min-height: 44px; padding: 11px 18px; color: var(--teal); background: #f8faf9; font-size: 10px; font-weight: 900; cursor: pointer; }
.beginner-evidence-disclosure .reading-evidence { padding-top: 0; }
.life-reading-evidence { border-top: 1px solid var(--line); }
.life-reading-evidence .life-reading-basis { border-top: 0; }

/* 배우자 인연 상세 리포트 */
.spouse-deep-dive { --spouse-accent: #167b70; --spouse-soft: #edf7f4; border-top: 1px solid var(--line); background: #fff; }
.spouse-deep-dive[data-spouse-element="목"] { --spouse-accent: #36765e; --spouse-soft: #edf6f0; }
.spouse-deep-dive[data-spouse-element="화"] { --spouse-accent: #b94e43; --spouse-soft: #fff1ef; }
.spouse-deep-dive[data-spouse-element="토"] { --spouse-accent: #8a6425; --spouse-soft: #fbf4e7; }
.spouse-deep-dive[data-spouse-element="금"] { --spouse-accent: #596574; --spouse-soft: #f1f4f6; }
.spouse-deep-dive[data-spouse-element="수"] { --spouse-accent: #276b82; --spouse-soft: #edf5f8; }
.spouse-report-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 30px 28px 24px; background: var(--spouse-soft); }
.spouse-report-title > div { min-width: 0; }
.spouse-report-title span, .spouse-section-heading > span, .spouse-portrait-intro > span { color: var(--spouse-accent); font-size: 9px; font-weight: 900; }
.spouse-report-title h3 { margin-top: 6px; font-size: 22px; line-height: 1.45; }
.spouse-report-title p { margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.spouse-copy-button { flex: 0 0 auto; min-height: 42px; padding: 0 15px; color: var(--spouse-accent); background: #fff; border: 1px solid color-mix(in srgb, var(--spouse-accent) 35%, #fff); font-size: 10px; font-weight: 900; cursor: pointer; }
.spouse-copy-button:hover { background: var(--spouse-accent); color: #fff; }
.sixty-cycle-picker { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; background: #fff; border-top: 1px solid var(--line); }
.sixty-cycle-picker > div { min-width: 0; }
.sixty-cycle-picker > div > span, .sixty-cycle-picker label > span { display: block; color: var(--spouse-accent); font-size: 9px; font-weight: 900; }
.sixty-cycle-picker > div > strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; }
.sixty-cycle-picker > div > p { margin-top: 4px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.sixty-cycle-picker label { flex: 0 0 190px; }
.sixty-cycle-picker select { width: 100%; min-height: 42px; margin-top: 6px; padding: 0 34px 0 12px; color: #173c38; background: #f5f8f7; border: 1px solid #bfd1cc; font-size: 12px; font-weight: 850; cursor: pointer; }
.spouse-portrait-layout { display: grid; grid-template-columns: minmax(230px, 310px) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spouse-portrait-figure { min-width: 0; margin: 0; padding: 24px; background: #f7f8f8; border-right: 1px solid var(--line); }
.spouse-portrait-crop { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #d9dddf; }
.spouse-portrait-crop img { display: block; width: 500%; max-width: none; height: auto; transform: translateX(calc(var(--portrait-index) * -20%)); transform-origin: left top; }
.spouse-portrait-crop.sixty-cycle-crop { aspect-ratio: 2 / 3; isolation: isolate; }
.spouse-portrait-crop.sixty-cycle-crop img { position: absolute; z-index: 1; top: 0; left: 0; width: 600%; height: 200%; max-width: none; object-fit: fill; filter: saturate(.94) contrast(1.02); transform: translate(calc(var(--cycle-column) * (-100% / 6)), calc(var(--cycle-row) * -50%)); transform-origin: left top; }
.spouse-portrait-crop.sixty-cycle-crop::after { position: absolute; z-index: 2; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--cycle-color) 46%, transparent) 0%, transparent 52%), color-mix(in srgb, var(--cycle-color) 13%, transparent); mix-blend-mode: color; pointer-events: none; content: ""; }
.spouse-portrait-figure figcaption { display: grid; gap: 4px; margin-top: 12px; }
.spouse-portrait-figure figcaption span { color: var(--spouse-accent); font-size: 9px; font-weight: 900; }
.spouse-portrait-figure figcaption strong { font-size: 13px; line-height: 1.5; }
.spouse-portrait-intro { min-width: 0; padding: 32px; align-self: center; }
.spouse-portrait-intro h4, .spouse-section-heading h4 { margin-top: 6px; font-size: 18px; line-height: 1.5; }
.spouse-portrait-intro > p { margin-top: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.spouse-quick-details { display: grid; margin-top: 22px; border-top: 1px solid var(--line); }
.spouse-quick-details > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spouse-quick-details dt { color: var(--spouse-accent); font-size: 10px; font-weight: 900; }
.spouse-quick-details dd { color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.spouse-feature-band, .spouse-relation-band, .spouse-compatibility-band, .spouse-timing-band { padding: 30px 28px; border-bottom: 1px solid var(--line); }
.spouse-section-heading p { margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.spouse-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spouse-feature-row { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spouse-feature-row dt { color: var(--spouse-accent); font-size: 10px; font-weight: 900; }
.spouse-feature-row dd { margin-top: 7px; color: var(--ink-soft); font-size: 11px; line-height: 1.85; }
.spouse-relation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; gap: 1px; background: var(--line); }
.spouse-relation-grid > div { min-width: 0; padding: 19px; background: var(--spouse-soft); }
.spouse-relation-grid span { color: var(--spouse-accent); font-size: 10px; font-weight: 900; }
.spouse-relation-grid p { margin-top: 8px; color: var(--ink-soft); font-size: 11px; line-height: 1.85; }
.spouse-compatibility-summary { max-width: 820px; margin-top: 14px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.spouse-compatibility-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spouse-compatibility-grid > div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spouse-compatibility-grid span, .spouse-pillar-highlight span { display: block; color: var(--spouse-accent); font-size: 9px; font-weight: 900; }
.spouse-compatibility-grid strong { display: block; margin-top: 7px; color: var(--ink); font-size: 13px; line-height: 1.7; }
.spouse-compatibility-grid p, .spouse-pillar-highlight p { margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.spouse-pillar-highlight { display: grid; grid-template-columns: 170px 150px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 14px; padding: 16px 18px; background: var(--spouse-soft); border-left: 3px solid var(--spouse-accent); }
.spouse-pillar-highlight strong { font-size: 14px; }
.spouse-pillar-highlight p { margin-top: 0; }
.spouse-compatibility-note { margin-top: 14px; color: #725f51; background: #fff8ed; padding: 12px 14px; font-size: 9px; line-height: 1.7; }
.spouse-timing-list { display: grid; margin-top: 20px; border-top: 1px solid var(--line); }
.spouse-timing-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: start; padding: 17px 0; border-bottom: 1px solid var(--line); }
.spouse-timing-row time { color: var(--spouse-accent); font-size: 15px; line-height: 1.4; font-weight: 900; }
.spouse-timing-row strong { font-size: 11px; }
.spouse-timing-row p { margin-top: 5px; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.spouse-disclaimer { padding: 15px 28px; color: #6b5549; background: #fff8ed; font-size: 9px; line-height: 1.7; }

@media (max-width: 720px) {
  body.spouse-report-open #floatingFortuneGuide { display: none !important; }
  .spouse-report-title { display: grid; gap: 15px; padding: 23px 18px 20px; }
  .spouse-report-title h3 { font-size: 19px; }
  .spouse-copy-button { justify-self: start; }
  .sixty-cycle-picker { display: grid; gap: 14px; padding: 17px 18px; }
  .sixty-cycle-picker label { width: 100%; }
  .spouse-portrait-layout { grid-template-columns: 1fr; }
  .spouse-portrait-figure { display: grid; grid-template-columns: minmax(118px, 42%) minmax(0, 1fr); gap: 15px; align-items: end; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .spouse-portrait-figure figcaption { margin: 0; }
  .spouse-portrait-intro { padding: 23px 18px; }
  .spouse-portrait-intro h4, .spouse-section-heading h4 { font-size: 16px; }
  .spouse-quick-details > div { grid-template-columns: 1fr; gap: 5px; }
  .spouse-feature-band, .spouse-relation-band, .spouse-compatibility-band, .spouse-timing-band { padding: 24px 18px; }
  .spouse-feature-list, .spouse-relation-grid, .spouse-compatibility-grid { grid-template-columns: 1fr; }
  .spouse-pillar-highlight { grid-template-columns: 1fr; gap: 6px; }
  .spouse-timing-row { grid-template-columns: 1fr; gap: 6px; }
  .spouse-disclaimer { padding: 14px 18px; }
}

@media print {
  .spouse-copy-button { display: none !important; }
  .spouse-portrait-layout, .spouse-feature-row, .spouse-relation-grid > div, .spouse-compatibility-grid > div, .spouse-pillar-highlight, .spouse-timing-row { break-inside: avoid; page-break-inside: avoid; }
}
.fortune-preview { display: block; }
.preview-next { display: grid; gap: 2px; padding: 13px 18px; background: #edf5f2; border-top: 1px solid #d2e2dd; }
.preview-next span { color: var(--teal); font-size: 9px; font-weight: 900; }
.preview-next strong { font-size: 11px; line-height: 1.55; }

.compat-answer-card { text-align: left; }
.compat-character-pair { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.compat-character-pair > div { width: 70px; height: 70px; overflow: hidden; background: #e3efec; border: 1px solid #c4d9d3; border-radius: 50%; }
.compat-character-pair > div:last-child { transform: scaleX(-1); }
.compat-character-pair img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.8); }
.compat-character-pair > div:last-child img { transform: scale(1.8); }
.compat-character-pair > span { color: var(--gold); font-size: 20px; font-weight: 900; }
.compat-answer-label { display: block; color: var(--coral); font-size: 10px; font-weight: 900; text-align: center; }
.compat-answer-card > h2 { margin-top: 6px; font-size: 25px; line-height: 1.4; text-align: center; }
.compat-answer-card > p:not(.compat-disclaimer) { max-width: 680px; margin: 10px auto 0; color: var(--ink-soft); font-size: 13px; line-height: 1.75; text-align: center; }
.compat-answer-card > p strong { color: var(--teal); }
.compat-answer-actions { justify-content: center; }
.compat-answer-card > .expandable-insight { margin-top: 16px; }

@media (max-width: 620px) {
  .question-suggestions > div { display: flex; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .question-suggestions > div::-webkit-scrollbar { display: none; }
  .question-suggestions button { min-width: 210px; flex: 0 0 210px; }
  .answer-first-section { padding: 20px 16px; }
  .answer-first-section .section-heading { gap: 8px; }
  .answer-first-section .section-heading h2 { font-size: 21px; }
  .character-message { gap: 9px; }
  .answer-guide-avatar { width: 58px; height: 58px; flex-basis: 58px; }
  .character-message > p { padding: 10px 11px; font-size: 10px; }
  .direct-answer { padding-block: 17px 15px; }
  .direct-answer h3 { font-size: 21px; }
  .direct-answer > p { font-size: 12px; }
  .direct-answer mark { padding: 10px 11px; font-size: 11px; }
  .personalized-answer-detail { grid-template-columns: 1fr; }
  .personalized-answer-detail section { padding: 16px 2px; border-right: 0; border-bottom: 1px solid #b9ced4; }
  .personalized-answer-detail section:last-child { border-bottom: 0; }
  .personalized-answer-detail h4,.question-monthly-flow h4 { font-size: 15px; }
  .personalized-answer-detail p,.question-monthly-flow > div:first-child > p { font-size: 11px; }
  .question-month-strip { margin-right: -16px; }
  .followup-questions { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .followup-questions::-webkit-scrollbar { display: none; }
  .followup-questions button { min-width: 190px; flex: 0 0 190px; text-align: left; }
  .overview-disclosure { margin-inline: 16px; }
  .quick-narrative { padding: 18px 16px; }
  .quick-narrative p { font-size: 12px; line-height: 1.85; }
  .year-outlook.year-outlook-narrative { display: grid; overflow: visible; }
  .year-outlook-narrative .year-outlook-card { min-width: 0; grid-template-columns: 1fr; gap: 8px; padding: 17px 16px; border-right: 0; }
  .technical-disclosure > summary { align-items: flex-start; flex-direction: column; gap: 2px; }
  .technical-disclosure > summary small { text-align: left; }
  .technical-disclosure-body { padding: 13px; }
  .term-inline > p { right: -4px; }
  .compat-answer-card > h2 { font-size: 21px; }
  .compat-answer-card > p:not(.compat-disclaimer) { font-size: 11px; }
}

/* 오른쪽 고정 메뉴가 결과 본문을 덮지 않도록 마지막 레이아웃 규칙으로 확정 */
@media (min-width: 821px) and (max-width: 1180px) {
  body:not(.charm-panel-open):has(#result:not([hidden])) main { width: calc(100% - 300px); margin-right: 190px; margin-left: 110px; }
}
@media (min-width: 1181px) and (max-width: 1640px) {
  body:not(.charm-panel-open):has(#result:not([hidden])) main { width: min(1060px,calc(100% - 590px)); margin-right: 200px; margin-left: 370px; }
}

/* v59 · 상단 풀이 난이도 선택 */
@media (max-width: 620px) {
  #notificationBtn { width: auto; min-width: 48px; padding-inline: 7px; }
  #notificationBtn .header-action-label { display: inline; }
}
@media (max-width: 350px) {
  .site-header { padding-inline: 8px; }
  .site-logo { display: none; }
  .library-button { width: 34px; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
  .library-button span { margin: 0; color: var(--teal); font-size: 15px; }
}
