/* Scoped reader styles: native touch scrolling works even without JavaScript. */
.comic-section { background: #eef7f8; padding: 64px 16px 52px; color: #1b2538; }
.comic-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.comic-eyebrow { color: #287d87; font-size: 14px; font-weight: 700; letter-spacing: .08em; margin: 0 0 12px; }
#comic-title { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.5; margin: 0 0 14px; font-family: fot-tsukuardgothic-std, sans-serif; }
.comic-guide { font-size: 14px; line-height: 1.8; margin: 0 0 22px; }
.comic-guide span { display: block; color: #53646f; font-size: 12px; }
.comic-reader { max-width: 600px; margin: auto; background: #fff; border: 1px solid #d5e4e7; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 36px rgb(27 37 56 / 8%); }
.comic-track { display: flex; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; list-style: none; padding: 0; margin: 0; scrollbar-width: thin; scrollbar-color: #37acb2 #e8f0f1; }
.comic-page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; margin: 0; padding: 0; }
.comic-page a { display: block; cursor: zoom-in; }
.comic-page img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; margin: 0; }
.comic-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; }
.comic-controls[hidden] { display: none; }
.comic-controls button { appearance: none; font: inherit; border: 1px solid #b3cdd1; cursor: pointer; background: #fff; color: #265c68; padding: 0; }
.comic-arrow { width: 44px; height: 44px; border-radius: 50%; font-size: 22px !important; }
.comic-arrow:disabled { opacity: .35; cursor: default; }
.comic-pagination { display: flex; gap: 6px; }
.comic-pagination button { width: 34px; height: 38px; border-radius: 9px; font-size: 14px; }
.comic-pagination button[aria-current="true"] { background: #287d87; border-color: #287d87; color: white; }
.comic-controls button:focus-visible, .comic-track:focus-visible, .comic-page a:focus-visible { outline: 3px solid #ff4a5e; outline-offset: -3px; }
.comic-status { color: #53646f; font-size: 12px; margin: 12px 0 0; }
@media (hover: hover) { .comic-controls button:hover:not(:disabled) { background: #d9eef0; color: #1b2538; } }
@media (max-width: 480px) {
  .comic-section { padding: 42px 12px 36px; }
  .comic-controls { gap: 8px; }
  .comic-pagination { gap: 3px; }
  .comic-pagination button { width: 32px; height: 44px; }
  .comic-reader { border-radius: 8px; }
}
/* Fullscreen reader: horizontal page snaps with independent vertical page scroll. */
.comic-zoom {
  position: fixed; inset: 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  background: #17242c; color: #fff; box-sizing: border-box;
}
.comic-zoom[open] { display: flex; flex-direction: column; }
.comic-zoom::backdrop { background: rgb(10 20 28 / 85%); }
.comic-zoom .comic-zoom-bar {
  position: static; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: auto; margin: 0; padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: #17242c; color: #fff; border: 0; box-shadow: none; font-size: 15px;
}
.comic-zoom button {
  appearance: none; background: #fff; color: #234a58; border: 0; border-radius: 8px;
  min-height: 44px; padding: 0 16px; cursor: pointer; font: inherit; white-space: nowrap;
}
.comic-zoom button:disabled { opacity: .35; cursor: default; }
.comic-zoom button:focus-visible, .comic-zoom-track:focus-visible { outline: 3px solid #71c9e9; outline-offset: -3px; }
.comic-zoom-track {
  display: flex; flex: 1 1 auto; min-height: 0; width: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.comic-zoom-track::-webkit-scrollbar { display: none; }
.comic-zoom-page {
  flex: 0 0 100%; min-width: 0; height: 100%; overflow-y: auto; overflow-x: hidden;
  scroll-snap-align: start; overscroll-behavior-y: contain; text-align: center;
}
.comic-zoom-page img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }
.comic-zoom-footer {
  display: flex; flex: 0 0 auto; justify-content: center; align-items: center; gap: 24px;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #17242c; font-size: 14px;
}
@media (max-width: 480px) {
  .comic-zoom .comic-zoom-bar { font-size: 13px; padding-left: 12px; padding-right: 12px; }
  .comic-zoom button { padding: 0 12px; }
}
