/* 신통방통 PC 랜딩 v7 — 6섹션 테마 */
:root {
  --top: #3d3568; --bottom: #1e1a3a; --deep: #14102a;
  --fg: #f6f1ff; --muted: rgba(226, 218, 248, .68); --dim: rgba(214, 206, 240, .5);
  --line: rgba(220, 200, 255, .13);
  --gold: #f2d38a;
  --s: .8;
}
/* ── 섹션별 테마 변수 ── */
body {
  --acc: #f2d38a; --acc-rgb: 242,211,138;
  --halo: rgba(180, 150, 255, .30);
  --r1: rgba(242, 211, 138, .14); --r2: rgba(227, 207, 251, .12);
  --pedge: #3b3556; --pedge2: #16132a; --pglow: rgba(170, 140, 255, .25);
  --sb: rgba(40, 32, 80, .55); --sline: rgba(220, 200, 255, .18);
  --f1: rgba(0,0,0,0); --f2: rgba(0,0,0,0); --f3: rgba(0,0,0,0);
}
body[data-theme="guinji"] { --acc: #e07a68; --acc-rgb: 224,122,104; --halo: rgba(110, 185, 215, .32);
  --r1: rgba(214, 96, 80, .24); --r2: rgba(141, 191, 214, .2); --pedge: #2c4a5c; --pedge2: #0f2130; --pglow: rgba(110, 180, 210, .3);
  --sb: rgba(14, 40, 58, .6); --sline: rgba(141, 191, 214, .2);
  --f1: rgba(90, 170, 200, .22); --f2: rgba(190, 60, 60, .22); --f3: rgba(242, 211, 138, .1); }
body[data-theme="saju"] { --acc: #e8bd62; --acc-rgb: 232,189,98; --halo: rgba(232, 180, 90, .26);
  --r1: rgba(232, 189, 98, .3); --r2: rgba(232, 189, 98, .14); --pedge: #4d3d22; --pedge2: #1d160c; --pglow: rgba(230, 170, 80, .26);
  --sb: rgba(40, 28, 14, .62); --sline: rgba(232, 189, 98, .22);
  --f1: rgba(200, 140, 60, .2); --f2: rgba(150, 50, 30, .2); --f3: rgba(240, 220, 160, .1); }
body[data-theme="tarot"] { --acc: #d7a8ff; --acc-rgb: 215,168,255; --halo: rgba(200, 120, 255, .32);
  --r1: rgba(215, 168, 255, .26); --r2: rgba(255, 140, 220, .16); --pedge: #4a2a66; --pedge2: #1c0d2a; --pglow: rgba(200, 110, 255, .32);
  --sb: rgba(42, 16, 66, .6); --sline: rgba(215, 168, 255, .22);
  --f1: rgba(200, 80, 220, .24); --f2: rgba(110, 70, 240, .26); --f3: rgba(120, 220, 240, .12); }
body[data-theme="wish"] { --acc: #ffbe72; --acc-rgb: 255,190,114; --halo: rgba(255, 170, 90, .3);
  --r1: rgba(255, 190, 114, .28); --r2: rgba(255, 140, 120, .16); --pedge: #5a3226; --pedge2: #22110c; --pglow: rgba(255, 160, 80, .3);
  --sb: rgba(58, 22, 22, .6); --sline: rgba(255, 190, 114, .22);
  --f1: rgba(255, 150, 70, .22); --f2: rgba(200, 60, 90, .2); --f3: rgba(255, 220, 150, .12); }
body[data-theme="face"] { --acc: #cdd8ec; --acc-rgb: 205,216,236; --halo: rgba(190, 205, 235, .26);
  --r1: rgba(205, 216, 236, .26); --r2: rgba(205, 216, 236, .12); --pedge: #3a4458; --pedge2: #121722; --pglow: rgba(180, 200, 235, .24);
  --sb: rgba(22, 28, 42, .62); --sline: rgba(205, 216, 236, .2);
  --f1: rgba(150, 170, 210, .2); --f2: rgba(180, 160, 220, .14); --f3: rgba(230, 236, 250, .1); }
