/* ==========================================================================
   HOT NOVELS READER - Master Stylesheet
   Themes: Passion Dark (Default), Ivory Light, Sepia Parchment, Crimson Ruby
   Fonts: Serif (Cormorant), Classic (Georgia), Sans (Inter), Literary (Merriweather)
   ========================================================================== */

:root {
  /* Default: Passion Dark */
  --bg-primary: #0d0f12;
  --bg-secondary: #161920;
  --bg-card: #1c202a;
  --bg-card-hover: #242936;
  --text-main: #f0f2f5;
  --text-muted: #9ba3b4;
  --accent-gold: #d4af37;
  --accent-gold-glow: rgba(212, 175, 55, 0.25);
  --accent-crimson: #e63946;
  --accent-crimson-hover: #ff4d5a;
  --border-color: #2a3040;
  --reader-paper: #12141a;
  --reader-text: #eaeef4;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-reader: 'Cormorant Garamond', serif;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(230, 57, 70, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode: Ivory / Pearl */
[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f3f7;
  --text-main: #1f242e;
  --text-muted: #5e6678;
  --accent-gold: #b38b22;
  --accent-gold-glow: rgba(179, 139, 34, 0.2);
  --accent-crimson: #c92a2a;
  --accent-crimson-hover: #a51d24;
  --border-color: #e2e6ee;
  --reader-paper: #ffffff;
  --reader-text: #212529;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(201, 42, 42, 0.15);
}

/* Sepia / Parchment Mode */
[data-theme="sepia"] {
  --bg-primary: #f4ecd8;
  --bg-secondary: #ebe0c6;
  --bg-card: #f8f2e2;
  --bg-card-hover: #e6dac0;
  --text-main: #3e332a;
  --text-muted: #786a5b;
  --accent-gold: #9d6b24;
  --accent-gold-glow: rgba(157, 107, 36, 0.2);
  --accent-crimson: #a83232;
  --accent-crimson-hover: #8c2626;
  --border-color: #dbcbb0;
  --reader-paper: #fbf6ec;
  --reader-text: #2f251e;
  --shadow-subtle: 0 4px 20px rgba(80, 60, 40, 0.08);
  --shadow-glow: 0 0 20px rgba(168, 50, 50, 0.12);
}

/* Crimson Ruby Mode */
[data-theme="ruby"] {
  --bg-primary: #12080a;
  --bg-secondary: #1c0e12;
  --bg-card: #27141a;
  --bg-card-hover: #351a23;
  --text-main: #fae8eb;
  --text-muted: #bda3a8;
  --accent-gold: #f4c430;
  --accent-gold-glow: rgba(244, 196, 48, 0.3);
  --accent-crimson: #ff2a4d;
  --accent-crimson-hover: #ff526f;
  --border-color: #4a212c;
  --reader-paper: #180b0f;
  --reader-text: #fae8eb;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 42, 77, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Selector Buttons */
.theme-picker-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 2px;
  gap: 2px;
}

.theme-btn {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.theme-btn:hover {
  color: var(--text-main);
}

.theme-btn.active {
  background: var(--accent-crimson);
  color: #fff;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
}

.btn-qr-nav {
  background: linear-gradient(135deg, #d4af37, #aa820a);
  color: #0f1015;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 7px 15px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px var(--accent-gold-glow);
  white-space: nowrap;
}

.btn-qr-nav:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Mobile Quick Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  gap: 3px;
}

.mob-nav-item.active, .mob-nav-item:hover {
  color: var(--accent-gold);
}

/* Hero Section */
.hero-banner {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 50px 0 45px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-title .highlight-red {
  color: var(--accent-crimson);
  text-shadow: var(--shadow-glow);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-cover-featured {
  position: relative;
  display: flex;
  justify-content: center;
}

.cover-card-featured {
  position: relative;
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-gold-glow);
  transition: transform 0.4s ease;
}

.cover-card-featured:hover {
  transform: translateY(-8px) rotate(1deg);
}

.cover-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-crimson);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Books Grid Section */
.section-books {
  padding: 50px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 26px;
  background: var(--accent-crimson);
  border-radius: 4px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.book-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.book-card-cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background-color: #050608;
}

.book-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.book-card:hover .book-card-cover {
  transform: scale(1.05);
}

.book-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.book-tag {
  font-size: 0.72rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 12px;
}

.book-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.book-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.book-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: auto;
}

.book-card-chapters {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.book-card-action {
  background-color: var(--accent-crimson);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.book-card-action:hover {
  background-color: var(--accent-crimson-hover);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* ==========================================================================
   INTERACTIVE READER APP MODAL & WORKSPACE (WITH FONTS & CHAPTER SELECTOR)
   ========================================================================== */
.reader-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: var(--reader-paper);
  color: var(--reader-text);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.reader-modal.is-open {
  display: flex;
}

.reader-toolbar {
  min-height: 60px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.reader-title-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reader-book-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.reader-chapter-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.reader-chapter-select:focus {
  border-color: var(--accent-gold);
}

.reader-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reader-font-family-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.reader-btn-control {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reader-btn-control:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.reader-content-wrap {
  flex-grow: 1;
  overflow-y: auto;
  padding: 35px 20px 80px;
  -webkit-overflow-scrolling: touch;
}

.reader-sheet {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-reader);
  font-size: 1.25rem;
  line-height: 1.85;
  transition: font-size 0.2s ease;
}

.reader-sheet h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin-bottom: 16px;
  text-align: center;
  color: var(--accent-gold);
}

.reader-sheet p {
  margin-bottom: 1.4em;
  text-indent: 1.8em;
  text-align: justify;
  word-break: break-word;
}

.reader-sheet p:first-of-type {
  text-indent: 0;
}

.reader-pagination {
  display: flex;
  justify-content: space-between;
  max-width: 760px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

/* ==========================================================================
   QR PAYMENT & BUY MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 92vh;
  overflow-y: auto;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.4rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--accent-crimson);
}

.qr-modal-head {
  text-align: center;
  margin-bottom: 20px;
}

.qr-modal-head h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 6px;
  color: var(--accent-gold);
}

.qr-code-frame {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  width: 220px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.qr-code-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.qr-details-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.qr-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qr-detail-row:last-child {
  margin-bottom: 0;
}

.qr-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-qr-confirm {
  background: linear-gradient(135deg, var(--accent-crimson), #c92a2a);
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-qr-confirm:hover {
  filter: brightness(1.1);
}

/* ==========================================================================
   USER ACCOUNT / PERSONAL CABINET MODAL
   ========================================================================== */
.account-modal-box {
  max-width: 600px;
}

.account-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  gap: 12px;
}

.account-tab-btn {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.account-tab-btn.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-gold);
}

.form-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-crimson), #b0232f);
  color: #fff;
  padding: 12px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  transition: var(--transition-smooth);
}

.form-submit-btn:hover {
  filter: brightness(1.1);
}

.cabinet-user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.cabinet-avatar-ph {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-gold));
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.user-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.user-book-mini {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-book-mini:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

.user-book-mini span {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

/* ==========================================================================
   ABOUT & EASTER EGG (10-CLICKS ANNIVERSARY SURPRISE - ADMIN PROTECTED)
   ========================================================================== */
.about-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
}

.about-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.about-header-clicker {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  transition: var(--transition-smooth);
}

.about-header-clicker:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.click-hint-badge {
  font-size: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--accent-gold);
}

