@font-face {
  font-family: Bangers;
  src: url('assets/fonts/bangers.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: Comic;
  src: url('assets/fonts/comic-neue-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Comic;
  src: url('assets/fonts/comic-neue-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url('assets/fonts/dm-sans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --desk: #191b20;
  --desk-deep: #111216;
  --paper: #f1e8d2;
  --paper-light: #fff9e8;
  --ink: #171b24;
  --signal: #f14a35;
  --cyan: #82e2ef;
  --muted: #a9a7a0;
  --display: Bangers, Impact, sans-serif;
  --letter: Comic, 'Comic Sans MS', sans-serif;
  --ui: DM, Arial, sans-serif;
  --page-w: min(500px, calc((100dvh - 217px) / 1.46), calc((100vw - 170px) / 2));
  --page-h: calc(var(--page-w) * 1.46);
}
* {
  box-sizing: border-box;
}
html {
  height: 100%;
  background: var(--desk);
}
body {
  margin: 0;
  font-family: var(--ui);
  color: var(--paper);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
  border-radius: 0;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
button:focus:not(:focus-visible) {
  outline: 0;
}
svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
::selection {
  background: var(--signal);
  color: white;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 500;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.reader-app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 30%, #34363c 0, #24262c 35%, var(--desk) 74%);
  isolation: isolate;
}
.reader-app::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.1;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}
.reader-bar {
  height: 75px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 24px;
  border-bottom: 1px solid #f1e8d218;
  position: relative;
  z-index: 5;
}
.reader-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}
.reader-identity h1 {
  font: 30px/0.92 var(--display);
  letter-spacing: 0.035em;
  color: var(--paper-light);
}
.reader-identity > span {
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  max-width: 130px;
  color: var(--muted);
}
.reader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  padding: 0 11px;
  height: 44px;
  font-size: 11px;
  white-space: nowrap;
  color: #dedbd3;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.tool-button:hover {
  border-color: #f1e8d235;
  background: #f1e8d208;
  color: white;
}
.tool-button[aria-pressed='true'] {
  color: var(--cyan);
}
.tool-button[aria-pressed='true'] svg {
  fill: #82e2ef26;
}
.fullscreen-button {
  padding: 0;
  width: 44px;
}
.book-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 20px 38px 30px;
  perspective: 2400px;
  outline: 0;
}
.book-frame {
  position: relative;
  z-index: 2;
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  transform: rotate(-0.35deg);
  filter: drop-shadow(0 25px 30px #0008);
  transition: width 0.25s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.book-frame::before {
  content: '';
  position: absolute;
  inset: 5px -5px -7px 3px;
  background: repeating-linear-gradient(0deg, #cdc4ae 0, #cdc4ae 1px, #e7dcc4 1px, #e7dcc4 3px);
  border: 1px solid #77715f;
  z-index: -1;
  box-shadow: 3px 5px 0 #0003;
}
.book-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 1px 1px #0006;
  pointer-events: none;
  z-index: 6;
}
.book-frame.is-cover,
.book-frame.is-single {
  width: var(--page-w);
}
.book-frame.is-cover {
  transform: rotate(-2deg);
}
.book-frame.is-cover::before {
  inset: 5px -7px -6px 3px;
}
.book-pages {
  display: flex;
  width: 100%;
  height: 100%;
  background: var(--paper);
  overflow: hidden;
  position: relative;
}
.paper-page {
  position: relative;
  flex: 0 0 var(--page-w);
  width: var(--page-w);
  height: var(--page-h);
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  padding: 15px 17px 13px;
  display: flex;
  flex-direction: column;
  user-select: text;
  -webkit-user-select: text;
}
.paper-page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.3'/%3E%3C/svg%3E");
}
.book-pages > .paper-page:first-child:not(:last-child) {
  box-shadow: inset -16px 0 20px -17px #241f15a6;
}
.book-pages > .paper-page:last-child:not(:first-child) {
  box-shadow: inset 16px 0 20px -17px #241f159c;
}
.book-spine {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 12;
  background: linear-gradient(
    90deg,
    transparent,
    #221b1438 43%,
    #1c15094d 50%,
    #ffffff13 55%,
    transparent
  );
  pointer-events: none;
}
.is-cover .book-spine,
.is-single .book-spine {
  display: none;
}
.desk-note {
  position: absolute;
  left: 40px;
  bottom: 35px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  opacity: 0.16;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.desk-note > span {
  font: 27px var(--display);
  letter-spacing: 0.06em;
}
.desk-note > small {
  font-size: 8px;
  letter-spacing: 0.2em;
}
.reading-hint {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #aaa8a0;
  position: absolute;
  bottom: 8px;
  text-align: center;
}
.reader-bottom {
  height: 90px;
  min-height: 90px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 42px;
  position: relative;
  border-top: 1px solid #f1e8d218;
  background: #11121685;
}
.book-status > p {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c6c2b8;
  line-height: 1.5;
}
.book-status > span {
  font-size: 10px;
  color: #99968f;
  display: block;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.page-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 44px;
  min-width: 132px;
  border: 1px solid #d6cbb43d;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.page-button:hover:enabled {
  border-color: var(--paper);
  background: #f1e8d210;
}
.page-button:active:enabled {
  transform: translateY(1px);
}
.page-button:disabled {
  opacity: 0.28;
}
.next-button {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.next-button:hover:enabled {
  background: white;
  border-color: white;
}
.reading-meta {
  text-align: right;
}
.reading-meta > span {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #8e8c87;
}
.reading-meta > button {
  display: block;
  margin-left: auto;
  border: 0;
  border-bottom: 1px solid #f1e8d280;
  background: transparent;
  font-size: 10px;
  padding: 5px 0;
  color: var(--paper);
  margin-bottom: 5px;
  min-height: 30px;
}
.book-progress {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: #f1e8d20d;
  left: 0;
  right: 0;
}
.book-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--signal);
  transition: width 0.3s;
}
.page-running-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
  margin-bottom: 7px;
  border-bottom: 1px solid #171b2435;
  padding-bottom: 6px;
  text-transform: uppercase;
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.page-running-head > span:first-child {
  font-weight: 800;
}
.page-running-head > span:last-child {
  font-size: 6px;
  white-space: nowrap;
}
.page-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  min-height: 10px;
  font-size: 6px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.page-number > span:last-child {
  font-weight: 700;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}
.panel-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.1fr 1fr;
  gap: 8px;
}
.layout-wide-top .comic-panel:first-child {
  grid-column: 1/-1;
}
.layout-wide-bottom .comic-panel:last-child {
  grid-column: 1/-1;
}
.layout-stack {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}
.layout-stack .comic-panel {
  grid-column: 1;
}
.layout-diagonal {
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 0.9fr 1.15fr;
}
.layout-diagonal .comic-panel:last-child {
  grid-column: 1/-1;
}
.comic-panel {
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #c6bca4;
  border: 2px solid var(--ink);
  isolation: isolate;
}
.comic-panel > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: -2;
}
.comic-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px #0002;
  z-index: 5;
  pointer-events: none;
}
.panel-lettering {
  position: absolute;
  inset: 9px 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 3;
}
.panel-caption {
  font-family: var(--letter);
  font-weight: 700;
  font-size: clamp(10px, calc(var(--page-w) * 0.026), 14px);
  line-height: 1.15;
  letter-spacing: 0.005em;
  background: #f9dc75;
  box-shadow: 2px 2px 0 #171b2450;
  border: 1.5px solid var(--ink);
  padding: 5px 7px;
  max-width: 90%;
  align-self: flex-start;
}
.panel-caption .location-line {
  display: block;
  font: 700 0.65em var(--ui);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.dialogue-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 9px;
  min-height: 0;
}
.speech-bubble {
  font-family: var(--letter);
  font-weight: 700;
  font-size: clamp(11px, calc(var(--page-w) * 0.031), 16px);
  line-height: 1.12;
  letter-spacing: 0;
  background: var(--paper-light);
  color: #151923;
  border: 1.7px solid var(--ink);
  border-radius: 46% 43% 45% 41% / 36% 41% 35% 40%;
  padding: 8px 12px;
  position: relative;
  max-width: 94%;
  width: max-content;
  box-shadow: 1px 2px 0 #171b2450;
  isolation: isolate;
}
.speech-bubble,
.panel-caption {
  pointer-events: auto;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 14px;
  left: 18px;
  bottom: -10px;
  clip-path: polygon(0 0, 100% 0, 10% 100%);
  background: var(--paper-light);
  filter: drop-shadow(1px 1px 0 var(--ink));
  z-index: -1;
  transform: rotate(-14deg);
}
.speech-bubble:nth-child(even) {
  align-self: flex-end;
}
.speech-bubble:nth-child(even)::after {
  left: auto;
  right: 18px;
  transform: scaleX(-1) rotate(-14deg);
}
.speech-bubble > small {
  display: block;
  font-family: var(--ui);
  font-weight: 800;
  letter-spacing: 0.09em;
  font-size: 0.46em;
  line-height: 1.2;
  margin-bottom: 3px;
  text-transform: uppercase;
  color: #6b5540;
}
.speech-bubble.is-radio {
  border-radius: 2px;
  border-style: dashed;
  background: #ddf5f7;
}
.speech-bubble.is-radio::after {
  background: #ddf5f7;
  clip-path: polygon(0 0, 100% 0, 55% 45%, 90% 45%, 15% 100%, 30% 35%);
}
.speech-bubble.no-tail::after {
  display: none;
}
.speech-bubble.tail-right::after {
  left: auto;
  right: 18px;
  transform: scaleX(-1) rotate(-14deg);
}
.speech-bubble.tail-left::after {
  right: auto;
  left: 18px;
  transform: rotate(-14deg);
}
.speech-bubble.position-top-right {
  align-self: flex-end;
}
.speech-bubble.position-bottom-left {
  align-self: flex-start;
  margin-top: auto;
}
.speech-bubble.position-bottom-right {
  align-self: flex-end;
  margin-top: auto;
}
.speech-bubble.position-top-left {
  align-self: flex-start;
}
.speech-bubble.is-thought {
  border-style: dotted;
}
.sound-effect {
  position: absolute;
  bottom: 9px;
  right: 7px;
  font: clamp(28px, calc(var(--page-w) * 0.12), 58px) / 0.9 var(--display);
  color: #ffcf43;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-10deg);
  z-index: 2;
  pointer-events: none;
  max-width: 94%;
  overflow-wrap: anywhere;
}
.comic-panel.has-dialogue .sound-effect {
  bottom: 36%;
  right: 8px;
  font-size: clamp(27px, calc(var(--page-w) * 0.1), 50px);
}
.comic-panel.has-many-balloons .speech-bubble {
  font-size: clamp(10px, calc(var(--page-w) * 0.028), 14px);
  padding: 6px 10px;
}
.comic-panel.has-many-balloons .dialogue-track {
  gap: 6px;
}
.cover-page {
  padding: 0;
  isolation: isolate;
  background: #17292d;
  box-shadow: inset 9px 0 12px -8px #000c;
}
.cover-page > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}
.cover-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #10151c50 0,
    transparent 40%,
    transparent 58%,
    #0d121bd4 100%
  );
}
.cover-edition {
  position: absolute;
  top: 15px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff7df;
  text-transform: uppercase;
}
.cover-edition > span {
  background: var(--ink);
  padding: 5px 7px;
}
.cover-title {
  font: clamp(60px, calc(var(--page-w) * 0.24), 125px) / 0.77 var(--display);
  letter-spacing: 0.015em;
  color: #fff0c4;
  text-shadow:
    4px 5px 0 #151c28,
    -1px -1px 0 #151c28,
    1px -1px 0 #151c28,
    -1px 1px 0 #151c28;
  position: absolute;
  top: 8%;
  left: 6%;
  right: 4%;
  transform: rotate(-3deg);
}
.cover-title > span {
  display: block;
  color: #f44e3b;
  margin-top: 10px;
  -webkit-text-stroke: 1px #171b24;
  paint-order: stroke fill;
}
.cover-tag {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 8%;
  text-align: center;
}
.cover-tag > p {
  font: clamp(18px, calc(var(--page-w) * 0.065), 33px) / 1 var(--display);
  letter-spacing: 0.06em;
  color: #fff7df;
  text-shadow: 2px 2px 0 var(--ink);
}
.cover-tag > h3 {
  display: inline-block;
  margin-top: 10px;
  background: var(--paper-light);
  color: var(--ink);
  font: clamp(17px, calc(var(--page-w) * 0.06), 32px) / 1 var(--display);
  padding: 8px 13px;
  transform: rotate(-2deg);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--signal);
  letter-spacing: 0.05em;
}
.cover-bottom {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #fff6de;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.cover-barcode {
  background: #fff9e8;
  padding: 4px 6px;
  width: 43px;
  height: 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cover-barcode::before {
  content: '';
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    #171b24 0,
    #171b24 1px,
    transparent 1px,
    transparent 3px,
    #171b24 3px,
    #171b24 5px,
    transparent 5px,
    transparent 6px
  );
}
.cover-barcode::after {
  content: 'BOOK 01';
  font-size: 4px;
  letter-spacing: 0.13em;
  color: var(--ink);
  text-align: center;
}
.intro-page,
.end-page {
  padding: 22px 25px;
}
.intro-kicker {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #756b58;
  padding-bottom: 12px;
  border-bottom: 1px solid #171b2440;
}
.intro-art {
  margin: 16px 0 15px;
  width: 100%;
  height: 31%;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid var(--ink);
}
.intro-page h2 {
  font: clamp(28px, calc(var(--page-w) * 0.09), 46px) / 0.96 var(--display);
  color: var(--ink);
  letter-spacing: 0.01em;
  max-width: 90%;
}
.intro-description {
  font-family: var(--letter);
  font-size: clamp(12px, calc(var(--page-w) * 0.032), 17px);
  line-height: 1.25;
  margin-top: 15px;
}
.powers-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #171b2440;
}
.power-line {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  font-family: var(--letter);
  font-size: clamp(11px, calc(var(--page-w) * 0.029), 15px);
  line-height: 1.2;
}
.power-line > strong {
  font-family: var(--display);
  font-size: 1.5em;
  line-height: 1;
  color: var(--signal);
}
.intro-fineprint {
  font-size: 6px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-top: auto;
  padding-top: 14px;
  color: #746c5f;
}
.end-page {
  display: flex;
  justify-content: center;
  text-align: center;
  background: #f1dfb9;
}
.end-page .intro-kicker {
  border: 0;
  padding: 0;
  margin-bottom: 20px;
}
.end-page h2 {
  font: clamp(50px, calc(var(--page-w) * 0.19), 100px) / 0.9 var(--display);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.end-page h2 > span {
  color: var(--signal);
  display: block;
}
.end-page .ending-note {
  font: clamp(14px, calc(var(--page-w) * 0.038), 19px) / 1.35 var(--letter);
  margin: 26px auto 0;
  max-width: 90%;
}
.end-page .end-rule {
  width: 50px;
  height: 3px;
  background: var(--signal);
  margin: 25px auto 20px;
}
.end-page .return-note {
  font-size: 8px;
  letter-spacing: 0.13em;
  line-height: 1.7;
}
.back-cover .cover-title {
  font-size: clamp(45px, calc(var(--page-w) * 0.18), 90px);
  top: 7%;
  color: var(--paper-light);
}
.back-cover > img {
  filter: brightness(0.45) saturate(0.5);
  object-position: 70% center;
}
.back-blurb {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 40%;
  font: clamp(14px, calc(var(--page-w) * 0.044), 22px) / 1.4 var(--letter);
  color: var(--paper-light);
  text-align: center;
}
.back-blurb > p + p {
  margin-top: 18px;
}
.back-edition {
  position: absolute;
  bottom: 10%;
  left: 10%;
  right: 10%;
  text-align: center;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 2;
  color: var(--paper-light);
}
.loading-cover {
  width: var(--page-w);
  height: var(--page-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--signal);
  color: var(--ink);
  gap: 30px;
}
.loading-cover > p {
  font: calc(var(--page-w) * 0.22) / 0.8 var(--display);
  transform: rotate(-4deg);
}
.loading-cover > span {
  font-size: 9px;
  letter-spacing: 0.16em;
}
.stage-error {
  text-align: center;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: var(--desk);
  gap: 18px;
}
.stage-error h2 {
  font: 55px var(--display);
}
.stage-error p {
  font-size: 14px;
  color: var(--muted);
}
.stage-error button {
  padding: 12px 24px;
  min-height: 44px;
  background: var(--paper);
  border: 0;
  color: var(--ink);
  margin-top: 10px;
}
.turn-leaf {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 30;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}
.turn-leaf.is-single-leaf {
  width: 100%;
}
.turn-leaf.is-backward {
  right: auto;
  left: 0;
  transform-origin: right center;
}
.turn-leaf > .paper-page {
  width: 100%;
  height: 100%;
  flex: none;
  position: absolute;
  inset: 0;
  box-shadow: -15px 0 35px #0003;
}
.turn-leaf::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0000, #0005);
  opacity: 0.7;
  z-index: 12;
}
.is-turning .book-pages {
  pointer-events: none;
}
.book-dialog {
  border: 1px solid #e4d8bd45;
  background: var(--paper);
  color: var(--ink);
  padding: 0;
  max-height: calc(100dvh - 50px);
  max-width: calc(100vw - 32px);
  box-shadow: 0 30px 100px #0009;
}
.book-dialog::backdrop {
  background: #07090dd4;
  backdrop-filter: blur(6px);
}
.dialog-header {
  padding: 23px 27px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #171b2433;
  position: relative;
  background: var(--paper);
  z-index: 30;
}
.dialog-header p {
  font-size: 8px;
  letter-spacing: 0.13em;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 7px;
  color: #726657;
}
.dialog-header h2 {
  font: 38px/1 var(--display);
  letter-spacing: 0.04em;
}
.close-button,
.icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border: 1px solid #171b2440;
}
.close-button:hover,
.icon-button:hover {
  background: #171b240d;
}
.close-button svg {
  width: 22px;
  height: 22px;
}
.contents-dialog {
  width: 560px;
}
.chapter-list {
  padding: 10px 27px 14px;
}
.chapter-entry {
  display: grid;
  width: 100%;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 19px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #171b242b;
  text-align: left;
  color: var(--ink);
}
.chapter-entry:hover .chapter-name {
  color: #bd2e1b;
}
.chapter-numeral {
  font: 35px var(--display);
  color: #8f8370;
}
.chapter-name {
  font: 26px/1 var(--display);
  letter-spacing: 0.025em;
  display: block;
}
.chapter-summary {
  font-size: 10px;
  line-height: 1.4;
  display: block;
  margin-top: 7px;
  color: #736b5e;
  max-width: 340px;
}
.chapter-range {
  font-size: 8px;
  align-self: start;
  padding-top: 6px;
  color: #736b5e;
  white-space: nowrap;
}
.chapter-entry.is-current .chapter-numeral {
  color: var(--signal);
}
.contents-bottom {
  padding: 6px 27px 20px;
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
}
.plain-button {
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  line-height: 1.4;
  min-height: 32px;
}
.plain-button:hover {
  color: #b82c1a;
}
.contents-note {
  font-size: 9px;
  color: #776d5c;
  line-height: 1.6;
  padding: 0 27px 24px;
}
.zoom-dialog {
  width: 1040px;
  max-height: calc(100dvh - 32px);
  height: calc(100dvh - 32px);
  background: #25282e;
  color: var(--paper);
  overflow: hidden;
}
.zoom-dialog .dialog-header {
  color: var(--paper);
  background: #1b1d22;
  border-bottom-color: #f1e8d224;
  padding: 13px 20px;
}
.zoom-dialog .dialog-header h2 {
  font-size: 25px;
}
.zoom-dialog .dialog-header p {
  color: #a39e93;
  font-size: 7px;
  margin-bottom: 3px;
}
.zoom-dialog .close-button,
.zoom-dialog .icon-button {
  border-color: #f1e8d23d;
}
.zoom-tools {
  display: flex;
  gap: 8px;
}
.zoom-scroll {
  height: calc(100% - 130px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 30px 20px;
}
.zoom-page-holder {
  --page-w: 740px;
  --page-h: calc(var(--page-w) * 1.46);
  width: 740px;
  margin: auto;
  box-shadow: 0 15px 35px #0006;
}
.zoom-page-holder > .paper-page {
  width: 740px;
  height: calc(740px * 1.46);
}
.zoom-page-holder .speech-bubble {
  font-size: 23px;
  padding: 12px 17px;
  border-width: 2px;
}
.zoom-page-holder .panel-lettering {
  inset: 15px;
  gap: 9px;
}
.zoom-page-holder .panel-caption {
  font-size: 20px;
  padding: 7px 11px;
}
.zoom-page-holder .has-many-balloons .speech-bubble {
  font-size: 20px;
  padding: 9px 14px;
}
.zoom-page-holder .page-running-head {
  font-size: 10px;
  min-height: 32px;
  padding-bottom: 9px;
  margin-bottom: 12px;
}
.zoom-page-holder .page-running-head > span:last-child {
  font-size: 9px;
}
.zoom-page-holder .page-number {
  font-size: 9px;
  margin-top: 12px;
}
.zoom-page-holder .page-number > span:last-child {
  font-size: 12px;
}
.zoom-page-holder .panel-grid {
  gap: 12px;
}
.zoom-page-holder .paper-page {
  padding: 24px;
}
.zoom-page-holder .cover-page {
  padding: 0;
}
.zoom-page-holder .sound-effect {
  font-size: 75px;
}
.zoom-page-holder .intro-kicker {
  font-size: 11px;
}
.zoom-page-holder .intro-description {
  font-size: 23px;
}
.zoom-page-holder .power-line {
  font-size: 21px;
  grid-template-columns: 80px 1fr;
}
.zoom-page-holder .intro-fineprint {
  font-size: 10px;
}
.zoom-bottom {
  height: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1b1d22;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #f1e8d224;
}
.zoom-bottom > span {
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #9b978d;
}
.zoom-bottom .plain-button {
  color: var(--paper);
  font-size: 9px;
  white-space: nowrap;
}
.zoom-bottom .plain-button[aria-pressed='true'] {
  color: var(--cyan);
}
.zoom-page-holder.full-panels {
  width: min(740px, 100%);
}
.zoom-page-holder.full-panels > .paper-page {
  width: 100%;
  height: auto;
  min-height: 0;
}
.zoom-page-holder.full-panels .panel-grid {
  display: block;
}
.zoom-page-holder.full-panels .comic-panel {
  aspect-ratio: 1;
  margin-bottom: 16px;
}
.zoom-page-holder.full-panels .comic-panel > img {
  object-fit: contain;
  object-position: center;
}
.zoom-page-holder.full-panels .comic-panel:last-child {
  margin-bottom: 0;
}
.text-dialog {
  width: 760px;
}
.text-content {
  padding: 24px 32px 38px;
  font: 18px/1.5 var(--letter);
}
.text-chapter + .text-chapter {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}
.text-chapter > h3 {
  font: 34px/1 var(--display);
  margin-bottom: 20px;
}
.text-page-label {
  font: 700 9px var(--ui);
  letter-spacing: 0.1em;
  color: #8e432e;
  margin: 24px 0 16px;
  text-transform: uppercase;
}
.text-panel + .text-panel {
  margin-top: 26px;
}
.text-scene {
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: #6f6554;
  border-left: 2px solid #b8ab91;
  padding-left: 12px;
  margin-bottom: 12px;
}
.text-caption {
  font-size: 16px;
  margin-bottom: 12px;
  color: #5d4b31;
}
.text-balloon {
  margin-top: 10px;
}
.text-balloon > strong {
  font: 800 9px var(--ui);
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 3px;
  color: #a13e28;
}
.text-sfx {
  font: 26px var(--display);
  margin-top: 12px;
}
.reader-toast {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translate(-50%, 12px);
  padding: 13px 21px;
  border: 1px solid #c3d6da;
  background: #def6f5;
  color: var(--ink);
  z-index: 200;
  font-size: 12px;
  max-width: calc(100% - 30px);
  width: max-content;
  box-shadow: 0 8px 30px #0006;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s,
    transform 0.15s;
  pointer-events: none;
}
.reader-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.noscript-message {
  position: fixed;
  inset: 0;
  background: var(--desk);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  z-index: 500;
  line-height: 1.6;
}
.book-dialog[open] {
  animation: dialog-in 0.18s ease-out;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .reader-bar {
    padding-inline: 25px;
  }
  .reader-identity {
    gap: 16px;
  }
  .reader-identity > span {
    font-size: 8px;
    max-width: 100px;
  }
  .tool-button {
    padding-inline: 8px;
    font-size: 10px;
    gap: 6px;
  }
  .reader-actions {
    gap: 2px;
  }
  .reader-bottom {
    padding-inline: 25px;
    gap: 20px;
  }
  .page-button {
    min-width: 115px;
  }
  .desk-note {
    left: 22px;
  }
  .reading-meta > span {
    font-size: 7px;
  }
  .book-status > p {
    font-size: 8px;
  }
}
@media (max-width: 979px) {
  :root {
    --page-w: min(520px, calc((100dvh - 195px) / 1.46), calc(100vw - 50px));
  }
  .book-frame {
    width: var(--page-w);
  }
  .book-frame .book-spine {
    display: none;
  }
  .reader-identity > span {
    display: none;
  }
  .reader-identity h1 {
    font-size: 29px;
  }
  .reader-bar {
    height: 66px;
  }
  .tool-button {
    padding-inline: 9px;
  }
  .tool-button > span {
    display: none;
  }
  .reader-bottom {
    height: 84px;
    min-height: 84px;
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
  .reading-meta {
    position: absolute;
    right: 25px;
    top: 8px;
  }
  .reading-meta > span {
    display: none;
  }
  .reading-meta > button {
    margin: 0;
    min-height: 24px;
    font-size: 8px;
  }
  .book-status {
    align-self: center;
  }
  .book-status > p {
    font-size: 8px;
    max-width: 150px;
  }
  .book-status > span {
    font-size: 9px;
  }
  .book-stage {
    padding: 17px 24px 26px;
  }
  .desk-note {
    display: none;
  }
  .reading-hint {
    font-size: 7px;
    bottom: 7px;
  }
  .page-button {
    min-width: 103px;
    gap: 10px;
    height: 43px;
    font-size: 11px;
  }
  .page-controls {
    gap: 8px;
  }
  .speech-bubble {
    font-size: clamp(12px, calc(var(--page-w) * 0.032), 17px);
  }
  .page-running-head {
    font-size: 7px;
  }
  .page-number {
    font-size: 7px;
  }
  .page-running-head > span:last-child {
    font-size: 6px;
  }
  .panel-grid {
    gap: 8px;
  }
  .book-frame {
    transform: rotate(-0.25deg);
  }
  .book-frame.is-cover {
    transform: rotate(-1.5deg);
  }
}
@media (max-width: 600px) {
  :root {
    --page-w: min(520px, calc((100dvh - 191px) / 1.46), calc(100vw - 34px));
  }
  .reader-bar {
    padding: 0 14px;
    height: 62px;
    gap: 8px;
  }
  .reader-identity h1 {
    font-size: 23px;
    letter-spacing: 0.02em;
    max-width: 110px;
  }
  .tool-button {
    height: 44px;
    width: 37px;
    padding: 0;
  }
  .reader-actions {
    gap: 0;
  }
  .tool-button svg {
    width: 20px;
    height: 20px;
  }
  .fullscreen-button {
    display: none;
  }
  .reader-bottom {
    padding: 0 15px;
    height: 85px;
    min-height: 85px;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .book-status > p {
    font-size: 7px;
    max-width: 113px;
    letter-spacing: 0.07em;
  }
  .book-status > span {
    font-size: 8px;
    margin-top: 5px;
  }
  .page-controls {
    gap: 5px;
  }
  .page-button {
    min-width: 0;
    width: 74px;
    gap: 3px;
    font-size: 10px;
    height: 42px;
  }
  .next-button {
    width: 93px;
  }
  .page-button svg {
    width: 17px;
    height: 17px;
  }
  .reading-meta {
    right: 15px;
    top: 3px;
  }
  .reading-meta > button {
    font-size: 7px;
    min-height: 20px;
    padding: 3px 0;
  }
  .book-stage {
    padding: 16px 17px 26px;
  }
  .reading-hint {
    font-size: 6px;
    letter-spacing: 0.1em;
    bottom: 8px;
  }
  .paper-page {
    padding: 11px 11px 10px;
  }
  .panel-grid {
    gap: 6px;
  }
  .page-running-head {
    font-size: 6px;
    min-height: 18px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    gap: 8px;
  }
  .page-running-head > span:last-child {
    font-size: 5px;
  }
  .page-number {
    font-size: 5px;
    margin-top: 6px;
    min-height: 9px;
  }
  .page-number > span:last-child {
    font-size: 7px;
  }
  .comic-panel {
    border-width: 1.5px;
  }
  .panel-lettering {
    inset: 7px 6px 9px;
    gap: 5px;
  }
  .speech-bubble {
    font-size: clamp(11px, calc(var(--page-w) * 0.035), 15px);
    padding: 6px 8px;
    border-width: 1.5px;
    line-height: 1.08;
    max-width: 98%;
  }
  .speech-bubble::after {
    width: 10px;
    height: 11px;
    bottom: -7px;
  }
  .speech-bubble > small {
    font-size: 0.43em;
    margin-bottom: 2px;
  }
  .comic-panel.has-many-balloons .speech-bubble {
    font-size: clamp(10px, calc(var(--page-w) * 0.032), 13px);
    padding: 5px 7px;
  }
  .panel-caption {
    font-size: clamp(9px, calc(var(--page-w) * 0.029), 13px);
    padding: 4px 5px;
    max-width: 98%;
    line-height: 1.08;
  }
  .panel-caption .location-line {
    font-size: 0.65em;
  }
  .sound-effect {
    font-size: calc(var(--page-w) * 0.11);
    -webkit-text-stroke: 0.7px;
    text-shadow: 1px 2px 0 var(--ink);
  }
  .cover-edition {
    left: 12px;
    right: 12px;
    top: 12px;
    font-size: 5px;
    letter-spacing: 0.07em;
  }
  .cover-edition > span {
    padding: 4px 5px;
  }
  .cover-title {
    font-size: calc(var(--page-w) * 0.25);
    top: 9%;
    text-shadow:
      3px 4px 0 #151c28,
      -1px -1px 0 #151c28,
      1px -1px 0 #151c28,
      -1px 1px 0 #151c28;
  }
  .cover-title > span {
    margin-top: 8px;
  }
  .cover-tag > p {
    font-size: calc(var(--page-w) * 0.064);
  }
  .cover-tag > h3 {
    font-size: calc(var(--page-w) * 0.059);
    padding: 6px 10px;
    margin-top: 8px;
  }
  .cover-bottom {
    left: 15px;
    right: 15px;
    bottom: 12px;
    font-size: 4.5px;
  }
  .cover-barcode {
    width: 35px;
    height: 26px;
  }
  .cover-barcode::before {
    height: 14px;
  }
  .cover-barcode::after {
    font-size: 3.5px;
  }
  .intro-page,
  .end-page {
    padding: 18px;
  }
  .intro-kicker {
    font-size: 6px;
    padding-bottom: 10px;
  }
  .intro-art {
    margin: 13px 0 12px;
  }
  .intro-page h2 {
    font-size: calc(var(--page-w) * 0.09);
  }
  .intro-description {
    font-size: calc(var(--page-w) * 0.033);
    margin-top: 12px;
  }
  .powers-list {
    gap: 9px;
    margin-top: 13px;
    padding-top: 12px;
  }
  .power-line {
    grid-template-columns: 43px 1fr;
    font-size: calc(var(--page-w) * 0.029);
    gap: 8px;
  }
  .intro-fineprint {
    font-size: 5px;
    padding-top: 10px;
  }
  .end-page h2 {
    font-size: calc(var(--page-w) * 0.19);
  }
  .end-page .ending-note {
    font-size: calc(var(--page-w) * 0.039);
    margin-top: 20px;
  }
  .end-page .return-note {
    font-size: 6px;
  }
  .back-blurb {
    font-size: calc(var(--page-w) * 0.044);
  }
  .back-edition {
    font-size: 5.5px;
  }
  .dialog-header {
    padding: 20px;
    gap: 15px;
  }
  .dialog-header h2 {
    font-size: 32px;
  }
  .dialog-header p {
    font-size: 7px;
  }
  .chapter-list {
    padding: 7px 20px 14px;
  }
  .chapter-entry {
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    padding: 16px 0;
  }
  .chapter-numeral {
    font-size: 30px;
  }
  .chapter-name {
    font-size: 24px;
  }
  .chapter-summary {
    font-size: 9px;
    max-width: 240px;
  }
  .chapter-range {
    font-size: 7px;
  }
  .contents-bottom {
    padding: 4px 20px 18px;
    gap: 10px 18px;
  }
  .contents-note {
    padding: 0 20px 20px;
    font-size: 8px;
  }
  .book-dialog {
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px);
  }
  .zoom-dialog {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    max-width: calc(100vw - 12px);
  }
  .zoom-dialog .dialog-header {
    padding: 10px 13px;
    gap: 10px;
  }
  .zoom-dialog .dialog-header h2 {
    font-size: 22px;
  }
  .zoom-dialog .dialog-header p {
    font-size: 6px;
  }
  .zoom-tools {
    gap: 4px;
  }
  .zoom-tools .close-button,
  .zoom-tools .icon-button {
    width: 36px;
    min-width: 36px;
    height: 40px;
  }
  .zoom-scroll {
    padding: 18px 14px;
    height: calc(100% - 122px);
  }
  .zoom-page-holder {
    margin: 0;
  }
  .zoom-page-holder.full-panels {
    width: 100%;
    margin: 0 auto;
  }
  .zoom-page-holder.full-panels .paper-page {
    padding: 12px;
  }
  .zoom-page-holder.full-panels .speech-bubble {
    font-size: 17px;
    padding: 9px 12px;
  }
  .zoom-page-holder.full-panels .has-many-balloons .speech-bubble {
    font-size: 15px;
  }
  .zoom-page-holder.full-panels .panel-caption {
    font-size: 15px;
  }
  .zoom-page-holder.full-panels .panel-lettering {
    inset: 11px;
  }
  .zoom-page-holder.full-panels .sound-effect {
    font-size: 48px;
  }
  .zoom-bottom {
    padding: 0 13px;
    height: 49px;
    gap: 12px;
  }
  .zoom-bottom > span {
    display: none;
  }
  .zoom-bottom .plain-button {
    font-size: 8px;
  }
  .text-content {
    padding: 20px;
    font-size: 17px;
  }
  .text-chapter > h3 {
    font-size: 29px;
  }
  .text-scene {
    font-size: 14px;
  }
  .reader-toast {
    bottom: 100px;
    font-size: 11px;
    padding: 12px 16px;
  }
  .turn-leaf {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .reader-bar {
    padding-inline: 12px;
  }
  .reader-identity h1 {
    font-size: 22px;
  }
  .tool-button {
    width: 35px;
  }
  .reader-bottom {
    padding-inline: 12px;
  }
  .book-status > p {
    max-width: 96px;
    font-size: 6px;
  }
  .page-button {
    width: 66px;
    font-size: 9px;
  }
  .next-button {
    width: 82px;
  }
  .page-button svg {
    width: 15px;
  }
  .panel-lettering {
    inset: 5px 5px 8px;
  }
  .speech-bubble {
    font-size: 10.5px;
    padding: 5px 7px;
  }
  .comic-panel.has-many-balloons .speech-bubble {
    font-size: 9.5px;
    padding: 4px 6px;
  }
  .panel-caption {
    font-size: 9px;
  }
  .intro-description {
    font-size: 10px;
  }
  .power-line {
    font-size: 9px;
  }
  .intro-fineprint {
    font-size: 4.5px;
  }
}
@media (max-height: 620px) and (min-width: 601px) {
  :root {
    --page-w: min(450px, calc((100dvh - 146px) / 1.46), calc((100vw - 150px) / 2));
  }
  .reader-bar {
    height: 56px;
    padding-inline: 25px;
  }
  .reader-identity h1 {
    font-size: 24px;
  }
  .reader-bottom {
    height: 65px;
    min-height: 65px;
  }
  .reader-actions .tool-button {
    height: 40px;
  }
  .book-stage {
    padding-top: 8px;
    padding-bottom: 15px;
  }
  .reading-hint {
    display: none;
  }
  .book-status > p {
    font-size: 7px;
  }
  .book-status > span {
    font-size: 8px;
  }
  .page-button {
    height: 40px;
  }
  .reader-toast {
    bottom: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .book-frame {
    transform: none !important;
  }
}
.chapter-opener h2 {
  font: 20px/0.95 var(--display);
  letter-spacing: 0.025em;
}
.chapter-opener {
  min-height: 29px;
}
.layout-wide-top .comic-panel:first-child > img,
.layout-wide-bottom .comic-panel:last-child > img,
.layout-diagonal .comic-panel:last-child > img,
.layout-stack .comic-panel > img {
  object-position: center 35%;
}
.panel-caption:has(.location-line:only-child) .location-line {
  margin-bottom: 0;
}
.is-cover:has(.cover-page:not(.back-cover)) {
  cursor: pointer;
}
.turn-leaf {
  transform-style: preserve-3d;
  backface-visibility: visible;
}
.turn-leaf::after {
  display: none;
}
.leaf-front,
.leaf-reverse {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}
.leaf-front > .paper-page,
.leaf-reverse > .paper-page {
  width: 100%;
  height: 100%;
}
.leaf-front {
  box-shadow: 10px 18px 27px #0005;
}
.leaf-reverse {
  transform: rotateY(180deg);
  background: var(--paper);
}
.leaf-front::after,
.leaf-reverse::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.leaf-front::after {
  background: linear-gradient(90deg, #0002, transparent 50%, #100d0755);
}
.leaf-reverse::after {
  background: linear-gradient(90deg, #110d0630, transparent 85%);
}
.share-fallback {
  margin: 0 27px 18px;
  width: calc(100% - 54px);
  min-height: 42px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 10px;
  font: 14px var(--ui);
}
.tool-button:disabled {
  opacity: 0.35;
}
.tool-button:disabled:hover {
  background: transparent;
  border-color: transparent;
}
.zoom-page-holder.full-panels .comic-panel > img {
  object-position: center !important;
}
@media (max-width: 600px) {
  .chapter-opener h2 {
    font-size: 16px;
  }
  .chapter-opener {
    min-height: 24px;
  }
  .tool-button {
    width: 44px;
  }
  .page-button {
    height: 44px;
  }
}
@media (max-height: 550px) {
  .intro-art {
    height: 24%;
    margin-block: 8px;
  }
  .intro-description {
    margin-top: 8px;
  }
  .powers-list {
    gap: 8px;
    padding-top: 8px;
    margin-top: 9px;
  }
}

@media (max-width: 979px) {
  .reader-bottom:has(#resume-button:not([hidden])) .page-controls {
    transform: translateY(6px);
  }
}
@media (max-height: 490px) {
  :root {
    --page-w: min(300px, calc(100vw - 38px));
  }
  body {
    overflow: auto;
  }
  .reader-app {
    height: auto;
    min-height: 100dvh;
  }
  .book-stage {
    min-height: calc(var(--page-h) + 32px);
  }
  .reader-bottom {
    position: sticky;
    bottom: 0;
    z-index: 40;
    background: var(--desk-deep);
  }
}