body[data-theme="palm"] { --acc: #8fd6b2; --acc-rgb: 143,214,178; --halo: rgba(110, 210, 170, .26);
  --r1: rgba(143, 214, 178, .26); --r2: rgba(232, 200, 120, .16); --pedge: #23493d; --pedge2: #0b1d17; --pglow: rgba(100, 200, 160, .26);
  --sb: rgba(10, 36, 28, .62); --sline: rgba(143, 214, 178, .2);
  --f1: rgba(70, 180, 140, .22); --f2: rgba(220, 190, 110, .14); --f3: rgba(60, 140, 160, .16); }
/* [2026-10-21 추가 — 신당부적(shrine) 8번째 테마, 핸드오프 패키지 landing-shrine.css 병합] */
body[data-theme="shrine"] { --acc: #ec5a48; --acc-rgb: 236,90,72; --halo: rgba(230, 60, 40, .34);
  --r1: rgba(236, 90, 72, .30); --r2: rgba(242, 190, 120, .16); --pedge: #5e231e; --pedge2: #1f0908; --pglow: rgba(230, 60, 40, .38);
  --sb: rgba(40, 8, 8, .66); --sline: rgba(236, 90, 72, .26);
  --f1: rgba(200, 40, 30, .16); --f2: rgba(242, 160, 80, .10); --f3: rgba(120, 20, 40, .16); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-width: 1180px; overflow-x: hidden; background: var(--deep); color: var(--fg);
  font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ── 배경 ── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wash { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
body[data-theme="home"]   .wash[data-t="home"],
body[data-theme="guinji"] .wash[data-t="guinji"],
body[data-theme="saju"]   .wash[data-t="saju"],
body[data-theme="tarot"]  .wash[data-t="tarot"],
body[data-theme="wish"]   .wash[data-t="wish"],
body[data-theme="face"]   .wash[data-t="face"],
body[data-theme="palm"]   .wash[data-t="palm"],
body[data-theme="shrine"] .wash[data-t="shrine"] { opacity: 1; }

/* 메인: 보랏빛 밤하늘 */
.wash[data-t="home"] { background:
  radial-gradient(700px 700px at 50% 46%, rgba(160, 130, 240, .24), transparent 62%),
  radial-gradient(900px 600px at 0% 0%, rgba(110, 90, 200, .22), transparent 60%),
  linear-gradient(180deg, #3d3568 0%, #1e1a3a 62%, #14102a 100%); }
/* 귀인지도: 깊은 밤바다 남청 + 붉은 실 */
.wash[data-t="guinji"] { background:
  radial-gradient(760px 620px at 50% 46%, rgba(80, 150, 180, .22), transparent 62%),
  radial-gradient(900px 640px at 85% 15%, rgba(141, 191, 214, .16), transparent 60%),
  radial-gradient(900px 700px at 10% 95%, rgba(170, 50, 50, .26), transparent 62%),
  linear-gradient(180deg, #16344a 0%, #0d2233 55%, #07131e 100%); }
/* 정통사주: 먹빛 + 고서의 금 */
.wash[data-t="saju"] { background:
  radial-gradient(780px 640px at 50% 48%, rgba(220, 160, 70, .2), transparent 62%),
  radial-gradient(900px 700px at 100% 0%, rgba(120, 40, 24, .3), transparent 60%),
  radial-gradient(800px 600px at 0% 100%, rgba(90, 60, 30, .3), transparent 60%),
  linear-gradient(180deg, #2c2116 0%, #1a130c 55%, #0d0906 100%); }
/* 타로: 자줏빛 비밀의 방 */
.wash[data-t="tarot"] { background:
  radial-gradient(760px 640px at 50% 46%, rgba(190, 90, 240, .26), transparent 62%),
  radial-gradient(800px 600px at 90% 90%, rgba(230, 70, 170, .2), transparent 60%),
  radial-gradient(800px 600px at 5% 10%, rgba(90, 60, 220, .26), transparent 60%),
  linear-gradient(180deg, #2e1248 0%, #1b0a2e 55%, #0e0418 100%); }
/* 소원방: 촛불 켠 붉은 밤 */
.wash[data-t="wish"] { background:
  radial-gradient(900px 520px at 50% 105%, rgba(255, 150, 60, .34), transparent 64%),
  radial-gradient(700px 600px at 50% 46%, rgba(255, 170, 100, .14), transparent 62%),
  radial-gradient(800px 600px at 0% 0%, rgba(120, 30, 60, .3), transparent 60%),
  linear-gradient(180deg, #2d1320 0%, #2a1116 50%, #160808 100%); }
/* 관상: 달빛 은회색 + 먹 */
.wash[data-t="face"] { background:
  radial-gradient(520px 520px at 82% 14%, rgba(230, 236, 250, .2), transparent 62%),
  radial-gradient(760px 640px at 50% 48%, rgba(170, 185, 220, .14), transparent 62%),
  radial-gradient(800px 600px at 0% 100%, rgba(90, 80, 130, .22), transparent 60%),
  linear-gradient(180deg, #232c3e 0%, #151b28 55%, #0a0d14 100%); }
/* 손금: 비취빛 숲 */
.wash[data-t="palm"] { background:
  radial-gradient(760px 640px at 50% 46%, rgba(90, 200, 160, .2), transparent 62%),
  radial-gradient(800px 600px at 100% 100%, rgba(220, 180, 90, .14), transparent 60%),
  radial-gradient(800px 600px at 0% 0%, rgba(40, 120, 130, .26), transparent 60%),
  linear-gradient(180deg, #123329 0%, #0b211b 55%, #05110d 100%); }
/* 신당부적: 어두운 붉은 신당 안 */
.wash[data-t="shrine"] { background:
  radial-gradient(700px 900px at 50% 55%, rgba(200, 40, 30, .28), transparent 65%),
  linear-gradient(180deg, #1c0606 0%, #120404 60%, #070101 100%); }

/* 메인 오로라 */
.aurora, .flow { position: absolute; inset: -15%; filter: blur(80px); mix-blend-mode: screen; transition: opacity 1.8s ease; }
.aurora { opacity: .75; }
body:not([data-theme="home"]) .aurora { opacity: 0; }
.aurora i, .flow i { position: absolute; border-radius: 50%; }
.aurora i:nth-child(1) { width: 44vw; height: 30vw; left: 30%; top: 10%; background: rgba(170, 130, 255, .32); animation: au1 34s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 36vw; height: 26vw; left: 0%; top: 50%; background: rgba(110, 160, 230, .22); animation: au2 42s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 30vw; height: 24vw; left: 62%; top: 52%; background: rgba(242, 190, 140, .16); animation: au3 48s ease-in-out infinite; }
.aurora i:nth-child(4) { width: 26vw; height: 18vw; left: 8%; top: 4%; background: rgba(230, 160, 220, .16); animation: au2 56s ease-in-out -20s infinite reverse; }
/* 섹션 흐르는 빛 (색은 테마 변수) */
.flow { opacity: .85; }
.flow i { transition: background-color 1.8s ease; }
.flow i:nth-child(1) { width: 40vw; height: 26vw; left: 40%; top: 15%; background-color: var(--f1); animation: au1 40s ease-in-out infinite; }
.flow i:nth-child(2) { width: 34vw; height: 22vw; left: 5%; top: 55%; background-color: var(--f2); animation: au2 50s ease-in-out infinite; }
.flow i:nth-child(3) { width: 26vw; height: 20vw; left: 65%; top: 60%; background-color: var(--f3); animation: au3 46s ease-in-out infinite; }
@keyframes au1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10vw, 8vh) scale(1.2); } }
@keyframes au2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14vw, -10vh) scale(.85); } }
@keyframes au3 { 0%,100% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-8vw, -14vh) scale(.9); } }
#fx { transition: opacity 1s ease; }

.cursor { position: absolute; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--acc-rgb), .1), rgba(var(--acc-rgb), .04) 40%, transparent 65%);
  transform: translate(var(--cx, 50vw), var(--cy, 50vh)); }

/* ── HERO ── */
.hero { position: relative; z-index: 1; height: max(760px, 100vh); overflow: hidden; }
.grid { position: relative; z-index: 2; height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 56px; }
.top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; max-width: 1360px; margin: 0 auto; padding: 32px 48px 0; }
.wordmark { display: inline-flex; align-items: baseline; gap: 12px; }
.wordmark b { font: 700 21px var(--font-body); letter-spacing: -.01em; }
.wordmark i { font: 500 11px var(--font-display); font-style: normal; letter-spacing: .5em; color: var(--dim); }

/* 왼쪽 */
.brand { justify-self: end; width: 100%; max-width: 420px; animation: rise 1.6s cubic-bezier(.22,1,.36,1) both; }
.eyebrow { display: flex; align-items: center; gap: 14px; font: 500 11px var(--font-mono); letter-spacing: .42em; color: var(--gold); }
.eyebrow::after { content: ''; flex: 0 0 48px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; }
.qrbox { margin-top: 26px; display: flex; align-items: center; gap: 22px; }
.qrbox-img { flex: none; padding: 9px; border-radius: 16px; background: #fbf8ff; line-height: 0;
  box-shadow: 0 0 0 1px rgba(242,211,138,.35), 0 0 0 7px rgba(242,211,138,.06), 0 14px 40px rgba(0,0,0,.3); }
.qrbox-img img { width: 112px; height: 112px; display: block; }
.qrbox-t { font: 900 30px/1.3 var(--font-display); letter-spacing: -.03em; }
.qrbox-s { margin-top: 10px; font: 400 14px/1.6 var(--font-body); color: var(--muted); }
.cta-row { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.login { display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 12px 0 32px; border-radius: 999px;
  background: #fbf8ff; color: #1e1a3a; font: 700 16px var(--font-ui); letter-spacing: -.01em;
  box-shadow: 0 10px 40px rgba(var(--acc-rgb), .3), inset 0 1px 0 #fff; transition: box-shadow .6s, transform .2s; }
.login:hover { box-shadow: 0 12px 54px rgba(var(--acc-rgb), .5), inset 0 1px 0 #fff; }
.login:active { transform: scale(.97); }
.login span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1e1a3a; color: #fbf8ff; font-size: 14px; }
/* [2026-10-14 추가] APK 다운로드 보조 버튼 — login과 같은 높이·pill 형태이되
   outline 스타일로 2순위 CTA임을 시각적으로 구분(login=primary, download=secondary). */
.download { display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 12px 0 32px; border-radius: 999px;
  background: transparent; color: var(--fg); font: 700 16px var(--font-ui); letter-spacing: -.01em;
  border: 1.5px solid rgba(246,241,255,.3); transition: border-color .3s, background .3s, transform .2s; }
.download:hover { border-color: rgba(246,241,255,.6); background: rgba(246,241,255,.06); }
.download:active { transform: scale(.97); }
.download span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(246,241,255,.1); color: var(--fg); font-size: 14px; }
.menu { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: nowrap; justify-content: space-between; }
.menu a { position: relative; font: 500 14px var(--font-ui); color: var(--muted); letter-spacing: -.01em; white-space: nowrap; transition: color .3s; cursor: pointer; }
.menu a:hover, .menu a.on { color: var(--fg); }
.menu a.on::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.legal { margin-top: 40px; font-size: 11.5px; line-height: 1.85; color: var(--dim); }
.legal strong { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: rgba(246,241,255,.78); }
.legal p { white-space: nowrap; }
.legal i { display: inline-block; width: 1px; height: 9px; margin: 0 10px; background: rgba(220,200,255,.22); vertical-align: -1px; }
.legal small { display: block; margin-top: 8px; font-size: 10.5px; color: rgba(214,206,240,.34); }

/* 가운데 폰 */
.phone-wrap { position: relative; width: calc(414px * var(--s)); height: calc(868px * var(--s)); animation: rise 1.8s cubic-bezier(.22,1,.36,1) .15s both; }
.halo { position: absolute; left: 50%; top: 50%; width: calc(720px * var(--s)); height: calc(720px * var(--s)); transform: translate(-50%, -50%); border-radius: 50%;
  background-color: var(--halo); -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%);
  transition: background-color 1.8s ease; animation: halo 7s ease-in-out infinite; pointer-events: none; }
@keyframes halo { 0%,100% { opacity: .8; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.07); } }
.sigil { position: absolute; left: 50%; top: 50%; width: calc(1040px * var(--s)); height: calc(1040px * var(--s)); transform: translate(-50%, -50%); pointer-events: none; opacity: .38; transition: opacity 1.8s ease; }
.sigil svg { width: 100%; height: 100%; animation: spin2 180s linear infinite; }
.sigil.rev { width: calc(640px * var(--s)); height: calc(640px * var(--s)); opacity: .35; }
.sigil.rev svg { animation-direction: reverse; animation-duration: 120s; }
body:not([data-theme="home"]) .sigil { opacity: .08; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; transition: border-color 1.8s ease; }
.ring.r1 { width: calc(760px * var(--s)); height: calc(760px * var(--s)); border: 1px solid var(--r1); }
.ring.r2 { width: calc(900px * var(--s)); height: calc(900px * var(--s)); border: 1px dashed var(--r2); animation: spin 160s linear infinite; }
.phone { position: absolute; left: 0; top: 0; width: 414px; height: 868px; transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 62px; padding: 12px; background: #0b0915;
  box-shadow: 0 0 0 1.5px var(--pedge), 0 0 0 7px var(--pedge2), 0 50px 100px rgba(4, 4, 12, .6), 0 0 120px var(--pglow);
  transition: box-shadow 1.8s ease; }
.screen { position: relative; width: 390px; height: 844px; border-radius: 50px; overflow: hidden; background: linear-gradient(#3d3568, #1e1a3a); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spinner { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin2 .9s linear infinite; }

/* 오른쪽 스토리 박스 */
.story { position: relative; justify-self: start; width: 100%; max-width: 392px; padding: 28px 30px 26px; border-radius: 20px;
  background: linear-gradient(180deg, var(--sb), rgba(0,0,0,.25)); border: 1px solid var(--sline);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .9s ease, transform 1.2s cubic-bezier(.22,1,.36,1); }
/* [2026-10-21 버그 수정 — "링크복사/카카오톡 공유 버튼이 PC에서 전혀
   반응 없음" 현상의 진짜 원인(TDZ 버그와는 별개의 독립적인 버그)]
   .story는 숨김 상태(opacity:0)일 때 화면 뒤에 깔려 있어도 클릭이
   새지 않도록 pointer-events:none을 쓰는데, .story.show가 이를
   auto로 되돌리지 않고 있었다. 스토리 박스 안에 텍스트(타이핑 애니메이션)
   밖에 없을 때는 문제가 안 됐지만, 이번에 공유 버튼 2개가 박스 안에
   추가되면서 박스가 화면에 다 보이고 opacity:1이어도 버튼 자체가
   pointer-events:none을 상속해 클릭 이벤트를 아예 받지 못했다
   (container가 none이면 자식이 auto로 개별 지정하지 않는 한 그대로
   상속됨 — 실제 버튼(.share-btn)에는 pointer-events가 전혀 지정돼
   있지 않아 그대로 none을 물려받았다). */
.story.show { opacity: 1; transform: none; pointer-events: auto; }
.story::before { content: ''; position: absolute; left: 50%; top: -80px; width: 300px; height: 160px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(var(--acc-rgb), .24), transparent 70%); pointer-events: none; }
.story > * { position: relative; }
.story-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.story-tag { white-space: nowrap; display: flex; align-items: center; gap: 12px; font: 500 11px var(--font-mono); letter-spacing: .38em; color: var(--acc); }
.story-tag::before { content: ''; flex: 0 0 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--acc)); }
.story-title { margin-top: 10px; font: 900 26px var(--font-display); letter-spacing: -.03em; }
.story-seal { flex: none; width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; transform: rotate(-6deg);
  background: #c94a3b; color: #fff9e8; font: 900 22px var(--font-display); box-shadow: 0 2px 14px rgba(201, 74, 59, .55), inset 0 0 4px rgba(0,0,0,.2); }
.story-hook { margin-top: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--sline);
  font: 700 15.5px/1.55 var(--font-body); color: var(--acc); word-break: keep-all; }
.story-line { margin-top: 20px; min-height: calc(4 * 1.75em); font: 400 16.5px/1.75 var(--font-body); color: var(--fg);
  letter-spacing: -.01em; word-break: keep-all; transition: opacity .7s ease; }
.story-line.out { opacity: 0; }
.caret { display: inline-block; width: 2px; height: .95em; margin-left: 3px; vertical-align: -.12em; background: var(--acc); box-shadow: 0 0 8px var(--acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.story-dots { margin-top: 14px; display: flex; gap: 7px; }
.story-dots i { width: 16px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); transition: background .6s, width .6s; }
.story-dots i.on { width: 30px; background: var(--acc); }
.story-plus { margin-top: 20px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--sline); background: rgba(255,255,255,.03); }
.story-plus-t { font: 600 12px var(--font-ui); color: var(--acc); letter-spacing: .02em; }
.story-plus p { margin-top: 6px; font: 400 13.5px/1.65 var(--font-ui); color: var(--muted); word-break: keep-all; }

/* [2026-10-21 추가 — 메뉴별 공유 주소 + 카카오톡 공유]
   home(메뉴 미선택)일 때는 공유할 메뉴가 없으므로 기본은 숨김.
   landing-v7.js의 setTheme()이 테마가 바뀔 때 .show를 토글한다. */
.story-share { display: none; margin-top: 16px; gap: 10px; }
.story-share.show { display: flex; }
.share-btn {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 999px; border: 1px solid var(--sline); cursor: pointer;
  font: 600 13px var(--font-ui); letter-spacing: -.01em; transition: transform .15s, box-shadow .2s, background .2s;
  background: rgba(255,255,255,.04); color: var(--fg);
}
.share-btn:hover { background: rgba(255,255,255,.09); }
.share-btn:active { transform: scale(.97); }
.share-btn span { font-size: 15px; line-height: 1; }
.share-copy { border-color: var(--sline); }
.share-kakao { background: #FEE500; border-color: #FEE500; color: #3A1D1D; }
.share-kakao:hover { background: #ffe94d; }
/* 복사 성공/카카오 실패 등 짧은 피드백 토스트(story 박스 내부, 접근성 라이브 리전 포함) */
.story-share-toast {
  margin-top: 8px; font: 400 11.5px var(--font-ui); color: var(--muted);
  min-height: 1.4em; opacity: 0; transition: opacity .25s;
}
.story-share-toast.show { opacity: 1; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin2 { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aurora i, .flow i, .sigil svg, .halo, .ring.r2 { animation: none !important; } }

/* ============================================================
   [2026-10-21 추가 — 신당부적(shrine) 전용 배경 레이어, 핸드오프
   패키지 landing-shrine.css 병합]
   연출: 메뉴 클릭 → 붉은 빛이 새어 나오는 신당 문이 화면 가득 → 좌우로 열림
        → 왼쪽 '신당으로 오르는 계단', 오른쪽 '신당 제단'이 드러나는 가로 삼면화
   이미지: assets/shrine-door.png · shrine-stairs.png · shrine-altar.png (세로 571×1024)
   ============================================================ */
body[data-theme="shrine"] #stars { opacity: 0; }
#stars { transition: opacity 1.8s ease; }

.shrine { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
body[data-theme="shrine"] .shrine { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; }

/* 좌·우 패널 (삼면화) */
.sh-panel { position: absolute; top: 0; bottom: 0; width: 46vw; overflow: hidden; }
.sh-panel i { position: absolute; inset: -4%; background-repeat: no-repeat; background-size: cover; filter: brightness(.78) saturate(1.08);
  animation: sh-drift 80s ease-in-out infinite alternate; }
.sh-left  { left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 52%, transparent 100%); mask-image: linear-gradient(90deg, #000 0%, #000 52%, transparent 100%); }
.sh-left i  { background-image: url('assets/shrine-stairs.png'); background-position: 50% 42%; }
.sh-right { right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 52%, transparent 100%); mask-image: linear-gradient(270deg, #000 0%, #000 52%, transparent 100%); }
.sh-right i { background-image: url('assets/shrine-altar.png'); background-position: 50% 30%; animation-direction: alternate-reverse; animation-duration: 96s; }
@keyframes sh-drift { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }

/* 글자 가독성용 어둠 (왼쪽 메뉴 · 오른쪽 스토리 박스 아래) */
.sh-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,2,2,.72) 0%, rgba(8,2,2,.35) 26%, transparent 40%, transparent 60%, rgba(8,2,2,.3) 74%, rgba(8,2,2,.55) 100%),
    linear-gradient(180deg, rgba(8,2,2,.45) 0%, transparent 18%, transparent 78%, rgba(8,2,2,.75) 100%); }

/* 가운데: 문틈에서 새어 나오는 붉은 빛줄기 (폰 위·아래로 보임) */
.sh-beam { position: absolute; left: 50%; top: 0; bottom: 0; width: 220px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(60px 70% at 50% 50%, rgba(255, 90, 60, .55), transparent 70%); filter: blur(6px);
  animation: sh-beam 12s ease-in-out infinite; }
.sh-beam::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
  background: linear-gradient(180deg, transparent, rgba(255,170,140,.9) 20%, rgba(255,120,90,1) 50%, rgba(255,170,140,.9) 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 80, 50, .7); }
@keyframes sh-beam { 0%,100% { opacity: .75; } 50% { opacity: 1; } }

/* 바닥 촛불 빛 일렁임 */
.sh-candle { position: absolute; bottom: -10%; width: 46vw; height: 50vh; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 140, 60, .32), transparent 65%); animation: sh-flick 8s ease-in-out infinite; }
.sh-candle.l { left: -6vw; } .sh-candle.r { right: -6vw; animation-delay: -4s; }
@keyframes sh-flick { 0%,100% { opacity: .7; } 30% { opacity: 1; } 55% { opacity: .78; } 75% { opacity: .95; } }

/* ── 입장 연출: 신당 문이 열림 ── */
.sh-door { position: absolute; inset: 0; perspective: 1800px; pointer-events: none; }
.sh-door i { position: absolute; top: 0; bottom: 0; width: 50%; filter: brightness(.92);
  background:
    linear-gradient(var(--fd), #0d0303 calc(50vw - 33vh), rgba(13,3,3,0) calc(50vw - 22vh)),
    url('assets/shrine-door.png') no-repeat,
    radial-gradient(260px 300px at var(--lx) 30%, rgba(230,60,40,.35), transparent 70%),
    linear-gradient(180deg, #1a0606, #0a0202);
  background-size: auto, auto 112%, auto, auto; }
.sh-door i.l { --lx: 12%; --fd: 90deg; left: 0;  background-position: 0 0, calc(50vw - 31.2vh) 40%, 0 0, 0 0;   transform-origin: 0% 50%; box-shadow: inset -30px 0 60px rgba(255,60,40,.35); }
.sh-door i.r { --lx: 88%; --fd: 270deg; right: 0; background-position: 0 0, -31.2vh 40%, 0 0, 0 0; transform-origin: 100% 50%; box-shadow: inset 30px 0 60px rgba(255,60,40,.35); }
.sh-door b { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #ffb3a0;
  box-shadow: 0 0 30px 10px rgba(255, 70, 40, .85), 0 0 120px 40px rgba(255, 50, 30, .5); opacity: 0; }
body[data-theme="shrine"] .sh-door i.l { animation: sh-open-l 3.4s cubic-bezier(.65,0,.2,1) .9s both; }
body[data-theme="shrine"] .sh-door i.r { animation: sh-open-r 3.4s cubic-bezier(.65,0,.2,1) .9s both; }
body[data-theme="shrine"] .sh-door b   { animation: sh-seam 2.6s ease .1s both; }
@keyframes sh-open-l { 0% { transform: rotateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(84deg); opacity: 0; } }
@keyframes sh-open-r { 0% { transform: rotateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotateY(-84deg); opacity: 0; } }
@keyframes sh-seam { 0% { opacity: 0; } 30% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } }

/* 스토리 박스: 인물 소개용 추가 요소(신당 전용) */
.story-meta { margin-top: 6px; font: 500 10.5px var(--font-mono); letter-spacing: .32em; color: var(--dim); }
.story-plus p .pl-row { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 5px 0; }
.story-plus p .pl-row + .pl-row { border-top: 1px solid rgba(255,255,255,.06); }
.story-plus p .pl-row b { font-weight: 600; color: var(--acc); font-size: 12.5px; }
body[data-theme="shrine"] .story-line { min-height: calc(3 * 1.75em); }
body[data-theme="shrine"] .story-title { font-size: 23px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .sh-panel i, .sh-beam, .sh-candle { animation: none !important; }
  .sh-door { display: none; }
}

/* ============================================================
   [2026-10-21 추가 — 운영 반영 README §7-2 대표 승인 사항]
   모바일 반응형: "PC 가운데에 들어 있는 서비스 화면만 모바일 가로·세로
   전체에 표시, 좌우 안내 영역과 휴대폰 모형 테두리·배경 장식은 숨김".
   PC 레이아웃(이 블록 위의 모든 규칙)은 그대로 둔다 — 아래는 순수 추가
   오버라이드이며 max-width:1023px 아래에서만 적용되므로 데스크톱 화면
   에는 전혀 영향을 주지 않는다. (※ html,body{min-width:1180px}은 모바일
   실기기에서도 레이아웃 뷰포트 자체를 1180px로 밀어버려 아래 미디어쿼리
   자체가 무력화되므로, 이 블록 안에서만 min-width를 0으로 되돌린다.)
   ============================================================ */
@media (max-width: 1023px) {
  html, body { min-width: 0; }

  /* 배경 장식(오로라/별/커서 글로우)은 서비스 화면 위로 비치지 않도록
     완전히 제거한다 — PC 데스크톱 코드는 수정하지 않고 모바일 전용으로만
     숨긴다. */
  .bg, .cursor { display: none !important; }

  /* 상단 워드마크(로고) — 모바일에서는 서비스 화면을 전체로 쓰므로 숨긴다. */
  .top { display: none !important; }

  .hero { height: 100dvh; height: 100vh; overflow: hidden; }

  /* 3컬럼 그리드를 해제하고, 가운데 서비스 화면 컨테이너만 뷰포트 전체를
     차지하도록 한다. */
  .grid {
    display: block; height: 100dvh; height: 100vh;
    max-width: none; margin: 0; padding: 0;
  }

  /* 좌우 안내 영역(브랜드 소개·QR·메뉴·스토리 박스)은 숨긴다. */
  .brand, .story { display: none !important; }

  /* 가운데 서비스 화면: 휴대폰 모형 장식(halo/sigil/ring, 테두리, 패딩,
     그림자, 모서리 둥글림)을 모두 제거하고 뷰포트 전체 크기로 확장한다. */
  .phone-wrap {
    position: fixed; inset: 0; width: 100vw; height: 100dvh; height: 100vh;
    animation: none;
  }
  .halo, .sigil, .ring { display: none !important; }
  .phone {
    position: fixed; inset: 0; left: 0; top: 0;
    width: 100vw; height: 100dvh; height: 100vh;
    transform: none; border-radius: 0; padding: 0;
    background: #0b0915; box-shadow: none;
  }
  .screen {
    width: 100%; height: 100%; border-radius: 0;
  }
  .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
}

/* ============================================================
   [애드센스 승인 개선 — 2026-11-02] #seo-content 정적 설명 섹션
   ------------------------------------------------------------
   기존 .hero/.story/.bg/테마 전환(--acc 등) 로직과 완전히 분리된
   별도 고정 배색의 추가 섹션이다. .hero 아래(스크롤해야 보이는 영역)에
   위치하며, 기존 어떤 선택자도 수정하지 않았다 — 순수 추가(append)만
   했다. 모바일 전체화면 iframe(@media max-width:1023px의 .phone-wrap
   fixed 처리)과도 겹치지 않는다: 이 섹션은 일반 문서 흐름(static)에
   있어 fixed된 .phone-wrap 아래로 자연스럽게 스크롤되어 나타난다.
   ============================================================ */
#seo-content {
  position: relative;
  z-index: 1;
  background: var(--deep);
  padding: 64px 24px 80px;
  border-top: 1px solid rgba(220, 200, 255, .1);
}
#seo-content .seo-inner {
  max-width: 920px;
  margin: 0 auto;
}
#seo-content h1 {
  font-family: var(--font-display, 'Noto Serif KR', serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 16px;
}
#seo-content .seo-lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 36px;
}
#seo-content .seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  margin-bottom: 36px;
}
#seo-content .seo-grid article h2 {
  font-family: var(--font-display, 'Noto Serif KR', serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
#seo-content .seo-grid article p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dim);
}
#seo-content .seo-grid article a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#seo-content .seo-more {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  margin-bottom: 20px;
}
#seo-content .seo-more a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#seo-content .seo-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(214, 206, 240, .4);
  border-top: 1px solid rgba(220, 200, 255, .08);
  padding-top: 20px;
}

@media (max-width: 1023px) {
  #seo-content {
    padding: 40px 20px 56px;
  }
  #seo-content h1 { font-size: 20px; }
  #seo-content .seo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