.easter-egg-love-card {
  display: none;
  background: linear-gradient(135deg, #2a0b12 0%, #16080b 100%);
  border: 2px solid var(--accent-crimson);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  margin-top: 25px;
  box-shadow: 0 0 35px rgba(230, 57, 70, 0.4);
  animation: modalPop 0.5s ease forwards;
  position: relative;
  overflow: hidden;
}

.easter-egg-love-card.is-revealed {
  display: block;
}

.love-tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.2);
  border: 1px solid var(--accent-crimson);
  color: #ff6b7a;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.love-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.love-title span {
  color: #ff4d5a;
  text-shadow: 0 0 15px rgba(255, 77, 90, 0.6);
}

.love-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.75;
  color: #f7d6db;
  margin-bottom: 18px;
}

.love-pardon-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 4px solid var(--accent-gold);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1rem;
  color: #ffe8b3;
  margin-top: 18px;
}

.love-signature {
  margin-top: 20px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 35px 0 25px;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-litnet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & ADAPTIVE LAYOUT
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 24px;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-author-badge {
    margin: 0 auto 16px;
  }
  .nav-links {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 60px; /* Space for bottom nav */
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .section-head-title {
    font-size: 1.6rem;
  }
  .books-grid {
    grid-template-columns: 1fr;
  }
  .reader-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }
  .reader-title-info {
    width: 100%;
    justify-content: space-between;
  }
  .reader-controls {
    width: 100%;
    justify-content: space-between;
  }
  .reader-sheet {
    font-size: 1.1rem;
    line-height: 1.65;
  }
  .reader-sheet h2 {
    font-size: 1.7rem;
  }
  .modal-box {
    padding: 20px 16px;
  }
  .header-actions .theme-btn:nth-child(3),
  .header-actions .theme-btn:nth-child(4) {
    display: none; /* Keep primary dark/light on small screens, switch in menu */
  }
}

