* { box-sizing: border-box; }
html, body { margin: 0; background: #141418; color: #ececec; font-family: 'Comic Neue', 'Comic Sans MS', sans-serif; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; background: rgba(10, 10, 14, .94); border-bottom: 1px solid #2a2a33; font-weight: 700; font-size: 15px;
}
.top a { color: #7dffb0; text-decoration: none; }
.top a:hover { text-decoration: underline; }
#reader { max-width: 800px; margin: 0 auto; padding: 20px 0 40px; min-height: 60vh; }
.panel { margin: 28px 0 0; }
.panel:first-child { margin-top: 0; }
.panel svg { display: block; width: 100%; height: auto; }
.loading { text-align: center; padding: 80px 16px; color: #888; }
body.ready .loading { display: none; }
.nav { max-width: 800px; margin: 0 auto 60px; display: flex; justify-content: space-between; gap: 12px; padding: 0 16px; }
.nav a, .nav span {
  flex: 1; text-align: center; padding: 14px; border-radius: 10px; background: #1f2a24; color: #7dffb0;
  text-decoration: none; font-weight: 700;
}
.nav span { opacity: .4; }
/* daftar chapter */
.list { max-width: 640px; margin: 0 auto; padding: 32px 16px 80px; }
.list h1 { font-family: 'Bangers', Impact, sans-serif; letter-spacing: 3px; font-size: 56px; margin: 0; color: #f4f7f2; }
.list .sub { color: #7dffb0; margin: 4px 0 28px; font-weight: 700; letter-spacing: 2px; }
.list a.ch, .list div.ch {
  display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 10px; border-radius: 12px;
  background: #1c1f1d; border: 1px solid #2a332d; color: #ececec; text-decoration: none;
}
.list a.ch:hover { border-color: #7dffb0; }
.list div.ch { opacity: .45; }
.list .ch b { color: #7dffb0; white-space: nowrap; }
@media print { .top, .nav { display: none; } body { background: #fff; } .panel { break-inside: avoid; } }
