:root {
  --ink: #0d0b10;
  --paper: #f3ede2;
  --paper-2: #fffaf0;
  --yellow: #d0a84b;
  --magenta: #d72d82;
  --magenta-ink: #b2216d;
  --cyan: #2fd6d0;
  --purple: #5d337f;
  --muted: #79716a;
  --border: rgba(13, 11, 16, 0.16);
  --background: var(--paper);
  --foreground: var(--ink);
  --primary: var(--ink);
  --primary-foreground: var(--paper-2);
  --secondary: #e7dfd2;
  --secondary-foreground: var(--ink);
  --accent: var(--magenta);
  --accent-foreground: var(--ink);
  --radius: 0.25rem;
}

* { box-sizing: border-box; }
img, svg { display: block; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.primary-cta, .secondary-cta, .chapter-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; text-decoration: none; }
.primary-cta svg, .secondary-cta svg, .chapter-button svg { width: 16px; height: 16px; }

.site-shell { min-height: 100vh; overflow: hidden; background: var(--paper); }
.lang-ja { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Arial, sans-serif; }
#news, #cast, #gallery, #chapters { scroll-margin-top: 76px; }

.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 76px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  padding: 0 4vw; color: white; background: rgba(13, 11, 16, 0.88);
  backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.14);
}
.wordmark { width: max-content; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; font-family: Arial,Helvetica,sans-serif; line-height: .82; font-weight: 950; letter-spacing: -.06em; font-size: 20px; }
.wordmark span, .wordmark b { display: block; }
.wordmark b { color: var(--magenta); font-style: italic; }
.site-header > nav:not(.language-toggle) { display: flex; gap: 28px; }
.site-header > nav:not(.language-toggle) button { border: 0; background: transparent; color: #ddd5cb; padding: 10px 0; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.site-header > nav:not(.language-toggle) button:hover { color: white; }
.language-toggle { justify-self: end; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.05); }
.language-toggle { display: flex; }
.language-toggle a { min-width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; color: #bdb5ae; background: transparent; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-decoration: none; }
.language-toggle a[aria-current="page"] { color: var(--ink); background: var(--cyan); }

.hero { position: relative; min-height: 920px; padding: 0 5vw; background: #17121c url("/images/banner1.webp") center calc(50% + 38px) / cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: 2; inset: 76px 0 auto; height: 7px; background: linear-gradient(90deg,var(--magenta) 0 31%,var(--cyan) 31% 58%,var(--yellow) 58%); }
.hero::after { content: ""; position: absolute; z-index: 0; inset: 62% 0 0; background: linear-gradient(transparent,rgba(13,11,16,.58)); pointer-events: none; }
.hero-logo { position: absolute; z-index: 2; left: 50%; bottom: 8px; width: clamp(280px,28vw,520px); height: auto; transform: translateX(-50%); filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 7px rgba(0,0,0,.96)) drop-shadow(0 7px 18px rgba(0,0,0,.9)); pointer-events: none; user-select: none; }
.section-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; color: #5f5954; text-transform: uppercase; font-weight: 900; letter-spacing: .2em; font-size: 10px; }
.hero-actions { position: absolute; z-index: 3; left: 5vw; bottom: 50px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.primary-cta { height: 54px; padding: 0 22px; border-radius: 0; background: var(--ink); color: white; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .12em; box-shadow: 7px 7px 0 var(--magenta); }
.primary-cta:hover { background: #27212b; transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--magenta); }
.secondary-cta { min-height: 54px; padding-inline: 20px; border: 1px solid rgba(255,255,255,.6); border-radius: 0; background: rgba(13,11,16,.68); color: white; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; font-weight: 900; backdrop-filter: blur(8px); }
.secondary-cta:hover { background: white; color: var(--ink); }

.signal-strip { display: flex; justify-content: center; overflow: hidden; padding: 14px 18px; background: var(--magenta); border-block: 3px solid var(--ink); color: white; }
.signal-strip span { display: flex; align-items: center; gap: 10px; flex: none; font-family: "Arial Black", sans-serif; font-size: 11px; letter-spacing: .15em; }
.signal-strip svg { width: 14px; fill: currentColor; }

.section-pad { padding: 120px 6vw; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: 1480px; margin: 0 auto 48px; }
.section-heading h2, .chapter-intro h2 { margin: 0; font-family: Impact,"Arial Black",sans-serif; font-size: clamp(54px,6vw,92px); line-height: .9; text-transform: uppercase; letter-spacing: -.03em; }
.text-link { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid var(--ink); padding: 8px 0; background: transparent; color: var(--ink); cursor: pointer; text-transform: uppercase; font-weight: 900; font-size: 10px; letter-spacing: .13em; }
.text-link svg { width: 14px; }
.archive-count { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-family: "Arial Black", sans-serif; font-size: 11px; letter-spacing: .16em; }
.news-section { background: var(--paper-2); }
.news-grid { max-width: 1480px; margin: auto; display: grid; grid-template-columns: 1.18fr 1fr 1fr; border: 2px solid var(--ink); }
.news-card { position: relative; min-height: 310px; padding: 32px; overflow: hidden; border-right: 2px solid var(--ink); background: var(--paper); }
.news-card:last-child { border-right: 0; }
.news-card-1 { background: var(--ink); color: white; }
.news-meta { display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 900; }
.news-meta span { color: var(--magenta-ink); }
.news-card-1 .news-meta span { color: var(--magenta); }
.news-card h3 { position: relative; z-index: 2; max-width: 390px; margin: 80px 0 14px; font-size: 28px; line-height: 1.03; letter-spacing: -.025em; }
.news-card p { position: relative; z-index: 2; max-width: 390px; margin: 0; line-height: 1.6; color: #6d6660; font-size: 13px; }
.news-card-1 p { color: #bdb6ae; }
.news-index { position: absolute; right: -8px; bottom: -34px; font-family: Impact,sans-serif; font-size: 150px; line-height: 1; color: rgba(13,11,16,.06); }
.news-card-1 .news-index { color: rgba(255,255,255,.06); }

.cast-section { color: white; background:
  radial-gradient(circle at 85% 28%, rgba(215,45,130,.18), transparent 26%),
  radial-gradient(circle at 8% 75%, rgba(47,214,208,.12), transparent 24%),
  var(--ink);
  border-top: 3px solid var(--ink);
}
.cast-heading { max-width: 1480px; margin: 0 auto 54px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 8vw; align-items: end; }
.cast-heading h2 { max-width: 900px; margin: 0; font-family: Impact,"Arial Black",sans-serif; font-size: clamp(58px,6vw,96px); line-height: .88; text-transform: uppercase; letter-spacing: -.03em; }
.cast-heading > p:last-child { max-width: 480px; margin: 0; color: #bdb5be; line-height: 1.65; }
.cast-workspace { max-width: 1480px; height: min(698px,calc(100dvh - 76px)); margin: auto; display: grid; grid-template-columns: 310px 1fr; gap: 24px; }
.cast-sidebar { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); gap: 10px; }
.cast-categories { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.18); }
.cast-categories button { min-width: 0; min-height: 44px; border: 0; border-right: 1px solid rgba(255,255,255,.18); background: transparent; color: #aaa2ab; cursor: pointer; text-transform: uppercase; font-size: 9px; font-weight: 900; letter-spacing: .08em; transition: color .2s ease, background .2s ease; }
.cast-categories button:last-child { border-right: 0; }
.cast-categories button:hover { color: white; background: rgba(255,255,255,.08); }
.cast-categories button.is-active { color: var(--ink); background: var(--cyan); }
.cast-categories button:nth-child(2).is-active { color: white; background: var(--magenta); }
.cast-categories button:nth-child(3).is-active { color: white; background: var(--magenta); }
.cast-roster { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; align-content: start; overflow-y: auto; border: 1px solid rgba(255,255,255,.18); }
.cast-chip { position: relative; min-width: 0; min-height: 0; aspect-ratio: 1; display: block; overflow: hidden; border: 0; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); padding: 0; background: white; color: white; cursor: pointer; text-align: left; transition: background .2s ease, transform .2s ease; }
.cast-chip:nth-child(even) { border-right: 0; }
.cast-chip:nth-last-child(-n+2) { border-bottom: 0; }
.cast-chip:hover { background: white; }
.cast-chip.is-active { position: relative; z-index: 1; background: var(--magenta); color: white; box-shadow: 0 0 0 2px var(--magenta); }
.cast-chip-image { position: absolute; inset: 0; overflow: hidden; background: white; }
.cast-chip-image::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(13,11,16,.86)); }
.cast-chip-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: multiply; transition: transform .25s ease; }
.cast-chip:hover .cast-chip-image img { transform: scale(1.045); }
.cast-chip-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; color: rgba(13,11,16,.46); font-size: clamp(9px,1vw,12px); font-weight: 950; line-height: 1.05; letter-spacing: .08em; text-align: center; }
.cast-chip > span:last-child { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 9px; min-width: 0; }
.cast-chip b { display: block; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.cast-chip.is-active b { color: white; }
.cast-focus { position: relative; min-height: 0; height: 100%; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); }
.cast-focus::before { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 8px; background: var(--cyan); }
.cast-focus-demons::before { background: var(--magenta); }
.cast-focus-division::before { background: var(--magenta); }
.cast-focus-copy { position: relative; z-index: 3; align-self: center; max-height: 100%; overflow-y: auto; padding: 58px 20px 58px 58px; }
.cast-focus h3 { max-width: 520px; margin: 0; font-family: Impact,"Arial Black",sans-serif; font-size: clamp(58px,5vw,88px); line-height: .86; text-transform: uppercase; letter-spacing: -.035em; }
.cast-focus h3 span { display: block; }
.lang-ja .cast-focus h3 { font-size: clamp(38px,3.1vw,54px); line-height: 1.02; letter-spacing: -.08em; }
.lang-ja .cast-focus h3 span { white-space: nowrap; }
.cast-description { max-width: 510px; margin: 30px 0 0; color: #5d5651; line-height: 1.72; white-space: pre-line; }
.form-switch-control { position: absolute; z-index: 4; left: 56px; bottom: 46px; height: 86px; display: inline-flex; align-items: center; gap: 14px; border: 0; padding: 0; background: transparent; color: var(--ink); cursor: pointer; }
.form-avatar-switch { width: 86px; height: 86px; flex: 0 0 86px; overflow: hidden; border: 4px solid var(--paper); border-radius: 50%; background: white; box-shadow: 0 0 0 2px var(--ink), 0 10px 28px rgba(13,11,16,.2); transition: transform .2s ease, box-shadow .2s ease; }
.form-switch-control:hover .form-avatar-switch { transform: scale(1.06); box-shadow: 0 0 0 3px var(--magenta), 0 12px 30px rgba(13,11,16,.25); }
.form-switch-control:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; }
.form-avatar-switch img { width: 100%; height: 100%; object-fit: cover; }
.form-switch-label { display: inline-flex; height: 100%; align-items: center; text-transform: uppercase; font-size: 11px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.cast-portrait { position: relative; z-index: 1; min-width: 0; height: 100%; margin: 0; overflow: hidden; background: white; }
.cast-portrait::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,var(--paper) 0%,transparent 24%,transparent 72%,rgba(215,45,130,.12)); pointer-events: none; }
.cast-portrait > span { position: absolute; z-index: 0; right: -18px; top: 32px; color: rgba(13,11,16,.055); font-family: Impact,sans-serif; font-size: clamp(100px,12vw,190px); line-height: .8; text-transform: uppercase; writing-mode: vertical-rl; }
.lang-ja .cast-portrait > span { top: 24px; max-height: calc(100% - 48px); font-size: clamp(28px,6vmin,88px); line-height: .82; white-space: nowrap; }
.cast-portrait img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; animation: portrait-in .35s ease both; }
@keyframes portrait-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

