#reader-view:empty {
  display: none;
}
.rpg-reader-dialog[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #142530;
  color: #fffaf0;
}
.rpg-reader-dialog::backdrop {
  background: #142530;
}
.rpg-reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-height: 42px;
  padding: max(2px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 2px max(8px, env(safe-area-inset-left));
  background: #142530;
  border-bottom: 1px solid #40515a;
}
.rpg-reader-back, .rpg-reader-retry {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #fbf4e4;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.rpg-reader-back:focus-visible, .rpg-reader-retry:focus-visible {
  outline: 2px solid #efc77d;
  outline-offset: -2px;
}
.rpg-reader-meter {
  color: #d1dcdc;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.rpg-reader-region {
  display: grid;
  align-content: stretch;
  min-width: 0;
  min-height: 0;
}
.rpg-novel-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #142530;
}
.rpg-reader-status, .rpg-reader-failure {
  align-self: center;
  justify-self: center;
  text-align: center;
}
.rpg-reader-retry {
  border: 1px solid #79908e;
  border-radius: 6px;
}
