/* 조선고스트 홈페이지 공통 디자인 — 색·글꼴·메뉴·카드·버튼 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.min.css");
@import url("https://hangeul.pstatic.net/hangeul_static/css/maru-buri.css");

:root {
  --bg: #0C0719; --bg2: #140A29; --plum: #24123F;
  --text: #F3EEF9; --mute: #A99DBF; --line: rgba(255, 255, 255, .1);
  --accent: #EE5C9B; --accent-soft: rgba(238, 92, 155, .14);
  --hanji: #F6EFE3; --ink: #1B1426; --ink-mute: #6A5E78;
  --iri: linear-gradient(100deg, #FFA3D4 0%, #CDB1FF 34%, #A5E6FF 62%, #FFE9B5 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "MaruBuri", "Noto Serif KR", serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* 종이 결 */
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 글자 */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
/* 줄바꿈 — 제목과 머리 문구는 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, .lead { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
.lead > span, .vows p > span, .note > span, .faq p > span, .bubble > span, .soonbox p > span, .sj-out p > span { display: block; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 92px); line-height: 1.16; }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
.iri { background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #D9CFE8; max-width: 34em; }
.mute { color: var(--mute); }
.tag { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 5px 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; background: var(--accent-soft); color: #FFB4D4; }
.tag.light { background: rgba(27, 20, 38, .07); color: #8C2F5E; }

/* 떠 있는 메뉴 — Supanova 시안 기준: 화면 폭을 거의 채우는 알약 */
.nav { position: fixed; z-index: 40; top: 20px; left: 50%; transform: translateX(-50%); width: min(95%, 1280px);
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 7px 7px 18px; border-radius: 99px;
  background: rgba(18, 10, 36, .62); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -10px rgba(0, 0, 0, .5);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .1em; white-space: nowrap; }
.seal { width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--accent); color: var(--accent); font: 900 11px/1 "Noto Serif KR", serif; letter-spacing: -.05em; border-radius: 3px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 9px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; letter-spacing: .1em; color: rgba(243, 238, 249, .7); transition: all .5s var(--ease); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-cta { display: none; padding: 11px 24px; border-radius: 99px; font-size: 14px; font-weight: 500; letter-spacing: .1em; background: rgba(243, 238, 249, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); transition: all .5s var(--ease); white-space: nowrap; }
.nav-cta:hover { background: rgba(243, 238, 249, .12); transform: scale(1.02); }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; }
@media (min-width: 1080px) { .nav-links { display: flex; } .nav-cta { display: inline-flex; } .nav-btn { display: none; } }

.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(12, 7, 25, .86); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center; padding: 32px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet a { font: 700 30px/1.2 var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: all .6s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.sheet.open a { opacity: 1; transform: none; }
.sheet button { position: absolute; top: 20px; right: 20px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 8px 8px 26px; border-radius: 99px; font-weight: 700; font-size: 16px;
  background: var(--text); color: var(--bg); transition: all .5s var(--ease); white-space: nowrap; }
.btn .arr { width: 36px; height: 36px; border-radius: 50%; background: rgba(12, 7, 25, .09); display: grid; place-items: center; font-size: 18px; transition: transform .5s var(--ease); }
.btn:hover { transform: scale(1.02); } .btn:hover .arr { transform: translateX(3px); } .btn:active { transform: scale(.98); }
.btn.rose { background: #CF3A7C; color: #fff; } .btn.rose .arr { background: rgba(255, 255, 255, .2); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); } .btn.ghost .arr { background: rgba(255, 255, 255, .1); }
.btn.dark { background: var(--ink); color: #fff; } .btn.dark .arr { background: rgba(255, 255, 255, .14); }
.btn.sm { min-height: 42px; padding: 5px 5px 5px 18px; font-size: 14px; gap: 10px; } .btn.sm .arr { width: 32px; height: 32px; font-size: 16px; }

/* 이중 테두리 카드 */
.bz { display: block; border-radius: 24px; transition: transform .5s var(--ease), background .5s var(--ease); }
.bz > .in { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--bg2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); padding: 26px; }
a.bz:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .07); }
.bz.paper { background: rgba(246, 239, 227, .1); } .bz.paper > .in { background: var(--hanji); color: var(--ink); box-shadow: inset 0 1px 1px #fff; }
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-top: 18px; }
.go iconify-icon { transition: transform .5s var(--ease); } a:hover .go iconify-icon { transform: translateX(4px); }

