:root {
  --bg: #05070d;
  --bg-soft: #0a0f19;
  --ink: #f8f7f3;
  --muted: #aeb6c5;
  --line: rgba(255,255,255,.12);
  --glass: rgba(7,10,17,.72);
  --accent: #f4d47a;
  --accent2: #8fc9ff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { -webkit-user-select: none; user-select: none; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 0%, rgba(47,89,134,.18), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(244,212,122,.08), transparent 28%),
    linear-gradient(#070b13, #05070d 35%, #020307);
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: calc(62px + var(--safe-top));
  padding: var(--safe-top) clamp(12px, 3vw, 28px) 0;
  display: grid;
  grid-template-columns: 1fr auto 42px;
  align-items: center;
  gap: 14px;
  background: linear-gradient(to bottom, rgba(4,6,11,.94), rgba(4,6,11,.73));
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: transform .28s ease, background .28s ease;
}
.topbar.hidden { transform: translateY(calc(-100% - 2px)); }
.brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.moon-mark {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%;
  background: #f3e9bd;
  box-shadow: 0 0 22px rgba(244,212,122,.28);
  position: relative;
}
.moon-mark::after {
  content: ""; position: absolute; width: 21px; height: 21px; border-radius: 50%;
  left: 7px; top: -2px; background: #070a11;
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.08; }
.brand-copy strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.read-status { min-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #e5e8ef; font-size: 10px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.progress-track { width: 86px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress-track > span { display: block; width: 1.61%; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width .2s ease; }
.icon-btn, .floating-top {
  border: 1px solid rgba(255,255,255,.13);
  color: #fff;
  background: rgba(255,255,255,.055);
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn { width: 38px; height: 38px; border-radius: 50%; }
.icon-btn svg, .floating-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active, .floating-top:active { transform: scale(.95); }

.hero {
  min-height: 100svh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url("assets/pages/page-01.jpg") center 36% / cover no-repeat;
  transform: scale(1.025);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(2,5,10,.10) 0%, rgba(2,5,10,.22) 43%, rgba(2,5,10,.92) 85%, #05070d 100%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, transparent 10%, rgba(1,3,7,.14) 66%, rgba(1,3,7,.52) 100%);
}
.hero-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: calc(86px + var(--safe-top)) 24px max(82px, calc(56px + var(--safe-bottom)));
  text-align: center;
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.eyebrow { margin: 0 0 10px; color: #e8dba8; font-size: 10px; letter-spacing: .32em; font-weight: 700; }
.hero h1 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; font-size: clamp(44px, 9vw, 82px); letter-spacing: .08em; line-height: 1.12; }
.chapter { margin: 11px 0 0; font-family: Georgia, "Yu Mincho", serif; font-size: 15px; letter-spacing: .15em; color: rgba(255,255,255,.92); }
.chapter span { margin-left: .7em; font-family: "Yu Mincho", serif; letter-spacing: .22em; }
.hero-lead { margin: 22px auto 0; max-width: 540px; color: rgba(255,255,255,.86); font-size: 13px; line-height: 1.9; letter-spacing: .06em; }
.hero-actions { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.primary-btn, .secondary-btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.primary-btn { background: #f6f2e6; color: #0c111a; box-shadow: 0 10px 34px rgba(0,0,0,.28); }
.secondary-btn { color: #fff; background: rgba(9,14,23,.62); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.primary-btn:active, .secondary-btn:active { transform: translateY(1px) scale(.99); }
.hero-note { margin: 14px 0 0; color: rgba(255,255,255,.52); font-size: 9px; line-height: 1.6; letter-spacing: .05em; }
.scroll-cue { position: absolute; bottom: max(17px, var(--safe-bottom)); left: 50%; transform: translateX(-50%); width: 18px; height: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 6px; left: 50%; width: 3px; height: 3px; border-radius: 50%; background: #fff; transform: translateX(-50%); animation: cue 1.65s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%,0); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,9px); } }

.reader-section { position: relative; padding: 0 0 max(70px, calc(56px + var(--safe-bottom))); }
.reader-intro { min-height: 120px; display: grid; place-content: center; text-align: center; gap: 5px; padding: 28px 20px; }
.reader-intro p { margin: 0; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 700; letter-spacing: .35em; }
.reader-intro span { color: rgba(255,255,255,.36); font-size: 10px; }
.comic {
  width: min(100%, 1122px);
  margin: 0 auto;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.045), 0 28px 90px rgba(0,0,0,.4);
}
.page { margin: 0; padding: 0; background: #05070d; content-visibility: auto; contain-intrinsic-size: 1055px 1491px; }
.page img { display: block; width: 100%; height: auto; margin: 0; padding: 0; }

.ending {
  width: min(760px, calc(100% - 32px));
  margin: clamp(58px, 10vw, 120px) auto 0;
  padding: 56px 20px 62px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.ending-moon { display: inline-block; width: 42px; height: 42px; border-radius: 50%; background: #e9e2c5; position: relative; box-shadow: 0 0 40px rgba(244,212,122,.18); }
.ending-moon::after { content:""; position:absolute; width:38px; height:38px; border-radius:50%; background:#05070d; left:13px; top:-4px; }
.ending-kicker { margin: 21px 0 8px; color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .28em; }
.ending h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: 42px; font-weight: 500; letter-spacing: .32em; text-indent: .32em; }
.ending-end { margin: 9px 0 0; font-family: Georgia, serif; font-size: 13px; letter-spacing: .45em; text-indent: .45em; color: #ddd3b2; }
.ending-message { margin: 28px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ending-actions { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }

.floating-top {
  position: fixed;
  z-index: 44;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(18px, calc(10px + var(--safe-bottom)));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8,12,20,.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.floating-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.noscript { position: fixed; z-index: 99; left: 12px; right: 12px; bottom: 12px; background: #111927; color: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 12px; }

@media (max-width: 540px) {
  .topbar { grid-template-columns: minmax(0,1fr) auto 38px; gap: 8px; height: calc(58px + var(--safe-top)); padding-left: 11px; padding-right: 10px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 8px; }
  .moon-mark { width: 20px; height: 20px; }
  .moon-mark::after { width: 18px; height: 18px; left: 6px; }
  .read-status { min-width: 68px; }
  .progress-track { width: 68px; }
  .icon-btn { width: 34px; height: 34px; }
  .hero-inner { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(40px, 13vw, 64px); }
  .hero-lead { font-size: 12px; }
  .reader-intro { min-height: 96px; }
  .comic { width: 100%; box-shadow: none; }
}

@media (min-width: 1123px) {
  .comic { border-left: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06); }
}

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

/* --- Dual reading modes: vertical scroll / page-by-page tap --- */
.topbar { grid-template-columns: minmax(0,1fr) auto auto 42px; }
.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 32px);
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mode-switch-btn {
  width: 32px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.55);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mode-switch-btn.is-active {
  color: #09101a;
  background: #f3eee0;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.reading-choice {
  width: min(620px, 100%);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.reading-card {
  min-height: 82px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(7,11,18,.62);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reading-card-primary {
  color: #0b111a;
  background: rgba(247,243,233,.96);
  border-color: rgba(255,255,255,.7);
  text-shadow: none;
}
.reading-card:active { transform: translateY(1px) scale(.99); }
.reading-card-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 18px;
  opacity: .9;
}
.reading-card > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.reading-card strong { font-size: 13px; letter-spacing: .06em; }
.reading-card small { font-size: 9px; line-height: 1.45; opacity: .65; }
.hero-actions-resume { margin-top: 11px; }

.tap-guide {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  font-size: 9px;
  letter-spacing: .03em;
}

body[data-reader-mode="tap"] .reader-section { padding-bottom: max(96px, calc(78px + var(--safe-bottom))); }
body[data-reader-mode="tap"] .comic {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 154px - var(--safe-top));
  min-height: calc(100dvh - 154px - var(--safe-top));
  display: grid;
  place-items: center;
  background: #020307;
  box-shadow: none;
}
body[data-reader-mode="tap"] .page { display: none; content-visibility: visible; contain-intrinsic-size: auto; }
body[data-reader-mode="tap"] .page.is-active {
  display: grid;
  width: 100%;
  min-height: calc(100svh - 160px - var(--safe-top) - var(--safe-bottom));
  min-height: calc(100dvh - 160px - var(--safe-top) - var(--safe-bottom));
  place-items: center;
  cursor: pointer;
  background: #020307;
  touch-action: manipulation;
}
body[data-reader-mode="tap"] .page.is-active img {
  width: auto;
  max-width: min(100%, 1122px);
  max-height: calc(100svh - 168px - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 168px - var(--safe-top) - var(--safe-bottom));
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
body[data-reader-mode="tap"] .ending { margin-top: 26px; }

.tap-pager {
  position: fixed;
  z-index: 46;
  left: 50%;
  bottom: max(12px, calc(8px + var(--safe-bottom)));
  transform: translateX(-50%);
  width: min(430px, calc(100% - 28px));
  min-height: 50px;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(6,9,15,.83);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 44px rgba(0,0,0,.36);
}
.tap-pager[hidden] { display: none !important; }
.tap-pager button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tap-pager button:not(:disabled):active { background: rgba(255,255,255,.08); }
.tap-pager button:disabled { opacity: .24; cursor: default; }
#nextPageBtn { text-align: left; }
#prevPageBtn { text-align: right; }
#tapPageLabel {
  min-width: 72px;
  text-align: center;
  color: #f2ead0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

@media (max-width: 620px) {
  .topbar { grid-template-columns: minmax(0,1fr) auto auto 36px; gap: 7px; }
  .mode-switch { grid-template-columns: repeat(2, 28px); padding: 2px; }
  .mode-switch-btn { width: 28px; height: 26px; font-size: 9px; }
  .reading-choice { grid-template-columns: 1fr; max-width: 380px; }
  .reading-card { min-height: 68px; }
  .tap-guide { font-size: 8px; }
  .tap-pager { width: calc(100% - 20px); }
  .tap-pager button { padding: 0 10px; }
  body[data-reader-mode="tap"] .page.is-active img { max-width: 100%; }
}
@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 10px; }
  .read-status { min-width: 58px; }
  .progress-track { width: 58px; }
  .tap-guide span { max-width: 48%; }
  .tap-pager button span { display: none; }
}
.tap-guide.soft-hide { opacity: .22; transition: opacity .5s ease; }

.tap-guide[hidden] { display: none !important; }

/* v3 reliability fixes */
.page[hidden] { display: none !important; }
html[data-reader-mode="tap"] .comic,
body.reader-tap .comic {
  width: 100%;
  max-width: none;
}
html[data-reader-mode="tap"] .page.is-active,
body.reader-tap .page.is-active {
  display: grid !important;
}
html[data-reader-mode="scroll"] .page,
body.reader-scroll .page {
  display: block;
}

/* =========================================================
   v4 UX refinements
   - pager no longer overlays manga art
   - top page counter opens direct page jump sheet
   ========================================================= */
.read-status {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 7px 6px 6px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, transform .18s ease;
}
.read-status:active { background: rgba(255,255,255,.07); transform: scale(.98); }
.read-status:focus-visible { outline: 2px solid rgba(244,212,122,.8); outline-offset: 2px; }
.read-status-line { display: flex; align-items: center; justify-content: center; gap: 5px; }
.read-status-chevron { color: rgba(255,255,255,.52); font-size: 11px; line-height: 1; transform: translateY(-1px); }

/* In page-by-page mode the controls live BELOW the page, never over it. */
body[data-reader-mode="tap"] .reader-section {
  padding-bottom: max(70px, calc(56px + var(--safe-bottom)));
}
.tap-pager {
  position: static;
  z-index: auto;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(680px, calc(100% - 28px));
  min-height: 48px;
  margin: 12px auto 0;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.tap-pager button { min-height: 36px; }
.tap-page-jump {
  min-width: 84px;
  color: #f2ead0 !important;
  font-size: 10px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
.tap-page-jump:active { background: rgba(255,255,255,.10) !important; }

/* Page jump bottom sheet */
.page-jump-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 12px max(12px, var(--safe-bottom));
  background: rgba(1,3,8,.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pageJumpFade .18s ease-out;
}
.page-jump-backdrop[hidden] { display: none !important; }
.page-jump-sheet {
  width: min(520px, 100%);
  max-height: min(76dvh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 9px 18px calc(18px + var(--safe-bottom));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,25,36,.98), rgba(7,10,17,.99));
  box-shadow: 0 24px 90px rgba(0,0,0,.58);
  animation: pageJumpUp .22s cubic-bezier(.2,.8,.2,1);
}
.page-jump-handle {
  width: 38px;
  height: 4px;
  margin: 1px auto 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}
.page-jump-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-jump-kicker { margin: 0 0 3px; color: rgba(255,255,255,.38); font-size: 8px; font-weight: 700; letter-spacing: .28em; }
.page-jump-head h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.page-jump-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.05);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.page-jump-form { margin-top: 18px; }
.page-jump-input-wrap { display: block; }
.page-jump-input-wrap > span:first-child { display: block; margin: 0 0 7px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .06em; }
.page-jump-input-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}
.page-jump-prefix { color: #f1db99; font-family: Georgia, serif; font-size: 20px; }
.page-jump-input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font: 700 28px/1 -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.page-jump-input-row input::-webkit-inner-spin-button,
.page-jump-input-row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.page-jump-total { color: rgba(255,255,255,.42); font-size: 14px; font-variant-numeric: tabular-nums; }
.page-jump-help { margin: 8px 2px 14px; color: rgba(255,255,255,.38); font-size: 9px; line-height: 1.6; }
.page-jump-range { width: 100%; accent-color: #f0d77f; }
.page-jump-quick { margin-top: 15px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.page-jump-quick button {
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.035);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.page-jump-quick button.is-current { border-color: rgba(244,212,122,.48); color: #f3df9f; background: rgba(244,212,122,.08); }
.page-jump-go {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: #0b1018;
  background: #f4f0e5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
}
.page-jump-go:active { transform: scale(.99); }
body.page-jump-open { overflow: hidden; }

@keyframes pageJumpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageJumpUp { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .tap-pager { width: calc(100% - 20px); margin-top: 10px; }
  .page-jump-backdrop { padding-left: 8px; padding-right: 8px; padding-bottom: max(8px, var(--safe-bottom)); }
  .page-jump-sheet { width: 100%; border-radius: 22px; padding-left: 16px; padding-right: 16px; }
  .page-jump-quick { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .read-status { min-width: 62px; padding-left: 3px; padding-right: 3px; }
  .read-status-chevron { font-size: 9px; }
  .tap-page-jump { min-width: 76px; }
}
body[data-reader-mode="tap"] .page.is-active { scroll-margin-top: calc(64px + var(--safe-top)); }
