/* A place for companions, using the existing portraits and festival palette. */
.launch-panel > .backstage-home {
  margin: 0 0 10px;
  min-width: 0;
}
.backstage-home > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #c6a465;
  border-radius: 12px;
  background: linear-gradient(110deg, #fff9e8, #eaf3e8);
  color: #223e38;
  text-align: left;
  box-shadow: 0 3px 12px #5c452512;
}
.backstage-home img {
  width: 48px;
  height: 62px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 7px;
  border: 1px solid #cfb37d;
  flex: none;
}
.backstage-home button > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.backstage-home small {
  font-size: 10px;
  color: #7d592e;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.backstage-home b {
  font-size: 14px;
  line-height: 1.4;
}
.backstage-home button > span > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
}
.backstage-home em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  color: #285d4b;
}
.backstage-home button:hover {
  border-color: #8a6737;
  box-shadow: 0 4px 18px #5c452526;
}
.backstage-home button:focus-visible {
  outline: 3px solid #b1833f;
  outline-offset: 2px;
}
#quickBackstage {
  color: #ffdd93;
  border-color: #e7c37b;
}
.backstage-dialog {
  overflow-anchor: none;
  width: min(1000px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #d9bc83;
  border-radius: 20px;
  background: #f4f1e7;
  color: #243e37;
  box-shadow: 0 26px 90px #081c29aa;
  overflow: auto;
  overscroll-behavior: contain;
}
.backstage-dialog::backdrop {
  background: #0b202adb;
  backdrop-filter: blur(7px);
}
.backstage-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(110deg, #193c38, #132c36);
  padding: 18px 24px;
  border-bottom: 2px solid #cfad70;
  color: #fff8e8;
}
.backstage-head small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #e9c783;
}
.backstage-head h2 {
  margin: 3px 0;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff8e8;
}
.backstage-head p {
  margin: 0;
  font-size: 12px;
  color: #c5d9ce;
  line-height: 1.5;
}
.backstage-head .icon-btn {
  position: static;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #d9e5d544;
  background: #ffffff15;
  color: white;
}
.backstage-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  align-items: start;
}
.backstage-roster {
  display: grid;
  gap: 8px;
  max-height: 65dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px;
}
.backstage-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  text-align: left;
  min-height: 74px;
  min-width: 0;
  background: #fffdf7;
  border: 1px solid #d5dacb;
  border-radius: 11px;
  color: #29433b;
}
.backstage-person img {
  width: 42px;
  height: 54px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 6px;
  flex: none;
}
.backstage-person > span:not(.backstage-star) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.backstage-person b {
  font-size: 13px;
  line-height: 1.4;
}
.backstage-person small {
  font-size: 10px;
  color: #687b6b;
  line-height: 1.4;
}
.backstage-person.selected {
  background: #193f37;
  border-color: #c5a464;
  color: #fff9e5;
  box-shadow: inset 3px 0 #d9b86f;
}
.backstage-person.selected small {
  color: #d2dfc8;
}
.backstage-star {
  margin-left: auto;
  color: #bb8b3d;
  font-size: 14px;
}
.backstage-scene {
  min-width: 0;
}
.backstage-hero {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid #d2c5a5;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top left, #ead8ab, transparent 65%), #fcfaf2;
}
.backstage-hero > img {
  width: 130px;
  height: 172px;
  object-fit: cover;
  object-position: 50% 14%;
  border-radius: 12px;
  flex: none;
  border: 3px solid #fffaf0;
  box-shadow: 0 8px 22px #483f3525;
}
.backstage-hero > div {
  min-width: 0;
}
.backstage-hero small {
  color: #7a6b4f;
  font-size: 12px;
}
.backstage-hero h2 {
  margin: 5px 0 10px;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
  color: #203c34;
  overflow-wrap: anywhere;
}
.backstage-hero p {
  font-size: 12px;
  line-height: 1.6;
  color: #677460;
  margin: 10px 0;
}
.backstage-relationship {
  display: inline-block;
  padding: 4px 9px;
  background: #e7eee0;
  color: #3d624a;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}
.backstage-pin {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #caba91;
  border-radius: 7px;
  background: #fffaf0;
  font-size: 12px;
  color: #735a32;
}
.backstage-pin[aria-pressed="true"] {
  background: #f2dfac;
}
.backstage-dialogue {
  position: relative;
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #cdd8c6;
  border-radius: 14px;
  background: #fffef9;
  box-shadow: 0 5px 18px #263b2c09;
}
.backstage-dialogue > small {
  font-size: 11px;
  color: #7d755c;
  font-weight: 700;
}
.backstage-dialogue h3 {
  margin: 7px 0 16px;
  font-size: 19px;
}
.backstage-dialogue blockquote {
  font-size: 17px;
  line-height: 1.95;
  margin: 12px 0 20px;
  padding: 0;
  border: 0;
  color: #284339;
}
.backstage-dialogue .backstage-recall {
  font-size: 12px;
  padding: 10px;
  border-left: 3px solid #c7a466;
  background: #f7f3e5;
  color: #6a705d;
}
.backstage-choices {
  display: grid;
  gap: 10px;
}
.backstage-choices button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  border: 1px solid #9cb5a0;
  border-radius: 10px;
  background: #eef5eb;
  color: #254c38;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
}
.backstage-choices button:hover {
  background: #dcebd8;
  border-color: #4e7d5f;
}
.backstage-choices button:focus-visible,
.backstage-dialog button:focus-visible {
  outline: 3px solid #b1833f;
  outline-offset: 3px;
}
.backstage-answer {
  border-color: #c6ab6d;
  background: #fffbed;
}
.backstage-player {
  font-size: 13px;
  color: #7a6b4f;
  line-height: 1.7;
}
.backstage-next {
  font-size: 12px;
  line-height: 1.7;
  color: #62705e;
}
.backstage-plans {
  padding: 18px;
  background: #e9efe3;
  border: 1px solid #cdd8c6;
  border-radius: 12px;
}
.backstage-plans > small {
  font-size: 11px;
  color: #6e795c;
}
.backstage-plans > h3 {
  font-size: 16px;
  margin: 4px 0 12px;
}
.backstage-plans article {
  padding: 12px;
  margin: 8px 0;
  background: #fffdf6;
  border: 1px solid #d7dfcc;
  border-radius: 10px;
}
.backstage-plans h4 {
  font-size: 14px;
  margin: 0 0 6px;
}
.backstage-plans p {
  font-size: 13px;
  line-height: 1.75;
  margin: 6px 0;
}
.backstage-plans article > small {
  display: block;
  font-size: 11px;
  color: #5d705b;
  line-height: 1.7;
}
.backstage-plans button {
  display: block;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 10px 13px;
  border: 0;
  border-radius: 8px;
  background: #285c48;
  color: #fff9e8;
  font-size: 13px;
  font-weight: 700;
}
.backstage-promise-active {
  display: block;
  padding-top: 10px;
  font-size: 12px;
  color: #816123;
}
.backstage-memories {
  padding: 14px 0;
  border-bottom: 1px solid #ccd5c4;
}
.backstage-memories summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 700;
}
.backstage-memories article {
  padding: 14px;
  border: 1px solid #d1dac7;
  border-radius: 10px;
  background: #fffdf6;
  margin: 10px 0;
}
.backstage-memories h4 {
  margin: 4px 0;
  font-size: 15px;
}
.backstage-memories p,
.backstage-memories blockquote {
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0;
}
.backstage-memories small {
  font-size: 11px;
  color: #7c7e68;
}
.backstage-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.backstage-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #bacab6;
  border-radius: 8px;
  background: #fcfbf4;
  color: #385843;
  font-size: 13px;
}
.backstage-status {
  position: sticky;
  top: 0;
  background: #fff2ca;
  color: #5e4a21;
  font-size: 13px;
  margin: 0;
  padding: 8px 20px;
  line-height: 1.6;
}
.backstage-status:empty {
  display: none;
}
@media (max-width: 640px) {
  .backstage-dialog {
    border-radius: 14px;
    max-height: calc(
      100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
    );
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  .backstage-head {
    padding: 12px 14px;
  }
  .backstage-head h2 {
    font-size: 21px;
  }
  .backstage-head p {
    font-size: 11px;
  }
  .backstage-body {
    display: block;
    padding: 12px;
  }
  .backstage-roster {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-height: none;
    padding: 3px 3px 12px;
    scroll-snap-type: x proximity;
  }
  .backstage-person {
    flex: 0 0 155px;
    scroll-snap-align: start;
    padding: 7px;
    min-height: 68px;
  }
  .backstage-person b {
    font-size: 12px;
  }
  .backstage-person small {
    font-size: 10px;
  }
  .backstage-person img {
    width: 34px;
    height: 44px;
  }
  .backstage-hero {
    gap: 14px;
    padding: 14px;
  }
  .backstage-hero > img {
    width: 90px;
    height: 124px;
  }
  .backstage-hero h2 {
    font-size: 19px;
    margin: 4px 0 8px;
  }
  .backstage-hero p {
    font-size: 11px;
    margin: 7px 0;
  }
  .backstage-pin {
    font-size: 11px;
    min-height: 44px;
  }
  .backstage-dialogue {
    padding: 18px;
    margin: 12px 0;
  }
  .backstage-dialogue blockquote {
    font-size: 16px;
    line-height: 1.9;
  }
  .backstage-plans {
    padding: 14px;
  }
  .backstage-home > button {
    padding: 8px;
    gap: 8px;
  }
  .backstage-home img {
    width: 40px;
    height: 53px;
  }
  .backstage-home button > span > span {
    -webkit-line-clamp: 1;
  }
  .backstage-home b {
    font-size: 13px;
  }
  .backstage-home em {
    font-size: 10px;
  }
  .launch-panel > .backstage-home {
    margin-bottom: 7px;
  }
}
@media (max-width: 360px) {
  .quick-menu {
    left: 8px;
    gap: 4px;
  }
  .quick-menu button {
    width: 42px;
  }
  .backstage-hero {
    gap: 10px;
    padding: 10px;
  }
  .backstage-hero > img {
    width: 76px;
    height: 108px;
  }
  .backstage-hero h2 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .backstage-dialog::backdrop {
    backdrop-filter: none;
  }
}

.bond-live .bond-live-memory {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  color: #e5cd99;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* v177: choose a subject and keep a long conversation archive compact. */
.backstage-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0 0;
}
.backstage-topics button {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 8px 5px;
  border: 1px solid #b9c9b4;
  border-radius: 10px;
  background: #fdfbf2;
  color: #435b43;
}
.backstage-topics b {
  font-size: 13px;
}
.backstage-topics small {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.backstage-topics button[aria-pressed="true"] {
  background: #254e3e;
  border-color: #d4b36e;
  color: #fff7df;
  box-shadow: inset 0 -3px #d4b36e;
}
.backstage-talk-budget {
  font-size: 12px;
  color: #5d715a;
  line-height: 1.6;
  margin: 8px 3px;
}
.backstage-continue {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #a78b4f;
  border-radius: 9px;
  background: #eedaa5;
  color: #38462d;
  font-size: 14px;
  font-weight: 800;
}
.backstage-dialogue blockquote,
.backstage-memory-entry p {
  white-space: pre-line;
}
.backstage-review {
  margin-top: 12px;
  padding: 14px;
  background: #edf1e5;
  border: 1px solid #d0dac4;
  border-radius: 10px;
}
.backstage-review small {
  font-size: 11px;
  color: #6d795d;
}
.backstage-review blockquote {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #445b42;
}
.backstage-memory-entry {
  margin: 8px 0;
  padding: 4px 12px;
  border: 1px solid #d0dac4;
  border-radius: 9px;
  background: #fffdf5;
}
.backstage-memory-entry summary {
  font-size: 13px;
  line-height: 1.6;
}
.backstage-memory-entry p,
.backstage-memory-entry blockquote {
  font-size: 13px;
  line-height: 1.8;
  margin: 10px 0;
}
.backstage-memory-entry[open] {
  padding-bottom: 8px;
}
@media (max-width: 640px) {
  .backstage-topics {
    margin-top: 12px;
    gap: 6px;
  }
  .backstage-topics b {
    font-size: 12px;
  }
  .backstage-topics button {
    min-height: 52px;
  }
}

/* Conversation turns use explicit speakers and remain readable at narrow widths. */
.backstage-transcript {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.backstage-dialogue .backstage-line {
  min-width: 0;
  max-width: 94%;
  padding: 12px 14px;
  border: 1px solid #d5d0c3;
  border-radius: 12px;
  background: #fff;
  color: #222321;
  overflow-wrap: anywhere;
}
.backstage-dialogue .backstage-line[data-speaker="player"] {
  margin-left: 8%;
  background: #edf3d8;
  border-color: #bdc998;
}
.backstage-dialogue .backstage-line small {
  display: block;
  color: #504553;
  font-weight: 700;
  line-height: 1.5;
}
.backstage-dialogue .backstage-line p {
  margin: 6px 0 0;
  color: #222321;
  line-height: 1.85;
  white-space: pre-line;
}
.backstage-memory-entry .backstage-line {
  padding: 8px 12px;
  margin: 8px 0;
  color: #222321;
  overflow-wrap: anywhere;
}
.backstage-memory-entry .backstage-line p {
  white-space: pre-line;
  line-height: 1.8;
}
.backstage-dialogue .backstage-choices button {
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 48px;
}

/* Scene directions sit between the spoken turns. */
.backstage-line[data-speaker="narrator"] {
  max-width: 100%;
  background: transparent;
  border: 0;
  border-left: 2px solid #a69b84;
  border-radius: 0;
  padding: 6px 12px;
}
.backstage-line[data-speaker="narrator"] small {
  color: #655b4a;
}

/* v201: one beat at a time, with a standing character and a quiet room. */
.backstage-welcome {
  background: #fffdf5;
}
.backstage-welcome h3 {
  color: #284a42;
}
.backstage-welcome p {
  line-height: 1.8;
}
.backstage-memory-entry {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #c9cfbe;
  background: #fffdf5;
  color: #25483f;
  border-radius: 9px;
}
.vn-resume {
  min-height: 48px;
  padding: 12px 20px;
  background: #234f45;
  color: #fffbe9;
  border: 1px solid #ad8c51;
  border-radius: 9px;
}
.backstage-dialog.is-reading {
  width: min(940px, calc(100vw - 24px));
  height: min(814px, calc(100dvh - 24px));
  overflow: hidden;
}
.backstage-dialog[open].is-reading {
  display: flex;
  flex-direction: column;
}
.is-reading .backstage-head {
  position: static;
  flex: none;
  padding: 10px 18px;
}
.is-reading .backstage-head h2 {
  font-size: 18px;
  margin: 0;
}
.is-reading .backstage-head small,
.is-reading .backstage-head p {
  display: none;
}
.is-reading .backstage-body {
  display: block;
  padding: 0;
  flex: 1;
  min-height: 0;
}
.is-reading .backstage-scene {
  height: 100%;
}
.is-reading .backstage-roster {
  display: none;
}
.backstage-status:empty {
  display: none;
}
.vn-reader {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vn-toolbar {
  display: flex;
  flex: none;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #ecede1;
  border-bottom: 1px solid #c2c8b7;
}
.vn-toolbar button {
  min-height: 44px;
  flex: none;
  padding: 7px 10px;
  border: 1px solid #c1c8b9;
  border-radius: 8px;
  background: #fffdf6;
  color: #26473e;
  font-size: 12px;
}
.vn-toolbar > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #546051;
}
.vn-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #d6c6b0;
}
.vn-room {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/backstage-v203/backstage-room-wide.webp") center 56% /
    cover no-repeat;
}
@media (max-aspect-ratio: 3/4) {
  .vn-room {
    background-image: url("assets/backstage-v203/backstage-room-portrait.webp");
    background-position: center 60%;
  }
}
.vn-standing {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -26%);
  height: min(calc((100% - 16px) * 1.9), calc((100vw - 24px) * 2));
  aspect-ratio: 1/2;
  background-image: var(--portrait);
  background-size: 400% 200%;
  background-position: var(--portrait-x) var(--portrait-y);
  background-repeat: no-repeat;
  filter: drop-shadow(0 7px 6px #263c3828);
  pointer-events: none;
}
.vn-dialogue {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  max-height: 72%;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfc78d;
  border-radius: 15px;
  background: #fffdf5f5;
  box-shadow: 0 8px 28px #162e3940;
}
.vn-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 174px;
  padding: 18px 24px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  color: #253b35;
  cursor: pointer;
}
.vn-reader .vn-text:disabled {
  opacity: 1;
  cursor: default;
  color: #253b35;
}
.vn-name {
  display: block;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #32624e;
}
.vn-dialogue[data-speaker="player"] .vn-name {
  color: #715326;
}
.vn-dialogue[data-speaker="narrator"] .vn-name {
  color: #6b7063;
  font-size: 12px;
}
.vn-line {
  display: block;
  font-size: clamp(16px, 2.1vw, 21px);
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.vn-advance {
  align-self: flex-end;
  margin-top: auto;
  font-size: 11px;
  color: #526357;
}
.vn-advance b {
  margin-left: 6px;
  color: #9b7937;
}
.vn-dialogue .backstage-choices {
  display: grid;
  gap: 8px;
  padding: 0 20px 16px;
  margin: 0;
}
.vn-dialogue .backstage-choices button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.55;
  background: #f3efd9;
  border: 1px solid #b9ad81;
  color: #314a3e;
  border-radius: 8px;
  text-align: left;
}
.vn-ending {
  padding: 22px;
  line-height: 1.8;
}
.vn-ending small {
  color: #6e622d;
  font-weight: 800;
}
.vn-ending p {
  font-size: 20px;
  margin: 12px 0;
}
.vn-ending button {
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #bda66d;
  background: #244f43;
  color: #fffbed;
}
.vn-log {
  position: absolute;
  z-index: 2;
  inset: 57px 0 0;
  background: #fffdf5fa;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}
.vn-log[hidden] {
  display: none;
}
.vn-log h3 {
  margin-top: 0;
  font-size: 17px;
}
.vn-log p {
  line-height: 1.8;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #d9dccb;
  font-size: 15px;
}
.vn-log p b {
  display: block;
  font-size: 12px;
  color: #426451;
}
.vn-log button {
  min-height: 44px;
  margin-top: 16px;
}
.vn-reader button:focus-visible {
  outline: 3px solid #9b742d;
  outline-offset: -4px;
}
@media (max-width: 600px) {
  .backstage-dialog.is-reading {
    max-width: calc(100vw - 12px);
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 14px;
  }
  .is-reading .backstage-head {
    padding: 8px 12px;
  }
  .vn-toolbar {
    gap: 6px;
    padding: 4px 8px;
  }
  .vn-toolbar button {
    font-size: 11px;
    padding: 5px 8px;
  }
  .vn-dialogue {
    left: 10px;
    right: 10px;
    bottom: 12px;
    max-height: 75%;
  }
  .vn-text {
    padding: 15px 17px 10px;
    min-height: 170px;
    gap: 8px;
  }
  .vn-line {
    font-size: 17px;
    line-height: 1.8;
  }
  .vn-dialogue .backstage-choices {
    padding: 0 12px 12px;
  }
  .vn-dialogue .backstage-choices button {
    font-size: 14px;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  .vn-standing {
    left: 28%;
  }
  .vn-dialogue {
    left: 47%;
    bottom: 8px;
    right: 10px;
    max-height: 96%;
  }
  .vn-text {
    min-height: 120px;
    padding: 12px;
    font-size: 15px;
  }
  .vn-line {
    font-size: 15px;
    line-height: 1.5;
  }
  .vn-reader .vn-text:disabled {
    min-height: 0;
    padding: 10px 12px;
    gap: 6px;
  }
  .vn-dialogue .backstage-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 12px 12px;
  }
  .vn-dialogue .backstage-choices button {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 14px;
  }
}
/* Individual 3x-density cells keep the same 480x960 virtual frame/pose. */
.vn-standing[data-portrait-format="individual"] {
  background-size: 100% 100%;
  background-position: center;
}
