  .vn { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; container-type: size; }
  .vn[hidden] { display: none !important; }
  .vn-shell { position: relative; flex: none; width: min(100%, (100cqh - 2px) * 16 / 9); margin-inline: auto; container-type: inline-size;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
  .vn-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--night-2); cursor: pointer; isolation: isolate; }
  .vn-stage > div { position: absolute; inset: 0; }
  .vn [hidden] { display: none !important; }
  .vn-bg { z-index: 0; background: radial-gradient(120% 90% at 72% 8%, color-mix(in srgb, var(--moon-dim) 70%, transparent) 0%, transparent 62%),
    radial-gradient(90% 70% at 10% 110%, color-mix(in srgb, var(--ember-dim) 55%, transparent) 0%, transparent 60%), linear-gradient(165deg, var(--night-3), var(--night) 75%); }
  .vn-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .45s ease; }
  .vn-bg img.vn-on { opacity: 1; }
  .vn-stage > .vn-place { z-index: 1; inset: 0 auto auto 0; padding: 3% 4%; font: 400 clamp(15px, 3.2cqw, 34px)/1.15 var(--display);
    letter-spacing: .08em; color: color-mix(in srgb, var(--silver) 28%, transparent); pointer-events: none; max-width: 70%; overflow-wrap: anywhere; }
  .vn-stage:not(.vn-nobg) > .vn-place { display: none; }
  .vn-tint { z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s ease, background .6s ease; }
  .vn[data-tod="dawn"] > .vn-shell > .vn-stage > .vn-tint { opacity: 1; background: linear-gradient(180deg, #ffb58a3a 0%, #f0906022 55%, #ffd2a014 100%); }
  .vn[data-tod="dusk"] > .vn-shell > .vn-stage > .vn-tint { opacity: 1; background: linear-gradient(180deg, #7a4a8a30 0%, #ff9a5a38 55%, #c0603a2a 100%); }
  .vn[data-tod="evening"] > .vn-shell > .vn-stage > .vn-tint { opacity: .55; background: #3a4a8a; mix-blend-mode: multiply; }
  .vn[data-tod="night"] > .vn-shell > .vn-stage > .vn-tint { opacity: .72; background: #1b2550; mix-blend-mode: multiply; }
  .vn[data-tod="evening"] > .vn-shell > .vn-stage > .vn-sprites { filter: brightness(.82) saturate(.88); }
  .vn[data-tod="night"] > .vn-shell > .vn-stage > .vn-sprites { filter: brightness(.68) saturate(.78) hue-rotate(-6deg); }
  .vn[data-tod="dusk"] > .vn-shell > .vn-stage > .vn-sprites { filter: sepia(.12) saturate(1.05); }
  .vn-wx { z-index: 2; pointer-events: none; }
  .vn-wx[data-wx="rain"] { opacity: .75; background-image: linear-gradient(100deg, transparent 49.4%, #dfe6f548 50%, transparent 50.6%),
    linear-gradient(100deg, transparent 49.5%, #dfe6f530 50%, transparent 50.5%); background-size: 37px 92px, 53px 131px; animation: vn-rain .75s linear infinite; }
  @keyframes vn-rain { to { background-position: 0 92px, 0 131px; } }
  .vn-wx[data-wx="snow"] { opacity: .85; background-image: radial-gradient(circle at 23% 31%, #ffffffcc 0 1.4px, transparent 2px), radial-gradient(circle at 71% 64%, #ffffff88 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 83%, #ffffffaa 0 1.2px, transparent 1.8px);
    background-size: 67px 71px, 97px 113px, 139px 127px; background-position: 0 0, 31px 17px, 11px 53px; animation: vn-snow 9s linear infinite; }
  @keyframes vn-snow { to { background-position: 0 71px, 128px 130px, 11px 180px; } }
  .vn-wx[data-wx="fog"] { background: radial-gradient(60% 40% at 30% 72%, #dde2ec2a, transparent 70%), radial-gradient(55% 38% at 78% 62%, #dde2ec22, transparent 70%),
    linear-gradient(to top, #dde2ec36, transparent 68%); background-size: 160% 100%; animation: vn-fog 22s ease-in-out infinite alternate; }
  @keyframes vn-fog { to { background-position: 100% 0; } }
  .vn-sprites { z-index: 3; pointer-events: none; transition: filter .6s ease; }
  .vn-spr { position: absolute; bottom: 0; --dy: 0%; --sc: 1; transform: translateX(-50%) translateY(var(--dy)) scale(var(--sc)); transform-origin: 50% 100%;
    transition: left .3s ease, transform .25s ease, filter .25s ease, opacity .25s ease; z-index: 1; }
  img.vn-cutout { height: 90%; width: auto; max-width: 62%; object-fit: contain; object-position: 50% 100%; display: block; filter: drop-shadow(0 6px 18px #000a); }
  .vn-frame { bottom: 3%; height: 72%; aspect-ratio: 832 / 1216; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--silver) 22%, transparent);
    background: var(--night-3); box-shadow: 0 14px 36px #000b, 0 2px 8px #0008; }
  .vn-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
  .vn-spr.vn-broken { opacity: 0 !important; }
  .vn-spr.vn-in { opacity: 0; --dy: 4%; }
  .vn-spr.vn-out { opacity: 0; --dy: 3%; z-index: 0; }
  .vn-spr.vn-talk { --sc: 1.05; z-index: 3; }
  .vn-spr.vn-dim { filter: brightness(.55); }
  img.vn-cutout.vn-dim { filter: brightness(.55) drop-shadow(0 6px 18px #000a); }
  img.vn-cutout.vn-shadow, img.vn-cutout.vn-shadow.vn-dim { filter: brightness(0) opacity(.72) drop-shadow(0 0 10px #000c); }
  .vn-frame.vn-shadow img { filter: brightness(0); }
  .vn-spr.vn-frame.vn-shadow, .vn-spr.vn-frame.vn-shadow.vn-dim { filter: opacity(.72); }
  .vn-spr.vn-ghost { pointer-events: none; animation: vn-ghost .15s ease forwards; }
  @keyframes vn-ghost { to { opacity: 0; } }
  .vn-cg { z-index: 4; background: var(--night); opacity: 0; transition: opacity .45s ease; }
  .vn-cg.vn-on { opacity: 1; }
  .vn-cg img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .vn-stage > .vn-choices { position: absolute; z-index: 5; inset: auto 8% calc(max(30%, 100px) + 4.5%) 8%; display: flex; flex-direction: column; align-items: center; gap: clamp(6px, .8cqw, 12px);
    max-height: 56%; overflow-y: auto; scrollbar-width: thin; padding: 2px; animation: vn-fade .3s ease; }
  .vn-choices[hidden] { display: none !important; }
  .vn-choice { position: relative; box-sizing: border-box; width: min(100%, 640px); padding: .55em 1em .55em 2.5em; border-radius: 10px; text-align: left; cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--moon) 45%, transparent); background: color-mix(in srgb, var(--night) 88%, transparent); color: var(--silver);
    font: clamp(13px, 1cqw + 6px, 24px)/1.35 var(--story); text-wrap: pretty; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 24px #0008;
    transition: border-color .15s ease, background .15s ease, transform .15s ease; }
  .vn-choice::before { content: attr(data-n); position: absolute; left: .95em; top: 50%; transform: translateY(-50%); font: .7em var(--mono); color: var(--moon); opacity: .85; }
  .vn-choice:hover, .vn-choice:focus-visible { border-color: var(--moon); background: color-mix(in srgb, var(--night-2) 92%, var(--moon)); transform: translateX(3px); outline: none; }
  .vn-choice.vn-go { width: auto; min-width: 40%; text-align: center; padding-left: 1.2em; padding-right: 1.2em; color: var(--ember); border-color: var(--ember-dim); }
  .vn-choice.vn-go::before { content: none; }
  .vn.vn-bare > .vn-shell > .vn-stage > .vn-choices { opacity: 0; pointer-events: none; }
  .vn-card { z-index: 5; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 4% 6% 64px;
    background: color-mix(in srgb, var(--night) 94%, transparent); cursor: auto; user-select: text; -webkit-user-select: text; animation: vn-fade .35s ease; }
  .vn .vn-stage > .vn-card > * { margin-block: auto; max-width: none; }
  @keyframes vn-fade { from { opacity: 0; } }

  .vn-box { position: absolute; z-index: 6; left: 1.6%; right: 1.6%; bottom: 2.6%; height: max(30%, 100px); max-height: 60%; box-sizing: border-box; display: flex; flex-direction: column;
    padding: clamp(10px, 1.4cqw, 30px) clamp(12px, 1.8cqw, 36px) clamp(8px, .5cqw, 14px); border-radius: 10px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    background: color-mix(in srgb, var(--night) 86%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 10px 30px #0009;
    cursor: pointer; transition: opacity .25s ease, border-color .25s ease; }
  .vn.vn-bare > .vn-shell > .vn-box { opacity: 0; pointer-events: none; }
  .vn-plate { position: absolute; top: 0; left: clamp(10px, 2.2cqw, 22px); transform: translateY(-62%); display: flex; align-items: center; gap: 7px; max-width: 70%;
    padding: 3px 12px; border-radius: 6px; background: var(--night-2); border: 1px solid color-mix(in srgb, var(--vn-say, var(--say)) 55%, transparent);
    box-shadow: 0 4px 14px #0008; font: 400 clamp(12.5px, .8cqw + 5px, 22px)/1.3 var(--display); letter-spacing: .1em; color: var(--vn-say, var(--say)); }
  .vn-plate .vn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vn-face { flex: none; width: 1.9em; height: 1.9em; margin: -2px 0 -2px -6px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; border: 1px solid var(--line); }
  .vn-text { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; font: clamp(14.5px, 1.2cqw + 7px, 32px)/1.6 var(--story); color: var(--silver); text-wrap: pretty; }
  .vn-typed { white-space: pre-wrap; overflow-wrap: break-word; }
  .vn-text.vn-said { color: var(--vn-say, var(--say)); }
  .vn-text.vn-time { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; font: clamp(12.5px, .6cqw + 6px, 18px)/1.4 var(--mono); letter-spacing: .06em; color: var(--dust); }
  .vn-text.vn-time .vn-typed::before, .vn-text.vn-time .vn-typed::after { content: "—"; opacity: .5; margin: 0 8px; }
  .vn-more { display: inline-block; margin-left: 6px; font-size: .7em; color: var(--moon); vertical-align: middle; animation: vn-blink 1.1s ease-in-out infinite; }
  .vn-wait { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
  .vn-wait i { width: 5px; height: 5px; border-radius: 50%; background: var(--dust); animation: vn-dots 1.2s infinite ease-in-out; }
  .vn-wait i:nth-child(2) { animation-delay: .2s; } .vn-wait i:nth-child(3) { animation-delay: .4s; }
  @keyframes vn-blink { 50% { opacity: .2; transform: translateY(2px); } }
  @keyframes vn-dots { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
  .vn-ctl { flex: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .vn-btn { padding: .2em .8em; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; color: var(--dust); font: clamp(11.5px, .45cqw + 6px, 16px)/1.5 var(--mono); letter-spacing: .03em; }
  .vn-btn:hover:not(:disabled) { color: var(--silver); border-color: var(--line); background: #ffffff0d; }
  .vn-btn:disabled { opacity: .4; cursor: default; }
  .vn-btn[aria-pressed="true"] { color: var(--ember); border-color: var(--ember-dim); }
  .vn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vn.vn-carding > .vn-shell > .vn-box { height: auto; min-height: 0; padding-top: 4px; background: none; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .vn.vn-carding > .vn-shell > .vn-box > .vn-plate, .vn.vn-carding > .vn-shell > .vn-box > .vn-text { display: none; }

  .vn.vn-back > .vn-shell > .vn-box { border-color: color-mix(in srgb, var(--moon) 45%, transparent); }
  .vn-stage > .vn-earlier { position: absolute; z-index: 8; top: 3%; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding: 3px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--moon) 40%, transparent); background: color-mix(in srgb, var(--night) 84%, transparent);
    color: var(--moon); font: clamp(11.5px, .45cqw + 6px, 16px)/1.5 var(--mono); letter-spacing: .03em; cursor: pointer; animation: vn-fade .2s ease; }
  .vn-stage > .vn-earlier:hover { color: var(--silver); border-color: var(--line); }

  .vn > .vn-cutscene { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; outline: none; animation: vn-fade .3s ease; }
  .vn.vn-cutting > .vn-shell { visibility: hidden; }
  .vn-cutscene.vn-leaving { opacity: 0; pointer-events: none; transition: opacity .28s ease; }
  .vn-cutscene > .vn-cut-host { flex: 1 1 auto; min-height: 0; min-width: 0; --vn-say: initial; }
  .vn-cut-title { text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none; }
  .vn-cut-kicker { font: clamp(11.5px, .45cqw + 6px, 16px)/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--dust); margin-bottom: .9em; }
  .vn-cut-name { font: 400 clamp(22px, 4.4cqw, 48px)/1.18 var(--display); letter-spacing: .06em; color: var(--silver); text-wrap: balance; overflow-wrap: anywhere; }
  .vn-cutscene .vn-card { cursor: pointer; }
  .vn-cut-part { margin-right: auto; align-self: center; padding-left: 2px; font: clamp(11.5px, .45cqw + 6px, 16px)/1.5 var(--mono); letter-spacing: .03em; color: var(--dust); }
  .vn-stage > .vn-cut-label, .vn-stage > .vn-cut-wait { position: absolute; inset: auto; top: 3%; z-index: 7; display: flex; align-items: center; gap: 4px; box-sizing: border-box;
    padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--night) 80%, transparent); font: clamp(11.5px, .45cqw + 6px, 16px)/1.5 var(--mono); color: var(--dust); pointer-events: none; }
  .vn-stage > .vn-cut-label { display: block; left: 2%; max-width: 40%; color: var(--silver); letter-spacing: .03em; }
  .vn-stage > .vn-cut-label, .vn-stage > .vn-cut-wait > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .vn-stage > .vn-cut-wait { right: 2%; max-width: 30%; }
  .vn-cut-host .vn-stage > .vn-place { padding-top: calc(3% + 30px); }
  .vn-cut-host .vn-stage > .vn-earlier { top: calc(3% + 30px); }

  @media (max-width: 860px) and (orientation: portrait) {
    .vn { justify-content: flex-start; }
    .vn-shell { flex: 1 1 auto; min-height: 0; width: min(100%, 100cqh - 120px); display: flex; flex-direction: column; }
    .vn-stage { flex: none; border-radius: 8px; aspect-ratio: 1 / 1; }
    .vn-box { position: relative; left: auto; right: auto; bottom: auto; margin-top: 8px; flex: 1 1 auto; height: auto; min-height: 88px; max-height: none; padding: 12px 14px 6px;
      background: var(--night-2); border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
    .vn-plate { position: static; transform: none; align-self: flex-start; margin: -2px 0 6px; box-shadow: none; font-size: 13px; }
    .vn-text { font-size: 15.5px; }
    .vn-card { padding-bottom: 4%; }
    .vn-stage > .vn-choices { inset: auto 4% 4% 4%; max-height: 70%; }
    .vn-choice { font-size: 14.5px; }
    .vn.vn-carding > .vn-shell > .vn-box { flex: none; min-height: 0; background: none; }
    .vn.vn-bare > .vn-shell > .vn-box { opacity: 1; pointer-events: auto; }
  }
  @media (orientation: landscape) and (max-height: 520px) {
    .vn { container-type: normal; }
    .vn-shell { width: min(100%, (100dvh - 16px) * 16 / 9); }
  }
  @media (pointer: coarse), (max-width: 860px) and (orientation: portrait) {
    .vn-ctl { gap: 6px; }
    .vn-btn { padding: 8px 12px; font-size: 13px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .vn-spr, .vn-bg img, .vn-cg, .vn-tint, .vn-sprites, .vn-box { transition: none; }
    .vn-wx, .vn-more, .vn-wait i, .vn-card, .vn-cutscene, .vn-spr.vn-ghost, .vn-stage > .vn-earlier, .vn-choices { animation: none !important; }
    .vn-choice { transition: none; }
    .vn-cutscene.vn-leaving { transition: none; }
    .vn-wait i { opacity: .7; }
  }
