:root {
  color-scheme: dark;
  --ink: #050405;
  --black: #080708;
  --panel: #100e10;
  --panel-soft: rgba(244, 240, 232, 0.055);
  --paper: #f4f0e8;
  --bone: #d9d2c6;
  --muted: #98918a;
  --line: rgba(244, 240, 232, 0.14);
  --line-strong: rgba(244, 240, 232, 0.24);
  --red: #b81725;
  --red-hot: #ef2736;
  --gold: #d6b36a;
  --green: #7bd88f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(184, 23, 37, 0.16) 0, transparent 360px),
    repeating-radial-gradient(circle at 0 0, rgba(244, 240, 232, 0.16) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #070607 0%, #050405 46%, #0a0809 100%);
  background-blend-mode: normal, soft-light, normal;
  color: var(--paper);
}

body.reader-open {
  background:
    repeating-radial-gradient(circle at 0 0, rgba(244, 240, 232, 0.12) 0 1px, transparent 1px 8px),
    #060506;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 26%, rgba(0, 0, 0, 0.22) 58%, transparent),
    linear-gradient(90deg, rgba(244, 240, 232, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 240, 232, 0.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: 0.56;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

button,
a.button {
  min-height: 48px;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 6px;
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ef2736, #96111c);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(184, 23, 37, 0.26);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

button:hover,
a.button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

button.secondary,
a.button.secondary {
  background: rgba(244, 240, 232, 0.07);
  color: var(--paper);
  box-shadow: none;
}

button.ghost,
a.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
  box-shadow: none;
}

button.compact {
  min-height: 34px;
  padding: 0 0.7rem;
  font-size: 0.78rem;
}

.loading-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ink);
}

.loading-screen p {
  margin: 0;
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: 4rem;
  line-height: 0.9;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  padding: 0.72rem clamp(1rem, 4%, 4.5rem);
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(180px, 1fr);
  gap: 1.2rem;
  align-items: center;
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  background: rgba(5, 4, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(184, 23, 37, 0.9), rgba(7, 6, 7, 0.96)),
    linear-gradient(90deg, rgba(244, 240, 232, 0.18), transparent);
  box-shadow: 0 0 0 5px rgba(184, 23, 37, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.nav-links a,
.footer-links a {
  position: relative;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  color: rgba(244, 240, 232, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.footer-links a:hover {
  color: var(--paper);
  background: rgba(244, 240, 232, 0.06);
}

.account-box {
  min-width: 0;
  display: flex;
  justify-content: end;
}

.account-chip {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.account-chip img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.account-chip span {
  min-width: 0;
  max-width: 13rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.google-button {
  min-height: 42px;
}

.site-nav .google-button {
  width: 240px;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 5.8rem clamp(1rem, 5%, 4.5rem) 5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.76fr);
  gap: 4rem;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 5, 0.94) 0%, rgba(5, 4, 5, 0.78) 40%, rgba(5, 4, 5, 0.36) 100%),
    var(--hero-image) center / cover no-repeat;
  filter: grayscale(0.86) contrast(1.15);
  opacity: 0.82;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 4, 5, 0.34) 62%, #060506 100%),
    repeating-linear-gradient(110deg, rgba(244, 240, 232, 0.055) 0 1px, transparent 1px 16px);
}

.hero-copy-block {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--red-hot);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: 8.7rem;
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow:
    4px 0 0 rgba(184, 23, 37, 0.72),
    0 18px 42px rgba(0, 0, 0, 0.76);
}

.hero-subtitle {
  margin: 1.4rem 0 0;
  color: rgba(244, 240, 232, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 36rem;
  margin: 1.35rem 0 0;
  color: rgba(216, 210, 198, 0.82);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions,
.chapter-actions,
.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-stats {
  width: min(100%, 36rem);
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(244, 240, 232, 0.14);
  background: rgba(244, 240, 232, 0.11);
  gap: 1px;
}

.hero-stats div {
  padding: 1.1rem;
  background: rgba(5, 4, 5, 0.72);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.05;
}

.hero-stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-price-note {
  width: min(100%, 36rem);
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(214, 179, 106, 0.24);
  border-top: 0;
  background: rgba(214, 179, 106, 0.07);
  color: var(--bone);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero-art {
  position: relative;
  min-height: 600px;
}

.cover-card {
  position: absolute;
  top: 0;
  right: 4rem;
  width: min(340px, 72%);
  padding: 0.85rem;
  display: block;
  border: 1px solid rgba(244, 240, 232, 0.2);
  border-radius: 8px;
  background: rgba(9, 8, 9, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.64);
  text-decoration: none;
  transform: rotate(2deg);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 0.66;
  object-fit: cover;
  border: 1px solid rgba(244, 240, 232, 0.16);
  filter: grayscale(0.9) contrast(1.08);
}

.cover-card span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.05rem 0.1rem;
  color: var(--bone);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.cover-card em {
  color: var(--muted);
  font-style: normal;
}

.preview-stack {
  position: absolute;
  left: 0;
  bottom: 2rem;
  width: min(430px, 82%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  transform: rotate(-3deg);
}

.preview-stack img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  border: 8px solid #f1eee7;
  background: #111;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
  filter: grayscale(1) contrast(1.08);
}

.preview-stack img:first-child {
  grid-column: span 2;
  height: 162px;
}

.release-seal {
  position: absolute;
  right: 0.8rem;
  bottom: 4.4rem;
  width: 8.3rem;
  height: 8.3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 179, 106, 0.66);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(214, 179, 106, 0.16) 0 1px, transparent 1px 6px),
    linear-gradient(135deg, rgba(184, 23, 37, 0.34), rgba(7, 6, 7, 0.96));
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 5.5rem clamp(1rem, 5%, 4.5rem);
}

.section-head {
  width: min(1290px, 100%);
  margin: 0 auto 2.1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head h2 {
  max-width: 46rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1.02;
}

.section-head p:not(.eyebrow) {
  max-width: 27rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.chapter-feature {
  width: min(1290px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  border: 1px solid rgba(244, 240, 232, 0.16);
  background:
    linear-gradient(135deg, rgba(244, 240, 232, 0.08), rgba(244, 240, 232, 0.025)),
    #080708;
  box-shadow: var(--shadow);
}

.chapter-feature-media {
  min-height: 540px;
  padding: 1.7rem;
  border-right: 1px solid rgba(244, 240, 232, 0.13);
  background:
    repeating-linear-gradient(135deg, rgba(244, 240, 232, 0.04) 0 1px, transparent 1px 14px),
    #0b0a0b;
}

.chapter-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(244, 240, 232, 0.18);
  filter: grayscale(0.94) contrast(1.1);
}

.chapter-feature-copy {
  padding: clamp(2rem, 5%, 3.5rem);
  display: grid;
  align-content: center;
}

.chapter-feature-copy h3 {
  margin: 0;
  font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
  font-size: 4.3rem;
  line-height: 0.96;
  text-transform: uppercase;
}

.chapter-feature-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: rgba(216, 210, 198, 0.82);
  font-size: 1.03rem;
  line-height: 1.75;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.55rem;
}

.pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.78rem;
  background: rgba(244, 240, 232, 0.045);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.pill.success {
  border-color: rgba(123, 216, 143, 0.35);
  color: var(--green);
}

.pill.locked {
  border-color: rgba(239, 39, 54, 0.32);
  color: #ff9aa2;
}

.chapter-actions {
  margin-top: 2rem;
}

.flow-note,
.status-line {
  margin-top: 1.5rem;
  padding: 1rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 179, 106, 0.24);
  border-radius: 8px;
  background: rgba(214, 179, 106, 0.07);
  color: var(--bone);
  font-size: 0.88rem;
}

.status-dot {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px rgba(214, 179, 106, 0.55);
}

.about-grid {
  width: min(1290px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 2rem;
}

.synopsis-card {
  min-height: 100%;
  padding: 2.8rem;
  display: grid;
  align-items: center;
  border-left: 4px solid var(--red);
  background:
    linear-gradient(120deg, rgba(184, 23, 37, 0.16), rgba(244, 240, 232, 0.035)),
    rgba(244, 240, 232, 0.035);
}

.synopsis-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.28;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.world-grid article {
  min-height: 190px;
  padding: 1.6rem;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(244, 240, 232, 0.07), rgba(244, 240, 232, 0.018)),
    #0b090b;
}

.world-grid span {
  color: var(--red-hot);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.world-grid h3 {
  margin: 1rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.world-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.gallery-grid {
  width: min(1290px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.78fr 0.78fr;
  gap: 1rem;
}

.gallery-panel {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  border: 10px solid #f0ede7;
  background: #111;
  color: var(--paper);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.gallery-panel.tall {
  min-height: 560px;
}

.gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: transform 240ms ease;
}

.gallery-panel:hover img {
  transform: scale(1.025);
}

.gallery-panel span {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.46rem 0.65rem;
  background: rgba(5, 4, 5, 0.78);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero {
  min-height: 420px;
  padding: 6rem clamp(1rem, 5%, 4.5rem) 4rem;
  display: grid;
  align-content: center;
  background:
    linear-gradient(90deg, rgba(5, 4, 5, 0.96), rgba(5, 4, 5, 0.72)),
    url("/assets/manga/chapter-1/hero.jpg") center / cover no-repeat;
}

.page-hero p:not(.eyebrow) {
  max-width: 43rem;
  margin: 1.2rem 0 0;
  color: var(--bone);
  line-height: 1.7;
}

.chapter-library {
  padding-top: 3rem;
}

.chapter-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.chapter-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 240, 232, 0.07), rgba(244, 240, 232, 0.02)),
    #0b090b;
  box-shadow: var(--shadow);
}

.chapter-cover {
  overflow: hidden;
  aspect-ratio: 0.66;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 6px;
  background: #111;
}

.chapter-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.95) contrast(1.08);
}

.chapter-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.chapter-copy p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.chapter-card .chapter-actions {
  margin-top: 0;
  justify-content: end;
}

.reader-shell {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(184, 23, 37, 0.12), transparent 360px),
    #060506;
}

.reader-bar {
  position: sticky;
  top: 76px;
  z-index: 25;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.7rem clamp(1rem, 4%, 2rem);
  border-bottom: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(6, 5, 6, 0.9);
  backdrop-filter: blur(18px);
}

.reader-title {
  min-width: 0;
}

.reader-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-title span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 240, 232, 0.04);
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.segmented button[aria-pressed="true"] {
  background: var(--paper);
  color: #100d0d;
}

.reader-actions {
  margin: 0;
  justify-content: end;
}

.reader-actions a.button {
  min-height: 38px;
}

.paywall-panel,
.unlocked-panel {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.4rem auto 0;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 240, 232, 0.07), rgba(244, 240, 232, 0.025)),
    #0b090b;
  box-shadow: var(--shadow);
}

