:root {
  --black: #030303;
  --black-soft: rgba(6, 5, 4, 0.72);
  --gold: #d4a451;
  --gold-bright: #f0cf86;
  --gold-dim: #8c6429;
  --wood: #b77a32;
  --wood-dark: #6e4319;
  --paper: #eadfc9;
  --paper-dim: #c8b99c;
  --ink: #f7efd9;
  --ink-dark: #1b150e;
  --muted: #baa987;
  --red: #9b4632;
  --indigo: #163447;
  --line: rgba(212, 164, 81, 0.44);
  --line-soft: rgba(212, 164, 81, 0.2);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  --max-width: 1240px;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-title: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  .site-shell.mangaka-detail-mode .reader-view {
    min-height: auto;
  }

  .site-shell.mangaka-detail-mode .reader-topline {
    margin-bottom: 10px;
  }

  .site-shell.mangaka-detail-mode .reader-topline h2 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .site-shell.mangaka-detail-mode .reader-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .site-shell.mangaka-detail-mode .reader-main {
    order: 1;
    min-height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-shell.mangaka-detail-mode .reader-meta {
    padding: 0 2px 8px;
    font-size: 0.78rem;
  }

  .site-shell.mangaka-detail-mode .reader-meta #reader-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-shell.mangaka-detail-mode .reader-menu {
    order: 2;
    position: relative;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 12px;
    border-color: rgba(212, 164, 81, 0.2);
    background:
      linear-gradient(90deg, rgba(212, 164, 81, 0.08), transparent 60%),
      rgba(5, 5, 5, 0.64);
    box-shadow: none;
  }

  .site-shell.mangaka-detail-mode .reader-menu .menu-label {
    margin-bottom: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .site-shell.mangaka-detail-mode .work-list {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .site-shell.mangaka-detail-mode .work-list::-webkit-scrollbar {
    display: none;
  }

  .site-shell.mangaka-detail-mode .work-button {
    flex: 0 0 min(78vw, 280px);
    min-height: 72px;
    padding: 12px 12px 12px 15px;
    scroll-snap-align: start;
  }

  .site-shell.mangaka-detail-mode .work-button:hover {
    transform: none;
  }

  .site-shell.mangaka-detail-mode .work-button strong {
    margin-bottom: 5px;
    font-size: 0.94rem;
  }

  .site-shell.mangaka-detail-mode .work-button small {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(186, 169, 135, 0.82);
    font-size: 0.74rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .site-shell.mangaka-detail-mode .text-panel {
    width: 100%;
    padding: 18px 15px;
    border-color: rgba(212, 164, 81, 0.28);
    background-size: auto, 18px 18px, 18px 18px, auto;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  }

  .site-shell.mangaka-detail-mode .text-panel h3 {
    margin-bottom: 12px;
    font-size: clamp(1.42rem, 7vw, 1.9rem);
    line-height: 1.18;
  }

  .site-shell.mangaka-detail-mode .text-panel p {
    margin: 0 0 1em;
    font-size: 0.96rem;
    line-height: 1.82;
  }

  .site-shell.mangaka-detail-mode .text-panel img {
    width: 100%;
    margin: 14px auto;
    border: 1px solid rgba(27, 21, 14, 0.12);
  }

  .site-shell.mangaka-detail-mode .info-grid {
    grid-template-columns: 1fr;
  }

  .site-shell.mangaka-detail-mode .tag-row {
    gap: 7px;
  }

  .site-shell.mangaka-detail-mode .article-work-links {
    margin-top: 20px;
  }
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid rgba(240, 207, 134, 0.82);
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(212, 164, 81, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #080706 0%, #010101 100%);
  background-size: 96px 96px, 96px 96px, auto;
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%);
  background-size: 6px 6px;
  mix-blend-mode: soft-light;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.paper-noise,
.ukiyo-line,
.gold-arc {
  position: fixed;
  pointer-events: none;
}

.paper-noise {
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4px 4px, 11px 11px;
  mix-blend-mode: soft-light;
}

.ukiyo-line,
.gold-arc {
  display: none;
}

.ukiyo-line-a {
  top: 96px;
  left: 16px;
  width: 1120px;
  transform: rotate(7deg);
}

.ukiyo-line-b {
  top: 148px;
  left: 80px;
  width: 980px;
  transform: rotate(-4deg);
}

.gold-arc-a {
  top: 216px;
  left: 0;
  width: 1000px;
  transform: rotate(2deg);
}

.gold-arc-b {
  top: 250px;
  right: -80px;
  width: 880px;
  transform: rotate(-8deg);
}

.topbar,
main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: rgba(4, 4, 4, 0.74);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.reader-mode .topbar {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-shell:not(.reader-mode) .topbar {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  color: var(--gold);
  font-size: 0;
  font-weight: 700;
  background:
    radial-gradient(circle, rgba(240, 207, 134, 0.96) 0 2px, rgba(212, 164, 81, 0.36) 3px 7px, transparent 8px);
  box-shadow:
    0 0 0 1px rgba(212, 164, 81, 0.2),
    0 0 20px rgba(212, 164, 81, 0.18);
  animation: brandBreath 4.8s ease-in-out infinite;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  letter-spacing: 0;
}

.brand-text small,
.top-note,
.eyebrow,
.section-kicker,
.menu-label,
.tatami-tile small,
.back-button {
  font-family: var(--font-ui);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-text small,
.top-note,
.eyebrow,
.section-kicker,
.menu-label {
  color: var(--muted);
}

.top-note {
  margin: 0;
  border: 1px solid rgba(212, 164, 81, 0.22);
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.08), transparent 58%),
    rgba(5, 5, 5, 0.28);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.top-about-link {
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 150px;
  min-height: 46px;
  padding: 8px 14px;
  text-align: right;
}

.top-about-link span {
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.1;
}

.top-about-link small {
  margin-top: 4px;
  color: rgba(186, 169, 135, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.top-about-link:hover,
.top-about-link:focus-visible {
  color: var(--ink);
  border-color: rgba(240, 207, 134, 0.52);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.16), transparent 58%),
    rgba(8, 7, 5, 0.58);
}

main {
  padding: 36px 0 56px;
}

.site-shell:not(.reader-mode) main {
  padding-top: 0;
}

.menu-gate {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100dvh;
  padding: 28px 0 34px;
  transition: transform 560ms ease, opacity 420ms ease, filter 420ms ease;
}

.menu-gate::before,
.menu-gate::after {
  content: "";
  position: absolute;
  inset: -80px calc((100vw - 100%) / -2);
  pointer-events: none;
  z-index: -1;
}

.menu-gate::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.99) 0%, rgba(3, 3, 3, 0.76) 52%, rgba(3, 3, 3, 0.97) 100%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.86), rgba(3, 3, 3, 0.98)),
    url("./assets/ukiyo-tatami-bg.jpg") center / cover no-repeat;
  opacity: 0.78;
  filter: saturate(0.5) contrast(0.84) brightness(0.76);
}

.menu-gate::after {
  background:
    linear-gradient(90deg, rgba(234, 223, 201, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(212, 164, 81, 0.032) 1px, transparent 1px),
    linear-gradient(135deg, transparent, rgba(212, 164, 81, 0.04) 46%, transparent 54%);
  background-size: 34px 34px, 34px 34px, auto;
  opacity: 0.48;
  transition: opacity 260ms ease, filter 260ms ease;
}

.menu-gate.gate-draw::after {
  background:
    radial-gradient(circle, rgba(247, 239, 218, 0.12) 0 1px, transparent 1.4px) 0 0 / 9px 9px,
    linear-gradient(90deg, rgba(234, 223, 201, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(212, 164, 81, 0.032) 1px, transparent 1px),
    linear-gradient(112deg, transparent 0 38%, rgba(226, 47, 117, 0.16) 38.2% 39%, transparent 39.2%),
    linear-gradient(152deg, transparent 0 57%, rgba(31, 181, 169, 0.12) 57.2% 58%, transparent 58.2%),
    linear-gradient(135deg, transparent, rgba(212, 164, 81, 0.06) 46%, transparent 54%);
  background-size: 9px 9px, 34px 34px, 34px 34px, auto, auto, auto;
  opacity: 0.86;
  filter: contrast(1.24) saturate(1.12);
  animation: yojohanBackdropFlash 760ms steps(2, end) both;
}

.menu-gate .eyebrow::before,
.menu-gate .eyebrow::after {
  content: "";
  position: fixed;
  pointer-events: none;
  display: none;
  opacity: 0;
}

.menu-gate .eyebrow::before {
  right: 96px;
  top: 160px;
  width: 360px;
  height: 220px;
  border-top: 1px solid rgba(212, 164, 81, 0.34);
  border-left: 1px solid rgba(212, 164, 81, 0.14);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.08) 0 1px, transparent 1px 88px),
    linear-gradient(rgba(234, 223, 201, 0.04) 0 1px, transparent 1px 72px);
  background-size: 88px 72px;
  transform: skewX(-16deg);
}

.menu-gate.gate-draw .eyebrow::before {
  display: block;
  right: clamp(18px, 7vw, 96px);
  top: clamp(82px, 15vh, 160px);
  width: min(32vw, 360px);
  height: min(22vw, 220px);
  border: 4px solid rgba(3, 3, 3, 0.96);
  background:
    radial-gradient(circle, rgba(3, 3, 3, 0.45) 0 1px, transparent 1.3px) 0 0 / 8px 8px,
    linear-gradient(90deg, rgba(247, 239, 218, 0.82), rgba(247, 239, 218, 0.62)),
    linear-gradient(120deg, transparent 0 54%, rgba(31, 181, 169, 0.78) 54.4% 64%, transparent 64.4%);
  opacity: 0;
  transform: rotate(7deg) skewX(-12deg) translateY(-24px) scale(0.78);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.34);
  animation: yojohanFrameA 760ms cubic-bezier(.2,1,.18,1) both;
}

.menu-gate .eyebrow::after {
  left: 86px;
  bottom: 120px;
  width: 460px;
  height: 180px;
  background:
    radial-gradient(ellipse at 74% 30%, rgba(234, 223, 201, 0.13) 0 7px, transparent 8px),
    radial-gradient(ellipse at 79% 38%, rgba(234, 223, 201, 0.12) 0 8px, transparent 9px),
    radial-gradient(ellipse at 68% 42%, rgba(212, 164, 81, 0.12) 0 7px, transparent 8px),
    linear-gradient(156deg, transparent 0 49%, rgba(212, 164, 81, 0.22) 49.2% 49.45%, transparent 49.7%),
    radial-gradient(ellipse at 0% 100%, transparent 0 56px, rgba(22, 52, 71, 0.14) 57px 58px, transparent 59px),
    radial-gradient(ellipse at 22% 100%, transparent 0 74px, rgba(22, 52, 71, 0.12) 75px 76px, transparent 77px),
    radial-gradient(ellipse at 48% 100%, transparent 0 62px, rgba(22, 52, 71, 0.11) 63px 64px, transparent 65px);
}

