:root {
  --ink: #14201c;
  --moss: #1f3d34;
  --leaf: #3d6b58;
  --gold: #c4a35a;
  --paper: #f3efe6;
  --mist: rgba(243, 239, 230, 0.08);
  --line: rgba(196, 163, 90, 0.28);
  --shadow: 0 24px 60px rgba(8, 16, 12, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", sans-serif;
  --font-read: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: #0c1411;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.atmosphere {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(61,107,88,.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(196,163,90,.18), transparent 50%),
    linear-gradient(165deg, #0c1411 0%, #15241e 45%, #0f1a16 100%);
}
.atmosphere::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: .35;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem clamp(1.2rem, 4vw, 3rem);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(12,20,17,.72);
  border-bottom: 1px solid var(--line);
  animation: fadeDown .7s ease both;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: .02em;
  color: var(--gold);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: .55rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .28rem;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; opacity: .9; }
.nav a:hover { color: var(--gold); }

.site-main { padding: 0 clamp(1.2rem, 4vw, 3rem) 4rem; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  padding: 1.1rem 0 0; font-size: .88rem; color: rgba(243,239,230,.55);
}
.crumbs a:hover { color: var(--gold); }
.site-footer {
  padding: 2rem clamp(1.2rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  color: rgba(243,239,230,.55);
  font-size: .9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 2.5rem;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .75rem;
  color: var(--gold); margin: 0 0 .8rem;
}
.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: .95; margin: 0 0 1rem;
  animation: rise .9s ease both;
}
.lead {
  max-width: 34rem; font-weight: 300; font-size: 1.15rem;
  line-height: 1.6; color: rgba(243,239,230,.82); margin: 0 0 1.6rem;
  animation: rise 1s .1s ease both;
}
.lead.slim { max-width: 28rem; margin-bottom: 2rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; animation: rise 1s .2s ease both; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.35rem; border-radius: 999px;
  background: var(--gold); color: #1a160c; font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(196,163,90,.35); }
.cta.ghost {
  background: transparent; color: var(--paper);
  border: 1px solid var(--line);
}

.hero-visual { display: grid; place-items: center; }
.book-stack {
  width: min(380px, 88%);
  aspect-ratio: 3/4;
  border-radius: 1.2rem;
  background:
    linear-gradient(145deg, rgba(243,239,230,.16), transparent 40%),
    linear-gradient(180deg, #234438, #13241d);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}
.book-stack::before {
  content: "";
  position: absolute; inset: 12% 14%;
  border: 1px solid rgba(196,163,90,.35);
  border-radius: .6rem;
}
.book-stack::after {
  content: "Lumen";
  position: absolute; left: 18%; bottom: 18%;
  font-family: var(--font-display); font-size: 2rem; color: var(--gold);
}

.section { padding: 2.2rem 0; }
.section h2, .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1.4rem;
}
.novel-rail, .novel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.novel-card-link { display: block; }
.novel-tile {
  transition: transform .3s ease, opacity .3s ease;
}
.novel-tile:hover { transform: translateY(-6px); }
.novel-tile .cover {
  aspect-ratio: 3/4;
  border-radius: .35rem;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .4),
    inset 0 0 0 1px rgba(255, 220, 140, .25);
  margin-bottom: .75rem;
}
.cover--text {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.cover-frame {
  position: absolute;
  inset: .55rem;
  border: 2px solid rgba(255, 214, 120, .78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
  z-index: 2;
}
.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  width: .7rem;
  height: .7rem;
  border: 2px solid rgba(255, 230, 160, .95);
}
.cover-frame::before { top: -.15rem; left: -.15rem; border-right: 0; border-bottom: 0; }
.cover-frame::after { right: -.15rem; bottom: -.15rem; border-left: 0; border-top: 0; }
.cover-inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 16% 12% 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .9rem;
  box-sizing: border-box;
}
.cover-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #fff8e7;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(80, 30, 0, .35),
    0 8px 22px rgba(0, 0, 0, .45);
  max-width: 100%;
}
.cover-author {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 230, 170, .95);
  padding-top: .55rem;
  border-top: 1px solid rgba(255, 220, 140, .45);
  width: min(100%, 9rem);
}
.novel-hero-cover.cover--text .cover-title {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem);
  line-height: 1.1;
}
/* 早期小说站风格：高饱和色块封面 */
.cover--text[data-tone="0"] {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 210, 120, .45), transparent 42%),
    linear-gradient(160deg, #c23b2a 0%, #7a1414 45%, #3a0c12 100%);
}
.cover--text[data-tone="1"] {
  background:
    radial-gradient(circle at 70% 15%, rgba(160, 220, 255, .4), transparent 40%),
    linear-gradient(160deg, #1f6fb5 0%, #123a78 50%, #0a1d40 100%);
}
.cover--text[data-tone="2"] {
  background:
    radial-gradient(circle at 40% 10%, rgba(255, 190, 90, .5), transparent 45%),
    linear-gradient(160deg, #d9881a 0%, #a34e0d 48%, #4a2208 100%);
}
.cover--text[data-tone="3"] {
  background:
    radial-gradient(circle at 25% 25%, rgba(180, 255, 200, .35), transparent 42%),
    linear-gradient(160deg, #1c9a68 0%, #0d5a42 50%, #062820 100%);
}
.cover--text[data-tone="4"] {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 170, 230, .4), transparent 40%),
    linear-gradient(160deg, #8b2f9a 0%, #4e1a6e 50%, #230a36 100%);
}
.cover--text[data-tone="5"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 220, 140, .42), transparent 45%),
    linear-gradient(160deg, #2f6f7a 0%, #184850 48%, #0b2428 100%);
}
.novel-tile h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; margin: 0 0 .25rem; line-height: 1.3;
}
.novel-tile p { margin: 0; color: rgba(243,239,230,.6); font-size: .9rem; }