.paywall-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 1.4rem;
  padding: 1.25rem;
}

.paywall-copy {
  padding: 1rem;
}

.paywall-panel h2,
.unlocked-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.08;
}

.paywall-panel p:not(.eyebrow),
.unlocked-panel p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.pay-steps {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(244, 240, 232, 0.11);
  background: rgba(244, 240, 232, 0.1);
  gap: 1px;
}

.pay-steps div {
  padding: 1rem;
  background: rgba(5, 4, 5, 0.68);
}

.pay-steps span {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 232, 0.18);
  border-radius: 6px;
  color: var(--red-hot);
  font-weight: 900;
}

.pay-steps strong {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.pay-steps small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.checkout-box {
  display: grid;
}

.checkout-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(244, 240, 232, 0.13);
  border-radius: 8px;
  background: rgba(5, 4, 5, 0.55);
}

.checkout-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-panel {
  display: grid;
  justify-items: start;
}

.checkout-box button,
.checkout-box .button {
  width: 100%;
}

.checkout-status {
  min-height: 1.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.notice {
  margin: 0;
  border: 1px solid rgba(239, 39, 54, 0.36);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(184, 23, 37, 0.12);
  color: #ffd9dd;
  line-height: 1.55;
}

.unlocked-panel {
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(135deg, rgba(123, 216, 143, 0.1), rgba(244, 240, 232, 0.03)),
    #0b090b;
}

.reader-pages {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 1.35rem auto 0;
  padding-bottom: 4.5rem;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.reader-pages.fit {
  width: min(940px, calc(100% - 1.5rem));
}

.reader-pages.sample {
  width: min(1200px, calc(100% - 1.5rem));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.manga-page {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.14);
  border-radius: 6px;
  background: #111;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.reader-pages.sample .manga-page {
  border: 8px solid #f0ede7;
}

.manga-page img {
  width: 100%;
  height: auto;
  background: #111;
}

.reader-pages.sample .manga-page img {
  filter: grayscale(1) contrast(1.06);
}

.page-lock {
  position: absolute;
  inset: auto 0.8rem 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(244, 240, 232, 0.16);
  border-radius: 6px;
  background: rgba(5, 4, 5, 0.78);
  color: var(--paper);
  backdrop-filter: blur(10px);
}

.page-lock span {
  color: var(--muted);
  font-size: 0.82rem;
}

.sample-empty {
  position: relative;
  width: min(820px, calc(100vw - 2rem));
  max-width: 820px;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(190px, 0.54fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b090b;
  box-shadow: var(--shadow);
}

.locked-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 4, 5, 0.2), rgba(5, 4, 5, 0.86)),
    var(--locked-cover) center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}

