:root {
  color-scheme: dark;
  --bg: #05080d;
  --ink: #f5f0e4;
  --muted: #a8b3bf;
  --line: rgba(255,255,255,.13);
  --gold: #e7ba56;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body { overflow-x: hidden; }
a:focus-visible { outline: 3px solid #75c9ff; outline-offset: 4px; }
.library-shell { position: relative; min-height: 100vh; overflow: hidden; padding: 72px max(24px, 5vw) 36px; background:
  linear-gradient(180deg, rgba(3,8,13,.2), #05080d 80%),
  radial-gradient(circle at 50% 0%, rgba(55,96,134,.19), transparent 43%); }
.library-shell::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.16; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.ambient { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .17; pointer-events: none; }
.ambient-one { left: -180px; top: 230px; background: #1768a6; }
.ambient-two { right: -190px; top: 150px; background: #b15c22; }
.hero, .book-grid, .feature-strip, footer { position: relative; z-index: 1; max-width: 1240px; margin-left: auto; margin-right: auto; }
.hero { text-align: center; max-width: 860px; }
.eyebrow { color: #f1ca70; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; font-weight: 800; }
.hero h1 { margin: 15px 0 19px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 7vw, 82px); line-height: .95; letter-spacing: -.045em; }
.hero h1 em { color: #edc76d; font-style: normal; text-shadow: 0 8px 40px rgba(223,159,47,.2); }
.hero p { max-width: 760px; margin: 0 auto; color: #bdc7d1; font-size: clamp(16px,2vw,19px); line-height: 1.65; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 56px; }
.book-card { min-height: 500px; display: grid; grid-template-columns: minmax(190px, .82fr) minmax(0,1.18fr); gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; position: relative; background: linear-gradient(145deg, rgba(14,23,37,.96), rgba(9,12,18,.96)); box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.book-card::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.8; }
.book-card-ultimate::before { background: radial-gradient(circle at 8% 10%, rgba(53,125,188,.24), transparent 38%), radial-gradient(circle at 94% 92%, rgba(196,91,29,.19), transparent 38%); }
.book-card-art { background: linear-gradient(145deg, rgba(13,26,22,.97), rgba(12,12,10,.97)); }
.book-card-art::before { background: radial-gradient(circle at 10% 10%, rgba(45,136,98,.23), transparent 38%), radial-gradient(circle at 92% 90%, rgba(168,111,38,.2), transparent 40%); }
.book-card > * { position: relative; z-index: 1; }
.cover-frame { align-self: center; border-radius: 18px; padding: 7px; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(233,185,73,.45), rgba(255,255,255,.07)); box-shadow: 0 24px 45px rgba(0,0,0,.48); transform: rotate(-1.5deg); }
.book-card-art .cover-frame { transform: rotate(1.3deg); }
.cover-frame img { width: 100%; max-height: 390px; aspect-ratio: .82; object-fit: cover; display: block; border-radius: 12px; }
.book-copy { display: flex; flex-direction: column; align-self: center; }
.book-type { color: #efc96f; font-size: 11px; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; }
.book-copy h2 { margin: 10px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px,3vw,43px); line-height: 1.04; letter-spacing: -.025em; }
.book-copy p { margin: 0; color: #b8c3ce; line-height: 1.62; font-size: 15px; }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.book-meta span { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.055); border-radius: 999px; padding: 7px 10px; color: #d6dde4; font-size: 11px; }
.reading-progress { margin-top: 18px; }
.reading-progress > div { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.reading-progress > div span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6dbcf4, #e6b94f); }
.book-card-art .reading-progress > div span { background: linear-gradient(90deg, #6fc69c, #d4aa50); }
.reading-progress small { display: block; margin-top: 7px; color: #9eabb7; font-size: 11px; }
.book-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.primary-action, .continue-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; padding: 0 16px; text-decoration: none; font-size: 13px; font-weight: 800; transition: .18s ease; }
.primary-action { color: #241603; background: linear-gradient(#f1cd75, #c48a30); border: 1px solid #f5d98f; }
.continue-action { color: #eef4f8; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.065); }
.primary-action:hover, .continue-action:hover { transform: translateY(-2px); filter: brightness(1.08); }
.feature-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 34px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.feature-strip div { padding: 22px; background: rgba(9,14,22,.94); }
.feature-strip strong { display: block; font-family: Georgia, serif; font-size: 18px; margin-bottom: 5px; }
.feature-strip span { color: #9fabb7; font-size: 13px; line-height: 1.5; }
footer { padding: 28px 0 0; text-align: center; }
footer p { max-width: 850px; margin: 0 auto; color: #6f7c89; font-size: 11px; line-height: 1.6; }

.donate-button {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  min-width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(231,186,86,.48);
  border-radius: 999px;
  color: #f4cf78;
  background: rgba(8,13,20,.88);
  box-shadow: 0 10px 32px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(16px);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.donate-button svg { width: 21px; height: 21px; flex: 0 0 auto; fill: currentColor; }
.donate-button span {
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(5px);
  white-space: nowrap;
  color: #f7ead0;
  font-size: 12px;
  font-weight: 800;
  transition: max-width .22s ease, margin-left .22s ease, opacity .18s ease, transform .22s ease;
}
.donate-button:hover,
.donate-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245,211,128,.78);
  background: rgba(21,18,14,.94);
}
.donate-button:hover span,
.donate-button:focus-visible span {
  max-width: 124px;
  margin-left: 8px;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1050px) {
  .book-grid { grid-template-columns: 1fr; max-width: 780px; }
  .book-card { grid-template-columns: 240px 1fr; }
}
@media (max-width: 680px) {
  .library-shell { padding-top: 48px; }
  .book-grid { margin-top: 38px; }
  .book-card { grid-template-columns: 115px 1fr; min-height: 0; gap: 18px; padding: 18px; border-radius: 20px; }
  .cover-frame { align-self: start; border-radius: 12px; padding: 4px; }
  .cover-frame img { border-radius: 8px; max-height: 190px; }
  .book-copy h2 { font-size: 27px; }
  .book-copy p { font-size: 13px; }
  .book-meta { display: none; }
  .feature-strip { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .book-card { display: block; }
  .cover-frame { width: 145px; margin: 0 auto 20px; }
  .book-copy { text-align: center; }
  .book-meta, .book-actions { justify-content: center; }
  .reading-progress { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration:.01ms !important; } }

/* World of Warcraft hand cursor — desktop and pointer devices only. */
@media (pointer: fine) {
  html, body, body * {
    cursor: url("assets/gam372.cur"), auto !important;
  }
}
