/* DearStory — Great Stories Know No Borders.
 * 지도 · 여권: 옅은 하늘빛 바탕에 위도 · 경도 격자, 짙은 남색 글씨, 청록 링크, 금잔화색 도장 · 하이라이트. 큐레이터마다 자기 색 한 가지.
 * (2026-10-17 사용자: "디자인이 너무 DearWriter 랑 비슷하다. 그렇다고 까만색 배경은 너무 많이 했고" — 크림색 · 주홍 · 세리프를 버렸다)
 * 제목은 Bricolage Grotesque, 본문은 Inter. 원제(일본어 · 한국어 · 중국어 · 아랍어 …)는 시스템 글꼴로. */

:root {
  --bg: #eaf0f4;
  --paper: #ffffff;
  --panel: #f5f8fa;
  --panel2: #e1e8ee;
  --panel3: #d2dce5;
  --line: rgba(18, 35, 63, .11);
  --line2: rgba(18, 35, 63, .22);
  --ink: #12233f;
  --ink2: #3c4d68;
  --muted: #74839a;
  --accent: #0d6c78;        /* 청록: 링크 · 강조 */
  --accent-ink: #ffffff;
  --accent-soft: rgba(13, 108, 120, .1);
  --sun: #f2b234;           /* 금잔화: 도장 · 하이라이트 */
  --sun-soft: rgba(242, 178, 52, .32);
  --cta: #12233f;           /* 주요 버튼: 남색 */
  --cta-ink: #ffffff;
  --teal: #0d6c78;
  --grid: rgba(18, 35, 63, .055);
  --shadow: 0 1px 2px rgba(18, 35, 63, .06), 0 10px 26px rgba(18, 35, 63, .08);
  --serif: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Hiragino Sans', 'Noto Sans', 'Segoe UI', sans-serif;
  --orig: -apple-system, 'Hiragino Mincho ProN', 'Apple SD Gothic Neo', 'Noto Serif CJK', 'Noto Naskh Arabic', 'Geeza Pro', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a2b; --paper: #16243a; --panel: #142135; --panel2: #1d2d47; --panel3: #263955;
    --line: rgba(220, 232, 245, .1); --line2: rgba(220, 232, 245, .2);
    --ink: #e8eef6; --ink2: #b9c6d8; --muted: #8597b0;
    --accent: #5cc4cf; --accent-ink: #0f1a2b; --accent-soft: rgba(92, 196, 207, .14); --teal: #5cc4cf;
    --sun: #f5c25a; --sun-soft: rgba(245, 194, 90, .28); --cta: #f5c25a; --cta-ink: #0f1a2b; --grid: rgba(220, 232, 245, .05);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a2b; --paper: #16243a; --panel: #142135; --panel2: #1d2d47; --panel3: #263955;
  --line: rgba(220, 232, 245, .1); --line2: rgba(220, 232, 245, .2);
  --ink: #e8eef6; --ink2: #b9c6d8; --muted: #8597b0;
  --accent: #5cc4cf; --accent-ink: #0f1a2b; --accent-soft: rgba(92, 196, 207, .14); --teal: #5cc4cf;
  --sun: #f5c25a; --sun-soft: rgba(245, 194, 90, .28); --cta: #f5c25a; --cta-ink: #0f1a2b; --grid: rgba(220, 232, 245, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); overflow-x: hidden; }   /* 가로로 밀리지 않게 — 안드로이드 크롬(레드미 노트 11)은 html 의 clip 을 화면 전체에 넘기지 않았다 (2026-10-17 사용자 휴대폰) */
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; position: relative; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.orig { font-family: var(--orig); }

/* 넓은 화면: 가운데 한 단, 양옆은 종이 결 */
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 47px, var(--grid) 47px 48px), repeating-linear-gradient(90deg, transparent 0 47px, var(--grid) 47px 48px); }
.shell { position: relative; z-index: 1; overflow-x: clip; width: min(560px, 100%); margin: 0 auto; min-height: 100dvh; background: color-mix(in srgb, var(--bg) 88%, transparent); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 600px) { .shell { box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(52, 42, 28, .08); } }
.main { min-height: 100dvh; }