.menu-gate.gate-draw .eyebrow::after {
  display: block;
  left: clamp(16px, 6vw, 86px);
  bottom: clamp(72px, 14vh, 120px);
  width: min(36vw, 460px);
  height: min(18vw, 180px);
  border: 4px solid rgba(3, 3, 3, 0.96);
  background:
    radial-gradient(circle, rgba(247, 239, 218, 0.6) 0 2px, transparent 2.3px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(63, 43, 133, 0.86), rgba(226, 47, 117, 0.74)),
    linear-gradient(155deg, transparent 0 48%, rgba(247, 239, 218, 0.72) 48.4% 51%, transparent 51.4%);
  opacity: 0;
  transform: rotate(-8deg) skewX(10deg) translateY(34px) scale(0.8);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.34);
  animation: yojohanFrameB 760ms cubic-bezier(.2,1,.18,1) both;
}

.menu-gate > * {
  position: relative;
  z-index: 1;
}

.reader-mode .menu-gate {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
}

.menu-gate h1 {
  width: min(78vh, 560px, 92vw);
  aspect-ratio: 1570 / 230;
  margin: 8px 0 22px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  line-height: 1;
  text-align: center;
  background: url("./assets/tatami-home-logo.png") center / contain no-repeat;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 18px rgba(247, 239, 217, 0.12));
}

.menu-gate h1::before,
.menu-gate h1::after {
  content: none;
}

.menu-gate .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  width: min(100%, 520px);
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  word-spacing: 0.18em;
  transform: none;
}

.menu-gate:not(.gate-draw) .eyebrow::before,
.menu-gate:not(.gate-draw) .eyebrow::after {
  position: static;
  display: block;
  flex: 0 0 clamp(46px, 10vw, 104px);
  width: clamp(46px, 10vw, 104px);
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(240, 207, 134, 0.62));
  box-shadow: none;
  opacity: 0.82;
  transform: none;
}

.menu-gate:not(.gate-draw) .eyebrow::before {
  right: auto;
  top: auto;
}

.menu-gate:not(.gate-draw) .eyebrow::after {
  left: auto;
  bottom: auto;
  background: linear-gradient(90deg, rgba(240, 207, 134, 0.62), transparent);
}

.tatami-emblem {
  position: relative;
  width: min(78vh, 560px);
  max-width: 100%;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border: 0;
  background:
    url("./assets/yojohan-ukiyo-icon.svg") center / cover no-repeat,
    url("./assets/yojohan-original-icon.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 18% 18%, rgba(240, 184, 94, 0.18), transparent 24%),
    radial-gradient(ellipse at 76% 74%, rgba(48, 24, 8, 0.24), transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 213, 126, 0.08) 0 1px, transparent 1px 6px),
    linear-gradient(135deg, #b87932 0%, #8b521f 44%, #c28235 62%, #6b3a15 100%);
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(212, 164, 81, 0.16);
  transition: transform 180ms ease, box-shadow 220ms ease;
  animation: none;
}

.tatami-emblem:hover {
  transform: translateY(-4px);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(240, 207, 134, 0.24),
    0 0 46px rgba(212, 164, 81, 0.12);
}

.tatami-emblem::before,
.tatami-emblem::after {
  content: "";
  position: absolute;
  pointer-events: none;
  display: block;
}

.tatami-emblem::before {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(var(--tatami-line), var(--tatami-line)) 6% 65.2% / 58.8% 1.35% no-repeat,
    linear-gradient(var(--tatami-line), var(--tatami-line)) 64.6% 37.6% / 1.35% 56.4% no-repeat;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.34));
}

.tatami-emblem::after {
  display: none;
  inset: 3.4%;
  z-index: 3;
  border: 1px solid rgba(79, 43, 14, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 157, 0.08),
    inset 0 0 40px rgba(96, 51, 14, 0.12);
}

.tatami-tile {
  position: absolute;
  z-index: 1;
  --tile-image: url("./assets/button-sakura-texture.jpg");
  --tile-image-position: center top;
  --tile-image-size: 360px auto;
  --panel-accent: 212, 164, 81;
  --panel-accent-2: 240, 207, 134;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 4px;
  padding: 18px;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  text-align: left;
  background:
    radial-gradient(ellipse at 48% 4%, rgba(255, 255, 255, 0.045), transparent 34%),
    linear-gradient(180deg, #050505 0%, #000 58%, #030201 100%);
  box-shadow: none;
  cursor: pointer;
  transform: translateY(0);
  transform-origin: bottom center;
  opacity: 1;
  transition:
    transform 900ms cubic-bezier(.2,1,.22,1),
    opacity 420ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.menu-gate.gate-open .tatami-tile {
  opacity: 1;
  transform: translateY(0);
}

.tatami-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(1, 1, 1, 0.58)),
    linear-gradient(90deg, transparent, rgba(214, 164, 81, 0.12) 48%, transparent),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(247, 239, 218, 0.035) 22px 23px);
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 44px 44px;
  background-blend-mode: multiply, screen, screen;
  mix-blend-mode: screen;
  opacity: 0;
  filter: grayscale(1) saturate(0.48) contrast(0.98) brightness(0.68);
  transform: none;
  transition: opacity 560ms ease;
}

.tatami-tile::after {
  content: "";
  position: absolute;
  inset: -20%;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(112deg, transparent 0 36%, rgba(247, 239, 218, 0.07) 46%, rgba(214, 164, 81, 0.09) 50%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-18%) skewX(-8deg);
  transition: opacity 560ms ease, transform 900ms cubic-bezier(.16,1,.3,1);
}

.menu-gate.gate-draw .tatami-tile::after {
  inset: 0;
  background:
    radial-gradient(circle, rgba(247, 239, 218, 0.18) 0 1px, transparent 1.35px) 0 0 / 8px 8px,
    linear-gradient(128deg, transparent 0 34%, rgba(var(--panel-accent), 0.72) 34.3% 48%, transparent 48.3%),
    linear-gradient(22deg, transparent 0 60%, rgba(var(--panel-accent-2), 0.46) 60.2% 70%, transparent 70.2%);
  mix-blend-mode: screen;
  opacity: 0.9;
  transform: none;
}

.tatami-tile:hover {
  background:
    radial-gradient(ellipse at 48% 4%, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(180deg, #050505 0%, #000 58%, #030201 100%);
  box-shadow:
    inset 0 0 0 1px rgba(247, 239, 218, 0.12),
    inset 0 0 26px rgba(247, 239, 218, 0.045),
    0 0 18px rgba(214, 164, 81, 0.08);
  transform: translateY(-2px) scale(1.004);
}

.menu-gate.gate-open .tatami-tile:hover {
  transform: translateY(-2px) scale(1.004);
}

.menu-gate.gate-draw .tatami-emblem {
  transform: translateY(-3px) scale(1.01) rotate(-1deg);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(240, 207, 134, 0.22);
  animation: yojohanRoomSnap 780ms cubic-bezier(.18,1,.18,1) both;
}

.menu-gate.gate-draw .tatami-tile {
  pointer-events: none;
  border: 4px solid rgba(2, 2, 2, 0.96);
  filter: contrast(1.18) saturate(1.12);
  clip-path: polygon(0 4%, 96% 0, 100% 92%, 4% 100%);
  transition:
    transform 780ms cubic-bezier(.18,1,.18,1),
    opacity 420ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    clip-path 620ms ease;
  box-shadow:
    9px 9px 0 rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(247, 239, 218, 0.18);
}

.menu-gate.gate-draw .tile-serials {
  transform: translate(-22%, -118%) rotate(-9deg) skew(-4deg);
}

.menu-gate.gate-draw .tile-shorts {
  transform: translate(6%, -120%) rotate(7deg) skew(3deg);
}

.menu-gate.gate-draw .tile-mangaka {
  transform: translate(122%, -20%) rotate(12deg) skew(-4deg);
}

.menu-gate.gate-draw .tile-archive {
  transform: translate(130%, 24%) rotate(-8deg) skew(5deg);
}

.menu-gate.gate-draw .tile-contact {
  transform: translate(-16%, 118%) rotate(5deg) skew(-3deg);
}

.menu-gate.gate-draw .tatami-tile.is-gate-trigger {
  z-index: 4;
  opacity: 0;
  animation: yojohanTriggerBurst 780ms cubic-bezier(.18,1,.18,1) both;
}

.menu-gate.gate-draw {
  animation: tatamiGateSoftExit 640ms ease both;
}

.menu-gate.gate-draw::after {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0) 0%, rgba(3, 3, 3, 0.72) 44%, rgba(3, 3, 3, 0.92) 50%, rgba(3, 3, 3, 0.72) 56%, rgba(3, 3, 3, 0) 100%),
    radial-gradient(circle, rgba(247, 239, 218, 0.08) 0 1px, transparent 1.3px) 0 0 / 10px 10px,
    linear-gradient(135deg, transparent, rgba(212, 164, 81, 0.06) 46%, transparent 54%);
  opacity: 0;
  filter: none;
  animation: tatamiCurtainPass 640ms cubic-bezier(.28,.74,.18,1) both;
}

.menu-gate.gate-draw .eyebrow::before,
.menu-gate.gate-draw .eyebrow::after {
  display: none;
  animation: none;
}

.menu-gate.gate-draw .tatami-emblem {
  transform: translateY(0) scale(0.992);
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(212, 164, 81, 0.16);
  animation: tatamiEmblemFade 640ms ease both;
}

.menu-gate.gate-draw .tatami-tile {
  pointer-events: none;
  border: 0;
  filter: none;
  clip-path: none;
  box-shadow: none;
  opacity: 1;
  transition: none;
  animation: tatamiTileQuietFade 640ms ease both;
}

.menu-gate.gate-draw .tile-serials,
.menu-gate.gate-draw .tile-shorts,
.menu-gate.gate-draw .tile-mangaka,
.menu-gate.gate-draw .tile-archive,
.menu-gate.gate-draw .tile-contact {
  transform: none;
}

.menu-gate.gate-draw .tatami-tile::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 239, 218, 0.12), transparent 46%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.28), transparent 52%, rgba(3, 3, 3, 0.2));
  mix-blend-mode: screen;
  opacity: 0.18;
  transform: none;
}

.menu-gate.gate-draw .tatami-tile.is-gate-trigger {
  opacity: 1;
  animation: tatamiTileQuietFade 640ms ease both;
}

.tatami-tile:hover::before,
.tatami-tile:focus-visible::before {
  background-image:
    var(--tile-image),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(1, 1, 1, 0.58)),
    linear-gradient(90deg, transparent, rgba(214, 164, 81, 0.12) 48%, transparent),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(247, 239, 218, 0.035) 22px 23px);
  background-position: var(--tile-image-position), center, center, center;
  background-repeat: repeat, no-repeat, no-repeat, repeat;
  background-size: var(--tile-image-size), 100% 100%, 100% 100%, 44px 44px;
  background-blend-mode: screen, multiply, screen, screen;
  opacity: 0.26;
  transform: none;
}

.tatami-tile:hover::after,
.tatami-tile:focus-visible::after {
  opacity: 1;
  transform: translateX(16%) skewX(-8deg);
}

.tatami-tile span,
.tatami-tile small {
  position: relative;
  z-index: 1;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(5px);
}

