:root {
  --bg: #0B0C10;
  --bg2: #101116;
  --surface: #14151C;
  --surface2: #161821;
  --border: #23252E;
  --border2: #2A2D38;
  --text: #F2F2F4;
  --muted: #9CA0AC;
  --muted2: #6F7380;
  --accent: #EF9F27;
  --accent-soft: #FAC775;
  --accent-ink: #412402;
  --patreon: #E24B4A;
  --patreon-soft: #F09595;
  --patreon-ink: #FCEBEB;
  --teal: #5DCAA5;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1 { font-size: 28px; font-weight: 800; margin: 8px 0; letter-spacing: -0.01em; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.spacer { flex: 1; }
.ti { vertical-align: -2px; }

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.head-row { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.logo-word { font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.site-head nav { display: flex; gap: 16px; }
.site-head nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.site-head nav a:hover { color: var(--text); }
.chip-18 { border: 1px solid #3A3D49; color: var(--muted); font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13.5px; font-family: inherit;
  padding: 9px 15px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: filter 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-ghost { border-color: #3A3D49; color: #C7CAD4; background: transparent; }
.btn-ghost:hover { border-color: #555A6B; color: var(--text); }
.btn-patreon { background: var(--patreon); color: var(--patreon-ink); }
.btn-patreon:hover { filter: brightness(1.07); }
.btn-link { color: var(--patreon-soft); border: none; padding: 9px 4px; background: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.badge-new { background: var(--accent); color: var(--accent-ink); }
.badge-lock { background: var(--border2); color: #C7CAD4; }
.badge-status { background: var(--border2); color: #C7CAD4; text-transform: capitalize; }

.cover { display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; flex: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-initial { font-weight: 800; letter-spacing: 0.04em; }
.cover-hero { width: 220px; aspect-ratio: 3 / 4; }
.cover-hero .cover-initial { font-size: 44px; }
.cover-thumb { width: 56px; height: 74px; border-radius: 7px; }
.cover-thumb .cover-initial { font-size: 15px; }
.cover-grid { width: 100%; aspect-ratio: 3 / 4; }
.cover-grid .cover-initial { font-size: 30px; }

.hero {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; margin: 26px 0;
}
.hero-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-meta { color: var(--muted); font-size: 13px; margin: 0; }
.hero-teaser { color: #B6BAC6; font-size: 14.5px; margin: 10px 0 0; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }

.row-section { margin: 30px 0; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; }
.row-head .more { color: var(--muted); font-size: 13px; }
.row-head .more:hover { color: var(--text); }
.sub { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }

.card-row { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.progress-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.progress-card:hover { border-color: #3A3D49; }
.pc-body { min-width: 0; flex: 1; }
.pc-title { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar { display: block; height: 4px; border-radius: 999px; background: var(--border); margin: 8px 0 6px; }
.pbar-fill { display: block; height: 4px; border-radius: 999px; background: var(--teal); }
.pc-meta { color: var(--muted); font-size: 11.5px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; margin: 10px 0 30px; }

.feed-day { color: var(--muted2); font-size: 12px; font-weight: 600; margin: 16px 0 8px; }
.feed-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; margin-bottom: 9px;
}
.feed-card:hover { border-color: #3A3D49; }
.fc-body { flex: 1; min-width: 0; }
.fc-title { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.fc-teaser { color: var(--muted2); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read-link { color: var(--accent-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.read-locked { color: var(--patreon-soft); }

.side { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 15px; }
.panel h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.panel p { margin: 0; color: var(--muted); font-size: 12.5px; }
.panel .btn { width: 100%; justify-content: center; margin-top: 12px; }
.sched-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 4px 0; }
.sched-done { color: var(--teal); }
.sched-wait { color: var(--accent-soft); }
.follow-row { display: flex; gap: 8px; }
.follow-row a {
  width: 34px; height: 34px; border: 1px solid var(--border2); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px;
}
.follow-row a:hover { color: var(--text); border-color: #3A3D49; }

.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.series-card .sc-cover { position: relative; }
.sc-badge { position: absolute; top: 8px; left: 8px; }
.sc-title { display: block; font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.sc-meta { color: var(--muted); font-size: 12px; }
.series-card:hover .sc-title { color: var(--accent-soft); }

.about p { color: var(--muted); font-size: 14px; max-width: 640px; }
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; }
.foot-brand { font-weight: 800; letter-spacing: 0.05em; font-size: 14px; }
.foot-note { color: var(--muted2); font-size: 12.5px; max-width: 560px; }
.foot-links { color: var(--muted); font-size: 13px; display: flex; gap: 14px; margin-top: 10px; }
.foot-links a:hover { color: var(--text); }

.parts-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.part-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.part-row:last-child { border-bottom: none; }
.part-row:hover { background: var(--surface2); }
.pr-title { font-size: 14px; font-weight: 600; flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.part-archive .pr-title { color: var(--muted); font-weight: 500; }

.reader-top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.rt-row { display: flex; align-items: center; gap: 14px; height: 54px; }
.rt-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-count { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.reader-pages { max-width: 860px; margin: 0 auto; padding: 18px 12px 10px; }
img.page { display: block; width: 100%; border-radius: 6px; margin-bottom: 10px; background: var(--surface); }
.reader-nav { display: flex; justify-content: space-between; gap: 10px; max-width: 860px; margin: 0 auto; padding: 0 12px 36px; }
.end-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 24px; text-align: center; margin: 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.end-card h2 { margin: 0; }
.end-card p { margin: 0; color: var(--muted); font-size: 14px; }
.end-icon { font-size: 34px; color: var(--muted); }

body.gated { overflow: hidden; }
body.gated main, body.gated .site-head, body.gated footer, body.gated .reader-top { filter: blur(16px); pointer-events: none; user-select: none; }
.gate-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 9, 12, 0.78);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gate-card { background: var(--bg2); border: 1px solid var(--border2); border-radius: 18px; padding: 34px 30px; max-width: 430px; text-align: center; }
.gate-logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px;
}
.gate-card h2 { font-size: 21px; }
.gate-card p { color: var(--muted); font-size: 14px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 150px minmax(0, 1fr); padding: 18px; gap: 18px; }
  .cover-hero { width: 150px; }
  .cover-hero .cover-initial { font-size: 32px; }
  h1 { font-size: 22px; }
}
@media (max-width: 600px) {
  .site-head nav { display: none; }
  .hero { grid-template-columns: 110px minmax(0, 1fr); }
  .cover-hero { width: 110px; }
  .cover-hero .cover-initial { font-size: 24px; }
  .hero-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .series-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .fc-teaser { display: none; }
  .card-row { grid-auto-columns: 230px; }
  .pr-meta { display: none; }
}