:root {
      --purple: #6A4CF0;
      --purple-dark: #5639D6;
      --ink: #292638;
      --sub: #777486;
      --muted: #A5A2AF;
      --line: #F0EEF5;
      --lav: #F1EDFF;
      --pink: #FFE8EE;
      --yellow: #FFF3D6;
      --mint: #DFF3E6;
      --sky: #EEF4FF;
      --beige: #F6EFE4;
      --white: #FFFFFF;
      --radius: 24px;
      --max: 900px;
    }
* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
html {
      scroll-behavior: smooth;
      scroll-padding-top: 85px;
    }
body {
      font-family: Pretendard, -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
      color: var(--ink);
      background: var(--white);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      word-break: keep-all;
    }
a {
      color: inherit;
      text-decoration: none;
    }
button, input {
      font: inherit;
    }
img {
      display: block;
      max-width: 100%;
    }
.wrap {
      width: min(100% - 40px, var(--max));
      margin: 0 auto;
    }
.header {
      height: 66px;
      display: flex;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255,255,255,.96);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(12px);
    }
.header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
.logo {
      font-size: 21px;
      font-weight: 900;
      letter-spacing: -1px;
    }
.logo span {
      color: var(--purple);
    }
.nav {
      display: flex;
      align-items: center;
      gap: 21px;
      color: var(--sub);
      font-size: 13px;
      font-weight: 650;
    }
.nav a:hover,
    .text-link:hover {
      color: var(--purple);
    }
.nav .nav-cta {
      color: var(--purple);
      background: var(--lav);
      border-radius: 999px;
      padding: 8px 13px;
    }
main {
      padding-bottom: 70px;
    }
.breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
      padding: 23px 0 18px;
      font-size: 12px;
      color: var(--muted);
    }
.breadcrumb a:hover {
      color: var(--purple);
    }
.breadcrumb .current {
      color: var(--sub);
      font-weight: 700;
    }
.page-head {
      padding: 16px 0 25px;
    }
.eyebrow {
      display: inline-flex;
      align-items: center;
      color: var(--purple);
      background: var(--lav);
      padding: 6px 11px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      margin-bottom: 13px;
    }
h1 {
      font-size: clamp(27px, 5vw, 38px);
      line-height: 1.3;
      letter-spacing: -1.3px;
      font-weight: 900;
    }
.page-sub {
      color: var(--sub);
      font-size: 14px;
      margin-top: 10px;
    }
.badge-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 17px;
    }
.badge {
      display: inline-flex;
      align-items: center;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
    }
.badge.good {
      color: #258653;
      background: #E3F7EA;
    }
.badge.bad {
      color: #C64D63;
      background: #FFE8EE;
    }
.badge.normal {
      color: #806A35;
      background: #FFF3D6;
    }
.badge.caution {
      color: #6A4CF0;
      background: #F1EDFF;
    }
.badge.category {
      color: #5C6E9C;
      background: #EEF4FF;
    }
.summary-card {
      padding: 23px;
      border-radius: var(--radius);
      background: var(--lav);
      margin: 10px 0 28px;
    }
.summary-card h2 {
      font-size: 17px;
      font-weight: 850;
      margin-bottom: 8px;
    }
.summary-card p {
      color: #57516B;
      font-size: 15px;
      line-height: 1.85;
    }
.section-title {
      font-size: 21px;
      letter-spacing: -.6px;
      font-weight: 850;
      margin: 36px 0 15px;
    }
.toc {
      padding: 21px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
    }
.toc h2 {
      font-size: 16px;
      margin-bottom: 13px;
      font-weight: 850;
    }
.toc-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 9px 18px;
      list-style: none;
    }
.toc-list a {
      display: block;
      color: var(--sub);
      font-size: 13px;
      padding: 5px 0;
    }
.toc-list a:hover {
      color: var(--purple);
    }
.toc-list a::before {
      content: "↗";
      color: var(--purple);
      margin-right: 7px;
    }
.dream-list {
      display: grid;
      gap: 13px;
    }
.dream-card {
      padding: 22px;
      border-radius: var(--radius);
      background: #FAF9FD;
      scroll-margin-top: 85px;
    }
.dream-card h2 {
      font-size: 18px;
      font-weight: 850;
      letter-spacing: -.4px;
      margin-bottom: 8px;
    }
.dream-card p {
      color: #5F5B6D;
      font-size: 14px;
      line-height: 1.85;
    }
.dream-number {
      display: inline-block;
      color: var(--purple);
      background: var(--lav);
      padding: 3px 8px;
      border-radius: 7px;
      font-size: 11px;
      font-weight: 850;
      margin-right: 7px;
      vertical-align: 2px;
    }
