*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --text: #2c2b28;
  --text-muted: #8c8a86;
  --border: #e8e4df;
  --primary: #1b2838;
  --primary-light: #2c3f54;
  --accent: #c75146;
  --accent-dark: #a83e34;
  --gold: #d4a373;
  --gold-light: #e8d5b7;
  --success: #3a7d5c;
  --warning: #c4952a;
  --info: #4a7c8c;
  --danger: #c75146;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --color-primary: #1b2838;
  --color-primary-light: #2c3f54;
  --color-accent: #c75146;
  --color-accent-light: #d97a6f;
  --color-warm: #c75146;
  --color-warm-light: #d97a6f;
  --color-warning: #c4952a;
  --color-info: #4a7c8c;
  --color-danger: #c75146;
  --color-success: #3a7d5c;
  --color-bg: #fdfaf6;
  --color-surface: #ffffff;
  --color-text: #2c2b28;
  --color-text-muted: #8c8a86;
  --color-border: #e8e4df;
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(0,0,0,0.04);
  --color-hero-bg: #ffffff;
  --color-hero-text: #2c2b28;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --shadow-sm: 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 0 0 1px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.08);
  --max-w: 1120px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow: 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-hover: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
  --t: 0.25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

ul, ol {
  line-height: 1.9;
  list-style-position: inside;
}

li {
  margin-bottom: 0.35rem;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-dark); }

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

::selection { background: var(--gold-light); color: var(--primary); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  min-height: calc(100vh - 180px);
  padding-top: 64px;
  padding-bottom: 3rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--surface);
  transition: box-shadow var(--t);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 0.4rem 0;
}

.navbar.menu-open {
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  transition: height var(--t);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.navbar.scrolled .brand-logo { height: 36px; }

.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.125rem;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--r-md);
  transition: all var(--t);
  letter-spacing: 0.01em;
}

.nav-link:hover {
  background: rgba(0,0,0,0.04);
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(199,81,70,0.08);
}

@media (max-width: 768px) {
  .navbar-toggler { display: flex; }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    box-shadow: var(--shadow-hover);
  }

  .navbar-collapse.show { display: block; }

  .navbar-nav {
    flex-direction: column;
    gap: 0.125rem;
  }

  .nav-link {
    padding: 0.625rem 1rem;
    border-radius: var(--r-sm);
  }

  .navbar.scrolled { background: rgba(255,255,255,0.98); }
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: -1rem -1rem 2.5rem -1rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
  opacity: 0.3;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
}

/* ===== SECTION ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i { color: var(--accent); }

.section-title.center {
  justify-content: center;
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 0.75rem; object-fit: contain; }

.brand-tagline {
  color: var(--gold);
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.brand-description {
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.7;
}

.footer-heading {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: all var(--t);
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 3px;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--t);
}

.social-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== BOOK GRID ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--t);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  color: inherit;
}

.book-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

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

.book-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,40,56,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: white;
  opacity: 0;
  transition: opacity var(--t);
}

.book-card:hover .card-overlay { opacity: 1; }

.book-card .card-body {
  padding: 1rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.book-title { font-size: 0.95rem; font-weight: 600; color: var(--primary); }
.card-text { font-size: 0.8rem; color: var(--text-muted); }

.placeholder-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-light), rgba(199,81,70,0.08));
  color: var(--primary);
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.placeholder-cover i { font-size: 2rem; }

/* ===== BOOK INFO ===== */
.book-main { padding-bottom: 3rem; }