.tatami-tile span {
  display: inline-block;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.tatami-tile small {
  display: inline-flex;
  width: fit-content;
  padding-bottom: 4px;
  color: rgba(234, 194, 112, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.tatami-tile small::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.14em;
  bottom: 0;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(247, 239, 218, 0.92), rgba(214, 164, 81, 0.82), transparent);
  box-shadow: 0 0 10px rgba(214, 164, 81, 0.28);
  opacity: 0.82;
  transform: scaleX(0.62);
  transform-origin: left center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.tatami-tile:hover span,
.tatami-tile:hover small,
.tatami-tile:focus-visible span,
.tatami-tile:focus-visible small {
  opacity: 1;
  transform: translateY(0);
}

.tatami-tile:hover small::after,
.tatami-tile:focus-visible small::after {
  opacity: 1;
  transform: scaleX(1);
}

.tile-serials {
  --panel-accent: 226, 47, 117;
  --panel-accent-2: 31, 181, 169;
  left: 6.2%;
  top: 6.2%;
  width: 25.4%;
  height: 58.9%;
  transition-delay: 80ms;
}

.tile-serials,
.tile-shorts,
.tile-archive {
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.tile-serials span,
.tile-shorts span,
.tile-archive span {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.tile-shorts {
  --panel-accent: 63, 43, 133;
  --panel-accent-2: 247, 239, 218;
  left: 38.1%;
  top: 6.2%;
  width: 26.7%;
  height: 58.9%;
  transition-delay: 180ms;
}

.tile-mangaka {
  --panel-accent: 31, 181, 169;
  --panel-accent-2: 226, 47, 117;
  left: 69%;
  top: 6.2%;
  width: 24.7%;
  height: 25.5%;
  transition-delay: 280ms;
}

.tile-mangaka span {
  font-size: 1.06rem;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.tile-archive {
  --panel-accent: 113, 119, 53;
  --panel-accent-2: 240, 207, 134;
  left: 66.7%;
  top: 38.1%;
  width: 27%;
  height: 55.6%;
  transition-delay: 380ms;
}

.tile-contact {
  --panel-accent: 185, 92, 42;
  --panel-accent-2: 63, 43, 133;
  left: 6.2%;
  top: 67%;
  width: 58.6%;
  height: 26.7%;
  transition-delay: 480ms;
}

.tile-contact {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
}

.tile-contact span {
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.gate-caption {
  max-width: 42rem;
  margin: 22px 0 0;
  color: rgba(247, 239, 217, 0.72);
  line-height: 1.8;
  text-align: center;
}

.reader-view {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 126px);
  display: none;
  opacity: 1;
  transform: none;
  transition: none;
}

.reader-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.04) 0 1px, transparent 1px 78px),
    linear-gradient(rgba(234, 223, 201, 0.028) 0 1px, transparent 1px 78px),
    radial-gradient(ellipse at 82% 10%, rgba(212, 164, 81, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(6, 5, 4, 0.92), rgba(4, 4, 4, 0.62) 48%, rgba(9, 7, 5, 0.92));
  background-size: 78px 78px, 78px 78px, auto, auto;
}

.reader-mode .reader-view {
  display: block;
}

.reader-topline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}

.back-button {
  display: none;
  min-width: 136px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(8, 7, 5, 0.66);
  cursor: pointer;
}

.reader-topline h2 {
  margin: 6px 0 0;
  font-size: 2.8rem;
  line-height: 1;
  font-family: var(--font-title);
}

.reader-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
}

.section-mode .reader-layout {
  grid-template-columns: 1fr;
}

.section-mode .reader-menu {
  display: none;
}

.section-mode .reader-main {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.manga-reader-mode .reader-layout {
  grid-template-columns: 1fr;
}

.manga-reader-mode .reader-menu {
  display: none;
}

.manga-reader-mode .reader-main {
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 164, 81, 0.08), transparent 36%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    transparent;
  background-size: auto, 72px 72px, auto;
  box-shadow: none;
  backdrop-filter: none;
}

.manga-reader-mode .reader-meta {
  display: none;
}

.reader-menu,
.reader-main {
  border: 1px solid rgba(212, 164, 81, 0.26);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.08), transparent 34%),
    rgba(5, 5, 5, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.reader-menu {
  align-self: start;
  position: sticky;
  top: 98px;
  padding: 16px;
  box-shadow:
    inset 4px 0 0 rgba(212, 164, 81, 0.48),
    var(--shadow);
}

.menu-block + .menu-block {
  margin-top: 18px;
}

.menu-label {
  margin: 0 0 10px;
  font-size: 0.76rem;
}

.work-list,
.chapter-list {
  display: grid;
  gap: 8px;
}

.work-button,
.chapter-button {
  position: relative;
  width: 100%;
  padding: 13px 12px 13px 16px;
  border: 1px solid rgba(212, 164, 81, 0.2);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.work-button::before,
.chapter-button::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 7px;
  width: 2px;
  background: rgba(212, 164, 81, 0.32);
}

.work-button:hover,
.chapter-button:hover {
  border-color: rgba(212, 164, 81, 0.52);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.18), transparent 50%),
    rgba(255, 255, 255, 0.055);
  transform: translateX(4px);
}

.work-button.is-active,
.chapter-button.is-active {
  border-color: rgba(212, 164, 81, 0.8);
  background: rgba(212, 164, 81, 0.12);
}

.work-button strong,
.chapter-button strong {
  display: block;
  margin-bottom: 4px;
}

.work-button small,
.chapter-button small {
  color: var(--muted);
}

.template-block code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid rgba(212, 164, 81, 0.22);
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.38);
  line-height: 1.6;
}

.site-shell.mangaka-detail-mode .reader-menu .menu-block:nth-of-type(2),
.site-shell.mangaka-detail-mode .reader-menu .template-block,
.site-shell.mangaka-detail-mode #reader-count {
  display: none;
}

.site-shell.mangaka-detail-mode .reader-menu {
  padding-bottom: 18px;
}

.site-shell.mangaka-detail-mode .work-list {
  gap: 10px;
}

.reader-main {
  padding: 16px;
  min-height: 72vh;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-color: rgba(212, 164, 81, 0.55) rgba(0, 0, 0, 0.28);
}

.reader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
  color: var(--muted);
}

.reader-meta p {
  margin: 0;
}

.page-stack {
  display: grid;
  gap: 14px;
}

.manga-stack {
  display: block;
  width: 100%;
  min-width: 100%;
  margin-inline: auto;
  padding: 0 0 32px;
}

.manga-reader {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 100%;
  margin: 0 auto;
  padding: 0 0 20px;
}

.manga-reader-toolbar {
  position: sticky;
  top: 10px;
  left: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: center;
  width: min(calc(100vw - 48px), 1040px);
  min-width: min(360px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 10px 12px 14px;
  border: 1px solid rgba(212, 164, 81, 0.22);
  color: rgba(247, 239, 217, 0.78);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.1), transparent 48%),
    rgba(4, 4, 4, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.manga-reader-title {
  max-width: 22rem;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manga-reader-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid rgba(212, 164, 81, 0.22);
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.028);
  font-family: var(--font-ui);
  font-size: 0.86rem;
}

.manga-reader-toolbar button {
  padding: 7px 10px;
  border: 1px solid rgba(212, 164, 81, 0.25);
  color: rgba(247, 239, 217, 0.76);
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.manga-reader-toolbar button:hover {
  color: var(--ink);
  border-color: rgba(240, 207, 134, 0.6);
  background: rgba(212, 164, 81, 0.14);
}

.manga-reader-hint {
  color: rgba(247, 239, 217, 0.42);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

.manga-reader-progress {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.manga-reader-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(212, 164, 81, 0.35), rgba(240, 207, 134, 0.9));
  transition: width 240ms ease;
}

.manga-reader-page-slider {
  --reader-slider-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(calc(100vw - 48px), 680px);
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(212, 164, 81, 0.22);
  color: rgba(247, 239, 217, 0.72);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.1), transparent 52%),
    rgba(4, 4, 4, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manga-reader-page-slider input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.manga-reader-page-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(247, 239, 217, 0.18) 0 calc(100% - var(--reader-slider-progress)), rgba(240, 207, 134, 0.86) calc(100% - var(--reader-slider-progress)) 100%);
}

.manga-reader-page-slider input[type="range"]::-moz-range-track {
  height: 2px;
  border: 0;
  background: rgba(247, 239, 217, 0.18);
}

.manga-reader-page-slider input[type="range"]::-moz-range-progress {
  height: 2px;
  background: rgba(240, 207, 134, 0.86);
}

.manga-reader-page-slider input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border: 1px solid rgba(240, 207, 134, 0.7);
  border-radius: 999px;
  -webkit-appearance: none;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 248, 220, 0.95), rgba(240, 207, 134, 0.88) 52%, rgba(109, 68, 24, 0.9));
  box-shadow:
    0 0 0 4px rgba(212, 164, 81, 0.08),
    0 0 18px rgba(212, 164, 81, 0.24);
}

.manga-reader-page-slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(240, 207, 134, 0.7);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 248, 220, 0.95), rgba(240, 207, 134, 0.88) 52%, rgba(109, 68, 24, 0.9));
  box-shadow:
    0 0 0 4px rgba(212, 164, 81, 0.08),
    0 0 18px rgba(212, 164, 81, 0.24);
}

.page-slider-label,
.manga-reader-page-slider output {
  white-space: nowrap;
}

.manga-reader-page-slider output {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.manga-reader-viewport {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100vh - 146px);
  overflow: auto;
  cursor: default;
}

.manga-pages {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  min-width: min(100%, calc(100vw - 32px));
  margin: 0 auto;
  perspective: 1400px;
}

.manga-reader.is-ltr-reader:not(.is-scroll-reader) .manga-pages {
  flex-direction: row;
}

.manga-page-frame {
  position: relative;
  display: none;
  justify-items: center;
  flex: 0 0 auto;
  justify-self: center;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 52%),
    transparent;
  box-shadow:
    0 28px 92px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(212, 164, 81, 0.1);
}

.manga-page-frame.is-active-page {
  display: grid;
  animation: pageAppear 260ms ease both;
}