/* ==========================================================================
   MINI MUSIC PLAYER (WOW-EFFECT FLOATING & COLLAPSIBLE AMBIENT PLAYER)
   ========================================================================== */
.hn-floating-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  user-select: none;
}

.hn-player-capsule {
  background: rgba(22, 25, 32, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-gold-glow);
  border-radius: 40px;
  padding: 8px 16px 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

[data-theme="light"] .hn-player-capsule {
  background: rgba(255, 255, 255, 0.92);
  border-color: #d4af37;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="sepia"] .hn-player-capsule {
  background: rgba(248, 242, 226, 0.95);
  border-color: #9d6b24;
}

[data-theme="ruby"] .hn-player-capsule {
  background: rgba(39, 20, 26, 0.92);
  border-color: #ff2a4d;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 77, 0.3);
}

/* Vinyl / Disk Rotation Animation */
@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hn-player-disk {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2d36 30%, #111 70%);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  animation: spinDisc 8s linear infinite;
  animation-play-state: paused;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hn-player-capsule.is-playing .hn-player-disk {
  animation-play-state: running;
}

.hn-player-info {
  display: flex;
  flex-direction: column;
  max-width: 170px;
  overflow: hidden;
}

.hn-player-track-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hn-player-artist {
  font-size: 0.72rem;
  color: var(--accent-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hn-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hn-player-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.hn-player-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
}

.hn-player-btn-play {
  background: var(--accent-crimson);
  color: #fff;
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.4);
}

.hn-player-btn-play:hover {
  background: var(--accent-crimson-hover);
  transform: scale(1.08);
}

.hn-player-btn-toggle {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px;
}

/* Expanded Playlist Dropup Window */
.hn-player-playlist-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 290px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: none;
  animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hn-player-playlist-panel.is-open {
  display: block;
}

.hn-playlist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.hn-playlist-items {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hn-playlist-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

.hn-playlist-track-row:hover, .hn-playlist-track-row.is-active {
  background: rgba(230, 57, 70, 0.15);
  border-left: 3px solid var(--accent-crimson);
}

.hn-playlist-track-row.is-active .hn-track-title-col {
  color: var(--accent-crimson);
  font-weight: 700;
}

/* Collapsed Mini Circle State */
.hn-floating-player.is-collapsed .hn-player-info,
.hn-floating-player.is-collapsed .hn-player-controls,
.hn-floating-player.is-collapsed .hn-player-btn-toggle {
  display: none;
}

.hn-floating-player.is-collapsed .hn-player-capsule {
  padding: 6px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  justify-content: center;
}

@media (max-width: 600px) {
  .hn-floating-player {
    bottom: 72px; /* Above mobile bottom bar */
    right: 14px;
  }
  .hn-player-info {
    max-width: 120px;
  }
}

/* Unobtrusive End-of-Book Donation / Coffee Card */
.hn-book-finish-donate-card {
  margin: 45px auto 10px;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 24px;
  animation: modalPop 0.4s ease;
  border-left: 4px solid var(--accent-gold);
}

.hn-finish-qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  width: 130px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.hn-finish-qr-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.hn-finish-info {
  display: flex;
  flex-direction: column;
}

.hn-finish-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hn-finish-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hn-finish-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--accent-crimson);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .hn-book-finish-donate-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }
  .hn-finish-qr-box {
    margin: 0 auto;
  }
}

