/* ==========================================================================
   D 합본형 — 릴스(한 토픽 = 한 화면 = 한 영상) 틀                      D_합본형/합본.css
   - 휴대폰 세로: 릴스 한 장 = 화면 높이(100dvh) · 위로 밀면 다음 토픽 영상(스냅) · 오른쪽 쇼츠 단추(전화 · 오시는 길 · 글로 묻기)
   - 가로 폰(높이 540px↓): 그림 왼쪽 · 자막과 단추 오른쪽
   - PC(1024px↑): 가운데 넓은 영상(16:9) + 왼쪽 토픽 차례 + 오른쪽 연락
   - 가장 작은 글자 16px(1rem) · 누르는 자리 48px↑ · 자막 휴대폰 20px↑
   - 색: 공통 틀과 같은 남색(#16294a) · 구릿빛(#8f5218) · 어두운 영상 바탕 위 강조 글자만 밝은 금빛(#f6c893)
   ========================================================================== */
:root {
  --navy: #16294a; --ink: #1d2533; --ink-soft: #4a5362; --copper: #8f5218; --gold: #f6c893;
  --warm: #f6f3ed; --paper: #fbf9f4; --line: #ddd6c9; --film: #0d1626; --film2: #152238;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --top-h: 48px; --gut: 12px; --cap-fs: 1.375rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.js { scroll-snap-type: y mandatory; }
html.js.dx-nosnap { scroll-snap-type: none; }   /* 2026-09-24 아이폰: 처음 손대기 전까지 스냅 끔(player.js IOS) */
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--film); overflow-x: hidden; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* 밝은 바탕(연락 · 더 읽을 거리 · 글)에서는 금빛 테가 보이지 않으므로 남색 테 */
.dx-card :focus-visible, .dx-all__in :focus-visible, .dx-article :focus-visible, .dx-read__body :focus-visible, .dx-skip:focus-visible, .dx-rail.is-free a:focus-visible { outline-color: var(--navy); }
.dx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.dx-skip { position: absolute; left: 8px; top: -90px; z-index: 100; background: #fff; color: var(--navy); padding: 12px 16px; border-radius: 10px; font-weight: 800; min-height: 48px; }
.dx-skip:focus { top: 8px; }

/* ---------- 머리말(고정) ---------- */
.dx-top {
  position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0 14px; display: flex; align-items: center; gap: 10px;
  background: var(--film); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.dx-home { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; text-decoration: none; font-weight: 800; font-size: 1.125rem; color: #fff; white-space: nowrap; }
.dx-home b, .dx-h1 b { color: var(--gold); }
.dx-h1 { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-h1 small { font-size: 1rem; font-weight: 600; color: #b9c4d6; margin-left: 6px; }
.dx-top__grow { flex: 1; }
/* 「S삼성」만으로는 처음으로 가는 단추인지 알기 어려움 → 글자 「‹ 첫 화면」을 붙임(모든 페이지 같은 자리 · 같은 모양) */
.dx-home::after {
  content: "‹ 첫 화면"; display: inline-flex; align-items: center; min-height: 34px; margin-left: 8px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.5); background: rgba(13,22,38,.35); color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
}
/* 휴대폰: 이 페이지의 몇째 화면 · 아래에 더 있음(합본.js 가 만듦) */
.dx-pos {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px 0 8px; border: 0; background: none; color: #fff; cursor: pointer;
  font: 700 1rem/1 var(--font); white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.dx-pos__n { font-variant-numeric: tabular-nums; color: #dfe6f0; }
.dx-pos__t { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); background: rgba(13,22,38,.35); color: #fff; font-weight: 700; }
.dx-top__call { display: none; }
.dx-top__pages { display: none; }

/* ---------- 릴스 한 장 ---------- */
.dx-reel {
  position: relative; height: 100vh; height: 100dvh; min-height: 480px; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; padding-top: calc(var(--top-h) + env(safe-area-inset-top));
  background: var(--film); color: #fff;
}
.dx-video { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dx-pic {
  position: relative; flex: 1 1 auto; min-height: 150px; overflow: hidden; background: #e2dacb; outline: none;
  cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.dx-pic:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.dx-pic .fm-view, .dx-pic .fm-clouds, .dx-pic .fm-chips { position: absolute; inset: 0; }
.dx-pic .fm-view > svg, .dx-pic .fm-clouds > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.dx-pic .fm-clouds, .dx-pic .fm-chips { pointer-events: none; }
.dx-pic .fm-chips { overflow: hidden; }
.dx-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,22,38,.72) 0, rgba(13,22,38,.34) 64px, rgba(13,22,38,0) 124px),
              linear-gradient(to top, rgba(13,22,38,.34) 0, rgba(13,22,38,0) 70px);
}
/* 토픽 제목(h2) — 그림 위쪽에 얹음(릴스처럼) */
.dx-title {
  position: absolute; z-index: 6; left: var(--gut); right: 70px; top: 8px; margin: 0; pointer-events: none;
  font-size: 1.3125rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; color: #fff; word-break: keep-all;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.dx-title b { color: var(--gold); }
.dx-title small { display: block; font-size: 1rem; font-weight: 700; color: #dfe6f0; letter-spacing: 0; }
.dx-note {
  position: absolute; z-index: 5; left: 8px; bottom: 8px; margin: 0; pointer-events: none;
  padding: 2px 10px; border-radius: 8px; font-size: 1rem; font-weight: 700; line-height: 1.5; color: var(--ink); background: rgba(255,255,255,.9);
}
/* 자막 — 그림 바로 아래 띠(그림을 가리지 않음) */
.dx-cap {
  flex: none; display: flex; align-items: center; min-height: calc(var(--cap-fs) * 1.42 * 2 + 14px);
  padding: 6px var(--gut) 8px; background: var(--film);
}
.dx-cap__t { margin: 0; width: 100%; font-size: var(--cap-fs); font-weight: 800; line-height: 1.42; letter-spacing: -.01em; word-break: keep-all; text-wrap: pretty; }
.dx-cap__t b { color: var(--gold); }
.dx-cap__t .dx-cap__s { font-weight: 600; color: #dfe6f0; }

/* 장 마디 막대(유튜브 챕터처럼) + 지금 장면 이름 */
.dx-ui { flex: none; padding: 0 var(--gut); }
.dx-chap { position: relative; height: 48px; cursor: pointer; }
.dx-now { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding-top: 2px; font-size: 1rem; line-height: 1.45; color: #cfd7e4; font-weight: 700; white-space: nowrap; }
.dx-now__n { overflow: hidden; text-overflow: ellipsis; }
.dx-now__t { font-variant-numeric: tabular-nums; color: #9fb0c8; font-weight: 600; }
.dx-bar { position: absolute; left: 0; right: 0; bottom: 9px; height: 6px; display: flex; gap: 3px; }
.dx-bar i { flex: 1 1 0; min-width: 4px; border-radius: 3px; background: rgba(255,255,255,.26); overflow: hidden; transition: transform .2s; }
.dx-bar i.is-now { transform: scaleY(1.6); background: rgba(255,255,255,.4); }
.dx-bar b { display: block; height: 100%; width: 0; background: var(--gold); }
.dx-chap:hover .dx-bar i { background: rgba(255,255,255,.36); }

/* [◀ 이전 장면] [▶/❚❚] [다음 장면 ▶] — 같은 크기 */
.dx-ctl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 6px;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.55); background: rgba(255,255,255,.07); color: #fff;
  font-size: 1.0625rem; font-weight: 800; cursor: pointer; white-space: nowrap; line-height: 1.1;
}
.dx-btn span[aria-hidden] { font-size: 1rem; }
.dx-btn .dx-lb { display: inline-block; }
.dx-btn--main { background: #fff; color: var(--navy); border-color: #fff; }
.dx-btn .dx-ic { display: inline-flex; width: 22px; height: 22px; }
.dx-btn .dx-ic svg { width: 22px; height: 22px; }
.dx-btn:disabled { opacity: .38; cursor: default; }
.dx-btn[hidden] { display: none; }
.dx-btn.is-hint { background: var(--gold); color: var(--navy); border-color: var(--gold); animation: dx-nudge 1.5s ease-in-out infinite; }
@keyframes dx-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* 음량 [끄기 · 작게 · 보통 · 크게] + 「글로 읽기」 */
.dx-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); }
.dx-vol { display: flex; align-items: center; gap: 2px; padding: 0 3px 0 2px; border-radius: 14px; background: rgba(255,255,255,.08); }
.dx-vol__ic { display: inline-flex; width: 26px; justify-content: center; color: #fff; }
.dx-vol__ic svg { width: 22px; height: 22px; }
.dx-reel.is-muted .dx-vol__ic { opacity: .5; }
.dx-vol button { min-width: 48px; min-height: 48px; padding: 0 6px; border: 0; border-radius: 11px; background: transparent; color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; }
.dx-vol button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.dx-read > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.35); color: #fff; font-size: 1rem; font-weight: 800; white-space: nowrap;
}
.dx-read > summary::-webkit-details-marker { display: none; }
.dx-read > summary::after { content: "▾"; font-size: 1rem; color: var(--gold); }
.dx-read[open] > summary { background: #fff; color: var(--navy); border-color: #fff; }
.dx-read[open] > summary::after { content: "닫기 ▴"; color: var(--copper); }
/* 펼치면 릴스 위에 덮이는 글 판(영상은 멈춤) — 사람이 펼칠 수 있게 늘 있음 */
.dx-read__body { color: var(--ink); }
.js .dx-read[open] > .dx-read__body {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(var(--top-h) + env(safe-area-inset-top)); bottom: var(--read-bottom, 72px);
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper); padding: 16px 16px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
/* W-78(2026-09-22 밤 · 원장님 「단추를 누르면 글 화면이 잠깐 보였다가 릴스로 바뀜 · 깜박임처럼 보임」):
   서버는 스크립트가 없는 분을 위해 「글로 읽기」를 펼친 채(details[data-fold] open) 보내고, 스크립트는 맨 끝에서 돌며 접습니다(boot 의 removeAttribute('open') → dx-ready).
   그 사이 첫 그림에 글 판이 잠깐 보였으므로, 스크립트가 있는데(html.js) 아직 시작 전(dx-ready 없음)이면 펼쳐진 글 판을 그리지 않습니다.
   스크립트가 없으면(no-js) 전과 같이 펼쳐진 채 읽히고, ?펼침=1 은 시작 뒤(dx-ready)라 그대로 보입니다. */
.js:not(.dx-ready) details[data-fold][open] > :not(summary) { display: none; }
.js:not(.dx-ready) .dx-read[open] > summary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.js:not(.dx-ready) .dx-read[open] > summary::after { content: "\25BE"; color: var(--gold); }
.dx-read__body h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--navy); line-height: 1.35; }
.dx-read__body ol { margin: 0; padding-left: 1.5em; }
.dx-read__body li { margin: 0 0 8px; }
.dx-read__body li b { color: var(--navy); }
.dx-read__body p { margin: 8px 0; }
.dx-read__body .dx-note2 { font-size: 1rem; color: var(--ink-soft); }

/* 그림 가운데 큰 단추: 눌러서 보기 · 이어서 보기 · 다시 보기 / 위쪽: 눌러서 소리 켜기 */
.dx-big {
  position: absolute; z-index: 8; left: 50%; top: 52%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 200px; padding: 14px 22px 16px;
  border: 0; border-radius: 22px; cursor: pointer; background: rgba(13,22,38,.62); color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.dx-big[hidden] { display: none; }
.dx-big__i { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 0 0 8px rgba(255,255,255,.22); }
.dx-big__i svg { width: 42px; height: 42px; }
.dx-big--play .dx-big__i svg { margin-left: 5px; }
.dx-big__txt { display: flex; flex-direction: column; align-items: center; }
.dx-big__t { font-size: 1.375rem; font-weight: 800; line-height: 1.3; }
.dx-big__s { font-size: 1rem; font-weight: 600; color: #e6ebf2; }
.dx-big--sound {
  top: auto; bottom: 44px; left: 8px; transform: none; flex-direction: row; gap: 10px; min-width: 0; padding: 6px 18px 6px 8px; border-radius: 999px;
  background: #fff; color: var(--navy); animation: dx-call 2.4s ease-in-out infinite; white-space: nowrap;
}
.dx-big--sound .dx-big__i { width: 46px; height: 46px; background: var(--navy); color: #fff; box-shadow: none; }
.dx-big--sound .dx-big__i svg { width: 26px; height: 26px; }
.dx-big--sound .dx-big__txt { align-items: flex-start; }
.dx-big--sound .dx-big__t { font-size: 1.1875rem; }
.dx-big--sound .dx-big__s { color: var(--ink-soft); }
.dx-big { top: var(--big-top, 52%); }
/* 영상이 끝난 뒤: 「다음 걸음」 하나가 주된 단추(금빛) · 「다시 보기」는 그 위에 작게 */
.dx-reel.is-done .dx-big--play { top: calc(var(--big-top, 52%) - 44px); flex-direction: row; gap: 12px; min-width: 0; padding: 8px 20px 8px 10px; border-radius: 999px; white-space: nowrap; }
.dx-reel.is-done .dx-big--play .dx-big__i { width: 48px; height: 48px; box-shadow: none; }
.dx-reel.is-done .dx-big--play .dx-big__i svg { width: 28px; height: 28px; margin-left: 0; }
.dx-reel.is-done .dx-big--play .dx-big__txt { align-items: flex-start; }
.dx-reel.is-done .dx-big--play .dx-big__t { font-size: 1.1875rem; }
.dx-nextup {
  position: absolute; z-index: 8; left: 50%; top: calc(var(--big-top, 52%) + 8px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; min-height: 60px; width: max-content; max-width: calc(100% - 96px); padding: 8px 18px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--gold); color: var(--navy); box-shadow: 0 8px 28px rgba(0,0,0,.35); font: 800 1.1875rem/1.25 var(--font); text-align: left; word-break: keep-all;
}
.dx-nextup[hidden] { display: none; }
.dx-nextup__k { flex: none; padding: 2px 8px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 1rem; }
.dx-nextup .dx-ar { flex: none; font-size: 1rem; }
@keyframes dx-call { 0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,.3), 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 6px 24px rgba(0,0,0,.3), 0 0 0 12px rgba(255,255,255,0); } }

/* ---------- 쇼츠 오른쪽 단추(전화 · 오시는 길 · 글로 묻기) — 지금 영상 그림의 오른쪽 아래 ---------- */
.dx-rail { position: fixed; z-index: 40; right: 6px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 60px; pointer-events: none; }
.dx-rail a { pointer-events: auto; }
.dx-rail a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; min-height: 48px; text-decoration: none; color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.15; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.7), 0 0 10px rgba(0,0,0,.45); }
.dx-rail .dx-ic2 { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.dx-rail .dx-ic2 svg { width: 24px; height: 24px; }
.dx-rail .dx-rail__call .dx-ic2 { background: var(--copper); color: #fff; }
.dx-rail .dx-rail__call .dx-ic2::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--copper); opacity: 0; animation: dx-ring 3.2s ease-out 1s infinite; }
@keyframes dx-ring { 0% { transform: scale(.9); opacity: .6; } 60%, 100% { transform: scale(1.35); opacity: 0; } }
.dx-rail__l { display: none; white-space: nowrap; }
.dx-rail.is-tall .dx-rail__l { display: block; }
.dx-rail.is-free a { color: var(--navy); text-shadow: 0 0 3px #fff, 0 0 8px #fff; }
body[data-at="글"] .dx-rail a:not(.dx-rail__call) { display: none; }
body[data-at="연락"] .dx-rail a[data-go="연락"] { display: none; }   /* 이미 그 화면 — 제자리로 가는 단추는 치움 */

/* ---------- 연락 카드(영상 아닌 한 장) ---------- */
.dx-card {
  position: relative; min-height: 100vh; min-height: 100dvh; scroll-snap-align: start;
  padding: calc(var(--top-h) + env(safe-area-inset-top) + 16px) 16px 24px; background: var(--warm); color: var(--ink);
}
.dx-card__in { max-width: 720px; margin: 0 auto; padding-right: 66px; }
.dx-card h2 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; }
.dx-card h2 b { color: var(--copper); }
.dx-card h3 { margin: 18px 0 6px; font-size: 1.1875rem; color: var(--navy); }
.dx-lead { margin: 0 0 12px; color: var(--ink-soft); }
.dx-acts { display: grid; gap: 8px; margin: 10px 0 0; }
.dx-acts--2 { grid-template-columns: 1fr 1fr; }
.dx-b {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 52px; padding: 8px 12px; border-radius: 14px;
  font: 800 1.0625rem/1.25 var(--font); text-decoration: none; cursor: pointer; background: #fff; color: var(--navy); border: 2px solid var(--navy); word-break: keep-all;
}
.dx-b--main { background: var(--navy); color: #fff; font-size: 1.1875rem; min-height: 58px; }
.dx-b small { display: block; font-size: 1rem; font-weight: 600; opacity: .9; }
.dx-b--stack { flex-direction: column; gap: 0; }
.dx-b svg { width: 22px; height: 22px; flex: none; }
.dx-b--soon { border-style: dashed; color: var(--ink-soft); border-color: #a79f91; }
.dx-facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.dx-facts > div { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dx-facts dt { font-weight: 800; color: var(--navy); }
.dx-facts dd { margin: 0; word-break: keep-all; }
.dx-facts small { display: block; font-size: 1rem; color: var(--ink-soft); }
.dx-doc { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; margin-top: 6px; }
.dx-doc svg { width: 56px; height: 56px; }
.dx-doc p { margin: 0; }
.dx-map {
  display: grid; place-items: center; min-height: 120px; margin-top: 8px; border-radius: 14px; border: 2px dashed #a79f91; text-decoration: none; color: var(--ink-soft);
  background: repeating-linear-gradient(45deg, #efe9de 0 12px, #f4efe6 12px 24px); font-weight: 800; text-align: center; padding: 12px;
}
.dx-map small { display: block; font-weight: 600; font-size: 1rem; }

/* ---------- 맨 아래 「이 페이지의 글 전체」 ---------- */
.dx-all { scroll-snap-align: start; min-height: 100vh; min-height: 100dvh; background: var(--paper); color: var(--ink); padding: calc(var(--top-h) + env(safe-area-inset-top) + 16px) 16px 0; }
.dx-all__in { max-width: 760px; margin: 0 auto; padding-right: 66px; }
.dx-all h2 { margin: 0 0 6px; font-size: 1.5rem; color: var(--navy); line-height: 1.35; }
.dx-all h3 { margin: 22px 0 6px; font-size: 1.25rem; color: var(--navy); }
.dx-all h4 { margin: 14px 0 4px; font-size: 1.125rem; color: var(--navy); }
.dx-all p, .dx-all li { margin: 0 0 8px; }
.dx-fold { border: 2px solid var(--line); border-radius: 14px; background: #fff; margin: 12px 0; }
.dx-fold > summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 1.1875rem; font-weight: 800; color: var(--navy); }
.dx-fold > summary::-webkit-details-marker { display: none; }
.dx-fold > summary::after { content: "펼치기 ▾"; font-size: 1rem; font-weight: 700; color: var(--copper); white-space: nowrap; }
.dx-fold[open] > summary::after { content: "접기 ▴"; }
.dx-fold__body { padding: 0 16px 16px; }
.dx-note2 { font-size: 1rem; color: var(--ink-soft); }
.dx-link { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; color: var(--navy); font-weight: 800; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.dx-foot { margin-top: 28px; padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); background: var(--navy); color: #d5dbe6; font-size: 1rem; line-height: 1.7; margin-left: -16px; margin-right: -16px; }
.dx-foot__in { max-width: 760px; margin: 0 auto; }
.dx-foot p { margin: 0 0 6px; }
.dx-foot a { color: #fff; display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; }

/* 작은 안내 한 줄 */
.dx-toast { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 16px; margin: 0 auto; max-width: 520px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 1.0625rem; line-height: 1.4; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.dx-toast[hidden] { display: none; }

/* PC 차례 · 연락(휴대폰에서는 없음) */
.dx-toc, .dx-side { display: none; }

/* ---------- 그림 위 꼬리표(거리.js 가 만듦 · 16px 이상) ---------- */
.fm-chip { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s ease; will-change: transform; }
.fm-chip.is-on { opacity: 1; }
.fm-chip__in {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 8px));
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 10px; white-space: nowrap;
  font-size: 1rem; font-weight: 800; line-height: 1.35; background: #fff; color: var(--navy); box-shadow: 0 3px 12px rgba(22,41,74,.28);
}
.fm-chip__in::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
.fm-chip svg { width: 18px; height: 18px; flex: none; }
.fm-chip--metro .fm-chip__in { background: var(--navy); color: #fff; }
.fm-chip--metro .fm-chip__in::after { border-top-color: var(--navy); }
.fm-chip--exit .fm-chip__in { background: #f3c05a; color: #1d2533; font-size: 1.0625rem; }
.fm-chip--exit .fm-chip__in::after { border-top-color: #f3c05a; }
.fm-chip--sign .fm-chip__in { background: var(--navy); color: #fff; font-size: 1.125rem; border: 2px solid var(--gold); }
.fm-chip--sign .fm-chip__in::after { border-top-color: var(--gold); }
.fm-chip--info .fm-chip__in { background: var(--copper); color: #fff; }
.fm-chip--info .fm-chip__in::after { border-top-color: var(--copper); }
.fm-chip--talk .fm-chip__in { border-radius: 16px; border: 2px solid var(--navy); }
.fm-chip--talk .fm-chip__in::after { border-top-color: var(--navy); }
.fm-chip--dist .fm-chip__in { background: #fff; color: var(--copper); border: 2px solid var(--copper); }
.fm-chip--dist .fm-chip__in::after { border-top-color: var(--copper); }
.fm-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -2px; }

/* ---------- 얼굴 그림(눈꺼풀 · 고민 입구) ---------- */
.dx-pic--face { background: #f4f0ea; }
.dx-pic--face .fm-view { right: var(--face-right, 56px); top: var(--face-top, 40px); bottom: var(--face-bottom, 0px); }
.dx-pic--face .dx-shade { background: linear-gradient(to bottom, rgba(13,22,38,.72) 0, rgba(13,22,38,.3) 60px, rgba(13,22,38,0) 110px); }
.dx-pic--face .ssr-tag { font-size: 1.0625rem; font-weight: 800; padding: 4px 12px; color: var(--navy); background: #fff; border: 2px solid var(--navy); box-shadow: 0 3px 12px rgba(22,41,74,.3); }
.dx-pic--face .ssr-tag--up { color: #fff; background: #7a4312; border-color: #fff; box-shadow: 0 3px 14px rgba(58,32,8,.45); }
/* 회복의 순서 — 점이 차례로 지나가는 시간 줄 */
.fx-time {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 42px; width: min(540px, calc(100% - 72px - 8px)); margin-left: -28px;
  padding: 10px 12px 8px; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 10px 30px rgba(22,41,74,.22); --p: 0;
}
.fx-time[hidden] { display: none; }
.fx-time__h { margin: 0 0 4px; font-weight: 800; color: var(--navy); font-size: 1.0625rem; }
.fx-time__h span { font-size: 1rem; font-weight: 700; color: var(--copper); margin-left: 6px; }
.fx-time ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 22px 0 0; list-style: none; }
.fx-time ol::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 8px; height: 4px; border-radius: 2px; background: var(--line); }
.fx-time ol::after { content: ""; position: absolute; left: 12.5%; top: 8px; height: 4px; border-radius: 2px; background: var(--copper); width: calc(75% * var(--p)); }
.fx-time li { position: relative; text-align: center; line-height: 1.3; opacity: .45; transition: opacity .4s; }
.fx-time li::before { content: ""; position: absolute; left: 50%; top: -20px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.fx-time li.is-on { opacity: 1; }
.fx-time li.is-on::before { border-color: var(--copper); background: var(--copper); }
.fx-time b { display: block; font-size: 1rem; color: var(--navy); }
.fx-time li span { display: block; font-size: 1rem; color: var(--ink-soft); word-break: keep-all; }
/* 첫 화면 「언제」 안내판 */
.fm-card {
  position: absolute; z-index: 4; left: 50%; top: var(--card-top, 64px); transform: translateX(-50%); margin-left: -28px;
  width: min(400px, calc(100% - 80px)); padding: 12px 14px 10px; border-radius: 16px;
  background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.28); animation: dx-rise .5s ease-out;
}
.fm-card[hidden] { display: none; }
.fm-card__h { margin: 0 0 4px; font-size: 1.125rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.fm-card__h svg { width: 22px; height: 22px; color: var(--copper); }
.fm-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; font-size: 1.0625rem; line-height: 1.5; }
.fm-card dt { font-weight: 800; color: var(--navy); }
.fm-card dd { margin: 0; font-variant-numeric: tabular-nums; }
@keyframes dx-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 고민 입구 — 여섯 입구(그림 아래쪽에 얹음) */
.dx-doors {
  position: absolute; z-index: 7; left: 8px; right: 64px; bottom: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none;
}
.dx-doors a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 4px 4px; border-radius: 12px;
  background: rgba(255,255,255,.95); color: var(--navy); border: 2px solid var(--navy); text-decoration: none; text-align: center;
  font-size: 1rem; font-weight: 800; line-height: 1.2; word-break: keep-all; box-shadow: 0 3px 10px rgba(13,22,38,.18); transition: transform .3s, background .3s;
}
.dx-doors a.is-main { background: var(--navy); color: #fff; }
.dx-doors a.is-soon { border-style: dashed; border-color: #8d8677; color: var(--ink-soft); background: rgba(255,255,255,.9); }
.dx-doors a.is-lit { transform: translateY(-4px); box-shadow: 0 0 0 4px var(--gold), 0 6px 16px rgba(13,22,38,.3); }
.dx-doors small { font-size: 1rem; font-weight: 600; opacity: .85; }

/* ---------- 스크립트가 없을 때: 제목 · 원고 글 · 전화가 그대로 보임 ---------- */
.no-js .dx-reel { height: auto; min-height: 0; overflow: visible; padding-bottom: 16px; }
.no-js .dx-pic { min-height: 0; flex: none; background: none; cursor: default; }
.no-js .dx-pic > :not(.dx-title) { display: none; }
.no-js .dx-title { position: static; padding: 16px var(--gut) 4px; }
.no-js .dx-cap, .no-js .dx-ui, .no-js .dx-vol { display: none; }
.no-js .dx-read > summary { display: none; }
.no-js .dx-read__body { background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.no-js .dx-rail { position: static; flex-direction: row; justify-content: center; width: auto; padding: 12px; background: var(--film); }
.no-js .dx-rail .dx-rail__l { display: block; }

/* ---------- 가로로 눕힌 휴대폰 ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  :root { --top-h: 44px; --cap-fs: 1.25rem; }
  .dx-reel { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 356px; grid-template-rows: minmax(0, 1fr) auto auto auto; }
  .dx-vol__ic { display: none; }
  .dx-video, .dx-ui { display: contents; }
  .dx-pic { grid-column: 1; grid-row: 1 / 5; min-height: 0; }
  .dx-cap { grid-column: 2; grid-row: 1; align-items: flex-end; min-height: 0; padding: 6px 12px 2px; }
  .dx-chap { grid-column: 2; grid-row: 2; margin: 0 12px; }
  .dx-ctl { grid-column: 2; grid-row: 3; margin: 0 12px; }
  .dx-btn { min-height: 48px; font-size: 1rem; }
  .dx-tools { grid-column: 2; grid-row: 4; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); flex-wrap: nowrap; }
  .dx-read > summary { padding: 0 10px; }
  .dx-title { font-size: 1.1875rem; }
  .dx-big { padding: 10px 18px 12px; }
  .dx-big__i { width: 60px; height: 60px; }
  .dx-big__i svg { width: 32px; height: 32px; }
  .dx-big__t { font-size: 1.1875rem; }
  .js .dx-read[open] > .dx-read__body { left: auto; width: 356px; }
  .dx-doors { grid-template-columns: repeat(6, 1fr); bottom: 42px; }
  .dx-doors small { display: none; }
  .dx-nextup { display: none; }                                   /* 가로 폰: 바로 옆 조작 줄의 금빛 「다음 화면 ▼」 이 같은 일을 함 */
  .fx-time { bottom: 40px; padding: 6px 10px 4px; }
  .fx-time__h { display: none; }
  .fm-card { top: 50px; }
  .fm-card dl { grid-template-columns: auto 1fr auto 1fr; }
}

/* ---------- PC ---------- */
@media (min-width: 1024px) and (min-height: 600px) {
  :root { --top-h: 64px; --toc-w: 250px; --side-w: 270px; --cap-fs: 1.625rem; --gut: 20px; }
  .dx-top { padding: 0 24px 0 28px; gap: 16px; }
  .dx-home { font-size: 1.25rem; }
  .dx-h1 { font-size: 1.25rem; }
  .dx-top__pages { display: flex; gap: 4px; }
  .dx-top__pages a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; color: #dfe6f0; font-weight: 700; font-size: 1.0625rem; }
  .dx-top__pages a:hover { background: rgba(255,255,255,.08); }
  .dx-top__pages a[aria-current] { color: var(--gold); }
  .dx-top__call { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--copper); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.125rem; white-space: nowrap; }   /* (원장님 2026-09-26) 시험장과 같게 구릿빛 */
  .dx-top__call svg { width: 22px; height: 22px; }
  .dx-rail { display: none; }
  .dx-home::after, .dx-pos { display: none; }                      /* PC 는 머리줄 메뉴 「첫 화면」 · 왼쪽 차례가 대신 */
  body[data-at="연락"] .dx-side { visibility: hidden; }            /* 연락 화면에서는 오른쪽 연락 칸이 같은 내용의 되풀이 */
  .dx-nextup { font-size: 1.3125rem; min-height: 64px; top: calc(var(--big-top, 52%) + 14px); }
  .dx-reel { align-items: center; padding: calc(var(--top-h) + 14px) calc(var(--side-w) + 44px) 10px calc(var(--toc-w) + 44px); }
  .dx-video, .dx-ui, .dx-tools { width: min(100%, calc((100dvh - var(--top-h) - 310px) * 16 / 9)); }
  .dx-video { flex: none; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
  .dx-pic { flex: none; aspect-ratio: 16 / 9; }
  .dx-cap { background: var(--film2); padding: 8px 22px 10px; }
  .dx-ui { padding: 0; margin-top: 6px; }
  .dx-ctl { max-width: 620px; margin: 0 auto; }
  .dx-btn { min-height: 54px; font-size: 1.125rem; }
  .dx-tools { padding: 10px 0 0; justify-content: center; gap: 16px; }
  .dx-title { font-size: 1.625rem; left: 22px; top: 14px; }
  /* W-79(2026-09-23 · 원장님 할 일판 1-3 답 「가. 위 오른쪽」 + 「글자는 제목보다 작게 · 문구는 짧게」): PC 에서는 안내 문구를 그림 왼쪽 아래(회복 순서 칸 · 꼬리표와 겹침)가 아니라
     제목 맞은편 위 오른쪽(어두운 띠 안)에. 글자는 16px 그대로(규칙 「16px 미만 0」) · 굵기 600 · 얇은 알약으로 가볍게. 휴대폰(portrait 1023 이하)은 501줄 그대로(제목 아래). */
  .dx-note { left: auto; right: 22px; top: 16px; bottom: auto; font-size: .875rem; font-weight: 600; padding: 1px 10px; background: rgba(255,255,255,.86); }   /* 14px — 원장님 2026-09-23 00:57 답(「16px 미만 0」 규칙의 유일한 예외 · 03_디자인_규격 2절) · 휴대폰은 16px 그대로 */
  .dx-title { right: 392px; }   /* W-79: 제목 글자가 위 오른쪽 안내 문구와 부딪히지 않게(긴 제목은 두 줄로) */

  .dx-big__i { width: 96px; height: 96px; }
  .dx-big__i svg { width: 52px; height: 52px; }
  .dx-big__t { font-size: 1.75rem; }
  .dx-big--sound .dx-big__t { font-size: 1.375rem; }
  .js .dx-read[open] > .dx-read__body { left: calc(var(--toc-w) + 44px); right: calc(var(--side-w) + 44px); border-radius: 18px; top: calc(var(--top-h) + 14px); }
  .dx-pic--face .fm-view { right: 0; }
  .fx-time { margin-left: 0; width: min(560px, calc(100% - 40px)); }
  .fm-card { margin-left: 0; }
  .dx-doors { right: 12px; left: 12px; grid-template-columns: repeat(6, 1fr); bottom: 52px; gap: 8px; }
  .dx-doors a { min-height: 64px; font-size: 1.0625rem; }
  .dx-card__in, .dx-all__in { padding-right: 0; }
  .dx-card { padding-left: calc(var(--toc-w) + 44px); padding-right: calc(var(--side-w) + 44px); }
  .dx-all { padding-left: calc(var(--toc-w) + 44px); padding-right: calc(var(--side-w) + 44px); }
  .dx-foot { margin-left: calc(-1 * (var(--toc-w) + 44px)); margin-right: calc(-1 * (var(--side-w) + 44px)); }

  .dx-toc, .dx-side { display: block; position: fixed; z-index: 45; top: calc(var(--top-h) + 14px); bottom: 14px; overflow-y: auto; color: #fff; scrollbar-width: thin; }
  .dx-toc { left: 20px; width: var(--toc-w); }
  .dx-side { right: 20px; width: var(--side-w); }
  body.dx-light .dx-toc, body.dx-light .dx-side { color: var(--ink); }
  .dx-toc__h { margin: 4px 0 10px; font-size: 1.125rem; font-weight: 800; color: inherit; opacity: .85; }
  #dx-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  #dx-toc-list > li > button {
    width: 100%; min-height: 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left;
    padding: 6px 12px; border-radius: 12px; border: 2px solid transparent; background: rgba(255,255,255,.06); color: inherit; cursor: pointer; font: inherit;
  }
  body.dx-light #dx-toc-list > li > button { background: rgba(22,41,74,.06); }
  #dx-toc-list > li > button[aria-current] { border-color: var(--gold); background: rgba(246,200,147,.14); }
  .dx-toc__k { font-size: 1rem; font-weight: 700; color: var(--gold); }
  body.dx-light .dx-toc__k { color: var(--copper); }
  .dx-toc__n { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
  .dx-toc__chap { list-style: none; margin: 4px 0 6px 10px; padding: 0 0 0 8px; border-left: 2px solid rgba(255,255,255,.18); display: grid; gap: 0; }
  .dx-toc__chap button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; border-radius: 10px; padding: 0 8px; background: none; color: #dfe6f0; font: 600 1rem/1.3 var(--font); cursor: pointer; }
  .dx-toc__chap button:hover { background: rgba(255,255,255,.08); }
  .dx-toc__chap button[aria-current] { color: var(--navy); background: var(--gold); font-weight: 800; }
  .dx-toc__t { font-variant-numeric: tabular-nums; opacity: .75; min-width: 2.6em; }
  .dx-side .dx-b { margin-bottom: 8px; }
  .dx-side .dx-b:not(.dx-b--main) { background: rgba(255,255,255,.95); }
  .dx-side dl { margin: 12px 0 0; display: grid; gap: 8px; font-size: 1rem; line-height: 1.5; }
  .dx-side dt { font-weight: 800; color: var(--gold); }
  body.dx-light .dx-side dt { color: var(--copper); }
  .dx-side dd { margin: 0; }
  .dx-side .dx-note2 { color: inherit; opacity: .75; margin-top: 14px; }
}
@media (min-width: 1600px) and (min-height: 900px) {
  :root { --toc-w: 290px; --side-w: 300px; --cap-fs: 1.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-chip, .fx-time li, .dx-bar i, .dx-doors a { transition: none; }
  .dx-big--sound, .dx-btn.is-hint, .dx-rail__call .dx-ic2::after, .fm-card { animation: none !important; }
}
/* 고민 입구: 얼굴은 입구 단추 위쪽에만 */
.dx-pic--tour .fm-view { bottom: var(--face-bottom, 150px); }
@media (max-width: 380px) { .dx-vol__ic { display: none; } .dx-read > summary { padding: 0 8px; } }
/* 스크립트가 없을 때도 전화는 맨 위에서 바로 */
.no-js .dx-top__call { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 800; font-size: 1rem; white-space: nowrap; flex: none; }
.no-js .dx-top__call svg { width: 20px; height: 20px; }
/* 「글로 읽기」를 펼친 동안은 쇼츠 단추를 치움(글을 가리지 않게) */
body.dx-reading .dx-rail { display: none; }

/* 🔊 하나(휴대폰 세로에서만 보임) */
.dx-voltog { display: none; }

/* ==========================================================================
   휴대폰 세로(2026-09-20 고침 · 원장님 실기기) — 실제 쓸 수 있는 높이(사파리 · 삼성 인터넷 · 앱 안 브라우저 약 640~780px)에서
   그림이 65~70% 이상이 되게: 자막 · 장 마디는 그림 위에 얹고, 아래 조작은 한 줄, 머리줄은 그림 위에 투명하게.
   ========================================================================== */
@media (orientation: portrait) and (max-width: 1023px) {
  :root { --top-h: 44px; --cap-fs: 1.3125rem; }
  .dx-top { background: linear-gradient(to bottom, rgba(13,22,38,.78) 0, rgba(13,22,38,.45) 70%, rgba(13,22,38,0) 100%); box-shadow: none; }
  body.dx-light .dx-top, .no-js .dx-top { background: var(--film); }
  .dx-h1 { font-size: 1rem; }
  .dx-home { font-size: 1rem; }
  .dx-h1 small { display: none; }                                  /* 「‹ 첫 화면」 · 「아래로 ▼」 자리를 위해 곁말은 접음 — 첫 화면의 「반월당역 12번 출구 앞」도(잘려 보이던 것 · 같은 말이 그림 제목 · 자막에 있음) */
  .dx-reel { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; }
  .dx-video, .dx-ui { display: contents; }
  .dx-pic { grid-column: 1 / -1; grid-row: 1; min-height: 0; }
  /* 제목 · 안내는 그림 위쪽에 작게 */
  .dx-title { top: calc(var(--top-h) + env(safe-area-inset-top) + 2px); font-size: 1.0625rem; right: 76px; }
  .dx-title small { display: none; }
  .dx-shade { background: linear-gradient(to bottom, rgba(13,22,38,.62) 0, rgba(13,22,38,.3) 90px, rgba(13,22,38,0) 140px); }
  .dx-pic--face .dx-shade { background: linear-gradient(to bottom, rgba(13,22,38,.62) 0, rgba(13,22,38,.28) 84px, rgba(13,22,38,0) 124px); }
  .dx-note { top: var(--note-top, 80px); bottom: auto; left: var(--gut); padding: 0 8px; background: rgba(255,255,255,.82); }
  /* 자막 — 그림 아래쪽 어두운 그러데이션 위에 1~2줄 */
  .dx-cap {
    grid-column: 1 / -1; grid-row: 1; align-self: end; position: relative; z-index: 7; margin-bottom: 48px; pointer-events: none;
    min-height: calc(var(--cap-fs) * 1.4 * 2 + 30px); padding: 24px var(--gut) 4px; align-items: flex-end;
    background: linear-gradient(to top, rgba(13,22,38,.86) 0, rgba(13,22,38,.66) 62%, rgba(13,22,38,0) 100%);
  }
  .dx-cap__t { line-height: 1.4; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
  /* 장 마디 — 그림 아래 가장자리(누르는 자리 48px) · 장면 이름과 시간 한 줄 */
  .dx-chap { grid-column: 1 / -1; grid-row: 1; align-self: end; z-index: 7; height: 48px; padding: 0 var(--gut); background: rgba(13,22,38,.86); }
  .dx-now { padding-top: 3px; font-size: 1rem; }
  .dx-bar { left: var(--gut); right: var(--gut); bottom: 8px; height: 5px; }
  /* 아래 조작 한 줄: [◀ 이전] [▶/❚❚] [다음 ▶] · 🔊 · 글로 읽기 */
  /* 2026-09-20 구성 점검: 단추마다 아이콘 위 · 글자 아래(멈춤 · 소리가 아이콘만 남던 것을 고침 — 360px 폰에서도 글자가 남음) */
  .dx-ctl { grid-column: 1; grid-row: 2; gap: 6px; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)) var(--gut); grid-template-columns: 1fr 1.2fr 1fr; }
  .dx-btn { flex-direction: column; min-height: 56px; min-width: 48px; font-size: 1rem; padding: 2px 2px; gap: 1px; border-radius: 12px; line-height: 1.1; letter-spacing: -.02em; }
  .dx-btn .dx-ar { order: -1; line-height: 1.2; }
  .dx-btn .dx-ic, .dx-btn .dx-ic svg { width: 20px; height: 20px; }
  .dx-long { display: none; }
  .dx-tools { grid-column: 2; grid-row: 2; flex-wrap: nowrap; gap: 6px; padding: 6px var(--gut) calc(6px + env(safe-area-inset-bottom)) 6px; }
  .dx-voltog {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 52px; min-height: 56px; padding: 2px 4px;
    border-radius: 12px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; font: 800 1rem/1.1 var(--font); letter-spacing: -.02em;
  }
  .dx-voltog svg { width: 20px; height: 20px; }
  .dx-vol {
    display: none; position: absolute; z-index: 25; right: var(--gut); bottom: calc(72px + env(safe-area-inset-bottom)); padding: 4px; gap: 4px;
    background: #101c30; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 24px rgba(0,0,0,.45);
  }
  .dx-vol.is-open { display: flex; }
  .dx-vol__ic { display: none; }
  .dx-read > summary { min-height: 56px; padding: 0 10px; border-radius: 12px; }
  .dx-read > summary::after { content: none; }
  .dx-read[open] > summary { font-size: 0; }                       /* 펼친 동안은 「글 닫기」로 읽힘 */
  .dx-read[open] > summary::after { content: "글 닫기"; font-size: 1rem; color: var(--navy); }
  /* 그림 위의 다른 것들은 자막 위쪽으로 */
  .dx-big--sound { bottom: calc(var(--ov-b, 120px) + 8px); left: var(--gut); }
  .dx-pic { --big-top: calc((100% - var(--ov-b, 120px)) / 2 + 20px); }
  .dx-big--sound { top: auto; }
  .dx-nextup { max-width: calc(100% - 24px); width: max-content; }
  .fx-time { bottom: calc(var(--ov-b, 120px) + 6px); }
  .dx-doors { bottom: calc(var(--ov-b, 120px) + 8px); }
  .dx-pic--tour .dx-big--sound { bottom: auto; top: calc(var(--note-top, 80px) + 34px); }
  .dx-card { padding-top: calc(var(--top-h) + env(safe-area-inset-top) + 12px); }
}

/* ==========================================================================
   더 읽을 거리(릴스 한 장) · 글 페이지(2026-09-20 추가)
   ========================================================================== */
.dx-more__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.dx-post {
  display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 12px; min-height: 76px; padding: 10px 12px;
  border: 1.5px solid var(--navy); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.dx-post:active { transform: translateY(2px); background: var(--warm); box-shadow: inset 0 2px 8px rgba(22,41,74,.14); }
.dx-post__art { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--warm); display: grid; place-items: center; }
.dx-post__art svg { width: 44px; height: 44px; }
.dx-post__t { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1.35; color: var(--navy); word-break: keep-all; }
.dx-post__m { display: block; margin-top: 2px; font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.dx-post__go { font-size: 1.25rem; font-weight: 800; color: var(--copper); text-align: right; }
.dx-post--soon { border-style: dashed; border-color: #a79f91; }
.dx-post--soon .dx-post__t { color: var(--ink-soft); }
.dx-post__soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--warm-deep, #ebe6dc); color: var(--ink-soft); font-size: 1rem; font-weight: 700; vertical-align: middle; }
@media (min-width: 720px) { .dx-more__list { grid-template-columns: 1fr 1fr; } }

/* ---------- 글 페이지 ---------- */
/* (2026-09-20 구성 점검) body 의 이름을 dx-doc → dx-textpage 로: 「원장 소개」 칸(.dx-doc · 56px 격자)과 이름이 겹쳐 글 페이지가 왼쪽으로 쏠리고 아이콘이 커지던 것을 고침 */
body.dx-textpage { background: var(--paper); }
.dx-textpage .dx-top { background: var(--film); }
.dx-textpage > .dx-foot { margin: 28px 0 0; }
.dx-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin: 0 0 4px; color: var(--navy); font-weight: 800; font-size: 1.0625rem; text-decoration: none; }
.dx-back span { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.dx-ends__h { margin: 22px 0 0; font-size: 1.1875rem; color: var(--navy); }
/* 글 페이지는 오른쪽 동그라미 단추가 없으므로 휴대폰에서도 머리줄 오른쪽에 전화 */
@media (max-width: 1023.98px), (max-height: 599.98px) {
body.dx-textpage { --top-h: 56px; }
.dx-textpage .dx-top__call { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 48px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--copper); color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem; white-space: nowrap; }
.dx-textpage .dx-top__call svg { width: 20px; height: 20px; }
.dx-textpage .dx-top__call .dx-num { display: none; }
}
.dx-textpage .dx-h1 { flex: 0 1 auto; }
.dx-article { max-width: 760px; margin: 0 auto; padding: calc(var(--top-h) + env(safe-area-inset-top) + 12px) 16px 8px; }
.dx-clip { position: relative; height: clamp(190px, 38vh, 320px); border-radius: 16px; overflow: hidden; background: #f4f0ea; }
.dx-clip .fm-view { position: absolute; inset: 0; }
.dx-clip .fm-view > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.dx-clip .dx-note { left: 8px; bottom: 8px; top: auto; max-width: calc(100% - 16px); }
.dx-kicker { margin: 14px 0 0; font-size: 1rem; font-weight: 800; color: var(--copper); }
.dx-textpage h1 { margin: 4px 0 6px; font-size: 1.75rem; line-height: 1.32; color: var(--navy); letter-spacing: -.01em; word-break: keep-all; }
.dx-meta { margin: 0 0 10px; font-size: 1rem; color: var(--ink-soft); }
/* (2026-09-20 밤 · 원장님 결정) 글 본문 20px — 휴대폰 · PC 같음. 줄 높이 1.7 · 한 줄 약 34자(PC · 글 폭 760px) / 약 15자(360px 폰 · 절 안쪽 여백을 줄임) */
.dx-body { font-size: 1.25rem; line-height: 1.7; letter-spacing: -.005em; }
.dx-body section { position: relative; padding: 6px 12px 6px 14px; border-left: 4px solid transparent; border-radius: 0 12px 12px 0; transition: background .3s ease, border-color .3s ease; }
.dx-body section.is-hearing { background: #fdf3e6; border-left-color: var(--copper); }
.dx-body h2 { margin: 18px 0 6px; font-size: 1.4375rem; line-height: 1.4; color: var(--navy); }
.dx-body p { margin: 0 0 12px; word-break: keep-all; }
.dx-body .dx-note2 { font-size: 1.0625rem; line-height: 1.6; }
@media (max-width: 479.98px) { .dx-body section { padding: 6px 6px 6px 10px; } }
.dx-body strong { color: var(--navy); }
.dx-hear {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; margin: 0 0 8px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 700 1rem/1 var(--font); cursor: pointer;
}
.dx-hear svg { width: 20px; height: 20px; }
.dx-hear:active { background: var(--warm); }
section.is-hearing .dx-hear { border-color: var(--copper); color: var(--copper); }
/* 소리로 듣기 줄 */
.dx-listen.is-playing { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); }   /* 듣는 동안에만 따라다님(읽기만 하는 분의 글을 가리지 않게) */
.dx-listen { position: relative; z-index: 30; margin: 10px 0 8px; padding: 8px 10px 4px; border-radius: 16px; background: var(--film); color: #fff; box-shadow: 0 6px 20px rgba(13,22,38,.22); }
.dx-listen__row { display: flex; align-items: center; gap: 8px; }
.dx-listen .dx-b--main { flex: 1 1 auto; min-height: 52px; gap: 8px; font-size: 1.0625rem; white-space: nowrap; padding: 8px 10px; }
.dx-listen .dx-btn { flex: none; min-width: 52px; min-height: 52px; padding: 0 10px; }
.dx-listen .dx-voltog { display: inline-flex; flex-direction: column; gap: 1px; font: 800 1rem/1.1 var(--font); align-items: center; justify-content: center; min-width: 60px; min-height: 52px; border-radius: 12px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.dx-listen .dx-voltog svg { width: 20px; height: 20px; }
.dx-listen .dx-b--main svg { width: 24px; height: 24px; }
.dx-listen .dx-chap { height: 42px; padding: 0; }
.dx-listen .dx-bar { left: 0; right: 0; bottom: 6px; }
.dx-listen .dx-vol { display: none; position: absolute; z-index: 32; right: 8px; bottom: 8px; padding: 4px; gap: 4px; border-radius: 14px; background: #101c30; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.dx-listen .dx-vol.is-open { display: flex; }
.dx-listen .dx-vol__ic { display: none; }
.dx-ends { display: grid; gap: 8px; margin: 18px 0 8px; }
@media (min-width: 720px) { .dx-ends { grid-template-columns: 1fr 1fr; } .dx-ends .dx-b--main { grid-column: 1 / -1; } }
.no-js .dx-listen, .no-js .dx-clip, .no-js .dx-hear { display: none; }
/* (2026-09-20 밤) 영상이 아닌 화면(글 페이지)의 휴대폰 아래 고정 두 칸 [전화하기] [글로 묻기] — 릴스 페이지에는 넣지 않음(거기는 쇼츠 단추 3개).
   본문을 가리지 않게 body 아래에 같은 높이만큼 자리를 비움 · 아이폰 아래 안전 영역 · 「소리로 듣기」 줄은 위쪽에 붙어 따라다니므로 겹치지 않음 · PC(1024px↑)는 머리줄 전화 단추가 대신 */
.dx-dock { display: none; }
@media (max-width: 1023.98px) {
  .dx-dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
    background: rgba(251,248,242,.97); border-top: 1px solid rgba(22,41,74,.18); box-shadow: 0 -6px 18px rgba(13,22,38,.12); }
  .dx-dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 14px; font-size: 1.125rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
  .dx-dock a svg { width: 22px; height: 22px; flex: none; }
  .dx-dock__call { background: var(--copper); color: #fff; }
  .dx-dock__ask { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
  .dx-dock a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
  .dx-dock a:active { transform: translateY(1px); }
  body.dx-textpage { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .dx-textpage .dx-toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .dx-textpage [id] { scroll-margin-bottom: 90px; scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top) + 10px); }
}
@media (max-width: 1023.98px) and (orientation: landscape) and (max-height: 540px) { .dx-dock a { min-height: 48px; } body.dx-textpage { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .dx-post, .dx-body section { transition: none; } }

/* ==========================================================================
   전후 사진 보는 법 — 그림 위에 얹는 표시(실제 사진 0장 · 모두 그림과 도형)
   ========================================================================== */
.dx-mark { position: absolute; z-index: 5; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.dx-mark.is-on { opacity: 1; }
/* 사진 자리(회원만) — 흐린 네모 + 자물쇠 */
.dx-mark--lock {
  left: 50%; top: 26%; transform: translate(-50%, -20%);
  width: min(300px, 78%); padding: 16px 14px; border-radius: 16px; text-align: center;
  background-color: rgba(255,255,255,.9);
  background-image: repeating-linear-gradient(45deg, rgba(22,41,74,.1) 0 10px, rgba(22,41,74,.03) 10px 20px);
  border: 2px dashed rgba(22,41,74,.55); backdrop-filter: blur(4px); color: var(--navy);
  box-shadow: 0 8px 24px rgba(13,22,38,.25);
}
.dx-mark--lock svg { width: 34px; height: 34px; }
.dx-mark--lock b { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.4; }
.dx-mark--lock span { display: block; font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
/* 눈썹과 눈 사이 재기 */
.dx-mark--gap { width: 42px; height: 70px; }
.dx-mark--gap svg { width: 100%; height: 100%; }
.dx-mark--gap__a { position: absolute; left: 50%; width: 0; height: 0; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; }
.dx-mark--gap__a[data-cap="top"] { top: -8px; border-bottom: 10px solid var(--copper); }
.dx-mark--gap__a[data-cap="bot"] { bottom: -8px; border-top: 10px solid var(--copper); }
.dx-mark--gap .dx-mark__t--side { left: 50%; right: auto; top: auto; bottom: calc(100% + 12px); transform: translateX(-50%); }
.dx-mark--iris { border: 4px solid var(--copper); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.75); }
.dx-mark--iris .dx-mark__t { bottom: -38px; }
.dx-mark--brow i, .dx-mark--mirror i { position: absolute; display: block; }
.dx-mark--brow i { border-top: 3px dashed var(--copper); height: 0; }
.dx-mark--mirror i[data-line="h"] { border-top: 3px dashed var(--copper); height: 0; }
.dx-mark--mirror i[data-line="v"] { border-left: 3px dashed var(--navy); width: 0; }
.dx-mark--gap svg { width: 100%; height: 100%; overflow: visible; }
/* 눈썹 선 · 좌우 점선 */
.dx-mark--brow, .dx-mark--mirror { left: 0; top: 0; width: 100%; height: 0; }
/* 웃을 때의 표정(간단한 도형) */
.dx-mark--smile { left: 8%; top: 46%; width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(13,22,38,.25); display: grid; place-items: center; }
.dx-mark--smile svg { width: 58px; height: 58px; }
.dx-mark__t {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap;
  font-size: 1rem; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 8px; padding: 2px 8px;
}
@media (prefers-reduced-motion: reduce) { .dx-mark { transition: none; } }
/* 좁은 폰(400px 미만): 머리줄은 「‹ 첫 화면」 · 페이지 이름 · 「아래로 ▼」 만(이름이 잘리지 않게) */
@media (max-width: 399.98px) and (orientation: portrait) { .dx-home { font-size: 0; } .dx-home::after { margin-left: 0; } .dx-pos__n { display: none; } }

/* W-79: 그림 틀이 좁은 PC(1024~1279 · 차례 · 연락 칸이 양옆에 있어 틀이 400px 안팎)에서는 제목 줄이 모자라므로 안내 문구를 그림 아래 오른쪽 구석에(회복 순서 칸 위 4px). 1280 이상은 위 오른쪽(제목 맞은편). */
@media (min-width: 1024px) and (max-width: 1279.98px) and (min-height: 600px) {
  .dx-title { right: 70px; }
  .dx-note { top: auto; bottom: 12px; left: auto; right: 14px; max-width: calc(100% - 28px); }
}

/* ==========================================================================
   W-97(2026-09-23): 회복 장면의 시간줄(.fx-time)이 그림을 덮지 않게 — 시간줄이 보이는 동안만(.dx-pic:has(> .fx-time:not([hidden])))
   · 휴대폰 세로: 시간줄을 그림 위쪽(안내 문구 바로 아래)으로 올리고 폭을 넓힘 → 그림(얼굴 .fm-view · 단면/도식 카드 .um-box · .um-over)은
     아래 가장자리를 기준으로 조금 작게(아래로 이어지는 목 · 옷 · 몸의 잘린 끝은 자막 띠 뒤에 그대로 숨음) · 「자리를 잡아 감」은 한 줄에(좁으면 고르게 두 줄)
   · PC(1280 이상): 시간줄을 그림 왼쪽 아래 세로 칸으로 · 얼굴 릴스는 얼굴을 오른쪽으로 비켜 조금 작게(코 · 가슴 도식은 이미 가운데 오른쪽이라 그대로)
   · 1024~1279 · 가로 폰은 자리 · 모양 그대로(「감」 줄바꿈만 고름). 장면 값 · 엔진은 건드리지 않음(모양만).
   ========================================================================== */
.dx-pic:has(> .fx-time) :is(.fm-view, .um-box, .um-over) { transition: transform .45s ease; }
@keyframes fx-time-in { from { opacity: 0; } to { opacity: 1; } }
.fx-time b, .fx-time li span { word-break: keep-all; text-wrap: balance; }   /* 「자리를 잡아 감」의 「감」이 홀로 줄바꿈되지 않게(좁으면 「자리를 / 잡아 감」) */
@media (orientation: portrait) and (max-width: 1023px) {
  .dx-pic { --tl-face: .82; --tl-sx: .72; }
  .fx-time { top: calc(var(--note-top, 80px) + 32px); bottom: auto; margin-left: 0; width: min(540px, calc(100% - 24px)); padding: 8px 10px 6px; animation: fx-time-in .45s ease both; }
  .dx-pic:has(> .fx-time:not([hidden])) .fm-view { transform-origin: 50% 100%; transform: scale(var(--tl-face)); }
  .dx-pic:has(> .fx-time:not([hidden])) :is(.um-box, .um-over) { transform-origin: 50% 100%; transform: scale(var(--tl-sx)); }
}
/* 키가 낮은 휴대폰일수록 그림을 조금 더 작게(시간줄 칸의 높이는 같으므로 · 2026-09-23 크기별로 재어 정함: 360×640 ~ 430×932) */
@media (orientation: portrait) and (max-width: 1023px) and (max-height: 819.98px) { .dx-pic { --tl-face: .76; --tl-sx: .64; } }
@media (orientation: portrait) and (max-width: 1023px) and (max-height: 759.98px) { .dx-pic { --tl-face: .68; --tl-sx: .62; } }
@media (orientation: portrait) and (max-width: 1023px) and (max-height: 719.98px) { .dx-pic { --tl-face: .64; --tl-sx: .6; } }
/* 아주 낮은 휴대폰(680 미만): 오른쪽 동그라미 단추(전화 · 오시는 길 · 글로 묻기)가 시간줄 높이까지 올라오므로 옛 폭(단추 자리를 비움) */
@media (orientation: portrait) and (max-width: 1023px) and (max-height: 679.98px) {
  .dx-pic { --tl-face: .5; --tl-sx: .46; }
  .fx-time { width: min(540px, calc(100% - 80px)); margin-left: -28px; }
}
@media (min-width: 1280px) and (min-height: 600px) {
  .fx-time { left: 14px; top: auto; bottom: 14px; transform: none; margin-left: 0; width: 212px; padding: 8px 12px 10px; animation: fx-time-in .45s ease both; }
  .fx-time__h span { display: block; margin-left: 0; }
  .fx-time ol { grid-template-columns: 1fr; gap: 4px; padding: 2px 0 0 28px; }
  .fx-time li { line-height: 1.25; }
  .fx-time ol::before { left: 8px; right: auto; top: 12px; bottom: 30px; width: 4px; height: auto; }
  .fx-time ol::after { left: 8px; top: 12px; width: 4px; height: calc((100% - 42px) * var(--p)); }
  .fx-time li { text-align: left; }
  .fx-time li::before { left: -26px; top: 2px; margin-left: 0; }
  .dx-pic:has(> .fx-time:not([hidden])):has(.ssr-fig) :is(.fm-view, .um-box, .um-over) { transform-origin: 50% 100%; transform: translateX(116px) scale(.92); }
}
/* W-101(2026-09-23): 그림 틀이 좁은 PC(1024~1279 · 틀 416~671px × 234~377px)에서도 회복 시간줄이 그림 · 제목 · 안내 문구와 겹치지 않게.
   틀의 키가 낮아 1280 이상의 두 줄짜리 세로 칸은 들어가지 않으므로 「낮은 세로 칸」: 왼쪽 아래에 한 칸에 한 줄(「수술 날 수술」).
   그림(얼굴 · 단면/도식 카드)은 오른쪽 빈 곳으로 비켜 아래 가장자리를 기준으로 줄임(틀이 좁을수록 더 작게 · 아주 좁으면 안내 문구 위로 올림)
   · 안내 문구는 오른쪽 아래에서 시간줄 옆 폭만 씀(좁으면 두세 줄). */
@media (min-width: 1024px) and (max-width: 1279.98px) and (min-height: 600px) {
  .dx-pic { --tl-s: .5; --tl-y: -70px; }
  .fx-time { left: 8px; top: auto; bottom: 6px; transform: none; margin-left: 0; width: 268px; padding: 4px 8px 5px; border-radius: 12px; animation: fx-time-in .45s ease both; }
  .fx-time__h { margin: 0; line-height: 1.25; white-space: nowrap; }
  .fx-time ol { grid-template-columns: 1fr; gap: 1px; padding: 2px 0 0 24px; }
  .fx-time li { line-height: 1.2; text-align: left; }
  .fx-time b, .fx-time li span { display: inline; }
  .fx-time li span { margin-left: 6px; }
  .fx-time ol::before { left: 6px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; }
  .fx-time ol::after { left: 6px; top: 10px; width: 4px; height: calc((100% - 20px) * var(--p)); }
  .fx-time li::before { left: -24px; top: 2px; margin-left: 0; }
  .dx-pic:has(> .fx-time:not([hidden])) :is(.fm-view, .um-box, .um-over) { transform-origin: 50% 100%; transform: translate(140px, var(--tl-y)) scale(var(--tl-s)); }
  .dx-pic:has(> .fx-time:not([hidden])) .dx-note { max-width: calc(100% - 296px); right: 8px; bottom: 8px; word-break: keep-all; }
}
@media (min-width: 1088px) and (max-width: 1279.98px) and (min-height: 600px) { .dx-pic { --tl-s: .62; --tl-y: -48px; } }
@media (min-width: 1152px) and (max-width: 1279.98px) and (min-height: 600px) { .dx-pic { --tl-s: .72; --tl-y: 0px; } }
@media (min-width: 1216px) and (max-width: 1279.98px) and (min-height: 600px) { .dx-pic { --tl-s: .77; } }
@media (prefers-reduced-motion: reduce) {
  .dx-pic:has(> .fx-time) :is(.fm-view, .um-box, .um-over) { transition: none; }
  .fx-time { animation: none; }
}

/* ==========================================================================
   W-150(2026-09-25 · 원장님 「눈코재수술 릴스에만 전체화면보기 버튼 · 테스트」) — 「전체 화면」 단추와 전체 화면일 때의 릴스
   단추는 토픽 json "fullscreen": true 인 릴스에만 생김(합본.js · player.js) → 아래 규칙은 그 릴스에만 걸림(.dx-fs · .is-fs · .is-fsbox · html.dx-fslock)
   ========================================================================== */
.dx-fs {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; min-width: 48px; padding: 0 14px;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.07); color: #fff;
  font: 800 1rem/1.1 var(--font); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dx-fs .dx-ic { display: inline-flex; width: 20px; height: 20px; }
.dx-fs .dx-ic svg { width: 20px; height: 20px; }
.dx-fs.is-on { background: #fff; color: var(--navy); border-color: #fff; }
/* 전체 화면일 때: 머리줄이 없으므로 위 여백 0 · 쇼츠 단추 치움 */
.dx-reel.is-fs { --top-h: 0px; }
.dx-reel.is-fs:fullscreen { width: 100%; height: 100%; }
.dx-reel.is-fsbox {
  position: fixed; z-index: 90; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100vh; height: 100dvh; min-height: 0; margin: 0; border-radius: 0;
  overscroll-behavior: contain;
}
html.dx-fslock, html.dx-fslock body { overflow: hidden; }
body.dx-fsing .dx-rail { display: none; }
.dx-fs-hold { scroll-snap-align: none; }
@media (min-width: 1024px) and (min-height: 600px) {
  .dx-reel.is-fs { padding: 14px 24px 10px; }
  .dx-reel.is-fs .dx-video, .dx-reel.is-fs .dx-ui, .dx-reel.is-fs .dx-tools { width: min(100%, calc((100dvh - 296px) * 16 / 9)); }
  .js .dx-reel.is-fs .dx-read[open] > .dx-read__body { left: 24px; right: 24px; top: 14px; }
  .dx-fs { min-height: 48px; padding: 0 16px; }
}
@media (orientation: portrait) and (max-width: 1023px) {
  /* 아래 조작 한 줄에 함께: 아이콘 위 · 글자 아래(소리 단추와 같은 꼴) */
  .dx-fs { flex-direction: column; gap: 1px; min-width: 52px; min-height: 56px; padding: 2px 4px; border-radius: 12px; letter-spacing: -.02em; white-space: normal; text-align: center; max-width: 74px; }
  .dx-reel.is-fs .dx-title { top: calc(env(safe-area-inset-top) + 8px); }
}
/* 좁은 휴대폰(400px 이하 · 360 갤럭시 · 375 · 390): 아래 한 줄에 넣으면 재생 단추가 48px 밑으로 줄어들므로 그림 오른쪽 위 구석(제목 오른쪽 빈자리)에 */
@media (orientation: portrait) and (max-width: 400px) {
  .dx-fs { position: absolute; z-index: 8; right: var(--gut); top: calc(var(--top-h) + env(safe-area-inset-top) + 4px); width: 56px; max-width: 56px; padding: 3px 2px; background: rgba(13,22,38,.55); border-color: rgba(255,255,255,.6); }
  .dx-fs.is-on { background: #fff; }
  .dx-fs.is-on .dx-ic { display: none; }                          /* 「전체 화면 닫기」 세 줄이 들어가게 */
}
/* W-150 완료 */

/* ==========================================================================
   W-155(2026-09-26 · 원장님 할 일판 40-2 「PC 릴스 틀을 바꿔 모든 영상의 그림을 더 크게」) — PC(1024↑ · 키 600↑)에서
   제목(굵은 제목 + 「원장님이 직접 설명합니다」) · 안내 문구를 그림 위를 덮던 자리에서 빼, 그림 틀 맨 위의 얇은 어두운 띠(.dx-head)로.
   · .dx-head 는 합본.js / player.js 가 제목 · 안내 문구를 감싸 만듦 — 휴대폰 세로 · 가로 폰 · 글 안 끼움 상자(.dx-reel--embed)는 display: contents 라 전과 같음
   · 그림 틀(.dx-pic)은 띠 높이(--head-h · 합본.js 가 잼)만큼 위로 늘고(content-box + padding-top) 띠 아래는 그대로 16:9
   · 카드 · 얼굴 자리(picTop)는 띠 바로 아래부터 → 1280×800 에서 단면 카드 세로가 16:9 칸의 약 88 %(전 60~77 %)
   · 띠 제목은 20px(1024~1279 는 18px) 한 줄 — 길면 안내 문구가 둘째 줄 오른쪽으로(띠 두 줄 이내)
   ========================================================================== */
.dx-head { display: contents; }
@media (min-width: 1024px) and (min-height: 600px) {
  .dx-reel:not(.dx-reel--embed) { --head-h: 64px; }
  .dx-reel:not(.dx-reel--embed) .dx-video, .dx-reel:not(.dx-reel--embed) .dx-ui, .dx-reel:not(.dx-reel--embed) .dx-tools { width: min(100%, calc((100dvh - var(--top-h) - 290px - var(--head-h)) * 16 / 9)); }
  .dx-reel.is-fs:not(.dx-reel--embed) .dx-video, .dx-reel.is-fs:not(.dx-reel--embed) .dx-ui, .dx-reel.is-fs:not(.dx-reel--embed) .dx-tools { width: min(100%, calc((100dvh - 296px - var(--head-h)) * 16 / 9)); }
  .dx-reel:not(.dx-reel--embed) .dx-pic { box-sizing: content-box; padding-top: var(--head-h); --big-top: calc(52% + var(--head-h) * .48); }   /* 가운데 큰 단추 · 「다음 ▼」는 띠 아래 16:9 칸의 가운데 */
  .dx-reel:not(.dx-reel--embed) .dx-head {
    position: absolute; z-index: 6; left: 0; right: 0; top: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px;
    padding: 8px 18px 8px 22px; background: var(--film2); pointer-events: none;
  }
  .dx-reel:not(.dx-reel--embed) .dx-head > .dx-title { position: static; flex: 0 1 auto; font-size: 1.25rem; line-height: 1.3; text-shadow: none; }
  .dx-reel:not(.dx-reel--embed) .dx-head > .dx-title small { display: inline; margin-left: 10px; white-space: nowrap; }
  .dx-reel:not(.dx-reel--embed) .dx-head > .dx-note { position: static; flex: none; margin-left: auto; max-width: none; }
  .dx-reel:not(.dx-reel--embed) .dx-shade { background: linear-gradient(to top, rgba(13,22,38,.34) 0, rgba(13,22,38,0) 70px); }   /* 위쪽 그늘은 띠가 대신 — 그림은 밝게 */
  .dx-reel:not(.dx-reel--embed) .dx-pic:has(.dx-doors) .dx-big--sound { bottom: auto; top: calc(var(--head-h) + 10px); }   /* W-151 풍선 — 띠 바로 밑 */
}
@media (min-width: 1024px) and (max-width: 1279.98px) and (min-height: 600px) {
  .dx-reel:not(.dx-reel--embed) .dx-head > .dx-title { font-size: 1.125rem; }
  .dx-reel:not(.dx-reel--embed) .dx-pic { --tl-y: 0px; }   /* W-101 은 아래 오른쪽 안내 문구를 피해 회복 장면 그림을 위로 올렸음 — 안내 문구가 띠로 갔으므로 올리지 않음(띠 밑으로 들어가지 않게) */
}
/* W-155 완료 */

/* ==========================================================================
   W-157(2026-09-26 · 원장님 「전체보기에서 회복과정 블록은 작게 나와」 · 「전체보기는 전체 릴스에」 · 「우측 하단에 같은 모양으로」)
   ① 전체 화면인 동안만 player.js 가 릴스에 --pic-scale(그림 폭 ÷ 832 · 1 이하면 없음)을 붙임 → 그림 위 카드 · 이름표 · 안내 문구를 그 배율로 실제 크기부터 키움.
      CSS 로 자리 잡는 것(회복 순서 · 안내 카드 · 입구 카드 넷 · 가운데 큰 단추 · 「다음 ▼」 · 띠 제목 · 안내 문구)은 zoom(글자를 다시 그려 흐리지 않음),
      스크립트가 px 좌표로 자리 잡는 이름표(.um-lab · .ssr-tag · 길 이름표)는 글자 크기 · 여백만 키움(스크립트가 새 크기를 재어 자리 잡음).
      --pic-scale 이 없으면(보통 화면 · 휴대폰) 모두 전과 같음.
   ② 그림 오른쪽 아래 ⛶ 네모 단추(.dx-fs2 · 48×48) — 아래 「전체 화면」 글자 단추와 같은 동작. PC 는 그림 오른쪽 아래 모서리,
      휴대폰 세로는 자막 바로 위 · 오른쪽 쇼츠 단추(전화 · 오시는 길 · 글로 묻기) 줄의 왼쪽, 그림틀 안 카드(.dx-doors)가 있는 영상은 카드 바로 위.
   ========================================================================== */
.dx-reel.is-fs :is(.fx-time, .fm-card, .dx-doors, .dx-big, .dx-nextup, .fx-again, .dx-mark--lock, .dx-mark__t) { zoom: var(--pic-scale, 1); }
.dx-reel.is-fs .dx-head > :is(.dx-title, .dx-note) { zoom: var(--pic-scale, 1); }
@media (min-width: 1024px) and (min-height: 600px) {   /* --pic-scale 은 PC 틀에서만 생김 — 휴대폰 전체 화면의 글자 크기는 전과 같게 */
  .dx-reel.is-fs .um-lab { font-size: calc(1.125rem * var(--pic-scale, 1)); padding: calc(2px * var(--pic-scale, 1)) calc(8px * var(--pic-scale, 1)); }
  .dx-reel.is-fs .dx-pic--face .ssr-tag { font-size: calc(1.0625rem * var(--pic-scale, 1)); padding: calc(4px * var(--pic-scale, 1)) calc(12px * var(--pic-scale, 1)); }
  .dx-reel.is-fs .fm-chip__in { font-size: calc(1rem * var(--pic-scale, 1)); padding: calc(4px * var(--pic-scale, 1)) calc(12px * var(--pic-scale, 1)); }
  .dx-reel.is-fs .fm-chip--exit .fm-chip__in { font-size: calc(1.0625rem * var(--pic-scale, 1)); }
  .dx-reel.is-fs .fm-chip--sign .fm-chip__in { font-size: calc(1.125rem * var(--pic-scale, 1)); }
}

.dx-fs2 {
  position: absolute; z-index: 9; right: 12px; bottom: 12px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 10px; background: rgba(13,22,38,.55); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.dx-fs2 svg { width: 26px; height: 26px; }
.dx-fs2:hover { background: rgba(13,22,38,.75); }
.dx-fs2:focus-visible { outline: 3px solid #f0c987; outline-offset: 2px; }
@media (min-width: 1024px) and (min-height: 600px) {
  /* 가슴 옆모습(둘째 카드가 오른쪽 아래까지) 장면 · 입구 카드가 있는 영상(카드 줄 높이가 폭마다 다름)은 오른쪽 위 · 띠 바로 밑 */
  .dx-pic:is(:has(.um-box--small:not([hidden])), :has(.dx-doors)) .dx-fs2 { top: calc(var(--head-h, 0px) + 4px); bottom: auto; }
  /* 덧붙임(W-155 보고 8절 ②): 입구 카드가 있는 영상의 가운데 큰 단추 · 「다음 ▼」는 띠와 입구 카드 줄 사이 빈칸의 가운데 — 카드 여섯이 모두 눌리게 */
  .dx-reel:not(.dx-reel--embed) .dx-pic:has(.dx-doors) { --big-top: max(calc(var(--head-h) + 100px), calc(50% + (var(--head-h) - 116px * var(--pic-scale, 1)) / 2)); }   /* 좁은 폭에서도 단추(세로 190)가 띠를 덮지 않게 */
  .dx-reel:not(.dx-reel--embed) .dx-doors { z-index: 9; }   /* 그래도 빈칸이 좁은 폭(1024 등)에서는 카드가 큰 단추 위 — 카드는 언제나 눌림 */
}
@media (min-width: 1024px) and (max-width: 1279.98px) and (min-height: 600px) {
  .dx-reel:not(.is-fs) .dx-fs2 { top: calc(var(--head-h, 0px) + 4px); bottom: auto; }   /* 작은 PC 창(그림 폭 약 420): 오른쪽 아래는 카드 · 「다음 ▼」가 차지 → 오른쪽 위 · 띠 바로 밑 */
}
/* 휴대폰 · 태블릿 · 가로 폰(PC 틀이 아닌 곳): 오른쪽 쇼츠 단추 줄(카드가 비워 두는 오른쪽 60px 칸)의 바로 위 — 자리는 player.js placeRail 이 --fs2-b 로 알려 줌.
   전체 화면에서는 쇼츠 단추가 사라지므로 그 칸 맨 아래(자막 바로 위) = 오른쪽 아래 */
@media not all and (min-width: 1024px) and (min-height: 600px) {
  .dx-fs2 { right: 12px; bottom: var(--fs2-b, calc(var(--ov-b, 120px) + 250px)); }
  .dx-pic:has(.dx-doors) .dx-fs2 { bottom: var(--fs2-b, calc(var(--ov-b, 120px) + 250px)); }
  .dx-reel.is-fs .dx-fs2, .dx-reel.is-fs .dx-pic:has(.dx-doors) .dx-fs2 { bottom: max(44px, calc(var(--ov-b, 0px) + 10px)); }
  .dx-reel:not(.is-fs) .dx-pic.is-fs2off .dx-fs2 { display: none; }   /* 자리가 없는 짧은 화면(player.js placeRail) */
}
/* W-157 완료 */
/* 감독(원장님 2026-09-26 08:5x 「전체화면 아이콘 버튼은 자막 영역의 우측 하단으로 이동」): ⛶ 모서리 단추(.dx-fs2)는 그림이 아니라 **자막 칸(.dx-cap) 오른쪽 아래**.
   위 W-157 의 그림 기준 자리 규칙(--fs2-b · 오른쪽 위 · is-fs2off)은 단추가 .dx-pic 안에 없으므로 더 이상 걸리지 않음. 자막 글은 단추 폭만큼 오른쪽을 비움. */
.dx-cap { position: relative; }
.dx-cap .dx-fs2, .dx-reel.is-fs .dx-cap .dx-fs2 { position: absolute; top: auto !important; right: 10px !important; bottom: 6px !important; display: grid !important; background: rgba(255,255,255,.14); pointer-events: auto; z-index: 9; }   /* !important: 위 W-157 의 폭별 규칙(1024~1279 「오른쪽 위」 · 휴대폰 --fs2-b · is-fs2off)이 이겨 단추가 자막 칸 밖으로 밀려 잘리던 결함(원장님 2026-09-26 10:23) */   /* 휴대폰의 .dx-cap 은 pointer-events:none(손가락이 그림으로 통과) — 단추만 받게 */
.dx-cap .dx-fs2:hover { background: rgba(255,255,255,.26); }
.dx-cap:has(.dx-fs2) .dx-cap__t { padding-right: 60px; }



/* 2026-09-26 밤(원장님 「마우스 롤오버 하면 버튼 색상이나 선택 등 알 수 있도록 해줘」): 마우스가 있는 기기(hover · 가는 포인터)에서만 — 휴대폰 · 손가락은 그대로.
   규칙: 남색 바탕의 테두리 단추는 올리면 흰 기운 20% + 흰 테두리 · 이미 켜진(흰 · 남색) 단추와 문 카드 · 흰 단추(.dx-b)는 올리면 금색(--gold) · 누르는 순간 1px 내려앉음. */
@media (hover: hover) and (pointer: fine) {
  .dx-btn, .dx-b, .dx-fs, .dx-vol button, .dx-read > summary, .dx-read-go, .dx-nextup, .dx-big, .dx-rail .dx-ic2 { transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
  .dx-btn:not(:disabled):hover { background: rgba(255,255,255,.2); border-color: #fff; }
  .dx-btn--main:not(:disabled):hover, .dx-btn.is-hint:not(:disabled):hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
  .dx-vol button:not([aria-pressed="true"]):hover { background: rgba(255,255,255,.2); }
  .dx-vol button[aria-pressed="true"]:hover { background: var(--gold); color: var(--navy); }
  .dx-fs:hover, .dx-read > summary:hover, .dx-read-go:hover { background: rgba(255,255,255,.2); border-color: #fff; }
  .dx-fs.is-on:hover, .dx-read[open] > summary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
  .dx-doors a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(13,22,38,.3); }
  .dx-doors a.is-lit:hover { transform: translateY(-5px); box-shadow: 0 0 0 4px var(--gold), 0 8px 18px rgba(13,22,38,.32); }
  .dx-doors a.is-soon:hover { background: #fff; border-color: var(--ink-soft); color: var(--navy); transform: none; }
  .dx-b:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
  .dx-nextup:hover { background: #fff; }
  .dx-big:not(.dx-big--sound):hover { background: rgba(13,22,38,.82); }   /* 흰 바탕 풍선(눌러서 소리 켜기)은 아래 따로 — 어두워지면 남색 글자가 안 보임(원장님 2026-09-26 22:5x 지적) */
  .dx-big--sound:hover { background: var(--gold); }
  .dx-big:hover .dx-big__i { transform: scale(1.06); }
  .dx-rail .dx-ic2:hover { background: var(--gold); color: var(--navy); }
  .dx-chap:hover .dx-bar i { background: rgba(255,255,255,.46); }
  .dx-top__pages a:hover { background: rgba(255,255,255,.16); }
  .dx-toc__chap button:hover, #dx-toc-list > li > a:hover { background: rgba(255,255,255,.18); }
  .dx-btn:not(:disabled):active, .dx-b:active, .dx-fs:active, .dx-vol button:active, .dx-read > summary:active, .dx-read-go:active, .dx-nextup:active, .dx-rail .dx-ic2:active { transform: translateY(1px); }
  .dx-doors a:active { transform: translateY(-1px); }
  .dx-btn, .dx-b, .dx-fs, .dx-vol button, .dx-read > summary, .dx-read-go, .dx-nextup, .dx-big, .dx-doors a, .dx-rail .dx-ic2 { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .dx-doors a:hover, .dx-doors a.is-lit:hover, .dx-big:hover .dx-big__i { transform: none; } }
