:root { --scd-ink: #1a1a1d; --scd-muted: #77777f; --scd-paper: #fff; --scd-accent: #c01453; --scd-line: #ececef; }
.scd-shell, .scd-reader { box-sizing: border-box; font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.scd-shell *, .scd-reader * { box-sizing: border-box; }
.scd-shell { width: min(720px, calc(100% - 24px)); margin: 36px auto 64px; color: var(--scd-ink); background: var(--scd-paper); box-shadow: 0 0 48px rgba(0,0,0,.08); }
.scd-hero { position: relative; aspect-ratio: 16 / 9; min-height: 270px; overflow: hidden; background: #131018; }
.scd-gallery-track { position: absolute; inset: 0; }
.scd-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; opacity: 0; filter: saturate(.95); transition: opacity .55s ease; }
.scd-cover.is-active { opacity: 1; }
.scd-hero-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(9,7,14,.78), rgba(9,7,14,.05) 68%), linear-gradient(0deg, rgba(9,7,14,.48), transparent 55%); pointer-events: none; }
.scd-hero-title { position: absolute; z-index: 2; left: clamp(22px, 7vw, 54px); bottom: clamp(24px, 7vw, 52px); max-width: 72%; color: white; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.scd-hero-title span { font-size: 12px; font-weight: 800; letter-spacing: .14em; opacity: .8; }
.scd-hero-title h1 { margin: 7px 0; color: white; font-size: clamp(32px, 7vw, 54px); line-height: 1.05; }
.scd-hero-title p { margin: 0; color: rgba(255,255,255,.85); }
.scd-gallery-dots { position: absolute; z-index: 3; right: 18px; bottom: 15px; display: flex; gap: 7px; }
.scd-gallery-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s, border-radius .2s, background .2s; }
.scd-gallery-dots button.is-active { width: 20px; border-radius: 8px; background: #fff; }
.scd-summary { padding: 18px 22px 8px; }
.scd-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scd-title-row h2 { margin: 0; font-size: 21px; }
.scd-favorite { padding: 7px 10px; color: #555; background: transparent; border: 0; cursor: pointer; white-space: nowrap; }
.scd-meta-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--scd-muted); font-size: 13px; }
.scd-description { margin-top: 9px; color: #5f5f66; font-size: 14px; line-height: 1.7; }
.scd-description p { margin: 0; }
.scd-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.scd-tags a { padding: 5px 9px; color: #9a6233 !important; background: #fff4e8; border: 1px solid #f5d6b9; border-radius: 4px; font-size: 12px; text-decoration: none !important; }
.scd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.scd-primary, .scd-secondary, .scd-sort { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 5px; text-decoration: none !important; font-weight: 750; }
.scd-primary { color: white !important; background: var(--scd-accent); }
.scd-secondary { color: var(--scd-accent) !important; background: #fff3f7; border: 1px solid #f1bed1; }
.scd-directory { padding: 20px 22px 34px; }
.scd-section-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.scd-section-heading h2 { margin: 0; font-size: 20px; }
.scd-sort { min-height: 32px; padding: 0 10px; color: #555; border: 0; background: transparent; cursor: pointer; font-size: 13px; }
.scd-chapter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--scd-line); }
.scd-chapter-list li { margin: 0; border-bottom: 1px solid var(--scd-line); }
.scd-chapter-list a { display: grid; grid-template-columns: 86px 1fr 54px; gap: 12px; align-items: center; min-height: 82px; padding: 9px 2px; color: var(--scd-ink) !important; text-decoration: none !important; }
.scd-chapter-list a:hover { background: #faf7f8; }
.scd-chapter-preview { display: block; width: 86px; height: 64px; object-fit: cover; border-radius: 4px; background: #ececef; }
.scd-chapter-number { font-weight: 800; font-variant-numeric: tabular-nums; }
.scd-chapter-detail { min-width: 0; }
.scd-chapter-detail strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.scd-chapter-detail time { display: block; margin-top: 5px; color: #999; font-size: 11px; }
.scd-access-label { justify-self: end; padding: 3px 6px; border-radius: 3px; font-size: 11px; font-weight: 750; }
.scd-access-label.is-free { color: #24885f; background: #eaf8f1; }
.scd-access-label.is-unlocked, .scd-access-status.is-unlocked { color: #24885f; }
.scd-access-label.is-locked { color: #a74359; background: #fff0f3; }
.scd-access-status { width: fit-content; margin: 10px auto; padding: 8px 14px; border-radius: 999px; background: #e4f5eb; font-size: 13px; font-weight: 800; }
.scd-game-unlock { width: calc(100% - 44px); margin: 18px auto 4px; }
.scd-game-unlock .buy-title { font-weight: 800; }
.scd-game-unlock .scd-unlock-note { margin: 0 0 14px; color: var(--scd-muted); font-size: 13px; line-height: 1.6; }
.scd-game-unlock .prices-info { margin-bottom: 8px; }
.scd-paywall { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; width: min(900px, calc(100% - 24px)); margin: 44px auto; padding: 28px; color: var(--scd-ink); background: linear-gradient(135deg, #fff8ef, #f2e8ff); border: 1px solid rgba(255,255,255,.6); border-radius: 22px; box-shadow: 0 22px 55px rgba(0,0,0,.2); }
.scd-paywall.is-compact { width: calc(100% - 44px); margin: 10px auto 0; padding: 18px; box-shadow: none; border-color: var(--scd-line); border-radius: 6px; }
.scd-lock-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: white; font-size: 27px; }
.scd-paywall-copy h2 { margin: 0 0 8px; color: var(--scd-ink); font-size: clamp(22px, 3vw, 32px); }
.scd-paywall-copy p { margin: 0; color: var(--scd-muted); }
.scd-buy-button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--scd-accent) !important; color: white !important; white-space: nowrap; font-weight: 800; cursor: pointer; }
.scd-unavailable { color: #a23c32; font-weight: 800; }

.scd-reader { min-height: 100vh; padding: 28px 16px 70px; color: #f5f4f7; background: #111016; }
.scd-reader-heading { width: min(900px, 100%); margin: 0 auto 24px; text-align: center; }
.scd-reader-heading a { color: #ffb5a5; text-decoration: none; }
.scd-reader-heading h1 { margin: 10px 0 0; color: white; font-size: clamp(26px, 5vw, 46px); }
.scd-reader-heading p { color: #aaa5b3; }
.scd-reader-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(900px, 100%); margin: 18px auto; }
.scd-nav-button { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: white !important; background: #24212d; text-decoration: none !important; font-weight: 700; }
.scd-nav-directory { background: var(--scd-accent); border-color: var(--scd-accent); }
.scd-nav-button.is-disabled { color: #716d79 !important; background: #18161e; cursor: not-allowed; }
.scd-pages { width: min(900px, 100%); margin: 0 auto; background: #08070a; }
.scd-pages img { display: block; width: 100%; height: auto; margin: 0; border: 0; }
.scd-full-chapter { margin-top: 54px; }
.scd-full-chapter h2 { width: min(900px, 100%); margin: 0 auto; padding: 18px; color: white; background: #24212d; text-align: center; }
.scd-back-directory { margin: 50px auto 0; text-align: center; }

@media (max-width: 680px) {
  .scd-shell { width: 100%; margin: 12px auto 32px; }
  .scd-hero { min-height: 230px; }
  .scd-summary, .scd-directory { padding-inline: 14px; }
  .scd-meta-row { display: grid; gap: 4px; }
  .scd-chapter-list a { grid-template-columns: 68px 1fr 36px; gap: 7px; }
  .scd-chapter-preview { width: 68px; height: 52px; }
  .scd-chapter-number { font-size: 12px; }
  .scd-game-unlock { width: calc(100% - 28px); }
  .scd-paywall { grid-template-columns: 1fr; text-align: center; }
  .scd-paywall.is-compact { width: calc(100% - 28px); }
  .scd-lock-icon { margin: 0 auto; }
  .scd-buy-button { width: 100%; }
  .scd-reader { padding-inline: 0; }
  .scd-reader-heading, .scd-reader-nav { width: calc(100% - 20px); }
  .scd-nav-button { min-height: 44px; padding-inline: 6px; font-size: 14px; }
}
