/* Destiny Polaris | Deep Horus predicts — PC·모바일 공통 스타일 */
:root {
  --hdr-h: 80px;
  --hdr-bg: rgba(185, 225, 247, 0.85);
  --dd-bg: rgba(224, 224, 216, 0.95);
  --pill: rgba(225, 204, 45, 0.9);
  --ink: #363636;
  --menu: #212121;
  --wrap: 1250px;
  --foot: #383838;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Noto Sans', 'Noto Sans KR', -apple-system, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 머리글 ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--hdr-h); background: var(--hdr-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hdr-in { height: 100%; display: flex; align-items: center; padding: 0 15px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; flex: none; }
.brand .eye { width: 79px; height: 79px; }
.brand .txt { width: 237px; height: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: 22px 15px; font: 700 22px/1.2 'Noto Sans KR', 'Noto Sans', sans-serif; color: var(--menu); text-decoration: none; white-space: nowrap; }
.nav > ul > li > a span { display: inline-block; padding: 4px 15px; border-radius: 50px; transition: background .2s; }
.nav > ul > li.on > a span, .nav > ul > li > a:hover span { background: var(--pill); }
.nav .sub { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 230px; list-style: none; margin: -6px 0 0; padding: 8px 0; background: var(--dd-bg); box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: 9px 22px; font: 500 16px/1.4 'Noto Sans KR', sans-serif; color: var(--menu); text-decoration: none; white-space: nowrap; }
.nav .sub a:hover, .nav .sub a.on { background: rgba(255,255,255,.55); }
.hdr-side { flex: none; width: 316px; }
.burger { display: none; }
.mbar { display: none; }
.gap-y { padding-top: 40px; padding-bottom: 40px; }
main { padding-top: var(--hdr-h); }

/* ---------- 비주얼(영상) 영역 ---------- */
.visual { position: relative; overflow: hidden; background: #111 center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.visual.first { height: calc(100vh - var(--hdr-h)); min-height: 520px; }
.visual.h750 { height: 750px; }
.visual.full { height: 100vh; min-height: 560px; }
.visual video, .visual .yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.visual .yt { pointer-events: none; }
.visual .yt iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); border: 0; }
.visual .vt { position: relative; z-index: 2; width: 100%; padding: 0 20px; color: #fff; font-family: 'Noto Sans', 'Noto Sans KR', sans-serif; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.vt-center { text-align: center; }
.vt-center .l1, .vt-center .l2 { display: block; font-size: 96px; line-height: 1.1; }
.vt-center .l3 { display: block; font-size: 64px; line-height: 1.1; margin-top: 6px; }
.vt-stagger { max-width: 1265px; margin: 0 auto; }
.vt-stagger .l1, .vt-stagger .l2 { display: block; font-size: 144px; line-height: 1.1; }
.vt-stagger .l2 { padding-left: 336px; }

/* 슬라이더(사진이 돌아가는 영역) */
.slides .sl { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.slides .sl.on { opacity: 1; }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: #fff; }

/* ---------- 본문 이미지 ---------- */
.sec { padding: 15px 0; }
.img-c { text-align: center; }
.img-c img { display: inline-block; vertical-align: top; }
.w860 { width: 860px; }
.w600 { width: 600px; }
.w480 { width: 480px; }
.w529 { width: 529px; border-radius: 10px; }
.w1120 { width: 1120px; }
.w1129 { width: 1129px; }
.w312 { width: 312px; }
.mt30 { margin-top: 30px; }
.mt60 { margin-top: 60px; }

/* ---------- 갤러리 ---------- */
.gal { max-width: 1544px; margin: 0 auto; padding: 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); }
.gal .gi { padding: 5px; }
.gal button { display: block; width: 100%; aspect-ratio: 1/1; border: 0; padding: 0; cursor: zoom-in; background: #eee center/cover no-repeat; position: relative; overflow: hidden; }
.gal button img, .marquee button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal button::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .25s; }
.gal button:hover::after { background: rgba(0,0,0,.12); }
.gal-wrap { padding: 40px 0 60px; }

/* 연구개발 참고자료 (가로로 흐르는 띠) */
.refs { background: rgb(250, 251, 248); padding: 15px 0 40px; }
.refs h2 { text-align: center; font-size: 36px; margin: 10px 0 18px; font-weight: 700; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.marquee button { flex: none; width: 424px; height: 424px; margin-right: 12px; border: 0; padding: 0; background: #eee center/cover no-repeat; cursor: zoom-in; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }   /* 오른쪽 → 왼쪽으로 계속 흐름 */

/* 확대 보기 */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 34px; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; line-height: 56px; padding: 0; }
.lb .x { top: 16px; right: 16px; font-size: 30px; }
.lb .pv { left: 16px; top: 50%; margin-top: -28px; }
.lb .nx { right: 16px; top: 50%; margin-top: -28px; }
.lb .cnt { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; }

/* ---------- 인사말 ---------- */
.greet { display: grid; grid-template-columns: 610px 610px; gap: 30px; justify-content: center; padding: 46px 20px 40px; }
.greet .col-l { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.greet .col-l img.r6 { border-radius: 6px; }
.greet .cap { font-size: 14px; font-weight: 700; text-align: center; margin: -12px 0 0; }
.greet .col-r img { width: 610px; display: block; }

/* ---------- 운세서비스 카드 ---------- */
.cf { position: relative; height: 588px; overflow: hidden; user-select: none; touch-action: pan-y; }
.cf-card { position: absolute; top: 50%; left: 50%; width: 342px; height: 458px; margin: -229px 0 0 -171px; border-radius: 12px; overflow: hidden; transition: transform .6s ease, opacity .6s ease; box-shadow: 0 10px 26px rgba(0,0,0,.18); background: #ddd; }
.cf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.cf-txt { position: absolute; left: 22px; right: 18px; bottom: 26px; z-index: 2; color: #fff; }
.cf-txt b { display: block; font-size: 24px; font-weight: 600; line-height: 1.45; }
.cf-txt span { display: block; font-size: 16px; font-weight: 500; line-height: 1.6; }
.cf-nav { position: absolute; top: 50%; z-index: 20; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); box-shadow: 0 3px 12px rgba(0,0,0,.2); font-size: 24px; cursor: pointer; color: #333; }
.cf-prev { left: 18px; }
.cf-next { right: 18px; }

/* 상담 결제 */
.dhpay { max-width: 460px; margin: 0 auto; padding: 22px 20px; border: 1px solid #e9d5ff; border-radius: 16px; background: #fbf8ff; font-family: -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: #222; box-sizing: border-box; }
.dhpay * { box-sizing: border-box; }
.dhpay-title { font-size: 18px; font-weight: 800; color: #5b21b6; text-align: center; }
.dhpay-price { text-align: center; margin: 4px 0 10px; }
.dhpay-price b { font-size: 34px; font-weight: 900; color: #111; }
.dhpay-bank { text-align: center; font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.dhpay-bank small { display: block; font-size: 13px; font-weight: 400; color: #555; margin-top: 2px; }
.dhpay-btns { display: flex; flex-direction: column; gap: 9px; }
.dhpay-btns a, .dhpay-btns button { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 11px; font-size: 16px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; }
.dhpay .b-copy { background: #7c3aed; color: #fff; }
.dhpay .b-toss { background: #0064ff; color: #fff; }
.dhpay .b-kakao { background: #fee500; color: #191919; }
.dhpay-qr { display: flex; gap: 14px; align-items: center; background: #fffbe6; border: 1px solid #fde68a; border-radius: 12px; padding: 12px; }
.dhpay-qr img { width: 150px; height: auto; border-radius: 8px; background: #fff; flex: none; }
.dhpay-qr div { font-size: 13.5px; line-height: 1.7; color: #3f3f46; }
.dhpay-msg { font-size: 13px; min-height: 1em; margin: 8px 0 4px; line-height: 1.5; text-align: center; }
.dhpay-note { font-size: 12.5px; color: #666; line-height: 1.7; margin-top: 8px; }
.dhpay-note a { color: #7c3aed; font-weight: 700; }
.pay-sec { padding: 15px 20px; }

/* ---------- 딥호루스 예측 화면(iframe) ---------- */
.dh-wrap { width: 100%; overflow: visible; }
#dh_frame { width: 100%; height: 3470px; border: 0; display: block; }

/* ---------- 약관 ---------- */
.doc { max-width: 900px; margin: 0 auto; padding: 50px 20px 70px; }
.doc h1 { font-size: 26px; margin: 0 0 24px; }
.doc .body { white-space: pre-wrap; font-size: 14.5px; line-height: 1.8; color: #333; }

/* ---------- 바닥글 ---------- */
.foot { background: var(--foot); color: #fff; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 42px 20px 46px; font-size: 12px; line-height: 1.6; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .fm { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-bottom: 12px; }
.foot .fl { display: flex; flex-wrap: wrap; gap: 4px 15px; margin-bottom: 14px; }
.foot .fn { margin-bottom: 10px; }
.foot .fi { font-size: 13px; line-height: 1.6; margin: 0 0 12px; padding: 0; list-style: none; }
.foot .fi li { margin: 0 0 1px; }
.foot .cp { color: #fff; opacity: .9; }

/* ---------- 나타나는 효과 ---------- */
.ani { opacity: 0; }
.ani.in { opacity: 1; animation-duration: .7s; animation-fill-mode: both; }
.ani.zoom.in { animation-name: aZoom; }
.ani.bounce.in { animation-name: aBounce; }
.ani.up.in { animation-name: aUp; }
@keyframes aZoom { from { opacity: 0; transform: scale(.3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes aBounce { 0% { opacity: 0; transform: scale(.3); } 20% { transform: scale(1.1); } 40% { transform: scale(.9); } 60% { opacity: 1; transform: scale(1.03); } 80% { transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes aUp { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ani { opacity: 1 !important; animation: none !important; } }

/* ---------- 태블릿 ---------- */
@media (max-width: 1280px) {
  .hdr-side { width: 0; }
  .brand .txt { width: 190px; }
  .nav > ul > li > a { font-size: 19px; padding: 22px 6px; }
  .greet { grid-template-columns: 1fr 1fr; }
  .greet .col-r img { width: 100%; }
}

/* ---------- 모바일 ---------- */
@media (max-width: 900px) {
  :root { --hdr-h: 128px; }
  .hdr-in { height: 54px; }
  .brand .eye { width: 46px; height: 46px; }
  .mbar { display: block; border-top: 1px solid rgba(0,0,0,.06); }
  .mtop { display: flex; justify-content: center; gap: 6px; height: 42px; align-items: center; }
  .mtop a { text-decoration: none; color: var(--menu); font: 700 16px/1 'Noto Sans KR', 'Noto Sans', sans-serif; padding: 7px 14px; border-radius: 50px; white-space: nowrap; }
  .mtop a.on { background: var(--pill); }
  .msub { display: flex; justify-content: safe center; gap: 2px; height: 32px; align-items: center; background: rgba(255,255,255,.45); overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 0 6px; }
  .msub::-webkit-scrollbar { display: none; }
  .msub a { flex: none; text-decoration: none; color: #34434d; font: 500 13px/1 'Noto Sans KR', 'Noto Sans', sans-serif; padding: 6px 8px; border-radius: 50px; }
  .msub a.on { color: #111; font-weight: 700; background: rgba(225, 204, 45, .55); }
  .nav { display: none !important; }
  .hdr-in { padding: 0 10px; }
  .brand { gap: 8px; }
  .brand .eye { width: 54px; height: 54px; }
  .brand .txt { width: 160px; }
  .burger { display: block; margin-left: auto; border: 0; background: transparent; font: 700 14px/1 'Noto Sans KR', sans-serif; color: var(--menu); padding: 10px 8px; cursor: pointer; }
  .burger i { display: block; width: 24px; height: 2px; background: var(--menu); margin: 5px auto; border-radius: 2px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hdr-h)); height: calc(100dvh - var(--hdr-h)); background: rgba(240, 248, 253, .98); overflow-y: auto; padding: 10px 0 40px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid rgba(0,0,0,.07); }
  .nav > ul > li > a { padding: 16px 20px; font-size: 18px; }
  .nav .sub { display: block; position: static; transform: none; background: transparent; box-shadow: none; margin: -8px 0 6px; padding: 0 0 6px 16px; min-width: 0; }
  .nav .sub a { padding: 9px 20px; font-size: 15.5px; }
  .hdr-side { display: none; }
  .visual.first { height: 62vh; min-height: 300px; }
  .visual.h750 { height: 56.25vw; min-height: 260px; }
  .visual.full { height: 62vh; min-height: 300px; }
  .vt-center .l1, .vt-center .l2 { font-size: clamp(28px, 8.4vw, 64px); }
  .vt-center .l3 { font-size: clamp(20px, 5.6vw, 44px); }
  .vt-stagger .l1, .vt-stagger .l2 { font-size: clamp(38px, 11vw, 96px); }
  .vt-stagger .l2 { padding-left: 22%; }
  .gal { grid-template-columns: repeat(2, 1fr); padding: 0 5px; }
  .gal-wrap { padding: 20px 0 30px; }
  .gap-y { padding-top: 24px; padding-bottom: 24px; }
  .refs { padding-bottom: 24px; }
  .marquee button { margin-right: 8px; }
  .refs h2 { font-size: 22px; }
  .marquee button { width: 220px; height: 220px; }
  .greet { grid-template-columns: 1fr; gap: 26px; padding: 26px 16px; }
  .greet .col-l { gap: 20px; }
  .greet .col-r img { width: 100%; max-width: 610px; margin: 0 auto; }
  .cf { height: 440px; }
  .cf-card { width: 250px; height: 335px; margin: -167px 0 0 -125px; }
  .cf-txt b { font-size: 19px; }
  .cf-txt span { font-size: 13.5px; }
  .cf-nav { width: 38px; height: 38px; margin-top: -19px; font-size: 20px; }
  .cf-prev { left: 6px; } .cf-next { right: 6px; }
  .sec { padding: 10px 0; }
  .img-c { padding: 0 12px; }
  .w312 { width: 240px; }
  .lb .pv, .lb .nx { width: 44px; height: 44px; line-height: 44px; margin-top: -22px; font-size: 26px; }
  .foot-in { padding: 30px 16px 40px; }
}
