.novel-page { min-height: 100dvh; background: radial-gradient(110% 70% at 50% 0%, rgba(200,20,47,.18), transparent 58%), var(--ink); color: var(--text); padding-bottom: 108px; }
.novel-top { position: sticky; top: 0; z-index: 10; padding: calc(12px + env(safe-area-inset-top)) 18px 10px; background: color-mix(in oklab, var(--ink) 82%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.novel-top-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.novel-logo { font: 800 20px/1 var(--serif); }
.novel-logo span { color: var(--red-hi); }
.novel-small { color: var(--muted); font-size: 13px; font-weight: 700; }
.novel-cover-screen { width: min(100% - 36px, 720px); margin: 0 auto; padding: 30px 0 42px; display: grid; gap: 24px; }
.novel-hero { display: grid; gap: 22px; }
.novel-cover-box { position: relative; width: min(74vw, 320px); aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--ink-3); box-shadow: 0 28px 70px -34px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.novel-cover-img { width: 100%; height: 100%; object-fit: cover; }
.novel-cover-type { display: grid; align-content: end; gap: 10px; width: 100%; height: 100%; padding: 22px; background: radial-gradient(100% 70% at 50% 0%, rgba(229,34,63,.38), transparent 62%), linear-gradient(150deg, #23070d, #5c0814 52%, #0b0507); }
.novel-cover-type small { color: #ffd9de; font-weight: 800; }
.novel-cover-type strong { font: 800 34px/1.12 var(--serif); letter-spacing: 0; word-break: keep-all; }
.novel-badge-reader, .novel-done-chip { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }
.novel-badge-reader { background: var(--red); color: #fff; }
.novel-done-chip { background: rgba(245,222,222,.08); color: #ffe2e6; box-shadow: inset 0 0 0 1px var(--line-2); }
.novel-cover-copy { display: grid; gap: 10px; align-content: center; }
.novel-cover-copy h1 { margin: 0; font: 800 clamp(36px, 12vw, 64px)/1.08 var(--serif); letter-spacing: 0; word-break: keep-all; }
.novel-cover-copy p { margin: 0; color: var(--muted); }
.novel-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.reader { width: min(100% - 34px, 640px); margin: 0 auto; padding: 26px 0 40px; }
.reader-block { opacity: .35; transition: opacity .25s, filter .25s; scroll-margin: 36vh; }
.reader-block.done { opacity: .72; }
.reader-block.current { opacity: 1; }
.line-block { margin: 22px 0; cursor: pointer; }
.line-text { margin: 0; color: #f4e9e5; }
.who-N .line-text { font: 400 19px/1.9 var(--sans, "Pretendard Variable", Pretendard, sans-serif); letter-spacing: -0.01em; word-break: keep-all; }
.dialogue { max-width: 86%; display: grid; gap: 6px; }
.who-F .dialogue { justify-items: start; }
.who-M .dialogue { margin-left: auto; justify-items: end; }
.speaker { font-size: 12px; font-weight: 800; color: var(--muted); }
.bubble { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: rgba(245,222,222,.045); font-size: 18px; line-height: 1.75; }
.who-F .bubble { border-color: rgba(232,87,122,.34); }
.who-M .bubble { border-color: rgba(224,165,74,.36); text-align: right; }
.word { border-radius: 6px; padding: 0 1px; margin: 0 -1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.who-F .word.on { background: rgba(232,87,122,.28); }
.who-M .word.on { background: rgba(224,165,74,.3); }
.who-N .word.on { background: linear-gradient(transparent 58%, rgba(229,34,63,.36) 58%); text-shadow: 0 0 18px rgba(229,34,63,.45); }
.video-block { margin: 28px 0; display: grid; gap: 10px; }
.novel-video-wrap { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 9 / 16; max-height: 80vh; border-radius: 14px; overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); }
.novel-video { width: 100%; height: 100%; object-fit: cover; }
.skip-video { position: absolute; right: 10px; bottom: 10px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 800; }
.reader-controls { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(19,8,11,.94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.reader-controls-in { max-width: 680px; margin: 0 auto; display: grid; gap: 8px; }
.reader-buttons { display: flex; align-items: center; justify-content: center; gap: 8px; }
.reader-icon { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 900; cursor: pointer; }
.reader-play { width: 54px; height: 54px; background: var(--red); border-color: var(--red); }
.reader-speed { min-width: 58px; }
.reader-bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }
.reader-bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--red-hi); }
.reader-time { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.reader-locate { position: fixed; z-index: 32; right: 14px; bottom: calc(92px + env(safe-area-inset-bottom)); border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2); color: var(--text); padding: 9px 12px; font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s var(--ease); }
.reader-locate.show { opacity: 1; pointer-events: auto; transform: none; }
.end-panel { width: min(100% - 34px, 640px); margin: 10px auto calc(190px + env(safe-area-inset-bottom)); padding: 28px 0 10px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.end-panel h2 { margin: 0; font: 800 38px/1.1 var(--serif); letter-spacing: 0; }
.end-actions, .comment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.novel-comments { display: grid; gap: 12px; }
.comment-form { display: grid; gap: 10px; }
.comment-form button { justify-self: end; }
.comment-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.comment-item p { margin: 6px 0 0; white-space: pre-wrap; }
.comment-meta { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 13px; }
.novel-ad { display: grid; place-items: center; min-height: 250px; }
@media (min-width: 720px) {
  .novel-hero { grid-template-columns: 320px minmax(0, 1fr); align-items: center; }
}
@media (max-width: 480px) {
  .novel-top-in { gap: 8px; }
  .novel-small { display: none; }
  .bubble { font-size: 17px; }
  .who-N .line-text { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .reader-block, .reader-locate { transition: none; }
}