.novel-hero {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start;
  padding-top: 2rem;
}
.novel-hero-cover {
  aspect-ratio: 3/4; border-radius: .45rem;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 220, 140, .28);
}

.novel-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 .5rem;
}
.byline { color: var(--gold); margin: 0 0 1rem; }
.synopsis {
  max-width: 42rem; line-height: 1.7; color: rgba(243,239,230,.82); margin: 0 0 1.4rem;
}
.chapter-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list a {
  display: flex; gap: 1rem; align-items: baseline;
  padding: .95rem 0; transition: color .2s ease;
}
.chapter-list a:hover { color: var(--gold); }
.chapter-list span { width: 2.2rem; color: rgba(243,239,230,.45); }
.chapter-list em { font-style: normal; }

.reader-body {
  background: #efe8d8;
  color: #1d1a14;
  min-height: 100vh;
}
.reader-body[data-theme="night"] {
  background: #121816;
  color: #e8e2d4;
}
.reader-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: .85rem 1.2rem;
  backdrop-filter: blur(12px);
  background: rgba(239,232,216,.88);
  border-bottom: 1px solid rgba(29,26,20,.08);
}
.reader-body[data-theme="night"] .reader-bar {
  background: rgba(18,24,22,.9);
  border-bottom-color: rgba(232,226,212,.1);
}
.reader-controls { display: flex; gap: .4rem; }
.reader-controls button {
  border: 1px solid rgba(29,26,20,.15);
  background: transparent; border-radius: .5rem;
  padding: .4rem .65rem; cursor: pointer; font: inherit;
  color: inherit;
}
.reader-sheet {
  max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.2rem 5rem;
}
.reader-sheet h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1.5rem;
}
.reader-content {
  font-family: var(--font-read);
  font-size: 1.15rem; line-height: 1.9;
  transition: font-size .2s ease;
}
.reader-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: .5rem; padding: .75rem 1rem;
  background: rgba(239,232,216,.94);
  border-top: 1px solid rgba(29,26,20,.08);
}
.reader-body[data-theme="night"] .reader-nav {
  background: rgba(18,24,22,.94);
  border-top-color: rgba(232,226,212,.1);
}
.reader-nav a {
  text-align: center; padding: .7rem; border-radius: .6rem;
  background: rgba(196,163,90,.18); font-weight: 500;
}
.reader-nav a:last-child { justify-self: end; }
.reader-nav a:first-child { justify-self: start; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.4rem; }
  .hero-visual { order: -1; }
  .book-stack { width: min(260px, 70%); }
  .novel-hero { grid-template-columns: 1fr; }
  .novel-hero-cover { max-width: 220px; }
  .nav-toggle { display: inline-flex; }
  .site-header { flex-wrap: wrap; gap: .75rem; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: .35rem 0 .5rem;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(196,163,90,.12);
  }
}

