@font-face {
  font-family: "PJ Dialogue";
  src: url("./assets/fonts/ComicNeue-Bold.ttf") format("truetype");
  font-display: swap;
}

/* V155 · Episodio 1 ending spread -------------------------------------- */
.editorial-episode-spread--episode-ending .editorial-episode-spread-graphics {
  top: 6cqw;
  left: 6cqw;
  width: 68cqw;
  color: #fff;
  text-shadow:
    0 0 0.35cqw rgba(0, 0, 0, 1),
    0.18cqw 0.18cqw 0 rgba(0, 0, 0, 0.95);
  transform: none;
}

.editorial-episode-spread--episode-ending .episode-spread-brand {
  font-size: 7.8cqw;
  letter-spacing: 0.025em;
}

.editorial-episode-spread--episode-ending .episode-spread-label {
  margin-top: 1.6cqw;
  font-size: 2.7cqw;
  letter-spacing: 0.22em;
}

.editorial-episode-spread--episode-ending .episode-spread-closing-caption {
  position: absolute;
  z-index: 5;
  top: 6cqw;
  right: 6cqw;
  display: grid;
  place-items: center;
  width: 62cqw;
  min-height: 16cqw;
  padding: 3.4cqw 4.2cqw;
  border: 0.18cqw solid rgba(255, 255, 255, 0.7);
  background: rgba(5, 5, 5, 0.96);
  color: #fff;
  font-family: "PJ Dialogue", "Comic Sans MS", sans-serif;
  font-size: 4.5cqw;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  white-space: pre-line;
  box-shadow: 0 0.8cqw 2.2cqw rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

@media screen {
  .editorial-episode-spread--episode-ending.editorial-episode-spread--combined .editorial-episode-spread-graphics {
    top: 4.2cqw;
    left: 4.5cqw;
    width: 31cqw;
  }

  .editorial-episode-spread--episode-ending.editorial-episode-spread--combined .episode-spread-brand {
    font-size: 4.4cqw;
  }

  .editorial-episode-spread--episode-ending.editorial-episode-spread--combined .episode-spread-label {
    margin-top: 0.9cqw;
    font-size: 1.55cqw;
  }

  .editorial-episode-spread--episode-ending.editorial-episode-spread--combined .episode-spread-closing-caption {
    top: 4.8cqw;
    right: 4.8cqw;
    width: 25cqw;
    min-height: 7.4cqw;
    padding: 1.45cqw 1.8cqw;
    border-width: 0.11cqw;
    font-size: 1.7cqw;
    box-shadow: 0 0.45cqw 1.2cqw rgba(0, 0, 0, 0.72);
  }

  .locale-ja .editorial-episode-spread--episode-ending.editorial-episode-spread--combined .episode-spread-closing-caption {
    font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
    top: 4.8cqw;
    right: 4.8cqw;
    width: 9.4cqw;
    min-height: 21cqw;
    padding: 1.45cqw 1.2cqw;
    font-size: 1.55cqw;
    line-height: 1.38;
    letter-spacing: 0.035em;
    text-orientation: mixed;
    writing-mode: vertical-rl;
  }
}

@media print {
  .editorial-episode-spread--episode-ending.editorial-episode-spread--right .editorial-episode-spread-graphics {
    display: none;
  }
}

@font-face {
  font-family: "PJ Shout";
  src: url("./assets/fonts/Bangers-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #080808;
  --paper: #fffef8;
  --chrome: #111;
  --chrome-raised: #242424;
  --muted: #aaa8a1;
  --accent: #dc2f2f;
  font-family: Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #090909;
}

body {
  min-width: 320px;
  margin: 0;
  background: #171717;
  color: #f5f5f0;
}

body.is-book-view {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(73, 68, 60, 0.48) 0%, rgba(27, 26, 24, 0.82) 46%, #090909 100%),
    #111;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.manga-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(120px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 8px 18px;
  border-bottom: 1px solid #353535;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(12px);
}

.brand {
  width: max-content;
  color: var(--accent);
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 24px;
  text-decoration: none;
}

.mode-switch {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 20px;
}

.mode-switch a {
  display: grid;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.mode-switch a:hover,
.mode-switch a.is-active {
  border-bottom-color: var(--accent);
  color: var(--paper);
}

.reader-actions,
.view-control,
.locale-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-actions {
  justify-content: flex-end;
}

.view-control span,
.locale-control span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reader-actions button,
.view-control select,
.locale-control select {
  height: 34px;
  border: 1px solid #4b4b4b;
  border-radius: 0;
  background: var(--chrome-raised);
  color: #f5f5f0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.reader-actions button {
  padding-inline: 11px;
}

.view-control select,
.locale-control select {
  padding: 0 28px 0 9px;
}

.reader-actions button:hover,
.reader-actions button.is-active,
.view-control select:hover,
.locale-control select:hover {
  background: var(--paper);
  color: var(--ink);
}

.reader-actions button.is-active {
  border-color: var(--accent);
}

.maker-bar {
  position: sticky;
  z-index: 95;
  top: 58px;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 14px;
  padding: 7px 18px;
  border-bottom: 1px solid #444;
  background: rgba(30, 30, 30, 0.98);
  color: var(--paper);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.maker-bar[hidden] {
  display: none;
}

.maker-selection {
  display: grid;
  min-width: 178px;
  gap: 2px;
}

.maker-selection strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maker-selection span,
.maker-control span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.maker-control {
  display: grid;
  min-width: 105px;
  gap: 3px;
}

.maker-control select {
  height: 28px;
  min-width: 105px;
  border: 1px solid #555;
  border-radius: 0;
  background: #111;
  color: #fff;
  font-size: 11px;
}

.maker-range {
  min-width: 112px;
}

.maker-range input {
  width: 112px;
  accent-color: var(--accent);
}

.maker-buttons {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.maker-buttons button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #555;
  border-radius: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
}

.maker-buttons button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--paper);
  color: var(--ink);
}

.maker-buttons button:disabled,
.maker-control select:disabled,
.maker-control input:disabled {
  cursor: default;
  opacity: 0.35;
}

.manga-reader {
  width: 100%;
  min-height: calc(100vh - 58px);
  padding: 32px 16px 72px;
}

.manga-reader.mode-cascade {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.manga-reader.mode-book {
  position: relative;
  isolation: isolate;
  display: grid;
  width: min(calc(100vw - 32px), calc((100dvh - 150px) * 1.4097));
  max-width: 1420px;
  height: calc(100dvh - 104px);
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  align-items: center;
  gap: 0;
  margin-inline: auto;
  padding: 18px 12px 30px;
  direction: rtl;
  perspective: 2200px;
  touch-action: pan-y;
  cursor: grab;
}

body.is-book-dragging .manga-reader.mode-book {
  cursor: grabbing;
  user-select: none;
}

.book-turn-layer {
  --book-turn-progress: 0;
  --book-turn-shadow: 0;
  --book-turn-stationary-shadow: 0;
  position: absolute;
  z-index: 30;
  top: 0;
  overflow: hidden;
  direction: ltr;
  perspective: 9000px;
  pointer-events: none;
  transform-style: preserve-3d;
}

.book-turn-snapshot {
  position: absolute;
  top: 0;
  overflow: visible;
  direction: ltr;
  pointer-events: none;
}

.book-turn-snapshot > .page-shell.is-book-turn-clone {
  z-index: 1;
  max-width: none;
  transform: none;
  pointer-events: none;
}

.book-turn-stationary {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}

.book-turn-stationary {
  z-index: 1;
  overflow: hidden;
}

.book-turn-layer.is-next .book-turn-stationary {
  left: 50%;
}

/* La cubierta empieza con el lado derecho físicamente vacío. Al montar el
   pliego entrante para el gesto, esta hoja de guarda opaca evita que media
   imagen aparezca de golpe antes de que el reverso curvado llegue hasta allí. */
.book-turn-layer.is-left-single-opening .book-turn-stationary {
  top: 12px;
  bottom: 23px;
  height: auto;
  background: #e9e2d5;
}

.book-turn-layer.is-left-single-reversing .book-turn-strip-face--front {
  background: #e9e2d5;
}

.book-turn-layer.is-previous .book-turn-stationary {
  left: 0;
}

.book-turn-surface {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: visible;
  perspective: inherit;
  transform-style: preserve-3d;
}

.book-turn-strip {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.book-turn-face,
.book-turn-strip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.book-turn-strip-face--back {
  transform: rotateY(180deg) translateZ(0.3px);
}

.book-turn-strip-face::after,
.book-turn-stationary::after {
  position: absolute;
  z-index: 50;
  top: 0;
  bottom: 0;
  width: clamp(30px, 7vw, 96px);
  content: "";
  pointer-events: none;
}

.book-turn-strip-face::after {
  inset-inline: 0;
  width: auto;
  background: rgba(0, 0, 0, var(--book-turn-strip-shade, 0));
}

.book-turn-layer.is-next .book-turn-stationary::after {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent);
  opacity: var(--book-turn-stationary-shadow);
}

.book-turn-layer.is-previous .book-turn-stationary::after {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.38));
  opacity: var(--book-turn-stationary-shadow);
}

.book-turn-crease {
  position: absolute;
  z-index: 80;
  top: 0;
  bottom: 0;
  width: clamp(16px, 2.4vw, 34px);
  margin-left: calc(clamp(16px, 2.4vw, 34px) / -2);
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.42) 46%, rgba(0, 0, 0, 0.18));
  filter: blur(0.45px);
  opacity: calc(var(--book-turn-shadow) * 0.82);
  pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

.book-turn-layer[data-curl-quality="compact"] .book-turn-crease {
  width: 16px;
  margin-left: -8px;
}

body.is-book-view .manga-reader.mode-book::before {
  position: absolute;
  z-index: 0;
  inset: 12px 1px 23px;
  border: 1px solid rgba(232, 224, 207, 0.45);
  background:
    linear-gradient(90deg, #b8afa0 0 1.1%, #e9e2d5 1.1% 49.5%, #c9c0b2 50%, #e9e2d5 50.5% 98.9%, #b8afa0 98.9% 100%);
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.58),
    0 8px 14px rgba(0, 0, 0, 0.4),
    inset 0 -5px 0 rgba(111, 101, 87, 0.22);
  content: "";
  pointer-events: none;
}