.manga-page-frame.is-load-error::after {
  content: "SOURCE FALLBACK";
  justify-self: end;
  margin-top: 8px;
  color: rgba(240, 207, 134, 0.52);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.manga-page-frame.is-active-page + .manga-page-frame.is-active-page {
  margin-inline-start: -1px;
}

.manga-pages .manga-page-frame:first-child .comic-page {
  transform-origin: left center;
}

.manga-pages .manga-page-frame:last-child .comic-page {
  transform-origin: right center;
}

.manga-page-blank {
  width: min(49vw, 900px);
  max-width: calc((100vw - 40px) / 2);
  height: min(calc(100vh - 160px), 1360px);
  min-height: 420px;
  border: 1px solid rgba(212, 164, 81, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 44%),
    rgba(255, 255, 255, 0.012);
  box-shadow: none;
}

.manga-page-blank-label {
  align-self: center;
  justify-self: center;
  color: rgba(247, 239, 217, 0.08);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.manga-reader.is-intro-cover-turn .manga-page-cover {
  order: 1;
}

.manga-reader.is-intro-cover-turn .manga-page-frame[data-page-index="0"] {
  order: 2;
}

.manga-page-cover .comic-page {
  background: #050505;
}

.manga-page-frame figcaption {
  display: none;
  color: rgba(247, 239, 217, 0.44);
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.manga-reader-hitbox {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 40%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.manga-reader-hitbox::after {
  position: absolute;
  top: 50%;
  padding: 9px 12px;
  border: 1px solid transparent;
  color: rgba(247, 239, 217, 0.0);
  background: rgba(4, 4, 4, 0.0);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.manga-reader-hitbox:hover::after {
  color: rgba(247, 239, 217, 0.56);
  border-color: rgba(212, 164, 81, 0.38);
  background: rgba(4, 4, 4, 0.24);
}

.manga-reader-hitbox-left {
  left: 0;
}

.manga-reader-hitbox-left::after {
  left: 18px;
  content: "NEXT";
}

.manga-reader-hitbox-right {
  right: 0;
}

.manga-reader-hitbox-right::after {
  right: 18px;
  content: "PREV";
}

.manga-reader.is-ltr-reader .manga-reader-hitbox-left::after {
  content: "PREV";
}

.manga-reader.is-ltr-reader .manga-reader-hitbox-right::after {
  content: "NEXT";
}

.manga-reader.is-ltr-reader .manga-reader-page-slider input[type="range"]::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, rgba(240, 207, 134, 0.86) 0 var(--reader-slider-progress), rgba(247, 239, 217, 0.18) var(--reader-slider-progress) 100%);
}

.manga-reader-continuation {
  border: 1px solid rgba(212, 164, 81, 0.28);
  color: rgba(247, 239, 217, 0.78);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.14), transparent 58%),
    rgba(3, 3, 3, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-family: var(--font-ui);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.manga-reader-continuation:hover,
.manga-reader-continuation:focus-visible {
  color: var(--ink);
  border-color: rgba(240, 207, 134, 0.56);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.18), transparent 58%),
    rgba(12, 10, 6, 0.88);
}

.manga-reader-continuation span,
.manga-reader-continuation small {
  color: rgba(240, 207, 134, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manga-reader-continuation strong {
  color: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.manga-reader-continuation small {
  overflow: hidden;
  max-width: 100%;
  color: rgba(247, 239, 217, 0.52);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manga-reader-continuation-overlay {
  position: absolute;
  bottom: clamp(18px, 3vh, 34px);
  z-index: 6;
  display: none;
  width: min(280px, 38vw);
  padding: 13px 15px;
  gap: 5px;
  backdrop-filter: blur(16px);
}

.manga-reader-continuation-prev.manga-reader-continuation-overlay {
  right: clamp(14px, 2vw, 28px);
}

.manga-reader-continuation-next.manga-reader-continuation-overlay {
  left: clamp(14px, 2vw, 28px);
}

.manga-reader.is-ltr-reader .manga-reader-continuation-prev.manga-reader-continuation-overlay {
  right: auto;
  left: clamp(14px, 2vw, 28px);
}

.manga-reader.is-ltr-reader .manga-reader-continuation-next.manga-reader-continuation-overlay {
  right: clamp(14px, 2vw, 28px);
  left: auto;
}

.manga-reader.is-at-reader-start:not(.is-scroll-reader) .manga-reader-continuation-prev.manga-reader-continuation-overlay,
.manga-reader.is-at-reader-end:not(.is-scroll-reader) .manga-reader-continuation-next.manga-reader-continuation-overlay {
  display: grid;
}

.manga-reader-continuation-inline {
  display: none;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px 20px;
  gap: 6px;
}

.manga-reader.is-scroll-reader .manga-reader-continuation-inline {
  display: grid;
}

.manga-reader.is-scroll-reader .manga-reader-viewport {
  min-height: auto;
  overflow: visible;
}

.manga-reader.is-scroll-reader .manga-pages {
  flex-direction: column;
  gap: 34px;
  width: 100%;
}

.manga-reader.is-scroll-reader .manga-page-frame {
  display: grid;
  width: min(100%, 980px);
  max-width: none;
}

.manga-reader.is-scroll-reader .manga-page-blank {
  display: none;
}

.manga-reader.is-scroll-reader .manga-page-cover {
  display: none !important;
}

.manga-reader.is-scroll-reader .manga-page-frame figcaption {
  display: block;
  justify-self: end;
  margin-top: 8px;
}

.manga-reader.is-scroll-reader .manga-reader-hitbox {
  display: none;
}

.manga-reader.is-actual-size .manga-reader-viewport {
  min-height: auto;
  overflow: auto;
}

.manga-reader.is-actual-size .manga-pages {
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  min-width: 100%;
}

.manga-reader.is-scroll-reader.is-actual-size .manga-pages {
  width: 100%;
}

.manga-reader.is-actual-size .manga-page-frame {
  width: auto;
  max-width: none;
}

.manga-reader.is-actual-size .comic-page {
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.manga-reader:not(.is-actual-size) .comic-page {
  width: auto;
  max-width: min(49vw, 900px);
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.manga-reader.is-scroll-reader:not(.is-actual-size) .comic-page {
  max-width: min(100%, 980px);
  max-height: none;
}

@keyframes pageAppear {
  from {
    opacity: 0;
    transform: translateX(18px) rotateY(-4deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0deg);
  }
}

@keyframes tatamiGateSoftExit {
  0% {
    opacity: 1;
    filter: none;
  }
  58% {
    opacity: 0.92;
    filter: saturate(0.95);
  }
  100% {
    opacity: 0;
    filter: blur(8px) saturate(0.86);
  }
}

@keyframes tatamiCurtainPass {
  0% {
    opacity: 0;
    transform: translateX(-72%) scaleX(0.4);
  }
  42% {
    opacity: 0.9;
    transform: translateX(0) scaleX(1.08);
  }
  100% {
    opacity: 0;
    transform: translateX(72%) scaleX(0.42);
  }
}

@keyframes tatamiEmblemFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.12;
    transform: translateY(6px) scale(0.992);
  }
}

@keyframes tatamiTileQuietFade {
  0% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0.18;
    transform: none;
  }
}

@keyframes yojohanBackdropFlash {
  0% {
    opacity: 0.36;
    filter: contrast(1) saturate(0.8);
  }
  36% {
    opacity: 0.92;
    filter: contrast(1.4) saturate(1.45);
  }
  100% {
    opacity: 0.66;
    filter: contrast(1.12) saturate(1.08);
  }
}

@keyframes yojohanRoomSnap {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    filter: contrast(1) saturate(1);
  }
  28% {
    transform: translateY(-8px) scale(1.045) rotate(-2.6deg) skewX(-2deg);
    filter: contrast(1.28) saturate(1.34);
  }
  52% {
    transform: translateY(5px) scale(0.985) rotate(1.4deg) skewX(1deg);
  }
  100% {
    transform: translateY(-3px) scale(1.01) rotate(-1deg);
    filter: contrast(1.12) saturate(1.06);
  }
}

@keyframes yojohanTriggerBurst {
  0% {
    opacity: 1;
    clip-path: polygon(0 4%, 96% 0, 100% 92%, 4% 100%);
  }
  24% {
    opacity: 1;
    transform: translate(0, 0) scale(1.08) rotate(-2deg);
    clip-path: polygon(5% 0, 100% 6%, 94% 100%, 0 88%);
  }
  58% {
    opacity: 0.72;
    transform: translate(0, 0) scale(1.18) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(1.32) rotate(-7deg);
    clip-path: polygon(52% 0, 100% 48%, 54% 100%, 0 52%);
  }
}

@keyframes yojohanFrameA {
  0% {
    opacity: 0;
    transform: rotate(7deg) skewX(-12deg) translateY(-24px) scale(0.78);
  }
  28% {
    opacity: 1;
    transform: rotate(1deg) skewX(-12deg) translateY(0) scale(1.03);
  }
  100% {
    opacity: 0.88;
    transform: rotate(7deg) skewX(-12deg) translateY(0) scale(1);
  }
}

@keyframes yojohanFrameB {
  0% {
    opacity: 0;
    transform: rotate(-8deg) skewX(10deg) translateY(34px) scale(0.8);
  }
  34% {
    opacity: 1;
    transform: rotate(-2deg) skewX(10deg) translateY(0) scale(1.04);
  }
  100% {
    opacity: 0.86;
    transform: rotate(-8deg) skewX(10deg) translateY(0) scale(1);
  }
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  .manga-reader-toolbar {
    position: sticky;
    top: 0;
  }

  .manga-reader-viewport {
    min-height: auto;
    overflow: visible;
  }

  .manga-pages {
    flex-direction: column;
    gap: 22px;
  }

  .manga-page-frame,
  .manga-page-frame.is-active-page {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-shadow: none;
  }

  .manga-page-blank,
  .manga-page-blank.is-active-page {
    display: none;
  }

  .manga-page-frame figcaption {
    display: block;
    justify-self: end;
    margin-top: 8px;
  }

  .manga-reader-hitbox {
    display: none;
  }

  .manga-reader:not(.is-actual-size) .comic-page,
  .manga-reader.is-scroll-reader:not(.is-actual-size) .comic-page {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}


.index-stack {
  gap: 16px;
}

.content-stack {
  display: grid;
  gap: 14px;
}

.section-index {
  display: grid;
  gap: 0;
}

.matogrosso-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(212, 164, 81, 0.28);
  background:
    linear-gradient(90deg, rgba(240, 207, 134, 0.28), rgba(212, 164, 81, 0.1)),
    rgba(212, 164, 81, 0.28);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.section-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 13px 16px;
  border: 0;
  color: rgba(247, 239, 217, 0.72);
  text-align: left;
  background: rgba(5, 5, 5, 0.84);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.section-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 32%, rgba(240, 207, 134, 0.12) 46%, transparent 60%);
  opacity: 0;
  transform: translateX(-34%);
  transition: opacity 180ms ease, transform 260ms ease;
}

.section-tab > * {
  position: relative;
}

.section-tab span {
  font-size: 0.98rem;
}

.section-tab small {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 164, 81, 0.34);
  font-family: var(--font-ui);
}

.section-tab.is-active,
.section-tab:hover {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.18), transparent 62%),
    rgba(8, 7, 5, 0.94);
}

.section-tab:hover::before,
.section-tab:focus-visible::before,
.section-tab.is-active::before {
  opacity: 1;
  transform: translateX(0);
}

.section-tab:hover {
  transform: translateY(-1px);
}

.section-search-row {
  display: flex;
  align-items: stretch;
  gap: 1px;
  border: 1px solid rgba(212, 164, 81, 0.24);
  border-top: 0;
  background: rgba(212, 164, 81, 0.2);
}

.section-search {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 50px;
  padding: 11px 16px;
  background: rgba(5, 5, 5, 0.74);
}

.section-search span {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.section-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.section-search input::placeholder {
  color: rgba(186, 169, 135, 0.58);
}

.search-scope-toggle {
  display: flex;
  gap: 1px;
  background: rgba(212, 164, 81, 0.16);
}

.search-scope-toggle button {
  min-width: 58px;
  border: 0;
  color: rgba(186, 169, 135, 0.72);
  background: rgba(5, 5, 5, 0.74);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.search-scope-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.2), transparent 58%),
    rgba(8, 7, 5, 0.92);
}

.search-scope-toggle button:hover,
.search-scope-toggle button:focus-visible {
  color: var(--ink);
}

.section-search-clear {
  min-width: 82px;
  border: 0;
  color: var(--muted);
  background: rgba(5, 5, 5, 0.74);
  cursor: pointer;
  font-family: var(--font-ui);
}

.section-search-clear:hover,
.section-search-clear:focus-visible {
  color: var(--ink);
  background: rgba(8, 7, 5, 0.92);
}

.section-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 24px;
  align-items: start;
}

.section-index {
  min-width: 0;
}

.section-index-head {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  border: 1px solid rgba(212, 164, 81, 0.26);
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.036);
}

.section-index-copy {
  min-width: 0;
}

.section-index-head::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: min(34vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 207, 134, 0.5));
}