/* ========== WuxiaWorld-inspired dense layout ========== */
.theme-ww {
  background: #0a0a0a;
  --ww-panel: #161616;
  --ww-line: rgba(255,255,255,.08);
  --ww-muted: rgba(255,255,255,.55);
}
.theme-ww .atmosphere { display: none; }
.ww-header {
  padding: 0;
  background: #111;
  border-bottom: 1px solid var(--ww-line);
  backdrop-filter: none;
}
.ww-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: .95rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.ww-header .nav { gap: 1.15rem; opacity: 1; font-size: .9rem; }
.ww-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.1rem 1.1rem 3rem;
}
.ww-footer {
  background: #111;
  border-top: 1px solid var(--ww-line);
  padding: 0;
}
.ww-footer .ww-header-inner {
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.1rem 2rem;
}
.footer-inner { gap: .65rem; }
.footer-tagline { margin: 0; color: rgba(243,239,230,.75); font-size: .92rem; }
.footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .15rem;
  font-size: .88rem; line-height: 1.6;
}
.footer-links a { color: rgba(243,239,230,.82); text-decoration: none; }
.footer-links a:hover { color: var(--gold, #c4a35a); text-decoration: underline; }
.footer-links-sub { opacity: .85; }
.footer-dot { color: rgba(243,239,230,.35); user-select: none; }
.legal-page .contact-email { font-size: 1.05rem; margin: .5rem 0 1rem; }
.legal-page .contact-email a { color: var(--gold, #c4a35a); }
.legal-muted { margin-top: 1.5rem; color: rgba(243,239,230,.55); font-size: .9rem; }

.page-home { display: block; }

.ww-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .78fr);
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.ww-feature-main {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 1.15rem;
  align-items: stretch;
  background: var(--ww-panel);
  border: 1px solid var(--ww-line);
  border-radius: .75rem;
  padding: 1rem;
  min-height: 280px;
}
.ww-feature-cover {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: .55rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.ww-feature-body { display: flex; flex-direction: column; min-width: 0; }
.ww-kicker {
  margin: 0 0 .35rem;
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ww-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 .55rem;
  line-height: 1;
}
.ww-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0 0 .45rem;
  line-height: 1.2;
}
.ww-meta {
  margin: 0 0 .85rem;
  color: var(--ww-muted);
  font-size: .88rem;
}
.ww-meta .dot { margin: 0 .35rem; opacity: .5; }
.ww-blurb {
  margin: 0 0 1.1rem;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ww-btn {
  align-self: flex-start;
  display: inline-flex;
  padding: .7rem 1.15rem;
  border-radius: .55rem;
  background: var(--gold);
  color: #1a160c;
  font-weight: 600;
}

.ww-side {
  background: var(--ww-panel);
  border: 1px solid var(--ww-line);
  border-radius: .75rem;
  padding: .95rem 1rem;
  min-height: 280px;
}
.ww-side-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .7rem;
}
.ww-side-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.ww-side-head a {
  font-size: .8rem;
  color: var(--gold);
}
.ww-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ww-side-list li + li {
  border-top: 1px solid var(--ww-line);
}
.ww-side-list a {
  display: block;
  padding: .55rem 0;
}
.ww-side-list strong {
  display: block;
  font-size: .9rem;
  line-height: 1.3;
  margin-bottom: .15rem;
}
.ww-side-list span {
  font-size: .75rem;
  color: var(--ww-muted);
}
.ww-side-list a:hover strong { color: var(--gold); }

.ww-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.35rem;
}
.ww-tags a {
  font-size: .78rem;
  padding: .38rem .7rem;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid var(--ww-line);
  color: rgba(255,255,255,.82);
}
.ww-tags a:hover {
  border-color: rgba(196,163,90,.55);
  color: var(--gold);
}

.ww-section { margin-bottom: 1.8rem; }
.ww-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 .95rem;
}
.ww-section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: .01em;
}

