/* One scoped story booklet per work; original artwork supplies the illustration. */
.story-state-section[hidden], .story-scene-meta span[hidden] { display: none !important; }
.nox-story-dossier {
  --book-bg: #15151a; --book-surface: #202027; --book-plate: #292932;
  --book-ink: #f6f6f8; --book-copy: #d0d0da; --book-muted: #a5a5b5;
  --book-accent: #ff98aa; --book-line: #43434d; --book-radius: 12px;
  min-width: 0; padding: clamp(14px,3vw,28px); color: var(--book-ink);
  background: var(--book-bg); border: 1px solid var(--book-line); border-radius: 14px;
  overflow-wrap: anywhere; isolation: isolate; box-sizing: border-box;
}
.nox-story-dossier *, .nox-story-dossier *::before, .nox-story-dossier *::after { box-sizing: border-box; }
.nox-story-dossier[data-story-theme="manuscript"] { --book-bg: #eef1f6; --book-surface: #fff; --book-plate: #e5eaf1; --book-ink: #182537; --book-copy: #344357; --book-muted: #54647a; --book-accent: #a12740; --book-line: #b9c4d2; --book-radius: 2px; }
.nox-story-dossier[data-story-theme="broadcast"] { --book-bg: #0d172b; --book-surface: #172640; --book-plate: #233651; --book-ink: #f2f6ff; --book-copy: #cbd7e9; --book-muted: #a5b9d2; --book-accent: #ff9aa9; --book-line: #3c526e; --book-radius: 18px; }
.nox-story-dossier[data-story-theme="matchday"] { --book-bg: #10191d; --book-surface: #1a292f; --book-plate: #24383f; --book-ink: #f3fbfd; --book-copy: #c2d8df; --book-muted: #9dbec8; --book-accent: #9ce5eb; --book-line: #42626e; --book-radius: 3px; }
.nox-story-dossier[data-story-theme="occult"] { --book-bg: #111315; --book-surface: #1b2024; --book-plate: #252c30; --book-ink: #f2f1f0; --book-copy: #cbd0d3; --book-muted: #a8b0b6; --book-accent: #ff9a9f; --book-line: #4b5259; --book-radius: 2px; }
.nox-story-dossier[data-story-theme="travel"] { --book-bg: #f0f7fb; --book-surface: #fff; --book-plate: #e1edf4; --book-ink: #153c50; --book-copy: #355365; --book-muted: #506e80; --book-accent: #17674d; --book-line: #abc6d3; --book-radius: 8px; }
.nox-story-dossier[data-story-theme="signal"] { --book-bg: #0c1921; --book-surface: #142731; --book-plate: #203842; --book-ink: #eefbff; --book-copy: #bed5de; --book-muted: #9fbfc9; --book-accent: #7de3dd; --book-line: #3b5c69; --book-radius: 5px; }
.nox-story-dossier[data-story-theme="casefile"] { --book-bg: #171b20; --book-surface: #222a31; --book-plate: #313d46; --book-ink: #f1f4f7; --book-copy: #d0d9e1; --book-muted: #abbac7; --book-accent: #f2aa98; --book-line: #526371; --book-radius: 2px; }
.nox-story-dossier[data-story-theme="cinema"] { --book-bg: #17181b; --book-surface: #24262c; --book-plate: #34363e; --book-ink: #fbfbfc; --book-copy: #d8d8e0; --book-muted: #b5b5c3; --book-accent: #f2b0b9; --book-line: #50535e; --book-radius: 4px; }
.nox-story-dossier[data-story-theme="royal"] { --book-bg: #142033; --book-surface: #202f46; --book-plate: #2e3f58; --book-ink: #f7f8fc; --book-copy: #d2dceb; --book-muted: #aebdd3; --book-accent: #b5d3ff; --book-line: #536785; --book-radius: 2px; }
.nox-story-dossier[data-story-theme="workshop"] { --book-bg: #f1f3f5; --book-surface: #fff; --book-plate: #e4e9ef; --book-ink: #192f47; --book-copy: #354c63; --book-muted: #53677c; --book-accent: #a32638; --book-line: #acbac8; --book-radius: 8px; }
.nox-story-dossier[data-story-theme="stage"] { --book-bg: #231621; --book-surface: #342331; --book-plate: #493143; --book-ink: #fff4fb; --book-copy: #e2cdda; --book-muted: #c3a9b9; --book-accent: #ffb7cf; --book-line: #735469; --book-radius: 2px; }
.nox-story-dossier p { margin: 0; font-size: 1.125rem; line-height: 1.85; color: var(--book-copy); word-break: keep-all; overflow-wrap: anywhere; }
.nox-story-dossier h4 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.5; color: var(--book-ink); }
.nox-story-dossier .dossier-heading { margin: 24px 0 14px; font-size: 1.375rem; line-height: 1.45; font-weight: 750; letter-spacing: -.015em; color: var(--book-ink); }
.nox-story-dossier .dossier-heading:first-child { margin-top: 0; }

.nox-story-comic-open, .nox-story-comic-open body { overflow: hidden; }
.nox-story-comic { box-sizing: border-box; width: min(724px, calc(100% - 32px)); height: min(920px, calc(100dvh - 40px)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #ffffff1a; border-radius: 20px; background: #0e0f12; color: #f4f4f5; box-shadow: 0 32px 90px #000c; animation: nox-comic-in .26s cubic-bezier(.22, .8, .25, 1); }
.nox-story-comic[open] { display: flex; flex-direction: column; }
.nox-story-comic::backdrop { background: radial-gradient(120% 90% at 50% 0%, #1b0d12e6, #000000f2); backdrop-filter: blur(8px); animation: nox-comic-fade .26s ease; }
@keyframes nox-comic-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes nox-comic-fade { from { opacity: 0; } to { opacity: 1; } }
.nox-story-comic-header { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 12px 20px; border-bottom: 1px solid #ffffff12; background: linear-gradient(180deg, #191a1f, #141519); }
.nox-story-comic-headline { display: grid; gap: 4px; min-width: 0; }
.nox-story-comic-eyebrow { margin: 0; color: #ff7386; font: 700 13.5px/1 var(--c-sans, var(--nox-font-sans, sans-serif)); letter-spacing: .14em; }
.nox-story-comic-eyebrow[hidden] { display: none; }
/* 팝업이 왜 떴는지가 먼저 읽히도록 제목을 키우고 바로 아래에 이유를 둔다. */
.nox-story-comic-header h2 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #ffffff; font: 800 23px/1.25 var(--c-sans, var(--nox-font-sans, sans-serif)); letter-spacing: -.015em; }
.nox-story-comic-reason { margin: 0; color: #a6a8b0; font: 500 14.5px/1.45 var(--c-sans, var(--nox-font-sans, sans-serif)); letter-spacing: -.005em; }
/* 읽은 정도를 헤더 아래 얇은 막대로 보여 준다. */
.nox-story-comic-progress { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #ff5268, #ff9aa6); transition: width .12s linear; }
.nox-story-comic-close { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffffff1f; border-radius: 50%; background: #ffffff0d; color: #cfd1d8; font-size: 21px; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.nox-story-comic-close:hover { background: #ffffff1c; border-color: #ffffff33; color: #fff; }
.nox-story-comic-close:focus-visible { outline: 2px solid #ff5268; outline-offset: 2px; }
.nox-story-comic:focus, .nox-story-comic:focus-visible, .nox-story-comic-content:focus { outline: none; }
.nox-story-comic-content:focus-visible { outline: 2px solid #ff5268; outline-offset: -3px; }
.nox-story-comic-content { flex: 1; min-height: 0; display: grid; align-content: start; gap: 10px; padding: 10px; overflow: auto; overscroll-behavior: contain; background: #08080a; scrollbar-width: thin; scrollbar-color: #ffffff26 transparent; }
.nox-story-comic-content::-webkit-scrollbar { width: 8px; }
.nox-story-comic-content::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #ffffff26; background-clip: content-box; }
.nox-story-comic-content img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 10px; }
.nox-story-comic-content [hidden] { display: none; }
.nox-story-comic-error { padding: 32px 24px; color: #d4d4d8; font: 400 17px/1.7 var(--c-sans, var(--nox-font-sans, sans-serif)); }
/* 상세 페이지 WELCOME CLIP 섹션의 작품 웰컴 영상(scripts/gen_story_welcome.py → src/story-videos.json).
   세로 영상이라 본문 폭을 다 쓰지 않고 가운데에 적당한 크기로 앉힌다.
   화면에 들어오면 자동 재생되고, 그 뒤로는 화면을 벗어나도 계속 재생된다.
   클릭(또는 Enter·Space)으로 멈추고 이어 본다. */
.story-welcome-section[hidden] { display: none !important; }
.story-welcome-lead { margin: 9px 0 0; color: rgba(255, 255, 255, .5); font: 540 13.5px/1.6 var(--c-sans, var(--nox-font-sans, sans-serif)); text-wrap: balance; word-break: keep-all; }
/* 바깥 한 겹은 그라디언트 테두리, 안쪽은 영상. 재생 중에는 테두리가 살짝 달아오른다. */
.story-welcome-stage { position: relative; width: min(100%, 420px); margin: 16px auto 0; padding: 1px; border-radius: 22px; background: linear-gradient(158deg, #ffffff3d, #ffffff0d 38%, #ff526836 76%, #ffffff1a); box-shadow: 0 28px 60px -30px #000000f2; transition: box-shadow .4s ease; }
.story-welcome-card { position: relative; overflow: hidden; margin: 0; border-radius: 21px; background: #08080a; cursor: pointer; }
.story-welcome-card[hidden] { display: none !important; }
.story-welcome-card:focus-visible { outline: 2px solid #ff5268; outline-offset: -3px; }
.story-welcome-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #ffffff12; pointer-events: none; transition: box-shadow .4s ease; }
.story-welcome-card.is-playing::after { box-shadow: inset 0 0 0 1px #ff52684d, inset 0 -40px 60px -50px #ff526859; }
.story-welcome-card-video { display: block; width: 100%; aspect-ratio: 768 / 1168; object-fit: contain; background: #000; }
/* 배지 앞 점은 재생 중일 때만 맥동한다. */
/* 소리 버튼 대신 가운데 원형 재생 버튼 하나. 한 번 누르면 계속 재생되고, 재생 중에는 숨는다. */
.story-welcome-card-mute { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffffff26; border-radius: 50%; background: #0a0a0ac7; backdrop-filter: blur(10px); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.story-welcome-card-mute:hover { background: #1c1c20; border-color: #ffffff59; }
.story-welcome-card-mute:focus-visible { outline: 2px solid #ff5268; outline-offset: 2px; }
.story-welcome-card-mute[aria-pressed="true"] { color: #ffb0ba; }
.story-welcome-card-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; transform: translate(-50%, -50%); border: 1px solid #ffffff4d; border-radius: 50%; background: radial-gradient(circle at 50% 26%, #ffffff30, #0b0b0dc4 64%), #0b0b0dcc; backdrop-filter: blur(10px); color: #fff; font-size: 31px; box-shadow: 0 18px 44px -18px #000000f2, 0 0 0 6px #ffffff0d; pointer-events: none; transition: transform .25s ease, border-color .25s ease; }
.story-welcome-card-play[hidden] { display: none !important; }
.story-welcome-card-play i { margin-left: 3px; }
/* 눌러야 한다는 신호로 옅은 링이 퍼진다. */
.story-welcome-card-play::after { content: ""; position: absolute; inset: -7px; border: 1px solid #ffffff2e; border-radius: 50%; animation: nox-welcome-ring 2.6s ease-out infinite; }
@keyframes nox-welcome-ring {
  0% { transform: scale(.84); opacity: .6; }
  70% { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}
.story-welcome-card:hover .story-welcome-card-play:not([hidden]) { transform: translate(-50%, -50%) scale(1.06); border-color: #ffffff73; }
/* 영상 아래쪽에 누구의 인사인지, 무슨 말을 하는지 한 줄로 얹는다. */
.story-welcome-card-caption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 40px 14px 13px; background: linear-gradient(180deg, #00000000, #000000b8 58%, #000000e8); pointer-events: none; }
.story-welcome-card-caption b { color: #fff; font: 700 15px/1.25 var(--c-sans, var(--nox-font-sans, sans-serif)); letter-spacing: -.005em; }
.story-welcome-card-caption span { display: -webkit-box; overflow: hidden; color: rgba(255, 255, 255, .66); font: 500 13.5px/1.55 var(--c-sans, var(--nox-font-sans, sans-serif)); word-break: keep-all; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* 닫기 푸터는 스크롤 영역 밖의 flex 고정 행이라 이미지를 가리지 않는다. */
.nox-story-comic-footer { position: relative; flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #ffffff12; background: linear-gradient(180deg, #141519, #101116); }
.nox-story-comic-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; background: linear-gradient(180deg, #08080a00, #08080ae6); pointer-events: none; }
.nox-story-comic-footer { display: flex; gap: 10px; justify-content: center; }
.nox-story-comic-dismiss { display: flex; gap: 8px; flex: 0 1 auto; width: min(360px, 100%); position: relative; overflow: hidden; background: linear-gradient(135deg, #ff4d64, #c81e3a) !important; border-color: transparent !important; box-shadow: 0 10px 24px -12px #ff4d64; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 12px 18px; border: 1px solid #ffffff24; border-radius: 999px; background: #ffffff10; color: #f2f3f5; font: 700 17px/1.2 var(--c-sans, var(--nox-font-sans, sans-serif)); letter-spacing: -.005em; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .12s ease; }
.nox-story-comic-dismiss:hover { filter: brightness(1.08); }
/* 읽는 동안 은은하게 빛이 지나가 ‘여기서 이어 본다’는 신호를 준다. */
.nox-story-comic-dismiss::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: 0; width: 38%; pointer-events: none; background: linear-gradient(100deg, #ffffff00, #ffffff8c, #ffffff00); transform: translateX(-160%) skewX(-18deg); animation: nox-dismiss-sheen 3.6s ease-in-out infinite; }
@keyframes nox-dismiss-sheen {
  0% { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  10% { opacity: .85; }
  40% { transform: translateX(360%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(360%) skewX(-18deg); opacity: 0; }
}
.nox-story-comic-dismiss:active { transform: translateY(1px); }
.nox-story-comic-dismiss:focus-visible { outline: 2px solid #ff5268; outline-offset: 2px; }
/* 데스크탑: 웰컴 영상을 상세 페이지 오른쪽 아래 플로팅 창으로 띄운다(story-dossier.js placeWelcome). */
.story-welcome-float { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: min(340px, calc((100vh - 48px) * 768 / 1168)); padding: 1px; border-radius: 20px; background: linear-gradient(158deg, #ffffff3d, #ffffff0d 38%, #ff526836 76%, #ffffff1a); box-shadow: 0 30px 70px -24px #000000f2, 0 0 0 1px #00000066; animation: nox-welcome-float-in .42s cubic-bezier(.2, .8, .2, 1); }
.story-welcome-float[hidden] { display: none !important; }
.story-welcome-float .story-welcome-card { border-radius: 19px; }
.story-welcome-float .story-welcome-card-play { width: 56px; height: 56px; font-size: 24px; }
.story-welcome-float .story-welcome-card-caption { padding: 32px 12px 11px; }
.story-welcome-float-hide { position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffffff26; border-radius: 50%; background: #0a0a0ad1; backdrop-filter: blur(10px); color: #fff; font-size: 22px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.story-welcome-float-hide:hover { background: #1c1c20; border-color: #ffffff59; }
.story-welcome-float-hide:focus-visible { outline: 2px solid #ff5268; outline-offset: 2px; }
.story-welcome-float-show { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #0c0c0ef2; color: #fff; font: 700 15.5px/1 var(--c-sans, var(--nox-font-sans, sans-serif)); cursor: pointer; }
.story-welcome-float-show i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ff5268; font-size: 14.5px; }
.story-welcome-float-show:hover { background: #1c1c20; }
.story-welcome-float-show:focus-visible { outline: 2px solid #ff5268; outline-offset: 2px; }
.story-welcome-float.is-collapsed { width: auto; border-radius: 999px; }
.story-welcome-float.is-collapsed .story-welcome-card, .story-welcome-float.is-collapsed .story-welcome-float-hide { display: none; }
.story-welcome-float.is-collapsed .story-welcome-float-show { display: inline-flex; }
@keyframes nox-welcome-float-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (min-width: 1440px) { .story-welcome-float { width: min(380px, calc((100vh - 64px) * 768 / 1168)); right: 32px; bottom: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .story-welcome-float { animation: none; }
  .nox-story-comic, .nox-story-comic::backdrop { animation: none; }
  .nox-story-comic-dismiss::after { animation: none; opacity: 0; }
  .story-welcome-card-play::after { animation: none; opacity: 0; }
  .story-welcome-card-play, .story-welcome-card::after, .story-welcome-stage { transition: none; }
}
@media (max-width: 639px) {
  .nox-story-comic { width: calc(100% - 20px); height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border-radius: 16px; }
  .nox-story-comic-header { padding: 10px 8px 10px 16px; }
  .nox-story-comic-header h2 { font-size: 20px; }
  .nox-story-comic-eyebrow { font-size: 13px; }
  .nox-story-comic-reason { font-size: 13.5px; }
  .nox-story-comic-content { gap: 8px; padding: 8px; }
  /* 좁은 화면에서는 영상이 본문 폭을 넘지 않게 한다. */
  .story-welcome-stage { width: min(100%, 100%); border-radius: 18px; }
  .story-welcome-card { border-radius: 17px; }
  .story-welcome-lead { font-size: 14.5px; }
  .story-welcome-card-play { width: 62px; height: 62px; font-size: 26.5px; }
  .story-welcome-card-caption { padding: 34px 12px 11px; }
  /* 다이얼로그 높이가 이미 세이프 에어리어를 빼므로 푸터는 중복 계산하지 않는다. */
  .nox-story-comic-footer { padding: 10px 12px; }
  .nox-story-comic-dismiss { width: 100%; }
}

.nox-story-dossier summary { display: flex; gap: 12px; align-items: baseline; padding: 15px 0; cursor: pointer; color: var(--book-ink); font-size: 1.031rem; line-height: 1.6; font-weight: 650; list-style: none; }
.nox-story-dossier summary::-webkit-details-marker { display: none; }
.nox-story-dossier summary::after { content: '+'; flex: 0 0 auto; margin-left: auto; color: var(--book-accent); font-size: 1.375rem; }
.nox-story-dossier details[open] > summary::after { content: '−'; }
.nox-story-dossier summary:focus-visible { outline: 2px solid var(--book-accent); outline-offset: 3px; border-radius: 3px; }
.nox-story-dossier summary:hover { text-decoration: underline; text-underline-offset: 4px; }

.nox-story-dossier .dossier-disclosure { border-top: 1px solid var(--book-line); padding: 4px 0; margin-top: 10px; }
.nox-story-dossier .dossier-disclosure:first-child { margin-top: 0; border-top: 0; }
.nox-story-dossier .dossier-disclosure[open] { padding-bottom: 16px; }
.nox-story-dossier .dossier-disclosure > summary { min-height: 44px; align-items: center; padding: 10px 0; }
.nox-story-dossier .dossier-disclosure-hint { margin-left: auto; color: var(--book-muted); font-size: .906rem; font-weight: 400; }
.nox-story-dossier .dossier-disclosure > summary::after { margin-left: 0; }
/* Ranking remains real anonymous data, with loading, empty and retry states. */
.nox-story-dossier .dossier-ranking { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--book-line); }
.nox-story-dossier .dossier-ranking .dossier-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.nox-story-dossier .dossier-ranking .icon-trophy { color: var(--book-accent); font-size: 1.25rem; }
.nox-story-dossier .dossier-ranking-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nox-story-dossier .dossier-ranking button { font: inherit; font-size: 1.031rem; color: var(--book-copy); background: var(--book-surface); border: 1px solid var(--book-line); border-radius: 6px; min-height: 44px; padding: 8px 14px; cursor: pointer; }
.nox-story-dossier .dossier-ranking button[aria-pressed=true] { color: var(--book-accent); border-color: var(--book-accent); }
.nox-story-dossier .dossier-ranking button:focus-visible { outline: 2px solid var(--book-accent); outline-offset: 3px; }
.nox-story-dossier .dossier-ranking-list { padding: 0; margin: 16px 0; list-style: none; }
.nox-story-dossier .dossier-ranking-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--book-line); font-size: 1.031rem; }
.nox-story-dossier .dossier-ranking-list strong { margin-left: auto; font-size: 1.031rem; }
.nox-story-dossier .dossier-ranking-position { width: 22px; color: var(--book-accent); }
.nox-story-dossier .dossier-ranking-status { color: var(--book-muted); }
@media (max-width: 420px) {
  .nox-story-dossier { padding-inline: 12px; }
  .nox-story-dossier .dossier-disclosure-hint { display: none; }

}

/* ---------- 작품별 커스텀 소개 문서 (src/story-documents/<id>.html → story-documents.js) ---------- */
/* 각 문서는 자기 <style>을 .dossier-document[data-story-document="<id>"] 아래 중첩으로 가져오고, 아래 .doc-* 블록만 공용으로 쓴다. */
.nox-story-dossier .dossier-document { margin: 8px 0 30px; padding: 4px 0 30px; border-bottom: 1px solid var(--book-line); }
.nox-story-dossier .dossier-document img { max-width: 100%; height: auto; }
.nox-story-dossier .dossier-document h4 { color: inherit; }
/* 작품 문서의 문단은 문서가 정한 칸(종이, 말풍선 등)의 글자색을 따른다. 위의 공용 p 색이 밝은 칸 안까지 덮어쓰면 글자가 배경에 묻힌다. */
.nox-story-dossier .dossier-document p { color: inherit; }
.nox-story-dossier .dossier-document .doc-block { margin-top: 20px; padding: 28px 28px 30px; border-radius: var(--book-radius, 12px); background: var(--book-surface); border: 1px solid var(--book-line); }
.nox-story-dossier .dossier-document .doc-heading { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.188rem; line-height: 1.4; letter-spacing: -.01em; color: var(--book-ink); }
.nox-story-dossier .dossier-document .doc-heading > i { color: var(--book-accent); font-size: 1.25rem; }
.nox-story-dossier .dossier-document .doc-heading > span { margin-left: auto; font-size: .813rem; font-weight: 700; letter-spacing: 0.16em; color: var(--book-muted); }
.nox-story-dossier .dossier-document .doc-lead { margin-top: 12px; font-size: 1.063rem; line-height: 1.7; }
.nox-story-dossier .dossier-document .doc-panels { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.nox-story-dossier .dossier-document .doc-panel { margin: 0; overflow: hidden; border-radius: 14px; background: var(--book-plate); border: 1px solid var(--book-line); }
.nox-story-dossier .dossier-document .doc-panel img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.nox-story-dossier .dossier-document .doc-panel figcaption { padding: 16px 18px 18px; }
.nox-story-dossier .dossier-document .doc-panel figcaption span { display: block; font-size: .813rem; font-weight: 800; letter-spacing: 0.14em; color: var(--book-accent); }
.nox-story-dossier .dossier-document .doc-panel figcaption strong { display: block; margin-top: 4px; font-size: 1.063rem; color: var(--book-ink); }
.nox-story-dossier .dossier-document .doc-panel figcaption p { margin-top: 6px; font-size: .938rem; line-height: 1.55; }
.nox-story-dossier .dossier-document .doc-choices { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.nox-story-dossier .dossier-document .doc-choice { display: block; width: 100%; padding: 18px 18px 20px; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 14px; background: var(--book-plate); border: 1px solid var(--book-line); transition: border-color 0.15s, transform 0.15s; }
.nox-story-dossier .dossier-document .doc-choice:hover { border-color: var(--book-accent); transform: translateY(-2px); }
.nox-story-dossier .dossier-document .doc-choice:focus-visible { outline: 2px solid var(--book-accent); outline-offset: 3px; }
.nox-story-dossier .dossier-document .doc-choice b { display: block; font-size: 1.063rem; color: var(--book-ink); }
.nox-story-dossier .dossier-document .doc-choice small { display: block; margin-top: 5px; font-size: .938rem; line-height: 1.5; color: var(--book-copy); }
.nox-story-dossier .dossier-document .doc-meter { margin-top: 18px; display: grid; gap: 8px; }
.nox-story-dossier .dossier-document .doc-meter-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .938rem; color: var(--book-copy); }
.nox-story-dossier .dossier-document .doc-meter-row i { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--book-plate); }
.nox-story-dossier .dossier-document .doc-meter-row i b { display: block; height: 100%; width: var(--value, 0%); border-radius: inherit; background: var(--book-accent); }
.nox-story-dossier .dossier-document .doc-meter-row em { font-style: normal; font-weight: 700; color: var(--book-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .nox-story-dossier .dossier-document .doc-panels { grid-template-columns: minmax(0, 1fr); }
  .nox-story-dossier .dossier-document .doc-panel img { aspect-ratio: 4 / 3; }
  .nox-story-dossier .dossier-document .doc-block { padding: 22px 20px 24px; }
}

.nox-story-dossier .dossier-document { --gd-accent: var(--book-accent); --gd-tint: transparent; --gd-display: inherit; --gd-code: inherit; }

/* 상세 문서 사진은 잘리지 않게 원본 비율로 보여준다(문서별 틀 비율보다 우선).
   예외: 의도적으로 작게 자른 프로필(선우 원형 사진, 재현 증명사진). */
.dossier-document-body img:not(.sw-pair img):not(.jh-id img) {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  position: static !important;
  inset: auto !important;
}
/* 사진을 꽉 채워 덮던 고정 비율 틀은 사진 크기를 따른다(틀만 남아 빈칸이 생기지 않게). */
.dossier-document-body :has(> img:not(.sw-pair img):not(.jh-id img)) {
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
}
/* 모바일: 재생 중인 웰컴 영상의 자리가 화면 밖으로 나가면 하단 버튼 위 오른쪽에 작은 창으로 띄운다(story-dossier.js placeWelcome). */
@media (max-width: 1023px) {
  .story-welcome-float.is-mini { right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 6050; width: clamp(170px, 48vw, 240px); border-radius: 18px; box-shadow: 0 24px 48px -16px #000000f2, 0 0 0 1px #00000080; }
  .story-welcome-float.is-mini .story-welcome-card { border-radius: 17px; }
  .story-welcome-float.is-mini .story-welcome-card-caption { display: none; }
  .story-welcome-float.is-mini .story-welcome-card-play { width: 52px; height: 52px; font-size: 22px; }
  .story-welcome-float.is-mini .story-welcome-float-hide { right: 8px; top: 8px; width: 36px; height: 36px; font-size: 20px; }
  .story-welcome-float.is-mini.is-collapsed { width: auto; border-radius: 999px; }
  .story-welcome-float.is-mini .story-welcome-float-show { height: 44px; padding: 0 18px 0 12px; font-size: 15.5px; }
}