/* ==========================================================================
   LITNET-STYLE RICH BOOK CARDS & 3D OPENING EFFECTS
   ========================================================================== */

/* Enhanced Book Cards (Horizontal desktop, vertical mobile) */
.hn-book-card-litnet {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.hn-book-card-litnet:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px var(--accent-gold-glow);
}

/* 3D Realistic Book Cover Frame with Book Spine & Sheen */
.hn-3d-book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  box-shadow: -4px 0 10px rgba(0,0,0,0.4), 6px 12px 25px rgba(0,0,0,0.5);
  perspective: 800px;
  cursor: pointer;
}

.hn-3d-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hn-book-card-litnet:hover .hn-3d-book-cover img {
  transform: scale(1.04) rotateY(-4deg);
}

/* Realistic Book Spine Effect */
.hn-3d-book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.2) 30%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Book Cover Gloss/Sheen */
.hn-3d-book-cover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  z-index: 3;
  pointer-events: none;
}

.hn-book-litnet-details {
  display: flex;
  flex-direction: column;
}

.hn-litnet-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hn-litnet-badge-age {
  background: #c92a2a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hn-litnet-badge-status {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.hn-litnet-genre-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 14px;
  transition: var(--transition-smooth);
}

.hn-litnet-genre-tag:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.hn-litnet-book-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.hn-book-card-litnet:hover .hn-litnet-book-title {
  color: var(--accent-gold);
}

/* Litnet Metric Stats Bar */
.hn-litnet-metrics-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hn-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hn-metric-item strong {
  color: var(--text-main);
}

.hn-litnet-synopsis {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.hn-litnet-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
  gap: 16px;
  flex-wrap: wrap;
}

.hn-litnet-price-box {
  display: flex;
  flex-direction: column;
}

