/* 스미스 운명 연구소 테마 — style.css·posts.css 뒤에 덮어씀. 맨 아래 "destiny" 블록이 최종 디자인이에요 */
:root {
  color-scheme: light;
  --bg: #F7F4EF;
  --bg-2: #EEE9F4;
  --panel: #ffffff;
  --line: #E2DCEB;
  --text: #1E1B33;
  --muted: #6E6880;
  --accent: #6A4BC4;
  --accent-2: #B8892E;
  --accent-3: #C9A24A;
  --on-accent: #ffffff;
  --radius: 20px;
  --display: 'Jua', 'Gowun Dodum', sans-serif;
  --body: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
}
body { font-family: var(--body); background-size: auto; background-position: 0 0; background-image: radial-gradient(rgba(226,102,142,.16) 2px, transparent 2.5px), radial-gradient(rgba(63,167,157,.14) 2px, transparent 2.5px); background-size: 36px 36px; background-position: 0 0, 18px 18px; }
body::before { background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--bg) 75%); }
h1, h2, h3, .logo, .tool-head h1, .post-head h1 { font-family: var(--display); }
.chip.on, .btn.primary, .seg input:checked + span, .game-seg button.on, .dpad button:active, .sn-links a.on, .sv-opt.on, .sv-tcard .sv-done, .post-cat:hover, ::selection { color: var(--on-accent) !important; }
.sv-opt.on .k { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.logo .site-tag { margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); letter-spacing: 0; font-family: var(--body); }
.site-hero { margin: 28px 0 8px; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #EFE9FB, #F6EFDC); color: #1E1B33; border: 2px dashed #f2b6c8; }
.site-hero .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.site-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.site-hero p { margin: 0; max-width: 640px; opacity: .92; }
.site-hero .hero-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.site-hero .hero-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #6A4BC4; color: #fff; box-shadow: 0 3px 0 #5B3FB0; }
.site-hero .hero-links a:hover { text-decoration: none; filter: brightness(1.08); }
.latest-posts { margin: 28px 0; }
.latest-posts ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.latest-posts li a { display: block; height: 100%; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.latest-posts li a:hover { border-color: var(--accent); text-decoration: none; }
.latest-posts time { display: block; font-size: 11.5px; color: var(--muted); }
.latest-posts b { display: block; margin: 4px 0; line-height: 1.4; }
.latest-posts span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-posts .all { display: inline-block; margin-top: 12px; font-weight: 700; }
.ad-kakao, .ad-pair, .ad-rail, ins.adsbygoogle { display: none !important; }  /* 원본 사이트 광고 단위는 숨김 */
.sn-cat-home { display: block; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.card { box-shadow: 0 4px 0 #E2DCEB; } .btn, .chip { border-radius: 999px; }

/* 브랜드 로고·패밀리 사이트 */
.logo .brand-name { font-family: var(--display); font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 480px) { .logo .brand-name { font-size: 16px; } }
.logo-img { border-radius: 8px; }
.family { margin: 40px 0 24px; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fam-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.fam-card:hover { border-color: var(--accent); text-decoration: none; }
.fam-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fam-card .fam-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.fam-card b { display: block; font-size: 14px; line-height: 1.2; }
.fam-card small { display: block; font-size: 11.5px; color: var(--muted); }
.fam-card > span + b { margin-right: auto; }
.fam-card { flex-wrap: wrap; } .fam-card b, .fam-card small { flex-basis: calc(100% - 40px); margin-left: 0; }

/* ===== 육아 전문 사이트 개편 (2026-11-09, scripts/build.py) ===== */
:root { --pink: #6A4BC4; --mint: #B8892E; --butter: #F0D58C; --peach: #F3EAF6; --rose: #EFE9FB; --sky: #F6EFDC; }
.nav-links a { font-family: var(--display); font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.nav-links a:hover { background: var(--rose); text-decoration: none; }
@media (max-width: 640px) { .nav-links a { font-size: 13px; padding: 5px 7px; } .nav-links { gap: 0; } }

/* 홈 히어로 */
.baby-hero { display: grid; grid-template-columns: 1fr 240px; gap: 20px; align-items: center; margin: 24px 0 12px; padding: 30px 28px;
  border-radius: 28px; background: linear-gradient(135deg, var(--rose) 0%, #FBF3E2 55%, var(--sky) 100%); border: 2px solid #D9CDF2; }
.baby-hero h1 { font-family: var(--display); font-size: clamp(26px, 4.6vw, 40px); line-height: 1.25; margin: 10px 0 12px; color: #1E1B33; }
.baby-hero p { margin: 0 0 18px; color: #4F4A66; line-height: 1.75; max-width: 600px; }
.hero-art { width: 100%; height: auto; }
.bb-kind { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #D9CDF2; font-size: 13px; font-weight: 700; color: var(--pink); }
.age-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.age-chip { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #D9CDF2; color: #1E1B33; box-shadow: 0 3px 0 #D9CDF2; transition: transform .12s; }
.age-chip:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--pink); }
.age-chip b { font-family: var(--display); font-size: 17px; font-weight: 400; }
.age-chip small { font-size: 12px; color: var(--muted); }
.age-chip.soon { opacity: .55; box-shadow: none; border-style: dashed; }
@media (max-width: 720px) { .baby-hero { grid-template-columns: 1fr; padding: 22px 18px; } .hero-art { display: none; } .age-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-sec { padding: 28px 0 8px; }
.home-sec .section-head h2 { font-family: var(--display); font-weight: 400; }

/* BEST10 카드 */
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.bb-card { position: relative; display: block; padding: 18px 18px 16px; border-radius: 22px; background: var(--panel); border: 2px solid var(--line); color: var(--text); box-shadow: 0 4px 0 var(--line); }
.bb-card:hover { border-color: var(--pink); text-decoration: none; transform: translateY(-2px); }
.bb-card-age { position: absolute; right: 14px; top: 14px; padding: 3px 10px; border-radius: 999px; background: var(--sky); color: var(--mint); font-size: 12px; font-weight: 700; }
.bb-card-emoji { font-size: 34px; line-height: 1; }
.bb-card h3 { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 10px 0 6px; }
.bb-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.bb-card ol { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.bb-card li { font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.bb-card li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--butter); color: #5a4310; }
.bb-card li:first-child b { background: var(--pink); color: #fff; }
.bb-card .arrow { position: absolute; right: 16px; bottom: 14px; color: var(--muted); }

/* BEST10 상세 */
.bb-hero { margin: 18px 0 16px; padding: 26px 24px; border-radius: 26px; background: linear-gradient(135deg, var(--rose), #FBF3E2 60%, var(--sky)); border: 2px solid #D9CDF2; }
.bb-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.25; margin: 12px 0 8px; }
.bb-lead { color: #4F4A66; line-height: 1.75; margin: 0 0 8px; max-width: 760px; }
.bb-hero .post-meta { margin-top: 10px; }
.bb-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.bb-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.bb-jump a b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); font-size: 12px; color: #5a4310; }
.bb-jump a:hover { border-color: var(--pink); text-decoration: none; }
.bb-crit { padding-left: 18px; } .bb-crit small { color: var(--muted); }
.bb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .bb-table th, .bb-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.bb-table td:nth-child(2), .bb-table th:nth-child(2) { text-align: left; }
.bb-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 16px; }
.bb-item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 20px 18px; border-radius: 22px; background: var(--panel); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); scroll-margin-top: 80px; }
.bb-item:nth-child(1) { border-color: #f6a5bf; } .bb-item:nth-child(2), .bb-item:nth-child(3) { border-color: #F0D58C; }
.bb-rank { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; background: var(--butter); color: #5a4310; }
.bb-item:nth-child(1) .bb-rank { background: var(--pink); color: #fff; }
.bb-rank b { font-family: var(--display); font-size: 26px; font-weight: 400; line-height: 1; } .bb-rank span { font-size: 11px; }
.bb-main h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 2px 0 8px; display: flex; gap: 8px; align-items: center; }
.post-body .bb-main h3 { margin-top: 2px; }
.bb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bb-meta span { padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-size: 12px; color: #4F4A66; }
.bb-main > p { margin: 0 0 10px; line-height: 1.8; }
.bb-how { margin: 0 0 10px; padding-left: 20px; } .bb-how li { margin: 4px 0; line-height: 1.7; }
.bb-tip, .bb-safe { margin: 8px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.bb-tip { background: #fff7e0; } .bb-safe { background: #ffecef; }
.bb-score { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bb-total { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--pink); white-space: nowrap; } .bb-total small { font-size: 14px; margin-left: 2px; }
.bb-score ul { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 4px; }
.bb-score li { display: grid; grid-template-columns: 92px 1fr 16px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 0; }
.bb-score i { display: block; height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--mint) calc(var(--v) * 20%), var(--bg-2) 0); }
.bb-score li b { color: var(--text); }
@media (max-width: 560px) { .bb-item { grid-template-columns: 1fr; padding: 16px 14px; } .bb-rank { flex-direction: row; gap: 2px; width: auto; height: auto; padding: 4px 12px; justify-self: start; } .bb-rank b { font-size: 20px; } .bb-score { flex-direction: column; align-items: stretch; gap: 6px; } }
.bb-faq { margin: 28px 0; } .bb-faq h2 { font-family: var(--display); font-weight: 400; }
.bb-faq details { margin: 8px 0; padding: 12px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.bb-faq summary { cursor: pointer; font-weight: 700; } .bb-faq details p { margin: 8px 0 0; line-height: 1.75; }
.bb-sib { margin: 26px 0; } .bb-sib div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bb-sib a { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.bb-sib a:hover { border-color: var(--pink); text-decoration: none; }
.bb-hub .bb-lead { font-size: 15px; }
footer a { color: inherit; }
@media (max-width: 480px) {
  .nav .logo .brand-name { font-size: 15px; }
  .nav-links { gap: 0; } .nav-links a { font-size: 12px; padding: 4px 5px; }
}
@media (max-width: 360px) { .nav .logo .brand-name { display: none; } }
@media (max-width: 640px) { .nav-links > a:not(.lang-switch):not(:first-child) { display: inline-flex; } }
.nav-links a { white-space: nowrap; }
@media (max-width: 420px) { .nav .logo .brand-name { display: none; } .nav-links { margin-left: auto; } .nav-links a { font-size: 13px; padding: 5px 6px; } }
@media (max-width: 420px) {
  .nav .wrap { gap: 6px; }
  .nav-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 12px; padding: 4px 3px; }
}
.hero-art { max-width: 240px; justify-self: center; }
.bb-kind { display: inline-flex; align-items: center; gap: 6px; }
.kind-face { width: 22px; height: 22px; border-radius: 6px; }
@media (min-width: 721px) { .age-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; } }
/* 사진·영상 (scripts/photo.py · scripts/video.py) */
.bb-main .post-fig { margin: 4px 0 12px; }
.bb-main .post-fig img { border-radius: 16px; max-height: 320px; object-fit: cover; width: 100%; }
figure.video { margin: 18px 0; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 2px solid var(--line); }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: #6A4BC4; color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 0 #5B3FB0; }
.yt:hover .yt-play { filter: brightness(1.08); }
figure.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; display: block; }
figure.video figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
figure.video .credit { display: block; font-size: 12px; }
.page-media { margin: 28px auto; } .page-media h2 { font-family: var(--display); font-weight: 400; font-size: 22px; }
.page-media .post-fig img { border-radius: 16px; width: 100%; }
/* 허브 묶음 (테스트·조사) */
.grp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.grp-chip { padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 2px solid var(--line); color: var(--text); font-size: 14px; font-weight: 700; }
.grp-chip em { font-style: normal; color: var(--pink); margin-left: 2px; }
.grp-chip:hover { border-color: var(--pink); text-decoration: none; }
.grp { padding: 22px 0 6px; scroll-margin-top: 80px; }
.grp-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px dashed var(--line); }
.grp-h span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--rose); font-size: 20px; }
.grp-h em { font-style: normal; font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: auto; }
/* 아기랑 가볼 곳 지도 (assets/js/places-map.js) */
.hp-map { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 24px; background: linear-gradient(135deg, var(--sky), #FBF3E2); border: 2px solid #EADBB2; color: var(--text); margin: 8px 0 12px; }
.hp-map:hover { text-decoration: none; border-color: var(--mint); }
.hp-map b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; margin-bottom: 4px; } .hp-map span { color: #4F4A66; font-size: 14px; }
.hp-map i { font-style: normal; font-weight: 700; color: #8A6A1F; white-space: nowrap; }
@media (max-width: 560px) { .hp-map { grid-template-columns: 70px 1fr; } .hp-map img { width: 70px; height: auto; } .hp-map i { grid-column: 1 / -1; } }
.hp-top { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; counter-reset: hp; }
.hp-top li a { display: block; padding: 10px 14px 10px 44px; position: relative; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.hp-top li a::before { counter-increment: hp; content: counter(hp); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.hp-top li a:hover { border-color: var(--pink); text-decoration: none; } .hp-top b { display: block; } .hp-top span { font-size: 12px; color: var(--muted); }
.pl-banner { margin-top: 16px; }
/* 📅 육아 일정 (assets/js/schedule.js) */
.hp-ev { background: linear-gradient(135deg, var(--rose), #FBF3E2); border-color: #D9CDF2; grid-template-columns: 90px 1fr auto; }
.hp-ev i { color: var(--pink); }
.ev-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.ev-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.ev-form input { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--text); }
.ev-form input:focus { outline: none; border-color: var(--pink); }
button.grp-chip { font: inherit; cursor: pointer; } .grp-chip.on { border-color: var(--pink); background: var(--rose); }
.ev-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.ev-tools button { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--panel); cursor: pointer; color: var(--text); }
#ev-ics { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 0 3px 0 #5B3FB0; }
.ev-who { font-family: var(--display); font-size: 22px; margin: 16px 0 4px; }
.ev-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--panel); border: 2px dashed var(--line); border-radius: 20px; }
.ev-sec { margin: 18px 0; } .ev-sec h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 10px; } .ev-sec h2 em { font-style: normal; color: var(--pink); font-size: 16px; }
.ev-sec.hot { padding: 14px; border-radius: 22px; background: #fff0f4; border: 2px solid #D9CDF2; }
.ev-sec.warn { padding: 14px; border-radius: 22px; background: #fff7e0; border: 2px solid #f3dfa6; }
.ev-age { font-size: 15px; color: var(--muted); margin: 16px 0 6px; }
.ev-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ev-item { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ev-item.past { opacity: .7; } .ev-item.done { opacity: .5; } .ev-item.done b { text-decoration: line-through; }
.ev-item.now { border-color: var(--pink); }
.ev-chk input { width: 22px; height: 22px; accent-color: var(--pink); margin-top: 2px; }
.ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .ev-top b { font-size: 15.5px; } .ev-ic { font-size: 18px; }
.ev-tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ev-tag.now { background: var(--pink); color: #fff; } .ev-tag.late { background: #F0D58C; color: #5a4310; } .ev-tag.free { background: var(--sky); color: #8A6A1F; }
.ev-when { font-size: 13.5px; margin-top: 2px; } .ev-when small { color: var(--muted); }
.ev-body p { margin: 4px 0 0; font-size: 13px; color: #4F4A66; line-height: 1.6; } .ev-body a { font-size: 12.5px; }
.ev-camps ul { list-style: none; padding: 0; display: grid; gap: 8px; } .ev-camps h2 { font-family: var(--display); font-weight: 400; }
.ev-camps li { padding: 14px; border-radius: 16px; background: var(--sky); border: 1px solid #EADBB2; } .ev-camps li b { display: block; } .ev-camps li span { font-size: 13px; color: #8A6A1F; }
.ev-camps li p { margin: 4px 0; font-size: 13px; }
.ev-table small { color: #8A6A1F; font-weight: 700; margin-left: 4px; }
details.ev-sec.warn summary { cursor: pointer; list-style: none; } details.ev-sec.warn summary::-webkit-details-marker { display: none; }
details.ev-sec.warn summary b { font-family: var(--display); font-weight: 400; font-size: 19px; }
details.ev-sec.warn[open] summary { margin-bottom: 8px; }
.ev-hint { font-size: 13px; color: #5a4310; margin: 6px 0; }
#ev-alldone { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 2px solid #f3dfa6; background: #fff; cursor: pointer; margin: 4px 0 10px; }

/* ===== 아기랑 가볼 곳 지도 (assets/js/places-map.js · build.py places_app) — 2026-11-09 개편 ===== */
.pl-app, .pl-mapwrap { --pl-ink: #1E1B33; --pl-sub: #6E6880; --pl-card: #fff; --pl-soft: #F6F3F8; --pl-edge: rgba(80,40,60,.10); --pl-sh: 0 1px 2px rgba(60,30,45,.06), 0 8px 24px rgba(60,30,45,.08); --pl-me: #2563eb; color: #1E1B33; }
.pl-app { margin: 14px 0 28px; }
.pl-controls { display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: var(--pl-card); border: 1px solid var(--pl-edge); box-shadow: var(--pl-sh); }
.pl-search { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-radius: 16px; background: var(--pl-soft); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.pl-search:focus-within { border-color: var(--pink); background: #fff; }
.pl-search svg { flex: none; color: var(--pl-sub); }
.pl-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 0; border: 0; background: none; color: var(--pl-ink); outline: none; }
.pl-search select { flex: none; font: inherit; font-size: 14px; font-weight: 700; padding: 9px 30px 9px 12px; border-radius: 12px; border: 1px solid var(--pl-edge); color: var(--pl-ink); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237b6d78' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center; -webkit-appearance: none; appearance: none; }
.pl-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-row2 { flex-wrap: wrap; gap: 12px 22px; }
.pl-grp { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.pl-lbl { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--pl-sub); width: 30px; }
.pl-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pl-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 18px; }
.pl-scroll::-webkit-scrollbar { display: none; }
.pl-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--pl-edge); background: #fff; color: var(--pl-ink); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.pl-chip i { font-style: normal; font-size: 15px; line-height: 1; }
.pl-chip:hover { border-color: rgba(226,102,142,.45); }
.pl-chip:active { transform: scale(.96); }
.pl-chip.on { background: var(--pl-ink); border-color: var(--pl-ink); color: #fff; }
.pl-tog.on { background: var(--rose); border-color: var(--pink); color: #4E35A0; }
.pl-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--pl-soft); border: 1px solid var(--pl-edge); }
.pl-seg button { font: inherit; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--pl-sub); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.pl-seg button.on { background: #fff; color: var(--pl-ink); box-shadow: 0 1px 3px rgba(60,30,45,.15); }
.pl-seg button:disabled { opacity: .4; cursor: not-allowed; }

/* 지도 */
.pl-mapwrap { position: relative; margin: 14px 0 0; border-radius: 26px; overflow: hidden; box-shadow: var(--pl-sh); border: 1px solid var(--pl-edge); isolation: isolate; }
.pl-map { height: clamp(520px, 74vh, 860px); background: #eef1ee; z-index: 1; }
.pl-map .leaflet-tile-pane { filter: saturate(.78) brightness(1.03) contrast(.97); }
.pl-map.leaflet-container { font-family: var(--body); }
.pl-mapwrap.full { position: fixed; inset: 0; z-index: 9999; margin: 0; border-radius: 0; border: 0; }
.pl-mapwrap.full .pl-map { height: 100vh; height: 100dvh; }
html.pl-noscroll, html.pl-noscroll body { overflow: hidden; }
.pl-map.picking, .pl-map.picking .leaflet-interactive { cursor: crosshair; }
.pl-map .leaflet-control-zoom { border: 0 !important; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(30,20,30,.18) !important; }
.pl-map .leaflet-control-zoom a { width: 44px !important; height: 40px !important; line-height: 40px !important; font-size: 20px; color: var(--pl-ink); border-color: #f0eaee !important; }
.pl-map .leaflet-bottom.leaflet-right { bottom: 0; }
.pl-mapwrap .leaflet-bottom { margin-bottom: 0; }
.pl-mapwrap:has(.pl-strip:not([hidden])) .leaflet-bottom { bottom: 104px; }
.pl-mapbtns { display: grid; gap: 8px; justify-items: end; }
.pl-mapbtns button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: #fff; color: var(--pl-ink); cursor: pointer; box-shadow: 0 2px 10px rgba(30,20,30,.18); transition: transform .1s, background .15s; }
.pl-mapbtns button:active { transform: scale(.94); }
.pl-mapbtns button.on { background: var(--pl-ink); color: #fff; }
.pl-mapbtns .pl-locbtn { display: inline-flex; width: auto; height: 52px; padding: 0 18px 0 14px; gap: 8px; border-radius: 999px; color: var(--pl-me); font: inherit; font-size: 15px; font-weight: 800; box-shadow: 0 4px 16px rgba(37,99,235,.28), 0 1px 3px rgba(0,0,0,.12); }
.pl-mapbtns .pl-locbtn em { font-style: normal; }
.pl-mapbtns .pl-locbtn.on { background: var(--pl-me); color: #fff; }
body:has(.pl-app.locating) .pl-locbtn svg { animation: pl-spin 1.1s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* 반경 (지도 왼쪽 위) */
.pl-radius { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(30,20,30,.16); max-width: calc(100vw - 40px); overflow-x: auto; scrollbar-width: none; }
.pl-radius[hidden] { display: none; }
.pl-radius::-webkit-scrollbar { display: none; }
.pl-radius span { flex: none; font-size: 12.5px; font-weight: 800; color: var(--pl-me); padding: 0 8px 0 10px; white-space: nowrap; }
.pl-radius button { flex: none; font: inherit; font-size: 13px; font-weight: 700; padding: 7px 11px; border: 0; border-radius: 999px; background: none; color: var(--pl-sub); cursor: pointer; }
.pl-radius button.on { background: var(--pl-me); color: #fff; }

/* 지도 위 안내 */
.pl-float { position: absolute; z-index: 1000; left: 50%; transform: translateX(-50%); top: 64px; margin: 0; max-width: min(560px, calc(100% - 32px)); width: max-content; box-sizing: border-box;
  padding: 10px 40px 10px 16px; border-radius: 16px; background: rgba(43,34,48,.92); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.5; box-shadow: 0 6px 20px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pl-float[hidden] { display: none; }
.pl-picktip { background: var(--pl-me); padding-right: 16px; top: 14px; }
.pl-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; cursor: pointer; }

/* 내 위치 마커 — 파란 점 + 퍼지는 물결 + 이름표 */
.pl-me { position: relative; }
.pl-me span { position: absolute; inset: 0; border-radius: 50%; background: var(--pl-me, #2563eb); border: 4px solid #fff; box-sizing: border-box; box-shadow: 0 2px 8px rgba(37,99,235,.55), 0 0 0 1px rgba(0,0,0,.06); z-index: 2; }
.pl-me i { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(37,99,235,.35); animation: pl-wave 2s ease-out infinite; z-index: 1; }
.pl-me b { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 5px 11px; border-radius: 999px; background: #1e3a8a; color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 12px rgba(30,58,138,.4); letter-spacing: -.01em; z-index: 3; }
.pl-me b::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #1e3a8a; }
.pl-me.pick span { background: #7c3aed; } .pl-me.pick i { background: rgba(124,58,237,.35); } .pl-me.pick b { background: #4c1d95; } .pl-me.pick b::after { border-top-color: #4c1d95; }
@keyframes pl-wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pl-me i, .pl-locbtn svg { animation: none !important; } }

/* 장소 핀 — 종류 아이콘 물방울 */
.pl-pin span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #fff; border: 2.5px solid var(--pink); box-shadow: 0 3px 8px rgba(60,20,40,.28); box-sizing: border-box; font-size: 16px; line-height: 1; }
.pl-pin span em { font-style: normal; display: block; transform: rotate(45deg); }
.pl-pin.hot span { background: var(--pink); border-color: #fff; width: 38px; height: 38px; margin: -4px 0 0 -2px; }
.pl-pin.approx span { border-style: dashed; opacity: .9; }
.pl-pin.t-park span, .pl-pin.t-zoo span { border-color: #B8892E; } .pl-pin.hot.t-park span, .pl-pin.hot.t-zoo span { background: #B8892E; border-color: #fff; }
.pl-pin.t-library span, .pl-pin.t-museum span, .pl-pin.t-science span { border-color: #C9A24A; } .pl-pin.hot.t-library span, .pl-pin.hot.t-museum span, .pl-pin.hot.t-science span { background: #C9A24A; border-color: #fff; }
.pl-cl { display: grid; place-items: center; }
.pl-cl span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: 14px; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(226,102,142,.22), 0 4px 12px rgba(60,20,40,.25); box-sizing: border-box; }

/* 팝업 */
.pl-map .leaflet-popup-content-wrapper { border-radius: 18px; box-shadow: 0 10px 30px rgba(30,20,30,.22); }
.pl-map .leaflet-popup-content { margin: 14px 16px; min-width: 200px; }
.pl-pop b { display: block; font-size: 15.5px; color: var(--pl-ink, #1E1B33); }
.pl-pop small { display: block; color: #6E6880; font-size: 12.5px; margin-top: 2px; }
.pl-pop p { margin: 8px 0 4px; font-size: 12.5px; color: #6E6880; }
.pl-pop ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pl-pop li { display: flex; gap: 8px; justify-content: space-between; font-size: 13.5px; } .pl-pop li em { font-style: normal; font-weight: 800; color: #2563eb; white-space: nowrap; }
.pl-poplinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl-poplinks a { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #F6F3F8; color: #1E1B33; }
.pl-poplinks a:hover { background: var(--rose); text-decoration: none; }
.pl-meoff { font: inherit; font-size: 12px; font-weight: 700; margin-top: 10px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(80,40,60,.15); background: #fff; cursor: pointer; color: #6E6880; }

/* 지도 아래쪽: 가까운 곳 카드 줄 */
.pl-strip { position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 14px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: linear-gradient(180deg, transparent, rgba(30,20,30,.18)); }
.pl-strip[hidden] { display: none; } .pl-strip::-webkit-scrollbar { display: none; }
.pl-sc { flex: none; scroll-snap-align: start; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; width: 220px; padding: 10px 12px; border-radius: 16px; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(30,20,30,.2); font: inherit; color: var(--pl-ink); cursor: pointer; }
.pl-sc i { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--rose); font-style: normal; font-size: 17px; }
.pl-sc b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sc span { font-size: 12px; color: var(--pl-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 개수·정렬 바 */
.pl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 2px 12px; }
.pl-count { display: flex; align-items: baseline; gap: 4px; margin-right: auto; }
.pl-count b { font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--pl-ink); line-height: 1; }
.pl-count span { font-size: 14px; font-weight: 700; color: var(--pl-sub); }
.pl-ghost { font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--pl-edge); background: #fff; color: var(--pl-sub); cursor: pointer; }
.pl-ghost:hover { color: var(--pl-ink); }

/* 목록 카드 */
.pl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .pl-list { grid-template-columns: 1fr 1fr; } .pl-list > .pl-more, .pl-list > .pl-empty { grid-column: 1 / -1; } }
.pl-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; border-radius: 22px; background: var(--pl-card, #fff); border: 1px solid var(--pl-edge, rgba(80,40,60,.1)); box-shadow: 0 1px 2px rgba(60,30,45,.05); scroll-margin-top: 90px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pl-item:hover { box-shadow: 0 10px 28px rgba(60,30,45,.10); }
.pl-item.flash { border-color: var(--pink); box-shadow: 0 0 0 4px var(--rose); }
.pl-rank { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #F6F3F8; font-size: 22px; font-family: var(--display); }
.pl-rank i { font-style: normal; line-height: 1; }
.pl-rank span { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center; background: #1E1B33; color: #fff; font: 800 11.5px/1 var(--body); border: 2px solid #fff; }
.pl-item:nth-child(-n+3) .pl-rank { background: var(--rose); } .pl-item:nth-child(-n+3) .pl-rank span { background: var(--pink); }
.pl-body { min-width: 0; }
.pl-top { display: flex; align-items: center; gap: 8px; } .pl-top b { font-size: 17px; flex: 1; min-width: 0; letter-spacing: -.01em; }
.pl-dist { flex: none; font-size: 13px; font-weight: 800; color: #2563eb; background: #eff4ff; padding: 3px 9px; border-radius: 999px; }
.pl-fav { flex: none; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; border: 1px solid rgba(80,40,60,.12); background: #fff; cursor: pointer; color: var(--pink); }
.pl-fav.on { background: var(--rose); border-color: var(--pink); }
.pl-meta, .pl-ages, .pl-fac { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; font-size: 12.5px; }
.pl-meta span { padding: 3px 9px; border-radius: 8px; background: #F6F3F8; color: #6b5c66; }
.pl-meta .warn { background: #fff4dc; color: #8a5a00; }
.pl-ages span { padding: 3px 9px; border-radius: 8px; background: #FBF6E9; color: #7a5a00; } .pl-ages i { font-style: normal; color: #e8a400; letter-spacing: -1px; }
.pl-fac span { padding: 3px 9px; border-radius: 8px; background: #e9f7f4; color: #8A6A1F; font-weight: 700; }
.pl-body p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: #4b3f48; }
.pl-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.pl-score { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 22px; margin-right: 6px; } .pl-score small { font-size: 13px; margin-left: 1px; }
.pl-btn { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 10px; border: 0; background: #1E1B33; color: #fff; cursor: pointer; }
.pl-btn:hover { text-decoration: none; filter: brightness(1.15); }
a.pl-btn { color: #fff; } .pl-btn.ghost { background: #F6F3F8; color: #1E1B33; } a.pl-btn.ghost { color: #1E1B33; }
.pl-links > a:not(.pl-btn) { font-size: 13px; }
.pl-empty, .pl-more { padding: 22px; text-align: center; color: var(--muted); list-style: none; }
.pl-about { margin-top: 28px; }
@media (max-width: 640px) {
  .pl-controls { padding: 12px; border-radius: 20px; gap: 10px; }
  .pl-search select { max-width: 92px; }
  .pl-row2 { flex-direction: column; align-items: stretch; gap: 10px; }
  .pl-mapwrap { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0; }
  .pl-map { height: 72vh; min-height: 440px; }
  .pl-float { top: 58px; font-size: 13px; }
  .pl-sc { width: 190px; }
  .pl-item { grid-template-columns: 40px 1fr; padding: 14px; gap: 12px; }
  .pl-rank { width: 40px; height: 40px; font-size: 19px; border-radius: 13px; }
  .pl-mapbtns .pl-locbtn { height: 48px; }
}
.pl-emo { font-size: 20px; line-height: 1; }
.pl-acts { display: flex; gap: 6px; margin-top: 8px; }
.pl-acts button { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer; background: #fff; color: #1e3a8a; }
.pl-acts button + button { background: rgba(255,255,255,.18); color: #fff; }
/* 위치 권한 요청 버튼 (지도 필터 맨 위) */
.pl-ask { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; width: 100%; padding: 12px 16px; border-radius: 16px; border: 1.5px solid #c7d7fe; background: linear-gradient(135deg, #eff4ff, #f7f9ff); color: #1e3a8a; font: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .1s; }
.pl-ask:active { transform: scale(.99); }
.pl-ask:hover { border-color: #2563eb; }
.pl-ask b { font-size: 15px; font-weight: 800; } .pl-ask small { grid-column: 2; font-size: 12.5px; color: #4b5c8a; }
.pl-dot { grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.pl-ask.busy .pl-dot { animation: pl-blink 1s infinite; } @keyframes pl-blink { 50% { opacity: .3; } }
.pl-ask.on { background: #2563eb; border-color: #2563eb; color: #fff; } .pl-ask.on small { color: #dbe6ff; } .pl-ask.on .pl-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.pl-ask.off { background: #fff4f4; border-color: #fecaca; color: #b91c1c; } .pl-ask.off small { color: #b45353; } .pl-ask.off .pl-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.18); }
@media (min-width: 720px) { .pl-controls { grid-template-columns: 1fr auto; } .pl-controls > .pl-row { grid-column: 1 / -1; } .pl-ask { width: auto; min-width: 230px; } }
/* 🔎 동네·역으로 주변 보기 */
.pl-geo { flex: none; font: inherit; font-size: 13.5px; font-weight: 800; padding: 9px 14px; border-radius: 12px; border: 0; background: #2563eb; color: #fff; cursor: pointer; white-space: nowrap; }
.pl-geo[hidden] { display: none; } .pl-geo:disabled { opacity: .7; }
.pl-empty .pl-btn { margin-top: 10px; background: #2563eb; }
@media (max-width: 640px) { .pl-search { flex-wrap: wrap; } .pl-search input { flex-basis: calc(100% - 40px); } .pl-geo { flex: 1; } }

/* ===== 🎲 오늘의 놀이 추천기 (play/today/ · assets/js/play-picker.js) ===== */
.pk-app { --pk-ink: #1E1B33; --pk-sub: #6E6880; --pk-edge: rgba(80,40,60,.10); margin: 14px 0 28px; color: var(--pk-ink); }
.pk-form { display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: #fff; border: 1px solid var(--pk-edge); box-shadow: 0 1px 2px rgba(60,30,45,.06), 0 8px 24px rgba(60,30,45,.08); }
.pk-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk-lbl { flex: none; width: 56px; font-size: 12.5px; font-weight: 800; color: var(--pk-sub); }
.pk-age { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pk-age input[type=number] { width: 110px; font: inherit; font-size: 18px; font-weight: 800; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--pk-edge); background: #F6F3F8; color: var(--pk-ink); }
.pk-age input:focus { outline: none; border-color: var(--pink); background: #fff; }
.pk-age > span { font-weight: 700; color: var(--pk-sub); }
.pk-birth { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 13px; color: var(--pk-sub); font-weight: 700; }
.pk-birth input { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--pk-edge); background: #fff; color: var(--pk-ink); }
.pk-chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pk-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .pk-scroll::-webkit-scrollbar { display: none; }
.pk-chip { flex: none; font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--pk-edge); background: #fff; color: var(--pk-ink); cursor: pointer; white-space: nowrap; }
.pk-chip.on { background: var(--pk-ink); border-color: var(--pk-ink); color: #fff; }
.pk-tog.on { background: var(--rose); border-color: var(--pink); color: #4E35A0; }
.pk-result { margin-top: 16px; }
.pk-card { padding: 22px; border-radius: 26px; background: linear-gradient(160deg, #fff, #fff7f2); border: 1px solid var(--pk-edge); box-shadow: 0 10px 30px rgba(60,30,45,.10); }
.pk-card.pk-empty { text-align: center; color: var(--pk-sub); font-weight: 700; padding: 34px 20px; background: #fff; }
.pk-card.pop { animation: pk-pop .35s ease-out; } @keyframes pk-pop { from { transform: scale(.97); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .pk-card.pop { animation: none; } }
.pk-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.pk-emoji { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--rose); font-size: 32px; }
.pk-name { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.pk-from { font-size: 13px; color: var(--pk-sub); }
.pk-score { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--pink); } .pk-score small { font-size: 13px; }
.pk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.pk-meta span { font-size: 13px; padding: 4px 10px; border-radius: 10px; background: #F6F3F8; color: #5b4c56; }
.pk-how { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.7; }
.pk-tip { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #FBF6E9; color: #5a4310; font-size: 14px; line-height: 1.6; }
.pk-safe { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: #fff1f1; color: #8f1d1d; font-size: 14px; line-height: 1.6; }
.pk-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pk-btn { font: inherit; font-size: 16px; font-weight: 800; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--pink); color: #fff; cursor: pointer; box-shadow: 0 4px 0 #5B3FB0; }
.pk-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #5B3FB0; } .pk-btn:disabled { opacity: .45; cursor: default; }
.pk-count { font-size: 14px; font-weight: 700; color: var(--pk-sub); }
.pk-more h2 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 26px 0 10px; }
.pk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pk-list button { width: 100%; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--pk-edge); background: #fff; font: inherit; color: var(--pk-ink); cursor: pointer; }
.pk-list button:hover { border-color: var(--pink); }
.pk-list span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #F6F3F8; font-size: 18px; }
.pk-list b { font-size: 14px; } .pk-list small { font-size: 12px; color: var(--pk-sub); }
.pk-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 22px; background: linear-gradient(135deg, var(--rose), #FBF3E2); border: 1px solid #D9CDF2; color: var(--text); margin: 6px 0 16px; }
.pk-cta:hover { text-decoration: none; border-color: var(--pink); }
.pk-cta > span { font-size: 34px; } .pk-cta b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; } .pk-cta small { color: #6b5c66; font-size: 13.5px; }
.pk-cta i { font-style: normal; font-weight: 800; color: var(--pink); white-space: nowrap; }
@media (max-width: 640px) {
  .pk-form { padding: 14px; gap: 14px; } .pk-birth { margin-left: 0; }
  .pk-row { flex-direction: column; align-items: stretch; gap: 6px; } .pk-lbl { width: auto; } .pk-lbl:empty { display: none; }
  .pk-age input[type=number] { width: 96px; }
  .pk-top { grid-template-columns: auto 1fr; } .pk-score { grid-column: 2; font-size: 20px; }
  .pk-name { font-size: 20px; } .pk-emoji { width: 50px; height: 50px; font-size: 26px; } .pk-card { padding: 18px; }
  .pk-cta { grid-template-columns: auto 1fr; } .pk-cta i { grid-column: 1 / -1; }
}

/* =====================================================================
   v2 디자인 시스템 (육아 연구소에서 가져와 운명 연구소 색으로 바꿈 — 맨 아래 destiny 블록이 최종)
   Pretendard(본문·제목) + Fraunces(숫자·영문 포인트) · 아이보리/잉크 + 베리·세이지·버터 포인트
   아래 규칙이 위의 예전 규칙을 덮어써요. 새 디자인은 여기서 고치세요.
   ===================================================================== */
:root {
  --bg: #F7F4EF; --bg-2: #EEE9F4; --panel: #FFFFFF; --ink: #1A1733; --text: #1A1733; --muted: #6E6880;
  --line: rgba(26,23,51,.09); --line-2: rgba(26,23,51,.16);
  --accent: #6A4BC4; --pink: #6A4BC4; --berry: #6A4BC4; --sage: #B8892E; --mint: #B8892E; --butter: #F0D58C; --lilac: #B9A6F0;
  --rose: #EFE9FB; --sky: #F6EFDC; --peach: #F3EAF6; --cream: #FBF6E9;
  --display: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --body: var(--display); --mono: var(--display);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --sh-1: 0 1px 2px rgba(26,23,51,.04), 0 2px 8px rgba(26,23,51,.04);
  --sh-2: 0 2px 4px rgba(26,23,51,.04), 0 12px 32px rgba(26,23,51,.08);
  --sh-3: 0 4px 8px rgba(26,23,51,.05), 0 24px 56px rgba(26,23,51,.12);
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 16px; line-height: 1.7; letter-spacing: -0.01em; color: var(--text); background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, #E9E1FA 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #F4ECD6 0%, transparent 55%);
  background-size: auto; background-attachment: scroll; background-repeat: no-repeat; -webkit-font-smoothing: antialiased; }
body::before { display: none; }
h1, h2, h3, h4, .logo, .tool-head h1, .post-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
::selection { background: var(--ink); color: #fff !important; }
a { color: var(--berry); }
.wrap { max-width: 1160px; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.build-stamp { background: transparent; border-bottom: 0; font-size: 11px; }

/* 헤더 — 반투명 유리 + 잉크 로고 */
.nav { background: rgba(247,244,239,.78); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; }
.logo { gap: 10px; } .logo-img { width: 34px; height: 34px; margin-right: 0; border-radius: 11px; box-shadow: var(--sh-1); }
.logo .brand-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.04em; color: var(--ink); }
.nav-links { gap: 4px; font-size: 14.5px; }
.nav-links a { color: #3F3A57; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(26,23,51,.06); color: var(--ink); }
.btn-icon.side-toggle { border-radius: 12px; border: 1px solid var(--line-2); background: #fff; width: 40px; height: 40px; box-shadow: var(--sh-1); }

/* 푸터 */
footer { margin-top: 72px; padding: 36px 0 56px; background: var(--ink); color: rgba(255,255,255,.62); border-top: 0; font-size: 13px; }
footer a { color: rgba(255,255,255,.85); } footer .foot-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }

/* 공통 버튼 */
.btn-ink, .btn-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; padding: 14px 22px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(26,23,51,.22); }
.btn-ink:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26,23,51,.28); }
.btn-line { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line-2); }
.btn-line:hover { text-decoration: none; background: #fff; }

/* ---------- 홈 ---------- */
.home { padding-top: 8px; }
.hx { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin: 20px 0 14px; }
.hx-main { position: relative; padding: 48px 44px 44px; border-radius: 36px; background: var(--panel); box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; }
.hx-main::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, #F3E2B0 0%, transparent 65%); opacity: .55; pointer-events: none; }
.hx-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #4F4A66; }
.hx-badge img { border-radius: 50%; }
.hx h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.08; letter-spacing: -0.055em; margin: 22px 0 18px; font-weight: 850; }
.hx h1 em { font-style: normal; background: linear-gradient(transparent 62%, #E3D9FA 62%, #E3D9FA 92%, transparent 92%); padding: 0 .06em; }
.hx-main p { position: relative; z-index: 1; font-size: 17px; line-height: 1.75; color: #4F4A66; max-width: 520px; margin: 0 0 28px; }
.hx-cta { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.hx-art { position: relative; display: grid; place-items: center; min-height: 380px; border-radius: 36px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #F7EED6 0%, transparent 45%), radial-gradient(circle at 80% 85%, #E0D5F7 0%, transparent 50%), linear-gradient(160deg, #F6EFDC, #ECE6F8); }
.hx-art img { width: min(78%, 320px); height: auto; filter: drop-shadow(0 18px 30px rgba(26,23,51,.12)); animation: hx-float 6s ease-in-out infinite; }
@keyframes hx-float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hx-stat { position: absolute; display: inline-flex; align-items: baseline; gap: 5px; padding: 10px 16px; border-radius: 18px; background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--sh-2); font-size: 13px; font-weight: 700; color: #4F4A66; }
.hx-stat b { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.hx-stat.s1 { left: 18px; top: 24px; } .hx-stat.s2 { right: 18px; top: 46%; } .hx-stat.s3 { left: 26px; bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .hx-art img { animation: none; } }
.hx-ages { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 0 6px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hx-ages::-webkit-scrollbar { display: none; }
.hx-ages .age-chip { flex: none; scroll-snap-align: start; min-width: 132px; padding: 14px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; }
.hx-ages .age-chip:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.hx-ages .age-chip b { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; color: var(--ink); }
.hx-ages .age-chip small { font-size: 12.5px; color: var(--muted); }
.bento { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 14px; margin: 10px 0 18px; }
.bt { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 22px 22px 20px; border-radius: 28px; color: var(--ink); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.bt:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--sh-3); }
.bt-k { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 13px; letter-spacing: .08em; opacity: .7; }
.bt b { font-size: 21px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; margin-top: auto; }
.bt small { font-size: 13.5px; line-height: 1.55; opacity: .75; max-width: 260px; }
.bt i { position: absolute; right: 20px; top: 18px; font-style: normal; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.5); font-weight: 700; transition: transform .2s; }
.bt:hover i { transform: rotate(-45deg); }
.bt img { position: absolute; right: -8px; bottom: -14px; width: 120px; height: auto; opacity: .95; }
.bt-mint b, .bt-mint small { max-width: 62%; }
.bt-ink { background: var(--ink); color: #fff; border-color: var(--ink); } .bt-ink i { background: rgba(255,255,255,.14); }
.bt-mint { background: linear-gradient(160deg, #F6EFDC, #EADBB2); } .bt-rose { background: linear-gradient(160deg, #EFE9FB, #E1D6F6); } .bt-butter { background: linear-gradient(160deg, #F7EED6, #F3E2B0); }
@media (max-width: 960px) { .hx { grid-template-columns: 1fr; } .hx-art { min-height: 300px; } .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .hx-main { padding: 30px 22px 26px; border-radius: 28px; } .hx-art { min-height: 260px; border-radius: 28px; }
  .hx-stat { padding: 8px 12px; font-size: 12px; } .hx-stat b { font-size: 21px; }
  .bento { grid-template-columns: 1fr; } .bt { min-height: 150px; }
}
/* 섹션 머리 — 잡지처럼 */
.home-sec { padding: 56px 0 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.home-sec .section-head h2, .section-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.045em; line-height: 1.15; margin: 6px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }
.eyebrow i { font-style: italic; font-weight: 700; font-size: 15px; color: var(--berry); letter-spacing: 0; }
.eyebrow i::after { content: ''; display: inline-block; width: 22px; height: 1px; background: currentColor; margin-left: 10px; vertical-align: middle; opacity: .6; }
.section-head .more { flex: none; font-weight: 700; font-size: 14px; color: var(--ink); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; }
.section-head .more:hover { text-decoration: none; background: var(--ink); color: #fff; }
.section-head .more span { display: inline-block; transition: transform .2s; } .section-head .more:hover span { transform: translateX(3px); }
.section-head .num { font-family: var(--serif); font-style: italic; color: var(--berry); }
.about-ink { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 36px 40px; border-radius: 36px; background: var(--ink); color: rgba(255,255,255,.78); }
.about-ink h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 8px 0 12px; }
.about-ink .eyebrow { color: rgba(255,255,255,.55); } .about-ink .eyebrow i { color: #A68BEA; }
.about-ink p { margin: 0 0 10px; line-height: 1.8; } .about-ink .muted { color: rgba(255,255,255,.5); font-size: 13.5px; }
.about-ink img { width: 100%; height: auto; }
@media (max-width: 720px) { .about-ink { grid-template-columns: 1fr; padding: 28px 22px; } .about-ink img { width: 150px; margin: 0 auto; } }

/* ---------- 카드 (놀이·랭킹) ---------- */
.bb-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.bb-card { padding: 24px 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s, border-color .2s; }
.bb-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.bb-card-emoji { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--bg); font-size: 28px; }
.bb-card-age { right: 18px; top: 22px; padding: 5px 11px; background: var(--bg); color: #4F4A66; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.bb-card h3 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.04em; margin: 16px 0 6px; }
.bb-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.bb-card ol { border-top: 1px solid var(--line); padding-top: 12px; gap: 6px; }
.bb-card li { font-size: 14px; font-weight: 600; color: #3E343A; }
.bb-card li b { width: auto; height: auto; background: none !important; color: var(--muted) !important; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px; min-width: 18px; border-radius: 0; }
.bb-card li:first-child b { color: var(--berry) !important; }
.bb-card .arrow { right: 20px; bottom: 18px; font-weight: 700; color: var(--ink); opacity: .35; transition: opacity .2s, transform .2s; }
.bb-card:hover .arrow { opacity: 1; transform: translate(2px, -2px); }
/* 계산기·테스트·조사 카드 */
.grid { gap: 16px; }
.card { border-radius: var(--r-md) !important; background: #fff !important; border: 1px solid var(--line) !important; box-shadow: var(--sh-1) !important; padding: 22px !important; transition: transform .2s, box-shadow .2s !important; }
.card:hover { transform: translateY(-4px) !important; box-shadow: var(--sh-3) !important; border-color: var(--line-2) !important; }
.card .icon { border-radius: 14px; background: var(--bg); border: 0; width: 46px; height: 46px; font-size: 22px; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.035em; }
.card p { font-size: 14px; line-height: 1.6; }
.card .meta span { border-radius: 999px; background: var(--bg); border: 0; font-size: 12px; color: #4F4A66; padding: 3px 10px; }
/* 최근 글 */
.latest-posts ol { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.latest-posts li a { padding: 22px 22px 20px; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.latest-posts li a:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.latest-posts time { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--berry); }
.latest-posts b { font-size: 17px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.4; margin: 6px 0; color: var(--ink); }
.latest-posts span { font-size: 13.5px; }

/* ---------- 페이지 머리 (허브·놀이·랭킹) ---------- */
.bb-hero { position: relative; padding: 40px 40px 34px; border-radius: 36px; border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, #EAE2FA 0%, transparent 60%), radial-gradient(500px 280px at 0% 100%, #F4ECD6 0%, transparent 60%), #fff; }
.bb-hero h1 { font-family: var(--display); font-weight: 850; font-size: clamp(30px, 4.8vw, 48px); letter-spacing: -0.05em; line-height: 1.15; margin: 16px 0 12px; color: var(--ink); }
.bb-lead { font-size: 16.5px; line-height: 1.75; color: #4F4A66; max-width: 720px; }
.bb-kind { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 12.5px; font-weight: 700; border: 0; }
.bb-hero.has-art { padding-right: 230px; min-height: 220px; }
.hub-art { position: absolute; right: 26px; bottom: 6px; width: 190px; height: auto; filter: drop-shadow(0 14px 24px rgba(26,23,51,.12)); }
@media (max-width: 720px) { .bb-hero { padding: 28px 22px 24px; border-radius: 28px; } .bb-hero.has-art { padding-right: 22px; padding-top: 120px; } .hub-art { width: 110px; right: 14px; top: 10px; bottom: auto; } }
.grp-chip { border: 1px solid var(--line-2); font-weight: 700; background: #fff; }
.grp-chip:hover { border-color: var(--ink); }
.crumb { font-size: 13px; }
.bb-jump a { border: 1px solid var(--line) !important; background: #fff !important; font-weight: 600; }
.bb-jump a b { background: var(--bg) !important; color: var(--ink) !important; font-family: var(--serif); font-style: italic; }
.pk-cta { border: 1px solid var(--line); background: linear-gradient(135deg, #EFE9FB, #F7EED6); box-shadow: var(--sh-1); }
.pk-cta b { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }

/* ---------- BEST10 항목 ---------- */
.bb-item { border-radius: var(--r-lg); border: 1px solid var(--line) !important; box-shadow: var(--sh-1); padding: 26px 24px; background: #fff; }
.bb-rank { background: var(--bg) !important; color: var(--ink) !important; border-radius: 20px; }
.bb-rank b { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
.bb-item:nth-child(1) .bb-rank { background: var(--ink) !important; color: #fff !important; }
.bb-item:nth-child(2) .bb-rank, .bb-item:nth-child(3) .bb-rank { background: #F7EED6 !important; }
.bb-main h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.bb-total { font-family: var(--serif) !important; font-weight: 700 !important; color: var(--ink) !important; }
.bb-tip, .bb-safe { border-radius: 16px; border: 0; }

/* ---------- 글 ---------- */
.post-head h1 { font-weight: 850; font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.05em; line-height: 1.2; }
.post-body { font-size: 17px; line-height: 1.9; letter-spacing: -0.012em; color: #2E262B; }
.post-body h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.8vw, 27px); letter-spacing: -0.04em; border-top: 1px solid var(--line-2); }
.post-body h2::before { content: none; }
.post-body h3 { font-weight: 800; letter-spacing: -0.03em; }
.post-body blockquote { border-left: 0; border-radius: 20px; background: #fff; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.post-body table { font-size: 15px; } .post-body th { font-weight: 800; }
.post-cat { background: var(--ink) !important; color: #fff !important; border: 0 !important; font-weight: 700; }

/* ---------- 지도·추천기 등 앞서 만든 화면의 글꼴 굵기 맞추기 ---------- */
.pl-count b, .pk-score, .pl-score, .pk-name, .ev-who, .page-media h2, .grp-h, .pk-more h2, .ev-sec h2, .hp-map b { font-family: var(--display) !important; font-weight: 800 !important; letter-spacing: -0.04em; }
.pl-count b, .pk-score, .pl-score { font-family: var(--serif) !important; font-weight: 700 !important; letter-spacing: -0.02em; }
.site-hero h1, .tool-head h1 { font-weight: 850; letter-spacing: -0.05em; }
.hp-map { border: 1px solid var(--line); box-shadow: var(--sh-1); }
@media (min-width: 961px) { .bento { grid-template-columns: 1.2fr 1.5fr 1fr 1fr; } }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bt { min-height: 158px; padding: 16px 16px 14px; border-radius: 22px; }
  .bt b { font-size: 17px; } .bt small { font-size: 12.5px; } .bt i { width: 30px; height: 30px; right: 12px; top: 12px; }
  .bt-ink, .bt-mint { grid-column: 1 / -1; } .bt-mint img { width: 96px; }
  .nav .wrap { height: 58px; } .logo .brand-name { font-size: 16px; }
}
.bt-mint b, .bt-mint small { max-width: 64%; } .bt-mint img { width: 112px; right: -4px; }
.hx-stat.s2 { right: 14px; top: auto; bottom: 30%; }
.nav-links a { font-size: 15px; }
@media (max-width: 640px) { .nav-links a { font-size: 14px; padding: 6px 9px; } .nav-links { gap: 0; } }
@media (max-width: 420px) { .nav-links a { font-size: 13.5px; padding: 6px 7px; } }
@media (max-width: 560px) { .hx { margin-top: 6px; } }
/* 계산기 패널 — 개발자 창 모양(신호등 점) 대신 깔끔한 카드 */
.panel { border-radius: var(--r-lg) !important; border: 1px solid var(--line) !important; box-shadow: var(--sh-2) !important; background: #fff !important; overflow: hidden; }
.panel-bar { background: #fff !important; border-bottom: 1px solid var(--line) !important; padding: 14px 20px !important; font-family: var(--serif); font-style: italic; font-size: 13px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; }
.panel-bar .dots { display: none !important; }
.panel-bar .btn { font-family: var(--display); font-style: normal; letter-spacing: 0; text-transform: none; border-radius: 999px !important; }
.tool-head h1 { font-size: clamp(32px, 5vw, 52px); }
.tool-head .lede, .tool-head p { font-size: 17px; }
.pk-cta > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
/* 글 부속 상자 */
.post-tools { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; background: #fff !important; box-shadow: var(--sh-1); padding: 18px !important; }
.post-tools > b { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; color: var(--muted); }
.post-tools a { background: var(--bg) !important; border: 1px solid transparent !important; border-radius: 16px !important; transition: background .15s, border-color .15s; }
.post-tools a:hover { background: #fff !important; border-color: var(--line-2) !important; text-decoration: none; }
.post-tools a i, .post-tools .ti { color: var(--ink) !important; }
.post-tools strong { font-weight: 800; letter-spacing: -0.03em; }
.toc { border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: var(--sh-1); background: #fff !important; }
.toc > b, .toc > strong, .toc .toc-h { color: var(--berry) !important; font-weight: 800; }
.callout { border-radius: 20px !important; border-width: 1px !important; }
.post-byline, .post-notice, .related, .bb-sib { border-radius: var(--r-lg) !important; border: 1px solid var(--line) !important; background: #fff !important; box-shadow: var(--sh-1); }
.post-tags a { border-radius: 999px !important; background: var(--bg) !important; border: 1px solid var(--line) !important; color: #4F4A66 !important; }
.faq details, details.faq-item { border-radius: 18px !important; border: 1px solid var(--line) !important; background: #fff !important; }

/* 카카오 애드핏 (build.py place_ads — 위·중간·끝 3자리) */
.ad-adfit { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 100%; margin: 20px auto; overflow: hidden; clear: both; }
.ad-adfit.ad-end { margin: 28px auto 8px; }
.ad-adfit.ad-mid { margin: 28px auto; }

/* 홈 메인 캐릭터 사진 (2026-11-09 스미스: baby.png 를 메인 캐릭터로) — 원본 assets/img/baby.png → baby-hero(.webp 1000 / -640) */
.hx-art img.hx-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 35%; filter: none; animation: none; }
.hx-art:has(.hx-photo) { background: #F1EEF6; }

/* 꼬마 연구원 사진 (assets/img/lab/*.webp) — 홈 '연구실 둘러보기', 허브 머리 사진, 홈 소개 */
.lab-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.lab-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 16px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--ink); transition: transform .18s, box-shadow .18s; }
.lab-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.lab-ph { display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin-bottom: 10px; background: #F1EEF6; }
.lab-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lab-tile:hover .lab-ph img { transform: scale(1.05); }
.lab-k { font-family: var(--serif); font-style: italic; font-size: 12px; letter-spacing: .08em; color: var(--muted); padding: 0 6px; }
.lab-tile b { font-size: 16.5px; font-weight: 800; letter-spacing: -0.03em; padding: 0 6px; }
.lab-tile small { font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 0 6px; }
.lt-blocks .lab-ph { box-shadow: inset 0 0 0 3px #EADBB2; } .lt-bear .lab-ph { box-shadow: inset 0 0 0 3px #E1D6F6; } .lt-reader .lab-ph { box-shadow: inset 0 0 0 3px #F3E2B0; }
@media (max-width: 1100px) { .lab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .lab-tile { border-radius: 22px; padding: 8px 8px 14px; } .lab-tile b { font-size: 15px; } }

.hub-art.hub-photo { width: 180px; height: 180px; object-fit: cover; border-radius: 32px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(2deg); filter: none; box-shadow: var(--sh-2); border: 5px solid #fff; }
@media (max-width: 720px) { .hub-art.hub-photo { width: 96px; height: 96px; border-radius: 22px; border-width: 3px; top: 14px; right: 14px; transform: rotate(3deg); } }

.about-ink img.about-photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255,255,255,.12); justify-self: center; }
@media (max-width: 720px) { .about-ink img.about-photo { width: 140px; height: 140px; } }

/* =====================================================================
   destiny v1 — 스미스 운명 연구소 (2026-11-10)
   밤하늘 남색(잉크) + 자수정 보라 + 고금(古金) · Pretendard 본문 + Gowun Batang(한글 제목 포인트) + Cormorant Garamond(숫자·영문)
   이 블록이 위 규칙을 모두 덮어써요. 디자인은 여기서 고치세요.
   ===================================================================== */
:root {
  --bg: #F7F4EF; --bg-2: #EEE9F4; --panel: #FFFFFF; --ink: #1A1733; --text: #1E1B33; --muted: #6E6880;
  --line: rgba(26,23,51,.09); --line-2: rgba(26,23,51,.16);
  --accent: #6A4BC4; --accent-2: #B8892E; --accent-3: #C9A24A; --berry: #6A4BC4; --pink: #6A4BC4; --sage: #B8892E; --mint: #B8892E;
  --gold: #C9A24A; --gold-2: #F3DFA2; --violet: #6A4BC4; --night: #14112B;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --kserif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
}
body { background: var(--bg);
  background-image: radial-gradient(1100px 560px at 88% -12%, #E6DEFA 0%, transparent 60%), radial-gradient(900px 520px at -12% 6%, #F4EBD3 0%, transparent 55%); background-repeat: no-repeat; }
a { color: var(--violet); }
.hx h1, .dx-head h1, .bb-hero h1, .post-head h1 { font-family: var(--kserif); font-weight: 700; letter-spacing: -0.04em; }
.hx h1 em { background: linear-gradient(transparent 60%, #E9DDFC 60%, #E9DDFC 92%, transparent 92%); }
.hx-main::after { background: radial-gradient(circle, #F3DFA2 0%, transparent 65%); opacity: .45; }
.hx-art { background: #14112B; padding: 0; }
.hx-art .hx-oracle { width: 100%; height: 100%; display: block; animation: none; filter: none; }
.hx-stat { background: rgba(255,255,255,.9); }
.eyebrow i, .bt-k { color: var(--gold); }
.bt-ink { background: linear-gradient(150deg, #2A2257, #14112B); }
.bt-ink .bt-k { color: var(--gold-2); }
.btn-ink { background: linear-gradient(135deg, #2E2660, #14112B); }
footer { background: #14112B; }
.about-ink { background: linear-gradient(150deg, #241D4C, #14112B); }
.about-ink img { width: 140px; border-radius: 30px; box-shadow: 0 0 0 8px rgba(201,162,74,.15); }
.age-chip b, .hx-ages .age-chip b { font-family: var(--display); }
.logo-img { border-radius: 10px; }

/* ---------- 사전 페이지 (타로·띠·별자리) ---------- */
.dx-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin: 18px 0 18px; }
.dx-head h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.2; margin: 10px 0 10px; }
.dx-card { position: relative; aspect-ratio: 11 / 18; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 30%, #3B3170 0%, #14112B 75%); color: #FBF6E9; box-shadow: 0 0 0 1px rgba(201,162,74,.6), 0 0 0 7px #fff, 0 0 0 8px rgba(201,162,74,.5), 0 24px 48px rgba(20,17,43,.28); }
.dx-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(243,223,162,.45); border-radius: 12px; pointer-events: none; }
.dx-num { position: absolute; top: 18px; font-family: var(--serif); font-size: 22px; color: var(--gold-2); letter-spacing: .1em; }
.dx-emoji { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.dx-name { font-family: var(--kserif); font-size: 24px; font-weight: 700; margin-top: 8px; }
.dx-en { position: absolute; bottom: 18px; font-family: var(--serif); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); text-align: center; padding: 0 12px; }
.dx-photo { margin: 0; overflow: hidden; background: #14112B; }
.dx-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.dx-zodiac .dx-card, .dx-star-sign .dx-card { aspect-ratio: 1 / 1; border-radius: 50%; }
.dx-zodiac .dx-card::before, .dx-star-sign .dx-card::before { border-radius: 50%; }
.dx-zodiac .dx-num, .dx-star-sign .dx-num { top: 22%; font-size: 26px; }
.dx-zodiac .dx-en, .dx-star-sign .dx-en { bottom: 20%; font-size: 12px; }
.dx-zodiac .dx-emoji, .dx-star-sign .dx-emoji { font-size: 56px; }
.dx-facts { width: 100%; margin: 16px 0 0; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14.5px; }
.dx-facts th, .dx-facts td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dx-facts tr:last-child th, .dx-facts tr:last-child td { border-bottom: 0; }
.dx-facts th { width: 30%; background: #F6F2FC; color: #4F4A66; font-weight: 700; white-space: nowrap; }
.dx-cta { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; padding: 16px 20px; border-radius: 20px; color: #FBF6E9; text-decoration: none;
  background: linear-gradient(135deg, #2E2660, #14112B); box-shadow: var(--sh-2); }
.dx-cta:hover { text-decoration: none; transform: translateY(-2px); }
.dx-cta > span:first-child { font-size: 28px; }
.dx-cta b { display: block; font-size: 16px; } .dx-cta small { display: block; color: #C9BEE8; font-size: 13px; }
.dx-cta i { margin-left: auto; font-style: normal; color: var(--gold-2); font-size: 20px; }
.dx-page .post-body h2 { font-family: var(--kserif); }
.dx-page .post-body table td, .dx-page .post-body table th { vertical-align: top; }
.dx-rel { margin: 28px 0; } .dx-rel h4, .dx-all h4 { margin: 0 0 10px; font-size: 15px; }
.dx-rel > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dx-mini { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.dx-mini:hover { text-decoration: none; border-color: var(--violet); box-shadow: var(--sh-1); }
.dx-mini span { font-size: 26px; } .dx-mini b { font-size: 15px; } .dx-mini small { color: var(--muted); font-family: var(--serif); font-size: 13px; letter-spacing: .04em; }
.dx-all { margin: 28px 0 8px; padding: 18px; border-radius: 20px; background: #F3EFF9; }
.dx-all > div { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-chip { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.dx-chip:hover { text-decoration: none; border-color: var(--violet); }
.dx-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 720px) {
  .dx-hero { grid-template-columns: 1fr; gap: 18px; }
  .dx-card { width: 180px; margin: 6px auto 0; }
  .dx-zodiac .dx-card, .dx-star-sign .dx-card { width: 170px; }
  .dx-facts th { width: 34%; white-space: normal; }
}

/* 사전 허브 타일 */
.dx-hubhead { background: linear-gradient(150deg, #241D4C, #14112B); color: #E9E4F7; border: 0; }
.dx-hubhead h1 { color: #FBF6E9; } .dx-hubhead .bb-lead { color: #CFC7EA; } .dx-hubhead .bb-kind { color: var(--gold-2); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.dx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 28px; }
.dx-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 16px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; }
.dx-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-2); border-color: rgba(106,75,196,.35); }
.dx-tile-emoji { font-size: 32px; line-height: 1.1; }
.dx-tile b { font-family: var(--kserif); font-size: 19px; margin-top: 6px; }
.dx-tile-en { font-family: var(--serif); color: var(--accent-2); font-size: 14px; letter-spacing: .06em; }
.dx-tile-lead { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 홈 — 타로 카드 줄 */
.dx-tarot-row { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dx-tcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 176px; border-radius: 14px; color: #FBF6E9;
  background: radial-gradient(circle at 50% 30%, #3B3170 0%, #14112B 78%); box-shadow: inset 0 0 0 1px rgba(243,223,162,.45), 0 10px 22px rgba(20,17,43,.22); transition: transform .15s; }
.dx-tcard:hover { text-decoration: none; transform: translateY(-4px) rotate(-1deg); }
.dx-tcard .n { position: absolute; top: 10px; font-family: var(--serif); color: var(--gold-2); font-size: 15px; }
.dx-tcard .e { font-size: 34px; } .dx-tcard b { font-family: var(--kserif); font-size: 15px; }
.dx-tcard small { font-family: var(--serif); font-size: 11px; letter-spacing: .08em; color: #C9BEE8; text-align: center; padding: 0 6px; }
@media (prefers-reduced-motion: reduce) { .dx-tcard, .dx-tile, .dx-cta { transition: none; } }
.dx-zodiac .dx-en, .dx-star-sign .dx-en { display: none; }
.dx-zodiac .dx-num, .dx-star-sign .dx-num { top: 13%; font-size: 24px; font-family: var(--kserif); }
.dx-zodiac .dx-name, .dx-star-sign .dx-name { font-size: 21px; margin-top: 2px; }
.dx-head h1, .bb-hero h1, .hx h1 { word-break: keep-all; }
.dx-photo { margin: 0; background: none; }
.dx-photo img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(201,162,74,.6), 0 0 0 7px #fff, 0 0 0 8px rgba(201,162,74,.5), 0 24px 48px rgba(20,17,43,.28); }
.dx-photo figcaption { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.dx-photo .credit { display: block; margin-top: 2px; }
@media (max-width: 720px) { .dx-photo { width: 200px; margin: 6px auto 0; } }
.dx-tcard.has-img { height: auto; padding: 6px 6px 8px; background: #fff; box-shadow: 0 0 0 1px rgba(201,162,74,.5), 0 10px 22px rgba(20,17,43,.16); color: var(--ink); }
.dx-tcard.has-img img { width: 100%; height: auto; border-radius: 8px; display: block; }
.dx-tcard.has-img b { font-size: 14px; margin-top: 4px; }
.dx-tile.has-img { flex-direction: row; gap: 14px; align-items: flex-start; }
.dx-tile.has-img img { flex: none; width: 64px; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(201,162,74,.5); }
.dx-tile.has-img > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-tile.has-img b { margin-top: 0; }
.dx-grid:has(.has-img) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dx-dream .dx-card, .dx-ohaeng .dx-card, .dx-ilgan .dx-card { aspect-ratio: 1 / 1; border-radius: 50%; }
.dx-dream .dx-card::before, .dx-ohaeng .dx-card::before, .dx-ilgan .dx-card::before { border-radius: 50%; }
.dx-dream .dx-en, .dx-ohaeng .dx-en, .dx-ilgan .dx-en { display: none; }
.dx-ohaeng .dx-num, .dx-ilgan .dx-num { top: 13%; font-size: 24px; font-family: var(--kserif); }
.dx-dream .dx-num { display: none; }
@media (max-width: 720px) { .dx-dream .dx-card, .dx-ohaeng .dx-card, .dx-ilgan .dx-card { width: 170px; } }
/* 언어 전환 · 영문판 */
.nav-links a.lang-sw { margin-left: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--violet); background: #fff; }
.nav-links a.lang-sw:hover { background: var(--violet); color: #fff; }
.dx-ko { margin: 12px 0 0; font-size: 13.5px; }
[lang="en"] .hx h1, [lang="en"] .dx-head h1, [lang="en"] .bb-hero h1 { font-family: var(--serif); letter-spacing: -0.01em; font-weight: 700; }
.dx-folk .dx-card { aspect-ratio: 1 / 1; border-radius: 50%; } .dx-folk .dx-card::before { border-radius: 50%; } .dx-folk .dx-en, .dx-folk .dx-num { display: none; }
@media (max-width: 720px) { .dx-folk .dx-card { width: 170px; } }