.book-info {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.book-info .book-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.synopsis p {
  margin-bottom: 0.85rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.synopsis-highlight {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.climax-box {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(212,163,115,0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1rem 0;
}

.climax-box i { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.climax-box span { font-size: 0.9rem; line-height: 1.7; font-style: italic; color: var(--primary); }

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border-radius: var(--r-pill, 100px);
  white-space: nowrap;
}

.meta-label { color: var(--text-muted); font-weight: 500; }
.meta-value { font-weight: 600; }
.meta-value.completed { color: var(--success); }
.meta-value.in-progress { color: var(--info); }
.meta-value.ongoing { color: var(--success); }
.meta-value.mature { color: var(--danger); }

.content-warning {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(212,163,115,0.1);
  border-radius: var(--r-md);
  margin-top: 1rem;
  font-size: 0.85rem;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--t);
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.action-btn:hover {
  background: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

.action-btn.amazon { background: #ff9900; color: white; border-color: #ff9900; }
.action-btn.amazon:hover { background: #e88f00; color: white; }
.action-btn.physical { background: var(--primary); color: white; border-color: var(--primary); }
.action-btn.physical:hover { background: var(--primary-light); color: white; }
.action-btn.booknet { background: #6b21a8; color: white; border-color: #6b21a8; }
.action-btn.booknet:hover { background: #581c87; color: white; }
.action-btn.wattpad { background: #ff4500; color: white; border-color: #ff4500; }
.action-btn.wattpad:hover { background: #e03e00; color: white; }

/* ===== COVER ===== */
.cover-wrapper {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}

.cover-wrapper .book-cover { width: 100%; border-radius: var(--r-md); }

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(27,40,56,0.5));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.overlay-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

/* ===== CONTENT SECTION ===== */
.content-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 1.5rem;
}

.content-card .section-title { font-size: 1.2rem; }

.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.alert-info { background: rgba(74,124,140,0.08); color: var(--info); }
.alert-success { background: rgba(58,125,92,0.08); color: var(--success); }
.alert-warning { background: rgba(196,149,42,0.08); color: var(--warning); }

/* ===== CHAPTERS ===== */
.chapter-group { margin-bottom: 1.25rem; }

.chapter-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.chapter-list { list-style: none; }

.chapter-item {
  padding: 0.3rem 0;
  font-size: 0.875rem;
}

.chapter-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
}

.chapter-link:hover { color: var(--accent-dark); }

.chapter-locked {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.chapter-locked i { color: #c4c2be; }

/* ===== AUTHOR PAGE ===== */
.author-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem auto;
  max-width: var(--max-w);
}

.author-intro .section-title { font-size: 1.4rem; }

.intro-lead { font-size: 1.05rem; font-weight: 600; color: var(--primary); }

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.info-item i { margin-top: 3px; flex-shrink: 0; }

.divider-text { margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }

.journey { margin: 2rem 0; }

.journey-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
}

.step.highlight {
  border-left-color: var(--accent);
  background: rgba(199,81,70,0.04);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.step-header .step-label { font-weight: 600; font-size: 0.95rem; }

.step p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.35rem; }

.highlight-box {
  padding: 0.75rem;
  background: var(--surface);
  border-radius: var(--r-sm);
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

.author-message {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--primary);
  border-radius: var(--r-lg);
  color: white;
}

.author-message .msg-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-message p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.5rem; opacity: 0.9; }
.author-message .hope { font-size: 1.05rem; font-weight: 600; opacity: 1; }
.author-message .challenge { font-size: 1rem; opacity: 1; }

/* ===== UNIVERSE PAGE ===== */
.universe-section {
  max-width: var(--max-w);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.section-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.img-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}

.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(27,40,56,0.7));
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.creator-box {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.creator-box i { font-size: 1.2rem; flex-shrink: 0; }

.tech-lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.feature-note {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(74,124,140,0.08);
  border-radius: var(--r-md);
  margin: 1rem 0;
  font-size: 0.85rem;
}

.concept { margin: 1.25rem 0; }

.concept-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.concept ul { padding-left: 1.5rem; line-height: 1.9; font-size: 0.9rem; }

.terms {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.term-card {
  flex: 1;
  min-width: 180px;
  padding: 0.875rem;
  background: var(--bg);
  border-radius: var(--r-md);
}

.term-card h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.term-card p { font-size: 0.85rem; color: var(--text-muted); }

.tournament-highlight {
  padding: 1.5rem;
  background: var(--primary);
  border-radius: var(--r-lg);
  color: white;
  margin: 1.25rem 0;
}

.tournament-highlight h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tournament-highlight p { font-size: 0.9rem; line-height: 1.7; opacity: 0.9; }

.evolution-box {
  padding: 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.controversy { margin: 1.5rem 0; }

.controversy-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.problem-box {
  padding: 0.875rem;
  background: rgba(196,149,42,0.08);
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.security-box {
  padding: 0.875rem;
  background: rgba(58,125,92,0.06);
  border-radius: var(--r-md);
}

.security-box h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.security-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spirit-box {
  padding: 1.25rem;
  background: rgba(199,81,70,0.04);
  border-radius: var(--r-lg);
  margin: 1.25rem 0;
}

.spirit-box h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.spirit-box p { font-size: 0.9rem; line-height: 1.7; }

.timeline { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }

.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
}

.timeline-item.highlight {
  border-left-color: var(--accent);
  background: rgba(199,81,70,0.04);
}

.timeline-icon { flex-shrink: 0; }
.timeline-icon i { font-size: 1.2rem; margin-top: 2px; }

.timeline-body h5 {
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.timeline-body p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 0.35rem; }

.transform-story { display: flex; flex-direction: column; gap: 0.5rem; }
.transform-arrow { text-align: center; font-size: 1.2rem; color: var(--gold); }

.status-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.vision-box {
  padding: 1.5rem;
  background: var(--primary);
  border-radius: var(--r-lg);
  color: white;
  margin-top: 1.25rem;
}

.vision-box h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.vision-box p { font-size: 1rem; line-height: 1.7; font-style: italic; opacity: 0.9; }

/* ===== STORIES ===== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.story-card {
  display: flex;
  gap: 0.875rem;
  padding: 1.125rem;
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: all var(--t);
}

.story-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.story-icon i { font-size: 1.75rem; color: var(--accent); }
.story-info .story-name { font-weight: 600; margin-bottom: 0.2rem; font-size: 0.95rem; }
.story-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== 404 ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 3rem 1.5rem;
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.04em;
}

.error-page h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.error-page p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 460px;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--t);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

/* ===== CAROUSEL ===== */
.carousel { position: relative; }
.carousel-inner { position: relative; overflow: hidden; border-radius: var(--r-md); }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel img { width: 100%; }
.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(27,40,56,0.6));
  color: white;
  font-size: 0.85rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--t);
  z-index: 5;
  color: var(--text);
}

.carousel-btn:hover { background: var(--bg); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active { background: white; border-color: white; }

/* ===== GRID ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .book-grid { grid-template-columns: 1fr; }
}

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-input,
.form-textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199,81,70,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}

.form-submit:hover {
  background: var(--accent-hover, #b33d33);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

/* ===== STORY/PROLOGUE TEXT ===== */
.story-text {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 0.95rem;
}

.story-text p {
  margin-bottom: 0.85rem;
  text-indent: 1.2em;
}

.story-text .no-indent { text-indent: 0; }

.prologue-header {
  text-align: center;
  padding: 2rem 0;
}

.prologue-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.prologue-header .sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ===== ANEXO ===== */
.anexo-notes {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.anexo-notes .note {
  padding: 1rem;
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.note-warning {
  background: rgba(196,149,42,0.08);
  border-left: 3px solid var(--warning);
}

.note-info {
  background: rgba(74,124,140,0.08);
  border-left: 3px solid var(--info);
}

/* ===== AUTHOR PAGE — missing class mappings ===== */
.author-story .section-title { font-size: 1.4rem; }

.intro-section { margin-bottom: 1rem; }
.intro-section p { font-size: 1.05rem; line-height: 1.7; }

.personal-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.transition-note {
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
}
.transition-note p { margin: 0; }

.writing-journey { margin: 2rem 0; }

.journey-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journey-step {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
}

.journey-step.highlight {
  border-left-color: var(--accent);
  background: rgba(199,81,70,0.04);
}

.step-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.message-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.final-thoughts { margin-top: 1rem; }
.final-thoughts .hope {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.final-thoughts .challenge {
  font-size: 1rem;
  font-weight: 700;
}

/* ===== UNIVERSE PAGE — missing class mappings ===== */
.lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.concept-section { margin: 1.25rem 0; }
.concept-section ul {
  padding-left: 1.5rem;
  line-height: 1.9;
  font-size: 0.9rem;
}

.terminology-section {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.tournament-card {
  padding: 1.5rem;
  background: var(--primary);
  border-radius: var(--r-lg);
  color: white;
  margin: 1.25rem 0;
}
.tournament-card h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.tournament-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
}

.evolution-note {
  padding: 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.popularity-section { margin: 1.25rem 0; }

.controversy-section { margin: 1.5rem 0; }
.controversy-content { display: flex; flex-direction: column; gap: 0.75rem; }

.security-measures {
  padding: 0.875rem;
  background: rgba(58,125,92,0.06);
  border-radius: var(--r-md);
}
.security-measures h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.spirit-card {
  padding: 1.25rem;
  background: rgba(199,81,70,0.04);
  border-radius: var(--r-lg);
  margin: 1.25rem 0;
}
.spirit-card h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.spirit-card p { font-size: 0.9rem; line-height: 1.7; }

.saga-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.timeline-marker { flex-shrink: 0; }
.timeline-marker i { font-size: 1.2rem; margin-top: 2px; }

.timeline-content h5 {
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.timeline-content p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.inspiration-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(212,163,115,0.1);
  border-radius: var(--r-md);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--primary);
  border-left: 3px solid var(--gold);
}
.inspiration-quote i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.transformation-story {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.original-concept h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.original-concept p { font-size: 0.875rem; }
.evolution h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.evolution p { font-size: 0.875rem; }

.current-status {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.status-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.future-vision {
  margin-top: 1.25rem;
}
.vision-card {
  padding: 1.5rem;
  background: var(--primary);
  border-radius: var(--r-lg);
  color: white;
}
.vision-card h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.vision-text {
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.9;
}

/* ===== MISC ===== */
.quote-section {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.7;
  font-size: 0.95rem;
}

.content-warning {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(196,149,42,0.08);
  border-radius: var(--r-md);
  margin-top: 1rem;
  font-size: 0.85rem;
}
