/* N 운세 홈페이지 2판(2026-10-13) 「밤하늘에 펼친 금빛 지도」.
   대표님 평가(「화려하고 동적인 느낌이 없다」)에 따라 형제 앱(N 어시스트·N 트리거·N 월렛) 수준 이상으로 다시 만든다.
   첫 화면: Canvas 별하늘(깜빡임·유성·시차) + 천천히 도는 황도 12궁 원판 + 초승달 빛 + 거대한 제목.
   주인공 시연: 진짜 1909 원판 타로 뽑기(섞기 → 부채꼴 → 3D 뒤집기) · 생년월일 미니 시연(브라우저 안 계산).
   스크롤: 별가루가 모이며 제목 등장 · 기능 카드 뒤집혀 등장 · 사주 8글자 새김 · 오행 5색 흐름 · 앱 화면 견본 세 장 겹침.
   색은 디자인 규격 §2. 어두운 판이 기본, 시스템이 밝으면 내용 구역만 「새벽 양피지」(밤 섬 .night 구역은 늘 어둡게).
   외부 CDN·글꼴 없음. 「움직임 줄이기」면 모든 움직임을 멈추고 끝 장면을 보여 준다. */
:root {
  --bg: #0B0E1F; --surface: #161A33; --raised: #1E2342; --sunken: #0F1328;
  --border: #2C3256; --border-strong: #5D6699;
  --text: #F3EFE6; --text-2: #C4C7DC; --text-3: #9196B8;
  --gold: #E8C37A; --gold-2: #F0D49A; --gold-text: #E8C37A; --gold-soft: #3A3021; --on-gold: #1A1405;
  --amethyst: #B9A2FF; --amethyst-soft: #2A2350; --moon: #CDD7F7; --teal: #6FD6C6;
  --orange: #FF7B00; --orange-2: #FF9A3D; --orange-deep: #E86C00;
  --wood: #74D7A0; --wood-bg: #14302A; --fire: #FF907F; --fire-bg: #3B1C24; --earth: #E6C26C; --earth-bg: #33291A;
  --metal: #D8DDEA; --metal-bg: #272C40; --water: #8DB0FF; --water-bg: #17244C;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --serif: "Noto Serif KR", "Noto Serif CJK KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F4EE; --surface: #FFFFFF; --raised: #FFFFFF; --sunken: #EFEBE2;
    --border: #E4DED1; --border-strong: #8E8676;
    --text: #1B1D33; --text-2: #464966; --text-3: #5F627F;
    --gold: #A7801F; --gold-2: #876214; --gold-text: #876214; --gold-soft: #F6EBD3; --on-gold: #1B1D33;
    --amethyst: #6A4BD6; --amethyst-soft: #ECE6FF; --moon: #3C4A7A; --teal: #0B7568;
    color-scheme: light;
  }
}
/* 밤 섬: 판과 무관하게 어두운 값(히어로·시연·사주·화면 견본·마지막 권유) */
.night {
  --bg: #0B0E1F; --surface: #161A33; --raised: #1E2342; --sunken: #0F1328; --border: #2C3256; --border-strong: #5D6699;
  --text: #F3EFE6; --text-2: #C4C7DC; --text-3: #9196B8;
  --gold: #E8C37A; --gold-2: #F0D49A; --gold-text: #E8C37A; --gold-soft: #3A3021; --on-gold: #1A1405;
  --amethyst: #B9A2FF; --amethyst-soft: #2A2350; --moon: #CDD7F7; --teal: #6FD6C6;
  color: var(--text); color-scheme: dark;
  background: radial-gradient(60% 50% at 80% 0%, rgba(107, 79, 216, .16), transparent 70%), linear-gradient(180deg, #0B0E1F, #080A17);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
h1, h2, h3, p, li, b, span, summary { word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--gold-text); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { left: 12px; }
section { position: relative; scroll-margin-top: 64px; }
main { overflow-x: clip; }

/* ── 머리(형제 앱과 같은 모양: 로고 · 메뉴 · EN · 주황 「써 보기」) ── */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s; }
.topbar.solid { background: rgba(8, 10, 23, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(243, 239, 230, .08); }
.topbar .in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #F3EFE6; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.topbar nav { margin-left: auto; display: flex; gap: 2px; font-size: 14px; align-items: center; }
.topbar nav a { color: #C4C7DC; text-decoration: none; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.topbar nav a:hover { background: rgba(243, 239, 230, .08); color: #fff; }
.topbar nav a.lang { border: 1px solid rgba(243, 239, 230, .25); color: #fff; font-weight: 700; }
.topbar nav a.go { background: linear-gradient(135deg, var(--orange-2), var(--orange) 60%, var(--orange-deep)); color: #fff; font-weight: 800; box-shadow: 0 8px 24px -10px rgba(255, 123, 0, .9); }
@media (max-width: 760px) { .topbar nav a:not(.go):not(.lang) { display: none; } }

/* ── 공통 글자 ── */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
h2.big { font-size: clamp(32px, 5.4vw, 62px); line-height: 1.08; letter-spacing: -0.045em; margin: 14px 0 16px; font-weight: 900; text-wrap: balance; }
.sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 38em; margin: 0; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.hot { background: linear-gradient(100deg, #F0D49A 0%, #E8C37A 18%, #F5A84A 45%, var(--orange) 70%, #E8C37A 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-color-scheme: light) { section:not(.night) .hot { background-image: linear-gradient(100deg, #876214, #C9A04A 40%, #E86C00 75%, #876214); } }
.head { margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: 14px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.fire { background: linear-gradient(135deg, var(--orange-2), var(--orange) 55%, var(--orange-deep)); color: #fff; box-shadow: 0 18px 44px -14px rgba(255, 123, 0, .85); }
.btn.gold { background: linear-gradient(135deg, #F7E0A8, #E8C37A 55%, #C9A04A); color: #1A1405; box-shadow: 0 18px 44px -16px rgba(232, 195, 122, .8); }
.btn.line { background: rgba(243, 239, 230, .06); color: var(--text); border: 1px solid rgba(243, 239, 230, .2); }
.btn svg { width: 18px; height: 18px; }

/* 등장: 아래에서 떠오름 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* 별가루가 모이며 제목 등장(JS 가 .mote 를 만든다) */
.gather { position: relative; }
.gather .mote { position: absolute; left: var(--ox, 50%); top: var(--oy, 50%); width: var(--sz, 3px); height: var(--sz, 3px); border-radius: 50%; background: var(--c, #F0D49A); box-shadow: 0 0 8px var(--c, #F0D49A); opacity: 0; pointer-events: none; }
.gather.in .mote { animation: mote 1.1s var(--ease) var(--d, 0s) both; }
@keyframes mote { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.4); } 25% { opacity: 1; } 85% { opacity: .9; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(0, 0) scale(.2); } }
.gather .glow-in { opacity: 0; filter: blur(8px); transition: opacity .9s var(--ease) .45s, filter .9s var(--ease) .45s; }
.gather.in .glow-in { opacity: 1; filter: none; }

/* ── 첫 화면 ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding-block: 104px 72px; text-align: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero .aurora { position: absolute; inset: -10% -10% auto; height: 100%; z-index: -3; pointer-events: none; background: radial-gradient(38% 42% at 50% 46%, rgba(232, 195, 122, .22), transparent 70%), radial-gradient(30% 36% at 70% 22%, rgba(107, 79, 216, .35), transparent 70%), radial-gradient(34% 40% at 28% 70%, rgba(255, 123, 0, .16), transparent 70%); filter: blur(28px); animation: aur 18s ease-in-out infinite alternate; }
@keyframes aur { to { transform: translate3d(2%, 3%, 0) scale(1.08); } }
.wheel { position: absolute; left: 50%; top: 50%; width: min(1040px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -2; pointer-events: none; opacity: .5; }
.wheel svg { width: 100%; height: 100%; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.crescent { position: absolute; z-index: -2; right: max(-60px, calc(50% - 640px)); top: 70px; width: clamp(150px, 22vw, 280px); aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 0 30px rgba(240, 212, 154, .55)) drop-shadow(0 0 90px rgba(232, 195, 122, .35)); animation: bob 9s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(14px) rotate(-4deg); } }
@media (max-width: 700px) { .crescent { top: 64px; right: -36px; opacity: .8; } }
.hero .wrap { position: relative; display: grid; justify-items: center; }
.hero .icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(243, 239, 230, .1), 0 24px 70px -16px rgba(255, 123, 0, .75); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero .eyebrow { margin: 22px 0 0; font-size: 14px; letter-spacing: .2em; color: #C4C7DC; text-transform: uppercase; font-weight: 700; }
.hero h1 { font-size: clamp(46px, 9.2vw, 124px); line-height: 1.02; letter-spacing: -0.055em; margin: 14px 0 22px; font-weight: 900; color: #F3EFE6; text-shadow: 0 10px 60px rgba(11, 14, 31, .8); }
.hero h1 .hot { position: relative; display: inline-block; padding-bottom: .06em; text-shadow: none; filter: drop-shadow(0 0 28px rgba(232, 195, 122, .35)); animation: sheen 3.2s ease-in-out infinite alternate; }
.hero h1 .glint { position: relative; display: inline-block; }
@keyframes glint { 0% { background-position: 120% 0; } 45%, 100% { background-position: -120% 0; } }
.hero .lede { font-size: clamp(17px, 1.9vw, 21px); color: #C4C7DC; max-width: 32em; margin: 0 0 32px; line-height: 1.65; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero .chips li { font-size: 13px; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(232, 195, 122, .35); color: #F0D49A; background: rgba(22, 26, 51, .6); backdrop-filter: blur(6px); }
.hero .soon { font-size: 13px; color: #9196B8; margin-top: 14px; }
.scrollhint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border: 2px solid rgba(243, 239, 230, .35); border-radius: 14px; }
.scrollhint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #F3EFE6; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-height: 860px), (max-width: 600px) { .scrollhint { display: none; } }

/* ── 타로 뽑기(이 페이지의 주인공) ── */
.draw { padding-block: 110px 100px; overflow: hidden; }
.table { position: relative; margin: 8px auto 0; max-width: 980px; border-radius: 32px; padding: 2px; background: linear-gradient(150deg, rgba(232, 195, 122, .65), rgba(243, 239, 230, .06) 30%, rgba(243, 239, 230, .03) 70%, rgba(185, 162, 255, .5)); box-shadow: 0 60px 140px -60px rgba(232, 195, 122, .45); }
.table .felt { position: relative; border-radius: 30px; background: radial-gradient(70% 60% at 50% 30%, #1B2050, #0E1230 70%), #0E1230; overflow: hidden; padding: 20px 16px 22px; }
.table .felt::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(232, 195, 122, .18); border-radius: 22px; pointer-events: none; }
.status { position: relative; text-align: center; font-size: 15px; color: #C4C7DC; min-height: 26px; margin: 4px 0 6px; }
.status b { color: #F0D49A; }
.stage { position: relative; height: var(--stage-h, 360px); margin: 0 auto; touch-action: manipulation; }
.tcard { position: absolute; left: 50%; top: var(--top, 40px); width: var(--cw, 120px); aspect-ratio: 360 / 626; margin-left: calc(var(--cw, 120px) / -2); border: 0; padding: 0; background: none; cursor: pointer; perspective: 1000px; transform-origin: 50% 110%; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform .7s var(--ease), opacity .5s; z-index: var(--z, 1); -webkit-tap-highlight-color: transparent; }
.tcard:disabled { cursor: default; }
.tcard .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4, 0, .2, 1); }
.tcard.flip .inner { transform: rotateY(180deg); }
.tcard .face { position: absolute; inset: 0; border-radius: 9px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .85); }
.tcard .face svg, .tcard .face img { width: 100%; height: 100%; display: block; }
.tcard .front { transform: rotateY(180deg); background: #FBF8F1; }
.tcard .front img { object-fit: cover; }
.fanned .tcard:not(:disabled):hover, .fanned .tcard:not(:disabled):focus-visible { transform: translate(var(--x), calc(var(--y) - 22px)) rotate(var(--r)) scale(1.04); }
.fanned .tcard:not(:disabled):hover .face { box-shadow: 0 0 0 2px #E8C37A, 0 24px 50px -12px rgba(232, 195, 122, .6); }
.tcard.gone { opacity: 0; }
.tcard.chosen .face { box-shadow: 0 0 0 2px #E8C37A, 0 0 60px 6px rgba(232, 195, 122, .45), 0 30px 60px -18px rgba(0, 0, 0, .9); }
.shuffling .tcard { animation: riffle .3s ease-in-out 3 alternate; }
.shuffling .tcard:nth-child(odd) { animation-name: riffle2; }
@keyframes riffle { to { transform: translate(calc(var(--cw) * .62), -6px) rotate(8deg); } }
@keyframes riffle2 { to { transform: translate(calc(var(--cw) * -.62), -2px) rotate(-8deg); } }
.pilehint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 13px; color: #9196B8; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.fanned .pilehint, .picked .pilehint { opacity: 0; }
.halo { position: absolute; left: 50%; top: 45%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.6); border-radius: 50%; background: radial-gradient(circle, rgba(232, 195, 122, .32), transparent 62%); opacity: 0; transition: opacity .8s, transform 1.2s var(--ease); pointer-events: none; }
.picked .halo { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.reading-out { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 620px; margin: 6px auto 0; min-height: 40px; }
.reading-out .num { font-family: var(--serif); color: #9196B8; letter-spacing: .2em; font-size: 13px; }
.reading-out h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); color: #F0D49A; line-height: 1.2; }
.reading-out .kw { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.reading-out .kw span { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: #2A2350; color: #CDBBFF; }
.reading-out p { margin: 0; color: #C4C7DC; font-size: 16px; }
.reading-out .adv { color: #F3EFE6; font-family: var(--serif); font-size: 17px; }
.reading-out .fine { font-size: 12px; color: #9196B8; }
.reading-out > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reading-out.show > * { opacity: 1; transform: none; }
.reading-out.show > *:nth-child(2) { transition-delay: .08s; } .reading-out.show > *:nth-child(3) { transition-delay: .16s; } .reading-out.show > *:nth-child(4) { transition-delay: .24s; } .reading-out.show > *:nth-child(5) { transition-delay: .32s; } .reading-out.show > *:nth-child(6) { transition-delay: .4s; }
.draw .again { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.draw .credit { text-align: center; font-size: 12px; color: #9196B8; margin: 18px 0 0; }

/* ── 생년월일 미니 시연 ── */
.mini { padding-block: 100px; }
.mini .box { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; }
.mini form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.mini label { font-weight: 700; color: var(--text-2); font-size: 15px; }
.mini input[type="date"] { font: inherit; font-size: 17px; color: #F3EFE6; background: #0F1328; border: 1px solid #5D6699; border-radius: 14px; padding: 12px 14px; min-height: 52px; color-scheme: dark; max-width: 100%; }
.mini .err { text-align: center; color: #FF9AA9; font-size: 14px; min-height: 20px; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 0; padding: 16px; } }
.tile { position: relative; background: #161A33; border: 1px solid #2C3256; border-radius: 22px; padding: 20px; text-align: center; overflow: hidden; min-height: 196px; display: grid; align-content: center; gap: 4px; }
.tile::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%; background: radial-gradient(closest-side, rgba(232, 195, 122, .18), transparent); pointer-events: none; }
.tile small { color: #9196B8; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.tile .val { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 36px); color: #F3EFE6; line-height: 1.2; }
.tile .val.roll { color: #F0D49A; }
.tile .note { color: #C4C7DC; font-size: 14px; }
.tile svg.gauge { width: 120px; height: 120px; margin: 0 auto; display: block; }
.tile .gauge .arc { transition: stroke-dashoffset 1.4s var(--ease); }
.tile .score { position: absolute; left: 0; right: 0; top: 50px; font-size: 38px; font-weight: 900; color: #F3EFE6; font-variant-numeric: tabular-nums; }
.tile .lv { font-weight: 800; }
.mini .lucky { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mini .lucky span { font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid #2C3256; background: #161A33; color: #C4C7DC; }
.mini .lucky b { color: #F3EFE6; }
.lock { display: flex; gap: 8px; align-items: flex-start; justify-content: center; font-size: 13px; color: #9196B8; text-align: left; max-width: 640px; margin: 0 auto; }
.lock svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #6FD6C6; }

/* ── 사주 8글자 · 오행 흐름 ── */
.saju { padding-block: 100px; overflow: hidden; }
.saju .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 940px) { .saju .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.pillars { background: #161A33; border: 1px solid #2C3256; border-radius: 26px; padding: 20px 16px; box-shadow: 0 40px 100px -50px rgba(232, 195, 122, .4); }
.pillars .cap { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #9196B8; margin-bottom: 10px; flex-wrap: wrap; }
.pillars .cap b { font-family: var(--serif); color: #F0D49A; font-size: 17px; font-weight: 600; }
.pt { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.pt .h { font-size: 12px; color: #9196B8; font-weight: 700; }
.pt .g { font-size: 11px; color: #C4C7DC; min-height: 16px; }
.ch { position: relative; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; align-content: center; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 7vw, 44px); line-height: 1; }
.ch small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; margin-top: 4px; opacity: .85; }
.ch.wood { background: var(--wood-bg); color: var(--wood); } .ch.fire { background: var(--fire-bg); color: var(--fire); } .ch.earth { background: var(--earth-bg); color: var(--earth); } .ch.metal { background: var(--metal-bg); color: var(--metal); } .ch.water { background: var(--water-bg); color: var(--water); }
.ch.me { box-shadow: 0 0 0 2px #E8C37A; }
.ch.me::after { content: attr(data-me); position: absolute; top: -9px; right: -6px; font-family: var(--font); font-size: 10px; font-weight: 800; background: #E8C37A; color: #1A1405; border-radius: 999px; padding: 1px 6px; }
.ch .glyph { opacity: 0; transform: scale(1.5); filter: blur(6px); transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; transition-delay: calc(var(--i) * 170ms + .2s); }
.saju.in .ch .glyph { opacity: 1; transform: none; filter: none; }
.saju.in .ch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(232, 195, 122, .9), 0 0 26px rgba(232, 195, 122, .6); opacity: 0; animation: carve .9s ease-out calc(var(--i) * 170ms + .2s) both; pointer-events: none; }
@keyframes carve { 30% { opacity: 1; } 100% { opacity: 0; } }
.flow { position: relative; margin-top: 24px; height: 58px; border-radius: 16px; overflow: hidden; background: linear-gradient(90deg, var(--wood), var(--fire), var(--earth), var(--metal), var(--water), var(--wood)); background-size: 200% 100%; animation: flow 14s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.flow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 14, 31, .1), rgba(11, 14, 31, .55)); }
.flow ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0 8px; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; text-align: center; color: #0B0E1F; font-weight: 800; font-size: 14px; }
.flow li { display: flex; align-items: center; justify-content: center; gap: 6px; color: #0B0E1F; }
.flow li span { font-family: var(--serif); font-size: 20px; }
.flow svg { width: 16px; height: 16px; }
.bars { display: grid; gap: 8px; margin-top: 16px; }
.bars div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 10px; align-items: center; font-size: 13px; color: #C4C7DC; }
.bars i { display: block; height: 10px; border-radius: 5px; background: #0F1328; overflow: hidden; }
.bars i::after { content: ""; display: block; height: 100%; width: 0; border-radius: 5px; background: var(--c); transition: width 1.2s var(--ease) .9s; }
.saju.in .bars i::after { width: var(--w); }
.bars span { font-family: var(--serif); color: var(--c); font-size: 15px; }
.saju .points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.saju .points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; color: #C4C7DC; }
.saju .points svg { width: 24px; height: 24px; color: #E8C37A; }
.saju .points b { color: #F3EFE6; display: block; }

/* ── 앱 화면 견본 세 장(N 월렛처럼 기울여 겹침). 실제 캡처가 생기면 .phone 안을 <img src="img/screen-N.png"> 로 바꾼다. ── */
.screens { padding-block: 100px 140px; overflow: hidden; }
.deck3 { position: relative; height: 640px; margin-top: 30px; perspective: 1600px; }
.ph { position: absolute; left: 50%; top: 20px; width: 280px; height: 584px; margin-left: -140px; border-radius: 44px; padding: 11px; background: #05060E; border: 1px solid rgba(243, 239, 230, .16); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 6px rgba(243, 239, 230, .03); transition: transform 1s var(--ease); }
.ph.p1 { transform: translateX(-250px) rotateY(18deg) rotateZ(-6deg) translateY(calc(var(--sp, 0) * 30px)); z-index: 1; }
.ph.p2 { transform: translateY(calc(var(--sp, 0) * -20px)); z-index: 3; }
.ph.p3 { transform: translateX(250px) rotateY(-18deg) rotateZ(6deg) translateY(calc(var(--sp, 0) * 30px)); z-index: 2; }
@media (max-width: 860px) {
  .deck3 { height: 560px; }
  .ph { transform-origin: 50% 0; }
  .ph.p1 { transform: translateX(-34%) rotateZ(-8deg) scale(.78); }
  .ph.p3 { transform: translateX(34%) rotateZ(8deg) scale(.78); }
  .ph.p2 { transform: scale(.86); }
}
.ph .scr { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(220px 180px at 85% 4%, rgba(107, 79, 216, .3), transparent 70%), linear-gradient(180deg, #141A3F, #0B0E1F 55%, #080A17); padding: 36px 14px 14px; color: #F3EFE6; font-size: 11px; line-height: 1.45; text-align: left; }
.ph .scr::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 76px; height: 21px; border-radius: 12px; background: #05060E; z-index: 2; }
.ph .t { display: flex; justify-content: space-between; align-items: baseline; }
.ph .t b { font-size: 15px; }
.ph .t span, .ph .cap2 { color: #9196B8; font-size: 10px; }
.ph .card { background: #161A33; border: 1px solid #2C3256; border-radius: 16px; padding: 11px; margin-top: 9px; }
.ph .isle { background: linear-gradient(180deg, #12163A, #0B0E1F); border-color: #2C3256; }
.ph .serif { font-family: var(--serif); font-weight: 600; }
.ph .gold { color: #E8C37A; }
.ph .hg { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; }
.ph .hg svg { width: 74px; height: 74px; }
.ph .pills { display: flex; gap: 4px; margin-top: 8px; }
.ph .pills i { font-style: normal; font-size: 9.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid #2C3256; color: #C4C7DC; }
.ph .pills i.on { background: #13322F; border-color: #6FD6C6; color: #6FD6C6; }
.ph .mb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; font-size: 9px; color: #9196B8; }
.ph .mb u { display: block; height: 4px; border-radius: 2px; background: #2C3256; margin-top: 3px; text-decoration: none; position: relative; overflow: hidden; }
.ph .mb u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #E8C37A; }
.ph .half { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph .half .card { margin-top: 9px; }
.ph .mini-card { width: 40px; aspect-ratio: 360 / 626; border-radius: 4px; overflow: hidden; float: left; margin-right: 8px; box-shadow: 0 0 0 1px #E8C37A; }
.ph .mini-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
.ph .quick span { background: #161A33; border: 1px solid #2C3256; border-radius: 12px; padding: 9px 0; text-align: center; font-size: 10px; color: #C4C7DC; }
.ph .tabs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); background: #161A33; border: 1px solid #2C3256; border-radius: 18px; padding: 5px; font-size: 10px; text-align: center; color: #9196B8; }
.ph .tabs span { padding: 5px 0; }
.ph .tabs .on { background: #E8C37A; color: #1A1405; border-radius: 12px; font-weight: 800; }
.ph .pt { gap: 5px; }
.ph .pt .ch { font-size: 22px; border-radius: 9px; }
.ph .pt .ch small { font-size: 8px; margin-top: 2px; }
.ph .pt .h, .ph .pt .g { font-size: 9px; }
.ph .ob { display: grid; gap: 5px; margin-top: 6px; }
.ph .ob div { display: grid; grid-template-columns: 16px 1fr 12px; gap: 6px; align-items: center; font-size: 10px; }
.ph .ob i { height: 6px; border-radius: 3px; background: #0F1328; position: relative; overflow: hidden; }
.ph .ob i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 3px; }
.ph .dw { display: flex; gap: 5px; margin-top: 8px; }
.ph .dw span { flex: 1; text-align: center; border-radius: 8px; background: #1E2342; padding: 5px 0; font-size: 9px; color: #9196B8; }
.ph .dw span b { display: block; font-family: var(--serif); color: #F3EFE6; font-size: 12px; }
.ph .dw span.now { box-shadow: 0 0 0 1px #E8C37A; }
.ph .spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; text-align: center; }
.ph .spread img { width: 100%; aspect-ratio: 360 / 626; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px #E8C37A, 0 10px 24px -10px rgba(0, 0, 0, .9); display: block; }
.ph .spread span { display: block; margin-top: 5px; font-size: 9.5px; color: #9196B8; }
.ph .spread b { display: block; color: #F0D49A; font-family: var(--serif); font-size: 11px; }
.ph .tarot-felt { background: radial-gradient(70% 60% at 50% 30%, #1B2050, #0E1230 70%); border-color: rgba(232, 195, 122, .3); }
.ph .why { margin-top: 8px; color: #B9A2FF; font-size: 10px; }
.ph .fun { position: absolute; left: 14px; right: 14px; bottom: 58px; font-size: 9.5px; color: #9196B8; }

/* ── 약속 · 기능 · 근거 · 개인정보(판 따름) ── */
.plain { padding-block: 100px 20px; }
.promises { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.promise-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; overflow: hidden; }
.promise-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 195, 122, .16), transparent 70%); }
.promise-card svg { width: 38px; height: 38px; color: var(--gold); }
.promise-card h3 { font-size: 19px; margin: 12px 0 6px; }
.promise-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; perspective: 1200px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; opacity: 0; transform: rotateY(-70deg) translateZ(-40px); transform-origin: 0 50%; transition: opacity .7s var(--ease), transform .9s var(--ease), border-color .2s; transition-delay: calc(var(--i, 0) * 60ms); }
.features.in .feature { opacity: 1; transform: none; }
.feature:hover { border-color: var(--gold); }
.feature svg { width: 30px; height: 30px; color: var(--gold); }
.feature h3 { font-size: 16px; margin: 8px 0 4px; line-height: 1.35; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.feature .tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--amethyst); background: var(--amethyst-soft); border-radius: 999px; padding: 2px 8px; }
.proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.reading { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.reading .day { font-size: 13px; color: var(--text-3); }
.reading h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 4px 0 6px; color: var(--gold-text); }
.reading p { margin: 0 0 12px; color: var(--text-2); }
.reading details { background: var(--sunken); border-radius: 14px; padding: 4px 14px; }
.reading summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--text); list-style: none; }
.reading summary::-webkit-details-marker { display: none; }
.reading summary::before { content: "＋"; color: var(--gold-text); margin-right: 8px; }
.reading details[open] summary::before { content: "－"; }
.reading ol { margin: 0 0 12px; padding-left: 20px; color: var(--text-2); font-size: 15px; }
.reading ol li { margin: 6px 0; }
.han { font-family: var(--serif); color: var(--text); }
.fun { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.proof h3.sm { margin: 0 0 12px; font-size: 18px; }
.accuracy { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.accuracy li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; color: var(--text-2); font-size: 15px; }
.accuracy b { color: var(--text); display: block; }
.quiet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .quiet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quiet div { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.quiet b { display: block; margin-bottom: 4px; }
.quiet p { margin: 0; color: var(--text-2); font-size: 15px; }
.more { margin-top: 20px; color: var(--text-2); }
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--amethyst-soft); border-radius: 18px; padding: 18px 20px; color: var(--text); }
.notice svg { width: 28px; height: 28px; flex: none; color: var(--amethyst); }
.notice p { margin: 0; color: var(--text-2); }
.notice b { color: var(--text); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

/* ── 마지막 권유 + 스토어 단추(아직 링크 없음 「곧 나와요」) ── */
.final { text-align: center; padding-block: 130px 130px; overflow: hidden; margin-top: 80px; }
.final .orb { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 123, 0, .2), rgba(232, 195, 122, .08) 40%, transparent 65%); pointer-events: none; }
.final img { position: relative; width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(255, 123, 0, .9); animation: float 6s ease-in-out infinite; }
.final h2 { position: relative; font-size: clamp(36px, 6vw, 76px); letter-spacing: -0.05em; margin: 26px 0 12px; font-weight: 900; line-height: 1.05; }
.final p { position: relative; color: #C4C7DC; margin: 0 0 30px; font-size: 18px; }
.stores { position: relative; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(243, 239, 230, .28); cursor: default; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: grid; line-height: 1.2; text-align: left; }
.store small { font-size: 11px; color: #C4C7DC; }
.store b { font-size: 16px; }
.store em { font-style: normal; margin-left: 6px; font-size: 11px; font-weight: 800; color: #1A1405; background: #E8C37A; border-radius: 999px; padding: 2px 8px; }
.stores-note { position: relative; font-size: 13px; color: #9196B8; margin: 14px 0 0; }

/* ── 꼬리말(1판과 같음) ── */
.family { border-top: 1px solid var(--border); padding-block: 28px 8px; }
.family h2 { font-size: 14px; color: var(--text-3); margin: 0 0 12px; font-weight: 600; }
.family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.family a { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 14px; color: var(--text); text-decoration: none; }
.family a:hover { border-color: var(--gold); }
.family img { width: 22px; height: 22px; border-radius: 6px; }
footer.site { padding-block: 24px 40px; font-size: 13px; color: var(--text-3); }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--text-2); }

/* ── 움직임 줄이기: 모든 움직임을 끄고 끝 장면 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .feature, .gather .glow-in, .ch .glyph, .reading-out > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .gather .mote { display: none; }
  .bars i::after { width: var(--w) !important; }
}

/* 뽑은 카드가 올라오면 안내 줄은 감춘다(site.js setState) */
.status { transition: opacity .3s; }
.status.quiet { opacity: 0; }