.section-index-head p {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-index-head h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.95;
  font-family: var(--font-title);
}

.section-index-head span {
  color: rgba(247, 239, 217, 0.68);
  line-height: 1.8;
}

.work-index-list {
  display: grid;
  gap: 0;
  border: 1px solid rgba(212, 164, 81, 0.22);
  border-top: 0;
  background: rgba(5, 5, 5, 0.4);
}

.section-side-tools {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 14px;
}

.tool-panel {
  border: 1px solid rgba(212, 164, 81, 0.24);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.1), transparent 48%),
    rgba(5, 5, 5, 0.66);
  padding: 20px;
}

.tool-panel p {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.tool-panel h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.tool-panel span {
  color: rgba(247, 239, 217, 0.7);
  line-height: 1.75;
}

.tool-link-list {
  display: grid;
  gap: 8px;
}

.tool-link-empty {
  display: block;
  color: rgba(247, 239, 217, 0.62);
  line-height: 1.7;
}

.tool-feature-card,
.tool-latest-list button {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.tool-feature-card {
  padding: 0;
}

.tool-feature-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(212, 164, 81, 0.2);
  filter: saturate(0.92) contrast(1.06);
}

.tool-feature-card strong,
.tool-latest-list strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.tool-feature-card span,
.tool-latest-list span {
  color: rgba(247, 239, 217, 0.66);
  line-height: 1.65;
}

.tool-latest-list {
  display: grid;
  gap: 1px;
  background: rgba(212, 164, 81, 0.14);
}

.tool-latest-list button {
  padding: 11px 0;
  background: rgba(5, 5, 5, 0.36);
}

.tool-latest-list button:hover,
.tool-latest-list button:focus-visible,
.tool-feature-card:hover,
.tool-feature-card:focus-visible {
  color: var(--ink);
}

.tool-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 164, 81, 0.14);
  color: rgba(247, 239, 217, 0.78);
  text-decoration: none;
}

.tool-link-list a::after {
  content: "↗";
  color: var(--gold);
  font-size: 0.76rem;
}

.tool-link-list a:hover,
.tool-link-list a:focus-visible {
  color: var(--ink);
}

.about-stack {
  display: block;
}

.about-page {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 164, 81, 0.26);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.12), transparent 48%),
    rgba(5, 5, 5, 0.54);
}

.about-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(240, 207, 134, 0.16), transparent) 0 0 / 46% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(240, 207, 134, 0.1), transparent) 100% 0 / 1px 58% no-repeat;
  opacity: 0.5;
  animation: aboutLineDrift 12s ease-in-out infinite alternate;
}

.about-hero {
  position: relative;
  padding: clamp(30px, 6vw, 76px) clamp(22px, 5vw, 70px);
  border-bottom: 1px solid rgba(212, 164, 81, 0.22);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.about-hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: clamp(18px, 5vw, 60px);
  width: min(34vw, 280px);
  height: min(28vw, 180px);
  border: 1px solid rgba(212, 164, 81, 0.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: skewX(-12deg);
  opacity: 0.42;
}

.about-quiet-mark {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  top: clamp(22px, 5vw, 64px);
  display: grid;
  place-items: center;
  width: clamp(44px, 8vw, 88px);
  height: clamp(44px, 8vw, 88px);
  border: 1px solid rgba(212, 164, 81, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.34)),
    url("./assets/yojohan-ukiyo-icon.svg") center / 88% auto no-repeat,
    rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 214, 0.04),
    0 0 36px rgba(212, 164, 81, 0.08);
  font-style: normal;
  animation: aboutSealBreath 6s ease-in-out infinite;
}

.about-quiet-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(240, 207, 134, 0.14);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.32);
}

.about-hero p {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.about-hero h3 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.94;
}

.about-hero span {
  display: block;
  max-width: 720px;
  margin-top: 22px;
  color: rgba(247, 239, 217, 0.72);
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1px;
  background: rgba(212, 164, 81, 0.18);
}

.about-copy,
.about-facts {
  padding: clamp(24px, 4vw, 48px);
  background: rgba(4, 4, 4, 0.68);
}

.about-copy {
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(240, 207, 134, 0.08), transparent 24%),
    linear-gradient(rgba(234, 223, 201, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 223, 201, 0.024) 1px, transparent 1px),
    rgba(4, 4, 4, 0.68);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.about-copy::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border-left: 1px solid rgba(212, 164, 81, 0.16);
  border-bottom: 1px solid rgba(212, 164, 81, 0.08);
  opacity: 0.68;
}

.about-copy p {
  position: relative;
  max-width: 760px;
  margin: 0;
  color: rgba(247, 239, 217, 0.78);
  font-size: 1rem;
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: 1.2em;
}

.about-facts {
  display: grid;
  align-content: start;
  gap: 1px;
  background: rgba(212, 164, 81, 0.18);
}

.about-fact {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  background: rgba(5, 5, 5, 0.74);
}

.about-fact strong {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-fact span {
  color: var(--ink);
  line-height: 1.5;
}

.about-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid rgba(212, 164, 81, 0.22);
  border-bottom: 1px solid rgba(212, 164, 81, 0.22);
  background: rgba(212, 164, 81, 0.2);
}

.about-social-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 92px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.1), transparent 54%),
    rgba(5, 5, 5, 0.74);
  transition: color 160ms ease, background 160ms ease;
}

.about-social-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 164, 81, 0.34);
  color: var(--gold-bright);
  background:
    radial-gradient(circle at 36% 26%, rgba(240, 207, 134, 0.16), transparent 48%),
    rgba(3, 3, 3, 0.42);
}

.about-social-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-social-icon-weibo svg path:first-child,
.about-social-icon-telegram svg path:first-child {
  fill: rgba(240, 207, 134, 0.12);
}

.about-social-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.about-social-name {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.2;
}

.about-social-link small {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.about-social-link:not(.is-disabled):hover,
.about-social-link:not(.is-disabled):focus-visible {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.2), transparent 58%),
    rgba(8, 7, 5, 0.92);
}

.about-social-link:not(.is-disabled):hover .about-social-icon,
.about-social-link:not(.is-disabled):focus-visible .about-social-icon {
  border-color: rgba(240, 207, 134, 0.62);
  color: var(--ink);
  background:
    radial-gradient(circle at 40% 30%, rgba(240, 207, 134, 0.34), transparent 50%),
    rgba(212, 164, 81, 0.22);
}

@keyframes aboutLineDrift {
  from {
    background-position: -22% 0, 100% -12%;
  }
  to {
    background-position: 122% 0, 100% 112%;
  }
}

@keyframes aboutSealBreath {
  0%, 100% {
    opacity: 0.54;
    transform: translateY(0);
  }
  50% {
    opacity: 0.82;
    transform: translateY(-4px);
  }
}

.about-social-link.is-disabled {
  color: rgba(247, 239, 217, 0.46);
  cursor: default;
}

.about-social-link.is-disabled .about-social-icon {
  color: rgba(186, 169, 135, 0.5);
}

.about-notes {
  padding: 20px clamp(22px, 4vw, 48px);
  background: rgba(4, 4, 4, 0.52);
}

.about-notes p {
  max-width: 880px;
  margin: 0;
  color: rgba(186, 169, 135, 0.78);
  font-size: 0.88rem;
  line-height: 1.8;
}

.work-index-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px minmax(124px, 170px) minmax(0, 1fr) minmax(132px, 170px);
  gap: 26px;
  align-items: center;
  width: 100%;
  padding: 34px 24px;
  border: 0;
  border-top: 1px solid rgba(212, 164, 81, 0.18);
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(234, 223, 201, 0.04), transparent 42%),
    rgba(6, 5, 4, 0.62);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.work-index-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(240, 207, 134, 0), rgba(240, 207, 134, 0.68), rgba(240, 207, 134, 0));
  opacity: 0;
  transition: opacity 180ms ease;
}

.work-index-card:hover {
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.18), transparent 44%),
    rgba(11, 9, 7, 0.92);
  box-shadow: inset 0 0 0 1px rgba(240, 207, 134, 0.18);
  transform: translateX(4px);
}

.work-index-card:hover::after,
.work-index-card:focus-visible::after {
  opacity: 1;
}

.index-number {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: rgba(247, 239, 217, 0.26);
  font-family: var(--font-ui);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1;
}

.index-media {
  position: relative;
  align-self: center;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border: 1px solid rgba(212, 164, 81, 0.28);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.12), transparent 45%),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.28);
}

.index-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(234, 223, 201, 0.14);
  filter: saturate(0.9) contrast(1.06);
  transition: filter 180ms ease, transform 180ms ease;
}

.work-index-card:hover .index-media img {
  filter: saturate(1.03) contrast(1.08);
  transform: scale(1.015);
}

.index-media-avatar {
  aspect-ratio: 1 / 1;
}

.index-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 0;
}

.index-body small,
.index-side span {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
}

.index-body strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.7vw, 2.7rem);
  font-weight: 600;
  line-height: 1.18;
}

.index-body em {
  color: var(--gold-bright);
  font-style: normal;
}

.index-body mark {
  padding: 0 0.08em;
  color: var(--ink-dark);
  background: rgba(240, 207, 134, 0.82);
}

.index-body span {
  max-width: 62rem;
  color: rgba(247, 239, 217, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.index-side {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(212, 164, 81, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.index-side b {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.work-collection-card {
  display: block;
  padding: 0;
  cursor: default;
}

.work-collection-main {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(124px, 170px) minmax(0, 1fr) minmax(132px, 170px);
  gap: 26px;
  align-items: center;
  width: 100%;
  min-height: 172px;
  padding: 34px 24px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.work-collection-main:focus-visible {
  outline: 1px solid rgba(240, 207, 134, 0.82);
  outline-offset: -4px;
}

.work-chapter-fold {
  margin: -10px 24px 22px calc(96px + 170px + 76px);
  border-top: 1px solid rgba(212, 164, 81, 0.18);
}

.work-chapter-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  list-style: none;
  cursor: pointer;
}

.work-chapter-fold summary::-webkit-details-marker {
  display: none;
}

.work-chapter-fold summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(212, 164, 81, 0.26);
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.24);
}

.work-chapter-fold[open] summary::after {
  content: "-";
}

.work-chapter-fold summary small {
  color: rgba(247, 239, 217, 0.44);
  font-size: 0.68rem;
}

.work-chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 8px;
  padding: 6px 0 16px;
}

.work-chapter-pill {
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 164, 81, 0.2);
  color: rgba(247, 239, 217, 0.82);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.08), transparent 60%),
    rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.work-chapter-pill:hover,
.work-chapter-pill:focus-visible {
  border-color: rgba(240, 207, 134, 0.5);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.16), transparent 64%),
    rgba(0, 0, 0, 0.32);
}

.work-chapter-pill strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.work-chapter-pill span {
  color: rgba(186, 169, 135, 0.78);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.work-index-list.is-empty {
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.08), transparent 48%),
    rgba(5, 5, 5, 0.68);
}

.search-recommend-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(212, 164, 81, 0.18);
}

.search-recommend-list > p {
  margin: 0;
  padding: 14px 18px;
  color: var(--gold);
  background: rgba(5, 5, 5, 0.48);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.section-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: min(52vh, 460px);
  padding: clamp(34px, 7vw, 82px) 24px;
  color: rgba(247, 239, 217, 0.72);
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(212, 164, 81, 0.14), transparent 32%),
    linear-gradient(rgba(234, 223, 201, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 223, 201, 0.026) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: auto, 56px 56px, 56px 56px, auto;
}

