/* =========================================================================
   PHOENIX — global styles (all public pages; the reader adds reader.css)
   ========================================================================= */
:root {
  --white: #FFFFFF;
  --ink: #111111;
  --red: #C62828;
  --paper: #F7F5F0;
  --grey: #6b6b6b;
  --line: #d9d6cf;
  --accent: var(--red);
  --f-head: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-jp: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-hand: "Permanent Marker", "Comic Sans MS", cursive;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font: 16px/1.6 var(--f-body); color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: .95; letter-spacing: .01em; margin: 0 0 .4em; text-transform: uppercase; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.jp { font-family: var(--f-jp); font-weight: 900; }
.kicker { font: 700 .78rem/1 var(--f-body); letter-spacing: .25em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.hand { font-family: var(--f-hand); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 1000; }
.skip:focus { left: 8px; }
main { padding-top: var(--nav-h); }
.section { padding: clamp(64px, 10vw, 140px) 0; position: relative; }
.sec-num { font: 400 clamp(4rem, 10vw, 9rem)/.8 var(--f-head); color: transparent; -webkit-text-stroke: 2px var(--ink); display: block; }
.sec-title { font-size: clamp(2.6rem, 7vw, 6rem); }
.vertical { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .15em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em; font: 700 .85rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red); }
.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- placeholders ---------- */
.ph { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 120px; padding: 14px;
  background: repeating-linear-gradient(-45deg, rgba(17,17,17,.05) 0 10px, transparent 10px 20px), var(--paper);
  border: 2px dashed rgba(17,17,17,.35); color: var(--ink); overflow: hidden; }
.ph-tag { font: 700 .62rem/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--red); word-break: break-all; }
.ph b { font: 400 1.1rem/1.1 var(--f-head); text-transform: uppercase; }
.ph.figure { border-radius: 48% 48% 0 0 / 30% 30% 0 0; height: 100%; }
.ph.cover { aspect-ratio: .703; min-height: 0; }
.on-dark .ph, .ph.dark { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px), #1c1c1c; border-color: rgba(255,255,255,.35); color: #fff; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 40px); background: rgba(255,255,255,.96); border-bottom: 2px solid var(--ink); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font: 400 1.7rem/1 var(--f-head); letter-spacing: .08em; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; }
.logo-mark { width: 14px; height: 26px; background: var(--red); clip-path: polygon(50% 0, 100% 45%, 70% 100%, 30% 100%, 0 45%); }
.nav-menu { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.nav-menu a { position: relative; font: 700 .8rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-menu a.active { color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s, top .3s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.menu-open .nav-toggle span { background: #fff; }
.menu-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; padding: 0 32px; gap: 8px; background: var(--ink);
    clip-path: circle(0 at calc(100% - 38px) 32px); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; }
  .menu-open .nav-menu { clip-path: circle(150% at calc(100% - 38px) 32px); visibility: visible; transition: clip-path .5s var(--ease); }
  .nav-menu a { color: #fff; font: 400 clamp(2.6rem, 12vw, 4rem)/1.1 var(--f-head); letter-spacing: .04em; }
  .menu-open .nav-logo { color: #fff; position: relative; z-index: 2; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.footer h2 { font: 700 .75rem/1 var(--f-body); letter-spacing: .22em; color: var(--red); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5em; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--red); }
.footer-logo { font-size: 2.6rem; }
.footer-jp { font-size: 1.4rem; opacity: .35; margin-top: 1rem; letter-spacing: .3em; }
.copyright { margin-top: 56px; padding-top: 20px; border-top: 1px solid #333; font-size: .8rem; color: #999; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- notice / error ---------- */
.notice { padding: 120px 0; min-height: 60vh; }

/* ---------- reveal animations ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
.reveal-on [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
.reveal-on [data-reveal="mask"].in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- shared texture ---------- */
.halftone { background-image: radial-gradient(rgba(17,17,17,.16) 1.2px, transparent 1.6px); background-size: 9px 9px; }
.speedlines { background: repeating-conic-gradient(from 0deg at 70% 50%, rgba(17,17,17,.07) 0 1.2deg, transparent 1.2deg 6deg); }

/* =========================================================================
   HOMEPAGE
   ========================================================================= */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); background: var(--paper); overflow: hidden; display: grid; align-items: end; padding: 40px 0 56px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg > * { position: absolute; inset: 0; }
.hero-bg .halftone { mask-image: linear-gradient(115deg, transparent 35%, #000 80%); -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 80%); }
.hero-sun { position: absolute; width: min(46vw, 560px); aspect-ratio: 1; border-radius: 50%; background: var(--red); right: 12%; top: 8%; animation: rise 1.4s var(--ease) both .2s; }
@keyframes rise { from { transform: translateY(60px) scale(.9); opacity: 0; } }
.hero-vertical { position: absolute; left: clamp(12px, 3vw, 40px); top: 40px; font-size: clamp(1.6rem, 3vw, 2.6rem); writing-mode: vertical-rl; letter-spacing: .3em; color: var(--ink); margin: 0; z-index: 3; }
.hero-cast { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cast { position: absolute; bottom: 0; animation: castIn 1.2s var(--ease) both; }
.cast .art { height: 100%; width: auto; object-fit: contain; object-position: bottom; }
.cast--0 { right: 4%; width: min(34vw, 440px); height: 88%; animation-delay: .45s; z-index: 3; }
.cast--1 { right: 34%; width: min(22vw, 290px); height: 66%; animation-delay: .7s; z-index: 1; }
.cast--2 { right: 26%; width: min(20vw, 260px); height: 52%; animation-delay: .85s; z-index: 2; }
.cast .ph { opacity: .92; }
@keyframes castIn { from { opacity: 0; transform: translateX(60px); } }
.hero-copy { position: relative; z-index: 4; padding-left: clamp(40px, 7vw, 110px); max-width: 1400px; }
.hero-title { font-size: clamp(5rem, 19vw, 17rem); line-height: .82; margin: 0 0 .1em; color: var(--ink); animation: mask 1.1s var(--ease) both .1s; text-shadow: 6px 6px 0 var(--paper); }
@keyframes mask { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-title .dot { color: var(--red); }
.hero-tagline { font: 400 clamp(1.2rem, 2.6vw, 2rem)/1.1 var(--f-hand); color: var(--red); transform: rotate(-2deg); margin-bottom: .8em; }
.hero-intro { max-width: 34ch; font-size: 1.05rem; background: rgba(247,245,240,.85); }
.slash { position: absolute; z-index: 3; background: var(--red); height: 8px; width: 90px; transform: rotate(-24deg); animation: slash .6s var(--ease) both; }
@keyframes slash { from { transform: rotate(-24deg) scaleX(0); } }
.slash.s1 { top: 18%; left: 46%; animation-delay: 1s; } .slash.s2 { top: 22%; left: 49%; width: 50px; animation-delay: 1.1s; } .slash.s3 { bottom: 14%; right: 42%; width: 60px; animation-delay: 1.2s; }
@media (max-width: 760px) {
  .hero { align-items: end; min-height: calc(100svh - var(--nav-h)); }
  .cast--0 { width: 62vw; height: 62%; right: -4%; top: 6%; bottom: auto; }
  .cast--1, .cast--2, .slash.s3 { display: none; }
  .cast .ph { justify-content: flex-start; padding-top: 40%; }
  .hero-sun { width: 70vw; right: -10%; top: 4%; }
  .hero-copy { padding: 0 20px; }
}

/* story */
.story { background: #fff; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.story-head { position: relative; }
.story-head .jp { position: absolute; right: -2.2em; top: 0; font-size: 1.6rem; color: var(--red); }
.story-body { font-size: 1.08rem; columns: 1; border-left: 3px solid var(--ink); padding-left: 24px; }
.story-body p:first-child::first-letter { font: 400 4.2rem/.8 var(--f-head); float: left; margin: 6px 10px 0 0; color: var(--red); }
.story-art { grid-row: span 2; min-height: 460px; display: grid; }
.story-art .ph { height: 100%; }
.panels { grid-column: 1 / 3; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; background: var(--ink); padding: 10px; transform: rotate(-1deg); }
.panels > * { min-height: 200px; background: #fff; border: 0; }
.panels > :nth-child(1) { clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.panels .art { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } .story-art { grid-row: auto; min-height: 320px; } .panels { grid-column: auto; grid-template-columns: 1fr 1fr; } .story-head .jp { right: 0; } }

/* portals */
.portals { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.portal { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 64px); text-decoration: none; min-height: 520px; isolation: isolate; }
.portal--manga { background: var(--ink); color: #fff; }
.portal--fanbook { background: var(--paper); border-left: 2px solid var(--ink); }
.portal-art { position: absolute; inset: 0; z-index: -1; transition: transform .9s var(--ease); display: grid; }
.portal-art .ph, .portal-art .art { height: 100%; width: 100%; object-fit: cover; border: 0; opacity: .5; }
.portal:hover .portal-art { transform: scale(1.06) rotate(-.6deg); }
.portal .speedlines { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; }
.portal--manga .speedlines { filter: invert(1); }
.portal:hover .speedlines { opacity: 1; }
.portal-word { font: 400 clamp(4rem, 11vw, 10rem)/.82 var(--f-head); text-transform: uppercase; margin: 0 0 .15em; }
.portal-word .jp { font-size: .3em; display: block; color: var(--red); letter-spacing: .3em; margin-bottom: .2em; }
.portal p { max-width: 36ch; }
.portal-go { display: inline-flex; align-items: center; gap: 14px; font: 700 .85rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; }
.portal-go i { display: inline-block; width: 56px; height: 2px; background: currentColor; position: relative; transition: width .35s var(--ease); }
.portal-go i::after { content: ""; position: absolute; right: 0; top: -5px; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.portal:hover .portal-go i { width: 96px; }
.portal:hover .portal-go { color: var(--red); }
.portal-note { position: absolute; top: 40px; right: 40px; font: 1.3rem var(--f-hand); color: var(--red); transform: rotate(8deg); transition: transform .4s var(--ease); }
.portal:hover .portal-note { transform: rotate(-4deg) scale(1.1); }
.portal::before { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.portal:hover::before { transform: scaleX(1); }
@media (max-width: 760px) { .portals { grid-template-columns: 1fr; } .portal--fanbook { border-left: 0; border-top: 2px solid var(--ink); } .portal { min-height: 420px; } }

/* latest */
.latest { background: var(--ink); color: #fff; overflow: hidden; }
.latest-grid { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.latest-cover { position: relative; transform: rotate(-3deg); box-shadow: 18px 18px 0 var(--red); }
.latest-cover .art { width: 100%; height: auto; }
.stamp { position: absolute; top: -18px; right: -18px; background: var(--red); color: #fff; font: 400 1.2rem/1 var(--f-head); padding: 12px 14px; transform: rotate(10deg); z-index: 2; }
.latest-num { font: 400 clamp(6rem, 16vw, 13rem)/.8 var(--f-head); color: transparent; -webkit-text-stroke: 2px #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: #333; border: 1px solid #333; margin: 28px 0; }
.facts div { background: var(--ink); padding: 16px; }
.facts dt { font: 700 .68rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 8px; }
.facts dd { margin: 0; font: 400 1.5rem/1.1 var(--f-head); text-transform: uppercase; }
.latest .facts dd.red { color: var(--red); }
.on-paper .facts { background: var(--line); border-color: var(--line); } .on-paper .facts div { background: #fff; } .on-paper .facts dt { color: var(--grey); }
@media (max-width: 760px) { .latest-grid { grid-template-columns: 1fr; } .latest-cover { max-width: 260px; } }

/* showcase */
.showcase-item { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.showcase-item .ph, .showcase-item .art { min-height: 340px; width: 100%; object-fit: cover; }
@media (max-width: 760px) { .showcase-item { grid-template-columns: 1fr; } }

/* =========================================================================
   PAGE HEROES (volumes / fanbook)
   ========================================================================= */
.page-hero { position: relative; background: var(--paper); padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); overflow: hidden; border-bottom: 2px solid var(--ink); }
.page-hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.page-hero h1 { font-size: clamp(4rem, 13vw, 11rem); line-height: .82; }
.page-hero .bg-jp { position: absolute; right: 2%; top: 6%; font-size: clamp(5rem, 14vw, 13rem); opacity: .07; writing-mode: vertical-rl; margin: 0; z-index: 1; }
.page-hero .hero-side { min-height: 320px; display: grid; }
.page-hero .halftone, .page-hero .speedlines { position: absolute; inset: 0; }
@media (max-width: 760px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero .hero-side { min-height: 220px; } }

/* =========================================================================
   VOLUMES LIBRARY
   ========================================================================= */
.featured { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.featured .vol-big { font: 400 clamp(5rem, 13vw, 11rem)/.8 var(--f-head); color: var(--red); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 56px 36px; padding-top: 24px; }
.shelf-floor { border-bottom: 10px solid var(--ink); box-shadow: 0 14px 0 -6px var(--line); }
.book { text-decoration: none; display: block; perspective: 900px; }
.book-3d { position: relative; transform: rotateY(0); transform-style: preserve-3d; transition: transform .6s var(--ease); box-shadow: 6px 6px 0 rgba(0,0,0,.12); }
.book-cover { position: relative; box-shadow: inset 4px 0 0 rgba(0,0,0,.25); }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.15) 3%, transparent 8%); pointer-events: none; }
.book-cover .art { width: 100%; height: auto; }
.book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 26px; background: var(--ink); color: #fff; transform: rotateY(-90deg); transform-origin: left; writing-mode: vertical-rl; font: 400 .8rem/26px var(--f-head); text-align: center; letter-spacing: .15em; }
.book-3d::after { content: ""; position: absolute; top: 2%; bottom: 2%; right: -8px; width: 8px; background: repeating-linear-gradient(90deg, #eee 0 1px, #d5d2cc 1px 2px); transform-origin: left; }
.book:hover .book-3d, .book:focus-visible .book-3d { transform: rotateY(24deg) translateY(-8px); }
.book-info { padding-top: 16px; position: relative; }
.book-info h3 { font-size: 1.5rem; margin-bottom: .2em; }
.vol-num { position: absolute; right: 0; top: 4px; font: 400 2.6rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.status { display: inline-block; font: 700 .66rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; padding: 5px 8px; border: 1.5px solid currentColor; margin: 0 0 8px; }
.status--ongoing { color: var(--red); } .status--coming-soon { color: var(--grey); border-style: dashed; }
.meta { font-size: .85rem; color: var(--grey); margin: 0; }
.interlude { margin: 80px 0; min-height: 260px; display: grid; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured .book { max-width: 240px; } .shelf { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } }

/* =========================================================================
   VOLUME PAGE
   ========================================================================= */
.vol-hero { background: var(--paper); padding: 56px 0 80px; border-bottom: 2px solid var(--ink); }
.vol-grid { display: grid; grid-template-columns: minmax(300px, 1.05fr) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.covers { display: flex; flex-direction: row-reverse; align-items: stretch; filter: drop-shadow(14px 18px 0 rgba(17,17,17,.12)); }
.covers > .face { flex: 1; min-width: 0; }
.covers .art { width: 100%; height: auto; }
.covers .spine { width: 7%; background: var(--ink); color: #fff; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center; font: 400 clamp(.7rem, 1.2vw, 1rem) var(--f-head); letter-spacing: .2em; }
.covers .back { opacity: .9; }
.vol-title-num { font: 400 clamp(5rem, 12vw, 10rem)/.8 var(--f-head); color: var(--red); }
.credits { font-size: .9rem; color: var(--grey); }
.chapters { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.chapters a { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 20px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.chapters a:hover { background: var(--paper); padding-left: 20px; }
.chapters .ch-num { font: 400 2.4rem/1 var(--f-head); color: var(--red); }
.chapters .ch-title { font: 400 1.4rem/1.1 var(--f-head); text-transform: uppercase; }
.chapters .ch-img { width: 80px; }
.chapters .meta { white-space: nowrap; }
.author-note { border: 2px solid var(--ink); padding: 32px; position: relative; background: #fff; max-width: 760px; }
.author-note::before { content: "Author's comment"; position: absolute; top: -14px; left: 20px; background: var(--red); color: #fff; font: 700 .7rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; padding: 7px 10px; }
@media (max-width: 860px) { .vol-grid { grid-template-columns: 1fr; } .chapters a { grid-template-columns: 60px 1fr; } .chapters a .meta { grid-column: 2; } .chapters .ch-img { display: none; } }

/* galleries (volume extras + character) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 2px solid var(--ink); background: #fff; cursor: zoom-in; display: block; text-align: left; }
.gallery button .art { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { font-size: .8rem; padding: 8px 10px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10,10,10,.9); }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox p { color: #fff; text-align: center; }
.lightbox .close { position: fixed; top: 16px; right: 16px; }

/* =========================================================================
   FANBOOK LIBRARY
   ========================================================================= */
.fanbook-hero { background: #fff; }
.fanbook-hero .notes { position: absolute; z-index: 3; font: 1.2rem var(--f-hand); color: var(--red); }
.fanbook-hero .notes.n1 { left: 50%; top: 18%; transform: rotate(-6deg); }
.fanbook-hero .notes.n2 { right: 6%; bottom: 14%; transform: rotate(5deg); }
.chibis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.chibis .ph { min-height: 140px; border-radius: 50% 50% 12px 12px; }
.chibis > :nth-child(2) .ph, .chibis > .ph:nth-child(2) { min-height: 190px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { font: 700 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; border: 2px solid var(--ink); background: #fff; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip:hover { border-color: var(--red); }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.char-card { position: relative; display: block; text-decoration: none; border: 2px solid var(--ink); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); --accent: var(--red); }
.char-card:hover, .char-card:focus-visible { transform: translate(-4px, -4px) rotate(-.8deg); box-shadow: 8px 8px 0 var(--accent); }
.char-card .portrait { aspect-ratio: 3/4; display: grid; overflow: hidden; border-bottom: 2px solid var(--ink); }
.char-card .portrait .art { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.char-card:hover .portrait .art { transform: scale(1.05); }
.char-card .portrait .ph { border: 0; }
.char-card .body { padding: 16px 18px 20px; }
.char-card h3 { font-size: 1.6rem; margin: 0 0 .3em; }
.char-card .aff { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: .5em; }
.char-card .fb { font: 700 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.char-card .fb.soon { color: var(--grey); }
.char-card .tab { position: absolute; top: 12px; right: -2px; background: var(--accent); color: #fff; font: 400 .9rem/1 var(--f-head); padding: 6px 10px; letter-spacing: .1em; }

/* =========================================================================
   CHARACTER PAGE
   ========================================================================= */
.char-hero { position: relative; background: var(--paper); overflow: hidden; border-bottom: 2px solid var(--ink); }
.char-hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70%; height: 140%; background: var(--accent); transform: skewX(-12deg); }
.char-hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; min-height: calc(86vh - var(--nav-h)); align-items: end; }
.char-hero .char-art { align-self: stretch; display: grid; padding-top: 40px; position: relative; z-index: 2; }
.char-hero .char-art .art { height: 100%; max-height: 82vh; width: auto; margin: auto auto 0; object-fit: contain; }
.char-hero .char-art .ph { min-height: 460px; }
.char-hero .copy { padding: 60px 0; position: relative; z-index: 3; }
.char-hero h1 { font-size: clamp(3.4rem, 9vw, 8rem); line-height: .85; }
.char-hero .jp-name { font: 900 clamp(1.4rem, 3vw, 2.2rem) var(--f-jp); letter-spacing: .2em; }
.char-hero .nick { font: 1.4rem var(--f-hand); color: var(--accent); }
.char-vert { position: absolute; right: 24px; top: 30px; z-index: 1; color: #fff; font-size: clamp(2rem, 5vw, 4rem); writing-mode: vertical-rl; opacity: .5; margin: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--ink); border: 2px solid var(--ink); margin-bottom: 48px; }
.profile-grid div { background: #fff; padding: 18px; }
.profile-grid dt { font: 700 .68rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.profile-grid dd { margin: 0; font-size: 1.05rem; }
.text-block { max-width: 760px; margin-bottom: 40px; }
.text-block h3 { font-size: 2rem; }
details.spoiler { border: 2px dashed var(--ink); padding: 0 20px; margin-bottom: 24px; max-width: 760px; }
details.spoiler summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; }
details.spoiler summary::-webkit-details-marker { display: none; }
details.spoiler summary::before { content: "⚠ "; color: var(--red); }
details.spoiler[open] { border-style: solid; }
.fanbook-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 260px)); gap: 40px; }
.fanbook-item .art, .fanbook-item .ph { width: 100%; height: auto; box-shadow: 10px 10px 0 var(--accent); margin-bottom: 18px; }
.soon-msg { font: 1.2rem var(--f-hand); color: var(--grey); }
@media (max-width: 760px) { .char-hero .wrap { grid-template-columns: 1fr; } .char-hero .char-art .ph { min-height: 300px; } .char-hero .copy { padding: 0 0 40px; } }