/* ── 머리 ── */
.logo { font: 800 24px/1 var(--serif); letter-spacing: -.035em; color: var(--ink); display: inline-flex; align-items: baseline; gap: 0; }
.logo em { font-style: normal; color: var(--accent); }
.logo em::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--sun); vertical-align: 2px; }
.logo sup { font: 600 9px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; position: relative; top: -10px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 16px 8px; }
.top-l, .top-r { display: flex; align-items: center; gap: 2px; min-width: 0; }
.top-l .icon-btn:first-child { margin-left: -10px; }
.top-r { margin-right: -6px; }
.page { font: 700 24px/1.1 var(--serif); letter-spacing: -.02em; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink2); flex: none; }
.icon-btn:active { background: var(--panel2); }
.icon-btn.ghost { visibility: hidden; }
.icon-btn.on { color: var(--accent); }
.icon-btn.on svg { fill: currentColor; }
.me-btn { position: relative; }
.me-btn .dot { position: absolute; top: 5px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2px; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-title { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; }
.bar-title b { font: 700 16px/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 단추 · 칩 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.btn-cta { background: var(--cta); color: var(--cta-ink); box-shadow: 0 6px 18px rgba(18, 35, 63, .18); }
.btn-ghost { border: 1px solid var(--line2); color: var(--ink); background: var(--paper); }
.btn-danger { background: rgba(196, 59, 59, .08); border: 1px solid rgba(196, 59, 59, .45); color: #c43b3b; }
.btn-block, .sheet .btn, .gate-card .btn { width: 100%; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.pill { display: inline-block; font: 600 10px/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; color: var(--ink2); border: 1px solid var(--line2); vertical-align: 1px; }
.pill.red { color: #c43b3b; border-color: #c43b3b; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); font-size: 13.5px; white-space: nowrap; background: var(--paper); cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.mood { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--panel2); color: var(--ink2); }
.link-btn { color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ── 홈 ── */
.hero { position: relative; margin: 2px 14px 4px; padding: 26px 22px 22px; border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%;
  background: repeating-linear-gradient(90deg, transparent 0 18px, var(--grid) 18px 19px), repeating-linear-gradient(0deg, transparent 0 18px, var(--grid) 18px 19px); border: 1.5px solid var(--line2); }
.hero::after { content: 'NO BORDERS'; position: absolute; right: 16px; top: 22px; padding: 6px 9px; border: 2px solid var(--sun); border-radius: 6px; color: var(--sun); font: 800 9.5px/1 var(--sans); letter-spacing: .14em; transform: rotate(-9deg); opacity: .9; }
.kicker { font: 700 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero h2, .slogan { font: 800 31px/1.08 var(--serif); letter-spacing: -.035em; color: var(--ink); }
.hero h2 em, .slogan em { font-style: normal; background: linear-gradient(transparent 58%, var(--sun-soft) 58%, var(--sun-soft) 92%, transparent 92%); padding: 0 2px; }
.hero p:not(.kicker) { margin: 12px 0 0; color: var(--ink2); font-size: 14.5px; max-width: 36ch; }
.flags { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 14px; font-size: 18px; letter-spacing: 2px; }
.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 16px 12px; }
.sec-h h3 { font: 700 19px/1.2 var(--serif); letter-spacing: -.02em; }
.sec-h h3 i { font: 500 12.5px var(--sans); font-style: normal; color: var(--muted); margin-left: 6px; }
.sec-h a, .sec-h button { font-size: 13px; color: var(--accent); white-space: nowrap; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 8px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.foot { padding: 26px 22px 30px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.quiet { padding: 4px 16px 0; color: var(--muted); font-size: 13.5px; }

/* 오늘의 서가: 칸 열둘 */
.shelf { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.shelf::-webkit-scrollbar { display: none; }
.slot { flex: none; width: 138px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.slot .meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slot .meta b { color: var(--ink); font-weight: 600; }
.slot .t { font: 700 14px/1.25 var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot .a { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.wait .cover { border-style: dashed; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; }
.slot.wait .cover span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.slot.wait .cover > b { font: 600 15px var(--serif); color: var(--ink2); }
.slot.now .cover { border-color: var(--accent); }

/* 표지 (실제 표지가 아니라 AI 가 그린 한 장 — 없으면 제목 카드) */
.cover { --c: #8a5a3b; position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 6px 10px 10px 6px; overflow: hidden; border: 1px solid var(--line2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 78%, #000) 0, color-mix(in srgb, var(--c) 92%, #000) 60%, color-mix(in srgb, var(--c) 60%, #000) 100%);
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .12), var(--shadow); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .ai { position: absolute; z-index: 2; top: 7px; right: 7px; font: 600 8.5px/1 var(--sans); letter-spacing: .1em; padding: 3px 5px; border-radius: 4px; color: #fff; background: rgba(0, 0, 0, .45); }
.cover .flag { position: absolute; z-index: 2; left: 7px; top: 6px; font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.cover .tc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px; color: #fff8ec; }
.cover .tc::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(255, 248, 236, .3); border-radius: 4px; }
.cover .tc b { font: 800 15px/1.15 var(--serif); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cover .tc i { font: 400 11px var(--orig); font-style: normal; opacity: .8; }
.cover.paint .tc { display: none; }

/* 책 격자 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 0 16px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bcard .t { font: 700 14.5px/1.25 var(--serif); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .a { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .by { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); }
.brow { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.brow .cover { width: 54px; flex: none; }
.brow .cover .tc b { font-size: 9px; }
.brow .cover .tc i, .brow .cover .ai { display: none; }
.brow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brow-body b { font: 700 15px/1.25 var(--serif); }
.brow-body span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 큐레이터 그림: 지어낸 인물의 그림 + 오른쪽 아래 AI 표시. 그림이 없으면 머리글자 */
.cav { --c: #8a5a3b; position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; background: var(--c); color: #fff; font: 600 1em/1 var(--serif); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--c); }
.cav img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cav i { position: absolute; z-index: 1; right: -3px; bottom: -3px; font: 700 7.5px/1 var(--sans); font-style: normal; padding: 2px 3px; border-radius: 4px; background: var(--ink); color: var(--bg); letter-spacing: .04em; }
.cav .fl { position: absolute; z-index: 1; left: -4px; bottom: -4px; font-size: .55em; }
.crow { display: flex; gap: 14px; overflow-x: auto; padding: 6px 16px 10px; scrollbar-width: none; }
.crow::-webkit-scrollbar { display: none; }
.crow a { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.crow b { font-size: 12.5px; font-weight: 600; }
.crow span { font-size: 10.5px; color: var(--muted); line-height: 1.2; }

/* Talk 카드 */
.tlist { display: flex; flex-direction: column; gap: 10px; padding: 0 14px; }
.tc-card { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.tc-card:active { background: var(--panel2); }
.tc-card .cover { width: 46px; flex: none; align-self: flex-start; }
.tc-card .cover .tc, .tc-card .cover .ai, .tc-card .cover .flag { display: none; }
.tc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.tc-where { font-size: 11.5px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-text { font: 600 15px/1.42 var(--serif); letter-spacing: -.01em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tc-meta { margin-top: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.tc-meta .nick { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta .cnt { display: inline-flex; align-items: center; gap: 3px; }
.tc-meta svg { width: 14px; height: 14px; }
.tc-card.spoil:not(.shown) .tc-text { filter: blur(6px); user-select: none; }
.tc-card.spoil:not(.shown) .tc-body { position: relative; }
.tc-card.spoil:not(.shown) .tc-body::after { content: 'Spoilers — tap to reveal'; position: absolute; left: 0; top: 40%; font-size: 12px; color: var(--ink2); }

/* 프로필 그림 (사람) */
.uav { display: inline-block; border-radius: 50%; overflow: hidden; flex: none; background: var(--panel3); box-shadow: 0 0 0 1.5px var(--ring, var(--line2)); }
.uav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uav.gone { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.uav.gone svg { width: 70%; height: 70%; fill: currentColor; stroke: none; }
.ring0 { --ring: #b4432c; } .ring1 { --ring: #1f5f5b; } .ring2 { --ring: #b8892f; } .ring3 { --ring: #6b4e8a; }
.ring4 { --ring: #c27a43; } .ring5 { --ring: #3a6ea5; } .ring6 { --ring: #8b8070; } .ring7 { --ring: #a8546a; }

/* ── 책 화면 ── */
.bhero { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 18px 16px 6px; align-items: end; }
.bhero .cover { width: 132px; }
.bh-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-txt h1 { font: 800 24px/1.1 var(--serif); letter-spacing: -.03em; overflow-wrap: anywhere; }
.bh-orig { font: 400 15px/1.35 var(--orig); color: var(--ink2); overflow-wrap: anywhere; }
.bh-orig span { display: block; font: 400 12px var(--sans); letter-spacing: .02em; color: var(--muted); }
.bh-by { font-size: 13.5px; color: var(--ink2); }
.bh-by b { color: var(--ink); font-weight: 600; }
.bh-note { font-size: 11px; color: var(--muted); }
.hook { margin: 16px 16px 4px; padding-left: 12px; border-left: 3px solid var(--sun); font: 600 19px/1.38 var(--serif); letter-spacing: -.015em; color: var(--ink); }
.moods { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; }
.bacts { display: flex; gap: 8px; padding: 14px 16px 0; flex-wrap: wrap; }
.picked { display: flex; align-items: center; gap: 12px; margin: 18px 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.picked .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.picked .who b { font-size: 14.5px; }
.picked .who span { font-size: 12px; color: var(--muted); }
.note-card { position: relative; margin: 12px 14px 0; padding: 18px 18px 16px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); }
.note-card p { font: 400 15.5px/1.7 var(--sans); color: var(--ink); white-space: pre-line; }
.note-card .sig { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.ctx { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--panel2); font-size: 13.5px; color: var(--ink2); }
.ctx b { font-weight: 600; color: var(--ink); }

/* 스포일러 없는 스토리 맵 */
.smap { position: relative; margin: 0 16px; padding-left: 22px; }
.smap::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, var(--line2) 0 6px, transparent 6px 11px); }
.part { position: relative; padding: 0 0 18px; }
.part::before { content: attr(data-n); position: absolute; left: -22px; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 9px/18px var(--sans); text-align: center; }
.part h4 { margin: 0; font: 700 16px/1.3 var(--serif); letter-spacing: -.015em; }
.part p { margin-top: 4px; font-size: 14px; color: var(--ink2); }
.part .ask-part { margin-top: 6px; font-size: 12.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.part .ask-part svg { width: 14px; height: 14px; }
.smap-end { position: relative; padding: 2px 0 6px; font: 500 13.5px var(--sans); color: var(--muted); }
.smap-end::before { content: '?'; position: absolute; left: -22px; top: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed var(--line2); font: 700 10px/15px var(--sans); text-align: center; font-style: normal; color: var(--muted); }

.about { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.about dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0; }
.about dt { color: var(--muted); }
.about dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.about a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── 큐레이터 화면 ── */
.chero { margin: 6px 14px 0; padding: 22px 20px 20px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--c); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; box-shadow: var(--shadow); }
.chero h1 { font: 800 28px/1.1 var(--serif); letter-spacing: -.03em; }
.chero .reg { font-size: 13px; color: var(--muted); }
.chero .blurb { font: 500 15.5px/1.5 var(--sans); color: var(--ink2); max-width: 34ch; }
.chero .taste { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chero .next { font-size: 12.5px; color: var(--muted); }

/* ── Talk 화면 ── */
.thead { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.tbook { display: flex; gap: 10px; align-items: center; }
.tbook .cover { width: 38px; }
.tbook .cover .tc, .tbook .cover .ai, .tbook .cover .flag { display: none; }
.tbook b { font: 700 14px/1.2 var(--serif); }
.tbook span { display: block; font-size: 12px; color: var(--muted); }
.tpart { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12.5px; color: var(--accent); }
.tpart svg { width: 14px; height: 14px; transition: transform .2s; }
.tpart[aria-expanded="true"] svg { transform: rotate(90deg); }
.tpart.plain { color: var(--muted); }
.tpart-sum { font-size: 13.5px; color: var(--ink2); background: var(--panel2); border-radius: 10px; padding: 10px 12px; }
.ttext { font: 700 21px/1.38 var(--serif); letter-spacing: -.02em; overflow-wrap: anywhere; white-space: pre-line; }
.tmeta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tmeta .nick { color: var(--ink2); font-weight: 600; }
.tacts { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.act { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--ink2); }
.act svg { width: 18px; height: 18px; }
.act.on { color: var(--accent); }
.act.on svg { fill: currentColor; }
.act.right { margin-left: auto; }
.timg { margin: 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.timg img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.timg figcaption { font-size: 11.5px; color: var(--muted); padding: 6px 10px; background: var(--paper); }

.thread { display: flex; flex-direction: column; padding: 0 14px; }
.turn { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.turn:first-child { border-top: 0; }
.turn-body { flex: 1; min-width: 0; }
.turn-body header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.turn-body header b { font-size: 14px; }
.turn-body header span { color: var(--muted); font-size: 12px; }
.turn-body > p { margin-top: 3px; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.turn.cur .turn-body > p { font-size: 15.5px; }
.turn .sub { margin-top: 6px; }
.turn .sub .turn { padding: 8px 0; }
.cm-img { display: block; margin-top: 8px; max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); }
.cm-acts { display: flex; gap: 2px; margin: 2px 0 0 -10px; }
.reply-btn { margin-left: -10px; }
.waiting { margin: 6px 14px; padding: 22px 18px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--line2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.waiting b { font: 700 17px var(--serif); }
.waiting p { font-size: 13.5px; color: var(--muted); }
.care { margin: 6px 0; padding: 14px 16px; border-radius: 12px; background: var(--panel2); border-left: 3px solid var(--teal); }
.care p { font-size: 15px; line-height: 1.6; }
.care span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.note { padding: 14px 16px; font-size: 12px; color: var(--muted); line-height: 1.55; }

.cmform { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.cmform textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line2); border-radius: 18px; padding: 9px 14px; background: var(--paper); font-size: 15px; line-height: 1.4; max-height: 140px; }
.cmform textarea:focus { outline: none; border-color: var(--accent); }
.cmform .send { color: var(--accent); }
.cmform .pick.on { color: var(--accent); }
.replyform { position: static; background: none; border: 0; padding: 6px 0 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cm-prev { position: relative; display: inline-block; margin: 6px 0 0 50px; }
.cm-prev img { height: 72px; border-radius: 8px; border: 1px solid var(--line); }
.cm-prev button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.cm-prev button svg { width: 12px; height: 12px; }

/* ── 쓰기 (Ask) ── */
.composer { padding: 10px 16px 30px; display: flex; flex-direction: column; gap: 16px; }
.lbl { font: 600 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.composer textarea { width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--line2); border-radius: 14px; padding: 14px; background: var(--paper); font: 400 16.5px/1.5 var(--sans); }
.composer textarea:focus { outline: none; border-color: var(--accent); }
.count { align-self: flex-end; font-size: 12px; color: var(--muted); margin-top: -10px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.toggle b { display: block; font-size: 14.5px; }
.toggle span { font-size: 12.5px; color: var(--muted); }
.attach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attach img { height: 64px; border-radius: 8px; border: 1px solid var(--line); }
.ask-who { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--panel2); font-size: 13.5px; color: var(--ink2); }

/* ── 찾기 ── */
.searchbar { display: flex; align-items: center; gap: 4px; padding: calc(10px + env(safe-area-inset-top)) 10px 10px; position: sticky; top: 0; z-index: 20; background: var(--bg); }
.sbox { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line2); }
.sbox svg { width: 18px; height: 18px; color: var(--muted); }
.sbox input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; outline: none; }
.sbox button { color: var(--muted); display: inline-flex; }

/* ── 상태 · 빈 화면 ── */
.empty { margin: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink2); }
.empty b { font: 700 18px var(--serif); color: var(--ink); }
.empty p { font-size: 14px; max-width: 34ch; }
.empty .stamp { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sun); color: var(--sun); display: inline-flex; align-items: center; justify-content: center; transform: rotate(-10deg); }
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 20px; color: var(--muted); font-size: 13.5px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 1.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { color: var(--accent); font-size: 13.5px; }
.warn { color: var(--accent); font-size: 13.5px; }
.muted { color: var(--muted); }
.tiny { font-size: 11.5px; color: var(--muted); }
.seg { display: flex; gap: 6px; padding: 0 16px 12px; }
.seg a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink2); border: 1px solid var(--line2); }
.seg a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more { display: block; margin: 14px auto 0; }

/* ── 입장 · 연령 · 시트 ── */
.dw-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg); }
.gate-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
.gate-card p { color: var(--ink2); font-size: 14.5px; }
.gate-card input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--paper); padding: 0 14px; font-size: 16px; }
.gate-card .slogan { font-size: 29px; }
.overlay, .modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; background: rgba(30, 24, 16, .42); 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(10px); } }
.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(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: fadeUp .25s ease both; }
@media (min-width: 600px) { .sheet { border-radius: 22px; } }
.sheet h2 { font: 800 22px/1.2 var(--serif); letter-spacing: -.025em; 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(--paper); font-size: 15px; resize: vertical; }
.menu-sheet { gap: 8px; }
.gbtn { min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.keep { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.fb-stars { display: flex; gap: 6px; justify-content: center; }
.fb-stars button { font-size: 30px; color: var(--line2); }
.fb-stars button.on { color: var(--sun); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.fld em { color: var(--muted); font-style: normal; }
.fld input { height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--paper); padding: 0 12px; font-size: 16px; }
.pf-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; min-height: 130px; justify-content: center; }
.pf-card b { font: 700 19px var(--serif); }
.pf-own { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.pf-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-final { font-size: 12.5px; color: var(--muted); text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 300; transform: translate(-50%, 20px); max-width: min(440px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Activity · Profile ── */
.pcard { display: flex; align-items: center; gap: 14px; margin: 6px 14px 0; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.pcard > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard b { font: 700 18px var(--serif); }
.pcard span { font-size: 12.5px; color: var(--muted); }
.notes li a { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notes li.fresh a { background: var(--accent-soft); }
.notes li a > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notes b { font-size: 13.5px; font-weight: 600; }
.n-text { font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.n-at { font-size: 11.5px; color: var(--muted); }
.stamp-sm { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--sun); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stamp-sm svg { width: 17px; height: 17px; }
.mycms li a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mycms .on-t { font-size: 12px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mycms p { font-size: 14px; }
.links { display: flex; flex-direction: column; margin: 22px 14px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.link { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 14.5px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.link:last-child { border-bottom: 0; }
.link svg { width: 16px; height: 16px; color: var(--muted); }
.link.danger { color: var(--accent); }
.theme-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.link .theme-row { flex: 1; }

/* ── 사용법 ── */
.guide { padding: 8px 18px 30px; display: flex; flex-direction: column; gap: 16px; }
.guide h3 { font: 700 18px var(--serif); margin-top: 8px; }
.guide .note { padding: 0; font-size: 13.5px; color: var(--ink2); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cta); color: var(--cta-ink); font: 700 12px/26px var(--sans); text-align: center; }
.steps b { font-size: 15px; }
.steps p { font-size: 13.5px; color: var(--ink2); }
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cgrid a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.cgrid a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cgrid b { font-size: 14px; }
.cgrid small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 자매품 (시리즈 공통 _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(--paper); }
.sister-icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 22%; object-fit: contain; background: var(--panel2); }
.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: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; animation: fadeUp .4s ease both; }
body[data-view="ask"] .dwi, body[data-view="talk"] .dwi { display: none; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: var(--paper); color: var(--ink); border: 1px solid var(--line2); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); 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(--cta); color: var(--cta-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(--accent); }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }

/* ── 지역 · 문화권 (2026-10-17 사용자: 어느 지역 · 문화권에서 소개되는지가 중요하다) ── */
.reg { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 0 5px; border-bottom: 2px solid var(--c); font: 600 11.5px/1.25 var(--sans); letter-spacing: .02em; color: var(--ink); }
.reg b { font-size: 17px; line-height: 1; font-weight: 400; }
.reg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .by { margin-top: -1px; }
.grid.edition { gap: 22px 14px; }
.bcard.wait .cover { border-style: dashed; background: transparent; box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 10px; }
.bcard.wait .cover > span:last-child { font-size: 12px; color: var(--muted); line-height: 1.4; }
.hero .flags { margin-top: 14px; font-size: 19px; letter-spacing: 3px; line-height: 1.5; }
.from { display: flex; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--c); font-size: 13.5px; color: var(--ink2); }
.from b { font-size: 24px; line-height: 1; font-weight: 400; }
.from strong { color: var(--ink); font-weight: 650; }

/* 스토리 맵의 관점 (The World · The People · The Conflict · Beyond the Story) */
.part .kind { display: block; font: 700 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.about .srcs a { margin-right: 2px; }

/* ── 오늘의 책 (맨 위, 크게) — 하루 한 권, 큐레이터가 돌아가며 ── */
.today { display: flex; flex-direction: column; gap: 14px; margin: 4px 14px 0; padding: 16px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--c); box-shadow: var(--shadow); }
.today-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.today-top .kicker { margin: 0; }
.today-main { display: grid; grid-template-columns: 42% 1fr; gap: 16px; align-items: end; }
.today-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.today-txt .t { font: 800 25px/1.08 var(--serif); letter-spacing: -.03em; overflow-wrap: anywhere; }
.today-txt .orig { font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.today-txt .a { font-size: 13.5px; color: var(--ink2); }
.today-txt .h { margin-top: 4px; padding-left: 10px; border-left: 3px solid var(--sun); font: 600 14.5px/1.4 var(--serif); }
.today-by { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.today-by > span:nth-child(2) { flex: 1; min-width: 0; }
.today-by .go { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 600; font-size: 13px; }
.today-by .go svg { width: 15px; height: 15px; }
.today.wait { min-height: 160px; }
.intro { margin: 18px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.intro .slogan { font-size: 22px; }
.intro p:not(.slogan) { font-size: 14px; color: var(--ink2); }

/* 문화권 알약 */
.pills { display: flex; flex-wrap: nowrap; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 16px 14px; scroll-padding-inline: 16px; }   /* 한 줄 — 넘치면 옆으로 민다 (2026-10-17 사용자) */
.pills::-webkit-scrollbar { display: none; }
.pills > * { flex: none; }
.pill-r { --c: var(--ink); display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 10px 5px 8px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); background: var(--paper); color: var(--ink); font: 600 12.5px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pill-r b { font-size: 18px; line-height: 1; font-weight: 400; }
.pill-r i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink2); }
.pill-r.on { background: var(--c); border-color: var(--c); color: #fff; }
.pill-r.on i { background: rgba(255, 255, 255, .25); color: #fff; }
.pill-r.all { --c: var(--ink); }
.pill-r.sm { align-self: flex-start; padding: 3px 9px 3px 6px; font-size: 11px; border-width: 1px; }
.pill-r.sm b { font-size: 13px; }
.bcard .pill-r.sm { max-width: 100%; }

/* 앞으로의 차례 */
.upnext { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 8px; scrollbar-width: none; }
.upnext::-webkit-scrollbar { display: none; }
.upnext a { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); border-bottom: 3px solid var(--c); text-align: center; }
.upnext b { font-size: 12px; }
.upnext span { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 책 화면: The Story · Who's Who · Beyond the Story */
.story { display: flex; flex-direction: column; gap: 16px; margin: 0 16px; }
.story li { display: flex; gap: 12px; }
.story .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 12px/26px var(--sans); text-align: center; }
.story h4 { margin: 2px 0 4px; font: 700 16px/1.3 var(--serif); letter-spacing: -.015em; }
.story p { font-size: 15px; line-height: 1.65; color: var(--ink); }
.story .ending .n { background: var(--sun); color: var(--ink); }
.story .reveal { padding: 10px 14px; border-radius: 12px; border: 1.5px dashed var(--sun); color: var(--ink2); font-size: 13.5px; font-weight: 600; background: var(--sun-soft); }
.story-end { margin: 12px 16px 0 54px; font-size: 13px; color: var(--muted); }
.who { display: flex; flex-direction: column; gap: 10px; margin: 0 14px; }
.who li { padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.who b { font: 700 15.5px var(--serif); }
.who b .orig { font: 400 13px var(--orig); color: var(--muted); margin-left: 4px; }
.who p { margin-top: 3px; font-size: 14px; color: var(--ink2); }
.beyond { margin: 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.turn-body header .to { color: var(--accent); font-weight: 600; }
.talk-top { display: flex; gap: 8px; padding: 14px 16px 0; }
.talk-top .btn-cta { flex: 1; }
.cur-link { display: inline-flex; flex: none; color: inherit; }
.turn-body header .cur-link b { text-decoration: underline transparent; }
.turn-body header .cur-link:hover b { text-decoration-color: currentColor; }

/* 홈의 띠 (인기작 · 문화권마다 한 줄) — 가로로 넘긴다 */
.hscroll.books > .bcard { width: 132px; }
.strip .sec-h h3 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.strip-flag { font-size: 20px; line-height: 1; }
.strip.culture .bcard .pill-r.sm { display: none; }   /* 띠 제목이 이미 그 문화권이다 */

/* 독자의 제보 */
.suggest { padding: 6px 0 30px; }
.lead-s { margin: 8px 16px 0; font-size: 15px; color: var(--ink2); }
.rules { margin: 14px 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sun); }
.rules > b { font: 700 15px var(--serif); }
.rules ul { margin: 8px 0 8px 18px; list-style: disc; font-size: 14px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
.flags-s { display: block; margin-top: 2px; font-size: 15px; letter-spacing: 2px; }
.suggest .composer { padding-top: 18px; gap: 12px; }
.suggest .fld textarea { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--paper); font: inherit; font-size: 15px; resize: vertical; }
.sglist { display: flex; flex-direction: column; gap: 8px; margin: 0 14px; }
.sg { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sg p { margin-top: 4px; font-size: 13.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg.accepted { border-left: 4px solid var(--accent); }
.sg.declined { border-left: 4px solid var(--line2); }
.suggest-card { display: flex; align-items: center; gap: 12px; margin: 22px 14px 0; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--sun); }
.suggest-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-card b { font: 700 15px var(--serif); }
.suggest-card span span { font-size: 12.5px; color: var(--muted); }
.suggest-card svg { width: 16px; height: 16px; color: var(--muted); }
.sugby { display: flex; align-items: center; gap: 8px; margin: 10px 16px 0; font-size: 13px; color: var(--ink2); }