.ad-slot {
      min-height: 100px;
      margin: 25px 0;
      border: 1px dashed #DDD9E9;
      border-radius: 18px;
      background: #FCFBFE;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #B0ACBB;
      font-size: 11px;
    }
.related-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
.related-link {
      padding: 13px 12px;
      border-radius: 15px;
      background: var(--sky);
      color: #535E7D;
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      transition: background .2s;
    }
.related-link:hover {
      background: var(--lav);
      color: var(--purple);
    }
.app-card {
      margin-top: 38px;
      padding: 23px;
      border-radius: 25px;
      background: var(--lav);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
    }
.app-card h2 {
      font-size: 19px;
      font-weight: 850;
      line-height: 1.4;
    }
.app-card p {
      color: var(--sub);
      font-size: 13px;
      margin-top: 6px;
    }
.app-card img {
      width: 105px;
      height: 105px;
      object-fit: contain;
      flex-shrink: 0;
    }
.app-button {
      display: inline-flex;
      margin-top: 13px;
      padding: 9px 14px;
      background: var(--purple);
      color: #fff;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 800;
    }
.search-box {
      margin-top: 38px;
      padding: 23px;
      border-radius: var(--radius);
      background: var(--beige);
    }
.search-box h2 {
      font-size: 18px;
      font-weight: 850;
      margin-bottom: 12px;
    }
.search-form {
      display: flex;
      gap: 8px;
    }
.search-form input {
      width: 100%;
      min-width: 0;
      height: 49px;
      padding: 0 15px;
      border: 1px solid #E8E1D6;
      border-radius: 13px;
      outline: none;
      background: #fff;
      color: var(--ink);
      font-size: 14px;
    }
.search-form input:focus {
      border-color: var(--purple);
    }
.search-form button {
      flex-shrink: 0;
      border: 0;
      border-radius: 13px;
      background: var(--purple);
      color: #fff;
      padding: 0 19px;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }
footer {
      border-top: 1px solid var(--line);
      padding: 28px 0 calc(30px + env(safe-area-inset-bottom));
      color: var(--muted);
      font-size: 12px;
    }
.footer-inner {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 15px;
    }
.footer-logo {
      color: var(--ink);
      font-size: 17px;
      font-weight: 900;
      margin-bottom: 5px;
    }
.footer-links {
      display: flex;
      gap: 16px;
      color: var(--sub);
    }
.footer-bottom {
      border-top: 1px solid var(--line);
      margin-top: 19px;
      padding-top: 15px;
    }
@media (max-width: 650px) {
      .wrap {
        width: calc(100% - 36px);
      }

      .header {
        height: 60px;
      }

      .nav {
        gap: 10px;
        font-size: 11px;
      }

      .nav a:nth-child(4),
      .nav a:nth-child(5) {
        display: none;
      }

      .breadcrumb {
        padding-top: 17px;
        font-size: 11px;
      }

      .summary-card {
        padding: 19px;
      }

      .summary-card p {
        font-size: 14px;
      }

      .toc {
        padding: 18px;
      }

      .toc-list {
        grid-template-columns: 1fr;
        gap: 5px;
      }

      .dream-card {
        padding: 19px;
      }

      .dream-card h2 {
        font-size: 17px;
      }

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

      .app-card {
        padding: 19px;
      }

      .app-card img {
        width: 83px;
        height: 83px;
      }

      .search-box {
        padding: 19px;
      }
    }
@media (max-width: 360px) {
      .wrap {
        width: calc(100% - 28px);
      }

      .logo {
        font-size: 19px;
      }

      .nav {
        gap: 8px;
      }

      .app-card h2 {
        font-size: 17px;
      }
    }
@media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }
    }
/* ── 목록(허브) 페이지 ── */
.page-head {
      padding: 16px 0 26px;
    }
h1 {
      font-size: clamp(28px, 5vw, 39px);
      line-height: 1.3;
      letter-spacing: -1.3px;
      font-weight: 900;
    }
.page-desc {
      color: var(--sub);
      font-size: 14px;
      margin-top: 12px;
      line-height: 1.8;
    }
.search-panel {
      background: var(--lav);
      border-radius: var(--radius);
      padding: 23px;
      margin: 10px 0 34px;
    }
.search-panel h2 {
      font-size: 18px;
      font-weight: 850;
      margin-bottom: 5px;
    }
.search-panel p {
      font-size: 13px;
      color: var(--sub);
      margin-bottom: 14px;
    }
.search-form input {
      width: 100%;
      min-width: 0;
      height: 52px;
      padding: 0 16px;
      border: 1px solid #E4DDFB;
      border-radius: 14px;
      outline: none;
      background: #fff;
      color: var(--ink);
      font-size: 14px;
    }
.search-form button {
      flex-shrink: 0;
      border: 0;
      border-radius: 14px;
      background: var(--purple);
      color: #fff;
      padding: 0 21px;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }
.search-status {
      min-height: 22px;
      margin-top: 12px;
      font-size: 12px;
      color: var(--sub);
    }
.search-results {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 9px;
      margin-top: 10px;
    }
.search-result {
      display: block;
      padding: 12px 14px;
      border-radius: 13px;
      background: #fff;
      font-size: 13px;
      font-weight: 750;
      border: 1px solid var(--line);
    }
.search-result:hover {
      color: var(--purple);
      border-color: #D6CCFF;
    }
.search-result small {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 500;
      margin-top: 2px;
    }
.popular {
      margin: 35px 0 43px;
    }
.section-title {
      font-size: 21px;
      font-weight: 850;
      letter-spacing: -.6px;
      margin-bottom: 16px;
    }
.chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }
.chip {
      display: inline-flex;
      align-items: center;
      padding: 9px 15px;
      border-radius: 999px;
      background: var(--sky);
      color: #56627F;
      font-size: 13px;
      font-weight: 750;
      transition: background .2s, color .2s;
    }
.chip:nth-child(3n+2) {
      background: var(--pink);
      color: #98616F;
    }
.chip:nth-child(3n) {
      background: var(--lav);
      color: #6A4CF0;
    }
.chip:hover {
      background: var(--purple);
      color: #fff;
    }
.category-section {
      margin-top: 38px;
    }
.category-head {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 14px;
    }
.category-mark {
      width: 38px;
      height: 38px;
      border-radius: 13px;
      display: grid;
      place-items: center;
      font-size: 18px;
      flex-shrink: 0;
    }
.mark-money { background: var(--yellow); }
.mark-love { background: var(--pink); }
.mark-health { background: var(--mint); }
.mark-work { background: var(--sky); }
.mark-family { background: var(--beige); }
.mark-mind { background: var(--lav); }
.mark-baby { background: #FFF0F6; }
.category-head h2 {
      font-size: 19px;
      font-weight: 850;
    }
.category-head p {
      color: var(--muted);
      font-size: 12px;
    }
.dream-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
.dream-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 54px;
      padding: 12px 15px;
      border-radius: 15px;
      background: #FAF9FD;
      color: #555165;
      font-size: 13px;
      font-weight: 700;
      transition: background .2s, color .2s;
    }
.dream-link::after {
      content: "›";
      color: #B4AEC5;
      font-size: 19px;
    }
.dream-link:hover {
      color: var(--purple);
      background: var(--lav);
    }
.app-card {
      margin-top: 52px;
      padding: 23px;
      border-radius: 25px;
      background: var(--lav);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px;
    }
@media (max-width: 650px) {
      .wrap {
        width: calc(100% - 36px);
      }

      .header {
        height: 60px;
      }

      .nav {
        gap: 10px;
        font-size: 11px;
      }

      .nav a:nth-child(4),
      .nav a:nth-child(5) {
        display: none;
      }

      .breadcrumb {
        padding-top: 17px;
        font-size: 11px;
      }

      .search-panel {
        padding: 19px;
      }

      .search-results {
        grid-template-columns: 1fr;
      }

      .dream-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .dream-link {
        padding: 11px 12px;
        font-size: 12px;
      }

      .app-card {
        padding: 19px;
      }

      .app-card img {
        width: 83px;
        height: 83px;
      }
    }
/* ── build.py 가 추가로 쓰는 것 (일주·타로·궁합 페이지) ── */
.synonyms { margin: 16px 2px 0; color: var(--sub); font-size: 13px; }
.note-box { margin: 20px 0; padding: 16px 18px; border-radius: 18px; background: var(--sky); color: #535E7D; font-size: 13px; }
.past-life-card { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--beige); margin-bottom: 13px; }
.past-life-card img { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; flex-shrink: 0; }
.past-life-card h3 { font-size: 18px; font-weight: 850; margin-bottom: 6px; }
.past-life-card p { color: #5F5B6D; font-size: 14px; line-height: 1.85; }
.tarot-hero { display: flex; justify-content: center; margin: 6px 0 10px; }
.tarot-hero img { width: 200px; height: auto; border-radius: 16px; }
.prev-next { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; font-size: 14px; font-weight: 700; color: var(--purple); }
.prev-next a { padding: 12px 16px; border-radius: 14px; background: var(--lav); }
.more-link { display: inline-block; margin-top: 12px; color: var(--purple); font-size: 13px; font-weight: 800; }
.text-link { color: var(--purple); font-weight: 700; }
.ad-slot:empty { min-height: 0; border: 0; margin: 0; }
@media (max-width: 650px) {
  .past-life-card { flex-direction: column; text-align: left; }
  .past-life-card img { width: 140px; height: 140px; }
}

.char-hero { display: flex; justify-content: center; margin: 2px 0 8px; }
.char-hero img { width: 150px; height: 150px; }