/* 사진 자리 */
.ph { position: relative; overflow: hidden; background: #1E1136; }
.ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.ph.paper { background: linear-gradient(160deg, #EFE5D2, #E6D9C0); } .ph.paper::after { color: rgba(27, 20, 38, .45); }

/* 구간 */
section { padding: 96px 0; }
@media (min-width: 768px) { section { padding: 140px 0; } }
.sec-head { display: grid; gap: 16px; margin-bottom: 44px; }
.paper-sec { background: var(--hanji); color: var(--ink); } .paper-sec .mute { color: var(--ink-mute); } .paper-sec .lead { color: #4B4059; }

/* 등장 효과 */
.js .rv { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.on { opacity: 1; transform: none; filter: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: float 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; filter: none; } .float { animation: none; } }

/* 바닥 */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a:hover { color: #fff; }

/* 첫 화면 — 영상은 맨 위에 붙박여 계속 돌고, 아래 칸(.below)이 그 위로 올라온다. 글자는 영상 뒷부분에서 떠오른다 */
.hero { position: sticky; top: 0; height: 100dvh; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity 1.2s ease; }
.hero.out .hero-video { opacity: 0; transition: opacity 1.6s linear; }
/* 아이폰이 자동 재생을 막을 때 영상 가운데에 그리는 기본 재생 버튼을 숨긴다 */
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-video { pointer-events: none; }
/* 어두운 톤은 처음부터 깔아 둔다 (글자가 뜰 때 갑자기 어두워지지 않게) */
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(12, 7, 25, .6), rgba(12, 7, 25, .38) 30%, rgba(12, 7, 25, .38) 70%, rgba(12, 7, 25, .7)); }
.hero-txt { position: relative; z-index: 2; text-align: center; padding: 0 16px; margin-top: -4vh; }
.hero h1 { position: relative; display: inline-block; font: 900 clamp(44px, 10.8vw, 158px)/1.05 "Noto Serif KR", var(--serif); letter-spacing: .15em; margin-right: -.15em; color: var(--text); text-shadow: 0 10px 50px rgba(0, 0, 0, .75); }
.hero .sub { margin-bottom: clamp(20px, 3vw, 40px); font: 700 clamp(23px, 2.9vw, 42px)/1.4 "Noto Serif KR", var(--serif); letter-spacing: .46em; margin-right: -.46em; color: #E6DDF2; text-shadow: 0 4px 24px rgba(0, 0, 0, .8); }
.hero h1, .hero .sub { opacity: 0; filter: blur(22px); transform: scale(.94) translateY(26px); transition: opacity 2.2s var(--ease), filter 2.2s var(--ease), transform 2.2s var(--ease); }
.hero.settle .sub { transition-delay: 1.4s; } .hero.settle h1 { transition-delay: 2s; }
.hero.settle h1, .hero.settle .sub { opacity: 1; filter: none; transform: none; }
/* 휘갈겨 쓴 靈 — 화면 가운데 크게 먼저 뜨고(.show), 작아지며 제자리로 올라간다(.settle) */
.hero .mark { display: block; width: auto; height: clamp(84px, 15vh, 168px); margin: 0 auto clamp(14px, 2.2vh, 28px); opacity: 0; transform: translateY(var(--dy, 0px)) scale(var(--k, 3)); transition: opacity .6s ease, filter .6s ease, transform 0s .6s; }
.hero.show .mark { opacity: 1; transition: opacity 1s ease, filter 1s ease, transform 3s cubic-bezier(.45, 0, .2, 1); }
.hero.settle .mark { transform: none; }
/* 흐림·그림자 효과는 PC 에서만 — 아이폰 사파리는 이 효과를 건 투명 그림을 흰 네모로 그린다 */
@media (hover: hover) and (pointer: fine) {
  .hero .mark { filter: blur(16px) drop-shadow(0 8px 30px rgba(0, 0, 0, .7)); }
  .hero.show .mark { filter: blur(0) drop-shadow(0 8px 30px rgba(0, 0, 0, .7)); }
}
@media (prefers-reduced-motion: reduce) { .hero h1, .hero .sub, .hero .mark { transition: none; } }

/* 스크롤하면 영상이 살짝 다가오며 가라앉는다 (지원하는 브라우저에서만) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-video { animation: heroPush linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-shade::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: 0; animation: heroDim linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes heroPush { to { transform: scale(1.08); } }
@keyframes heroDim { to { opacity: .72; } }

/* 영상 아래 메뉴 칸 — 영상 위로 올라오는 막. 사진 칸은 모서리를 세우고 화면 끝까지 채운다 (젠틀몬스터식) */
.below { position: relative; z-index: 2; background: var(--bg); box-shadow: 0 -24px 60px rgba(0, 0, 0, .45); padding: 136px 0 88px; }
.below .lead, .strip { padding-left: 20px; padding-right: 20px; }
.below .lead { font: 900 clamp(30px, 5.2vw, 68px)/1.28 "Noto Serif KR", var(--serif); letter-spacing: -.01em; word-break: keep-all; text-wrap: balance; margin-bottom: 22px; }
.below .lead-sub { padding: 0 20px; margin-bottom: 124px; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.7; color: var(--mute, #A99DBB); word-break: keep-all; }
.tiles { display: grid; gap: 4px; padding: 0 4px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--bg2); aspect-ratio: 16 / 10; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.4s var(--ease); }
.tile.manshin img { object-position: 62% 50%; }
.tile.banner img { object-position: 62% 46%; } .tile.blog img { object-position: 55% 45%; }
.tile.dream img { object-position: 70% 42%; }
.tiles a[href$="ask/"] img { object-position: 60% 30%; } /* 혼불과 얼굴이 함께 들어오게 */
/* 칸마다 아주 옅은 네온 그라데이션 테두리 */
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: .5;
  background: linear-gradient(135deg, #FF5FC4, rgba(150, 110, 255, .35) 45%, #4FD2FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.035); }
/* 스크롤 효과(홈 스크립트가 .fx 를 붙였을 때만) — 문구와 칸이 떠오르고, 칸 안 그림은 조금 크게 깔아 스크롤보다 느리게 움직인다 */
.fx .lead, .fx .lead-sub, .fx .tile { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.fx .lead.in, .fx .lead-sub.in, .fx .tile.in { opacity: 1; transform: none; }
.fx .tile img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); transition: none; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 56px 20px 20px; background: linear-gradient(transparent, rgba(12, 7, 25, .88) 62%); }
.tile strong { font: 900 clamp(32px, 4.6vw, 64px)/1.15 "Noto Serif KR", var(--serif); letter-spacing: -.01em; }
.tile .say, .strip .say { font-size: 16px; line-height: 1.55; color: #DCD2EA; max-width: 30ch; }
.tile .go { position: absolute; top: 18px; right: 18px; font-size: 30px; color: #fff; transition: transform .6s var(--ease); }
.tile:hover .go, .tile:focus-visible .go { transform: translate(4px, -4px); }
.strip { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; align-items: end; margin-top: 64px; }
@media (min-width: 768px) {
  .below { padding: 176px 0 128px; } .below .lead, .strip { padding-left: 44px; padding-right: 44px; } .below .lead { margin-bottom: 28px; } .below .lead-sub { padding: 0 44px; margin-bottom: 160px; }
  /* 소개는 맨 위 가로로 긴 칸, 그 아래 세 칸을 한 줄에 놓는다 */
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { aspect-ratio: 4 / 5; }
  .tile.banner { grid-column: 1 / -1; aspect-ratio: 16 / 5; }
  .tile strong { font-size: clamp(30px, 2.9vw, 44px); }
  .tile .cap { padding: 120px 28px 28px; } .tile .go { top: 22px; right: 24px; font-size: 30px; }
  .strip { margin-top: 96px; }
}
/* 브라우저가 그리는 부분도 사이트 색으로 맞춘다 */
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html { scrollbar-color: #4A3A6B var(--bg); }

/* 카테고리 칸 */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bento .n { font-size: 12px; letter-spacing: .2em; color: var(--mute); font-weight: 600; }
.bento p { color: var(--mute); margin-top: 6px; font-size: 16px; }
.bento .paper p, .bento .paper .n { color: var(--ink-mute); }
.b-man .in { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
.b-man .ph { position: absolute; inset: 0; } .b-man .cap { position: relative; padding: 110px 28px 28px; background: linear-gradient(transparent, rgba(12, 7, 25, .92) 62%); }
.b-icon { font-size: 30px; color: #FFB4D4; margin-bottom: 26px; } .paper .b-icon { color: #A93A70; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 13px 18px; border-radius: 99px; background: #fff; color: var(--ink-mute); font-size: 15px; box-shadow: 0 10px 30px -18px rgba(27, 20, 38, .5); }
@media (min-width: 860px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .b-man { grid-column: span 7; grid-row: span 2; } .b-dream { grid-column: span 5; } .b-pray { grid-column: span 5; }
  .b-story { grid-column: span 4; } .b-luck { grid-column: span 3; } .b-about { grid-column: span 5; }
}

/* 만신 소개 구간 */
.feat { display: grid; gap: 32px; align-items: center; }
.feat .bz .in { padding: 0; } .feat .ph { aspect-ratio: 4 / 5; }
.feat ul { list-style: none; padding: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); }
.feat li { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); } .feat li b { width: 76px; flex: none; color: var(--mute); font-weight: 500; }
@media (min-width: 860px) { .feat { grid-template-columns: 5fr 6fr; gap: 72px; } }

/* 꿈해몽 구간 */
.dream { display: grid; gap: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips a, .chips span { padding: 10px 18px; border-radius: 99px; background: #fff; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(27, 20, 38, .08); transition: all .5s var(--ease); }
.chips a:hover { background: var(--ink); color: #fff; } .chips span { color: var(--ink-mute); background: transparent; }
.dream .bz .in { padding: 0; } .dream .ph { aspect-ratio: 4 / 3; } .dream .cap { padding: 22px 26px 26px; }
@media (min-width: 860px) { .dream { grid-template-columns: 6fr 5fr; gap: 72px; align-items: center; } }

/* 약속 구간 */
.vows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.vows > div { display: grid; gap: 8px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.vows i { font: 700 15px var(--serif); font-style: normal; color: #FFB4D4; }
@media (min-width: 860px) { .vows > div { grid-template-columns: 90px 1fr 1.3fr; align-items: baseline; gap: 32px; } }

/* 입점 문의 구간 */
.join { position: relative; overflow: hidden; background: var(--bg2); border-radius: 36px; padding: 56px 28px; display: grid; gap: 22px; justify-items: start; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (min-width: 860px) { .join { padding: 88px 72px; } }

/* 안쪽 페이지 머리 */
.page-head { padding: 150px 0 56px; background: var(--bg); }
.page-head .wrap { display: grid; gap: 18px; justify-items: start; }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }

/* ───── 안쪽 페이지 공통 ───── */
.page-head h1 { font-size: clamp(38px, 6vw, 72px); }
@media (max-width: 359px) { .page-head h1 { font-size: 32px; } }
/* 맨 위 컨셉 그림 — 메뉴 뒤까지 꽉 채우고 아래쪽은 바탕으로 스며든다 */
.page-head.art { padding-top: 0; }
.top-art { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 66% 50%; margin-bottom: 68px;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
/* 제목과 다음 구역 사이에 놓는 그림 — 화면 폭을 꽉 채우고 네 가장자리가 바탕으로 스며든다 */
.mid-art { margin: 8px 0 0; }
.mid-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.5; object-fit: cover; object-position: 52% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 19%, #000 66%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 19%, #000 66%, transparent); }
@media (min-width: 768px) { .mid-art { margin: 24px auto 0; max-width: none; } .mid-art img { aspect-ratio: 16 / 8; object-position: 50% 45%; } }
@media (min-width: 768px) { .top-art { aspect-ratio: auto; height: min(72vh, 720px); object-position: 50% 58%; margin-bottom: 84px; } }
.split { display: grid; gap: 40px; } @media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }
section.tight { padding: 56px 0; } @media (min-width: 768px) { section.tight { padding: 80px 0; } }
/* 소개 페이지의 묻고 답하기 — 제목 위아래를 넉넉하게 */
section.faq-sec { padding-top: 104px; } .faq-sec .split { gap: 32px; } @media (min-width: 768px) { section.faq-sec { padding-top: 56px; } }

/* 안내자 령 — 무지갯빛 혼불 */
.ryeong { position: relative; width: 84px; aspect-ratio: 1; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #fff, #E9DBFF 45%, #B79BF0 78%, #7C5BC4); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6), inset 0 -6px 14px rgba(27, 20, 38, .22); }
.ryeong::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; padding: 2px; background: conic-gradient(#FFA3D4, #CDB1FF, #A5E6FF, #FFE9B5, #FFA3D4);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .8; }
.ryeong b { font: 900 34px/1 "Noto Serif KR", serif; color: var(--ink); }
.ryeong.big { width: 120px; } .ryeong.big b { font-size: 50px; }
.says { display: flex; gap: 18px; align-items: flex-start; }
.bubble { position: relative; padding: 18px 22px; border-radius: 6px 24px 24px 24px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); font: 700 clamp(18px, 2vw, 22px)/1.6 var(--serif); }
.bubble small { display: block; font: 500 13px var(--sans); color: var(--mute); margin-bottom: 4px; letter-spacing: .08em; }
.paper-sec .bubble { background: #fff; box-shadow: inset 0 0 0 1px rgba(27, 20, 38, .08); } .paper-sec .bubble small { color: var(--ink-mute); }

/* 입력칸 */
.field { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 22px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: 0 16px 40px -22px rgba(27, 20, 38, .6), inset 0 0 0 1px rgba(27, 20, 38, .08); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 17px var(--sans); color: var(--ink); }
.area { width: 100%; min-height: 130px; border: 0; outline: 0; resize: vertical; border-radius: 20px; padding: 18px 20px; font: 400 17px/1.7 var(--sans); background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.area::placeholder { color: var(--mute); }
.form { display: grid; gap: 12px; } .form label { font-size: 14px; color: var(--mute); display: grid; gap: 6px; }
.form input, .form select { width: 100%; border: 0; outline: 0; border-radius: 14px; padding: 14px 16px; font: 400 16px var(--sans); background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.note { font-size: 14px; color: var(--mute); }

/* 꿈 사전 */
.dict { display: grid; gap: 14px; margin-top: 32px; } @media (min-width: 860px) { .dict { grid-template-columns: 1fr 1fr; } }
.dict article { background: #fff; border-radius: 22px; padding: 24px 26px; box-shadow: inset 0 0 0 1px rgba(27, 20, 38, .07); }
.dict h2 { display: flex; align-items: baseline; gap: 10px; font-size: 24px; } .dict h2 small { font: 500 13px var(--sans); color: var(--ink-mute); }
.dict dl { margin-top: 12px; border-top: 1px solid rgba(27, 20, 38, .1); } .dict dl div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(27, 20, 38, .08); } .dict dl div:last-child { border-bottom: 0; }
.dict dt { font-weight: 700; } .dict dd { color: #4B4059; } .dict dd i { font-style: normal; font-size: 12px; color: var(--ink-mute); margin-left: 6px; }
.luck { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 99px; margin-right: 6px; background: #E6F0E4; color: #2F6B3A; } .luck.bad { background: #F5E1E1; color: #9A2E2E; } .luck.mix { background: #F4EAD0; color: #7A580C; }
.none { display: none; padding: 26px; text-align: center; color: var(--ink-mute); }

/* 만신 목록·상세 */
.mlist { display: grid; gap: 16px; } @media (min-width: 860px) { .mlist { grid-template-columns: 7fr 5fr; } }
.mcard .in { padding: 0; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; } .mcard .ph { position: absolute; inset: 0; }
.mcard .cap { position: relative; padding: 120px 28px 28px; background: linear-gradient(transparent, rgba(12, 7, 25, .94) 60%); }
.empty .in { display: grid; place-content: center; text-align: center; gap: 10px; min-height: 260px; border: 1px dashed rgba(255, 255, 255, .16); background: none; box-shadow: none; }
.d-hero { position: relative; min-height: 92dvh; display: flex; align-items: flex-end; overflow: hidden; } .d-hero .ph { position: absolute; inset: 0; }
.d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12, 7, 25, .5), transparent 30%, rgba(12, 7, 25, .82) 74%, var(--bg)); }
.d-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; display: grid; gap: 14px; justify-items: start; }
.d-hero h1 { font-size: clamp(42px, 8vw, 96px); } .d-hero .who { font: 500 clamp(19px, 2.4vw, 26px) var(--serif); color: #D9CFE8; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; } .pills span { padding: 6px 14px; border-radius: 99px; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.video .in { padding: 0; } .video .ph { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.playbtn { width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); display: grid; place-items: center; font-size: 30px; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gal .ph { aspect-ratio: 1; border-radius: 18px; } .gal .tall { grid-row: span 2; aspect-ratio: auto; } .gal .wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 860px) { .gal { grid-template-columns: repeat(4, 1fr); } .gal .wide { grid-column: span 2; aspect-ratio: auto; } }
.qa { border-top: 1px solid rgba(27, 20, 38, .14); padding: 24px 0; } .qa:last-child { border-bottom: 1px solid rgba(27, 20, 38, .14); }
.qa q { quotes: none; display: block; font-size: 15px; color: var(--ink-mute); margin-bottom: 8px; } .qa p { font: 700 clamp(19px, 2.2vw, 24px)/1.6 var(--serif); color: var(--ink-mute); }
.info { border-top: 1px solid var(--line); } .info div { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); } .info dt { width: 84px; flex: none; color: var(--mute); }
.dock { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; padding: 7px; border-radius: 99px; background: rgba(20, 10, 41, .7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -12px rgba(0, 0, 0, .6); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; } .faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font: 700 clamp(18px, 2vw, 22px) var(--serif); display: flex; justify-content: space-between; gap: 16px; } .faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); } .faq p { margin-top: 12px; color: var(--mute); max-width: 44em; }
.soonbox h2 { font-size: clamp(22px, 2.2vw, 28px); }
.soonbox { border-radius: 30px; padding: 40px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; border: 1px dashed rgba(255, 255, 255, .18); }

/* 령에게 묻다 — 사주 입력과 풀이 */
.top-art.ask-art { object-position: 62% 26%; }
.sj { max-width: 640px; }
#sj-form { display: grid; gap: 28px; }
.sj-f { display: grid; gap: 8px; }
.sj-f > span { font: 700 18px var(--serif); } .sj-f em { font: 400 13px var(--sans); color: var(--mute); font-style: normal; margin-left: 6px; }
.sj-f small { font-size: 13px; color: var(--mute); }
.sj-f input { width: 100%; height: 58px; border: 0; outline: 0; border-radius: 16px; padding: 0 20px; font: 600 20px var(--sans); letter-spacing: .04em; background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.sj-f input:focus { box-shadow: inset 0 0 0 1.5px #FFB4D4; } .sj-f input::placeholder { color: rgba(169, 157, 191, .55); font-weight: 400; }
.sj-seg { display: flex; align-items: center; gap: 8px; margin-top: -14px; }
.sj-seg button, .sj-hours button { border: 0; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--sans); }
.sj-seg button { height: 40px; padding: 0 18px; border-radius: 99px; font-size: 15px; }
.sj-seg button.on, .sj-hours button.on { background: #FFB4D4; color: var(--ink); box-shadow: none; font-weight: 700; }
.sj-leap { margin-left: 8px; font-size: 15px; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; } .sj-leap[hidden] { display: none; }
.sj-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sj-hours button { min-height: 56px; border-radius: 14px; display: grid; place-content: center; gap: 1px; padding: 6px 4px; }
.sj-hours button b { font: 700 16px var(--serif); } .sj-hours button small { font-size: 11.5px; color: inherit; opacity: .7; }
.sj-hours button:first-child { grid-column: 1 / -1; min-height: 48px; }
.sj-err { color: #FF9DB8; font-size: 15px; min-height: 0; } .sj-err:empty { display: none; }
#sj-form .btn { justify-self: start; }
.sj-out { display: grid; gap: 34px; } .sj-out[hidden], #sj-form[hidden] { display: none; }
.sj-out h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sj-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sj-p { display: grid; justify-items: center; gap: 4px; padding: 16px 4px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.sj-p small { font-size: 13px; color: var(--mute); margin-bottom: 4px; } .sj-p b { font: 900 clamp(30px, 8vw, 44px)/1.15 "Noto Serif KR", serif; } .sj-p i { font-style: normal; font-size: 13px; color: var(--mute); margin-top: 4px; }
.sj-p.none b { color: rgba(255, 255, 255, .22); }
.el0 { color: #8FD9A8; } .el1 { color: #FF9DB8; } .el2 { color: #E9C98A; } .el3 { color: #DADDE8; } .el4 { color: #8FC4FF; }
.sj-els { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; margin-top: -18px; } .sj-els .zero { opacity: .4; }
.sj-out article { display: grid; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line); }
.sj-out article h3 { font-size: clamp(20px, 2.2vw, 24px); color: #FFB4D4; }
.sj-out article p { font-size: 17px; line-height: 1.85; color: #E6DDF2; }
.sj-out .sj-last p { font: 700 clamp(19px, 2.2vw, 23px)/1.7 var(--serif); color: var(--text); }
.sj-more { color: var(--mute); } .sj-btns { display: flex; flex-wrap: wrap; gap: 10px; } .sj-btns .btn { padding-right: 26px; }
.sj-foot { margin-top: 44px; }
/* 고스티 도령 얼굴 — 카드 그림에서 얼굴만 동그랗게 잘라 쓴다 */
.gosti-face { width: 84px; aspect-ratio: 1; flex: none; border-radius: 50%; background: url("tile-ask4.jpg") -262px -22px / 470px auto no-repeat; box-shadow: 0 0 0 2px rgba(205, 177, 255, .55), 0 10px 30px rgba(0, 0, 0, .5); }
/* 태어난 날 바퀴 — 가운데 줄에 걸린 숫자가 고른 값 */
.sj-wheel { position: relative; display: grid; grid-template-columns: 1.25fr 1fr 1fr; height: 230px; border-radius: 20px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.sj-wheel::before { content: ""; position: absolute; left: 10px; right: 10px; top: 92px; height: 46px; border-radius: 12px; background: rgba(255, 180, 212, .16); box-shadow: inset 0 0 0 1px rgba(255, 180, 212, .45); pointer-events: none; }
.sj-wheel .col { height: 230px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 92px 0; scrollbar-width: none; overscroll-behavior: contain; outline: 0; -webkit-overflow-scrolling: touch; }
.sj-wheel .col::-webkit-scrollbar { display: none; }
.sj-wheel .it { height: 46px; display: grid; place-items: center; scroll-snap-align: center; font: 600 19px var(--sans); color: var(--mute); cursor: pointer; transition: color .2s, transform .2s; }
.sj-wheel .it.on { color: var(--text); font-weight: 700; transform: scale(1.12); }