.gallery-section { color: white; background: #17121c; border-top: 1px solid rgba(255,255,255,.15); }
.gallery-heading { max-width: 1480px; margin: 0 auto 50px; }
.gallery-heading h2 { margin: 0; font-family: Impact,"Arial Black",sans-serif; font-size: clamp(72px,9vw,148px); line-height: .72; text-transform: uppercase; letter-spacing: -.035em; }
.gallery-coming-soon { max-width: 1480px; min-height: clamp(220px,35vw,520px); margin: 0 auto; display: flex; align-items: center; justify-content: center; border-block: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.38); font-family: Impact,"Arial Black",sans-serif; font-size: clamp(44px,7vw,104px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }

.reader-dialog { width: min(900px,calc(100vw - 24px)) !important; max-width: 900px !important; height: min(920px,calc(100vh - 24px)); display: grid !important; grid-template-rows: auto 1fr; gap: 0 !important; overflow: hidden; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--paper-2) !important; color: var(--ink); }
.reader-dialog [data-slot="dialog-close"] { z-index: 5; top: 18px; right: 18px; color: white; }
.reader-ribbon { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 58px; padding: 0 66px 0 28px; background: var(--ink); color: white; }
.reader-ribbon span { font-weight: 950; letter-spacing: -.05em; }
.reader-ribbon b { color: var(--magenta); text-transform: uppercase; font-size: 8px; letter-spacing: .15em; }
.reader-page { overflow-y: auto; padding: 58px clamp(28px,8vw,96px) 50px; scrollbar-width: thin; }
.reader-number { margin: 0 0 12px; color: var(--magenta-ink); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.reader-page [data-slot="dialog-title"] { max-width: 680px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(42px,6vw,68px); line-height: .95; letter-spacing: -.04em; }
.lang-ja .reader-page [data-slot="dialog-title"] { font-family: "Yu Mincho","Hiragino Mincho ProN",serif; letter-spacing: -.06em; }
.reader-page [data-slot="dialog-description"] { margin: 20px 0 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(13,11,16,.2); color: #6d655f; font-size: 14px; line-height: 1.65; }
.reader-body { font-family: Georgia,"Times New Roman",serif; font-size: 18px; line-height: 1.92; }
.lang-ja .reader-body { font-family: "Yu Mincho","Hiragino Mincho ProN",serif; }
.reader-body p { margin: 0 0 1.5em; }
.reader-body p:first-child::first-letter { float: left; margin: .08em .09em 0 0; color: var(--magenta-ink); font-family: Impact,sans-serif; font-size: 4.6em; line-height: .72; }
.reader-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--ink); }
.reader-navigation button { border: 0; border-radius: 0; background: transparent; color: var(--ink); text-transform: uppercase; font-size: 9px; letter-spacing: .08em; font-weight: 900; }
.reader-navigation button:first-child { justify-self: start; }
.reader-navigation button:last-child { justify-self: end; }
.reader-navigation > span { font-size: 9px; letter-spacing: .13em; }

