/* DearOthers — Different worlds. Same feed.
 * 기획안 05 디자인 방향: Dark navy/charcoal 기반, muted gold 포인트, 고딕 분위기를 살린 제목 타이포그래피(Cormorant Garamond)와 가독성 높은 본문 산세리프(Inter).
 * 호러 게임 UI 가 아니라 세련된 소셜 앱. 모바일 우선, 바텀 탭 다섯(Home · Discover · ＋ · Activity · Profile). 어두운 화면 하나만 쓴다.
 */
:root {
  --bg: #0b0e15;
  --bg2: #0f131c;
  --panel: #141925;
  --panel2: #1a2030;
  --line: rgba(232, 214, 170, .09);
  --line2: rgba(232, 214, 170, .17);
  --ink: #ece6d8;
  --ink2: #bdb6a6;
  --muted: #8a8577;
  --gold: #d8b87a;
  --gold2: #b8955a;
  --gold-ink: #1a1408;
  --red: #e2566a;
  --blue: #8db4e6;
  --ai: #7fa6e8;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --nav-h: 62px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { min-height: 100dvh; background: radial-gradient(120% 60% at 50% -10%, #182033 0%, var(--bg) 55%) fixed, var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.shell { width: min(560px, 100%); margin: 0 auto; min-height: 100dvh; position: relative; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(11, 14, 21, .55); }
@media (max-width: 560px) { .shell { border: 0; } }
.main { padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
body[data-view="post"] .main, body[data-view="new"] .main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px 18px; background: linear-gradient(var(--bg) 70%, rgba(11, 14, 21, 0)); }
.logo { font: 600 31px/1 var(--serif); letter-spacing: -.01em; color: var(--gold); white-space: nowrap; }
.logo em { font-style: italic; font-weight: 500; }
.logo sup { font: 600 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); vertical-align: super; margin-left: 4px; }
.top-r { display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink2); }
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.icon-btn.ghost { visibility: hidden; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: rgba(11, 14, 21, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar h1 { font: 600 17px/1.2 var(--sans); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title { font: 600 34px/1.05 var(--serif); color: var(--gold); padding: 6px 18px 4px; }

/* ── 탭 · 칩 ── */
.tabs { display: flex; gap: 8px; padding: 2px 14px 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 650; }
.chips { display: flex; gap: 7px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { padding: 6px 13px; font-size: 12.5px; }
.seg { display: flex; border-bottom: 1px solid var(--line); margin-top: 6px; }
.seg a, .seg button { flex: 1; text-align: center; padding: 12px 0 11px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; }
.seg .on { color: var(--ink); border-color: var(--gold); }

/* ── 아바타 ── */
.uav { position: relative; flex: none; display: inline-block; border-radius: 50%; overflow: hidden; background: var(--panel2); }
.uav img { width: 100%; height: 100%; object-fit: cover; }
.uav.gone { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.uav.gone svg { width: 62%; height: 62%; fill: currentColor; stroke: none; }
.uav[class*="ring"] { box-shadow: inset 0 0 0 2px var(--rc, var(--line2)); }
.ring0 { --rc: #d8b87a; } .ring1 { --rc: #8db4e6; } .ring2 { --rc: #e2566a; } .ring3 { --rc: #7cc49a; } .ring4 { --rc: #b593e0; } .ring5 { --rc: #e89a5c; } .ring6 { --rc: #6cc7c9; } .ring7 { --rc: #d986b4; }
/* The Others: 지어낸 인물의 그림 — 금빛 테두리, 오른쪽 아래 AI 표시. 그림이 없으면 머리글자 */
.oav { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff 10%), color-mix(in srgb, var(--c) 55%, #000 45%)); box-shadow: 0 0 0 1.5px var(--gold2), 0 0 0 3px rgba(11, 14, 21, .9); color: #f5ead2; font: 600 1em/1 var(--serif); }
.oav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.oav > b { font-weight: 600; }
.badge-ai { display: inline-flex; align-items: center; height: 15px; padding: 0 4px; border-radius: 4px; background: var(--ai); color: #0b1222; font: 700 9.5px/1 var(--sans); letter-spacing: .03em; vertical-align: 1px; }
.oav .badge-ai { position: absolute; right: -3px; bottom: -2px; height: auto; padding: 1px 3px; font-size: .2em; box-shadow: 0 0 0 1.5px var(--bg); z-index: 1; }

/* ── 글 카드 ── */
.feed { display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: 46px 1fr; gap: 0 11px; padding: 14px 16px 10px; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post .who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.post .who b { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .meta { color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0; }
.post .head > div { min-width: 0; }
.post .text { display: block; margin-top: 6px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .pic { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.post .pic img { width: 100%; max-height: 520px; object-fit: cover; }
.pic .ai { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; background: rgba(11, 14, 21, .72); color: var(--ink2); font: 600 10px/1.3 var(--sans); letter-spacing: .04em; }
.acts { display: flex; align-items: center; gap: 4px; margin: 8px 0 0 -8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; color: var(--ink2); font-size: 13.5px; }
.act svg { width: 20px; height: 20px; }
.act:hover { background: var(--panel); }
.act.like.on { color: var(--red); }
.act.like.on svg { fill: var(--red); stroke: var(--red); }
.act.mark.on { color: var(--gold); }
.act.mark.on svg { fill: var(--gold); stroke: var(--gold); }
.acts .sp { flex: 1; }
.more-btn { width: 30px; height: 30px; margin: -4px -6px 0 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--muted); flex: none; }
.more-btn:hover { background: var(--panel); }
.status { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); font-size: 13.5px; color: var(--ink2); display: flex; align-items: center; gap: 10px; }
.status.warn { border-color: rgba(226, 86, 106, .4); }
.status .btn { margin-left: auto; }
.care { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: #17202e; border: 1px solid #3a5272; color: #dbe7f6; line-height: 1.6; font-size: 14.5px; }
.care small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* ── 글 화면 · 답 ── */
.post.big { grid-template-columns: 50px 1fr; padding-top: 16px; border-bottom: 1px solid var(--line); }
.post.big .text { font-size: 16.5px; }
.replies-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; font-weight: 650; font-size: 15px; }
.replies-head span { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.reply { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; padding: 12px 16px 6px; }
.reply.child { padding-left: 66px; grid-template-columns: 30px 1fr; }
.reply .who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.reply .who b { font-weight: 650; }
.reply .meta { color: var(--muted); font-size: 12px; }
.reply .text { margin-top: 3px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply .to { color: var(--gold); font-weight: 500; }
.reply .pic { margin-top: 8px; max-width: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.reply .acts { margin-top: 2px; }
.reply .act { font-size: 12.5px; padding: 4px 8px; }
.reply .act svg { width: 17px; height: 17px; }
.reply.fresh { animation: glow 1.6s ease; }
@keyframes glow { from { background: rgba(216, 184, 122, .1); } to { background: transparent; } }
.typing { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--muted); font-size: 13px; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold2); animation: blink 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .2s; } .typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.reading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; text-align: center; color: var(--ink2); }
.reading .faces { display: flex; }
.reading .faces > * { margin-left: -8px; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40; width: min(560px, 100%); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 14, 21, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.composer .to-line { display: flex; align-items: center; gap: 6px; padding: 0 4px 6px; font-size: 12.5px; color: var(--muted); }
.composer .to-line b { color: var(--gold); font-weight: 600; }
.composer .to-line button { margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; }
.composer .row { display: flex; align-items: flex-end; gap: 8px; }
.composer .box { flex: 1; display: flex; align-items: flex-end; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); }
.composer textarea { flex: 1; min-height: 36px; max-height: 120px; padding: 8px 0; border: 0; background: none; resize: none; font-size: 15px; line-height: 1.4; outline: none; }
.composer .icon-btn { width: 36px; height: 36px; }
.composer .send { color: var(--gold); }
.composer .thumb { position: relative; display: inline-block; margin: 0 0 6px 4px; }
.composer .thumb img { height: 64px; border-radius: 10px; }
.composer .thumb button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); font-size: 14px; line-height: 1; }

/* ── 쓰기 ── */
.new-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.new-head .meta { color: var(--muted); font-size: 12.5px; }
.new-area { padding: 0 18px; }
.new-area textarea { width: 100%; min-height: 150px; border: 0; background: none; resize: none; outline: none; font-size: 17px; line-height: 1.55; }
.new-area textarea::placeholder { color: var(--muted); }
.new-tools { display: flex; align-items: center; gap: 4px; padding: 6px 12px 12px; border-bottom: 1px solid var(--line); }
.new-tools .cnt { margin-left: auto; color: var(--muted); font-size: 12.5px; padding-right: 6px; }
.new-pic { position: relative; margin: 6px 18px 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.new-pic img { width: 100%; max-height: 340px; object-fit: cover; }
.new-pic button { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(11, 14, 21, .8); font-size: 18px; }
.inspire { padding: 16px 16px 8px; }
.inspire h3 { font-size: 13.5px; font-weight: 500; color: var(--ink2); margin-bottom: 10px; }
.inspire button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; margin-bottom: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.inspire button:hover { border-color: var(--line2); }
.inspire button svg { width: 18px; height: 18px; color: var(--muted); }
.hint { margin: 4px 16px 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.mention-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 12px; scrollbar-width: none; }
.mention-row::-webkit-scrollbar { display: none; }
.mention-row button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; font-size: 11.5px; color: var(--ink2); }
.mention-row button span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62px; }

/* ── Discover ── */
.search-box { display: flex; align-items: center; gap: 8px; margin: 4px 14px 12px; padding: 0 14px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); color: var(--muted); }
.search-box input { flex: 1; height: 100%; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 14px 16px; }
@media (min-width: 500px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.ocard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.ocard .face { position: relative; aspect-ratio: 1 / 1.05; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 65%, #fff 5%), color-mix(in srgb, var(--c) 35%, #000 65%)); display: flex; align-items: center; justify-content: center; font: 600 54px/1 var(--serif); color: rgba(245, 234, 210, .85); }
.ocard .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ocard .face .badge-ai { position: absolute; top: 8px; left: 8px; }
.ocard .face .flag { position: absolute; top: 6px; right: 8px; font-size: 18px; line-height: 1; }
.ocard .body { display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 10px; flex: 1; }
.ocard .body b { font-size: 15px; font-weight: 650; }
.ocard .body .sp { color: var(--muted); font-size: 12px; }
.ocard .body q { color: var(--ink2); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0 8px; quotes: '“' '”'; }
.ocard .follow { margin-top: auto; }
.btn-follow { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold2); color: var(--gold); font-size: 13px; font-weight: 600; width: 100%; }
.btn-follow.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.section-title { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; font: 600 21px/1.2 var(--serif); color: var(--gold); }
.section-title a { font: 500 12.5px/1 var(--sans); color: var(--muted); }

/* ── 프로필 ── */
.cover { position: relative; height: 170px; background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--c) 60%, #000 30%), #0b0e15 75%); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.55) saturate(1.2); transform: scale(1.25); }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(11, 14, 21, 0) 40%, var(--bg)); }
.cover .bar-on { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; }
.cover .bar-on .icon-btn { background: rgba(11, 14, 21, .55); color: var(--ink); }
.prof { position: relative; padding: 0 18px 8px; margin-top: -58px; z-index: 2; }
.prof .row1 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.prof h1 { margin-top: 10px; font: 600 30px/1.1 var(--serif); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof h1 .badge-ai { font-size: 11px; height: 18px; padding: 0 6px; }
.prof .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.prof .bio { margin-top: 10px; color: var(--ink); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.prof .knows { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(216, 184, 122, .1); color: var(--gold); font-size: 12.5px; }
.stats { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 17px; font-weight: 650; }
.stats span { color: var(--muted); font-size: 12px; }
.stats .btn-follow { width: auto; margin-left: auto; height: 36px; padding: 0 22px; }
.about { padding: 6px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.about .card { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.about h3 { display: flex; align-items: center; gap: 8px; font: 600 18px/1.2 var(--serif); color: var(--gold); margin-bottom: 6px; }
.about h3 small { font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: var(--panel2); color: var(--ink2); }
.about p { font-size: 14px; line-height: 1.6; color: var(--ink2); }
.about .src { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.about ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.about li a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink2); }
.about li b { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 10px; border-radius: 999px; background: var(--panel2); font-size: 12.5px; color: var(--ink2); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.media-grid a { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--panel); }
.media-grid img { width: 100%; height: 100%; object-fit: cover; }
.people-row { display: flex; gap: 12px; overflow-x: auto; padding: 6px 16px 10px; scrollbar-width: none; }
.people-row::-webkit-scrollbar { display: none; }
.people-row a { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); text-align: center; }
.people-row a span:last-child { max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-list { margin: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.menu-list a, .menu-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; font-size: 14.5px; border-top: 1px solid var(--line); }
.menu-list > :first-child { border-top: 0; }
.menu-list svg { width: 20px; height: 20px; color: var(--muted); }
.menu-list .danger { color: var(--red); }
.menu-list .danger svg { color: var(--red); }

/* ── Activity ── */
.note { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: start; }
.note.fresh { background: rgba(216, 184, 122, .05); }
.note p { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.note p b { color: var(--ink); font-weight: 600; }
.note q { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; quotes: '“' '”'; overflow-wrap: anywhere; }
.note .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.note .ic { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel2); color: var(--gold); }

/* ── 바텀 탭 ── */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 50; width: min(560px, 100%); height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(11, 14, 21, .94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
body[data-view="post"] .nav, body[data-view="new"] .nav { display: none; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.nav a.on { color: var(--gold); }
.nav a.on svg { stroke-width: 2.1; }
.nav .plus { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(216, 184, 122, .25); }
.nav .plus svg { width: 24px; height: 24px; stroke-width: 2.2; }
.nav .dot { position: absolute; top: -1px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.nav .me-av { width: 24px; height: 24px; }

/* ── 버튼 · 공통 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-cta { background: var(--gold); color: var(--gold-ink); }
.btn-cta:disabled { opacity: .45; cursor: default; }
.btn-ghost { border: 1px solid var(--line2); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-block, .sheet .btn, .gate-card .btn { width: 100%; }
.btn-post { height: 32px; padding: 0 16px; font-size: 13.5px; }
.link-btn { color: var(--gold); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 28px; text-align: center; color: var(--ink2); }
.empty b { font: 600 22px/1.2 var(--serif); color: var(--ink); }
.empty p { font-size: 14px; line-height: 1.6; max-width: 340px; }
.empty .stamp { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); color: var(--gold); }
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--muted); font-size: 13.5px; }
.spinner { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.spinner.sm { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.more { display: flex; justify-content: center; padding: 14px 0 6px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 300; transform: translate(-50%, 20px); max-width: min(420px, calc(100% - 32px)); padding: 11px 16px; border-radius: 14px; background: #262e40; color: var(--ink); font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.muted { color: var(--ink2); font-size: 14px; line-height: 1.55; }
.tiny { color: var(--muted); font-size: 12px; line-height: 1.5; }
.err { color: var(--red); font-size: 13.5px; }
.warn { color: #f1c27d; font-size: 13.5px; line-height: 1.5; }
.intro { margin: 0 16px 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(216, 184, 122, .12), rgba(141, 180, 230, .06)); border: 1px solid var(--line2); }
.intro b { display: block; font: 600 20px/1.2 var(--serif); color: var(--gold); }
.intro p { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--ink2); }
.intro a { display: inline-block; margin-top: 8px; color: var(--gold); font-size: 13px; font-weight: 500; }
.intro .x { float: right; margin: -4px -6px 0 0; width: 28px; height: 28px; color: var(--muted); font-size: 18px; }

/* ── 입장 · 시트 ── */
.dw-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(120% 70% at 50% 0%, #1b2438, var(--bg) 60%); overflow-y: auto; }
.gate-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.gate-card .logo { font-size: 46px; }
.gate-card p { color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.gate-card .slogan { font: italic 500 24px/1.25 var(--serif); color: var(--ink); }
.gate-card input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); padding: 0 14px; font-size: 16px; }
.gate-card .faces { display: flex; justify-content: center; }
.gate-card .faces > * { margin-left: -10px; }
.overlay, .modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); animation: fade .2s ease both; }
@media (min-width: 600px) { .overlay, .modal { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.sheet { position: relative; width: min(480px, 100%); max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); background: var(--bg2); border: 1px solid var(--line2); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); animation: fadeUp .25s ease both; }
@media (min-width: 600px) { .sheet { border-radius: 22px; border-bottom: 1px solid var(--line2); } }
.sheet h2 { font: 600 26px/1.15 var(--serif); color: var(--gold); padding-right: 30px; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); }
.sheet textarea { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; background: var(--panel); font-size: 15px; resize: vertical; }
.menu-sheet { gap: 8px; }
.gbtn { min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.keep { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.pf-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel); min-height: 132px; justify-content: center; }
.pf-card b { font-size: 18px; }
.pf-own { display: flex; flex-direction: column; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.fld em { font-style: normal; color: var(--muted); }
.fld input { height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); padding: 0 12px; font-size: 15px; }
.pf-photo { display: flex; align-items: center; gap: 12px; }
.pf-final { font-size: 12.5px; color: var(--muted); text-align: center; }
.fb-stars { display: flex; gap: 6px; justify-content: center; }
.fb-stars button { font-size: 30px; color: var(--line2); }
.fb-stars button.on { color: var(--gold); }

/* ── 사용법 ── */
.guide { padding: 6px 18px 28px; }
.guide h2 { font: 600 28px/1.15 var(--serif); color: var(--gold); margin: 10px 0 8px; }
.guide h3 { font: 600 20px/1.2 var(--serif); color: var(--ink); margin: 22px 0 6px; }
.guide p, .guide li { color: var(--ink2); font-size: 14.5px; line-height: 1.65; }
.guide ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide .faces { display: flex; margin: 12px 0 4px; }
.guide .faces > * { margin-right: -8px; }
.guide .btn { margin-top: 22px; }

/* ── 자매품 (시리즈 공통 _handoff/sister/phase1.md — DearCameo 의 가로 한 줄) ── */
.sister { width: 100%; min-width: 0; max-width: 100%; padding: 22px 0 6px; }
.sister-title { display: block; text-align: center; font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sister-home { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sister-row { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 14px 4px; }
.sister-row::-webkit-scrollbar { display: none; }
.sister-card { flex: 0 0 198px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 1px 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.sister-icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 22%; object-fit: contain; background: #e9e4d8; }
.sister-name { align-self: end; font: 600 13.5px/1.2 var(--sans); white-space: nowrap; }
.sister-tag { align-self: start; font: 400 11px/1.3 var(--sans); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 설치 팝업 (시리즈 공통 install.js) ── */
.dwi { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 140; display: flex; justify-content: center; padding: 0 12px 12px; pointer-events: none; animation: fadeUp .4s ease both; }
body[data-view="new"] .dwi, body[data-view="post"] .dwi { display: none; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 12px; }
.dwi-head { display: flex; gap: 12px; align-items: flex-start; }
.dwi-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.dwi-head b { display: block; font-weight: 700; font-size: 16px; }
.dwi-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.dwi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dwi-btn { padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.dwi-main { background: var(--gold); color: var(--gold-ink); font-weight: 650; }
.dwi-ghost { border: 1px solid var(--line2); color: var(--ink2); }
.dwi-more { font-size: 13.5px; color: var(--ink); }
.dwi-steps { margin: 0; padding-left: 20px; line-height: 1.9; list-style: decimal; }
.dwi-ico { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; background: var(--bg); color: var(--gold); }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }
