* { box-sizing: border-box; }
html { background: #17120f; color: #f6efe2; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
body { margin: 0; min-height: 100vh; background: #17120f; }
a { color: inherit; }
button, input { font: inherit; }
button, .primary-link { min-height: 44px; border: 1px solid #8f2f26; border-radius: 3px; background: #8f2f26; color: #fff8eb; cursor: pointer; padding: 10px 16px; font-weight: 700; }
button:disabled { cursor: default; opacity: .4; }
input { min-height: 44px; border: 1px solid #66584e; border-radius: 3px; background: #211b17; color: #fff; padding: 9px 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; min-height: 68px; border-bottom: 1px solid #40352d; background: #17120f; padding: 10px 4%; }
.brand { margin-right: 28px; white-space: nowrap; text-decoration: none; font-family: Georgia, serif; font-size: 20px; font-weight: bold; letter-spacing: .03em; }
.brand span { display: inline-block; width: 35px; height: 35px; margin-right: 7px; border: 2px solid #d4a847; color: #d4a847; line-height: 31px; text-align: center; }
.search-form { display: flex; flex: 1; max-width: 620px; margin-right: auto; }
.search-form input { flex: 1; border-radius: 3px 0 0 3px; }
.search-form button { border-radius: 0 3px 3px 0; }
.quiet-button { margin-left: 16px; border-color: #66584e; background: transparent; color: #d9cdc0; }
.page-shell { width: 92%; max-width: 1480px; margin: 0 auto; padding-bottom: 80px; }
.hero-strip { padding: 55px 0 28px; border-bottom: 1px solid #40352d; }
.eyebrow { color: #d4a847; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; }
h1 { margin: 8px 0; font-size: 42px; }
.shelf { margin-top: 42px; }
.section-title { display: flex; align-items: baseline; margin-bottom: 15px; }
.section-title h2 { margin: 0; font-size: 27px; }
.section-title span { margin-left: 12px; color: #9e9187; }
.card-row { display: flex; flex-wrap: wrap; margin: -8px; }
.series-card { width: 16.666%; margin: 0; padding: 8px; }
.series-card a { display: block; text-decoration: none; }
.cover-frame { position: relative; height: 0; overflow: hidden; padding-bottom: 145%; border: 1px solid #463a31; background: #2b231e; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.cover-frame img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.progress-chip { position: absolute; right: 7px; bottom: 7px; border: 1px solid #d4a847; background: #17120f; color: #f4d487; padding: 3px 6px; font-size: 11px; }
.series-card h3 { margin: 10px 0 3px; overflow: hidden; color: #f7f0e4; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.series-card p { margin: 0; color: #9e9187; font-size: 13px; }
.simple-heading { padding: 42px 0 25px; }
.empty-state, .muted { color: #a99d93; }
.login-body { display: flex; align-items: center; justify-content: center; padding: 28px; background: radial-gradient(circle at 50% 20%, #38231d 0, #17120f 58%); }
.login-body .page-shell { width: 100%; padding: 0; }
.login-panel { width: 100%; max-width: 430px; margin: auto; border-top: 4px solid #d4a847; background: #211a16; box-shadow: 0 22px 60px #080605; padding: 38px; }
.login-panel h1 { font-size: 36px; }
.login-mark { float: right; width: 56px; height: 56px; border: 2px solid #d4a847; color: #d4a847; font: 38px/52px Georgia, serif; text-align: center; }
.login-form { display: flex; flex-direction: column; margin-top: 28px; }
.login-form label { margin: 14px 0 6px; color: #d8cec5; font-size: 13px; font-weight: 700; }
.login-form .primary-button { margin-top: 24px; }
.alert { border-left: 3px solid #cf5043; background: #3a1e1a; color: #ffd7d2; padding: 12px; }
.series-hero { display: flex; max-width: 1100px; margin: 52px auto; }
.series-cover { flex: 0 0 260px; }
.series-cover img { width: 100%; border: 1px solid #55463b; box-shadow: 0 15px 45px #080605; }
.series-copy { padding: 20px 0 20px 48px; }
.series-copy h1 { font-size: 48px; }
.summary { max-width: 750px; color: #d1c6bc; font: 17px/1.65 Georgia, serif; white-space: pre-line; }
.facts { margin: 22px 0 30px; }
.facts span { display: inline-block; margin: 0 7px 7px 0; border: 1px solid #5b4d42; padding: 6px 9px; color: #c8bcb2; font-size: 12px; }
.primary-link { display: inline-block; text-decoration: none; }
.chapter-section { max-width: 1100px; margin: auto; }
.volume-block { margin: 16px 0 28px; border-left: 3px solid #8f2f26; background: #211a16; padding: 16px 20px; }
.volume-block h3 { margin: 0 0 12px; color: #d4a847; }
.chapter-list a { display: flex; justify-content: space-between; min-height: 48px; border-top: 1px solid #41362e; padding: 14px 4px; text-decoration: none; }
.chapter-list small { margin-left: 20px; color: #9e9187; }
.error-panel { max-width: 600px; margin: 100px auto; text-align: center; }
.error-code { margin: 0; color: #d4a847; font: 100px/1 Georgia, serif; }
.reader-body { background: #0b0908; }
.reader-shell { min-height: 100vh; }
.reader-toolbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; min-height: 62px; border-bottom: 1px solid #3c332d; background: rgba(16,13,11,.96); padding: 7px 18px; }
.reader-back { min-width: 100px; color: #d4a847; font-size: 25px; text-decoration: none; }
.reader-back span { font-size: 13px; vertical-align: 3px; }
.reader-title { flex: 1; overflow: hidden; text-align: center; }
.reader-title strong, .reader-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-title span { color: #9f9289; font-size: 12px; }
.reader-modes { display: flex; margin-left: 15px; }
.reader-modes a { min-height: 38px; border: 1px solid #50433a; padding: 9px 10px; color: #bdb1a8; font-size: 12px; text-decoration: none; }
.reader-modes a.active { border-color: #d4a847; color: #f2d78f; }
.single-page { display: flex; justify-content: center; min-height: 70vh; padding: 18px; }
.single-page img { width: auto; max-width: 100%; height: auto; max-height: none; object-fit: contain; align-self: flex-start; }
.reader-navigation, .chapter-navigation { display: flex; align-items: center; justify-content: center; padding: 13px; }
.reader-navigation form, .chapter-navigation form { margin: 7px; }
.reader-navigation span { min-width: 80px; text-align: center; }
.webtoon-stack { width: 100%; max-width: 900px; margin: 0 auto; background: #050404; }
.webtoon-page { width: 100%; min-height: 100px; margin: 0; text-align: center; }
.webtoon-page img { display: block; width: 100%; height: auto; margin: 0 auto; color: #777; background: #15110f; }
.webtoon-end, .noscript-note { padding: 45px 20px; text-align: center; }
.webtoon-end form { display: inline-block; }

@media (max-width: 1050px) {
  .series-card { width: 25%; }
}
@media (max-width: 700px) {
  .site-header { flex-wrap: wrap; padding: 8px 3%; }
  .brand { flex: 1; margin-right: 8px; }
  .site-header > form:last-child { margin-left: auto; }
  .quiet-button { margin-left: 0; padding: 8px; }
  .search-form { order: 3; width: 100%; max-width: none; margin-top: 8px; }
  .page-shell { width: 94%; }
  h1 { font-size: 32px; }
  .series-card { width: 33.333%; }
  .series-hero { margin: 28px auto; }
  .series-cover { flex-basis: 145px; }
  .series-copy { padding: 0 0 0 20px; }
  .series-copy h1 { font-size: 30px; }
  .summary { font-size: 14px; line-height: 1.45; }
  .reader-toolbar { flex-wrap: wrap; padding: 5px 8px; }
  .reader-back { min-width: 55px; }
  .reader-title { text-align: right; }
  .reader-modes { order: 3; width: 100%; justify-content: center; margin: 5px 0 0; }
  .single-page { padding: 5px; }
  .reader-navigation { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .series-card { width: 50%; }
  .login-panel { padding: 26px 22px; }
  .series-hero { display: block; }
  .series-cover { width: 155px; margin: auto; }
  .series-copy { padding: 22px 0 0; text-align: center; }
  .series-copy .summary { text-align: left; }
}