.empty-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(240, 207, 134, 0.4);
  border-radius: 999px;
  color: var(--ink-dark);
  background:
    radial-gradient(circle at 35% 26%, rgba(255, 248, 220, 0.95), rgba(240, 207, 134, 0.88) 46%, rgba(151, 100, 42, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 28px rgba(212, 164, 81, 0.18);
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.section-empty-state p {
  margin: 4px 0 0;
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-empty-state strong {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 600;
}

.section-empty-state > span:not(.empty-seal) {
  max-width: 36rem;
  line-height: 1.8;
}

.section-empty-state button {
  margin-top: 4px;
  padding: 10px 16px;
  border: 1px solid rgba(240, 207, 134, 0.34);
  color: rgba(247, 239, 217, 0.88);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.14), rgba(0, 0, 0, 0.18)),
    rgba(7, 6, 4, 0.78);
  cursor: pointer;
  font-family: var(--font-ui);
}

.section-empty-state button:hover {
  border-color: rgba(240, 207, 134, 0.68);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.22), rgba(0, 0, 0, 0.12)),
    rgba(10, 8, 5, 0.9);
}

.flow-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(212, 164, 81, 0.18);
  color: rgba(247, 239, 217, 0.78);
  background: rgba(255, 255, 255, 0.035);
}

.flow-card.is-active {
  border-color: rgba(212, 164, 81, 0.56);
  background: rgba(212, 164, 81, 0.12);
}

.flow-card strong {
  color: var(--ink);
}

.flow-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.text-panel,
.app-panel {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(212, 164, 81, 0.42);
  color: var(--ink-dark);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.14), transparent 44%),
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 21, 14, 0.06) 1px, transparent 1px),
    rgba(234, 223, 201, 0.92);
  background-size: auto, 24px 24px, 24px 24px, auto;
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.38);
}

.text-panel h3,
.app-panel h3 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.text-panel p,
.app-panel p {
  line-height: 1.9;
}

.text-panel img,
.app-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
}

.article-work-links {
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 21, 14, 0.14);
}

.article-work-links > p {
  margin: 0 0 12px;
  color: rgba(27, 21, 14, 0.58);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.article-work-links > div {
  display: grid;
  gap: 12px;
}

.article-work-card {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  min-height: 116px;
  padding: 10px;
  border: 1px solid rgba(27, 21, 14, 0.18);
  color: var(--ink-dark);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 56%),
    rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-work-card:hover {
  transform: translateX(4px);
  border-color: rgba(27, 21, 14, 0.34);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.22), transparent 56%),
    rgba(255, 255, 255, 0.28);
}

.article-work-image {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(27, 21, 14, 0.16);
  background: rgba(27, 21, 14, 0.08);
}

.article-work-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.article-work-copy {
  display: grid;
  align-content: center;
  gap: 7px;
}

.article-work-copy small,
.article-work-copy span,
.article-work-card b {
  color: rgba(27, 21, 14, 0.62);
  font-family: var(--font-ui);
}

.article-work-copy small,
.article-work-card b {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.article-work-copy strong {
  color: var(--ink-dark);
  font-size: clamp(1.16rem, 2vw, 1.62rem);
  line-height: 1.25;
}

.article-work-copy span {
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-work-card b {
  align-self: center;
  padding: 0 8px;
  writing-mode: vertical-rl;
}

.info-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.info-item,
.tool-card,
.check-item {
  padding: 14px;
  border: 1px solid rgba(27, 21, 14, 0.16);
  background: rgba(255, 255, 255, 0.22);
}

.info-item strong,
.tool-card strong {
  display: block;
  margin-bottom: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 6px 10px;
  border: 1px solid rgba(27, 21, 14, 0.22);
  color: var(--ink-dark);
  background: rgba(212, 164, 81, 0.16);
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.archive-filter {
  padding: 9px 12px;
  border: 1px solid rgba(27, 21, 14, 0.2);
  color: var(--ink-dark);
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.archive-filter.is-active {
  border-color: var(--gold-dim);
  background: rgba(212, 164, 81, 0.24);
}

.archive-list {
  display: grid;
  gap: 10px;
}

.archive-item[hidden] {
  display: none;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comic-page {
  display: block;
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  height: auto;
  block-size: auto;
  max-height: none;
  max-block-size: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(212, 164, 81, 0.34);
  object-fit: contain;
  background: var(--paper);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.38);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes emblemPulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 231, 159, 0.18),
      inset 0 18px 36px rgba(255, 228, 154, 0.14),
      inset 0 -18px 34px rgba(70, 35, 9, 0.24),
      0 30px 86px rgba(0, 0, 0, 0.52);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 231, 159, 0.24),
      inset 0 18px 38px rgba(255, 228, 154, 0.18),
      inset 0 -18px 36px rgba(70, 35, 9, 0.28),
      0 34px 94px rgba(0, 0, 0, 0.58);
  }
}

@keyframes brandBreath {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.88);
    box-shadow:
      0 0 0 1px rgba(212, 164, 81, 0.16),
      0 0 12px rgba(212, 164, 81, 0.12);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(240, 207, 134, 0.28),
      0 0 24px rgba(212, 164, 81, 0.22);
  }
}