body.is-book-view .manga-reader.mode-book::after {
  position: absolute;
  z-index: 8;
  top: 18px;
  bottom: 30px;
  left: 50%;
  width: clamp(12px, 1.7vw, 26px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(255, 255, 255, 0.16) 52%,
    rgba(0, 0, 0, 0.12) 78%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

body.is-book-view:has(.page-shell--color-spread-right.is-book-visible) .manga-reader.mode-book::after,
body.is-book-view:has(.page-shell--episode-spread-right.is-book-visible) .manga-reader.mode-book::after {
  display: none;
}

.manga-reader.mode-book .page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  direction: ltr;
}

.manga-reader.mode-book .page-shell:not(.is-book-visible) {
  display: none;
}

.manga-reader.mode-book .page-shell.is-book-visible {
  display: block;
}

/* Excepción física de entrada RTL: la cubierta cerrada descansa a la izquierda
   del lomo y es la hoja que el lector abre hacia la derecha. */
.manga-reader.mode-book .page-shell.is-book-cover-entry,
.manga-reader.mode-book .page-shell.is-book-standalone-left {
  grid-column: 2;
}

.editorial-opening-blank {
  background: #fffef8;
}

.editorial-opening-blank::after {
  border-color: rgba(55, 50, 43, 0.055);
}

.manga-reader.mode-book .page-shell.is-book-visible > .manga-page,
.manga-reader.mode-book .page-shell.is-book-visible > .editorial-page {
  border: 1px solid rgba(55, 50, 43, 0.28);
}

.manga-reader.mode-book .page-shell--color-spread-left.is-book-visible {
  display: none;
}

.manga-reader.mode-book .page-shell--color-spread-right.is-book-visible {
  display: block;
  grid-column: 1 / -1;
}

.manga-reader.mode-book .page-shell--episode-spread-left.is-book-visible {
  display: none;
}

.manga-reader.mode-book .page-shell--episode-spread-right.is-book-visible {
  display: block;
  grid-column: 1 / -1;
}

.manga-reader.mode-book .is-book-right > .manga-page,
.manga-reader.mode-book .is-book-right > .editorial-page {
  box-shadow:
    inset 18px 0 24px -22px rgba(0, 0, 0, 0.95),
    12px 15px 28px rgba(0, 0, 0, 0.32);
}

.manga-reader.mode-book .is-book-left > .manga-page,
.manga-reader.mode-book .is-book-left > .editorial-page {
  box-shadow:
    inset -18px 0 24px -22px rgba(0, 0, 0, 0.95),
    -12px 15px 28px rgba(0, 0, 0, 0.32);
}

body.is-book-view .book-nav {
  position: relative;
  top: auto;
  width: min(calc(100% - 24px), 820px);
  border: 1px solid #3c3c3c;
  border-top: 0;
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

body.is-book-view .book-nav span {
  color: #f3eee5;
  letter-spacing: 0.035em;
}

.book-nav {
  position: sticky;
  z-index: 45;
  top: 58px;
  display: grid;
  width: min(100%, 760px);
  min-height: 46px;
  grid-template-columns: minmax(112px, 1fr) minmax(190px, auto) minmax(112px, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 7px 10px;
  border: 1px solid #3c3c3c;
  border-top: 0;
  background: rgba(17, 17, 17, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  color: #fff;
  direction: ltr;
  backdrop-filter: blur(10px);
}

.book-nav[hidden] {
  display: none;
}

.book-nav button {
  min-height: 30px;
  border: 1px solid #555;
  background: #090909;
  color: #fff;
  cursor: pointer;
  font: 800 12px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.book-nav button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.book-nav button:disabled {
  cursor: default;
  opacity: 0.3;
}

.book-nav span {
  color: #ddd;
  font: 800 12px/1.15 system-ui, sans-serif;
  text-align: center;
}

.page-shell {
  width: min(100%, 720px);
}

.editorial-page {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1748 / 2480;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
  color: var(--ink);
  container-type: inline-size;
}

.editorial-page::after {
  position: absolute;
  z-index: 20;
  inset: 1.15cqw;
  border: 1px solid rgba(0, 0, 0, 0.08);
  content: "";
  pointer-events: none;
}

.editorial-kicker {
  color: var(--accent);
  font-size: 2.1cqw;
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}

.editorial-cover {
  background: #050505;
  color: #fff;
}

.editorial-cover::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.08) 27%, rgba(0, 0, 0, 0.04) 66%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 34%, transparent 70%, rgba(0, 0, 0, 0.24));
  content: "";
  pointer-events: none;
}

.editorial-cover::after {
  z-index: 5;
  border-color: rgba(255, 255, 255, 0.28);
}

.editorial-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.08);
}

.editorial-cover--embedded::before {
  display: none;
}

.editorial-cover--embedded::after {
  display: none;
}

.editorial-cover--embedded .editorial-cover-art {
  inset: 0;
  object-fit: contain;
  width: 100%;
  height: 100%;
  background: #020512;
  filter: none;
}

.editorial-inner-cover {
  overflow: hidden;
  background: #fff;
}

.editorial-inner-cover::after {
  z-index: 8;
  border-color: rgba(0, 0, 0, 0.2);
}

.editorial-inner-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.04);
}

.editorial-inner-cover-copy {
  position: absolute;
  z-index: 5;
  inset: 0;
  color: #050505;
  text-align: right;
  text-shadow:
    0 0 0.7cqw rgba(255, 255, 255, 1),
    0 0 1.7cqw rgba(255, 255, 255, 0.98),
    0 0 3.2cqw rgba(255, 255, 255, 0.92);
}

.editorial-inner-cover-title {
  position: absolute;
  top: 7.5cqw;
  right: 5.8cqw;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 10.8cqw;
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 0.8;
  white-space: nowrap;
}

.editorial-inner-cover-kana {
  position: absolute;
  top: 17.8cqw;
  right: 6.2cqw;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 2.6cqw;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
}

.editorial-inner-cover-volume {
  position: absolute;
  right: 5.8cqw;
  bottom: 5.4cqw;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 17cqw;
  font-weight: 400;
  line-height: 0.78;
}

.editorial-inner-cover--playground .editorial-inner-cover-art {
  object-position: 50% 50%;
  filter: grayscale(1) contrast(1.035);
}

.editorial-inner-cover--playground .editorial-inner-cover-copy {
  text-align: left;
  text-shadow:
    0 0 0.55cqw rgba(255, 255, 255, 1),
    0 0 1.2cqw rgba(255, 255, 255, 0.98);
}

.editorial-inner-cover--playground .editorial-inner-cover-title {
  top: 7.3cqw;
  right: auto;
  left: 6.2cqw;
}

.editorial-inner-cover--playground .editorial-inner-cover-kana {
  top: 17.6cqw;
  right: auto;
  left: 6.5cqw;
}

.editorial-chapter-opener {
  overflow: hidden;
  background: #fff;
}

.editorial-chapter-opener::after {
  z-index: 8;
  border-color: rgba(0, 0, 0, 0.24);
}

.editorial-chapter-opener-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.045);
}

.editorial-chapter-opener-copy {
  position: absolute;
  z-index: 5;
  top: 9cqw;
  right: 6.5cqw;
  width: 41cqw;
  color: #050505;
  text-align: right;
  text-shadow:
    0 0 0.65cqw rgba(255, 255, 255, 1),
    0 0 1.5cqw rgba(255, 255, 255, 0.98),
    0 0 3cqw rgba(255, 255, 255, 0.9);
}

.editorial-chapter-opener-label,
.editorial-chapter-opener-title,
.editorial-chapter-opener-subtitle,
.editorial-chapter-opener-credit {
  display: block;
}