.chapters-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7vw; background: var(--magenta); color: white; border-top: 3px solid var(--ink); }
.chapter-intro { position: sticky; top: 110px; align-self: start; }
.chapter-intro .section-kicker { color: rgba(13,11,16,.65); }
.chapter-intro > p:last-child { max-width: 410px; margin-top: 26px; font-size: 17px; line-height: 1.65; }
.chapter-list { border-top: 2px solid var(--ink); }
.chapter-card { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 28px; min-height: 230px; padding: 30px 0; border-bottom: 2px solid var(--ink); }
.chapter-index { align-self: start; display: grid; justify-items: start; gap: 12px; }
.chapter-number { font-family: Impact,sans-serif; font-size: 58px; line-height: 1; color: rgba(13,11,16,.28); }
.chapter-cover-link { position: relative; width: 86px; display: block; }
.chapter-cover-link::after { content: attr(data-tooltip); position: absolute; z-index: 2; left: 8px; bottom: 8px; padding: 6px 8px; background: var(--ink); color: white; opacity: 0; transform: translateY(5px); transition: opacity .18s ease,transform .18s ease; pointer-events: none; white-space: nowrap; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.chapter-cover { width: 100%; height: auto; aspect-ratio: 86/130; object-fit: cover; box-shadow: 4px 4px 0 rgba(13,11,16,.18); transition: box-shadow .2s ease; }
.chapter-cover-link:hover .chapter-cover, .chapter-cover-link:focus-visible .chapter-cover { box-shadow: 7px 8px 0 rgba(13,11,16,.24); }
.chapter-cover-link:hover::after, .chapter-cover-link:focus-visible::after { opacity: 1; transform: translateY(0); }
.chapter-cover-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.chapter-card h3 { margin: 5px 0 12px; font-size: 30px; letter-spacing: -.03em; }
.chapter-card p { max-width: 590px; margin: 0; line-height: 1.55; }
.chapter-card .reading-time { text-transform: uppercase; letter-spacing: .14em; font-size: 9px; font-weight: 900; }
.chapter-button { min-height: 40px; border: 2px solid var(--ink); border-radius: 0; padding: 0 16px; background: transparent; color: var(--ink); text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.chapter-button:hover { background: var(--ink); color: white; }

footer { display: grid; grid-template-columns: auto auto 1fr auto; align-items: end; gap: 42px; padding: 72px 6vw; background: var(--ink); color: white; }
.footer-mark { font-family: Impact,sans-serif; color: var(--magenta); font-size: 66px; line-height: .75; letter-spacing: -.08em; }
.footer-mark span { color: var(--cyan); }
footer p { max-width: 600px; margin: 0; color: #c4bdb5; line-height: 1.6; }
footer small { color: #777078; font-size: 9px; letter-spacing: .12em; }
.footer-socials { display: flex; align-items: center; gap: 6px; justify-self: start; }
.footer-social { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: flex-start; justify-self: start; color: white; transition: color .2s ease; }
.footer-social:hover, .footer-social:focus-visible { color: var(--magenta); }
.footer-social:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.footer-social svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social .footer-social-dot { fill: currentColor; stroke: none; }
.footer-social .footer-social-fill { fill: currentColor; stroke: none; }

@media (max-width: 1050px) {
  .chapters-section { grid-template-columns: 1fr; }
  .chapter-intro { position: static; }
  .cast-workspace { height: auto; grid-template-columns: 1fr; }
  .cast-sidebar { grid-template-rows: auto auto; }
  .cast-roster { grid-template-columns: repeat(3,1fr); grid-auto-rows: auto; overflow-y: visible; }
  .cast-chip:nth-child(even) { border-right: 1px solid rgba(255,255,255,.18); }
  .cast-chip:nth-child(3n) { border-right: 0; }
  .cast-chip:nth-last-child(-n+3) { border-bottom: 0; }
  .cast-focus { height: min(698px,calc(100dvh - 76px)); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero-logo { left: 72%; }
}

@media (min-width: 761px) and (max-height: 800px) {
  .hero { height: calc(100svh - 47px); min-height: 0; }
}

@media (max-width: 760px) {
  #news, #cast, #gallery, #chapters { scroll-margin-top: 68px; }
  .site-header { height: 68px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-header > nav:not(.language-toggle) { display: none; }
  .wordmark { font-size: 17px; }
  .hero { min-height: 680px; height: 100svh; padding: 0 18px; background-position: 46.5% top; background-size: auto 66%; }
  .hero::before { top: 68px; }
  .hero::after { inset: 42% 0 0; background: linear-gradient(180deg,transparent 0,rgba(13,11,16,.72) 25%,#17121c 42%,#17121c 100%); }
  .hero-logo { bottom: calc(max(26px,env(safe-area-inset-bottom)) + 138px); width: min(82vw,400px); }
  .hero-actions { left: 18px; right: 18px; bottom: max(26px,env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; }
  .primary-cta, .secondary-cta { width: 100%; }
  .signal-strip span { justify-content: center; text-align: center; font-size: 10px; }
  .section-pad { padding: 84px 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 260px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .news-card:last-child { border-bottom: 0; }
  .news-card h3 { margin-top: 54px; }
  .cast-heading { grid-template-columns: 1fr; }
  .cast-workspace { --mobile-chip-size: min(104px,calc((100vw - 54px)/4)); gap: 16px; }
  .cast-sidebar { gap: 8px; }
  .cast-categories button { min-height: 44px; font-size: 8px; }
  .cast-roster { display: flex; overflow-x: auto; border: 0; gap: 6px; padding-bottom: 0; scrollbar-width: thin; }
  .cast-chip { flex: 0 0 var(--mobile-chip-size); min-height: 0; border: 1px solid rgba(255,255,255,.18) !important; }
  .cast-focus { min-height: 560px; height: max(560px,calc(100dvh - 136px - var(--mobile-chip-size))); grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr) auto; }
  .cast-focus-copy { grid-row: 1; align-self: start; padding: 22px 24px 16px; }
  .cast-focus h3 { font-size: clamp(42px,13vw,54px); }
  .cast-description { margin-top: 14px; font-size: 14px; }
  .form-switch-control { position: static; grid-row: 3; width: 100%; min-height: 72px; height: auto; justify-content: flex-start; gap: 12px; border-top: 1px solid rgba(13,11,16,.16); padding: 8px 24px; background: var(--paper); }
  .form-avatar-switch { width: 56px; height: 56px; flex-basis: 56px; }
  .form-switch-label { font-size: 10px; }
  .cast-portrait { grid-row: 2; }
  .cast-portrait::before { content: none; background: none; }
  .reader-ribbon b { display: none; }
  .reader-page { padding: 44px 26px; }
  .reader-body { font-size: 17px; }
  .reader-navigation { grid-template-columns: 1fr 1fr; }
  .reader-navigation > span { display: none; }
  .chapter-card { grid-template-columns: 68px 1fr; gap: 12px; }
  .chapter-number { font-size: 42px; }
  .chapter-index { gap: 8px; }
  .chapter-cover-link { width: 64px; }
  .chapter-button { grid-column: 2; justify-self: start; }
  footer { grid-template-columns: 1fr; align-items: start; gap: 22px; }
}

.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; gap: 16px; padding: 24px; background: var(--ink); color: white; }
.not-found p { margin: 0; color: var(--magenta); font-family: Impact,sans-serif; font-size: 96px; line-height: .8; }
.not-found h1 { margin: 0; font-size: clamp(30px,6vw,64px); }
.not-found a { padding: 14px 18px; background: var(--cyan); color: var(--ink); font-weight: 900; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Full chapter reader */
.novel-shell { min-height: 100vh; background: #17121c; color: var(--ink); }
.reader-header { position: sticky; z-index: 40; top: 0; min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 max(22px,4vw); border-bottom: 1px solid rgba(255,255,255,.16); background: rgba(13,11,16,.94); color: white; backdrop-filter: blur(16px); }
.reader-wordmark { width: max-content; color: white; text-decoration: none; font-family: Arial,Helvetica,sans-serif; font-weight: 950; letter-spacing: -.055em; line-height: .82; }
.reader-wordmark span, .reader-wordmark b { display: block; }
.reader-wordmark b { color: var(--magenta); font-style: italic; }
.reader-back { display: flex; align-items: center; gap: 9px; color: #ddd5cb; text-decoration: none; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; font-weight: 900; }
.reader-back svg { width: 15px; }
.reader-languages { justify-self: end; display: flex; align-items: center; gap: 4px; }
.reader-languages > svg { width: 15px; margin-right: 8px; color: var(--cyan); }
.reader-languages a { min-width: 34px; padding: 8px 7px; color: #aaa2aa; text-align: center; text-decoration: none; font-size: 9px; font-weight: 900; }
.reader-languages a[aria-current="page"] { background: var(--cyan); color: var(--ink); }
.reader-quick-menu { position: fixed; z-index: 30; top: 110px; left: max(16px,calc(50vw - 700px)); width: min(220px,calc(50vw - 492px)); max-height: calc(100dvh - 134px); overflow-y: auto; border: 1px solid rgba(255,255,255,.18); background: rgba(24,19,27,.94); color: white; box-shadow: 0 18px 48px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.reader-quick-menu > p { display: flex; align-items: center; gap: 9px; margin: 0; padding: 14px 16px; color: var(--cyan); text-transform: uppercase; font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.reader-quick-menu > p svg { width: 15px; }
.reader-quick-menu nav { display: flex; flex-direction: column; }
.reader-quick-menu a, .reader-quick-menu-mobile nav a { min-height: 58px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); padding: 10px 14px; color: #d4cdd5; text-decoration: none; transition: color .18s ease, background .18s ease; }
.reader-quick-menu a:hover, .reader-quick-menu-mobile nav a:hover { background: rgba(255,255,255,.08); color: white; }
.reader-quick-menu a[aria-current="page"], .reader-quick-menu-mobile nav a[aria-current="page"] { background: var(--magenta); color: white; }
.reader-quick-menu a span, .reader-quick-menu-mobile nav a span { color: var(--cyan); font-family: Impact,sans-serif; font-size: 22px; font-weight: 400; line-height: 1; }
.reader-quick-menu a[aria-current="page"] span, .reader-quick-menu-mobile nav a[aria-current="page"] span { color: white; }
.reader-quick-menu a b, .reader-quick-menu-mobile nav a b { min-width: 0; font-size: 11px; line-height: 1.25; }
.reader-quick-menu-mobile { display: none; }
.novel-page { width: min(920px,calc(100% - 32px)); margin: 0 auto; padding: clamp(58px,8vw,110px) clamp(26px,8vw,104px) 0; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 28px 90px rgba(0,0,0,.34); }
.novel-title { margin-bottom: 58px; padding-bottom: 34px; border-bottom: 2px solid var(--ink); }
.novel-title > p { margin: 0 0 16px; color: var(--magenta-ink); text-transform: uppercase; font-size: 10px; font-weight: 950; letter-spacing: .18em; }
.novel-title h1 { max-width: 680px; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(52px,7vw,82px); line-height: .95; letter-spacing: -.055em; }
.lang-ja .novel-title h1 { font-family: "Yu Mincho","Hiragino Mincho ProN",serif; }
.novel-title > div { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; color: #756d66; text-transform: uppercase; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.novel-title > div span { display: flex; align-items: center; gap: 7px; }
.novel-title svg { width: 14px; }
.novel-body { font-family: Georgia,"Times New Roman",serif; font-size: clamp(17px,2vw,19px); line-height: 1.5; }
.lang-ja .novel-body { font-family: "Yu Mincho","Hiragino Mincho ProN",serif; }
.novel-body p { margin: 0 0 1em; white-space: pre-line; }
.novel-body > p:first-child::first-letter { float: left; margin: .08em .1em 0 0; color: var(--magenta-ink); font-family: Impact,sans-serif; font-size: 4.8em; line-height: .7; }
.lang-ja .novel-body > p:first-child::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.novel-separator { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 52px 0; color: var(--magenta-ink); font-size: 10px; }
.novel-separator::before, .novel-separator::after { content: ""; height: 1px; background: rgba(13,11,16,.2); }
.novel-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 38px calc(clamp(26px,8vw,104px) * -1) 0; background: var(--magenta); color: white; border-block: 2px solid var(--ink); }
.novel-navigation > a { min-height: 126px; display: flex; align-items: center; gap: 18px; padding: 28px 34px; color: white; text-decoration: none; }
.novel-navigation > a + a { justify-content: flex-end; text-align: right; border-left: 2px solid var(--ink); }
.novel-navigation > a:hover { background: var(--ink); color: white; }
.novel-navigation svg { flex: 0 0 auto; width: 20px; }
.novel-navigation span { display: flex; flex-direction: column; font-weight: 900; line-height: 1.15; }
.novel-navigation small { margin-bottom: 7px; text-transform: uppercase; font-size: 8px; font-weight: 900; letter-spacing: .12em; opacity: .64; }

/* Chapter comments */
.comments { width: min(920px,calc(100% - 32px)); margin: 0 auto; padding: 10px clamp(26px,8vw,104px) 88px; background: #211926; color: white; }
.comments-eyebrow { margin: 0 0 10px; color: var(--cyan); text-transform: uppercase; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.comments h2 { margin: 0; font-family: Impact,"Arial Black",sans-serif; font-size: clamp(48px,6vw,72px); text-transform: uppercase; line-height: .9; }
.comments h2 span { color: var(--magenta); font-size: .38em; vertical-align: top; }
.comments-intro { max-width: 620px; margin: 22px 0 36px; color: #bbb2bc; line-height: 1.65; }
.comment-form { display: grid; grid-template-columns: minmax(180px,.4fr) 1fr; gap: 18px; padding: 28px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.035); }
.comment-form label { display: flex; flex-direction: column; gap: 8px; color: #bbb2bc; text-transform: uppercase; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.comment-form label:nth-child(2) { grid-row: span 2; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.24); border-radius: 0; padding: 12px 13px; outline: none; background: #141016; color: white; font: 15px/1.55 Arial,sans-serif; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.comment-form .comment-trap { position: absolute; left: -10000px; }
.comment-submit { align-self: end; display: flex; flex-direction: column; gap: 8px; }
.comment-submit button { min-height: 46px; border: 0; padding: 0 16px; background: var(--magenta); color: white; cursor: pointer; text-transform: uppercase; font-size: 9px; font-weight: 950; letter-spacing: .11em; }
.comment-submit button:disabled { opacity: .58; cursor: wait; }
.comment-submit span { min-height: 14px; color: #aaa2aa; font-size: 11px; }
.comment-list { margin-top: 38px; border-top: 1px solid rgba(255,255,255,.16); }
.comment-list article { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.comment-list header { display: flex; justify-content: space-between; gap: 18px; }
.comment-list strong { color: var(--magenta); }
.comment-list time { color: #7f7680; font-size: 10px; }
.comment-list article > p { margin: 12px 0 0; color: #ddd5de; line-height: 1.7; white-space: pre-wrap; }
.comment-empty { padding: 28px 0; color: #8d858e; }
.reader-footer { width: min(920px,calc(100% - 32px)); margin: 0 auto; padding: 32px; background: var(--ink); color: #716a72; text-align: center; font-size: 8px; letter-spacing: .15em; }

@media (max-width: 1279px) {
  .reader-quick-menu { display: none; }
  .reader-quick-menu-mobile { position: fixed; z-index: 39; top: 88px; left: 14px; display: block; }
  .reader-quick-menu-mobile summary { min-height: 44px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.24); padding: 0 13px; background: rgba(13,11,16,.94); color: white; box-shadow: 0 12px 32px rgba(0,0,0,.3); cursor: pointer; list-style: none; text-transform: uppercase; font-size: 8px; font-weight: 950; letter-spacing: .1em; backdrop-filter: blur(14px); }
  .reader-quick-menu-mobile summary::-webkit-details-marker { display: none; }
  .reader-quick-menu-mobile summary svg { width: 16px; color: var(--cyan); }
  .reader-quick-menu-mobile nav { width: min(300px,calc(100vw - 28px)); margin-top: 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(24,19,27,.98); color: white; box-shadow: 0 18px 48px rgba(0,0,0,.36); }
}

/* Private statistics dashboard */
.stats-login, .stats-dashboard { min-height: 100vh; background: #100d12; color: white; }
.stats-login { display: grid; place-items: center; padding: 24px; }
.stats-login form { width: min(440px,100%); display: flex; flex-direction: column; gap: 18px; padding: 38px; border: 1px solid rgba(255,255,255,.18); background: #1c161f; }
.stats-login p, .stats-dashboard header p { margin: 0; color: var(--magenta); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.stats-login h1, .stats-dashboard h1 { margin: 0; font-family: Impact,sans-serif; font-size: 64px; text-transform: uppercase; }
.stats-login label { display: flex; flex-direction: column; gap: 8px; color: #aaa2aa; font-size: 11px; }
.stats-login input { padding: 13px; border: 1px solid rgba(255,255,255,.2); background: #0f0c11; color: white; }
.stats-login button, .stats-dashboard header button { min-height: 44px; border: 0; padding: 0 18px; background: var(--cyan); color: var(--ink); cursor: pointer; font-weight: 900; }
.stats-login span { color: #ff8a73; font-size: 12px; }
.stats-dashboard { padding: 52px max(20px,5vw) 80px; }
.stats-dashboard > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 10px; margin: 38px 0; }
.stats-cards article { min-height: 138px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: var(--magenta); color: white; }
.stats-cards span { text-transform: uppercase; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.stats-cards strong { font-family: Impact,sans-serif; font-size: 54px; }
.stats-grids { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats-grids > section { min-width: 0; padding: 22px; border: 1px solid rgba(255,255,255,.15); background: #1a151d; }
.stats-grids .stats-wide { grid-column: 1 / -1; }
.stats-grids h2 { margin: 0 0 18px; font-size: 18px; }
.stats-explanation { max-width: 920px; margin: -8px 0 20px; color: #aaa2aa; font-size: 12px; line-height: 1.6; }
.stats-table-wrap { overflow-x: auto; }
.stats-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; }
.stats-table-wrap th, .stats-table-wrap td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; }
.stats-table-wrap th { color: var(--cyan); text-transform: uppercase; font-size: 8px; letter-spacing: .1em; }
.stats-empty { color: #817981; }

@media (max-width: 760px) {
  .reader-header { grid-template-columns: 1fr auto; min-height: 66px; }
  .reader-back { display: none; }
  .reader-quick-menu-mobile { top: 78px; left: 10px; }
  .reader-quick-menu-mobile summary { width: 44px; padding: 0; justify-content: center; }
  .reader-quick-menu-mobile summary span { display: none; }
  .novel-page, .comments, .reader-footer { width: 100%; }
  .novel-page { padding-left: 24px; padding-right: 24px; }
  .novel-title h1 { font-size: 48px; }
  .novel-navigation { margin-inline: -24px; gap: 0; }
  .novel-navigation > a { min-height: 110px; padding: 22px 16px; font-size: 12px; }
  .comment-form { grid-template-columns: 1fr; padding: 20px; }
  .comment-form label:nth-child(2) { grid-row: auto; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .stats-grids { grid-template-columns: 1fr; }
  .stats-grids .stats-wide { grid-column: 1; }
}