@media (max-width: 980px) {
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .reader-menu {
    position: relative;
    top: auto;
  }

  .work-list,
  .chapter-list {
    grid-template-columns: 1fr 1fr;
  }

  .work-index-card {
    grid-template-columns: 70px 138px 1fr;
  }

  .index-side {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(212, 164, 81, 0.18);
    border-left: 0;
  }

  .section-index-layout {
    grid-template-columns: 1fr;
  }

  .section-side-tools {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .tool-section-panel {
    grid-column: 1 / -1;
  }

  .menu-gate h1 {
    width: min(78vh, 560px, 84vw);
  }

  .matogrosso-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar,
  main {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .top-about-link {
    min-width: 92px;
    min-height: 40px;
    padding: 7px 10px;
  }

  .top-about-link span {
    font-size: 0.76rem;
  }

  .top-about-link small {
    font-size: 0.58rem;
  }

  .menu-gate {
    min-height: auto;
    padding-top: 22px;
  }

  .menu-gate h1 {
    width: min(100%, 440px);
    margin-bottom: 16px;
  }

  .tatami-emblem {
    width: min(100%, 460px);
  }

  .tatami-emblem::after {
    inset: 3.4%;
  }

  .tatami-tile {
    padding: 12px;
  }

  .tatami-tile span {
    font-size: 1rem;
  }

  .tatami-tile small {
    font-size: 0.68rem;
  }

  .reader-topline {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .reader-topline h2 {
    font-size: 1.75rem;
  }

  .work-list,
  .chapter-list {
    grid-template-columns: 1fr;
  }

  .matogrosso-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -2px;
    overflow-x: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }

  .matogrosso-tabs::-webkit-scrollbar {
    display: none;
  }

  .section-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid rgba(212, 164, 81, 0.22);
    background: rgba(5, 5, 5, 0.62);
  }

  .section-tab span {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .section-tab small {
    min-width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  .section-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 8px;
    border: 0;
    background: transparent;
  }

  .section-search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(212, 164, 81, 0.22);
    background: rgba(5, 5, 5, 0.62);
  }

  .section-search span {
    display: none;
  }

  .search-scope-toggle {
    border: 1px solid rgba(212, 164, 81, 0.22);
    background: rgba(212, 164, 81, 0.14);
  }

  .search-scope-toggle button {
    min-width: 48px;
    min-height: 36px;
    font-size: 0.68rem;
  }

  .section-search-clear {
    min-width: 58px;
    border: 1px solid rgba(212, 164, 81, 0.22);
    font-size: 0.78rem;
  }

  .work-index-card {
    grid-template-columns: 36px 76px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(212, 164, 81, 0.18);
    background: rgba(6, 5, 4, 0.72);
  }

  .article-work-card {
    grid-template-columns: 1fr;
  }

  .article-work-card b {
    justify-self: start;
    writing-mode: horizontal-tb;
  }

  .work-index-card:hover {
    transform: none;
  }

  .index-number {
    place-items: center;
    min-height: 100%;
    padding: 0;
    border-right: 0;
    font-size: 1.7rem;
  }

  .index-body {
    gap: 6px;
    padding: 0;
  }

  .index-media,
  .index-media-avatar {
    display: block;
    width: 76px;
    height: 76px;
    aspect-ratio: auto;
    padding: 4px;
  }

  .index-side {
    grid-column: 2 / -1;
    display: flex;
    min-height: auto;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(212, 164, 81, 0.16);
    background: rgba(0, 0, 0, 0.18);
  }

  .index-body small {
    font-size: 0.68rem;
  }

  .index-body strong {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .index-body span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .work-index-list {
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .section-side-tools {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tool-panel {
    padding: 14px;
  }

  .tool-section-panel {
    display: none;
  }

  .tool-panel h4 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .section-index-head {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(212, 164, 81, 0.2);
  }

  .section-index-head::after {
    display: none;
  }

  .section-index-head p {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .section-index-head h3 {
    margin-bottom: 0;
    font-size: 1.9rem;
  }

  .section-index-head .section-index-copy > span {
    display: none;
  }

  .section-empty-state {
    padding: 24px 16px;
  }

  .about-hero {
    padding: 26px 16px 30px;
  }

  .about-quiet-mark {
    right: 14px;
    top: 18px;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    opacity: 0.42;
  }

  .about-hero p {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .about-hero h3 {
    font-size: 2.45rem;
  }

  .about-hero span {
    margin-top: 14px;
    font-size: 0.94rem;
  }

  .about-body {
    grid-template-columns: 1fr;
  }

  .about-copy,
  .about-facts {
    padding: 18px 16px;
  }

  .about-copy p {
    font-size: 0.92rem;
  }

  .about-socials {
    grid-template-columns: 1fr 1fr;
  }

  .about-social-link {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 76px;
    gap: 10px;
    padding: 12px;
  }

  .about-social-icon {
    width: 34px;
    height: 34px;
  }

  .about-social-icon svg {
    width: 20px;
    height: 20px;
  }

  .about-notes {
    padding: 16px;
  }

  .manga-stack {
    min-width: 100%;
  }

  .manga-reader,
  .manga-pages {
    min-width: 100%;
  }

  .manga-reader-toolbar {
    justify-content: flex-start;
    width: calc(100vw - 24px);
    margin-inline: 12px;
  }

  .manga-reader-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page::before,
  .about-quiet-mark {
    animation: none;
  }
}



/* 20260428 verified desktop scroll reader fix
   Mobile keeps the original CSS flow. Desktop Scroll/Fit stretches to the reader width;
   Desktop Scroll/Actual uses the bitmap's intrinsic size. Blank frames are excluded
   from actual-page display rules so they cannot reappear. */
@media (min-width: 761px) and (orientation: landscape), (min-width: 901px) {
  .manga-reader.is-scroll-reader .manga-reader-viewport {
    overflow-y: visible;
  }

  .manga-reader.is-scroll-reader .manga-pages {
    width: 100%;
    min-width: 0;
    align-items: center;
  }

  .manga-reader.is-scroll-reader .manga-page-blank,
  .manga-reader.is-scroll-reader .manga-page-blank.is-active-page,
  .manga-reader.is-scroll-reader.is-actual-size .manga-page-blank,
  .manga-reader.is-scroll-reader.is-actual-size .manga-page-blank.is-active-page {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .manga-reader.is-scroll-reader:not(.is-actual-size) .manga-page-frame:not(.manga-page-blank) {
    display: grid;
    width: min(100%, 980px);
    max-width: none;
    margin-inline: auto;
  }

  .manga-reader.is-scroll-reader:not(.is-actual-size) .comic-page {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
  }

  .manga-reader.is-scroll-reader.is-actual-size .manga-reader-viewport {
    overflow-x: auto;
    overflow-y: visible;
  }

  .manga-reader.is-scroll-reader.is-actual-size .manga-pages {
    width: 100%;
    min-width: 100%;
    align-items: center;
  }

  .manga-reader.is-scroll-reader.is-actual-size .manga-page-frame:not(.manga-page-blank) {
    display: table;
    width: auto;
    max-width: none;
    margin: 0 auto 34px;
    padding: 0;
    box-shadow: none;
  }

  .manga-reader.is-scroll-reader.is-actual-size .comic-page {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    inline-size: auto;
    max-inline-size: none;
  }
}

/* 20260428 mobile reader reset
   Phones and portrait tablets are a plain vertical scroll reader: no toolbar, no paged/spread UI,
   no hitboxes, no blank spread page, no fit/actual control surface. */
@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  .manga-reader.is-mobile-reader,
  .manga-reader.is-mobile-reader.is-scroll-reader,
  .manga-reader.is-mobile-reader.is-paged-reader {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .manga-reader.is-mobile-reader .manga-reader-toolbar,
  .manga-reader.is-mobile-reader .manga-reader-hitbox,
  .manga-reader.is-mobile-reader .manga-page-blank,
  .manga-reader.is-mobile-reader .manga-page-frame figcaption {
    display: none !important;
  }

  .manga-reader.is-mobile-reader .manga-reader-viewport {
    min-height: auto;
    overflow: visible;
    padding: 0;
  }

  .manga-reader.is-mobile-reader .manga-pages {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .manga-reader.is-mobile-reader .manga-page-frame,
  .manga-reader.is-mobile-reader .manga-page-frame.is-active-page {
    display: block !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .manga-reader.is-mobile-reader .comic-page {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
  }
}

/* 20260428 hard fix: hide the spread-only blank sheet in every scroll-reader state. */
.manga-reader.is-scroll-reader .manga-pages > .manga-page-frame.manga-page-blank,
.manga-reader.is-scroll-reader .manga-pages > [data-page-index="-1"],
.manga-reader.is-scroll-reader.is-actual-size .manga-pages > .manga-page-frame.manga-page-blank,
.manga-reader.is-scroll-reader.is-actual-size .manga-pages > [data-page-index="-1"] {
  display: none !important;
  visibility: hidden !important;
  inline-size: 0 !important;
  block-size: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* 20260428 desktop reader rebuild
   Manga detail pages behave like a standalone reader: toolbar only, no page header,
   and fit mode scales each visible page against the current viewport. */
.site-shell.manga-reader-mode.detail-mode {
  overflow: visible;
}

.site-shell.manga-reader-mode.detail-mode .topbar,
.site-shell.manga-reader-mode.detail-mode .menu-gate,
.site-shell.manga-reader-mode.detail-mode .reader-topline,
.site-shell.manga-reader-mode.detail-mode .reader-meta,
.site-shell.manga-reader-mode.detail-mode .reader-menu {
  display: none !important;
}

.site-shell.manga-reader-mode.detail-mode main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-shell.manga-reader-mode.detail-mode .reader-view,
.site-shell.manga-reader-mode.detail-mode .reader-layout,
.site-shell.manga-reader-mode.detail-mode .reader-main,
.site-shell.manga-reader-mode.detail-mode .page-stack,
.site-shell.manga-reader-mode.detail-mode .manga-stack {
  width: 100%;
  min-width: 0;
}

.site-shell.manga-reader-mode.detail-mode .reader-view {
  min-height: 100dvh;
  transform: none;
}

.site-shell.manga-reader-mode.detail-mode .reader-layout {
  display: block;
  height: auto;
}

.site-shell.manga-reader-mode.detail-mode .reader-main {
  min-height: 100dvh;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 164, 81, 0.08), transparent 34%),
    #030303;
  box-shadow: none;
  backdrop-filter: none;
}

.site-shell.manga-reader-mode.detail-mode.reader-paged-mode .reader-main,
.site-shell.manga-reader-mode.detail-mode.reader-paged-mode .manga-stack {
  height: 100dvh;
  overflow: hidden;
}

.site-shell.manga-reader-mode.detail-mode.reader-scroll-mode .reader-main,
.site-shell.manga-reader-mode.detail-mode.reader-scroll-mode .manga-stack {
  height: auto;
  overflow: visible;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader {
  --reader-toolbar-height: 58px;
  --reader-fit-gap: clamp(8px, 1.2vw, 18px);
  --reader-fit-side-pad: clamp(10px, 1.8vw, 32px);
  --reader-page-max-width: 100vw;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

.site-shell.manga-reader-mode.detail-mode.reader-paged-mode .manga-reader {
  height: 100dvh;
}

.site-shell.manga-reader-mode.detail-mode.reader-scroll-mode .manga-reader {
  height: auto;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 30;
  justify-self: stretch;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: var(--reader-toolbar-height);
  margin: 0;
  padding: 8px clamp(12px, 1.6vw, 22px) 12px;
  border-width: 0 0 1px;
  border-color: rgba(212, 164, 81, 0.18);
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.07), transparent 44%),
    rgba(3, 3, 3, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-title {
  flex: 1 1 auto;
  max-width: none;
  min-width: 8rem;
  padding-left: 2px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-count {
  border-color: transparent;
  color: rgba(240, 207, 134, 0.82);
  background: transparent;
}

.manga-reader-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(212, 164, 81, 0.2);
  border-radius: 0;
  color: rgba(247, 239, 217, 0.72);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 246, 214, 0.06);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.manga-reader-toolbar button[aria-pressed="true"] {
  color: var(--ink);
  border-color: rgba(240, 207, 134, 0.54);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.16), rgba(0, 0, 0, 0.06)),
    rgba(212, 164, 81, 0.1);
}

.manga-reader-toolbar button:hover,
.manga-reader-toolbar button:focus-visible {
  transform: translateY(-1px);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar .manga-reader-back-button {
  position: static;
  transform: none;
}

.reader-back-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(240, 207, 134, 0.36);
  border-radius: 999px;
  color: var(--ink-dark);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 248, 220, 0.92), rgba(240, 207, 134, 0.86) 48%, rgba(151, 100, 42, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 18px rgba(212, 164, 81, 0.18);
  font-size: 0.82rem;
  line-height: 1;
}

.reader-back-text {
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}

.manga-reader-back-button:hover,
.manga-reader-back-button:focus-visible {
  color: var(--ink);
  border-color: rgba(240, 207, 134, 0.42);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.2), transparent 62%),
    rgba(212, 164, 81, 0.08);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar .manga-reader-back-button:hover,
.site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar .manga-reader-back-button:focus-visible {
  transform: none;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader-viewport {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader) .manga-reader-viewport {
  height: calc(100dvh - var(--reader-toolbar-height));
}

.site-shell.manga-reader-mode.detail-mode .manga-pages {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader) .manga-pages {
  height: calc(100dvh - var(--reader-toolbar-height));
  gap: var(--reader-fit-gap);
  padding: clamp(8px, 1.2vh, 16px) var(--reader-fit-side-pad);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader) .manga-page-frame {
  place-items: center;
  align-self: stretch;
  height: calc(100dvh - var(--reader-toolbar-height) - clamp(16px, 2.4vh, 32px));
  max-height: calc(100dvh - var(--reader-toolbar-height) - clamp(16px, 2.4vh, 32px));
  max-width: var(--reader-page-max-width);
  background: transparent;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(212, 164, 81, 0.08);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-spread-page .manga-pages {
  gap: 0;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-spread-page .manga-page-frame,
.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-spread-page .manga-page-frame.is-active-page + .manga-page-frame.is-active-page {
  box-shadow: none;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-spread-page .manga-page-frame {
  margin-inline: 0;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-spread-page .manga-page-frame.is-active-page + .manga-page-frame.is-active-page {
  margin-inline-start: -1px;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-spread-page .manga-page-frame.is-active-page + .manga-page-frame.is-active-page .comic-page {
  transform: translateX(1px);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-wide-spread-turn .manga-page-frame.is-wide-spread-page.is-active-page {
  width: auto;
  max-width: var(--reader-spread-max-width);
  overflow: hidden;
  box-shadow: none;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-wide-spread-turn .manga-page-frame.is-wide-spread-page.is-active-page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: clamp(3px, 0.32vw, 7px);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 28%, rgba(0, 0, 0, 0.36) 50%, rgba(255, 255, 255, 0.04) 72%, rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 18% 82%, rgba(0, 0, 0, 0.2));
  box-shadow:
    -10px 0 22px rgba(0, 0, 0, 0.14),
    10px 0 22px rgba(255, 255, 255, 0.035);
  opacity: 0.72;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader):not(.is-actual-size) .comic-page {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - var(--reader-toolbar-height) - clamp(16px, 2.4vh, 32px));
  object-fit: contain;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-actual-size .manga-reader-viewport {
  overflow: auto;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-actual-size .manga-pages {
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  height: max-content;
  min-height: 100%;
  padding: 18px 24px;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-actual-size .manga-page-frame {
  align-self: flex-start;
  height: auto;
  max-width: none;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-actual-size.is-wide-spread-turn .manga-page-frame.is-wide-spread-page.is-active-page {
  max-width: none;
  overflow: visible;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader).is-actual-size .comic-page {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader.is-scroll-reader {
  grid-template-rows: auto auto;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader.is-scroll-reader .manga-reader-viewport {
  height: auto;
  min-height: calc(100dvh - var(--reader-toolbar-height));
  overflow: visible;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader.is-scroll-reader .manga-pages {
  width: min(100%, 1180px);
  min-width: 0;
  height: auto;
  padding: clamp(14px, 2vw, 28px);
  gap: clamp(18px, 2.2vw, 34px);
}

.site-shell.manga-reader-mode.detail-mode .manga-reader.is-scroll-reader:not(.is-actual-size) .manga-page-frame:not(.manga-page-blank) {
  width: min(100%, 1120px);
  max-width: none;
  margin-inline: auto;
}

.site-shell.manga-reader-mode.detail-mode .manga-reader.is-scroll-reader:not(.is-actual-size) .comic-page {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  .site-shell.manga-reader-mode.detail-mode .reader-main,
  .site-shell.manga-reader-mode.detail-mode .manga-stack,
  .site-shell.manga-reader-mode.detail-mode .manga-reader {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-viewport {
    height: auto;
    overflow: visible;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader.is-mobile-reader .manga-reader-back-button {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    z-index: 40;
    min-height: 32px;
    padding: 7px 10px;
    border-color: rgba(240, 207, 134, 0.16);
    background: rgba(4, 4, 4, 0.5);
    backdrop-filter: blur(14px);
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader.is-mobile-reader .reader-back-mark {
    display: none;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader.is-mobile-reader .reader-back-text {
    font-size: 0.72rem;
  }
}

.comment-panel {
  width: min(100%, 920px);
  margin: 0 auto;
  border: 1px solid rgba(212, 164, 81, 0.32);
  color: rgba(247, 239, 217, 0.82);
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.1), transparent 38%),
    linear-gradient(rgba(240, 207, 134, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 207, 134, 0.032) 1px, transparent 1px),
    rgba(5, 5, 5, 0.74);
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.comment-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(212, 164, 81, 0.18);
  cursor: pointer;
  font-family: var(--font-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comment-panel summary::-webkit-details-marker {
  display: none;
}

.comment-panel summary::after {
  content: "+";
  color: rgba(240, 207, 134, 0.62);
  font-size: 1rem;
}

.comment-panel[open] summary::after {
  content: "-";
}

.comment-panel summary strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid rgba(240, 207, 134, 0.28);
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.comment-inner {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.comment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(212, 164, 81, 0.14);
  padding-bottom: 12px;
}

.comment-heading p,
.comment-heading span,
.comment-status,
.comment-actions p,
.comment-empty {
  margin: 0;
}

.comment-heading p {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.comment-heading span {
  color: rgba(247, 239, 217, 0.48);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.comment-status {
  color: rgba(247, 239, 217, 0.54);
  font-size: 0.86rem;
}

.comment-status[data-tone="ok"] {
  color: rgba(240, 207, 134, 0.72);
}

.comment-status[data-tone="error"] {
  color: rgba(255, 180, 150, 0.84);
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-empty {
  border: 1px dashed rgba(212, 164, 81, 0.24);
  padding: 14px;
  color: rgba(247, 239, 217, 0.48);
}

.comment-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(212, 164, 81, 0.18);
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(212, 164, 81, 0.07), transparent 52%),
    rgba(255, 255, 255, 0.026);
}

.comment-item header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.comment-item strong {
  color: var(--ink);
}

.comment-item span,
.comment-item time {
  color: rgba(247, 239, 217, 0.46);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.comment-item p {
  margin: 0;
  color: rgba(247, 239, 217, 0.78);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.comment-form {
  position: relative;
  display: grid;
  gap: 12px;
}

.comment-form label {
  display: grid;
  gap: 7px;
  color: rgba(247, 239, 217, 0.58);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(212, 164, 81, 0.24);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  font: inherit;
  font-family: var(--font-body);
  letter-spacing: 0;
  outline: none;
}

.comment-form input {
  min-height: 40px;
  padding: 8px 10px;
}

.comment-form textarea {
  min-height: 112px;
  resize: vertical;
  padding: 10px;
  line-height: 1.72;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(240, 207, 134, 0.62);
  box-shadow: 0 0 0 3px rgba(212, 164, 81, 0.12);
}

.comment-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.comment-actions p {
  color: rgba(247, 239, 217, 0.46);
  font-size: 0.78rem;
  line-height: 1.7;
}

.comment-actions button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(240, 207, 134, 0.38);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.18), transparent 58%),
    rgba(212, 164, 81, 0.1);
  cursor: pointer;
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
}

.comment-actions button:hover,
.comment-actions button:focus-visible {
  border-color: rgba(240, 207, 134, 0.7);
  background:
    linear-gradient(135deg, rgba(240, 207, 134, 0.24), transparent 58%),
    rgba(212, 164, 81, 0.18);
}

.comment-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vh, 22px);
  z-index: 60;
  width: min(420px, calc(100vw - 24px));
  max-height: min(76dvh, 640px);
  margin: 0;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(212, 164, 81, 0.12), transparent 40%),
    rgba(4, 4, 4, 0.86);
  box-shadow:
    0 22px 72px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(212, 164, 81, 0.2);
}

.site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]) {
  width: min(230px, calc(100vw - 24px));
  overflow: hidden;
}

.site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments .comment-inner {
  max-height: calc(min(76dvh, 640px) - 50px);
  overflow: auto;
}

.site-shell.manga-reader-mode.detail-mode.reader-scroll-mode .comment-panel.is-reader-comments {
  width: min(calc(100% - 28px), 920px);
  margin: 0 auto 34px;
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  .comment-panel {
    width: min(calc(100% - 22px), 920px);
  }

  .comment-heading,
  .comment-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-heading span {
    text-align: left;
  }

  .comment-actions button {
    width: 100%;
  }
}

@media (min-width: 761px) and (orientation: landscape), (min-width: 901px) {
  .site-shell.manga-reader-mode.detail-mode .manga-reader {
    grid-template-rows: minmax(0, 1fr);
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    min-height: 54px;
    padding: 8px clamp(12px, 1.6vw, 22px) 11px;
    border-width: 0 0 1px;
    background:
      linear-gradient(90deg, rgba(212, 164, 81, 0.08), transparent 45%),
      rgba(3, 3, 3, 0.78);
    box-shadow:
      0 12px 34px rgba(0, 0, 0, 0.24),
      inset 0 -1px 0 rgba(240, 207, 134, 0.1);
    opacity: 0.18;
    transform: translateY(calc(-100% + 10px));
    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(.18, .8, .22, 1),
      background 220ms ease;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 10px;
    background:
      linear-gradient(90deg, transparent, rgba(240, 207, 134, 0.36), transparent);
    opacity: 0.68;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar:hover,
  .site-shell.manga-reader-mode.detail-mode .manga-reader-toolbar:focus-within {
    opacity: 1;
    transform: translateY(0);
    background:
      linear-gradient(90deg, rgba(212, 164, 81, 0.1), transparent 45%),
      rgba(3, 3, 3, 0.9);
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-page-slider {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 92;
    width: min(760px, calc(100vw - 220px));
    min-width: min(420px, calc(100vw - 94px));
    margin: 0;
    padding: 9px 12px 12px;
    border-color: rgba(212, 164, 81, 0.2);
    background:
      linear-gradient(90deg, rgba(212, 164, 81, 0.08), transparent 52%),
      rgba(3, 3, 3, 0.78);
    opacity: 0.2;
    transform: translate(-50%, calc(100% - 10px));
    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(.18, .8, .22, 1),
      background 220ms ease;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-page-slider::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 10px;
    background:
      linear-gradient(90deg, transparent, rgba(240, 207, 134, 0.36), transparent);
    opacity: 0.68;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader-page-slider:hover,
  .site-shell.manga-reader-mode.detail-mode .manga-reader-page-slider:focus-within {
    opacity: 1;
    transform: translate(-50%, -10px);
    background:
      linear-gradient(90deg, rgba(212, 164, 81, 0.12), transparent 52%),
      rgba(3, 3, 3, 0.9);
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader) .manga-reader-viewport {
    height: 100dvh;
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader) .manga-pages {
    height: 100dvh;
    padding: clamp(8px, 1.2vh, 16px) var(--reader-fit-side-pad);
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader) .manga-page-frame {
    height: calc(100dvh - clamp(16px, 2.4vh, 32px));
    max-height: calc(100dvh - clamp(16px, 2.4vh, 32px));
  }

  .site-shell.manga-reader-mode.detail-mode .manga-reader:not(.is-scroll-reader):not(.is-actual-size) .comic-page {
    max-height: calc(100dvh - clamp(16px, 2.4vh, 32px));
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments {
    z-index: 95;
    transition:
      width 220ms ease,
      max-height 220ms ease,
      opacity 220ms ease,
      transform 220ms ease,
      background 220ms ease;
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]) {
    right: 10px;
    bottom: 18px;
    width: 48px;
    max-height: 136px;
    opacity: 0.32;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(212, 164, 81, 0.12), transparent 68%),
      rgba(4, 4, 4, 0.58);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(212, 164, 81, 0.18);
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]):hover,
  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]):focus-within {
    opacity: 0.78;
    transform: translateY(-2px);
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]) summary {
    justify-content: center;
    width: 48px;
    min-height: 136px;
    padding: 10px 6px;
    border: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]) summary span {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]) summary strong {
    min-width: 24px;
    min-height: 24px;
    font-size: 0.68rem;
    writing-mode: horizontal-tb;
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments:not([open]) summary::after {
    display: none;
  }

  .site-shell.manga-reader-mode.detail-mode.reader-paged-mode .comment-panel.is-reader-comments[open] {
    opacity: 1;
  }
}

@media (max-width: 900px), (max-width: 1024px) and (pointer: coarse) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-shell.detail-mode:not(.manga-reader-mode),
  .site-shell.detail-mode:not(.manga-reader-mode) main,
  .site-shell.detail-mode:not(.manga-reader-mode) .reader-view,
  .site-shell.detail-mode:not(.manga-reader-mode) .reader-layout,
  .site-shell.detail-mode:not(.manga-reader-mode) .reader-main,
  .site-shell.detail-mode:not(.manga-reader-mode) .page-stack,
  .site-shell.detail-mode:not(.manga-reader-mode) .content-stack,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel,
  .site-shell.detail-mode:not(.manga-reader-mode) .reader-menu {
    min-width: 0;
    max-width: 100%;
  }

  .site-shell.detail-mode:not(.manga-reader-mode),
  .site-shell.detail-mode:not(.manga-reader-mode) main,
  .site-shell.detail-mode:not(.manga-reader-mode) .reader-view,
  .site-shell.detail-mode:not(.manga-reader-mode) .reader-layout {
    overflow-x: hidden;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) main {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .reader-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .reader-main {
    order: 1;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    backdrop-filter: none;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .page-stack,
  .site-shell.detail-mode:not(.manga-reader-mode) .content-stack {
    width: 100%;
    overflow: hidden;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel {
    width: 100%;
    inline-size: 100%;
    max-inline-size: 100%;
    padding: 18px 15px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel *,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel *,
  .site-shell.detail-mode:not(.manga-reader-mode) .info-grid *,
  .site-shell.detail-mode:not(.manga-reader-mode) .tag-row * {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-break: anywhere;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel h3,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel h3 {
    font-size: clamp(1.75rem, 10vw, 2.55rem);
    line-height: 1.12;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel p,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel li,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel blockquote,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel p,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel li,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel blockquote {
    font-size: clamp(0.9rem, 4.2vw, 1rem);
    line-height: 1.82;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel figure,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel figure {
    margin: 16px 0;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel img,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel video,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel iframe,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel img,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel video,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel iframe {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel pre,
  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel code,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel pre,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel code {
    white-space: pre-wrap;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .text-panel table,
  .site-shell.detail-mode:not(.manga-reader-mode) .app-panel table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .reader-menu {
    order: 2;
    width: 100%;
    overflow: hidden;
  }

  .site-shell.detail-mode:not(.manga-reader-mode) .work-list {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait) {
  .work-collection-card {
    display: block;
  }

  .work-collection-main {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 16px 14px 14px;
  }

  .work-collection-main .index-number {
    justify-content: start;
    min-height: auto;
    font-size: clamp(2.65rem, 18vw, 4.8rem);
  }

  .work-collection-main .index-media,
  .work-collection-main .index-media-avatar {
    width: min(100%, 220px);
    aspect-ratio: 4 / 3;
  }

  .work-collection-main .index-side {
    width: 100%;
    min-height: auto;
  }

  .work-chapter-fold {
    margin: 0 14px 16px;
  }

  .work-chapter-fold summary {
    min-height: 46px;
  }

  .work-chapter-list {
    grid-template-columns: 1fr;
    padding-bottom: 10px;
  }

  .work-chapter-pill {
    min-height: 46px;
  }
}