.hn-litnet-price-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hn-litnet-price-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hn-btn-open-book-animated {
  background: linear-gradient(135deg, var(--accent-crimson) 0%, #b0232f 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.hn-btn-open-book-animated:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
  filter: brightness(1.1);
}

/* ==========================================================================
   3D BOOK OPENING ANIMATION SIMULATION MODAL
   ========================================================================== */
.hn-book-open-animation-layer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2999;
  display: none;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hn-book-open-animation-layer.is-opening {
  display: flex;
}

.hn-3d-opening-book {
  width: 320px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  animation: bookOpenSequence 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes bookOpenSequence {
  0% {
    transform: rotateY(0deg) scale(0.85);
    opacity: 0.5;
  }
  40% {
    transform: rotateY(-35deg) scale(1.02);
    opacity: 1;
  }
  75% {
    transform: rotateY(-130deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: rotateY(-180deg) scale(1.18);
    opacity: 0;
  }
}

.hn-opening-cover-front {
  position: absolute;
  inset: 0;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  backface-visibility: hidden;
}

.hn-opening-cover-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tablet & Mobile Responsiveness for Rich Cards */
@media (max-width: 992px) {
  .hn-book-card-litnet {
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 20px;
  }
  .hn-litnet-book-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .hn-book-card-litnet {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 16px;
    gap: 18px;
  }
  .hn-3d-book-cover {
    width: 170px;
    margin: 0 auto;
  }
  .hn-litnet-tags-row {
    justify-content: center;
  }
  .hn-litnet-metrics-bar {
    justify-content: center;
    gap: 12px;
  }
  .hn-litnet-bottom-actions {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
  .hn-btn-open-book-animated {
    width: 100%;
    justify-content: center;
  }
}

/* Ambient Music Invitation Prompt Bubble */
.hn-ambient-invite-toast {
  position: fixed;
  bottom: 85px;
  right: 24px;
  z-index: 2600;
  background: rgba(22, 25, 32, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px var(--accent-gold-glow);
  max-width: 310px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(20px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hn-ambient-invite-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.hn-invite-pulse-icon {
  font-size: 24px;
  animation: heartBeat 1.8s infinite;
  flex-shrink: 0;
}

.hn-invite-text-wrap {
  display: flex;
  flex-direction: column;
}

.hn-invite-text-wrap strong {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.hn-invite-text-wrap p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 6px 0;
  line-height: 1.3;
}

.hn-invite-btn-start {
  background: var(--accent-crimson);
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition-smooth);
}

.hn-invite-btn-start:hover {
  background: var(--accent-crimson-hover);
  transform: scale(1.05);
}

.hn-invite-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .hn-ambient-invite-toast {
    bottom: 130px;
    right: 14px;
    left: 14px;
    max-width: none;
  }
}

/* ==========================================================================
   CINEMATIC 3D BOOK OPENING & FULLSCREEN TEXT EXPANSION
   ========================================================================== */

.hn-book-open-animation-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20, 24, 32, 0.96) 0%, rgba(8, 10, 14, 0.98) 100%);
  backdrop-filter: blur(12px);
  z-index: 2999;
  display: none;
  align-items: center;
  justify-content: center;
  perspective: 2000px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hn-book-open-animation-layer.is-opening {
  display: flex;
  opacity: 1;
}

/* 3D Realistic Book Shell */
.hn-3d-tome {
  width: 320px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border-radius: 4px 16px 16px 4px;
  animation: tomeOpenAndZoom 1.45s cubic-bezier(0.25, 1, 0.35, 1) forwards;
}

/* Underneath Page (Right page visible when cover opens) */
.hn-tome-page-under {
  position: absolute;
  inset: 0;
  background: var(--reader-paper, #12141a);
  color: var(--reader-text, #eaeef4);
  border-radius: 4px 14px 14px 4px;
  padding: 36px 30px;
  box-shadow: inset 18px 0 35px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.5);
  font-family: var(--font-serif);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 5px solid #2a151b;
}

.hn-tome-page-under h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-align: center;
}

.hn-tome-page-under p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-indent: 1.2em;
}

/* 3D Hardcover Flap (Opens towards viewer to the left) */
.hn-tome-cover-flap {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  transform-origin: left center;
  transform-style: preserve-3d;
  animation: flapTurnLeft 1.45s cubic-bezier(0.25, 1, 0.35, 1) forwards;
  box-shadow: 10px 0 30px rgba(0,0,0,0.6);
}

.hn-tome-cover-front-face {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  overflow: hidden;
  backface-visibility: hidden;
}

.hn-tome-cover-front-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gold Spine Accent */
.hn-tome-cover-front-face::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(212,175,55,0.4) 30%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

/* Back face of cover (Inside parchment lining) */
.hn-tome-cover-back-face {
  position: absolute;
  inset: 0;
  border-radius: 14px 4px 4px 14px;
  background: #181920;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  box-shadow: inset -15px 0 30px rgba(0,0,0,0.6);
  border: 1px solid #2a3040;
}

/* Keyframes: Cover Flap opens wide */
@keyframes flapTurnLeft {
  0% {
    transform: rotateY(0deg);
  }
  35% {
    transform: rotateY(-75deg);
  }
  65% {
    transform: rotateY(-140deg);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

/* Keyframes: Book Opens, centers, and smoothly zooms fullscreen */
@keyframes tomeOpenAndZoom {
  0% {
    transform: rotateY(12deg) rotateX(4deg) scale(0.8);
    opacity: 0.6;
  }
  30% {
    transform: rotateY(0deg) rotateX(0deg) scale(0.95);
    opacity: 1;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  85% {
    transform: scale(1.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Reader Modal Entry Transition synchronized with the zoom */
.reader-modal.is-open {
  display: flex;
  animation: readerModalFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes readerModalFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .hn-3d-tome {
    width: 260px;
    height: 390px;
  }
}
