.vn-screen {
  --vn-ink: #fff9f8;
  --vn-muted: #e2dbe5;
  --vn-accent: #eed3be;
  --vn-edge: clamp(0.7rem, 2.5vw, 2.25rem);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: min(27rem, 100svh);
  height: 100svh;
  overflow: hidden;
  background: #141622;
  color: var(--vn-ink);
  font-family: inherit;
  letter-spacing: normal;
}
.vn-screen *,
.vn-screen *::before,
.vn-screen *::after {
  box-sizing: border-box;
}
.vn-opening::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #0e0e15;
  pointer-events: none;
  animation: vn-lights-up 0.7s ease-out both;
}
@keyframes vn-lights-up {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.vn-screen [hidden] {
  display: none !important;
}
.vn-screen button {
  font: inherit;
  cursor: pointer;
}
.vn-screen button:focus-visible,
.vn-screen [tabindex]:focus-visible {
  outline: 3px solid #f4d3a8;
  outline-offset: -3px;
}
.vn-bg-stack,
.vn-picture,
.vn-cast,
.vn-wash,
.vn-end,
.vn-stage-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vn-bg-stack {
  z-index: -6;
  background: #131621;
}
.vn-picture {
  opacity: 0;
  background-position: center center;
  background-size: cover;
}
.vn-picture.vn-visible {
  opacity: 1;
}
@media (orientation: portrait) {
  .vn-picture[data-background="art/crosswalk.webp"] {
    background-position: 91% center;
  }
}
.vn-dissolve .vn-picture {
  transition: opacity 0.58s ease;
}
.vn-cast {
  z-index: -4;
  overflow: hidden;
}
.vn-figure {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  transition:
    left 0.55s cubic-bezier(0.25, 0.7, 0.28, 1),
    opacity 0.22s ease;
}
:where(.vn-screen, .note-photo) {
  --framing-near: 129%;
  --framing-far: 82%;
  --framing-party: 71%;
  --framing-party-far: 57%;
  --framing-close: 198%;
  --framing-tablet: 96%;
}
@media (max-width: 660px) {
  :where(.vn-screen, .note-photo) {
    --framing-near: 120%;
    --framing-far: 73%;
    --framing-party: 61%;
    --framing-party-far: 49%;
  }
}
@media (orientation: portrait) {
  :where(.vn-screen, .note-photo) { --framing-close: 162%; }
}
@media (max-width: 680px) and (orientation: portrait) {
  :where(.vn-screen, .note-photo) { --framing-tablet: 90%; }
}
@media (max-width: 680px) and (orientation: portrait) and (max-height: 800px) {
  :where(.vn-screen, .note-photo) { --framing-tablet: 87%; }
}
@media (max-width: 680px) and (orientation: portrait) and (max-height: 700px) {
  :where(.vn-screen, .note-photo) { --framing-tablet: 81%; }
}
@media (max-width: 680px) and (orientation: portrait) and (max-height: 600px) {
  :where(.vn-screen, .note-photo) { --framing-tablet: 75%; }
}
.vn-actor {
  position: absolute;
  left: 0;
  top: 8%;
  height: var(--framing-near);
  width: auto;
  max-width: none;
  max-height: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 6px #1c162433);
  transition:
    filter 0.24s,
    top 0.4s,
    height 0.4s;
}
.vn-figure[data-depth="far"] .vn-actor {
  height: var(--framing-far);
  top: 15%;
}
.vn-has-speaker .vn-figure:not(.is-speaking) .vn-actor {
  filter: brightness(0.87) saturate(0.83) drop-shadow(0 3px 6px #1c162433);
}
.vn-screen[data-layout="party"] .vn-actor {
  height: var(--framing-party);
  top: 13%;
  filter: drop-shadow(0 8px 7px #2120385e);
}
.vn-screen[data-layout="party"]
  .vn-has-speaker
  .vn-figure:not(.is-speaking)
  .vn-actor {
  filter: brightness(0.84) saturate(0.8) drop-shadow(0 8px 7px #2120385e);
}
.vn-screen[data-layout="party"] .vn-figure[data-depth="far"] .vn-actor {
  height: var(--framing-party-far);
  top: 18%;
}
.vn-nameplate {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.26rem;
  left: 0;
  top: 10%;
  transform: translateX(-50%);
  padding: 0.15rem 0.52rem;
  border: 1px solid #e2e9ff56;
  border-radius: 3px;
  color: white;
  background: #1b2538d1;
  font:
    600 clamp(0.68rem, 1vw, 0.85rem)/1.4 system-ui,
    sans-serif;
  box-shadow: 0 2px 7px #11223645;
  white-space: nowrap;
}
.vn-nameplate i {
  display: flex;
}
.vn-nameplate svg {
  width: 0.78rem;
  height: 0.78rem;
  color: #f3d79a;
}
.vn-wash {
  z-index: -2;
  background: linear-gradient(
    180deg,
    #1013233d,
    transparent 22%,
    transparent 60%,
    #12142074
  );
}
.vn-screen[data-layout="screen"] .vn-wash {
  background: linear-gradient(180deg, #0c12283d, #13152955 38%, #0d15267d);
}
.vn-screen.vn-blackout {
  background: #0c0d12;
}
.vn-blackout .vn-bg-stack,
.vn-blackout .mys-atmosphere-story,
.vn-blackout .vn-cast,
.vn-blackout .vn-hud,
.vn-blackout .vn-prop,
.vn-blackout .vn-tactics,
.vn-blackout .vn-wash {
  opacity: 0;
  transition: opacity 0.45s;
}
.vn-hud {
  position: absolute;
  top: max(var(--vn-edge), env(safe-area-inset-top));
  left: max(var(--vn-edge), env(safe-area-inset-left));
  right: var(--vn-edge);
  display: flex;
  pointer-events: none;
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}
.vn-hud-quiet .vn-hud {
  opacity: 0;
  transform: translateY(-4px);
}
.vn-slate {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1.8rem 0.52rem 0.85rem;
  border-left: 2px solid #edc4a3;
  background: linear-gradient(90deg, #171925bc, #20233393 74%, #23253800);
  text-shadow: 0 1px 5px #13112077;
}
.vn-chapter {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: #fff7ec;
  line-height: 1.2;
}
.vn-chapter > span {
  color: #f1cfae;
  font: 650 0.72rem/1.35 var(--sans, system-ui);
  letter-spacing: 0.065em;
}
.vn-chapter > b {
  color: #fffaf3;
  font-size: clamp(0.82rem, 1.02vw, 1rem);
  letter-spacing: -0.04em;
}
.vn-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #eee5e8;
  font-size: 0.74rem;
  line-height: 1.4;
}
.vn-location svg {
  width: 0.79rem;
  height: 0.79rem;
  color: #d9bfae;
}
.vn-location b {
  font-weight: 520;
}
.vn-location span {
  color: #d7d2df;
}
.vn-location span:not(:empty):before {
  content: "·";
  padding-right: 0.4rem;
  color: #c9b3b5;
}
.vn-tactics,
.vn-stage-fx {
  position: absolute;
  left: 0;
  right: 0;
  top: 4%;
  height: 72%;
  pointer-events: none;
}
.vn-tactics {
  z-index: -3;
}
.vn-stage-fx {
  z-index: -1;
  bottom: auto;
}
.vn-map-actor {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translate(-50%, -75%);
  transition-property: top, left;
  transition-timing-function: ease;
}
.vn-map-actor canvas {
  height: clamp(38px, 4.3vw, 66px);
  image-rendering: pixelated;
  width: auto;
  filter: drop-shadow(0 2px 3px #06121f90);
}
.vn-map-actor b {
  color: #eaf2ff;
  font:
    650 clamp(0.6rem, 0.88vw, 0.77rem)/1.35 system-ui,
    sans-serif;
  text-shadow: 0 1px 2px #000;
  background: #172437e6;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid #c6d1e264;
  padding: 0 0.28rem;
}
.vn-map-actor[data-id="gamma"] b {
  color: #d5f4bc;
}
.vn-map-actor[data-id="stellium"] b {
  color: #eddbff;
}
.vn-map-enemy {
  position: absolute;
  display: flex;
  align-items: center;
  flex-direction: column;
  transform: translate(-50%, -65%);
  pointer-events: none;
}
.vn-map-enemy canvas {
  height: clamp(21px, 2.3vw, 35px);
  image-rendering: pixelated;
  width: auto;
  filter: drop-shadow(0 2px 2px #151b2199);
}
.vn-map-enemy[data-type="boss"] canvas {
  height: clamp(65px, 6.5vw, 102px);
}
.vn-foe-label {
  border-radius: 2px;
  border: 1px solid #d39b7f99;
  padding: 0 0.3rem;
  color: #ffe2b7;
  background: #3d302fe8;
  font-size: 0.68rem;
  line-height: 1.5;
}
.vn-beam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #dab3ff;
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
  filter: drop-shadow(0 0 3px #914cff);
}
.vn-beam[data-effect="heal"] {
  stroke: #c8ffcf;
  filter: drop-shadow(0 0 3px #6dfbbb);
}
.vn-beam path {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 0.17 0.83;
  animation: vn-beam 0.82s ease-in-out both;
}
@keyframes vn-beam {
  0% {
    stroke-dashoffset: 0.17;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  87% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -1;
    opacity: 0;
  }
}
.vn-fx {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.vn-fx[data-effect="ping"] {
  width: 46px;
  height: 28px;
  border: 2px solid #dcffc2;
  border-radius: 50%;
  box-shadow: 0 0 12px #b8ffd8;
  animation: vn-ring 1.9s ease-out 2 both;
}
.vn-fx[data-effect="cast"],
.vn-fx[data-effect="heal"],
.vn-fx[data-effect="hit"],
.vn-fx[data-effect="warning"] {
  width: 70px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: radial-gradient(ellipse, currentColor, transparent 65%);
  color: #ceafff;
  mix-blend-mode: screen;
  animation: vn-cast 1.1s ease-out both;
}
.vn-fx[data-effect="heal"] {
  color: #a8ffc9;
}
.vn-fx[data-effect="hit"] {
  color: #ffc48f;
}
.vn-fx[data-effect="warning"] {
  color: #f49d77;
  animation-duration: 1.6s;
}
.vn-fx[data-effect="clear"] {
  width: 10rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffe8ab, transparent);
  box-shadow: 0 0 12px #ffe5a3;
  animation: vn-cast 1.5s both;
}
@keyframes vn-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes vn-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  95%,
  100% {
    transform: translate(-50%, -50%) scale(1.9);
    opacity: 0;
  }
}
@keyframes vn-cast {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
}
.vn-prop {
  position: absolute;
  top: clamp(4.7rem, 12%, 7rem);
  right: var(--vn-edge);
  width: min(28%, 19rem);
  border: 1px solid #a7c3ce85;
  border-radius: 5px;
  overflow: hidden;
  background: #182a3bee;
  color: #e5f1f9;
  box-shadow: 0 8px 22px #1215253d;
  pointer-events: none;
  animation: vn-enter 0.22s ease both;
}
.vn-screen[data-layout="screen"] .vn-prop {
  top: 40%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(72%, 35rem);
}
.vn-prop-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  border-bottom: 1px solid #b3c6d541;
  background: #344659;
  padding: 0.76rem 1rem;
  color: #f2f7ff;
}
.vn-prop-head i {
  display: flex;
}
.vn-prop-head svg {
  width: 1.08rem;
  height: 1.08rem;
  flex: none;
}
.vn-prop-head strong {
  font-weight: 650;
  font-size: 0.9rem;
}
.vn-prop-rows {
  padding: 0.55rem 0.8rem 0.65rem;
  display: grid;
  gap: 0.2rem;
}
.vn-prop-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #cedce427;
  padding: 0.36rem 0.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.vn-prop-row:last-child {
  border: 0;
}
.vn-prop-row > small {
  padding: 0.06rem 0.42rem;
  margin-left: auto;
  color: inherit;
  flex: none;
  background: #dae6ff14;
  border-radius: 3px;
  font-size: 0.82em;
}
.vn-prop[data-type="request"],
.vn-prop[data-type="friends"] {
  border-color: #b8dcb593;
}
.vn-prop[data-type="request"] .vn-prop-head,
.vn-prop[data-type="friends"] .vn-prop-head {
  background: #314b47;
}
.vn-prop[data-type="reward"] .vn-prop-head,
.vn-prop[data-type="craft"] .vn-prop-head {
  background: #544838;
  color: #ffebcb;
}
.vn-prop[data-type="tablet"],
.vn-prop[data-type="phone"] {
  background: #f3f2f8;
  color: #322f40;
  border: 5px solid #363641;
  border-radius: 13px;
  box-shadow:
    0 0 0 1px #cecedca6,
    0 13px 35px #2020335c;
}
.vn-prop[data-type="phone"] .vn-prop-head,
.vn-prop[data-type="tablet"] .vn-prop-head {
  background: #e3dce9;
  color: #453b4f;
  border-color: #c8c2d1;
}
.vn-prop[data-type="tablet"] .vn-prop-row,
.vn-prop[data-type="phone"] .vn-prop-row {
  border-color: #d1ced8;
  padding: 0.5rem 0.2rem;
}
.vn-prop[data-type="tablet"] .vn-prop-row small,
.vn-prop[data-type="phone"] .vn-prop-row small {
  background: #e1dbe7;
  color: #55465f;
}
.vn-prop[data-type="board"] {
  background: #304d46;
  color: #f4efda;
  border: 6px solid #ac896a;
  border-radius: 2px;
}
.vn-prop[data-type="board"] .vn-prop-head {
  background: #28463d;
  color: #faf0cd;
}
.vn-prop[data-type="board"] .vn-prop-rows {
  padding: 0.85rem 1rem;
}
.vn-prop[data-type="ready"] .vn-prop-row:before {
  content: "✓";
  color: #c7eeac;
}
.vn-prop[data-type="friends"] .vn-prop-row:before {
  content: "";
  border-radius: 50%;
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  background: #a8cea9;
}
.vn-prop[data-offline="true"] .vn-prop-row:before {
  background: #9a9fa8;
}
.vn-social-gate .vn-next {
  display: none !important;
}
.vn-screen .vn-prop[data-friend-state] {
  z-index: 1;
  width: clamp(14rem, 24vw, 18.5rem);
  border-color: #93b8b7a6;
  background: linear-gradient(145deg, #19303bf5, #18242ff5);
  box-shadow: 0 0.65rem 2rem #121e2c61;
}
.vn-prop[data-friend-state] .vn-prop-head {
  background: #314851;
  border-bottom-color: #b5d9d34d;
}
.vn-prop[data-friend-state] .vn-prop-head strong:focus {
  outline: none;
}
.vn-prop[data-friend-state] .vn-prop-rows {
  display: block;
  padding: 0.7rem 0.85rem;
}
.vn-social-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.vn-social-portrait {
  flex: none;
  position: static;
  width: 3rem;
  height: 3rem;
  border-radius: 5px;
  border: 1px solid #c7b3de83;
  object-fit: cover;
  object-position: 50% 26%;
  background: #3b384c;
}
.vn-social-identity {
  display: grid;
  gap: 0.18rem;
}
.vn-social-identity strong {
  font-size: 1rem;
  color: #faf1fc;
}
.vn-social-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #c9e8dc;
  font-size: 0.8rem;
}
.vn-social-presence::before {
  content: "";
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  background: #98d3a8;
}
.vn-prop[data-friend-state="pending"] .vn-social-presence {
  color: #e6d4bc;
}
.vn-prop[data-friend-state="pending"] .vn-social-presence::before {
  background: #dfbd8c;
}
.vn-prop[data-friend-state="offline"] .vn-social-presence {
  color: #bfcad0;
}
.vn-prop[data-friend-state="offline"] .vn-social-presence::before {
  background: #9baab0;
}
.vn-social-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.61rem;
  border-top: 1px solid #abccca40;
  padding-top: 0.62rem;
}
.vn-screen:not(.vn-ui-hidden) .vn-social-action {
  pointer-events: auto;
}
.vn-screen .vn-social-action {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  border: 1px solid #adcec3;
  background: #c3e0cb;
  color: #20312e;
  font: 650 0.85rem/1.2 var(--sans, system-ui);
}
.vn-prop[data-friend-state="accepted"] .vn-social-actions {
  justify-content: flex-start;
}
.vn-screen .vn-social-action[data-act="friend-continue"] {
  border-color: #9cb0b8;
  color: #e9f2f2;
  background: #304550;
}
.vn-screen .vn-social-action:hover:not(:disabled) {
  filter: brightness(1.1);
}
.vn-screen .vn-social-action:disabled {
  opacity: 0.58;
  cursor: default;
}
@media (max-width: 620px) and (orientation: portrait) {
  .vn-screen .vn-prop[data-friend-state] {
    top: max(4.2rem, calc(env(safe-area-inset-top) + 3.8rem));
    left: max(0.7rem, env(safe-area-inset-left));
    right: auto;
    width: min(13rem, calc(100% - 1.4rem));
  }
  .vn-prop[data-friend-state] .vn-prop-head strong {
    font-size: 0.83rem;
  }
  .vn-prop[data-friend-state] .vn-prop-rows {
    padding: 0.45rem 0.7rem;
  }
  .vn-social-portrait { width: 2.4rem; height: 2.4rem; }
  .vn-social-actions { margin-top: 0.45rem; padding-top: 0.4rem; }
  .vn-screen .vn-social-action {
    min-height: 2.75rem;
  }
}
@media (orientation: landscape) and (max-height: 480px) {
  .vn-screen .vn-prop[data-friend-state] {
    top: max(0.7rem, env(safe-area-inset-top));
    right: max(0.7rem, env(safe-area-inset-right));
    width: 13rem;
  }
  .vn-prop[data-friend-state] .vn-prop-rows {
    padding: 0.4rem 0.6rem;
  }
  .vn-social-portrait {
    width: 2.35rem;
    height: 2.35rem;
  }
  .vn-social-actions {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }
}
.vn-prop[data-type="shop"] .vn-prop-head {
  background: #59485e;
}
.vn-deck {
  --vn-margin-x: clamp(1rem, 5.4vw, 6.8rem);
  --vn-gutter: clamp(1.05rem, 3.2vw, 3.6rem);
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2 * var(--vn-margin-x)), 84rem);
  margin: 0 auto max(clamp(0.8rem, 3.75svh, 3rem), env(safe-area-inset-bottom));
}
.vn-panel {
  position: relative;
  border: 1px solid #e4ced145;
  border-top-color: #ddc5b790;
  border-radius: 2px 2px 4px 4px;
  color: var(--vn-ink);
  background: linear-gradient(104deg, #201d2af7, #282334e9 42%, #221f30e8);
  box-shadow:
    0 0.5rem 2.75rem #130f243c,
    inset 0 1px #fff4e713;
  backdrop-filter: blur(11px);
}
.vn-panel:before {
  content: "";
  position: absolute;
  left: var(--vn-gutter);
  top: -1px;
  width: 2.7rem;
  height: 2px;
  background: linear-gradient(90deg, #fbdcb6, #dfaeb2);
  pointer-events: none;
}
.vn-dialogue {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  min-height: clamp(6.2rem, 12.9svh, 9.7rem);
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--vn-ink);
  padding: 1.5rem calc(var(--vn-gutter) + 0.9rem) 1rem var(--vn-gutter);
}
.vn-dialogue:focus-visible {
  outline: 1px dashed #e8be968f !important;
  outline-offset: -6px !important;
}
.vn-speaker {
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--vn-gutter);
  transform: translateY(-55%);
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  min-height: 1.78rem;
  margin: 0;
  padding: 0.2rem 0.96rem 0.22rem 0.75rem;
  color: #f5dfce;
  background: #292433;
  border: 1px solid #bda397;
  border-radius: 2px;
  font: 650 clamp(0.83rem, 1.04vw, 0.99rem)/1.3 var(--sans, system-ui);
  letter-spacing: 0.025em;
}
.vn-speaker:before {
  content: "";
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--speaker-accent, #f0cb9f);
}
.vn-screen[data-voice="seoa"] {
  --speaker-accent: #d4c0e9;
}
.vn-screen[data-voice="suhyeon"] {
  --speaker-accent: #b6cbcd;
}
.vn-line {
  display: block;
  font-size: clamp(1.1rem, 1.42vw, 1.45rem);
  font-weight: 450;
  line-height: 1.72;
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: pre-line;
  letter-spacing: 0.003em;
}
.vn-dialogue[data-kind="thought"] .vn-line {
  color: #e1d9e9;
}
.vn-dialogue[data-kind="status"] .vn-line {
  color: #f1e5d0;
}
.vn-next {
  display: none;
  width: 0.4em;
  height: 0.4em;
  margin-inline: 0.48em -0.88em;
  vertical-align: 0.12em;
  background: #dcbca9;
  transform: rotate(45deg);
  pointer-events: none;
}
.vn-toolbar svg,
.vn-choices svg,
.vn-icon svg,
.vn-chat-strip svg {
  display: block;
  flex: none;
  width: 1rem;
  height: 1rem;
}
.vn-ready:not(.vn-picking) .vn-next {
  display: inline-block;
  opacity: 0.82;
  animation: vn-wait 2.6s ease-in-out infinite;
}
@keyframes vn-wait {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 0.92;
  }
}
.vn-fresh {
  animation: vn-ink 155ms ease-out both;
}
@keyframes vn-ink {
  from {
    opacity: 0.14;
  }
  to {
    opacity: 1;
  }
}
.vn-paused .vn-fresh,
.vn-ui-hidden .vn-fresh {
  animation-play-state: paused;
}
.vn-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.18rem;
  margin: 0 var(--vn-gutter);
  border-top: 1px solid #e2d2dc29;
  padding: 0.14rem 0 0.16rem;
}
.vn-toolbar > i {
  width: 1px;
  height: 0.73rem;
  background: #bfa7b24f;
  margin: 0 0.4rem;
}
.vn-screen .vn-tool,
.vn-screen .vn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  line-height: 1.25;
  border: 0;
  border-radius: 2px;
  padding: 0.35rem 0.63rem;
  color: #e3dae1;
  background: transparent;
  font-size: 0.83rem;
  font-weight: 540;
}
.vn-tool:hover,
.vn-icon:hover,
.vn-tool[aria-pressed="true"] {
  color: #fff2e4;
  background: #ebd0c31b;
}
.vn-tool[aria-pressed="true"] {
  box-shadow: inset 0 -2px #d6b4a0;
}
.vn-tool[aria-pressed="true"] svg {
  color: #ffdfb9;
}
.vn-auto-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  min-width: 1.22rem;
  color: #d7c7cb;
  line-height: 1;
}
.vn-auto-mark small {
  color: inherit;
  font-size: 0.53rem;
  letter-spacing: 0.015em;
  font-weight: 650;
  white-space: nowrap;
}
.vn-auto-mark b {
  width: 0.94rem;
  padding: 0.015rem 0 0.04rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-align: center;
  font:
    650 0.63rem/1 system-ui,
    sans-serif;
}
.vn-tool[aria-pressed="true"] .vn-auto-mark {
  color: #ffe0b2;
}
.vn-chatting .vn-deck {
  width: min(47rem, calc(100% - 2 * var(--vn-margin-x)));
  margin-left: var(--vn-margin-x);
}
.vn-chatting .vn-panel {
  border-color: #adced157;
  border-top-color: #b3ced1b3;
  background: linear-gradient(110deg, #172b35f4, #1b2636ef 82%);
  --vn-gutter: clamp(1rem, 2.3vw, 2rem);
}
.vn-chatting .vn-panel:before {
  background: linear-gradient(90deg, #b5dcd4, #8aa1b7);
}
.vn-chat-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #c7e4e3;
  border-bottom: 1px solid #b3d9d824;
  padding: 0.57rem var(--vn-gutter) 0.38rem;
  font-size: 0.74rem;
}
.vn-chat-strip b {
  font-weight: 680;
  letter-spacing: 0.035em;
}
.vn-chat-strip svg {
  height: 0.86rem;
  width: 0.86rem;
}
.vn-channel-members {
  margin-left: auto;
  color: #b6c9ce;
  font-size: 0.75rem;
}
.vn-prior {
  padding: 0.5rem var(--vn-gutter) 0;
  display: grid;
  gap: 0.18rem;
}
.vn-prior-row {
  display: flex;
  gap: 0.56rem;
  align-items: baseline;
  font-size: 0.83rem;
  color: #b9c9cf;
  line-height: 1.45;
}
.vn-prior-row b {
  color: #aac7ca;
  font-weight: 650;
}
.vn-prior-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vn-chatting .vn-dialogue {
  min-height: 4.35rem;
  padding: 0.56rem calc(var(--vn-gutter) + 0.65rem) 0.66rem var(--vn-gutter);
}
.vn-chatting .vn-speaker {
  position: static;
  transform: none;
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  gap: 0.4rem;
  color: #b8e1e4;
  font-size: 0.84rem;
  margin-bottom: 0.12rem;
}
.vn-chatting .vn-speaker:before {
  background: currentColor;
  width: 4px;
  height: 4px;
}
.vn-chatting [data-role="stellium"] b,
.vn-chatting .vn-dialogue[data-role="stellium"] .vn-speaker,
.vn-log b[data-role="stellium"] {
  color: #debfed;
}
.vn-chatting [data-role="gamma"] b,
.vn-chatting .vn-dialogue[data-role="gamma"] .vn-speaker,
.vn-log b[data-role="gamma"] {
  color: #d2e6b5;
}
.vn-restore {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.vn-restore > span {
  position: absolute;
  bottom: max(3.5%, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  background: #201c2bc7;
  border: 1px solid #d8c7d355;
  border-radius: 2px;
  white-space: nowrap;
  font-size: 0.78rem;
  animation: vn-peek-hint 1.65s both;
}
@keyframes vn-peek-hint {
  0% {
    opacity: 0;
  }
  12%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
.vn-screen .vn-restore:focus-visible {
  outline: 0;
}
.vn-ui-hidden .vn-hud,
.vn-ui-hidden .vn-deck,
.vn-ui-hidden .vn-prop,
.vn-ui-hidden .vn-nameplate,
.vn-ui-hidden .vn-map-actor b,
.vn-ui-hidden .vn-foe-label {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.vn-ui-hidden .vn-wash {
  opacity: 0;
}
.vn-old-pose {
  pointer-events: none;
}
.vn-line[data-pending]::after {
  content: attr(data-pending);
  visibility: hidden;
}
.vn-feedback {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  max-width: min(80%, 24rem);
  padding: 0.4rem 0.7rem;
  border: 1px solid #e0c9b883;
  border-radius: 3px;
  background: #211e2cde;
  color: #fff1df;
  font-size: 0.83rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
  z-index: 4;
}
.vn-feedback.vn-visible {
  opacity: 1;
}
.vn-ui-hidden .vn-feedback {
  visibility: hidden;
}
.vn-paused .vn-next,
.vn-low-motion .vn-next {
  animation: none !important;
}
.vn-choices {
  display: grid;
  justify-items: end;
  gap: 0.42rem;
  margin-bottom: 0.55rem;
}
.vn-choices button,
.vn-end-actions button {
  padding: 0.62rem 1.05rem;
  min-height: 2.63rem;
  border-radius: 4px;
  border: 1px solid #d0bedb91;
  background: #29283bed;
  color: #fff7ef;
  box-shadow: 0 2px 10px #1712242b;
  font-size: 0.94rem;
  line-height: 1.4;
}
.vn-choices button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.vn-choices button:hover,
.vn-end-actions button:hover {
  background: #44394d;
  border-color: #f2d6c3;
}
.vn-choices .vn-to-field {
  background: #f2d4b7;
  color: #302a36;
  font-weight: 650;
  border-color: #f0d7be;
}
.vn-choices .vn-to-field:hover {
  background: #ffe4c7;
  border-color: white;
}
.vn-end {
  pointer-events: auto;
  display: grid;
  place-items: center;
  z-index: 5;
  background: #0d0d15;
  animation: vn-enter 1s ease both;
}
.vn-credits {
  text-align: center;
}
.vn-credits > svg {
  width: 2.2rem;
  height: 2.2rem;
  stroke: #d5b89d;
}
.vn-credits > p {
  font-size: 0.84rem;
  color: #d4b897;
  letter-spacing: 0.12em;
  margin: 0.85rem 0 0.2rem;
}
.vn-credits h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  letter-spacing: 0.04em;
  line-height: 1.24;
  color: #fff9f1;
  margin: 0.2rem 0 2rem;
}
.vn-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.vn-end-actions button:first-child {
  background: #ead3c7;
  color: #332b3b;
}
.vn-log {
  width: min(40rem, calc(100vw - 2rem));
  max-height: 76svh;
  border: 1px solid #bca9c6;
  border-radius: 5px;
  padding: 0;
  overflow: hidden;
  background: #201e30;
  color: #fff7f5;
  box-shadow: 0 10px 45px #15112155;
}
.vn-log:not([open]) {
  display: none;
}
.vn-log::backdrop {
  background: #12111ec0;
  backdrop-filter: blur(5px);
}
.vn-log-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.48rem 0.7rem 0.48rem 1.3rem;
  border-bottom: 1px solid #c9b8cd3d;
}
.vn-log h2 {
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0;
}
.vn-log-list {
  list-style: none;
  overscroll-behavior: contain;
  overflow-y: auto;
  margin: 0;
  max-height: calc(73svh - 3.8rem);
  padding: 0 1.3rem 0.6rem;
}
.vn-log-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid #c3b4c62b;
  color: #f4edf4;
  font-size: 0.94rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.vn-log-list li.vn-log-scene {
  color: #e0bfaa;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  border-bottom: 1px solid #e1c3af6b;
  padding-top: 1.15rem;
}
.vn-log-list b {
  color: #e6cace;
  font-size: 0.8rem;
}
.vn-log-list li[data-kind="thought"] {
  color: #dbcfe4;
}
.vn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
  margin: -1px;
  border: 0;
  white-space: nowrap;
}
.vn-large .vn-line {
  font-size: clamp(1.23rem, 1.85vw, 1.56rem);
}
.vn-large .vn-log-list li:not(.vn-log-scene) {
  font-size: 1.1rem;
}
.vn-contrast .vn-panel,
.vn-contrast .vn-location,
.vn-contrast .vn-chapter,
.vn-contrast .vn-log {
  background: #11101b;
  border-color: #f1ddec;
}
.vn-contrast .vn-line,
.vn-contrast .vn-tool {
  color: white;
}
.vn-screen[data-layout="screen"] .vn-prop[data-type="tablet"] {
  width: min(83%, 50rem);
  top: 40%;
  border: 5px solid #33333c;
  border-radius: 13px;
  background: #edecf1;
}
.vn-prop[data-type="tablet"] .vn-prop-head {
  background: #d9dce9;
  border-bottom: 1px solid #c3c5d3;
  color: #383948;
  padding: 0.5rem 0.9rem;
}
.vn-prop[data-type="tablet"] .vn-prop-head svg {
  color: #685780;
}
.vn-prop[data-type="tablet"] .vn-prop-rows {
  padding: 0.7rem 0.8rem;
  gap: 0.45rem;
}
.vn-sheet-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.58rem;
  align-items: stretch;
}
.vn-sheet-page {
  position: relative;
  min-width: 0;
  padding: 0.7rem 0.8rem 0.75rem;
  background: #fffeff;
  border: 1px solid #d2d2da;
  border-radius: 3px;
  box-shadow: 0 2px 4px #54516a11;
  text-align: left;
}
.vn-sheet-caption {
  display: block;
  color: #665c76;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.71rem;
}
.vn-sheet-page h3 {
  margin: 0.26rem 0 0.48rem;
  padding: 0;
  border: none;
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  letter-spacing: -0.06em;
  color: #342c41;
  font-weight: 720;
  line-height: 1.2;
}
.vn-notice-copy {
  display: grid;
  gap: 0.27rem;
  color: #534c5c;
}
.vn-notice-copy p,
.vn-sheet-repeat {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.vn-notice-copy p:last-child {
  margin-top: 0.35rem;
}
.vn-notice-table {
  border-collapse: collapse;
  width: 100%;
  color: #45394a;
  font-size: clamp(0.75rem, 1.05vw, 0.95rem);
  line-height: 1.35;
}
.vn-notice-table th,
.vn-notice-table td {
  border: 1px solid #d2c8d4;
  text-align: left;
  padding: 0.19rem 0.34rem;
  height: 1.48rem;
  min-width: 1.8rem;
}
.vn-notice-table th {
  width: 41%;
  font-weight: 650;
  color: #62506a;
  background: #f2eaf2;
}
.vn-prop[data-sheet="draft"] .vn-notice-table th {
  background: #f6f4f6;
}
.vn-edit-pointer {
  position: absolute;
  left: 26%;
  top: 63%;
  color: #fff;
  font-weight: 650;
  font-size: 0.62rem;
  line-height: 1.4;
  background: #7463a0;
  padding: 0.03rem 0.34rem 0.08rem;
  border-radius: 2px;
  box-shadow: 0 1px 3px #36303b50;
  pointer-events: none;
}
.vn-edit-pointer:before {
  content: "";
  position: absolute;
  top: -7px;
  left: -5px;
  width: 9px;
  height: 11px;
  background: inherit;
  clip-path: polygon(0 0, 100% 56%, 58% 67%, 42% 100%);
}
.vn-edit-pointer[data-user="1"] {
  background: #47736c;
  left: 79%;
  top: 73%;
}
.vn-prop[data-sheet="cursors"] .vn-edit-pointer[data-user="0"] {
  left: 46%;
  top: 51%;
}
.vn-prop[data-sheet="cursors"] .vn-edit-pointer[data-user="1"] {
  left: 50%;
  top: 64%;
}
.vn-sheet-notes {
  display: grid;
  gap: 0.08rem;
  border-left: 2px solid #a290b1;
  padding: 0.1rem 0 0.1rem 0.55rem;
  font-size: 0.76rem;
  color: #645873;
  line-height: 1.4;
}
.vn-sheet-memo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.26rem 0.48rem;
  border-radius: 3px;
  background: #f5e9c9;
  color: #625136;
  font-size: 0.77rem;
  line-height: 1.4;
}
.vn-sheet-memo b {
  flex: none;
  font-size: 0.74rem;
}
.vn-prop[data-sheet="highlight"] .vn-notice-copy p:nth-child(-n + 2) {
  justify-self: start;
  outline: 1px solid #9275bb;
  outline-offset: 1px;
  background: #efe9f6;
}
.vn-prop[data-sheet="highlight"] .vn-notice-table tr:nth-child(-n + 2) td {
  outline: 2px solid #9073ad;
  outline-offset: -2px;
  background: #f3edf7;
}
.vn-prop[data-sheet="highlight"] .vn-notice-table td {
  font-weight: 700;
}
@media (max-width: 660px) {
  .vn-screen {
    --vn-edge: 0.62rem;
    height: 100svh;
    min-height: min(26rem, 100svh);
  }
  .vn-picture {
    background-position: 55% center;
  }
  .vn-hud {
    gap: 0.3rem;
  }
  .vn-chapter {
    max-width: 56%;
    padding: 0.35rem 0.5rem;
  }
  .vn-chapter > span {
    font-size: 0.64rem;
  }
  .vn-chapter > b {
    font-size: 0.8rem;
  }
  .vn-location {
    font-size: 0.68rem;
    gap: 0.22rem;
    padding: 0.28rem 0.36rem;
  }
  .vn-location span {
    padding-left: 0.25rem;
  }
  .vn-location svg {
    width: 0.76rem;
    height: 0.76rem;
  }
  .vn-deck {
    width: calc(100% - 0.85rem);
    margin-bottom: 0.43rem;
  }
  .vn-dialogue {
    min-height: 8.35rem;
    padding: 0.9rem 1.75rem 0.9rem 0.9rem;
  }
  .vn-toolbar {
    justify-content: space-around;
    gap: 0;
  }
  .vn-toolbar > i {
    margin: 0;
  }
  .vn-screen .vn-tool {
    height: 2.68rem;
    font-size: 0.78rem;
    padding-inline: 0.35rem;
  }
  .vn-actor {
    top: 14%;
  }
  .vn-figure[data-depth="far"] .vn-actor {
    top: 20%;
  }
  .vn-screen[data-layout="party"] .vn-actor {
    top: 22%;
  }
  .vn-screen[data-layout="party"] .vn-figure[data-depth="far"] .vn-actor {
    top: 27%;
  }
  .vn-nameplate {
    top: 18%;
    font-size: 0.62rem;
    padding: 0.1rem 0.32rem;
  }
  .vn-prop {
    top: 4.2rem;
    width: 46%;
  }
  .vn-prop-head {
    gap: 0.33rem;
    padding: 0.43rem 0.51rem;
  }
  .vn-prop-head strong {
    font-size: 0.74rem;
  }
  .vn-prop-head svg {
    width: 0.86rem;
    height: 0.86rem;
  }
  .vn-prop-rows {
    padding: 0.32rem 0.45rem;
  }
  .vn-prop-row {
    padding: 0.18rem 0.05rem;
    font-size: 0.7rem;
    gap: 0.15rem;
  }
  .vn-screen[data-layout="screen"] .vn-prop {
    width: 86%;
    top: 39%;
  }
  .vn-screen[data-layout="screen"] .vn-prop-row {
    font-size: 0.8rem;
  }
  .vn-prior {
    padding: 0.3rem 0.9rem 0;
  }
  .vn-chat-strip {
    padding: 0.45rem 0.9rem 0.15rem;
  }
  .vn-prior-row {
    font-size: 0.73rem;
  }
  .vn-chatting .vn-dialogue {
    min-height: 4.9rem;
  }
  .vn-chatting .vn-line {
    font-size: 1rem;
  }
  .vn-large.vn-chatting .vn-line {
    font-size: 1.21rem;
  }
  .vn-choices button {
    font-size: 0.84rem;
    min-height: 2.55rem;
  }
  .vn-end-actions {
    padding: 0 1rem;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .vn-screen {
    --vn-edge: 0.45rem;
    height: 100svh;
    min-height: 17rem;
  }
  .vn-deck {
    width: 95%;
    margin-bottom: 0.3rem;
  }
  .vn-dialogue {
    min-height: 3.3rem;
    padding: 0.4rem 1.8rem 0.4rem 0.9rem;
  }
  .vn-line {
    font-size: 0.97rem;
    line-height: 1.46;
  }
  .vn-speaker {
    font-size: 0.76rem;
    margin: 0;
  }
  .vn-screen .vn-tool {
    height: 1.9rem;
    font-size: 0.76rem;
  }
  .vn-hud {
    top: 0.4rem;
  }
  .vn-chapter {
    padding: 0.2rem 0.42rem;
  }
  .vn-chapter > span {
    font-size: 0.6rem;
  }
  .vn-chapter > b {
    font-size: 0.72rem;
  }
  .vn-location {
    font-size: 0.62rem;
  }
  .vn-chat-strip {
    padding: 0.25rem 0.9rem 0;
    font-size: 0.6rem;
  }
  .vn-prior {
    padding: 0.12rem 0.9rem 0;
  }
  .vn-prior-row {
    font-size: 0.68rem;
  }
  .vn-prior-row:first-child:not(:last-child) {
    display: none;
  }
  .vn-chatting .vn-dialogue {
    min-height: 3.2rem;
    padding-top: 0.15rem;
    padding-bottom: 0.25rem;
  }
  .vn-prop {
    top: 2.85rem;
  }
  .vn-screen[data-layout="screen"] .vn-prop {
    width: 48%;
    top: 40%;
  }
  .vn-prop-head {
    padding: 0.2rem 0.5rem;
  }
  .vn-prop-rows {
    padding: 0.1rem 0.5rem;
  }
  .vn-prop-row {
    font-size: 0.68rem;
  }
}
@media (max-width: 660px) {
  .vn-screen[data-layout="screen"] .vn-prop[data-type="tablet"] {
    width: 94%;
    border-width: 4px;
    top: 39%;
  }
  .vn-prop[data-type="tablet"] .vn-prop-head {
    padding: 0.38rem 0.55rem;
  }
  .vn-prop[data-type="tablet"] .vn-prop-rows {
    padding: 0.43rem;
    gap: 0.31rem;
  }
  .vn-sheet-spread {
    gap: 0.31rem;
  }
  .vn-sheet-page {
    padding: 0.45rem 0.43rem;
  }
  .vn-sheet-page h3 {
    font-size: 0.93rem;
    margin: 0.16rem 0 0.34rem;
  }
  .vn-sheet-caption {
    font-size: 0.62rem;
  }
  .vn-notice-copy p,
  .vn-sheet-repeat {
    font-size: 0.71rem;
  }
  .vn-notice-table {
    font-size: 0.71rem;
  }
  .vn-notice-table th,
  .vn-notice-table td {
    padding: 0.12rem 0.17rem;
    height: 1.29rem;
  }
  .vn-sheet-notes,
  .vn-sheet-memo,
  .vn-sheet-memo b {
    font-size: 0.66rem;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .vn-screen[data-layout="screen"] .vn-prop[data-type="tablet"] {
    width: min(74%, 36rem);
    top: 39%;
    border-width: 3px;
  }
  .vn-prop[data-type="tablet"] .vn-prop-head {
    padding: 0.12rem 0.48rem;
  }
  .vn-prop[data-type="tablet"] .vn-prop-head strong {
    font-size: 0.67rem;
  }
  .vn-prop[data-type="tablet"] .vn-prop-rows {
    padding: 0.22rem 0.4rem;
    gap: 0.16rem;
  }
  .vn-sheet-page {
    padding: 0.22rem 0.35rem;
  }
  .vn-sheet-page h3 {
    font-size: 0.75rem;
    margin: 0.07rem 0 0.18rem;
  }
  .vn-sheet-caption {
    font-size: 0.53rem;
  }
  .vn-notice-copy {
    gap: 0.1rem;
  }
  .vn-notice-copy p,
  .vn-sheet-repeat,
  .vn-notice-table {
    font-size: 0.6rem;
  }
  .vn-notice-table th,
  .vn-notice-table td {
    height: 0.94rem;
    padding: 0 0.2rem;
  }
  .vn-sheet-notes {
    display: flex;
    gap: 0.7rem;
  }
  .vn-sheet-notes,
  .vn-sheet-memo,
  .vn-sheet-memo b {
    font-size: 0.57rem;
  }
  .vn-sheet-memo {
    padding: 0.1rem 0.4rem;
  }
}
@media (max-width: 680px), (max-height: 540px) and (orientation: landscape) {
  .vn-screen:is([data-prop="tablet"], [data-prop="board"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(min-content, 1fr) auto;
    row-gap: 0.3rem;
    height: auto;
    min-height: 100svh;
  }
  .vn-screen:is([data-prop="tablet"], [data-prop="board"]) .vn-hud {
    position: static;
    grid-row: 1;
    width: calc(100% - 2 * var(--vn-edge));
    margin: var(--vn-edge) auto 0;
  }
  .vn-screen:is([data-prop="tablet"], [data-prop="board"])[data-layout="screen"]
    .vn-prop[data-type] {
    position: relative;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
  }
  .vn-screen:is([data-prop="tablet"], [data-prop="board"]) .vn-deck {
    grid-row: 3;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .vn-screen:is([data-prop="tablet"], [data-prop="board"]) {
    min-height: 100svh;
  }
}
@media (max-width: 660px) {
  .vn-screen {
    --vn-edge: max(0.85rem, env(safe-area-inset-left));
  }
  .vn-slate {
    padding: 0.38rem 0.95rem 0.38rem 0.55rem;
    gap: 0.18rem;
  }
  .vn-chapter {
    max-width: none;
    padding: 0;
    gap: 0.34rem;
    flex-wrap: wrap;
  }
  .vn-chapter > span {
    font-size: 0.66rem;
  }
  .vn-chapter > b {
    font-size: 0.79rem;
  }
  .vn-location {
    padding: 0;
    min-height: 0;
    font-size: 0.68rem;
  }
  .vn-deck,
  .vn-chatting .vn-deck {
    --vn-gutter: 1rem;
    width: calc(100% - 2 * max(0.53rem, env(safe-area-inset-left)));
    margin: 0 auto max(0.63rem, env(safe-area-inset-bottom));
  }
  .vn-dialogue {
    min-height: 8.25rem;
    padding: 1.1rem 2rem 0.83rem 1rem;
  }
  .vn-toolbar {
    justify-content: space-between;
    gap: 0;
    margin: 0 0.48rem;
  }
  .vn-toolbar > i {
    display: none;
  }
  .vn-screen .vn-tool {
    padding: 0.21rem 0.19rem;
    gap: 0.22rem;
    font-size: 0.73rem;
    min-height: 2.6rem;
  }
  .vn-tool svg {
    width: 0.82rem;
    height: 0.82rem;
  }
  .vn-chat-strip {
    padding-inline: 1rem;
  }
}
@media (max-height: 540px) and (orientation: landscape) {
  .vn-hud {
    left: max(0.6rem, env(safe-area-inset-left));
  }
  .vn-slate {
    padding: 0.16rem 0.75rem 0.16rem 0.45rem;
    gap: 0.07rem;
  }
  .vn-chapter {
    padding: 0;
    gap: 0.42rem;
  }
  .vn-location {
    padding: 0;
    min-height: 0;
  }
  .vn-deck,
  .vn-chatting .vn-deck {
    width: min(89%, 74rem);
    margin: 0 auto max(0.32rem, env(safe-area-inset-bottom));
  }
  .vn-chatting .vn-deck {
    width: min(75%, 49rem);
    margin-left: max(1.4rem, env(safe-area-inset-left));
  }
  .vn-speaker {
    min-height: 1.15rem;
    padding: 0.05rem 0.55rem;
    font-size: 0.72rem;
  }
  .vn-dialogue {
    padding: 0.68rem 2rem 0.44rem 1.1rem;
  }
  .vn-toolbar {
    margin: 0 1rem;
  }
  .vn-screen .vn-tool {
    min-height: 1.85rem;
  }
}
.vn-log-list .vn-log-scene {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #211f31;
}
.vn-low-motion::after,
.vn-low-motion *,
.vn-low-motion *::before,
.vn-low-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  .vn-screen::after,
  .vn-screen *,
  .vn-screen *::before,
  .vn-screen *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* These four drawings share a canvas and ground line. Allow the tablet and the
   resting hand of the laughing pose to clear the dialogue panel. */
.vn-figure[data-depth="near"] .vn-actor[data-asset^="art/seoa-tablet-"] {
  top: 7%;
  height: var(--framing-tablet);
}
@media (max-width: 680px) and (orientation: portrait) {
  .vn-figure[data-depth="near"] .vn-actor[data-asset^="art/seoa-tablet-"] {
    top: 10%;
  }
}
.vn-screen[data-layout="screen"] .vn-prop[data-type="phone"] {
  width: min(80%, 21rem);
}
.vn-screen[data-stage="02-01.d03.1"] .vn-prop[data-type="phone"] {
  background: #fff9f5;
  border-color: #53464e;
}
.vn-screen[data-stage="02-01.d03.1"] .vn-prop-head {
  color: #473346;
  background: #f0e1e7;
}
.vn-screen[data-stage="02-01.d03.1"] .vn-prop-row > small {
  padding: 0 0.16rem;
  background: transparent;
  color: #452b41;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 750;
}
.vn-screen[data-stage="02-02.d03.1"] .vn-prop[data-type="phone"] {border-color: #344755}
.vn-screen[data-stage="02-02.d03.1"] .vn-prop-head {color: #293c4a; background: #dce9ef}
.vn-screen[data-stage="02-02.d03.1"] .vn-prop-row:first-child {font-weight: 700}
.vn-screen[data-stage="02-02.d03.1"] .vn-prop-row > small {
  color: #243c4d;
  background: #e4ecf1;
  font-size: 0.98em;
  font-weight: 650;
}

/* Portrait framing for the three actions in Suhyeon's opening room. */
@media (max-width: 680px) and (orientation: portrait) {
  .vn-screen[data-stage="01-01.d01.1"] .vn-bg-stack {
    bottom: 19svh;
    mask-image: linear-gradient(to bottom, black 93%, transparent);
  }
  .vn-screen[data-stage="01-01.d01.1"] .vn-picture {
    background-size: auto 120%;
    background-position: 55% bottom;
  }
  .vn-screen[data-stage="01-01.tablet"] .vn-picture {
    background-size: auto 151%;
    background-position: 82.7% 80%;
  }
  .vn-screen[data-stage="01-01.desktop"] .vn-picture {
    background-position: 94.6% center;
  }
  .vn-screen:is([data-stage="04-04.d03.1"],[data-stage="05-01.d01.1"]) .vn-bg-stack {
    bottom: 25svh;
    mask-image: linear-gradient(to bottom, black 92%, transparent);
  }
  .vn-screen:is([data-stage="04-04.d03.1"],[data-stage="05-01.d01.1"]) .vn-picture {
    background-position: 95% center;
  }
  .vn-screen:is([data-stage="04-04.d03.1"],[data-stage="05-01.d01.1"])[data-layout="screen"] .vn-prop[data-type="tablet"] {
    align-self: end;
    margin-bottom: min(2svh, 12px);
  }
}


@media (orientation: portrait) {
  .vn-screen[data-stage="02-02.p012"] .vn-picture {
    background-position: 74% center;
  }
}

/* Keep Seo-a's eyes and the dark tablet together above the dialogue. */
.vn-screen[data-stage="07-04.p010"] {
  display: grid;
  grid-template: minmax(0, 1fr) auto / minmax(0, 1fr);
}
.vn-screen[data-stage="07-04.p010"] .vn-deck {
  grid-area: 2 / 1;
}
.vn-screen[data-stage="07-04.p010"] .vn-bg-stack {
  grid-area: 1 / 1 / 2 / 2;
}
.vn-screen.vn-ui-hidden[data-stage="07-04.p010"] .vn-bg-stack {
  grid-row: 1 / -1;
}
.vn-picture[data-background="art/classroom-seated-gaze.webp"] {
  background-size: 0 0;
}
.vn-picture[data-background="art/classroom-seated-gaze.webp"]::before,
.vn-picture[data-background="art/classroom-seated-gaze.webp"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-position: center;
  background-repeat: no-repeat;
}
.vn-picture[data-background="art/classroom-seated-gaze.webp"]::before {
  inset: -6% -6% -65%;
  background-size: cover;
  filter: blur(28px) brightness(.40);
}
.vn-picture[data-background="art/classroom-seated-gaze.webp"]::after {
  background-size: auto 91%;
  background-position: center bottom;
}