.editorial-chapter-opener-label {
  margin-bottom: 1.3cqw;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 2.35cqw;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.editorial-chapter-opener-title {
  padding-bottom: 1.3cqw;
  border-bottom: 0.65cqw solid currentColor;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 10.8cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.82;
}

.editorial-chapter-opener-subtitle {
  margin-top: 1.7cqw;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 2.55cqw;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.editorial-chapter-opener-credit {
  margin-top: 2.1cqw;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 1.55cqw;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.locale-ja .editorial-chapter-opener-title {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 7.7cqw;
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 1;
}

.locale-ja .editorial-chapter-opener-subtitle {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 3.2cqw;
  font-weight: 400;
}

.editorial-color-spread {
  background: #151025;
}

.editorial-color-spread::after {
  display: none;
}

.editorial-color-spread-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.editorial-color-spread-art--web {
  display: none;
}

.editorial-color-spread-graphics {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.spread-graphics-brand {
  position: absolute;
  top: 3.2cqw;
  right: 5.2cqw;
  left: 5.8cqw;
  display: grid;
  justify-items: end;
  transform: rotate(-2deg);
}

.spread-graphics-logo {
  position: relative;
  color: #fff8df;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 13.2cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.78;
  white-space: nowrap;
  -webkit-text-stroke: 0.72cqw #090b1a;
  paint-order: stroke fill;
  text-shadow:
    0.7cqw 0.75cqw 0 #f0b72e,
    1.15cqw 1.2cqw 0 #d84437,
    1.75cqw 1.9cqw 2.3cqw rgba(0, 0, 0, 0.6);
}

.spread-graphics-kicker {
  display: block;
  margin-bottom: 1.2cqw;
  color: #fff;
  font-size: 1.75cqw;
  font-weight: 1000;
  letter-spacing: 0.2em;
  line-height: 1;
  text-shadow: 0 0.28cqw 0.65cqw rgba(0, 0, 0, 0.9);
}

.spread-graphics-kana {
  margin-top: 1.15cqw;
  padding: 0.75cqw 1.55cqw 0.7cqw;
  border: 0.26cqw solid #fff8df;
  background: #090b1a;
  box-shadow: 0.55cqw 0.58cqw 0 #d84437;
  color: #ffd85b;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 2.35cqw;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  transform: rotate(1deg);
}

.spread-graphics-chapter,
.spread-graphics-chapter-ja {
  margin-top: 0.9cqw;
  color: #fff8df;
  font-family: "PJ Dialogue", Avenir, sans-serif;
  font-size: 2.05cqw;
  font-weight: 1000;
  letter-spacing: 0.12em;
  line-height: 1;
  -webkit-text-stroke: 0.08cqw #090b1a;
  paint-order: stroke fill;
  text-shadow: 0 0.3cqw 0.7cqw rgba(0, 0, 0, 0.9);
}

.spread-graphics-chapter-ja {
  margin-top: 0.65cqw;
  color: #ffd85b;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.7cqw;
  letter-spacing: 0.08em;
}

.spread-graphics-badge {
  position: absolute;
  z-index: 2;
  top: 22.5cqw;
  left: 5.4cqw;
  padding: 0.9cqw 1.35cqw 0.82cqw;
  border: 0.28cqw solid #090b1a;
  background: #ffd85b;
  box-shadow: 0.55cqw 0.58cqw 0 #d84437;
  color: #090b1a;
  font-size: 1.7cqw;
  font-weight: 1000;
  letter-spacing: 0.09em;
  line-height: 1;
  transform: rotate(-4deg);
}

.spread-graphics-rail {
  position: absolute;
  top: 31cqw;
  max-height: 61cqw;
  margin: 0;
  padding: 1.55cqw 0.78cqw;
  border: 0.24cqw solid #090b1a;
  background: rgba(255, 248, 221, 0.95);
  box-shadow: 0.55cqw 0.55cqw 0 #d84437;
  color: #090b1a;
  font-size: 1.75cqw;
  font-weight: 1000;
  letter-spacing: 0.1em;
  line-height: 1.18;
  writing-mode: vertical-rl;
}

.editorial-color-spread-graphics--right .spread-graphics-rail {
  right: 1.6cqw;
}

.editorial-color-spread-graphics--left .spread-graphics-rail {
  left: 1.6cqw;
  box-shadow: -0.55cqw 0.55cqw 0 #46bff2;
}

.spread-graphics-feature {
  position: absolute;
  right: 9cqw;
  bottom: 7cqw;
  left: 6cqw;
  display: grid;
  justify-items: start;
  max-width: 72cqw;
  padding: 2.3cqw 2.6cqw 2.25cqw 3cqw;
  border-left: 1.15cqw solid #ffd85b;
  background: rgba(8, 10, 24, 0.86);
  box-shadow: 1cqw 1.1cqw 0 rgba(216, 68, 55, 0.92);
  color: #fff8df;
  transform: rotate(-1.6deg) skewX(-3deg);
}

.spread-graphics-feature .spread-graphics-kicker {
  margin-bottom: 1.25cqw;
  color: #69cbff;
  font-size: 1.6cqw;
}

.spread-graphics-headline {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 5.2cqw;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.95;
  text-shadow: 0.36cqw 0.38cqw 0 #090b1a;
}

.spread-graphics-footer {
  margin-top: 1.65cqw;
  color: #ffd85b;
  font-size: 1.55cqw;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.locale-ja .spread-graphics-kicker,
.locale-ja .spread-graphics-badge,
.locale-ja .spread-graphics-rail,
.locale-ja .spread-graphics-headline,
.locale-ja .spread-graphics-footer {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.locale-ja .spread-graphics-headline {
  font-size: 4cqw;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

@media screen {
  .page-shell--color-spread-left {
    display: none;
  }

  .manga-reader.mode-book .page-shell--color-spread-right,
  .manga-reader.mode-cascade .page-shell--color-spread-right {
    width: min(100%, 1120px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .editorial-color-spread--combined {
    aspect-ratio: 1492 / 1054;
  }

  .editorial-color-spread--combined .editorial-color-spread-art--split {
    display: none;
  }

  .editorial-color-spread--combined .editorial-color-spread-art--web {
    display: block;
  }

  .editorial-color-spread--combined .spread-graphics-brand {
    top: 2.2cqw;
    right: 2.7cqw;
    left: 55cqw;
  }

  .editorial-color-spread--combined .spread-graphics-logo {
    font-size: 6.6cqw;
    -webkit-text-stroke-width: 0.36cqw;
    text-shadow:
      0.35cqw 0.38cqw 0 #f0b72e,
      0.58cqw 0.6cqw 0 #d84437,
      0.88cqw 0.95cqw 1.15cqw rgba(0, 0, 0, 0.6);
  }

  .editorial-color-spread--combined .spread-graphics-kana {
    margin-top: 0.58cqw;
    padding: 0.38cqw 0.78cqw 0.35cqw;
    border-width: 0.13cqw;
    box-shadow: 0.28cqw 0.29cqw 0 #d84437;
    font-size: 1.18cqw;
  }

  .editorial-color-spread--combined .spread-graphics-chapter,
  .editorial-color-spread--combined .spread-graphics-chapter-ja {
    margin-top: 0.46cqw;
    font-size: 1.04cqw;
    -webkit-text-stroke-width: 0.04cqw;
    text-shadow: 0 0.15cqw 0.35cqw rgba(0, 0, 0, 0.9);
  }

  .editorial-color-spread--combined .spread-graphics-chapter-ja {
    margin-top: 0.34cqw;
    font-size: 0.86cqw;
  }

}

.editorial-episode-spread {
  overflow: hidden;
  background: #f6f6f3;
}

.editorial-episode-spread::after {
  display: none;
}

.editorial-episode-intertitle {
  background: #000;
  color: #fff;
}

.editorial-episode-intertitle::after {
  display: none;
}

.episode-intertitle-lockup {
  position: absolute;
  right: 6.5cqw;
  bottom: 6.5cqw;
  display: grid;
  justify-items: end;
  gap: 1.15cqw;
}

.episode-intertitle-brand {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 7cqw;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.82;
  white-space: nowrap;
}

.episode-intertitle-kana {
  font-family: "PJ Dialogue", Avenir, sans-serif;
  font-size: 2.05cqw;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  white-space: nowrap;
}

.editorial-episode-spread-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.035);
}

.editorial-episode-spread-art--web {
  display: none;
}

.editorial-episode-spread-graphics {
  position: absolute;
  z-index: 4;
  top: 19cqw;
  left: 10.5cqw;
  display: grid;
  justify-items: start;
  width: 77cqw;
  color: #070707;
  line-height: 1;
  pointer-events: none;
  text-align: left;
  text-shadow:
    0 0 0.6cqw rgba(255, 255, 255, 1),
    0 0 1.4cqw rgba(255, 255, 255, 0.98),
    0 0 2.6cqw rgba(255, 255, 255, 0.9);
  transform: rotate(-1deg);
}

.episode-spread-brand,
.episode-spread-kana,
.episode-spread-label,
.episode-spread-title,
.episode-spread-subtitle,
.episode-spread-credit {
  display: block;
}

.episode-spread-brand {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 9.4cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.82;
  white-space: nowrap;
}

.episode-spread-kana {
  margin-top: 1.8cqw;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 2.15cqw;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.episode-spread-label {
  margin-top: 5.2cqw;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 2.4cqw;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.episode-spread-title {
  width: 100%;
  margin-top: 1.5cqw;
  padding-bottom: 1.5cqw;
  border-bottom: 0.58cqw solid currentColor;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 12.2cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.82;
}

.episode-spread-subtitle {
  margin-top: 2.1cqw;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 2.6cqw;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.episode-spread-credit {
  margin-top: 3.2cqw;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  font-size: 1.7cqw;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.locale-ja .episode-spread-label,
.locale-ja .episode-spread-title {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 950;
}

.locale-ja .episode-spread-title {
  font-size: 9.2cqw;
  line-height: 1;
}

.locale-ja .episode-spread-subtitle {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 3.5cqw;
  font-weight: 400;
}

.editorial-episode-spread--farewell .editorial-episode-spread-graphics {
  top: 7cqw;
  left: 7cqw;
  width: auto;
  color: #fff;
  text-shadow:
    0 0 0.35cqw rgba(0, 0, 0, 1),
    0.18cqw 0.18cqw 0 rgba(0, 0, 0, 0.95);
  transform: none;
}

.editorial-episode-spread--farewell .episode-spread-brand {
  font-size: 7.2cqw;
}

.editorial-episode-spread--farewell .episode-spread-kana {
  margin-top: 1.1cqw;
  font-size: 1.75cqw;
}

@media screen {
  .page-shell--episode-spread-left {
    display: none;
  }

  .manga-reader.mode-book .page-shell--episode-spread-right,
  .manga-reader.mode-cascade .page-shell--episode-spread-right {
    width: min(100%, 1120px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .editorial-episode-spread--combined {
    aspect-ratio: 1492 / 1054;
  }

  .editorial-episode-spread--combined .editorial-episode-spread-art--split {
    display: none;
  }

  .editorial-episode-spread--combined .editorial-episode-spread-art--web {
    display: block;
  }

  .editorial-episode-spread--combined .editorial-episode-spread-graphics {
    top: 9.5cqw;
    left: 5.25cqw;
    width: 38.5cqw;
    text-shadow:
      0 0 0.3cqw rgba(255, 255, 255, 1),
      0 0 0.7cqw rgba(255, 255, 255, 0.98),
      0 0 1.3cqw rgba(255, 255, 255, 0.9);
  }

  .editorial-episode-spread--combined .episode-spread-brand {
    font-size: 4.7cqw;
  }

  .editorial-episode-spread--combined .episode-spread-kana {
    margin-top: 0.9cqw;
    font-size: 1.08cqw;
  }

  .editorial-episode-spread--combined .episode-spread-label {
    margin-top: 2.6cqw;
    font-size: 1.2cqw;
  }

  .editorial-episode-spread--combined .episode-spread-title {
    margin-top: 0.75cqw;
    padding-bottom: 0.75cqw;
    border-bottom-width: 0.29cqw;
    font-size: 6.1cqw;
  }

  .editorial-episode-spread--combined .episode-spread-subtitle {
    margin-top: 1.05cqw;
    font-size: 1.3cqw;
  }

  .editorial-episode-spread--combined .episode-spread-credit {
    margin-top: 1.6cqw;
    font-size: 0.85cqw;
  }

  .locale-ja .editorial-episode-spread--combined .episode-spread-title {
    font-size: 4.6cqw;
  }

  .locale-ja .editorial-episode-spread--combined .episode-spread-subtitle {
    font-size: 1.75cqw;
  }

  .editorial-episode-spread--farewell.editorial-episode-spread--combined .editorial-episode-spread-graphics {
    top: 5.4cqw;
    left: 5.2cqw;
    width: auto;
    color: #fff;
    text-shadow:
      0 0 0.22cqw rgba(0, 0, 0, 1),
      0.12cqw 0.12cqw 0 rgba(0, 0, 0, 0.95);
  }

  .editorial-episode-spread--farewell.editorial-episode-spread--combined .episode-spread-brand {
    font-size: 4.7cqw;
  }

  .editorial-episode-spread--farewell.editorial-episode-spread--combined .episode-spread-kana {
    margin-top: 0.75cqw;
    font-size: 1.08cqw;
  }
}

.editorial-cover-copy {
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 7cqw 6.8cqw;
}

.editorial-cover-kicker {
  display: block;
  color: #fff;
  font-size: 2.05cqw;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.editorial-cover-title {
  display: block;
  max-width: 90%;
  margin-top: 1.8cqw;
  color: #fff;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 13.8cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.82;
  text-shadow: 0.65cqw 0.65cqw 0 #000, -0.2cqw -0.2cqw 0 #000;
}

.editorial-cover-title::after {
  display: block;
  width: 31cqw;
  height: 1.25cqw;
  margin-top: 2.6cqw;
  background: var(--accent);
  content: "";
}

.editorial-cover-volume,
.editorial-cover-author {
  position: absolute;
  bottom: 7.2cqw;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.editorial-cover-volume {
  right: 6.8cqw;
  padding: 1.1cqw 1.5cqw;
  border: 0.35cqw solid #fff;
  background: #050505;
  font-size: 3.1cqw;
}

.editorial-cover-author {
  left: 6.8cqw;
  font-size: 2.25cqw;
}

.editorial-author {
  display: flex;
  flex-direction: column;
  padding: 12cqw 11cqw 10cqw;
  background:
    linear-gradient(90deg, transparent 0 8.8cqw, var(--accent) 8.8cqw 9.35cqw, transparent 9.35cqw),
    var(--paper);
  font-family: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.editorial-author-heading {
  display: grid;
  gap: 3.5cqw;
}

.editorial-author-title {
  max-width: 74cqw;
  margin: 0;
  font-family: "PJ Dialogue", Avenir, sans-serif;
  font-size: 6.4cqw;
  line-height: 1.05;
}

.editorial-author-body {
  max-width: 68cqw;
  margin: 18cqw 0 0;
  font-family: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.25cqw;
  font-weight: 600;
  letter-spacing: 0.018em;
  line-height: 1.72;
}

.locale-ja .editorial-author-body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.editorial-author-signature {
  margin-top: 7cqw;
  font-size: 2.7cqw;
  letter-spacing: 0.14em;
}

.editorial-author-stamp {
  position: absolute;
  right: 9cqw;
  bottom: 9cqw;
  display: grid;
  width: 15cqw;
  aspect-ratio: 1;
  place-items: center;
  border: 0.7cqw solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 7cqw;
  line-height: 1;
  transform: rotate(-8deg);
}

.editorial-half-title {
  padding: 11cqw 9cqw 8cqw;
  background: var(--paper);
}

.editorial-half-title-name {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: 4cqw;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 12.5cqw;
  font-weight: 400;
  line-height: 0.84;
}

.editorial-half-title-volume {
  position: relative;
  z-index: 3;
  display: block;
  margin-top: 3.2cqw;
  font-size: 3cqw;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.editorial-half-title-art {
  position: absolute;
  left: 11cqw;
  bottom: 7cqw;
  width: 78cqw;
  height: 109cqw;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 90%, transparent 100%);
}

.editorial-half-title-author {
  position: absolute;
  z-index: 3;
  right: 9cqw;
  bottom: 8cqw;
  font-size: 2.4cqw;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.editorial-toc {
  isolation: isolate;
  padding: 0;
  background:
    radial-gradient(circle at 12% 13%, rgba(220, 47, 47, 0.16) 0 0.8cqw, transparent 0.95cqw),
    radial-gradient(circle at 17% 17%, rgba(0, 0, 0, 0.08) 0 0.48cqw, transparent 0.62cqw),
    radial-gradient(circle at 91% 74%, rgba(220, 47, 47, 0.11) 0 1.2cqw, transparent 1.35cqw),
    #f5f2eb;
}

.editorial-toc::before {
  position: absolute;
  z-index: 0;
  top: -20cqw;
  right: -28cqw;
  width: 88cqw;
  height: 70cqw;
  border: 3.2cqw solid rgba(220, 47, 47, 0.86);
  border-radius: 50%;
  box-shadow:
    0 0 0 1.1cqw #f5f2eb,
    0 0 0 1.45cqw rgba(5, 5, 5, 0.92);
  content: "";
  transform: rotate(-13deg);
}

.editorial-toc::after {
  display: none;
}

.editorial-toc-header {
  position: absolute;
  z-index: 4;
  top: 8cqw;
  right: 7.5cqw;
  left: 8cqw;
}

.editorial-toc .editorial-kicker {
  display: block;
  margin-bottom: 2.2cqw;
  color: var(--accent);
  font-size: 2.1cqw;
}

.editorial-toc-brand {
  display: block;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 10.5cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.78;
  white-space: nowrap;
}

.editorial-toc-kana {
  display: block;
  margin-top: 1.4cqw;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 2.2cqw;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.editorial-toc-title {
  margin: 4.3cqw 0 0;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 6.8cqw;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 0.82;
}

.editorial-toc-emblem {
  position: absolute;
  z-index: 3;
  top: 37cqw;
  right: 7.5cqw;
  width: 28cqw;
  height: 20cqw;
  border-radius: 48% 48% 43% 43%;
  background: #050505;
  box-shadow: 1.5cqw 1.5cqw 0 var(--accent);
  transform: rotate(-7deg);
}

.editorial-toc-emblem::before,
.editorial-toc-emblem::after {
  position: absolute;
  z-index: -1;
  top: -5cqw;
  width: 11cqw;
  height: 12cqw;
  background: #050505;
  content: "";
}

.editorial-toc-emblem::before {
  left: 1.2cqw;
  clip-path: polygon(0 0, 100% 47%, 24% 100%);
}

.editorial-toc-emblem::after {
  right: 1.2cqw;
  clip-path: polygon(100% 0, 76% 100%, 0 47%);
}

.editorial-toc-eye {
  position: absolute;
  top: 6.7cqw;
  width: 7.2cqw;
  height: 6.2cqw;
  border-radius: 50%;
  background: #fff;
}

.editorial-toc-eye::after {
  position: absolute;
  top: 1.8cqw;
  left: 2.2cqw;
  width: 2.8cqw;
  height: 2.8cqw;
  border-radius: 50%;
  background: #050505;
  content: "";
}

.editorial-toc-eye--left {
  left: 4.6cqw;
}

.editorial-toc-eye--right {
  right: 4.6cqw;
}

.editorial-toc-spirits {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.editorial-toc-spirits span {
  position: absolute;
  display: block;
  width: 31cqw;
  height: 45cqw;
  border-radius: 52% 48% 18% 22% / 43% 48% 52% 57%;
  background: rgba(5, 5, 5, 0.045);
}

.editorial-toc-spirits span::before,
.editorial-toc-spirits span::after {
  position: absolute;
  top: 12cqw;
  width: 3.2cqw;
  height: 5.6cqw;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.15);
  content: "";
}

.editorial-toc-spirits span::before {
  left: 9cqw;
}

.editorial-toc-spirits span::after {
  right: 9cqw;
}

.editorial-toc-spirits span:first-child {
  right: -8cqw;
  bottom: -5cqw;
  transform: rotate(13deg);
}

.editorial-toc-spirits span:last-child {
  bottom: -19cqw;
  left: 25cqw;
  transform: rotate(-15deg) scale(0.78);
}

.editorial-toc-list {
  position: absolute;
  z-index: 4;
  top: 68cqw;
  right: 8cqw;
  left: 8cqw;
  display: grid;
  gap: 4.4cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-toc-list li {
  display: grid;
  grid-template-columns: 18cqw minmax(0, 1fr);
  align-items: center;
  gap: 2.8cqw;
  min-height: 15.5cqw;
  padding: 0;
  font-family: "PJ Dialogue", Avenir, sans-serif;
}

.editorial-toc-list li:nth-child(2) {
  margin-left: 7cqw;
}

.editorial-toc-list li.is-future {
  color: rgba(5, 5, 5, 0.48);
}

.editorial-toc-number {
  color: #050505;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 8.7cqw;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.72;
  text-shadow: 0.65cqw 0.65cqw 0 rgba(220, 47, 47, 0.76);
}

.editorial-toc-list li:last-child .editorial-toc-number {
  font-size: 5.8cqw;
}

.editorial-toc-entry-title,
.editorial-toc-entry-subtitle {
  display: block;
}

.editorial-toc-entry-title {
  font-size: 3.9cqw;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-wrap: balance;
}

.editorial-toc-entry-subtitle {
  margin-top: 1.2cqw;
  color: var(--accent);
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 1.85cqw;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.12;
}

.chapter-title-page {
  display: grid;
  place-items: center;
  padding: 10cqw;
  background:
    repeating-linear-gradient(118deg, transparent 0 3cqw, rgba(255, 255, 255, 0.035) 3cqw 3.4cqw),
    #050505;
  color: #fff;
  text-align: center;
}

.chapter-title-page::before {
  position: absolute;
  inset: 8cqw;
  border: 0.5cqw solid #fff;
  box-shadow: 1.7cqw 1.7cqw 0 var(--accent);
  content: "";
}

.chapter-title-page::after {
  border-color: rgba(255, 255, 255, 0.15);
}

.chapter-title-label,
.chapter-title-credit {
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  font-size: 2.45cqw;
  font-weight: 950;
  letter-spacing: 0.3em;
}

.chapter-title-label {
  top: 17cqw;
  color: var(--accent);
}

.chapter-title-wordmark {
  position: relative;
  z-index: 3;
  display: block;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 16.5cqw;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.78;
  transform: rotate(-2deg);
}

.chapter-title-subtitle {
  position: absolute;
  z-index: 3;
  top: 60%;
  right: 15cqw;
  left: 15cqw;
  padding-top: 4cqw;
  border-top: 0.7cqw solid var(--accent);
  font-size: 3.4cqw;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.25;
}

.chapter-title-credit {
  bottom: 16cqw;
  color: #bbb;
  font-size: 1.8cqw;
  letter-spacing: 0.22em;
}

.chapter-title-number {
  display: none;
}

.chapter-title-page--episode {
  overflow: hidden;
  background:
    repeating-linear-gradient(118deg, transparent 0 4cqw, rgba(0, 0, 0, 0.025) 4cqw 4.4cqw),
    var(--paper);
  color: var(--ink);
  text-align: left;
}

.chapter-title-page--episode::before {
  border-color: var(--ink);
  box-shadow: 1.7cqw 1.7cqw 0 var(--ink);
}

.chapter-title-page--episode::after {
  position: absolute;
  z-index: 2;
  top: 33%;
  bottom: 29%;
  left: 11cqw;
  width: 1.4cqw;
  background: var(--accent);
  content: "";
}

.chapter-title-page--episode .chapter-title-number {
  position: absolute;
  z-index: 1;
  top: 13cqw;
  right: -2cqw;
  display: block;
  color: var(--ink);
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 51cqw;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.8;
  opacity: 0.07;
}

.chapter-title-page--episode .chapter-title-label {
  top: 16cqw;
  right: 12cqw;
  left: 12cqw;
  color: var(--accent);
  text-align: left;
}

.chapter-title-page--episode .chapter-title-wordmark {
  position: absolute;
  z-index: 3;
  top: 38%;
  right: 12cqw;
  left: 15cqw;
  font-size: 10.5cqw;
  line-height: 0.88;
  text-align: left;
  transform: none;
}

.chapter-title-page--episode .chapter-title-subtitle {
  top: 67%;
  right: 12cqw;
  left: 15cqw;
  padding-top: 3cqw;
  border-top-color: var(--ink);
  font-size: 2.9cqw;
  text-align: left;
}

.chapter-title-page--episode .chapter-title-credit {
  right: 12cqw;
  bottom: 15cqw;
  left: 12cqw;
  color: #555;
  text-align: right;
}

.locale-ja .chapter-title-page--episode .chapter-title-wordmark,
.locale-ja .chapter-title-page--episode .chapter-title-subtitle,
.locale-ja .chapter-title-page--episode .chapter-title-label,
.locale-ja .chapter-title-page--episode .chapter-title-credit {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.locale-ja .chapter-title-page--episode .chapter-title-wordmark {
  font-size: 7.8cqw;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.scene-end-title {
  display: grid;
  width: min(100%, 720px);
  min-height: 180px;
  place-items: center;
  border-top: 8px solid var(--paper);
  border-bottom: 8px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  direction: ltr;
}

.scene-end-title strong {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: clamp(56px, 11vw, 112px);
  font-weight: 400;
  line-height: 0.82;
  text-align: center;
}

.manga-reader.mode-book .scene-end-title {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1748 / 720;
  grid-column: 1 / -1;
}

.manga-page {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1748 / 2480;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(16, minmax(0, 1fr));
  gap: 1.15cqw;
  padding: 2.3cqw 2.3cqw 3.8cqw;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
  color: var(--ink);
  container-type: inline-size;
  --page-dialogue-md: 1.72cqw;
  --page-dialogue-sm: 1.55cqw;
  --page-dialogue-xs: 1.3cqw;
  --page-dialogue-comic: 1.75cqw;
  --page-dialogue-shout: 2.08cqw;
  --page-dialogue-montage: 1.72cqw;
  --page-dialogue-narration: 1.34cqw;
  --page-dialogue-pad-top: 1.05cqw;
  --page-dialogue-pad-x: 1.35cqw;
  --page-dialogue-pad-bottom: 1.2cqw;
  --page-dialogue-xs-pad-top: 0.85cqw;
  --page-dialogue-xs-pad-x: 1.05cqw;
  --page-dialogue-xs-pad-bottom: 1cqw;
  --page-dialogue-locale-pad-x: 1.55cqw;
  --page-dialogue-min-md: 5.5cqw;
  --page-dialogue-min-sm: 4.45cqw;
  --page-dialogue-min-xs: 4.1cqw;
  --page-bubble-stroke: 0.35cqw;
  --page-bubble-shout-stroke: 0.4cqw;
  --page-bubble-montage-stroke: 0.32cqw;
  --page-bubble-narration-stroke: 0.26cqw;
  --page-thought-border: 0.3cqw;
  --page-thought-before-top: -1.15cqw;
  --page-thought-before-right: 3.6cqw;
  --page-thought-before-size: 1.05cqw;
  --page-thought-after-top: -1.95cqw;
  --page-thought-after-right: 2.7cqw;
  --page-thought-after-size: 0.62cqw;
  --page-intro-caption-es: 1.9cqw;
  --page-intro-caption-ja: 1.48cqw;
  --page-intro-caption-pad-top: 1.1cqw;
  --page-intro-caption-pad-x: 1.55cqw;
  --page-intro-caption-pad-bottom: 1.15cqw;
  --page-intro-caption-stroke: 0.24cqw;
  --page-intro-caption-bleed-x: 1.1cqw;
  --page-intro-caption-bleed-y: 0.9cqw;
}

.manga-page::after {
  display: none;
}

.is-editing .manga-page.has-maker-region::before {
  position: absolute;
  z-index: 70;
  top: var(--region-y);
  left: var(--region-x);
  width: var(--region-width);
  height: var(--region-height);
  border: 1px dashed rgba(0, 128, 255, 0.9);
  background: rgba(0, 128, 255, 0.035);
  content: "";
  pointer-events: none;
}

.manga-page.has-page-master {
  display: block;
  padding: 0;
  background: #fff;
}

.page-master-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.manga-dialogue.is-page-layer,
.page-caption-layer,
.page-signature-layer,
.page-pause-layer,
.page-gaze-layer {
  top: var(--layer-y);
  right: auto;
  bottom: auto;
  left: var(--layer-x);
  width: var(--layer-width);
  max-width: var(--layer-width);
}

.page-gaze-layer {
  position: absolute;
  z-index: 17;
  height: var(--layer-height);
  overflow: visible;
  pointer-events: none;
}

.page-gaze-layer path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-gaze-layer .gaze-sightline-halo {
  stroke: var(--paper);
  stroke-width: 0.68cqw;
  stroke-dasharray: 0.08cqw 1.05cqw;
}

.page-gaze-layer .gaze-sightline {
  stroke: var(--ink);
  stroke-width: 0.27cqw;
  stroke-dasharray: 0.08cqw 1.05cqw;
}

.page-pause-layer {
  position: absolute;
  z-index: 18;
  display: block;
  min-height: 3.4cqw;
  overflow: visible;
  color: var(--ink);
  font-family: "PJ Dialogue";
  font-size: 2.8cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    -0.18cqw -0.18cqw 0 var(--paper),
    0.18cqw -0.18cqw 0 var(--paper),
    -0.18cqw 0.18cqw 0 var(--paper),
    0.18cqw 0.18cqw 0 var(--paper);
  pointer-events: none;
}

.manga-dialogue.is-page-layer {
  z-index: 20;
  min-width: 0;
  padding: var(--page-dialogue-pad-top) var(--page-dialogue-pad-x) var(--page-dialogue-pad-bottom);
  font-size: var(--page-dialogue-md);
}

.manga-dialogue.is-page-layer.size-sm {
  max-width: var(--layer-width);
  font-size: var(--page-dialogue-sm);
}

.manga-dialogue.is-page-layer.size-xs {
  max-width: var(--layer-width);
  padding: var(--page-dialogue-xs-pad-top) var(--page-dialogue-xs-pad-x) var(--page-dialogue-xs-pad-bottom);
  font-size: var(--page-dialogue-xs);
  line-height: 1.03;
}

.page-caption-layer {
  position: absolute;
  z-index: 15;
  padding: 0.5cqw 0.7cqw;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-family: "PJ Dialogue";
  font-size: 1.45cqw;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.page-signature-layer {
  position: absolute;
  z-index: 19;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35cqw;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

.page-signature-primary {
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 6cqw;
  font-style: italic;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0.025em;
  -webkit-text-stroke: 0.16cqw var(--paper);
  paint-order: stroke fill;
  filter: drop-shadow(0.2cqw 0.2cqw 0 var(--ink));
}

.page-signature-kana {
  margin-right: 0.35cqw;
  color: var(--paper);
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 1.45cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  -webkit-text-stroke: 0.08cqw var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(0.1cqw 0.1cqw 0 var(--ink));
}

.manga-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  padding: max(1px, 0.34cqw);
  background: var(--ink);
  isolation: isolate;
  cursor: zoom-in;
}

.panel-focus-close {
  display: none;
}

.has-focused-panel {
  overflow: hidden;
}

.manga-panel.is-focused {
  position: fixed;
  z-index: 300;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  clip-path: none !important;
  background: var(--ink);
  cursor: zoom-out;
}

.manga-panel.is-focused .panel-viewport {
  inset: 0;
  background: var(--ink);
}

.manga-panel.is-focused .panel-art {
  object-fit: contain;
  object-position: center;
  transform: scale(1);
}

.manga-panel.is-focused .manga-dialogue {
  max-width: min(62vw, 560px);
  min-width: 140px;
  padding: 14px 20px 16px;
  border-width: 3px;
  font-size: clamp(16px, 2.4vw, 28px);
}

.manga-panel.is-focused .manga-dialogue.size-sm,
.manga-panel.is-focused .manga-dialogue.size-xs {
  font-size: clamp(15px, 2.1vw, 24px);
}

.manga-panel.is-focused .manga-dialogue.tone-shout {
  font-size: clamp(17px, 2.6vw, 30px);
}

.manga-panel.is-focused .panel-caption {
  right: 24px;
  bottom: 24px;
  padding: 8px 12px;
  font-size: 15px;
}

.manga-panel.is-focused .panel-sfx {
  font-size: clamp(38px, 8vw, 92px);
}

.manga-panel.is-focused .panel-focus-close {
  position: absolute;
  z-index: 400;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: var(--paper);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.panel-viewport {
  position: absolute;
  z-index: 1;
  inset: max(1px, 0.34cqw);
  overflow: hidden;
  background: #d6d6d1;
}

.panel-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--x, 50%) var(--y, 50%);
}

.manga-panel.borderless,
.manga-panel.white-hold,
.manga-panel.memory {
  padding: 0;
  background: transparent;
}

.manga-panel.borderless .panel-viewport,
.manga-panel.white-hold .panel-viewport,
.manga-panel.memory .panel-viewport {
  inset: 0;
}

.manga-panel.slant-left {
  clip-path: polygon(0 3%, 100% 0, 96% 100%, 3% 97%);
}

.manga-panel.slant-right {
  clip-path: polygon(4% 0, 100% 3%, 97% 96%, 0 100%);
}

.manga-panel.tall {
  clip-path: polygon(3% 0, 100% 0, 96% 100%, 0 97%);
}

.manga-panel.strip {
  clip-path: polygon(0 8%, 100% 0, 97% 92%, 2% 100%);
}

.manga-panel.inset {
  z-index: 7;
  box-shadow: 0.7cqw 0.7cqw 0 var(--paper), 1.05cqw 1.05cqw 0 var(--ink);
}

.manga-panel.overlap {
  z-index: 8;
  margin: -1.2cqw;
}

.manga-panel.border-break {
  z-index: 6;
  margin-inline: -1cqw;
  clip-path: polygon(0 0, 96% 3%, 100% 94%, 2% 100%);
}

.manga-panel.impact {
  z-index: 4;
  margin: -0.45cqw;
  clip-path: polygon(0 2%, 14% 0, 28% 3%, 42% 0, 57% 2%, 71% 0, 86% 3%, 100% 0, 98% 20%, 100% 39%, 97% 58%, 100% 77%, 97% 100%, 81% 97%, 64% 100%, 48% 97%, 31% 100%, 15% 97%, 0 100%, 3% 79%, 0 59%, 3% 39%);
}

.manga-panel.action .panel-art {
  filter: contrast(1.06);
}

.manga-panel.dark .panel-art {
  filter: brightness(0.78) contrast(1.15);
}

.manga-panel.memory .panel-art {
  opacity: 0.72;
  filter: contrast(0.82);
}

.manga-panel.memory::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, var(--paper) 86%);
  content: "";
  pointer-events: none;
}

.manga-panel.white-hold .panel-art {
  filter: contrast(0.72) brightness(1.16);
}

.manga-panel.light .panel-art {
  filter: contrast(1.2) brightness(1.18);
}

.manga-panel.title {
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  background: var(--ink);
  clip-path: polygon(0 7%, 13% 0, 28% 6%, 44% 0, 61% 5%, 77% 0, 100% 8%, 96% 91%, 82% 100%, 64% 94%, 47% 100%, 30% 94%, 12% 100%);
}

.panel-caption {
  position: absolute;
  z-index: 14;
  right: 2.2cqw;
  bottom: 1.9cqw;
  max-width: 80%;
  padding: 0.75cqw 1.1cqw;
  background: rgba(0, 0, 0, 0.88);
  color: var(--paper);
  font-size: 1.45cqw;
  font-weight: 900;
  line-height: 1;
}

.manga-panel.title .panel-caption {
  position: static;
  max-width: none;
  padding: 0;
  background: transparent;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 9.2cqw;
  text-shadow: 0.8cqw 0.8cqw 0 var(--accent);
}

.manga-dialogue {
  position: absolute;
  z-index: 20;
  display: grid;
  isolation: isolate;
  overflow: visible;
  width: max-content;
  max-width: 76%;
  min-width: 8cqw;
  padding: 1.05cqw 1.35cqw 1.2cqw;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "PJ Dialogue";
  font-size: 1.72cqw;
  line-height: 1.04;
  text-align: center;
}

.bubble-visual {
  position: absolute;
  z-index: 0;
  overflow: visible;
  inset: 0;
  pointer-events: none;
}

.bubble-body-svg {
  position: absolute;
  overflow: visible;
  z-index: 2;
  width: 100%;
  height: 100%;
  inset: 0;
}

.bubble-body-svg path {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: max(1.2px, var(--page-bubble-stroke));
}

.bubble-preset-thought .bubble-visual::before,
.bubble-preset-thought .bubble-visual::after {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: max(1.1px, var(--page-thought-border)) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.bubble-preset-thought .bubble-visual::before {
  top: var(--page-thought-before-top);
  right: var(--page-thought-before-right);
  width: var(--page-thought-before-size);
  height: var(--page-thought-before-size);
}

.bubble-preset-thought .bubble-visual::after {
  top: var(--page-thought-after-top);
  right: var(--page-thought-after-right);
  width: var(--page-thought-after-size);
  height: var(--page-thought-after-size);
}

.manga-dialogue.pos-tr {
  top: 5%;
  right: 4%;
}

.manga-dialogue.pos-tl {
  top: 5%;
  left: 4%;
}

.manga-dialogue.pos-br {
  right: 4%;
  bottom: 5%;
}

.manga-dialogue.pos-bl {
  bottom: 5%;
  left: 4%;
}

.manga-page.has-page-master .manga-dialogue.is-page-layer {
  top: var(--layer-y);
  right: auto;
  bottom: auto;
  left: var(--layer-x);
  width: var(--layer-width);
  max-width: var(--layer-width);
}

.manga-dialogue.size-sm {
  max-width: 64%;
  font-size: 1.55cqw;
}

.manga-dialogue.size-xs {
  max-width: 72%;
  padding: 0.85cqw 1.05cqw 1cqw;
  font-size: 1.3cqw;
  line-height: 1;
}

.manga-dialogue.tone-weak {
  font-weight: 700;
}

.manga-dialogue.tone-comic {
  font-size: 1.75cqw;
  font-weight: 900;
}

.manga-dialogue.is-page-layer.tone-comic {
  font-size: var(--page-dialogue-comic);
}

.manga-dialogue.tone-shout {
  max-width: 82%;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 1.85cqw;
  line-height: 0.96;
}

.manga-dialogue.is-page-layer.tone-shout {
  font-size: var(--page-dialogue-shout);
}

.manga-dialogue.tone-shout .bubble-body-svg path {
  stroke-width: max(1.35px, var(--page-bubble-shout-stroke));
}

.manga-dialogue.tone-montage {
  min-width: 0;
  padding: 1.05cqw 1.15cqw;
  background: transparent;
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 1.08cqw;
  font-weight: 900;
  line-height: 0.94;
  text-align: center;
}

.manga-dialogue.is-page-layer.tone-montage {
  padding: var(--page-dialogue-pad-top) var(--page-dialogue-xs-pad-x);
  font-size: var(--page-dialogue-montage);
}

.manga-dialogue.tone-montage .bubble-body-svg path {
  stroke-width: max(1.15px, var(--page-bubble-montage-stroke));
}

.manga-dialogue.tone-narration {
  padding: 0.85cqw 1.05cqw;
  font-family: "PJ Dialogue";
  font-size: clamp(7.5px, 1.34cqw, 10.5px);
  font-weight: 800;
  line-height: 1.08;
  text-align: left;
}

.manga-dialogue.is-page-layer.tone-narration {
  font-size: var(--page-dialogue-narration);
}

.manga-dialogue.tone-narration .bubble-body-svg path {
  fill: rgba(255, 255, 252, 0.96);
  stroke-width: max(1.05px, var(--page-bubble-narration-stroke));
}

.locale-es .manga-dialogue.tone-narration .dialogue-text {
  text-transform: none;
}

.speaker-label {
  display: none;
}

.dialogue-text {
  position: relative;
  z-index: 3;
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.locale-es .manga-dialogue {
  letter-spacing: 0;
  text-transform: uppercase;
}

.locale-en .manga-dialogue {
  font-family: "PJ Dialogue", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-transform: uppercase;
}

.locale-en .manga-dialogue.tone-narration .dialogue-text {
  text-transform: uppercase;
}

:is(.locale-pt, .locale-it, .locale-fr, .locale-de) .manga-dialogue {
  font-family: "PJ Dialogue", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0;
  line-height: 1.03;
  text-transform: uppercase;
}

:is(.locale-pt, .locale-it, .locale-fr, .locale-de)
  .manga-page.has-page-master
  .manga-dialogue.is-page-layer:not(.tone-shout) {
  width: max-content;
  max-width: var(--layer-width);
  min-height: var(--page-dialogue-min-md);
  padding-inline: var(--page-dialogue-locale-pad-x);
}

:is(.locale-pt, .locale-it, .locale-fr, .locale-de)
  .manga-page.has-page-master
  .manga-dialogue.is-page-layer.size-sm:not(.tone-shout) {
  min-height: var(--page-dialogue-min-sm);
}

:is(.locale-pt, .locale-it, .locale-fr, .locale-de)
  .manga-page.has-page-master
  .manga-dialogue.is-page-layer.size-xs:not(.tone-shout) {
  min-height: var(--page-dialogue-min-xs);
}

:is(.locale-pt, .locale-it, .locale-fr, .locale-de)
  .manga-page.has-page-master
  .manga-dialogue.is-page-layer.tone-shout {
  width: var(--layer-width);
}

.locale-pt .manga-dialogue.is-page-layer,
.locale-it .manga-dialogue.is-page-layer {
  font-size: calc(var(--page-dialogue-md) * 0.95);
}

.locale-pt .manga-dialogue.is-page-layer.size-sm,
.locale-it .manga-dialogue.is-page-layer.size-sm {
  font-size: calc(var(--page-dialogue-sm) * 0.95);
}

.locale-pt .manga-dialogue.is-page-layer.size-xs,
.locale-it .manga-dialogue.is-page-layer.size-xs {
  font-size: calc(var(--page-dialogue-xs) * 0.95);
}

.locale-pt .manga-dialogue.is-page-layer.tone-shout,
.locale-it .manga-dialogue.is-page-layer.tone-shout {
  font-size: calc(var(--page-dialogue-shout) * 0.95);
}

.locale-fr .manga-dialogue.is-page-layer {
  font-size: calc(var(--page-dialogue-md) * 0.92);
}

.locale-fr .manga-dialogue.is-page-layer.size-sm {
  font-size: calc(var(--page-dialogue-sm) * 0.92);
}

.locale-fr .manga-dialogue.is-page-layer.size-xs {
  font-size: calc(var(--page-dialogue-xs) * 0.92);
}

.locale-fr .manga-dialogue.is-page-layer.tone-shout {
  font-size: calc(var(--page-dialogue-shout) * 0.92);
}

.locale-de .manga-dialogue.is-page-layer {
  font-size: calc(var(--page-dialogue-md) * 0.88);
}

.locale-de .manga-dialogue.is-page-layer.size-sm {
  font-size: calc(var(--page-dialogue-sm) * 0.88);
}

.locale-de .manga-dialogue.is-page-layer.size-xs {
  font-size: calc(var(--page-dialogue-xs) * 0.88);
}

.locale-de .manga-dialogue.is-page-layer.tone-shout {
  font-size: calc(var(--page-dialogue-shout) * 0.88);
}

:is(.locale-zh-hans, .locale-ko) .manga-dialogue.is-page-layer {
  width: max-content;
  max-width: var(--layer-width);
  min-height: var(--page-dialogue-min-md);
  padding-inline: var(--page-dialogue-locale-pad-x);
  font-size: calc(var(--page-dialogue-md) * 0.92);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

:is(.locale-zh-hans, .locale-ko) .manga-dialogue.is-page-layer.size-sm {
  font-size: calc(var(--page-dialogue-sm) * 0.92);
}

:is(.locale-zh-hans, .locale-ko) .manga-dialogue.is-page-layer.size-xs {
  font-size: calc(var(--page-dialogue-xs) * 0.92);
}

:is(.locale-zh-hans, .locale-ko) .manga-dialogue.is-page-layer.tone-shout {
  font-size: calc(var(--page-dialogue-shout) * 0.92);
}

.locale-zh-hans .manga-dialogue {
  /* Hiragino Sans GB is present in the production macOS/Chrome print stack.
     Keeping it first prevents Chrome PDF from dropping Simplified Chinese
     glyphs while resolving an unavailable PingFang SC face. */
  font-family: "Hiragino Sans GB", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif !important;
}

.locale-zh-hans .episode-spread-closing-caption {
  font-family: "Hiragino Sans GB", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

.locale-zh-hant .episode-spread-closing-caption {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
}

.locale-zh-hans .dialogue-text {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.locale-ko .manga-dialogue.is-page-layer {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.locale-ko .dialogue-text {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

:is(.locale-zh-hans, .locale-ko)
  .manga-page.has-page-master
  .manga-dialogue.is-page-layer.tone-shout {
  width: var(--layer-width);
}

.locale-zh-hant .manga-dialogue.is-page-layer {
  font-family: "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(8.5px, 1.62cqw, 12.5px);
  font-weight: 750;
  line-height: 1.28;
}

.locale-zh-hant .manga-dialogue.is-page-layer.size-sm {
  font-size: clamp(8px, 1.48cqw, 11.5px);
}

.locale-zh-hant .manga-dialogue.is-page-layer.size-xs {
  font-size: clamp(7.5px, 1.4cqw, 11px);
}

.locale-es .manga-dialogue.tone-shout,
.locale-es .manga-dialogue.tone-montage {
  text-transform: uppercase;
}

.locale-es .manga-page.has-page-master .manga-dialogue.is-page-layer:not(.tone-shout) {
  width: max-content;
  max-width: var(--layer-width);
  min-height: var(--page-dialogue-min-md);
  padding-inline: var(--page-dialogue-locale-pad-x);
}

.locale-en .manga-page.has-page-master .manga-dialogue.is-page-layer:not(.tone-shout) {
  width: max-content;
  max-width: var(--layer-width);
  min-height: var(--page-dialogue-min-md);
  padding-inline: var(--page-dialogue-locale-pad-x);
}

.locale-en .manga-page.has-page-master .manga-dialogue.is-page-layer.size-sm:not(.tone-shout) {
  min-height: var(--page-dialogue-min-sm);
}

.locale-en .manga-page.has-page-master .manga-dialogue.is-page-layer.size-xs:not(.tone-shout) {
  min-height: var(--page-dialogue-min-xs);
}

.locale-en .manga-page.has-page-master .manga-dialogue.is-page-layer.tone-shout {
  width: var(--layer-width);
}

/* Deep locale QA: starburst silhouettes need more optical inset than their
   rectangular layout boxes. Keep the balloons in their approved art-safe
   regions and compact only the editions whose longer copy reaches a spike. */
.locale-en .manga-dialogue:is(
  [data-dialogue-id="C001-P06-D01A"],
  [data-dialogue-id="C001-P06-D01B2"],
  [data-dialogue-id="C001-P08-D01C"],
  [data-dialogue-id="C001-S03-P04-D01"]
).is-page-layer.tone-shout {
  font-size: calc(var(--page-dialogue-shout) * 0.84);
}

.locale-en .manga-dialogue[data-dialogue-id="C001-S03-P03-D03"].is-page-layer {
  font-size: calc(var(--page-dialogue-xs) * 0.9);
}

.locale-fr .manga-dialogue[data-dialogue-id="C001-P08-D01C"].is-page-layer.tone-shout {
  font-size: calc(var(--page-dialogue-shout) * 0.82);
}

.locale-es .manga-page.has-page-master .manga-dialogue.is-page-layer.size-sm:not(.tone-shout) {
  min-height: var(--page-dialogue-min-sm);
}

.locale-es .manga-page.has-page-master .manga-dialogue.is-page-layer.size-xs:not(.tone-shout) {
  min-height: var(--page-dialogue-min-xs);
}

.locale-es .manga-page.has-page-master .manga-dialogue.is-page-layer.tone-shout {
  width: var(--layer-width);
}

.manga-page.has-page-master .manga-dialogue.is-page-layer.has-editorial-width,
.manga-page.has-page-master .manga-dialogue.is-page-layer.has-maker-width {
  width: var(--layer-width) !important;
  max-width: var(--layer-width) !important;
}

.manga-page.has-page-master .manga-dialogue.is-page-layer.has-editorial-height,
.manga-page.has-page-master .manga-dialogue.is-page-layer.has-maker-height {
  height: var(--layer-height) !important;
  min-height: var(--layer-height) !important;
  place-content: center;
}

.locale-ja .manga-dialogue.is-page-layer {
  display: grid;
  height: var(--layer-height, auto);
  min-height: 0;
  padding: 1.15cqw 1.05cqw;
  place-content: center;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(9px, 1.75cqw, 13px);
  font-weight: 700;
  line-height: 1.32;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.locale-ja .manga-dialogue.is-page-layer.size-sm {
  font-size: clamp(8.5px, 1.58cqw, 12px);
}

.locale-ja .manga-dialogue.is-page-layer.size-xs {
  font-size: clamp(8px, 1.52cqw, 11.5px);
  line-height: 1.26;
}

@media screen and (max-width: 600px) {
  .locale-ja .manga-reader.mode-cascade .manga-dialogue.is-page-layer.size-xs {
    font-size: clamp(5.6px, 1.38cqw, 10.5px);
  }

  .locale-ja .manga-reader.mode-cascade
    .manga-dialogue[data-dialogue-id="C001-P06-D01B2"].is-page-layer {
    font-size: 7.4px;
  }
}

.locale-ja .manga-dialogue.is-page-layer.tone-shout {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 900;
  line-height: 1.3;
}

.locale-ja .manga-dialogue.is-page-layer.tone-montage {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(8px, 1.42cqw, 11px);
  font-weight: 900;
  line-height: 1.05;
}

/* P07: intimate dialogue runs in the white art-safe corridors, never over characters. */
.locale-ja .manga-page[data-page-id="C001-P07"]
  .manga-dialogue[data-dialogue-id="C001-P07-D01"].is-page-layer.is-frameless {
  padding: 0;
  font-size: clamp(7.5px, 1.05cqw, 8.5px);
  line-height: 1.05;
  text-align: center;
  writing-mode: vertical-rl;
}

.locale-ja .manga-page[data-page-id="C001-P07"]
  .manga-dialogue[data-dialogue-id="C001-P07-D02"].is-page-layer {
  font-size: clamp(7.5px, 1.05cqw, 8.5px);
  line-height: 1.1;
}

.locale-ja .manga-page[data-page-id="C001-P07"]
  .manga-dialogue[data-dialogue-id="C001-P07-D03"].is-page-layer,
.locale-ja .manga-page[data-page-id="C001-P07"]
  .manga-dialogue[data-dialogue-id="C001-P07-D04"].is-page-layer {
  padding: 0.5cqw 0.7cqw;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(7.5px, 0.94cqw, 8px);
  font-weight: 700;
  line-height: 1.16;
  text-align: center;
  text-orientation: mixed;
  writing-mode: horizontal-tb;
}

.locale-ja .manga-page[data-page-id="C001-P07"]
  .manga-dialogue[data-dialogue-id="C001-P07-D03"] .dialogue-text,
.locale-ja .manga-page[data-page-id="C001-P07"]
  .manga-dialogue[data-dialogue-id="C001-P07-D04"] .dialogue-text {
  white-space: pre-line;
}

@media screen and (max-width: 600px) {
  .locale-ja .manga-reader.mode-cascade
    .manga-page[data-page-id="C001-P07"]
    .manga-dialogue[data-dialogue-id="C001-P07-D01"].is-page-layer.is-frameless {
    font-size: 5.2px;
  }

  .locale-ja .manga-reader.mode-cascade
    .manga-page[data-page-id="C001-P07"]
    .manga-dialogue[data-dialogue-id="C001-P07-D03"].is-page-layer,
  .locale-ja .manga-reader.mode-cascade
    .manga-page[data-page-id="C001-P07"]
    .manga-dialogue[data-dialogue-id="C001-P07-D04"].is-page-layer {
    font-size: 6.2px;
  }
}

/* P05 memory montage: four horizontal frameless lines occupy only the white corridors between memories. */
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03A"].is-page-layer.is-frameless,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03B"].is-page-layer.is-frameless,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03C"].is-page-layer.is-frameless,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03D"].is-page-layer.is-frameless {
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(7.5px, 1.05cqw, 8.5px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.01em;
  padding: 0.15cqw 0.25cqw;
  text-align: center;
  text-orientation: mixed;
  text-shadow:
    -0.14cqw -0.14cqw 0 rgba(255, 255, 255, 0.96),
    0.14cqw -0.14cqw 0 rgba(255, 255, 255, 0.96),
    -0.14cqw 0.14cqw 0 rgba(255, 255, 255, 0.96),
    0.14cqw 0.14cqw 0 rgba(255, 255, 255, 0.96),
    0 0 0.48cqw rgba(255, 255, 255, 0.9);
  writing-mode: horizontal-tb;
}

.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03A"].is-page-layer.is-frameless,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03C"].is-page-layer.is-frameless {
  padding: 0.1cqw 0.18cqw;
  font-size: clamp(6.4px, 0.9cqw, 7.2px);
  line-height: 1.08;
}

.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03A"].is-frameless .dialogue-text,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03B"].is-frameless .dialogue-text,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03C"].is-frameless .dialogue-text,
.locale-ja .manga-page[data-page-id="C001-P05"]
  .manga-dialogue[data-dialogue-id="C001-P05-D03D"].is-frameless .dialogue-text {
  white-space: pre-line;
}

@media screen and (max-width: 600px) {
  .locale-ja .manga-page[data-page-id="C001-P05"]
    .manga-dialogue[data-dialogue-id="C001-P05-D03A"].is-page-layer.is-frameless,
  .locale-ja .manga-page[data-page-id="C001-P05"]
    .manga-dialogue[data-dialogue-id="C001-P05-D03B"].is-page-layer.is-frameless,
  .locale-ja .manga-page[data-page-id="C001-P05"]
    .manga-dialogue[data-dialogue-id="C001-P05-D03C"].is-page-layer.is-frameless,
  .locale-ja .manga-page[data-page-id="C001-P05"]
    .manga-dialogue[data-dialogue-id="C001-P05-D03D"].is-page-layer.is-frameless {
    padding: 0.2cqw 0.3cqw;
    font-size: clamp(5.8px, 1.25cqw, 8.5px);
    line-height: 1.2;
  }

  .locale-ja .manga-page[data-page-id="C001-P05"]
    .manga-dialogue[data-dialogue-id="C001-P05-D03C"].is-page-layer.is-frameless {
    font-size: 5px;
    line-height: 1.05;
  }
}


.locale-ja .manga-dialogue.is-page-layer.tone-narration {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(7px, 1.28cqw, 10px);
  font-weight: 700;
  line-height: 1.28;
}

.locale-ja .dialogue-text {
  overflow-wrap: normal;
  white-space: pre-line;
  word-break: normal;
}

/* P07 promise: editorial lettering in the panel's negative space, not a balloon. */
.manga-page.has-page-master .manga-dialogue.is-page-layer.is-frameless {
  display: grid;
  width: var(--layer-width) !important;
  max-width: var(--layer-width) !important;
  height: var(--layer-height) !important;
  min-width: 0;
  min-height: 0 !important;
  padding: 0 !important;
  place-content: center;
  background: transparent;
  font-family: "PJ Dialogue";
  font-size: var(--page-dialogue-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.manga-dialogue.is-frameless .bubble-visual {
  display: none;
}

.manga-dialogue.is-frameless .dialogue-text,
.locale-ja .manga-dialogue.is-page-layer.is-frameless .dialogue-text {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.locale-ja .manga-dialogue.is-page-layer.is-frameless {
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 700;
  text-orientation: mixed;
  writing-mode: horizontal-tb;
}

/* P03 dramatic setup: white editable dialogue floating over the black intertitle. */
.manga-page[data-page-id="C001-S03-P03"]
  .manga-dialogue[data-dialogue-id="C001-S03-P03-D04"].is-page-layer.is-frameless {
  color: #fff;
  place-content: center;
  font-size: calc(var(--page-dialogue-sm) * 1.12);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-shadow: 0 0 0.25cqw rgba(0, 0, 0, 0.75);
}

.manga-page[data-page-id="C001-S03-P03"]
  .manga-dialogue[data-dialogue-id="C001-S03-P03-D04"].is-frameless .dialogue-text {
  white-space: pre-line;
}

.locale-ja .manga-page[data-page-id="C001-S03-P03"]
  .manga-dialogue[data-dialogue-id="C001-S03-P03-D04"].is-page-layer.is-frameless {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: calc(var(--page-dialogue-sm) * 1.02);
  line-height: 1.35;
  letter-spacing: 0.035em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

/* P08: Baachan's thought sits below her worried face, directly on the art. */
.manga-page[data-page-id="C001-S03-P08"]
  .manga-dialogue[data-dialogue-id="C001-S03-P08-D01"].is-page-layer.is-frameless {
  place-content: center;
  padding: 0 1.2cqw;
  color: var(--ink);
  font-family: "PJ Dialogue", "Arial Narrow", sans-serif;
  font-size: var(--page-dialogue-xs);
  font-style: italic;
  font-weight: 850;
  line-height: 1.16;
  text-align: center;
  text-shadow:
    -0.18cqw -0.18cqw 0 var(--paper),
    0.18cqw -0.18cqw 0 var(--paper),
    -0.18cqw 0.18cqw 0 var(--paper),
    0.18cqw 0.18cqw 0 var(--paper),
    0 0 0.7cqw var(--paper);
}

.manga-page[data-page-id="C001-S03-P08"]
  .manga-dialogue[data-dialogue-id="C001-S03-P08-D01"].is-frameless .dialogue-text {
  white-space: pre-line;
}

.locale-ja .manga-page[data-page-id="C001-S03-P08"]
  .manga-dialogue[data-dialogue-id="C001-S03-P08-D01"].is-page-layer.is-frameless {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: calc(var(--page-dialogue-xs) * 0.92);
  font-style: normal;
  line-height: 1.24;
  letter-spacing: 0.025em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

/* S03 P05-P06: Japanese lettering uses the negative space of each panel instead of page edges. */
.locale-ja .manga-page[data-page-id="C001-S03-P05"]
  .manga-dialogue.is-page-layer,
.locale-ja .manga-page[data-page-id="C001-S03-P06"]
  .manga-dialogue[data-dialogue-id="C001-S03-P06-D01"].is-page-layer,
.locale-ja .manga-page[data-page-id="C001-S03-P06"]
  .manga-dialogue[data-dialogue-id="C001-S03-P06-D03A"].is-page-layer,
.locale-ja .manga-page[data-page-id="C001-S03-P06"]
  .manga-dialogue[data-dialogue-id="C001-S03-P06-D03B"].is-page-layer {
  font-size: clamp(7.5px, 1.22cqw, 9.2px);
  line-height: 1.22;
}

.locale-ja .manga-page[data-page-id="C001-S03-P05"]
  .manga-dialogue.is-page-layer {
  padding: 1.3cqw 1.25cqw;
}

.locale-ja .manga-page[data-page-id="C001-S03-P05"]
  .manga-dialogue[data-dialogue-id="C001-S03-P05-D04A"].is-page-layer {
  font-size: clamp(7.5px, 1.16cqw, 8.8px);
  line-height: 1.18;
}

.locale-ja .manga-page[data-page-id="C001-S03-P05"]
  .manga-dialogue[data-dialogue-id="C001-S03-P05-D04B"].is-page-layer {
  padding: 1.35cqw 1.3cqw;
  font-size: clamp(8px, 1.14cqw, 8.6px);
  line-height: 1.18;
}

.locale-ja .manga-page[data-page-id="C001-S03-P06"]
  .manga-dialogue[data-dialogue-id="C001-S03-P06-D02"].is-page-layer {
  font-size: clamp(8px, 1.28cqw, 9.5px);
  line-height: 1.16;
}

.locale-ja .manga-page[data-page-id="C001-S03-P03"]
  .manga-dialogue[data-dialogue-id="C001-S03-P03-D03"].is-page-layer,
.locale-ja .manga-page[data-page-id="C001-S03-P03"]
  .manga-dialogue[data-dialogue-id="C001-S03-P03-D05"].is-page-layer {
  font-size: clamp(7.5px, 1.25cqw, 9.2px);
  line-height: 1.22;
}

/* P09: escalating inner monologue printed directly into each negative space. */
.manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue.is-page-layer.is-frameless {
  place-content: center;
  padding: 0 1.2cqw;
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(var(--page-dialogue-xs) * 1.18);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.015em;
  text-align: center;
  text-shadow:
    -0.15cqw -0.15cqw 0 rgba(255, 255, 255, 0.9),
    0.15cqw -0.15cqw 0 rgba(255, 255, 255, 0.9),
    -0.15cqw 0.15cqw 0 rgba(255, 255, 255, 0.9),
    0.15cqw 0.15cqw 0 rgba(255, 255, 255, 0.9),
    0 0 0.55cqw rgba(255, 255, 255, 0.82);
}

.manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue.is-page-layer.is-frameless .dialogue-text {
  white-space: pre-line;
}

.manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue[data-dialogue-id="C001-S03-P09-D02"].is-page-layer.is-frameless,
.manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue[data-dialogue-id="C001-S03-P09-D03"].is-page-layer.is-frameless {
  font-size: calc(var(--page-dialogue-xs) * 1.26);
}

.locale-ja .manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue.is-page-layer.is-frameless {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: calc(var(--page-dialogue-xs) * 1.05);
  font-weight: 900;
  line-height: 1.24;
}

.locale-ja .manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue[data-dialogue-id="C001-S03-P09-D01"].is-page-layer.is-frameless,
.locale-ja .manga-page[data-page-id="C001-S03-P09"]
  .manga-dialogue[data-dialogue-id="C001-S03-P09-D04"].is-page-layer.is-frameless {
  letter-spacing: 0.03em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

/* P10: relief and resolve read as direct inner monologue, without clouds. */
.manga-page[data-page-id="C001-S03-P10"]
  .manga-dialogue.is-page-layer.is-frameless {
  place-content: center;
  padding: 0 0.8cqw;
  color: var(--ink);
  font-family: "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(var(--page-dialogue-xs) * 1.12);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.012em;
  text-align: center;
  text-shadow:
    -0.15cqw -0.15cqw 0 rgba(255, 255, 255, 0.92),
    0.15cqw -0.15cqw 0 rgba(255, 255, 255, 0.92),
    -0.15cqw 0.15cqw 0 rgba(255, 255, 255, 0.92),
    0.15cqw 0.15cqw 0 rgba(255, 255, 255, 0.92),
    0 0 0.55cqw rgba(255, 255, 255, 0.84);
}

.manga-page[data-page-id="C001-S03-P10"]
  .manga-dialogue.is-page-layer.is-frameless .dialogue-text {
  white-space: pre-line;
}

.manga-page[data-page-id="C001-S03-P10"]
  .manga-dialogue[data-dialogue-id="C001-S03-P10-D02"].is-page-layer.is-frameless {
  padding: 0.8cqw 1.15cqw;
  color: #fff;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 0 0 0.18cqw var(--ink);
  font-family: "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: calc(var(--page-dialogue-xs) * 1.12);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-shadow: none;
}

.locale-ja .manga-page[data-page-id="C001-S03-P10"]
  .manga-dialogue.is-page-layer.is-frameless {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--page-dialogue-xs);
  font-weight: 900;
  line-height: 1.24;
}

.locale-ja .manga-page[data-page-id="C001-S03-P10"]
  .manga-dialogue[data-dialogue-id="C001-S03-P10-D01"].is-page-layer.is-frameless {
  letter-spacing: 0.03em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.locale-ja .manga-page[data-page-id="C001-S03-P10"]
  .manga-dialogue[data-dialogue-id="C001-S03-P10-D02"].is-page-layer.is-frameless {
  color: #fff;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: calc(var(--page-dialogue-xs) * 0.96);
  line-height: 1.18;
}

.locale-ja .dialogue-text ruby {
  ruby-align: center;
  ruby-overhang: none;
  ruby-position: over;
}

.locale-ja .dialogue-text rt {
  font-size: var(--ruby-size, 0.32em);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-orientation: upright;
  user-select: none;
}

.locale-ja .speaker-label {
  writing-mode: horizontal-tb;
}

/* Intro: voz en off cinematografica, no globo de conversacion. */
.manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration {
  height: auto !important;
  min-height: 0 !important;
  max-height: var(--layer-height);
  padding: var(--page-intro-caption-pad-top) var(--page-intro-caption-pad-x) var(--page-intro-caption-pad-bottom);
  place-content: center start;
  background: transparent;
  color: var(--paper);
  font-weight: 900;
  text-align: left;
}

.manga-page.has-page-master[data-page-id^="C001-INT-"]
  .manga-dialogue.is-page-layer.tone-narration.has-editorial-height {
  height: auto !important;
  min-height: 0 !important;
}

.manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration .bubble-body-svg {
  inset: auto;
  top: calc(0px - var(--page-intro-caption-bleed-y));
  left: calc(0px - var(--page-intro-caption-bleed-x));
  width: calc(100% + var(--page-intro-caption-bleed-x) + var(--page-intro-caption-bleed-x));
  height: calc(100% + var(--page-intro-caption-bleed-y) + var(--page-intro-caption-bleed-y));
}

.manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration .bubble-body-svg path {
  fill: rgba(5, 5, 5, 0.94);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: max(1.25px, var(--page-intro-caption-stroke));
}

.locale-es .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration {
  width: max-content !important;
  max-width: var(--layer-width) !important;
  font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: var(--page-intro-caption-es);
  font-style: italic;
  letter-spacing: 0.045em;
  line-height: 1.1;
}

.locale-en .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration {
  width: max-content !important;
  max-width: var(--layer-width) !important;
  font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: calc(var(--page-intro-caption-es) * 0.94);
  font-style: italic;
  letter-spacing: 0.045em;
  line-height: 1.1;
}

.locale-en .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration .dialogue-text {
  text-transform: uppercase;
}

:is(.locale-pt, .locale-it, .locale-fr, .locale-de)
  .manga-page[data-page-id^="C001-INT-"]
  .manga-dialogue.tone-narration {
  width: max-content !important;
  max-width: var(--layer-width) !important;
  font-family: "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  font-size: calc(var(--page-intro-caption-es) * 0.9);
  font-style: italic;
  letter-spacing: 0.035em;
  line-height: 1.1;
}

:is(.locale-zh-hans, .locale-ko)
  .manga-page[data-page-id^="C001-INT-"]
  .manga-dialogue.tone-narration {
  width: max-content !important;
  max-width: var(--layer-width) !important;
  font-size: calc(var(--page-intro-caption-es) * 0.82);
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.22;
}

.locale-zh-hans .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration {
  font-family: "Hiragino Sans GB", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

.locale-ko .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.locale-es .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration .dialogue-text {
  text-transform: uppercase;
}

.locale-ja .manga-page[data-page-id^="C001-INT-"] .manga-dialogue.tone-narration {
  width: max-content !important;
  max-width: var(--layer-width) !important;
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: var(--page-intro-caption-ja);
  font-weight: 900;
  line-height: 1.22;
}

.panel-sfx {
  position: absolute;
  z-index: 12;
  color: var(--ink);
  font-family: "PJ Shout", Impact, sans-serif;
  font-size: 4.2cqw;
  line-height: 0.84;
  text-shadow: 0.22cqw 0.22cqw 0 var(--paper), -0.16cqw -0.16cqw 0 var(--paper);
  transform: rotate(-8deg);
}

.panel-sfx.pos-center {
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.panel-sfx.pos-tl {
  top: 7%;
  left: 5%;
}

.panel-sfx.pos-tr {
  top: 7%;
  right: 5%;
}

.panel-sfx.pos-br {
  right: 5%;
  bottom: 7%;
}

.panel-sfx.pos-bl {
  bottom: 7%;
  left: 5%;
}

.panel-code {
  position: absolute;
  z-index: 30;
  bottom: 0.5cqw;
  left: 0.5cqw;
  display: none;
  padding: 0.35cqw 0.55cqw;
  background: var(--accent);
  color: #fff;
  font: 900 1.05cqw/1 Menlo, monospace;
}

.page-folio {
  display: none;
}

.bubble-move-handle,
.bubble-resize-handle,
.bubble-anchor-handle {
  position: absolute;
  z-index: 8;
  display: none;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  cursor: grab;
  font: 900 8px/1 Avenir, sans-serif;
  touch-action: none;
}

.bubble-anchor-handle {
  display: none;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  background: #087fe5;
  cursor: crosshair;
  transform: translate(-50%, -50%);
}

.bubble-anchor-handle::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.bubble-move-handle {
  top: -24px;
  left: 50%;
  min-width: 42px;
  transform: translateX(-50%);
}

.bubble-resize-handle {
  right: -12px;
  bottom: -12px;
  width: 22px;
  padding: 0;
  place-items: center;
  cursor: nwse-resize;
  font-size: 13px;
}

.is-editing .manga-dialogue:hover,
.is-editing .manga-dialogue.is-maker-selected {
  outline: 0.34cqw solid rgba(220, 47, 47, 0.72);
  outline-offset: 0.24cqw;
}

.is-editing .manga-dialogue.is-maker-selected {
  outline-color: var(--accent);
}

.is-editing .manga-dialogue.is-maker-selected .bubble-move-handle,
.is-editing .manga-dialogue.is-maker-selected .bubble-resize-handle,
.is-editing .manga-dialogue.is-maker-selected .bubble-anchor-handle:not([hidden]) {
  display: grid;
}

.is-editing .manga-page.is-maker-page {
  box-shadow: 0 0 0 3px var(--accent), 0 18px 55px rgba(0, 0, 0, 0.44);
}

.is-transforming-bubble,
.is-transforming-bubble * {
  cursor: grabbing !important;
  user-select: none !important;
}

.is-editing .manga-panel {
  cursor: default;
}

.is-editing .panel-code {
  display: block;
}

.is-editing .dialogue-text {
  cursor: text;
}

.is-editing .dialogue-text:focus {
  outline: 0;
  background: #fff1a6;
}

@media (max-width: 820px) {
  .manga-topbar {
    max-width: 100vw;
    grid-template-columns: auto minmax(72px, 1fr) auto;
    gap: 8px;
    padding-inline: 10px;
    overflow: hidden;
  }

  .mode-switch {
    grid-column: 2;
    grid-row: 1;
    min-height: 42px;
    justify-content: center;
    gap: 12px;
  }

  .reader-actions {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    gap: 4px;
  }

  .view-control span,
  .locale-control span,
  #exportButton,
  #printButton {
    display: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
  }

  .view-control select {
    width: 88px;
    padding: 0 22px 0 7px;
  }

  .locale-control select {
    width: 70px;
    padding: 0 20px 0 6px;
  }

  #editButton {
    width: 34px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  #editButton::before {
    content: "✎";
    font-size: 19px;
  }

  .maker-bar {
    top: 58px;
    display: grid;
    max-width: 100vw;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-inline: 10px;
  }

  .maker-selection {
    min-width: 0;
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .maker-control,
  .maker-range {
    min-width: 0;
  }

  .maker-control select,
  .maker-range input {
    width: 100%;
    min-width: 0;
  }

  .maker-buttons {
    grid-column: 3 / 5;
    grid-row: 1;
    justify-self: end;
  }

  .manga-reader {
    padding: 14px 6px 44px;
  }

  .manga-reader.mode-book {
    width: min(calc(100vw - 8px), calc((100dvh - 138px) * 1.4097));
    height: calc(100dvh - 104px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 12px 4px 26px;
    direction: rtl;
  }

  body.is-book-view .manga-reader.mode-book::before {
    inset: 8px 0 20px;
  }

  body.is-book-view .manga-reader.mode-book::after {
    top: 12px;
    bottom: 26px;
    width: 10px;
  }

  .book-nav {
    width: 100%;
    grid-template-columns: 88px minmax(130px, 1fr) 88px;
    gap: 5px;
    padding-inline: 5px;
  }

  .book-nav button {
    font-size: 10px;
  }

  .book-nav span {
    font-size: 10px;
  }

  .page-shell {
    width: 100%;
  }

  .scene-end-title {
    min-height: 120px;
  }

  .manga-page {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
  }

  .editorial-page {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
  }
}

/* V205: in compact book view the page and every lettering layer must share the
   same scale. Pixel floors made CJK text stop shrinking while its balloon kept
   shrinking, so the book now uses page-relative units all the way down. */
@media screen and (max-width: 820px) {
  .locale-ja .manga-reader.mode-book .manga-dialogue.is-page-layer {
    font-size: 1.75cqw !important;
  }

  .locale-ja .manga-reader.mode-book .manga-dialogue.is-page-layer.size-sm {
    font-size: 1.58cqw !important;
  }

  .locale-ja .manga-reader.mode-book .manga-dialogue.is-page-layer.size-xs,
  .locale-ja .manga-reader.mode-book .manga-dialogue.is-page-layer.is-frameless {
    font-size: 1.3cqw !important;
  }

  .locale-ja .manga-reader.mode-book .manga-dialogue.is-page-layer.tone-montage {
    font-size: 1.42cqw !important;
  }

  .locale-ja .manga-reader.mode-book .manga-dialogue.is-page-layer.tone-narration {
    font-size: 1.28cqw !important;
  }

  .locale-ja .manga-reader.mode-book
    .manga-page[data-page-id="C001-P07"]
    .manga-dialogue[data-dialogue-id="C001-P07-D01"].is-page-layer,
  .locale-ja .manga-reader.mode-book
    .manga-page[data-page-id="C001-P07"]
    .manga-dialogue[data-dialogue-id="C001-P07-D02"].is-page-layer,
  .locale-ja .manga-reader.mode-book
    .manga-page[data-page-id="C001-P05"]
    .manga-dialogue:is(
      [data-dialogue-id="C001-P05-D03B"],
      [data-dialogue-id="C001-P05-D03D"]
    ).is-page-layer {
    font-size: 1.05cqw !important;
  }

  .locale-ja .manga-reader.mode-book
    .manga-page[data-page-id="C001-P07"]
    .manga-dialogue:is(
      [data-dialogue-id="C001-P07-D03"],
      [data-dialogue-id="C001-P07-D04"]
    ).is-page-layer {
    font-size: 0.94cqw !important;
  }

  .locale-ja .manga-reader.mode-book
    .manga-page[data-page-id="C001-P05"]
    .manga-dialogue:is(
      [data-dialogue-id="C001-P05-D03A"],
      [data-dialogue-id="C001-P05-D03C"]
    ).is-page-layer {
    font-size: 0.9cqw !important;
  }

  .locale-ja .manga-reader.mode-book
    .manga-page:is(
      [data-page-id="C001-S03-P05"],
      [data-page-id="C001-S03-P06"]
    )
    .manga-dialogue.is-page-layer {
    font-size: 1.22cqw !important;
  }

  .locale-zh-hant .manga-reader.mode-book .manga-dialogue.is-page-layer {
    font-size: 1.62cqw !important;
  }

  .locale-zh-hant .manga-reader.mode-book .manga-dialogue.is-page-layer.size-sm {
    font-size: 1.48cqw !important;
  }

  .locale-zh-hant .manga-reader.mode-book .manga-dialogue.is-page-layer.size-xs,
  .locale-zh-hant .manga-reader.mode-book .manga-dialogue.is-page-layer.is-frameless {
    font-size: 1.4cqw !important;
  }
}

@media print {
  @page {
    size: 182mm 257mm;
    margin: 0;
  }

  html,
  body {
    width: 182mm;
    margin: 0;
    background: #fff;
  }

  body {
    min-width: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.is-book-view {
    height: auto;
    overflow: visible;
    background: #fff;
  }

  body.is-book-view .manga-reader.mode-book::before,
  body.is-book-view .manga-reader.mode-book::after {
    display: none;
  }

  .manga-topbar,
  .maker-bar,
  .book-nav {
    display: none;
  }

  .bubble-move-handle,
  .bubble-resize-handle,
  .bubble-anchor-handle {
    display: none !important;
  }

  .is-editing .manga-dialogue,
  .is-editing .manga-page {
    outline: 0 !important;
    box-shadow: none;
  }

  .manga-reader,
  .manga-reader.mode-book,
  .manga-reader.mode-cascade {
    display: block;
    width: 182mm;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    direction: ltr;
  }

  .page-shell,
  .manga-reader.mode-book .page-shell {
    display: block !important;
    width: 182mm;
    height: 257mm;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }

  .manga-page {
    width: 182mm;
    height: 257mm;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .editorial-page {
    width: 182mm;
    height: 257mm;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .editorial-episode-spread--right .editorial-episode-spread-graphics {
    display: none;
  }

  .scene-end-title,
  .manga-reader.mode-book .scene-end-title {
    width: 182mm;
    height: 257mm;
    min-height: 257mm;
    aspect-ratio: auto;
    border: 0;
    break-after: auto;
    page-break-after: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .book-turn-layer {
    display: none !important;
  }
}


/* Public V205 release shell -------------------------------------------- */
.is-public-release .release-admin-control,
.is-public-release .maker-bar {
  display: none !important;
}

.is-public-release .manga-topbar {
  grid-template-columns: minmax(150px, 1fr) auto minmax(390px, 1fr);
  padding-top: max(8px, env(safe-area-inset-top));
}

.is-public-release .mode-switch a:first-child {
  white-space: nowrap;
}

.reader-zoom-controls {
  display: inline-flex;
  height: 34px;
  align-items: stretch;
  border: 1px solid #4b4b4b;
  background: #181818;
}

.reader-zoom-controls button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-inline-end: 1px solid #3e3e3e;
  background: transparent;
  color: #f5f5f0;
  cursor: pointer;
  font: 900 17px/1 system-ui, sans-serif;
}

.reader-zoom-controls button:last-child {
  border-inline-end: 0;
}

.reader-zoom-controls button:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
}

.reader-zoom-controls button:disabled {
  cursor: default;
  opacity: 0.34;
}

.reader-zoom-controls output {
  display: grid;
  width: 52px;
  place-items: center;
  color: #f5f5f0;
  font: 800 10px/1 system-ui, sans-serif;
  letter-spacing: 0.025em;
}

body.is-reader-zoomed {
  height: auto !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}

/* The stage reserves the zoomed reader's full scrollable area. The reader
   keeps a frozen base layout and uses layout zoom (not a compositor
   transform), so art, SVG balloons and text stay aligned while glyphs are
   rasterized again at the current screen resolution. */
.reader-zoom-stage {
  position: relative;
  width: 100%;
  min-width: 0;
}

body.is-reader-zoomed .manga-reader {
  max-width: none;
  margin-inline: 0;
  cursor: grab;
}

body.is-reader-panning,
body.is-reader-panning * {
  cursor: grabbing !important;
  user-select: none !important;
}

body.is-book-preparing .book-nav,
body.is-book-preparing .manga-reader.mode-book {
  cursor: progress;
}

@media (max-width: 980px) {
  .is-public-release .manga-topbar {
    grid-template-columns: minmax(130px, 1fr) auto minmax(330px, 1fr);
    gap: 10px;
  }

  .reader-zoom-controls output {
    display: none;
  }
}

@media (max-width: 820px) {
  .is-public-release .manga-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .is-public-release .mode-switch {
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  .is-public-release .mode-switch a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .is-public-release .mode-switch a.is-active,
  .reader-zoom-controls {
    display: none;
  }
}
