:root {
  --paper: #f5f3ed;
  --paper-deep: #ece9e0;
  --ink: #20201e;
  --muted: #77766f;
  --line: #d9d6cc;
  --accent: #d8f35a;
  --accent-ink: #292e12;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 56px)); margin-inline: auto; }
.site-header { height: 78px; padding: 0 max(28px, calc((100vw - var(--wrap))/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245,243,237,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.7px; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark-mark { width: 27px; height: 27px; display: inline-grid; place-items: center; background: var(--accent); color: var(--ink); border-radius: 50%; font-size: 19px; }
.main-nav { display: flex; gap: 34px; align-items: center; height: 100%; }
.main-nav a { height: 100%; display: inline-flex; align-items: center; position: relative; color: #77766f; font-size: 12px; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ''; height: 2px; background: var(--ink); position: absolute; bottom: 0; left: 0; right: 0; }
.header-link { font-size: 12px; font-weight: 750; border: 1px solid var(--ink); padding: 11px 15px; border-radius: 3px; }
.header-link span { margin-left: 11px; }
.header-link:hover { background: var(--ink); color: var(--paper); }
.hero { min-height: 590px; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 42px; padding-bottom: 88px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 12px; }
.eyebrow { margin: 0 0 19px; font-size: 10px; letter-spacing: 1.7px; font-weight: 800; color: #76756d; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #98ac34; margin-right: 8px; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font-size: clamp(49px, 6.15vw, 78px); line-height: .99; letter-spacing: -5.1px; font-weight: 780; }
.glitch-word { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -4px; position: relative; }
.glitch-word::after { content: attr(data-text); position: absolute; top: 2px; left: 3px; color: #b2c93b; opacity: .45; clip-path: inset(54% 0 0 0); pointer-events: none; }
.period { color: #92a82a; }
.hero-description { max-width: 430px; margin: 25px 0 28px; color: #6b6a64; font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 19px; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; border: 1px solid transparent; border-radius: 3px; padding: 0 18px; font-size: 12px; font-weight: 750; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #45453e; }
.button-ghost { border-color: #77766f; color: var(--ink); }
.quiet-note { font-size: 11px; color: #89877e; }
.hero-art { height: 390px; max-width: 470px; width: 100%; justify-self: end; position: relative; display: grid; place-items: center; }
.art-grid { position: absolute; inset: 14px 4px 10px 20px; opacity: .38; background-image: linear-gradient(to right, #c8c5b8 1px, transparent 1px), linear-gradient(to bottom, #c8c5b8 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(135deg, black, transparent 83%); }
.art-card { position: absolute; width: 220px; height: 300px; box-shadow: 0 24px 55px rgba(38,38,30,.14); }
.art-card-back { transform: rotate(10deg) translate(53px,-4px); background: var(--accent); color: var(--ink); padding: 24px; display: flex; justify-content: space-between; flex-direction: column; }
.art-small { font-size: 9px; font-weight: 850; letter-spacing: 1.8px; line-height: 1.5; }
.art-stamp { font-size: 63px; align-self: flex-end; }
.art-card-front { transform: rotate(-7deg) translate(-14px,1px); background: #262722; color: #f4f1e8; padding: 23px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.art-index, .art-bottom { font-size: 8px; letter-spacing: 1.4px; font-weight: 800; color: #c2c0b4; }
.art-title { font-family: var(--serif); font-size: 35px; letter-spacing: -1.4px; line-height: .99; }
.art-bottom { color: var(--accent); }
.art-scribble { position: absolute; right: 14px; bottom: 24px; font-family: var(--serif); font-style: italic; font-size: 15px; transform: rotate(-8deg); color: #77766f; }
.hero-foot { position: absolute; bottom: 27px; left: 0; right: 0; display: flex; justify-content: space-between; color: #85837b; font-size: 9px; font-weight: 750; letter-spacing: 1.35px; }
.hero-foot b { color: var(--ink); }
.library-section { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 83px 0 69px; }
.section-heading, .chapter-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.section-heading h2, .chapter-section-heading h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -2.1px; margin: 0; }
.section-heading h2 em, .chapter-section-heading h2 em, .manifesto h2 em { font-family: var(--serif); font-weight: 400; }
.section-aside { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.library-tools { margin: 34px 0 27px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.search-box { width: min(330px, 100%); height: 43px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #bcb9ad; color: #77766f; }
.search-box > span { font-size: 23px; transform: rotate(-20deg); }
.search-box input { flex: 1; background: transparent; border: 0; outline: 0; min-width: 0; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #929087; }
.search-box:focus-within { border-color: var(--ink); }
.search-box kbd { font-size: 9px; border: 1px solid #c6c3b8; border-radius: 3px; padding: 3px 6px; }
.filter-list { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { background: transparent; border: 1px solid #cbc8bd; color: #77766f; padding: 8px 12px; border-radius: 99px; font-size: 10px; cursor: pointer; }
.filter-chip:hover, .filter-chip.selected { background: var(--ink); border-color: var(--ink); color: white; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.book-card { min-width: 0; }
.cover-link { display: block; position: relative; overflow: hidden; background: #262722; aspect-ratio: 3 / 4; }
.book-cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cover-link:hover .book-cover { transform: scale(1.035); }
.cover-open { position: absolute; bottom: 13px; right: 13px; background: var(--accent); color: var(--ink); padding: 8px 10px; font-size: 8px; font-weight: 850; letter-spacing: 1px; opacity: 0; transform: translateY(5px); transition: .2s ease; }
.cover-link:hover .cover-open, .cover-link:focus-visible .cover-open { opacity: 1; transform: none; }
.book-card-meta { display: flex; justify-content: space-between; margin-top: 17px; color: #87857d; font-size: 9px; text-transform: uppercase; letter-spacing: 1.1px; font-weight: 750; }
.book-card h3 { font-size: 19px; letter-spacing: -.55px; margin: 8px 0 6px; }
.book-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.book-card p { margin: 0 0 14px; font-size: 10px; color: #77766f; line-height: 1.5; }
.text-link { display: inline-flex; gap: 11px; align-items: center; font-size: 10px; font-weight: 800; border-bottom: 1px solid #aaa79d; padding-bottom: 5px; }
.text-link:hover { border-color: var(--ink); }
.empty-state { font-size: 13px; color: var(--muted); padding: 26px 0; }
.library-foot { border-top: 1px solid #d2cfc4; margin-top: 40px; padding-top: 15px; display: flex; justify-content: space-between; color: #848178; font-size: 9px; letter-spacing: .9px; text-transform: uppercase; }
.library-foot b { color: var(--ink); }
.tiny-spark { color: #899d2e; font-size: 14px; margin-left: 7px; }
.manifesto { min-height: 410px; display: grid; grid-template-columns: 90px 1fr 160px; gap: 25px; align-items: center; padding-top: 77px; padding-bottom: 77px; }
.manifesto-mark { font-family: var(--serif); font-size: 130px; line-height: .7; color: #c8c6b9; align-self: start; padding-top: 10px; }
.manifesto h2 { font-size: clamp(35px, 4vw, 49px); line-height: 1.08; letter-spacing: -2px; margin: 0 0 20px; }
.manifesto-copy > p:not(.eyebrow) { max-width: 570px; color: #77766f; font-size: 13px; line-height: 1.85; }
.signature { font-family: var(--serif); font-size: 23px; font-style: italic; }
.manifesto-aside { height: 190px; display: flex; flex-direction: column; justify-content: space-between; border-left: 1px solid var(--line); padding-left: 23px; color: #8a887f; font-size: 8px; letter-spacing: 1.4px; font-weight: 800; line-height: 1.6; }
.aside-number { color: var(--ink); }
.aside-doodle { font-size: 37px; color: #9cac43; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #88867d; font-size: 9px; letter-spacing: .6px; }
.footer-wordmark { color: var(--ink); font-size: 13px; }
.footer-wordmark .wordmark-mark { width: 22px; height: 22px; font-size: 15px; }
.book-page { padding-top: 36px; padding-bottom: 90px; }
.back-link { font-size: 11px; color: #77766f; }
.back-link:hover { color: var(--ink); }
.book-hero-detail { display: grid; grid-template-columns: minmax(230px, 340px) 1fr; gap: clamp(36px, 7vw, 88px); align-items: center; max-width: 930px; margin: 55px auto 82px; }
.detail-cover-wrap { background: #262722; box-shadow: 0 20px 50px rgba(30,30,24,.12); }
.detail-cover { display: block; width: 100%; height: auto; }
.detail-copy h1 { font-size: clamp(42px, 6vw, 66px); letter-spacing: -3.4px; line-height: 1; margin: 0 0 14px; }
.detail-byline { color: #77766f; font-size: 12px; }
.detail-byline b { color: var(--ink); }
.detail-genre { font-size: 11px; font-weight: 700; color: #7d7b72; margin: 23px 0 10px; }
.detail-description { color: #66655e; font-size: 14px; line-height: 1.8; max-width: 480px; }
.detail-stats { display: flex; gap: 22px; padding: 18px 0 23px; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-stats span { display: flex; flex-direction: column; gap: 5px; color: #88867d; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.detail-stats b { color: var(--ink); font-size: 13px; text-transform: none; letter-spacing: 0; }
.chapter-section { max-width: 930px; margin: auto; }
.chapter-section-heading { margin-bottom: 25px; }
.chapter-count { font-size: 9px; font-weight: 800; color: #85837a; letter-spacing: 1px; }
.chapter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cfccc1; }
.chapter-row { min-height: 72px; display: grid; grid-template-columns: 42px minmax(100px,1fr) 105px 145px; align-items: center; gap: 13px; border-bottom: 1px solid #cfccc1; }
.chapter-number { color: #9b998f; font-family: var(--serif); font-size: 17px; }
.chapter-name { display: flex; flex-direction: column; gap: 5px; }
.chapter-name b { font-size: 13px; }
.chapter-name span { font-size: 9px; color: #8b8981; }
.chapter-read, .chapter-download { font-size: 10px; font-weight: 800; }
.chapter-read:hover, .chapter-download:hover { text-decoration: underline; text-underline-offset: 3px; }
.chapter-read span { margin-left: 8px; }
.chapter-unavailable { color: #aaa79c; font-size: 9px; }
.chapter-note { margin-top: 18px; color: #88867d; font-size: 10px; line-height: 1.6; }
.not-found { min-height: 470px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.loading-note { color: #88867d; }
.reader-body { min-height: 100vh; background: #171717; color: #efeee9; }
.reader-header { height: 65px; padding: 0 26px; position: sticky; top: 0; z-index: 20; background: rgba(23,23,23,.96); border-bottom: 1px solid #373733; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; }
.reader-brand { font-size: 9px; font-weight: 850; letter-spacing: 1.5px; white-space: nowrap; }
.reader-brand span { color: var(--accent); font-size: 16px; margin-right: 7px; }
.reader-heading { display: flex; justify-content: center; gap: 10px; font-size: 10px; color: #96958f; white-space: nowrap; }
.reader-heading b { color: #f3f1ea; }
.reader-exit { justify-self: end; font-size: 10px; color: #b5b3aa; }
.reader-exit span { margin-left: 8px; font-size: 17px; vertical-align: -1px; }
.reading-progress { height: 2px; background: #373733; position: sticky; top: 65px; z-index: 19; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.reader-main { padding: 29px 18px 65px; }
.reader-topline { max-width: 760px; margin: 0 auto 22px; display: flex; justify-content: space-between; color: #898880; font-size: 8px; letter-spacing: 1.5px; font-weight: 800; }
.reader-content { width: min(760px, 100%); margin: 0 auto; }
.manga-page { margin: 0 auto 15px; }
.manga-page img { display: block; width: 100%; height: auto; background: #222; }
.manga-page figcaption { padding-top: 6px; text-align: right; color: #6c6b65; font-size: 8px; letter-spacing: 1.2px; }
.reader-message { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #c1bfb7; padding: 40px 20px; }
.reader-message h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; color: #f2f0e8; }
.reader-message p { max-width: 440px; font-size: 12px; line-height: 1.8; }
.reader-message code { color: var(--accent); }
.reader-empty .eyebrow { color: var(--accent); }
.loading-spinner { width: 23px; height: 23px; border: 2px solid #555; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reader-bottom-nav { max-width: 760px; margin: 38px auto 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.reader-bottom-nav[hidden] { display: none; }
.reader-bottom-nav .button { min-height: 40px; font-size: 10px; }
.is-disabled { opacity: .28; pointer-events: none; }
@media (max-width: 800px) {
  .site-header { height: 68px; padding-inline: 22px; }
  .main-nav { gap: 18px; }
  .header-link { display: none; }
  .wrap { width: min(100% - 42px, var(--wrap)); }
  .hero { min-height: auto; grid-template-columns: 1fr .72fr; gap: 15px; padding-top: 75px; padding-bottom: 95px; }
  .hero h1 { font-size: clamp(44px, 7vw, 64px); letter-spacing: -3.5px; }
  .hero-art { height: 310px; transform: scale(.86); transform-origin: center right; }
  .art-card { width: 180px; height: 250px; }
  .art-title { font-size: 29px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .manifesto { grid-template-columns: 55px 1fr 100px; gap: 15px; }
  .manifesto-mark { font-size: 90px; }
  .manifesto-aside { padding-left: 14px; }
  .book-hero-detail { grid-template-columns: minmax(190px, 270px) 1fr; gap: 35px; }
}
@media (max-width: 560px) {
  .site-header { padding-inline: 17px; height: 62px; }
  .wordmark { font-size: 14px; gap: 7px; }
  .wordmark-mark { width: 23px; height: 23px; font-size: 16px; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 10px; }
  .wrap { width: calc(100% - 34px); }
  .hero { display: block; padding-top: 66px; padding-bottom: 85px; }
  .hero h1 { font-size: clamp(48px, 13vw, 67px); letter-spacing: -3.5px; }
  .hero-description { font-size: 13px; margin: 20px 0 22px; }
  .hero-art { height: 285px; max-width: 350px; margin: 33px auto 0; transform: none; }
  .art-card { width: 165px; height: 225px; }
  .art-card-back { transform: rotate(10deg) translate(38px,-2px); }
  .art-card-front { transform: rotate(-7deg) translate(-16px,1px); }
  .art-title { font-size: 28px; }
  .art-scribble { right: 8px; bottom: 4px; }
  .hero-foot { bottom: 27px; font-size: 7px; letter-spacing: .9px; }
  .library-section { padding: 60px 0 49px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 36px; }
  .section-aside { margin-top: 15px; font-size: 11px; }
  .library-tools { margin: 25px 0 22px; align-items: flex-start; }
  .search-box { width: 100%; }
  .filter-list { gap: 5px; }
  .filter-chip { padding: 7px 10px; font-size: 9px; }
  .book-grid { gap: 25px 13px; }
  .book-card-meta { font-size: 7px; letter-spacing: .7px; }
  .book-card h3 { font-size: 16px; }
  .book-card p { font-size: 9px; }
  .text-link { font-size: 9px; }
  .cover-open { opacity: 1; transform: none; bottom: 8px; right: 8px; font-size: 7px; padding: 7px; }
  .library-foot { font-size: 7px; letter-spacing: .5px; }
  .manifesto { min-height: auto; display: grid; grid-template-columns: 35px 1fr; padding-top: 58px; padding-bottom: 58px; gap: 12px; }
  .manifesto-mark { font-size: 67px; }
  .manifesto h2 { font-size: 36px; }
  .manifesto-copy > p:not(.eyebrow) { font-size: 12px; }
  .manifesto-aside { display: none; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > span:nth-child(2) { display: none; }
  .book-page { padding-top: 25px; }
  .book-hero-detail { display: block; margin: 30px auto 58px; max-width: 370px; }
  .detail-cover-wrap { width: 68%; margin-bottom: 32px; }
  .detail-copy h1 { font-size: 46px; }
  .detail-description { font-size: 13px; }
  .chapter-section-heading h2 { font-size: 34px; }
  .chapter-row { grid-template-columns: 29px minmax(90px,1fr) 57px; gap: 8px; min-height: 68px; }
  .chapter-download, .chapter-unavailable { display: none; }
  .reader-header { height: 58px; padding: 0 12px; grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .reader-brand { font-size: 7px; letter-spacing: .8px; }
  .reader-brand span { font-size: 13px; margin-right: 3px; }
  .reader-heading { font-size: 8px; gap: 5px; }
  .reader-exit { font-size: 8px; }
  .reader-exit span { margin-left: 3px; }
  .reading-progress { top: 58px; }
  .reader-main { padding: 19px 0 40px; }
  .reader-topline { padding-inline: 12px; font-size: 7px; }
  .manga-page { margin-bottom: 7px; }
  .manga-page figcaption { padding-right: 8px; }
  .reader-bottom-nav { padding-inline: 12px; gap: 6px; }
  .reader-bottom-nav .button { padding: 0 9px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }


/* The Story Glitch: online-only chapter list and optional edition preview. */
.chapter-row {
  grid-template-columns: 42px minmax(100px, 1fr) 105px;
}
.chapter-read {
  font-size: 10px;
  font-weight: 800;
}
.chapter-read:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.edition-preview {
  max-width: 930px;
  margin: 78px auto 0;
  padding-top: 58px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 250px);
  gap: 54px;
  align-items: center;
}
.edition-preview-copy h2 {
  max-width: 520px;
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 45px);
  line-height: 1.06;
  letter-spacing: -2px;
}
.edition-preview-copy h2 em {
  font-family: var(--serif);
  font-weight: 400;
}
.edition-preview-copy p:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.edition-preview-figure {
  width: 100%;
  max-width: 250px;
  margin: 0;
  justify-self: end;
  background: var(--paper-deep);
  box-shadow: 0 16px 38px rgba(30, 30, 24, .12);
}
.edition-preview-figure img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 560px) {
  .chapter-row {
    grid-template-columns: 29px minmax(90px, 1fr) 57px;
  }
  .edition-preview {
    margin-top: 55px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .edition-preview-figure {
    width: 68%;
    max-width: 250px;
    align-self: center;
  }
}


/* Immersive Reading Mode */
.reader-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.reader-focus-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #55554f;
  border-radius: 4px;
  background: transparent;
  color: #f3f1ea;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.reader-focus-toggle:hover {
  background: #383832;
  border-color: #a7a69b;
}

.reader-focus-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Focus mode hides the reader interface, not the manga pages. */
.reader-body.reader-focus-mode {
  background: #111;
}

.reader-body.reader-focus-mode .reader-header {
  height: 0 !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  display: block;
  position: static;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.reader-body.reader-focus-mode .reader-brand,
.reader-body.reader-focus-mode .reader-heading,
.reader-body.reader-focus-mode .reader-exit {
  display: none !important;
}

.reader-body.reader-focus-mode .reader-actions {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  pointer-events: none;
}

.reader-body.reader-focus-mode .reader-focus-toggle {
  pointer-events: auto;
  background: rgba(35, 35, 35, .78);
  border-color: rgba(255, 255, 255, .22);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.reader-body.reader-focus-mode .reading-progress,
.reader-body.reader-focus-mode .reader-topline,
.reader-body.reader-focus-mode .reader-bottom-nav {
  display: none !important;
}

.reader-body.reader-focus-mode .reader-main {
  padding: 10px 0 30px;
}

.reader-body.reader-focus-mode .reader-content {
  width: min(1000px, 100%);
  max-width: 100%;
}

@media (max-width: 640px) {
  .reader-actions {
    gap: 8px;
  }

  .reader-focus-toggle {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .reader-body.reader-focus-mode .reader-actions {
    top: 8px;
    right: 8px;
  }
}


/* Desktop manga reading enhancement */
@media (min-width: 824px) {
  .reader-content {
    width: min(1000px, calc(100vw - 64px));
  }

  .reader-topline,
  .reader-bottom-nav {
    max-width: min(1000px, calc(100vw - 64px));
  }

  .reader-main {
    padding-top: 24px;
  }

  .manga-page {
    margin-bottom: 18px;
  }

  body.reader-body.reader-focus-mode .reader-content {
    width: min(1120px, calc(100vw - 48px));
    max-width: 100%;
  }
}
