.reading-main {
  max-width: 1040px;
  margin: auto;
  padding: 64px 24px;
  color: #243133;
  font-size: 18px;
  line-height: 1.65;
}
.reading-intro {
  max-width: 720px;
  margin: 0 0 72px;
}
.reading-main h1,
.reading-main h2 {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-transform: none;
}
.reading-main h1 {
  font-size: clamp(36px, 6vw, 62px);
  margin: 12px 0 24px;
}
.reading-main h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 12px 0 24px;
}
.reading-eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #417c71;
  font-weight: 700;
}
.reading-section {
  padding: 52px 0;
  border-top: 1px solid #dbe4e1;
}
.manga-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.manga-option {
  min-width: 0;
  padding: 28px;
  border: 1px solid #cddbd6;
  border-radius: 14px;
  background: #f8fbf9;
}
.manga-option h3 {
  margin: 0 0 16px;
  font: 600 21px/1.4 "Open Sans", sans-serif;
  color: #243133;
  text-transform: none;
}
.manga-option .reading-actions {
  margin: 0;
}
.manga-option .reading-actions button {
  width: 100%;
}
.manga-option-help {
  margin-top: 24px;
}
.reading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.reading-actions button,
.reading-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #27695f;
  border-radius: 10px;
  background: #27695f;
  color: white;
  font:
    600 15px/1.4 "Open Sans",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  text-shadow: none;
}
.reading-actions .secondary {
  background: white;
  color: #27695f;
}
.reading-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.reading-actions [hidden] {
  display: none;
}
.reading-button:hover,
.reading-button:focus {
  color: #27695f;
}
.reading-main :focus-visible,
#manga-reader :focus-visible {
  outline: 3px solid #e8a52e;
  outline-offset: 4px;
}
.reading-note {
  font-size: 14px;
  color: #586764;
}
.reading-credit {
  font-size: 13px;
  line-height: 1.65;
  color: #586764;
  margin-top: 28px;
}
.manga-preview {
  display: block;
  position: relative;
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px #19352d22;
  align-self: start;
}
.manga-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.manga-preview span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  text-align: center;
  background: #172924ed;
  color: white;
  font-size: 15px;
}
.reading-story-section {
  display: block;
}
.story-details {
  margin-top: 28px;
  border: 1px solid #dbe4e1;
  border-radius: 12px;
  overflow: hidden;
}
.story-details summary {
  padding: 20px;
  cursor: pointer;
  background: #f1f6f4;
  font-weight: 600;
}
.story-text {
  max-height: 540px;
  overflow: auto;
  padding: 28px;
  white-space: pre-wrap;
  line-height: 2;
  font-size: 18px;
  color: #243133;
  background: #fff;
}
.reading-credits {
  border-top: 1px solid #dbe4e1;
  padding: 32px 0;
  font-size: 14px;
  color: #586764;
}
.reading-credits h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
#manga-reader {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #151515;
  color: white;
  overflow: hidden;
}
#manga-reader::backdrop {
  background: #151515;
}
.reader-pages {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.reader-pages::-webkit-scrollbar {
  display: none;
}
.reader-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reader-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
}
.reader-toolbar,
.reader-navigation {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #151515df;
  padding: 8px 12px;
  border-radius: 10px;
  transition: opacity 0.15s;
}
.reader-toolbar {
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
}
.reader-toolbar span {
  font-size: 14px;
}
.reader-hint {
  margin-left: auto;
}
.reader-navigation {
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
#manga-reader button {
  background: none;
  border: 1px solid #777;
  color: white;
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
#manga-reader button:disabled {
  opacity: 0.35;
}
.reader-clean .reader-toolbar,
.reader-clean .reader-navigation {
  opacity: 0;
  pointer-events: none;
}
.reader-clean:focus-within .reader-toolbar,
.reader-clean:focus-within .reader-navigation {
  opacity: 1;
  pointer-events: auto;
}
.reading-reader-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .reading-main {
    padding: 36px 20px;
  }
  .reading-intro {
    margin-bottom: 40px;
  }
  .reading-section {
    padding: 36px 0;
  }
  .manga-options {
    gap: 12px;
  }
  .manga-option {
    padding: 16px 12px;
  }
  .manga-option h3 {
    font-size: 17px;
  }
  .manga-option .reading-actions button {
    padding: 12px 10px;
    font-size: 14px;
  }
  .manga-preview span {
    padding: 10px 6px;
    font-size: 13px;
  }
  .reading-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .story-text {
    padding: 20px;
    font-size: 17px;
  }
  .reader-hint {
    display: none;
  }
  .reading-main p {
    margin-bottom: 16px;
  }
}
@media (max-width: 359px) {
  .manga-options {
    grid-template-columns: 1fr;
  }
}