.ww-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem .75rem;
}
.ww-card { display: block; min-width: 0; }
.ww-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: .55rem;
  overflow: hidden;
  margin-bottom: .55rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.ww-card-cover .cover-frame { inset: .4rem; }
.ww-card-cover .cover-title {
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
}
.ww-card-cover .cover-author { display: none; }
.ww-rank {
  position: absolute;
  left: .45rem;
  bottom: .35rem;
  z-index: 4;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.82);
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.ww-status {
  position: absolute;
  top: .45rem;
  left: .45rem;
  z-index: 4;
  font-size: .65rem;
  padding: .2rem .45rem;
  border-radius: .3rem;
  background: rgba(0,0,0,.55);
  color: #fff;
}
.ww-card h3 {
  margin: 0 0 .2rem;
  font-size: .92rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ww-card p {
  margin: 0;
  font-size: .78rem;
  color: var(--ww-muted);
}
.ww-card:hover h3 { color: var(--gold); }
.ww-card:hover .ww-card-cover { transform: translateY(-3px); transition: transform .25s ease; }

@media (max-width: 1100px) {
  .ww-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ww-feature { grid-template-columns: 1fr; }
  .ww-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ww-feature-main { grid-template-columns: 120px 1fr; gap: .8rem; padding: .8rem; min-height: 0; }
  .ww-brand { font-size: 1.55rem; }
  .ww-feature-title { font-size: 1.1rem; }
  .ww-blurb { -webkit-line-clamp: 3; }
  .ww-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .ww-header-inner { flex-wrap: wrap; }
}

/* ===== Auth / Library ===== */
.auth-panel, .library-head, .legal-page { max-width: 40rem; }
.auth-form { display: grid; gap: .9rem; margin: 1.2rem 0; }
.auth-form label { display: grid; gap: .35rem; font-size: .92rem; color: rgba(243,239,230,.86); }
.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--paper);
  border-radius: .55rem;
  padding: .75rem .9rem;
  font: inherit;
}
.auth-links { display: flex; flex-wrap: wrap; gap: .9rem; margin: .8rem 0 0; }
.auth-links a { color: var(--gold); }
.auth-msg { margin-top: 1rem; padding: .75rem .9rem; border-radius: .55rem; }
.auth-msg.ok { background: rgba(61,107,88,.35); }
.auth-msg.err { background: rgba(140,40,40,.35); }
.tiny { font-size: .85rem; }
.cta.ghost, .cta.ghost-danger, button.cta.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: .7rem 1.15rem;
  cursor: pointer;
  font: inherit;
}
.cta.ghost.is-active, #shelfBtn.is-active { border-color: var(--gold); color: var(--gold); }
.cta.ghost-danger { border-color: rgba(220,90,90,.5); color: #f0b4b4; }
.novel-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.library-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.library-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.03);
}
.library-list a { display: grid; gap: .2rem; flex: 1; }
.library-list span { font-size: .85rem; color: rgba(243,239,230,.65); }
.library-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.library-head-row a, .continue-link span { color: var(--gold); }
.continue-card .continue-link, .continue-banner a {
  display: grid; gap: .25rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, rgba(61,107,88,.28), rgba(196,163,90,.12));
}
.continue-banner { margin-bottom: .5rem; }
.continue-banner span, .continue-card h2 { color: var(--gold); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.shelf-remove {
  border: 1px solid var(--line);
  background: transparent;
  color: rgba(243,239,230,.75);
  border-radius: .45rem;
  padding: .4rem .7rem;
  cursor: pointer;
}
.danger-title { margin-top: 2.2rem; color: #f0b4b4; }
.legal-page h2 { margin-top: 1.4rem; }
.legal-page ul { padding-left: 1.2rem; line-height: 1.7; }
.reader-controls #shelfBtn { min-width: 3.4rem; }
