/* ── 시네마틱 16:9 비주얼 노벨 UI (서울 흐린 배경 + 16:9 극장 프레임) ── */
.vn-shell {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #060709;
  color: #f2efe9;
  display: grid;
  place-items: center;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}
/* 바깥 배경 — 비 내리는 서울 야경 흐리게 */
.vn-backdrop {
  position: absolute;
  inset: -32px;
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(8, 12, 20, 0.14), rgba(5, 7, 11, 0.56) 85%),
    url('./assets/bg-mid.png'),
    url('./assets/bg-far.jpg');
  background-size: cover, cover, cover;
  background-position: center, center bottom, center 25%;
  filter: blur(14px) brightness(0.68) saturate(0.9);
  transform: scale(1.06);
  pointer-events: none;
  z-index: 0;
}
/* 16:9 고정 극장 프레임 (PC · 가로 화면) */
.vn-frame {
  position: relative;
  z-index: 1;
  width: min(94vw, 1180px, calc(90dvh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #07080a;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 233, 0.14);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(0, 0, 0, 0.6);
  container-type: size;
}
.vn-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.vn-shell.shake .vn-frame { animation: vn-shake 0.36s cubic-bezier(.36,.07,.19,.97); }
@keyframes vn-shake {
  15% { transform: translate(-5px, 3px); }
  35% { transform: translate(5px, -3px); }
  55% { transform: translate(-3px, 2px); }
  75% { transform: translate(2px, -1px); }
  100% { transform: none; }
}

/* 배경 레이어 (풀블리드 시네마) */
.vn-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transition: opacity 0.7s ease, filter 0.6s ease;
  filter: brightness(0.76) contrast(1.04) saturate(0.88);
}
.vn-bg.jongno {
  background-image:
    linear-gradient(180deg, rgba(7,8,10,0.45) 0%, rgba(7,8,10,0.08) 38%, rgba(7,8,10,0.28) 70%, rgba(7,8,10,0.88) 100%),
    url('./assets/bg-mid.png'),
    url('./assets/bg-far.jpg');
  background-size: cover, cover, cover;
  background-position: center, center bottom, center 28%;
}
.vn-bg.base {
  background-image:
    linear-gradient(180deg, rgba(7,8,10,0.5) 0%, rgba(7,8,10,0.92) 100%),
    url('./assets/base.jpg');
}
.vn-bg.bridge {
  background-image:
    linear-gradient(180deg, rgba(6,10,16,0.58) 0%, rgba(8,14,20,0.22) 38%, rgba(7,10,14,0.42) 70%, rgba(7,8,10,0.92) 100%),
    url('./assets/bg-mid.png'),
    url('./assets/bg-far.jpg');
  background-size: cover, cover, cover;
  background-position: center, center bottom, center 22%;
  filter: brightness(0.72) contrast(1.08) saturate(0.72) hue-rotate(-10deg);
}

/* 은은한 빗줄기 */
.vn-rain {
  position: absolute;
  inset: -40px 0 0 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-image:
    repeating-linear-gradient(103deg, transparent 0 46px, rgba(220, 232, 245, 0.09) 46px 47px),
    repeating-linear-gradient(103deg, transparent 0 82px, rgba(220, 232, 245, 0.05) 82px 83px);
  background-size: 180px 280px, 260px 340px;
  animation: vn-rain-fall 0.72s linear infinite;
}
.vn-rain.on { opacity: 1; }
@keyframes vn-rain-fall {
  from { background-position: 0 0, 0 0; }
  to { background-position: -40px 280px, -55px 340px; }
}

/* 섬광 */
.vn-flash {
  position: absolute;
  inset: 0;
  background: #f8f6f0;
  opacity: 0;
  pointer-events: none;
  z-index: 35;
}
.vn-flash.go { animation: vn-flash-anim 0.34s ease-out; }
@keyframes vn-flash-anim {
  0% { opacity: 0.65; }
  100% { opacity: 0; }
}

/* 상단 HUD — 테두리·배경 없는 초미니멀 고스트 컨트롤 */
.vn-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  background: linear-gradient(180deg, rgba(7,8,10,0.72) 0%, rgba(7,8,10,0) 100%);
  transition: opacity 0.25s ease;
}
.vn-hud-l, .vn-hud-r {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.vn-btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: rgba(242, 239, 233, 0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
  position: relative;
}
.vn-btn:hover { color: #ffffff; }
.vn-btn.on { color: #f2efe9; }
.vn-btn.on::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #d9b872;
}
.vn-step {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(242, 239, 233, 0.34);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.vn-shell.ui-hidden .vn-hud,
.vn-shell.ui-hidden .vn-box-wrap,
.vn-shell.ui-hidden .vn-radio-banner {
  opacity: 0;
  pointer-events: none;
}

/* 무전 수신 표시 — 얇은 1줄 시네마 인디케이터 */
.vn-radio-banner {
  position: absolute;
  top: max(50px, calc(env(safe-area-inset-top) + 38px));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 26;
  padding: 6px 14px;
  background: rgba(12, 13, 16, 0.72);
  border-top: 1px solid rgba(217, 184, 114, 0.45);
  border-bottom: 1px solid rgba(217, 184, 114, 0.2);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  white-space: nowrap;
}
.vn-radio-banner.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.vn-radio-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #d9b872;
  text-transform: uppercase;
}
.vn-radio-txt {
  font-size: 12px;
  color: rgba(242, 239, 233, 0.78);
  font-weight: 500;
}

/* 캐릭터 스테이지 — 대사하는 화자만 단독 등장 · 16:9 프레임 비율 기준 */
.vn-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.vn-slot.solo {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: calc(86% * var(--ch, 1));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(.2,.8,.2,1);
}
.vn-slot.solo.show {
  opacity: 0.92;
  transform: translateX(-50%) translateY(0);
}
.vn-slot.solo.show.comms {
  opacity: 0.72;
}
.vn-slot.solo.show.comms img {
  filter: saturate(0.45) contrast(0.95) brightness(0.74) drop-shadow(0 0 18px rgba(107, 184, 217, 0.28));
}
.vn-slot.solo img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  /* 쨍한 게임 원색을 비 오는 야간 영화 톤으로 부드럽게 눌러 줌 */
  filter: saturate(0.68) contrast(0.94) brightness(0.82) drop-shadow(0 18px 36px rgba(0, 0, 0, 0.85));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0.28) 93%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, rgba(0, 0, 0, 0.28) 93%, transparent 100%);
}