.locked-visual::before {
  position: absolute;
  inset: -18px;
  content: "";
  background: var(--locked-cover) center / cover no-repeat;
  filter: blur(18px) grayscale(1);
  transform: scale(1.08);
}

.locked-visual::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "LOCKED";
  background: rgba(5, 4, 5, 0.6);
  color: rgba(244, 240, 232, 0.92);
  font-size: 1.8rem;
  font-weight: 900;
}

.sample-empty-copy {
  padding: 2rem;
  display: grid;
  align-content: center;
}

.sample-empty h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.08;
}

.sample-empty p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 2.5rem clamp(1rem, 5%, 4.5rem);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: center;
  border-top: 1px solid rgba(244, 240, 232, 0.12);
  background: #060506;
  color: var(--muted);
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.site-footer p {
  justify-self: end;
  max-width: 24rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 1080px) {
  .site-nav {
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .account-box {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 6.1rem;
  }

  .hero-art {
    min-height: 560px;
  }

  .cover-card {
    right: 8%;
  }

  .section-head,
  .about-grid {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .chapter-feature {
    grid-template-columns: 1fr;
  }

  .chapter-feature-media {
    min-height: 420px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 240, 232, 0.13);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-panel,
  .gallery-panel.tall {
    min-height: 380px;
  }

  .paywall-panel {
    grid-template-columns: 1fr;
  }

  .reader-pages.sample {
    grid-template-columns: 1fr;
    width: min(560px, calc(100% - 1.5rem));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
  }

  .site-footer p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 64px;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    align-items: start;
  }

  .nav-links {
    width: 100%;
    justify-content: stretch;
  }

  .nav-links a {
    flex: 1;
    padding: 0.62rem 0.5rem;
    text-align: center;
  }

  .account-box {
    width: 100%;
  }

  .site-nav .google-button {
    width: 100%;
  }

  .hero {
    padding-top: 3.5rem;
    gap: 2.5rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 4.3rem;
  }

  .hero-subtitle {
    font-size: 1.45rem;
  }

  .hero-actions,
  .chapter-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .chapter-actions .button,
  .chapter-actions button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 500px;
  }

  .cover-card {
    right: 0;
    width: min(300px, 76%);
  }

  .preview-stack {
    width: min(340px, 82%);
  }

  .release-seal {
    width: 6.7rem;
    height: 6.7rem;
    font-size: 0.86rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-head h2 {
    font-size: 2.2rem;
  }

  .chapter-feature-copy h3 {
    font-size: 2.75rem;
  }

  .chapter-feature-media {
    min-height: 360px;
    padding: 1rem;
  }

  .world-grid {
    grid-template-columns: 1fr;
  }

  .synopsis-card {
    padding: 1.7rem;
  }

  .synopsis-card p {
    font-size: 1.45rem;
  }

  .chapter-card {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
  }

  .chapter-card .chapter-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .chapter-cover {
    border-radius: 6px;
  }

  .chapter-copy h3 {
    font-size: 1.25rem;
  }

  .reader-bar {
    top: 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .reader-actions {
    justify-content: start;
  }

  .pay-steps {
    grid-template-columns: 1fr;
  }

  .unlocked-panel {
    align-items: start;
    flex-direction: column;
  }

  .sample-empty {
    grid-template-columns: 1fr;
  }

  .locked-visual {
    min-height: 260px;
  }
}

@media (max-width: 460px) {
  button,
  a.button {
    width: 100%;
  }

  .brand-copy strong {
    font-size: 0.84rem;
  }

  .brand-copy span {
    font-size: 0.68rem;
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3.35rem;
  }

  .hero-art {
    min-height: 430px;
  }

  .cover-card {
    width: 76%;
  }

  .preview-stack {
    bottom: 0.8rem;
  }

  .preview-stack img {
    height: 126px;
    border-width: 6px;
  }

  .preview-stack img:first-child {
    height: 116px;
  }

  .release-seal {
    right: 0;
    bottom: 3rem;
  }

  .gallery-panel,
  .gallery-panel.tall {
    min-height: 300px;
    border-width: 7px;
  }

  .paywall-panel,
  .unlocked-panel {
    width: min(100% - 1rem, 1180px);
  }

  .paywall-copy,
  .checkout-card,
  .sample-empty-copy {
    padding: 1rem;
  }

  .paywall-panel h2,
  .unlocked-panel h2,
  .sample-empty h2 {
    font-size: 1.55rem;
  }
}