/* 스킬 컷인 — 날카로운 영화식 와이드 슬라이스 */
.vn-cutin {
  position: absolute;
  left: -4%; right: -4%;
  top: 28%;
  height: 104px;
  z-index: 28;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(90deg, transparent, rgba(7,8,10,0.88) 18%, rgba(7,8,10,0.88) 82%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--c, #f2efe9) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--c, #f2efe9) 40%, transparent);
  transform: translateX(-115%) skewY(-3deg);
  opacity: 0;
}
.vn-cutin.go { animation: vn-cutin-anim 1.05s cubic-bezier(.18,.88,.24,1) forwards; }
@keyframes vn-cutin-anim {
  0% { opacity: 0; transform: translateX(-110%) skewY(-3deg); }
  16% { opacity: 1; transform: translateX(0) skewY(-3deg); }
  78% { opacity: 1; transform: translateX(1.5%) skewY(-3deg); }
  100% { opacity: 0; transform: translateX(110%) skewY(-3deg); }
}
.vn-cutin img {
  height: 150px;
  align-self: flex-end;
  transform: skewY(3deg);
}
.vn-cutin-txt { transform: skewY(3deg); }
.vn-cutin-txt span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; color: var(--c, #d9b872); }
.vn-cutin-txt b { font-family: 'Noto Serif KR', Georgia, serif; font-size: clamp(22px, 5.5vw, 32px); font-weight: 700; color: #f7f4ee; letter-spacing: 0.06em; }

/* 하단 대사 영역 — 16:9 프레임 하단 시네마 그라데이션 */
.vn-box-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 22;
  padding: 40px 28px 20px;
  background: linear-gradient(180deg, rgba(7,8,10,0) 0%, rgba(7,8,10,0.78) 28%, rgba(7,8,10,0.95) 70%, rgba(7,8,10,0.98) 100%);
  cursor: pointer;
  transition: opacity 0.25s ease;
}
.vn-box {
  max-width: 720px;
  margin: 0 auto;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.vn-speaker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 28px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(242, 239, 233, 0.14);
}
.vn-speaker:empty {
  border-bottom-color: transparent;
  min-height: 10px;
  padding-bottom: 0;
  margin-bottom: 4px;
}
.vn-speaker-bar {
  width: 3px;
  height: 14px;
  background: var(--sc, #d9b872);
  align-self: center;
  flex: none;
}
.vn-speaker-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.vn-speaker-role {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(242, 239, 233, 0.45);
  letter-spacing: 0.06em;
}
.vn-text {
  font-family: 'Noto Serif KR', 'Pretendard Variable', serif;
  font-size: clamp(16px, 4vw, 18px);
  line-height: 1.9;
  color: #f3f0ea;
  word-break: keep-all;
  min-height: 68px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.vn-text.narration {
  color: rgba(242, 239, 233, 0.84);
}
.vn-next-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  background: #d9b872;
  transform: rotate(45deg);
  animation: vn-pulse 1.5s ease-in-out infinite;
}
@keyframes vn-pulse {
  0%, 100% { opacity: 0.9; transform: rotate(45deg) scale(1); }
  50% { opacity: 0.25; transform: rotate(45deg) scale(0.75); }
}

/* 선택지 — 정갈한 시네마 바 (네온 테두리 제거) */
.vn-choices {
  position: absolute;
  left: 50%;
  bottom: 215px;
  transform: translateX(-50%);
  width: min(90%, 540px);
  z-index: 27;
  display: grid;
  gap: 10px;
  animation: vn-fade-in 0.28s ease;
}
.vn-choice {
  position: relative;
  padding: 15px 20px;
  border-radius: 2px;
  border: 1px solid rgba(242, 239, 233, 0.2);
  border-left: 2px solid rgba(217, 184, 114, 0.75);
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(12px);
  color: #f5f2ec;
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.vn-choice:hover {
  background: rgba(242, 239, 233, 0.12);
  border-color: rgba(242, 239, 233, 0.55);
  border-left-color: #d9b872;
  transform: translateX(4px);
}
.vn-choice span {
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d9b872;
  margin-right: 12px;
}

/* 베르베르식 《서울 재건 상식 백과》 — 책 속 인용 페이지 미감 */
.vn-pedia {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 54px 28px 36px;
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  cursor: pointer;
  animation: vn-fade-in 0.45s ease;
}
.vn-pedia-card {
  max-width: 520px;
  width: 100%;
  padding: 28px 0 24px;
  border-top: 1px solid rgba(242, 239, 233, 0.25);
  border-bottom: 1px solid rgba(242, 239, 233, 0.18);
}
.vn-pedia-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #d9b872;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.vn-pedia-card h3 {
  margin: 0 0 22px;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: clamp(20px, 4.8vw, 25px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.vn-pedia-card p {
  margin: 0 0 14px;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.95;
  color: rgba(242, 239, 233, 0.86);
  word-break: keep-all;
}
.vn-pedia-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(242, 239, 233, 0.46);
  word-break: keep-all;
}
.vn-tap-hint {
  color: #d9b872;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex: none;
  animation: vn-blink 1.6s ease-in-out infinite;
}

/* 헬멧 안쪽 테이프 번호판 클로즈업 */
.vn-plate-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 64px 20px 100px;
  background: rgba(6, 7, 9, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
  animation: vn-fade-in 0.5s ease;
}
.vn-tape {
  position: relative;
  padding: 24px 38px;
  background: linear-gradient(135deg, #ece7dc, #ddd6c6);
  color: #16181c;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  border-left: 3px dashed rgba(30, 30, 30, 0.22);
  border-right: 3px dashed rgba(30, 30, 30, 0.22);
  text-align: center;
}
.vn-tape-num {
  font-family: 'Pretendard Variable', Pretendard, monospace;
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #181a1f;
  filter: blur(0.2px);
}
.vn-tape-flicker {
  display: inline-block;
  min-width: 0.9em;
  color: #3a3f48;
  animation: vn-glitch-digit 1.8s ease-in-out infinite;
}
@keyframes vn-glitch-digit {
  0%, 100% { opacity: 0.82; filter: blur(0.4px); }
  45% { opacity: 0.22; filter: blur(2.4px); }
  55% { opacity: 0.88; filter: blur(0.5px); }
}
.vn-tape-cap {
  margin-top: 20px;
  font-size: 12.5px;
  color: rgba(242, 239, 233, 0.52);
  text-align: center;
  letter-spacing: 0.04em;
}
/* 군용 좌표 · 비공개 기록 클로즈업 */
.vn-coord-card {
  max-width: 440px;
  width: 100%;
  padding: 26px 24px 22px;
  border-top: 1px solid color-mix(in srgb, var(--cc, #d46a6a) 60%, transparent);
  border-bottom: 1px solid rgba(242, 239, 233, 0.16);
  background: rgba(12, 13, 16, 0.86);
  text-align: center;
  font-family: 'Pretendard Variable', Pretendard, monospace;
}
.vn-coord-stamp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(242, 239, 233, 0.48);
  margin-bottom: 14px;
}
.vn-coord-num {
  font-size: clamp(20px, 5.4vw, 26px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f4f1eb;
  margin-bottom: 12px;
}
.vn-coord-off {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--cc, #d46a6a) 70%, transparent);
  color: color-mix(in srgb, var(--cc, #d46a6a) 85%, #ffffff);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  animation: vn-glitch-digit 2.2s ease-in-out infinite;
}
.vn-coord-st {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--cc, #d46a6a) 82%, transparent);
}
/* 세운상가 지하 보급고 감열지 영수증 클로즈업 */
.vn-rcpt-wrap {
  max-width: 360px;
  width: 100%;
}
.vn-rcpt {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, #f3efe6, #e6dfd1);
  color: #1a1c20;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  border-top: 3px dashed rgba(26, 28, 32, 0.24);
  border-bottom: 3px dashed rgba(26, 28, 32, 0.24);
  font-family: 'Pretendard Variable', Pretendard, monospace;
}
.vn-rcpt-store {
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}
.vn-rcpt-meta {
  margin: 4px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(26, 28, 32, 0.28);
  font-size: 10.5px;
  text-align: center;
  color: #555963;
}
.vn-rcpt-items {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(26, 28, 32, 0.28);
}
.vn-rcpt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
}
.vn-rcpt-row b {
  font-weight: 800;
  white-space: nowrap;
}
.vn-rcpt-tot {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 900;
  text-align: right;
  letter-spacing: 0.04em;
}
.vn-rcpt-note {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #3d424c;
  text-align: center;
}

/* 시작 타이틀 화면 — 영화 오프닝 크레딧 / 명일방주 챕터 오프너 스타일 */
.vn-gate {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 26px max(48px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7,8,10,0.35) 0%, rgba(7,8,10,0.68) 45%, rgba(7,8,10,0.96) 100%);
}
.vn-gate-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}
.vn-gate-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #d9b872;
  margin-bottom: 12px;
}
.vn-gate-kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: #d9b872;
}
.vn-gate-card h2 {
  margin: 0 0 10px;
  font-family: 'Noto Serif KR', Georgia, serif;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.vn-gate-card p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(242, 239, 233, 0.68);
  word-break: keep-all;
}
.vn-gate-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 239, 233, 0.16);
}
.vn-cta {
  height: 48px;
  padding: 0 20px;
  border-radius: 2px;
  border: 1px solid rgba(242, 239, 233, 0.8);
  background: #f2efe9;
  color: #0b0c0e;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.12s ease;
}
.vn-cta:hover { background: #ffffff; }
.vn-gate-subrow {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}
.vn-cta-sub {
  background: none;
  border: 0;
  padding: 6px 0;
  color: rgba(242, 239, 233, 0.56);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
}
.vn-cta-sub:hover { color: #f2efe9; }

/* 로그 & 엔딩 시트 */
.vn-modal {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}
.vn-modal-inner {
  max-width: 560px;
  width: 100%;
  margin: auto;
  padding: 24px 0;
  border-top: 1px solid rgba(242, 239, 233, 0.22);
  border-bottom: 1px solid rgba(242, 239, 233, 0.14);
}
.vn-log-list {
  display: grid;
  gap: 16px;
  max-height: 64vh;
  overflow-y: auto;
  margin: 20px 0;
  padding-right: 6px;
}
.vn-log-item b { display: block; font-size: 11.5px; letter-spacing: 0.06em; margin-bottom: 4px; }
.vn-log-item p { margin: 0; font-family: 'Noto Serif KR', serif; font-size: 14.5px; color: rgba(242, 239, 233, 0.86); line-height: 1.75; }

@keyframes vn-blink { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.3; } }
@keyframes vn-fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* 모바일 세로 화면: 서울 흐린 배경 위에 16:9 뷰포트 + 바로 아래 대사창 배치 */
@media (max-width: 759px) and (orientation: portrait) {
  .vn-shell {
    display: flex;
    flex-direction: column;
  }
  .vn-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: max(48px, calc(env(safe-area-inset-top) + 38px)) 0 max(18px, env(safe-area-inset-bottom));
    container-type: normal;
  }
  .vn-viewport {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex: none;
    background: #07080a;
    border-top: 1px solid rgba(242, 239, 233, 0.16);
    border-bottom: 1px solid rgba(242, 239, 233, 0.16);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.72);
  }
  .vn-slot.solo {
    height: calc(94% * var(--ch, 1));
  }
  .vn-radio-banner {
    top: 10px;
    padding: 4px 10px;
    gap: 6px;
  }
  .vn-radio-tag { font-size: 9.5px; }
  .vn-radio-txt { font-size: 11px; }
  .vn-cutin {
    height: 76px;
    top: 24%;
    gap: 12px;
  }
  .vn-cutin img { height: 110px; }
  .vn-box-wrap {
    position: relative;
    inset: auto;
    flex: none;
    padding: 20px 20px 18px;
    background: linear-gradient(180deg, rgba(7,8,10,0.86) 0%, rgba(7,8,10,0.95) 100%);
    border-bottom: 1px solid rgba(242, 239, 233, 0.1);
  }
  .vn-box {
    min-height: 136px;
  }
  .vn-gate {
    padding: 32px 22px max(44px, env(safe-area-inset-bottom));
  }
}

/* 소설 모드 안의 베르베르 지식 컷 */
.reader-pedia {
  margin: 28px 0;
  padding: 18px 0 18px 18px;
  border-left: 2px solid var(--accent);
}
.reader-pedia small {
  display: block;
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.reader-pedia p {
  margin: 0 !important;
  font-size: 0.94em;
  line-height: 1.88;
  color: var(--text);
}
