:root {
  --bg: #070707;
  --bg-2: #101012;
  --panel: rgba(18, 17, 18, 0.78);
  --panel-strong: rgba(10, 10, 11, 0.92);
  --wine: #3a0812;
  --wine-soft: #6f1825;
  --gold: #c2a15f;
  --gold-soft: #e0c98a;
  --text: #f3efe7;
  --muted: #b7afa1;
  --line: rgba(224, 201, 138, 0.2);
  --shadow: rgba(0, 0, 0, 0.58);
  --max: 1180px;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.story-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.story-modal-box {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 48px 54px;
  background:
    radial-gradient(circle at 70% 30%, rgba(150, 50, 10, 0.20), transparent 35%),
    linear-gradient(145deg, #3b000b, #070607 82%);
  border: 1px solid rgba(216, 180, 95, 0.55);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  color: #f0dfc2;
  font-family: "Marcellus", serif;
}

.story-modal-box::before,
.story-modal-box::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-color: rgba(216, 180, 95, 0.65);
}

.story-modal-box::before {
  top: 16px;
  left: 16px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.story-modal-box::after {
  bottom: 16px;
  right: 16px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.story-modal-kicker {
  color: #d8b45f;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.story-modal-box h2 {
  color: #f3eee5;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  margin: 0 0 28px;
}

#hospital-historia .story-modal-kicker {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

#hospital-historia .story-modal-box h2 {
  font-size: 0.9rem;
}

#luz-historia .story-modal-kicker {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: 0.03em;
}

#luz-historia .story-modal-box h2 {
  font-size: 0.9rem;
}

.story-modal-box p {
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0 0 20px;
}

.story-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 180, 95, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #d8b45f;
  font-size: 1.8rem;
  cursor: pointer;
}

.story-modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.story-modal-actions .special-btn {
  min-width: 210px;
  min-height: 48px;
}

#trilogia-terror-detalhes .story-modal-box {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

#trilogia-terror-detalhes .story-modal-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 18px;
}

#trilogia-terror-detalhes .story-modal-box p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

#trilogia-terror-detalhes .story-modal-actions {
  margin-top: 20px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 24, 37, 0.3), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(194, 161, 95, 0.14), transparent 26rem),
    radial-gradient(circle at 50% 60%, rgba(58, 8, 18, 0.18), transparent 38rem),
    linear-gradient(180deg, #070707 0%, #121114 44%, #070707 100%);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.58;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.5px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
  background-size: 180px 180px, 46px 46px, 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 86%);
}

body::after {
  z-index: -7;
  background:
    radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.76) 100%),
    radial-gradient(circle at 14% 42%, rgba(111, 24, 37, 0.16), transparent 26rem),
    linear-gradient(115deg, rgba(111, 24, 37, 0.14), transparent 44%);
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button,
input {
  font: inherit;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -8;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.58;
}

main::before,
main::after {
  content: "";
  position: fixed;
  left: -12%;
  right: -12%;
  z-index: -6;
  height: 260px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(224, 224, 224, 0.08), transparent);
  filter: blur(34px);
  opacity: 0.68;
  animation: backgroundMist 18s ease-in-out infinite alternate;
}

main::before {
  top: 24%;
  transform: rotate(-4deg);
}

main::after {
  top: 58%;
  opacity: 0.42;
  animation-duration: 24s;
  transform: rotate(5deg);
}

@keyframes backgroundMist {
  from {
    translate: -4% 0;
  }
  to {
    translate: 5% 0;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.9), rgba(7, 7, 7, 0.56));
  backdrop-filter: blur(14px);
  transition: min-height 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  border-color: var(--line);
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.brand {
  display: grid;
  gap: 0;
}

.brand-name,
h1,
h2,
h3 {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.08;
}

.brand-name {
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 700;
}

.brand-subtitle {
  color: var(--gold-soft);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-family: "Marcellus", serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #c52d2d;
  text-transform: none;
  text-shadow:
    0 0 8px rgba(197, 45, 45, 0.15);
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 95, 0.75), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.nav-links a:hover {
  color: #e24747;
  text-shadow:
    0 0 12px rgba(226, 71, 71, 0.35),
    0 0 30px rgba(226, 71, 71, 0.15);
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: #d8b45f;
  text-shadow:
    0 0 10px rgba(216, 180, 95, 0.24),
    0 0 24px rgba(216, 180, 95, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--gold-soft);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 456px);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  padding-top: 112px;
  padding-bottom: 68px;
  overflow: hidden;
}

.atmosphere {
  position: absolute;
  inset: 0 -10vw;
  z-index: -6;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.58), rgba(58, 8, 18, 0.42)),
    url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=1800&q=80") center/cover;
  filter: saturate(0.72) contrast(1.08);
  will-change: transform;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 36%, rgba(224, 201, 138, 0.14), transparent 19rem),
    radial-gradient(circle at 24% 62%, rgba(111, 24, 37, 0.18), transparent 25rem),
    linear-gradient(180deg, rgba(7, 7, 7, 0.12), var(--bg) 96%);
}

.mist {
  position: absolute;
  left: -18%;
  right: -18%;
  height: 210px;
  background: linear-gradient(90deg, transparent, rgba(230, 230, 230, 0.13), transparent);
  filter: blur(28px);
  opacity: 0.75;
  animation: drift 12s ease-in-out infinite alternate;
}

.mist-one {
  bottom: 18%;
  transform: rotate(-3deg);
}

.mist-two {
  bottom: 42%;
  opacity: 0.48;
  animation-duration: 16s;
  transform: rotate(5deg);
}

.old-building {
  position: absolute;
  right: 11%;
  bottom: 0;
  width: 190px;
  height: 410px;
  opacity: 0.28;
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(224, 201, 138, 0.22) 24px 28px, transparent 28px 52px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
  clip-path: polygon(10% 8%, 50% 0, 90% 8%, 90% 100%, 10% 100%);
}

@keyframes drift {
  from {
    transform: translateX(-4%) rotate(-3deg);
  }
  to {
    transform: translateX(5%) rotate(3deg);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-kicker {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d8b45f;
  font-weight: 700;
  margin: 0 0 24px;
  opacity: 0.95;
  text-shadow:
    0 0 8px rgba(216, 180, 95, 0.25),
    0 0 18px rgba(216, 180, 95, 0.12);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.35rem, 5.3vw, 4.45rem);
  font-weight: 700;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.85);
}

.hero-logo {
  width: min(760px, 92vw);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 24px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 18px rgba(216, 180, 95, 0.12));
}

.hero-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  margin: 40px auto 50px;
}

.hero-line1 {
  color: #d8b45f;
  font-size: clamp(1.2rem, 1.35vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  text-shadow:
    0 0 10px rgba(216, 180, 95, 0.18),
    0 0 25px rgba(216, 180, 95, 0.08);
}

.hero-line2 {
  color: rgba(216, 180, 95, 0.85);
  font-size: clamp(0.95rem, 1vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(216, 180, 95, 0.12);
}

.hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
}

.hero-phrases {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 70px auto;
  text-align: center;
}

.phrase {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Marcellus", serif;
  color: #b52828;
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(181, 40, 40, 0.18);
  transition: 0.4s ease;
}

.phrase i {
  color: #d8b45f;
  font-size: 1.1em;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 0 8px rgba(216, 180, 95, 0.2));
}

.phrase:hover {
  color: #d44444;
  transform: translateX(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid transparent;
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #151007;
  box-shadow: 0 16px 42px rgba(194, 161, 95, 0.18);
}

.btn-secondary {
  border-color: rgba(224, 201, 138, 0.36);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero-carousel {
  position: relative;
  border: 1px solid rgba(216, 180, 95, 0.24);
  background:
    radial-gradient(circle at 28% 24%, rgba(216, 180, 95, 0.1), transparent 14rem),
    radial-gradient(circle at 78% 44%, rgba(181, 40, 40, 0.14), transparent 16rem),
    linear-gradient(180deg, rgba(24, 20, 20, 0.9), rgba(7, 8, 12, 0.94));
  box-shadow:
    0 30px 90px var(--shadow),
    0 0 32px rgba(181, 40, 40, 0.08);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.carousel-topline,
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.carousel-topline {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: "Marcellus", serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.carousel-count {
  color: var(--gold-soft);
}

.carousel-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.book-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  text-align: center;
  gap: 18px;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}

.book-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.book-slide.is-active .slide-cover,
.book-slide.is-active .slide-content {
  animation: slideReveal 620ms ease both;
}

.book-slide.is-active .slide-content {
  animation-delay: 90ms;
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-cover,
.book-cover-placeholder,
.photo-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  color: var(--gold-soft);
  background:
    radial-gradient(circle at 50% 12%, rgba(224, 201, 138, 0.18), transparent 42%),
    linear-gradient(150deg, rgba(58, 8, 18, 0.96), rgba(9, 9, 10, 0.96));
  border: 1px solid rgba(224, 201, 138, 0.22);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.58);
}

.slide-cover {
  width: min(230px, 70%);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  padding: 24px;
  font-size: 1.35rem;
}

.slide-content {
  padding: 0 8px 8px;
  text-align: center;
}

.slide-content p,
.genre {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.slide-content h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}

.slide-content span {
  color: var(--muted);
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 28px;
  padding: 10px 8px 4px;
  text-align: center;
}

.featured-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  max-width: 42%;
  min-width: 260px;
  min-height: 430px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1200px;
}

.featured-cover::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 86%;
  background:
    radial-gradient(circle, rgba(190, 25, 25, 0.55), transparent 62%);
  filter: blur(28px);
  z-index: 0;
}

.featured-cover::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 62%;
  height: 28px;
  background: radial-gradient(ellipse, rgba(216, 180, 95, 0.18), transparent 70%);
  filter: blur(10px);
  opacity: 0.75;
  transform: rotateX(70deg);
  z-index: 1;
}

.featured-cover img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 470px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid rgba(216, 180, 95, 0.35);
  filter:
    drop-shadow(24px 28px 45px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 35px rgba(180, 25, 25, 0.35));
  transform: rotateY(-8deg) rotateX(1deg);
  transform-origin: center;
  transition: 0.5s ease;
}

.featured-book:hover .featured-cover img {
  transform: rotateY(-4deg) translateY(-8px) scale(1.02);
  filter:
    drop-shadow(30px 34px 55px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 45px rgba(200, 40, 40, 0.45));
}

.featured-copy {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.featured-library {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(216, 180, 95, 0.82);
}

.featured-genre {
  font-family: "Marcellus", serif;
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d8b45f;
  font-weight: 400;
}

.featured-title {
  font-family: "Marcellus", serif;
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
  color: #f3eee5;
  text-shadow:
    0 0 15px rgba(255, 255, 255, 0.08);
}

.featured-tagline {
  display: block;
  font-family: "Marcellus", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #b52828 !important;
  text-shadow:
    0 0 10px rgba(181, 40, 40, 0.15);
}

.decor-line {
  width: min(260px, 88%);
  height: 1px;
  margin: 12px auto;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 95, 0.85), transparent);
  position: relative;
}

.decor-line::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #d8b45f;
  background: #080608;
  padding: 0 10px;
  font-size: 0.8rem;
}

.decor-line-red {
  background: linear-gradient(90deg, transparent, rgba(181, 40, 40, 0.72), transparent);
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  min-height: 72px;
  padding: 0 38px;
  margin-top: 22px;
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1008;
  text-decoration: none;
  background:
    linear-gradient(135deg, #f2d889, #b98a36);
  border: 2px solid rgba(80, 48, 15, 0.55);
  clip-path: polygon(4% 0, 96% 0, 100% 18%, 100% 82%, 96% 100%, 4% 100%, 0 82%, 0 18%);
  box-shadow:
    0 12px 35px rgba(216, 180, 95, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.featured-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 45px rgba(216, 180, 95, 0.42),
    0 0 22px rgba(216, 180, 95, 0.25);
}

.featured-slide {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  align-content: center;
  gap: 34px;
  min-height: 520px;
  padding: 36px 48px;
  overflow: hidden;
}

.featured-slide .featured-cover {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 420px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.featured-slide .featured-cover::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 360px;
  background: radial-gradient(circle, rgba(190, 20, 20, 0.75) 0%, rgba(120, 0, 0, 0.35) 35%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
}

.featured-slide .featured-cover::after {
  display: none;
}

.featured-slide .featured-cover img {
  position: relative;
  z-index: 2;
  max-height: 390px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: perspective(1000px) rotateY(-7deg);
  box-shadow:
    22px 28px 45px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(180, 20, 20, 0.35);
  border: 1px solid rgba(216, 180, 95, 0.35);
  filter: none;
}

.featured-slide:hover .featured-cover img {
  transform: perspective(1000px) rotateY(-4deg) translateY(-8px) scale(1.02);
  box-shadow:
    30px 34px 55px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(200, 40, 40, 0.45);
}

.featured-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.featured-label {
  font-family: "Marcellus", serif;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: #d8b45f;
  letter-spacing: 0.08em;
  margin: 0;
}

.featured-slide .featured-genre {
  font-family: "Marcellus", serif;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  color: #d8b45f;
  letter-spacing: 0.25em;
  margin: 18px 0 0;
}

.featured-slide .featured-title {
  font-family: "Marcellus", serif;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  color: #f3eee5;
  margin: 14px 0 0;
  line-height: 1;
}

.featured-slide .featured-tagline {
  font-family: "Marcellus", serif;
  font-size: clamp(1.25rem, 1.8vw, 2rem);
  color: #d33 !important;
  font-style: italic;
  line-height: 1.35;
  max-width: 460px;
  margin: 18px auto 0;
}

.featured-slide .decor-line {
  width: 220px;
  height: 1px;
  margin: 12px auto;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 95, 0.8), transparent);
  position: relative;
}

.featured-slide .decor-line::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #d8b45f;
  background: #070607;
  padding: 0 8px;
  font-size: 0.7rem;
}

.featured-slide .featured-cta {
  margin-top: 18px;
  min-width: 300px;
  min-height: 58px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Marcellus", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1008;
  background: linear-gradient(135deg, #f2d889, #b98a36);
  border: 1px solid rgba(80, 48, 15, 0.65);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(216, 180, 95, 0.25);
  clip-path: polygon(5% 0, 95% 0, 100% 20%, 100% 80%, 95% 100%, 5% 100%, 0 80%, 0 20%);
}

@media (max-width: 900px) {
  .featured-slide {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
  }

  .featured-slide .featured-cover {
    height: 340px;
  }

  .featured-slide .featured-cover img {
    max-height: 320px;
    max-width: 230px;
  }

  .featured-slide .featured-title {
    font-size: 2.4rem;
  }

  .featured-slide .featured-cta {
    min-width: 240px;
    min-height: 52px;
    font-size: 0.95rem;
  }
}

.carousel-controls {
  position: relative;
  z-index: 2;
  margin-top: 16px;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 180ms ease, transform 180ms ease;
}

.circle-btn:hover {
  transform: translateY(-2px);
  background: rgba(224, 201, 138, 0.12);
}

.carousel-dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 24px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--gold-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.edificio-copy h2,
.author-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
}

.section-heading p:last-child,
.edificio-copy p,
.author-copy p,
.format-card p,
.book-content p {
  color: var(--muted);
}

.entry-section,
.books-section,
.formats-section,
.author-section,
.contact-section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.books-section {
  position: relative;
  isolation: isolate;
}

.books-section::before {
  content: "";
  position: absolute;
  inset: 22px -28px;
  z-index: -1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 24, 37, 0.32), transparent 28rem),
    radial-gradient(circle at 78% 42%, rgba(80, 8, 18, 0.28), transparent 30rem),
    linear-gradient(180deg, rgba(20, 3, 8, 0.58), rgba(4, 4, 6, 0.62));
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42);
}

.books-section .section-heading h2 {
  color: #f7f0e4;
}

.books-section .section-heading p:last-child {
  color: #c9beb0;
}

.books-section .eyebrow {
  color: rgba(224, 201, 138, 0.84);
}

.books-section .books-eyebrow {
  font-size: 0.94rem;
}

.entry-grid,
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-card,
.format-card,
.book-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.022)),
    radial-gradient(circle at 20% 0%, rgba(111, 24, 37, 0.12), transparent 18rem);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
}

.entry-card,
.format-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.entry-card:hover,
.format-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 201, 138, 0.42);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
}

.entry-card span {
  display: block;
  margin-bottom: 26px;
  color: rgba(224, 201, 138, 0.6);
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
}

.entry-card h3,
.format-card span,
.book-content h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.entry-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold-soft);
  font-weight: 800;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.upcoming-books {
  margin-top: 24px;
}

.book-card {
  position: relative;
  height: 790px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(201, 167, 92, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 5, 12, 0.78), rgba(8, 8, 11, 0.94)),
    rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  box-shadow:
    0 14px 46px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(201, 167, 92, 0.25);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    300px circle at var(--glow-x, 50%) var(--glow-y, 30%),
    rgba(201, 167, 92, 0.2),
    transparent 64%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.book-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(235, 226, 198, 0.12), transparent 24%),
    radial-gradient(ellipse at 50% 0%, rgba(235, 226, 198, 0.13), transparent 48%);
  opacity: 0.42;
  filter: blur(0.2px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 38%);
  animation: cardMist 8s ease-in-out infinite alternate;
}

@keyframes cardMist {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}

.book-card:hover,
.book-card.is-hovered {
  transform: translateY(-8px);
  border-color: rgba(224, 201, 138, 0.62);
  filter: saturate(1.04);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(201, 167, 92, 0.28),
    inset 0 0 0 1px rgba(224, 201, 138, 0.34),
    inset 0 0 34px rgba(201, 167, 92, 0.055);
}

.book-card:hover::before,
.book-card.is-hovered::before {
  opacity: 1;
}

.book-cover {
  position: relative;
  z-index: 2;
  flex: 0 0 420px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 201, 138, 0.18);
  background:
    radial-gradient(circle at 50% 20%, rgba(201, 167, 92, 0.1), transparent 34%),
    radial-gradient(circle at 50% 74%, rgba(111, 24, 37, 0.3), transparent 42%),
    linear-gradient(180deg, #2a030b 0%, #08090d 100%);
}

.book-cover img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(224, 201, 138, 0.3);
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.65));
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.book-cover-duo {
  position: relative;
}

.book-cover-duo img {
  position: absolute;
  max-height: 390px;
}

.book-cover-duo .cover-front {
  opacity: 1;
  transform: translateX(-10px) rotate(-1.5deg);
}

.book-cover-duo .cover-back {
  opacity: 0;
  transform: translateX(18px) rotate(2deg) scale(0.96);
}

.book-card:hover .book-cover-duo .cover-front,
.book-card.is-hovered .book-cover-duo .cover-front,
.book-cover-duo:focus .cover-front,
.book-cover-duo.is-showing-back .cover-front {
  opacity: 0;
  transform: translateX(-24px) rotate(-3deg) scale(0.95);
}

.book-card:hover .book-cover-duo .cover-back,
.book-card.is-hovered .book-cover-duo .cover-back,
.book-cover-duo:focus .cover-back,
.book-cover-duo.is-showing-back .cover-back {
  opacity: 1;
  transform: translateY(-6px) translateX(0) rotate(0deg) scale(1.025);
  filter:
    drop-shadow(0 28px 38px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 18px rgba(201, 167, 92, 0.25));
}

.book-card:hover .book-cover:not(.book-cover-duo) img,
.book-card.is-hovered .book-cover:not(.book-cover-duo) img {
  transform: translate3d(0, -8px, 0) scale(1.028) rotate(-0.45deg);
  filter:
    drop-shadow(0 28px 38px rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 18px rgba(201, 167, 92, 0.25));
}

.book-cover-placeholder {
  flex: 0 0 420px;
  min-height: 0;
  height: auto;
  padding: 24px;
  border: 0;
  border-bottom-color: rgba(224, 201, 138, 0.18);
  box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.58);
}

.book-cover-placeholder span {
  max-width: 220px;
  font-size: 1.12rem;
}

.trilogy-terror-cover {
  width: 100%;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #120008;
}

.trilogy-terror-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.placeholder-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  background:
    radial-gradient(circle at center, rgba(90, 8, 20, 0.55), transparent 55%),
    linear-gradient(180deg, #30000b, #060608);
  color: #d8b45f;
  font-family: "Marcellus", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.book-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 20px;
}

.book-content h3 {
  min-height: 2.25em;
  color: #f7f0e4;
}

.book-content p:not(.genre) {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.48;
  color: #cfc5b8;
}

.availability {
  margin-top: auto;
  padding-top: 14px;
  color: #d8c58f !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  line-height: 1.35 !important;
}

.book-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 0;
}

.book-actions a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(201, 167, 92, 0.38);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  color: #f3eee5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.book-actions .action-buy,
.book-actions .action-details {
  width: 100%;
}

.book-actions .action-buy {
  min-height: 44px;
  border-color: rgba(224, 201, 138, 0.78);
  background:
    linear-gradient(135deg, #ffe7a2 0%, #c9a75c 42%, #8a672f 100%);
  color: #120f08;
  font-size: 14px;
  font-weight: 900;
  box-shadow:
    0 14px 34px rgba(201, 167, 92, 0.32),
    0 0 20px rgba(201, 167, 92, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.book-actions .action-details {
  border-color: rgba(201, 167, 92, 0.28);
  background: rgba(8, 9, 13, 0.62);
  color: var(--gold-soft);
}

.book-actions a:hover {
  border-color: rgba(201, 167, 92, 0.85);
  background: #c9a75c;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 167, 92, 0.22);
}

.book-actions .action-buy:hover {
  background:
    linear-gradient(135deg, #ffe7a2 0%, #d9b965 48%, #a8843f 100%);
  box-shadow:
    0 14px 34px rgba(201, 167, 92, 0.36),
    0 0 22px rgba(201, 167, 92, 0.22);
}

.edificio-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(58px, 8vw, 96px) clamp(20px, 4vw, 56px);
  border: 1px solid var(--line);
  background:
    linear-gradient(110deg, rgba(58, 8, 18, 0.6), rgba(8, 8, 9, 0.88)),
    radial-gradient(circle at 72% 44%, rgba(224, 201, 138, 0.16), transparent 24rem);
  overflow: hidden;
}

.edificio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  filter: blur(30px);
  animation: drift 14s ease-in-out infinite alternate;
}

.edificio-copy {
  position: relative;
  z-index: 2;
}

.edificio-copy p {
  max-width: 670px;
  font-size: 1.02rem;
}

.edificio-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.number-13 {
  position: absolute;
  color: rgba(224, 201, 138, 0.09);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(9rem, 22vw, 16rem);
  font-weight: 700;
}

.edificio-mist {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 16%;
  height: 120px;
  background: linear-gradient(90deg, transparent, rgba(230, 230, 230, 0.18), transparent);
  filter: blur(22px);
  animation: drift 9s ease-in-out infinite alternate;
}

.tower {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 16px;
  width: 220px;
  min-height: 330px;
  padding: 58px 28px 28px;
  border: 1px solid rgba(224, 201, 138, 0.34);
  background: linear-gradient(180deg, #161417, #050506);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  clip-path: polygon(10% 6%, 50% 0, 90% 6%, 90% 100%, 10% 100%);
}

.tower span {
  height: 34px;
  border: 1px solid rgba(224, 201, 138, 0.16);
  background: rgba(224, 201, 138, 0.12);
}

.tower span:nth-child(5),
.tower span:nth-child(11) {
  background: rgba(111, 24, 37, 0.86);
  box-shadow: 0 0 24px rgba(111, 24, 37, 0.62);
}

.formats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.format-card span {
  display: block;
  color: var(--gold-soft);
}

.author-section {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.author-photo-frame {
  width: 420px;
  height: 700px;
  border: 1px solid rgba(201, 166, 92, 0.35);
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(80, 12, 18, 0.25) 0%,
    rgba(15, 15, 15, 0.15) 100%
  );
  overflow: hidden;
  flex-shrink: 0;
}

.author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(201, 166, 92, 0.25);
}

.about-grid {
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  gap: 70px !important;
  align-items: center !important;
}

.about-photo {
  width: 280px !important;
  height: 420px !important;
  margin: 0 auto !important;
  padding: 12px !important;
  background: linear-gradient(
    180deg,
    rgba(80, 10, 20, 0.45),
    rgba(15, 10, 15, 0.90)
  ) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  border-radius: 10px !important;
  box-shadow:
    0 0 25px rgba(0, 0, 0, 0.45),
    inset 0 0 40px rgba(255, 255, 255, 0.03) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

.about-photo::before {
  content: "" !important;
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  width: 70px !important;
  height: 70px !important;
  border-top: 2px solid rgba(212, 175, 55, 0.45) !important;
  border-left: 2px solid rgba(212, 175, 55, 0.45) !important;
}

.about-photo::after {
  content: "" !important;
  position: absolute !important;
  bottom: 18px !important;
  right: 18px !important;
  width: 70px !important;
  height: 70px !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.45) !important;
  border-right: 2px solid rgba(212, 175, 55, 0.45) !important;
}

.about-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}

.photo-placeholder {
  min-height: 440px;
  padding: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid a {
  display: grid;
  place-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--gold-soft);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-grid a:hover {
  transform: translateY(-3px);
  background: rgba(224, 201, 138, 0.1);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(7, 7, 7, 0.88);
  color: var(--gold-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.purchase-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.purchase-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(111, 24, 37, 0.28), transparent 26rem),
    radial-gradient(circle at 50% 0%, rgba(201, 167, 92, 0.12), transparent 20rem),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
}

.purchase-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid rgba(224, 201, 138, 0.32);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 232, 172, 0.18), transparent 15rem),
    radial-gradient(circle at 12% 18%, rgba(111, 24, 37, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(42, 3, 11, 0.96), rgba(7, 8, 12, 0.98));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.84),
    0 0 42px rgba(201, 167, 92, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(18px) scale(0.96);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 260ms ease;
  opacity: 0;
}

.purchase-modal.is-open .purchase-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.purchase-dialog::before {
  content: "";
  position: absolute;
  inset: 0 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 162, 0.72), transparent);
  box-shadow: 0 0 24px rgba(201, 167, 92, 0.38);
}

.purchase-dialog h2 {
  margin: 0;
  color: #f7f0e4;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.purchase-dialog p:not(.eyebrow) {
  margin: 10px 0 22px;
  color: #c9beb0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(224, 201, 138, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease, color 180ms ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: rgba(201, 167, 92, 0.14);
  color: #fff4c7;
}

.purchase-options {
  display: grid;
  gap: 11px;
}

.purchase-option {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(201, 167, 92, 0.25);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(8, 9, 13, 0.68);
  color: #f3eee5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.purchase-option::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(201, 167, 92, 0.45);
}

.purchase-option:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 201, 138, 0.62);
  background:
    radial-gradient(circle at 10% 50%, rgba(201, 167, 92, 0.16), transparent 9rem),
    rgba(15, 12, 12, 0.84);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(201, 167, 92, 0.16);
}

.purchase-option:has(.option-amazon)::before {
  background: #ff9900;
}

.purchase-option:has(.option-hotmart)::before {
  background: linear-gradient(180deg, #ff3d25, #ff8a2a);
}

.purchase-option:has(.option-uiclap)::before {
  background: #c9a75c;
}

.purchase-option:has(.option-audio)::before {
  background: linear-gradient(180deg, #6f1825, #c9a75c);
}

.option-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201, 167, 92, 0.12);
  color: var(--gold-soft);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow:
    inset 0 0 0 1px rgba(201, 167, 92, 0.3),
    0 8px 20px rgba(201, 167, 92, 0.12);
}

.option-amazon {
  color: #ffb84d;
}

.option-hotmart {
  color: #ff6b35;
}

.option-uiclap,
.option-audio {
  color: var(--gold-soft);
}

.option-copy {
  display: grid;
  gap: 3px;
}

.option-copy strong {
  color: #f7f0e4;
  font-size: 0.98rem;
}

.option-copy small {
  color: #c9beb0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.option-arrow {
  color: rgba(224, 201, 138, 0.72);
  font-size: 0.95rem;
  transition: transform 180ms ease;
}

.purchase-option:hover .option-arrow {
  transform: translateX(3px);
}

.purchase-note {
  margin: 16px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 167, 92, 0.16);
  color: rgba(247, 240, 228, 0.72) !important;
  font-size: 0.78rem;
  text-align: center;
}

.site-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  background: #050505;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease, filter 680ms ease;
  filter: blur(4px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (max-width: 1080px) {
  .book-card {
    height: 780px;
  }

  .book-cover,
  .book-cover-placeholder {
    flex-basis: 400px;
  }

  .book-cover img {
    max-height: 370px;
  }

  .book-cover-duo img {
    max-height: 370px;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(7, 7, 7, 0.96);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(224, 201, 138, 0.11);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  .hero,
  .edificio-section,
  .author-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 112px;
  }

  .entry-grid,
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formats-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .hero-logo {
    width: min(92vw, 560px);
    margin-bottom: 20px;
  }

  .hero-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  .hero-subtitle {
    gap: 14px;
    margin: 30px auto 38px;
    max-width: 92vw;
  }

  .hero-line1 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1.55;
  }

  .hero-line2 {
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    line-height: 1.65;
  }

  .hero-phrases {
    gap: 18px;
    margin: 44px auto;
    max-width: 92vw;
  }

  .phrase {
    justify-content: center;
    gap: 12px;
    font-size: clamp(0.82rem, 4.2vw, 1.05rem);
    letter-spacing: 0.06em;
    line-height: 1.5;
  }

  .phrase:hover {
    transform: translateX(0);
  }

  .hero-actions .btn,
  .edificio-copy .btn {
    width: 100%;
  }

  .carousel-stage {
    min-height: 620px;
  }

  .slide-cover {
    width: min(208px, 78%);
  }

  .featured-book {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    padding: 4px 0;
  }

  .featured-cover {
    width: min(300px, 82vw);
    max-width: 82vw;
    min-width: 0;
    max-height: none;
    min-height: 360px;
  }

  .featured-cover img {
    max-height: 350px;
    transform: rotateY(-5deg) rotateX(1deg);
  }

  .featured-genre {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .featured-title {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .featured-tagline {
    font-size: 1rem;
  }

  .decor-line {
    width: min(230px, 82vw);
    margin: 10px auto;
  }

  .featured-cta {
    min-width: min(300px, 86vw);
    min-height: 58px;
    padding: 0 22px;
    font-size: 1rem;
  }

  .featured-slide {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
  }

  .featured-slide .featured-cover {
    height: 340px;
  }

  .featured-slide .featured-cover::before {
    width: 220px;
    height: 300px;
  }

  .featured-slide .featured-cover img {
    max-height: 320px;
    max-width: 230px;
  }

  .featured-slide .featured-title {
    font-size: 2.4rem;
  }

  .featured-slide .featured-cta {
    min-width: 240px;
    min-height: 52px;
    font-size: 0.95rem;
  }

  .entry-grid,
  .books-grid,
  .formats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    height: 760px;
  }

  .book-cover,
  .book-cover-placeholder {
    flex-basis: 380px;
  }

  .book-cover img {
    max-height: 340px;
  }

  .book-cover-duo img {
    max-height: 340px;
  }

  .book-content h3 {
    min-height: 0;
  }

  .book-actions {
    grid-template-columns: 1fr 1fr;
  }

  .edificio-section {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .photo-placeholder {
    min-height: 340px;
  }
}

/* Slide aprovado: Edificio 13 no carrossel principal */
.carousel-stage {
  min-height: 560px;
}

.book-slide.featured-slide {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  align-content: center;
  gap: 40px;
  min-height: 560px;
  padding: 44px 58px;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 95, 0.65);
  background:
    radial-gradient(circle at 30% 55%, rgba(170, 0, 0, 0.3), transparent 28%),
    radial-gradient(circle at 18% 8%, rgba(216, 180, 95, 0.1), transparent 18rem),
    linear-gradient(90deg, rgba(20, 0, 0, 0.45), rgba(0, 0, 0, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 28px 80px rgba(0, 0, 0, 0.38);
}

.book-slide.featured-slide .featured-cover {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 470px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1200px;
}

.book-slide.featured-slide .featured-cover::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 430px;
  background: radial-gradient(circle, rgba(210, 0, 0, 0.75), rgba(120, 0, 0, 0.35) 45%, transparent 72%);
  filter: blur(34px);
  z-index: 0;
}

.book-slide.featured-slide .featured-cover::after {
  display: none;
}

.book-slide.featured-slide .featured-cover img {
  position: relative;
  z-index: 2;
  max-height: 450px;
  max-width: 330px;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: rotateY(-9deg);
  border: 1px solid rgba(216, 180, 95, 0.35);
  box-shadow:
    30px 32px 55px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(190, 0, 0, 0.45);
  filter: none;
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
}

.book-slide.featured-slide:hover .featured-cover img {
  transform: rotateY(-5deg) translateY(-6px) scale(1.015);
  filter: brightness(1.04);
  box-shadow:
    34px 38px 64px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(210, 0, 0, 0.5);
}

.book-slide.featured-slide .featured-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Marcellus", serif;
}

.book-slide.featured-slide .featured-label {
  margin: 0;
  color: #d33;
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-slide.featured-slide .featured-genre {
  margin: 0;
  color: #d8b45f;
  font-family: "Marcellus", serif;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.book-slide.featured-slide .featured-title {
  margin: 16px 0 0;
  color: #f3eee5;
  font-family: "Marcellus", serif;
  font-size: clamp(3.6rem, 5vw, 5.8rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}

.book-slide.featured-slide .featured-tagline {
  max-width: 520px;
  margin: 0 auto;
  color: #d33 !important;
  font-family: "Marcellus", serif;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
  text-shadow: 0 0 12px rgba(221, 51, 51, 0.18);
}

.book-slide.featured-slide .decor-line {
  width: 300px;
  height: 1px;
  margin: 14px auto;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 95, 0.85), transparent);
  position: relative;
}

.book-slide.featured-slide .decor-line::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #d8b45f;
  background: #070607;
  padding: 0 10px;
}

.book-slide.featured-slide .featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-width: 380px;
  min-height: 72px;
  padding: 0 38px;
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1008;
  text-decoration: none;
  background: linear-gradient(135deg, #f5dc8d, #b98934);
  border: 2px solid rgba(80, 48, 15, 0.65);
  box-shadow: 0 16px 42px rgba(216, 180, 95, 0.32);
  clip-path: polygon(5% 0, 95% 0, 100% 18%, 100% 82%, 95% 100%, 5% 100%, 0 82%, 0 18%);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.book-slide.featured-slide .featured-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 20px 52px rgba(216, 180, 95, 0.42),
    0 0 24px rgba(216, 180, 95, 0.22);
}

@media (max-width: 900px) {
  .carousel-stage {
    min-height: 760px;
  }

  .book-slide.featured-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 760px;
    padding: 28px 22px;
  }

  .book-slide.featured-slide .featured-cover {
    height: 360px;
  }

  .book-slide.featured-slide .featured-cover::before {
    width: 240px;
    height: 320px;
  }

  .book-slide.featured-slide .featured-cover img {
    max-height: 335px;
    max-width: 245px;
  }

  .book-slide.featured-slide .featured-label {
    font-size: 1rem;
  }

  .book-slide.featured-slide .featured-genre {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
  }

  .book-slide.featured-slide .featured-title {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .book-slide.featured-slide .featured-tagline {
    font-size: 1.2rem;
  }

  .book-slide.featured-slide .decor-line {
    width: min(250px, 82vw);
    margin: 11px auto;
  }

  .book-slide.featured-slide .featured-cta {
    min-width: min(300px, 86vw);
    min-height: 56px;
    padding: 0 22px;
    font-size: 1rem;
  }
}

/* Ajuste compacto do slide Edificio 13 aprovado */
.carousel-stage {
  min-height: 600px;
}

.book-slide.featured-slide {
  max-width: 1180px;
  min-height: 520px;
  margin: 40px auto;
  padding: 34px 46px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(216, 180, 95, 0.65);
  background:
    radial-gradient(circle at 27% 55%, rgba(200, 0, 0, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(12, 0, 0, 0.85), rgba(0, 0, 0, 0.96));
  overflow: hidden;
}

.book-slide.featured-slide .featured-cover {
  position: relative;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.book-slide.featured-slide .featured-cover::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 360px;
  background: radial-gradient(circle, rgba(220, 0, 0, 0.75), rgba(120, 0, 0, 0.35) 45%, transparent 72%);
  filter: blur(30px);
  z-index: 0;
}

.book-slide.featured-slide .featured-cover img {
  position: relative;
  z-index: 2;
  max-height: 370px;
  max-width: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: rotateY(-9deg);
  box-shadow:
    24px 28px 48px rgba(0, 0, 0, 0.85),
    0 0 36px rgba(190, 0, 0, 0.42);
  border: 1px solid rgba(216, 180, 95, 0.35);
}

.book-slide.featured-slide .featured-info {
  text-align: center;
  font-family: "Marcellus", serif;
}

.book-slide.featured-slide .featured-label {
  color: #d33;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-slide.featured-slide .featured-genre {
  color: #d8b45f;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.book-slide.featured-slide .featured-title {
  color: #f3eee5;
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  line-height: 1;
  margin: 10px 0;
}

.book-slide.featured-slide .featured-tagline {
  color: #d33 !important;
  font-size: clamp(1.25rem, 1.6vw, 1.8rem);
  font-style: italic;
  line-height: 1.35;
  margin: 10px auto;
  max-width: 420px;
}

.book-slide.featured-slide .decor-line {
  width: 260px;
  height: 1px;
  margin: 10px auto;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 95, 0.85), transparent);
  position: relative;
}

.book-slide.featured-slide .decor-line::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #d8b45f;
  background: #070607;
  padding: 0 10px;
  font-size: 0.75rem;
}

.book-slide.featured-slide .featured-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-width: 320px;
  min-height: 58px;
  padding: 0 30px;
  font-family: "Marcellus", serif;
  font-size: 1.08rem;
  text-transform: uppercase;
  color: #1a1008;
  text-decoration: none;
  background: linear-gradient(135deg, #f5dc8d, #b98934);
  border: 2px solid rgba(80, 48, 15, 0.65);
  box-shadow: 0 12px 32px rgba(216, 180, 95, 0.3);
  clip-path: polygon(5% 0, 95% 0, 100% 18%, 100% 82%, 95% 100%, 5% 100%, 0 82%, 0 18%);
}

.book-slide.featured-slide .featured-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .carousel-stage {
    min-height: 760px;
  }

  .book-slide.featured-slide {
    grid-template-columns: 1fr;
    padding: 26px 20px;
    gap: 22px;
    min-height: auto;
    margin: 24px auto;
  }

  .book-slide.featured-slide .featured-cover {
    height: 320px;
  }

  .book-slide.featured-slide .featured-cover img {
    max-height: 300px;
    max-width: 220px;
  }

  .book-slide.featured-slide .featured-title {
    font-size: 2.6rem;
  }

  .book-slide.featured-slide .featured-cta {
    min-width: 240px;
    min-height: 52px;
    font-size: 0.95rem;
  }
}

/* Correção final de escala do slide Edificio 13 */
.hero-carousel .carousel-stage {
  min-height: 440px;
}

.book-slide.featured-slide {
  max-width: 1100px;
  height: 440px;
  min-height: 440px;
  margin: 0 auto;
  padding: 24px 34px;
  grid-template-columns: 42% 58%;
  gap: 24px;
  overflow: hidden;
}

.book-slide.featured-slide .featured-cover {
  height: 340px;
}

.book-slide.featured-slide .featured-cover::before {
  width: 240px;
  height: 300px;
  filter: blur(24px);
}

.book-slide.featured-slide .featured-cover img {
  max-height: 320px;
  max-width: 235px;
  object-fit: contain;
}

.book-slide.featured-slide .featured-label {
  font-size: 0.95rem;
}

.book-slide.featured-slide .featured-genre {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
}

.book-slide.featured-slide .featured-title {
  font-size: clamp(2.6rem, 3.4vw, 3.8rem);
  line-height: 0.95;
  margin: 6px 0;
  white-space: nowrap;
}

.book-slide.featured-slide .featured-tagline {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  line-height: 1.25;
  max-width: 360px;
  margin: 6px auto;
}

.book-slide.featured-slide .decor-line {
  width: 220px;
  margin: 7px auto;
}

.book-slide.featured-slide .featured-cta {
  min-width: 270px;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 22px;
  font-size: 0.9rem;
}

.carousel-controls,
.featured-pagination {
  margin-top: 12px;
}

.circle-btn {
  width: 42px;
  height: 42px;
}

@media (max-width: 900px) {
  .hero-carousel .carousel-stage {
    min-height: 650px;
  }

  .book-slide.featured-slide {
    height: auto;
    min-height: 650px;
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 18px;
  }

  .book-slide.featured-slide .featured-cover {
    height: 300px;
  }

  .book-slide.featured-slide .featured-cover::before {
    width: 210px;
    height: 260px;
  }

  .book-slide.featured-slide .featured-cover img {
    max-height: 280px;
    max-width: 205px;
  }

  .book-slide.featured-slide .featured-title {
    font-size: 2.45rem;
    white-space: normal;
  }

  .book-slide.featured-slide .featured-cta {
    min-width: 230px;
    min-height: 48px;
  }
}

/* Redução final de escala: Edificio 13 */
.hero-carousel .carousel-stage {
  min-height: 400px;
}

.book-slide.featured-slide {
  height: 400px;
  min-height: 400px;
  padding: 20px 28px;
  gap: 18px;
}

.book-slide.featured-slide .featured-cover {
  height: 300px;
}

.book-slide.featured-slide .featured-cover img {
  max-height: 280px;
  max-width: 210px;
}

.book-slide.featured-slide .featured-label {
  font-size: 0.85rem;
}

.book-slide.featured-slide .featured-genre {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.book-slide.featured-slide .featured-title {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 0.95;
  margin: 4px 0;
}

.book-slide.featured-slide .featured-tagline {
  font-size: clamp(0.9rem, 1vw, 1.2rem);
  line-height: 1.15;
  max-width: 320px;
  margin: 4px auto;
}

.book-slide.featured-slide .decor-line {
  width: 180px;
  margin: 5px auto;
}

.book-slide.featured-slide .featured-cta {
  min-width: 230px;
  min-height: 42px;
  font-size: 0.8rem;
  padding: 0 18px;
  margin-top: 8px;
}

.circle-btn {
  width: 38px;
  height: 38px;
}

.carousel-dots button {
  width: 19px;
  height: 3px;
}

/* Redução proporcional final: Edificio 13 */
.book-slide.featured-slide {
  height: 370px;
  min-height: 370px;
  padding: 18px 24px;
  gap: 14px;
}

.book-slide.featured-slide .featured-cover {
  height: 260px;
}

.book-slide.featured-slide .featured-cover::before {
  width: 200px;
  height: 250px;
  filter: blur(20px);
}

.book-slide.featured-slide .featured-cover img {
  max-height: 240px;
  max-width: 180px;
}

.book-slide.featured-slide .featured-label {
  font-size: 0.75rem;
}

.book-slide.featured-slide .featured-genre {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.book-slide.featured-slide .featured-title {
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  line-height: 0.9;
  margin: 2px 0;
}

.book-slide.featured-slide .featured-tagline {
  font-size: clamp(0.8rem, 1vw, 1rem);
  line-height: 1.15;
  max-width: 260px;
  margin: 2px auto;
}

.book-slide.featured-slide .decor-line {
  width: 150px;
  margin: 4px auto;
}

.book-slide.featured-slide .decor-line::after {
  font-size: 0.55rem;
}

.book-slide.featured-slide .featured-cta {
  min-width: 200px;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.72rem;
  margin-top: 6px;
}

.circle-btn {
  width: 34px;
  height: 34px;
}

.carousel-dots button {
  width: 14px;
  height: 3px;
}

.library-slide--abismos .trilogia-terror-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.library-slide--abismos .featured-genre {
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.library-slide--abismos .library-feature-title {
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.08;
  letter-spacing: 0.5px;
  max-width: 100%;
  width: 100%;
  margin: 14px auto 16px;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

.library-slide--abismos .featured-tagline {
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.35;
  margin: 14px auto 18px;
}

@media (max-width: 900px) {
  .library-slide--abismos .library-feature-title {
    font-size: clamp(19px, 4vw, 28px);
    line-height: 1.08;
  }
}

@media (max-width: 600px) {
  .library-slide--abismos .library-feature-title {
    font-size: clamp(17px, 5vw, 24px);
    line-height: 1.08;
  }
}

.slide-hospital .featured-title {
  font-family: "Marcellus", serif !important;
  font-size: 0.95rem !important;
  line-height: 1.1 !important;
  max-width: 180px !important;
  width: 180px !important;
  margin: 4px auto !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  display: block !important;
}

.slide-hospital .featured-genre {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.slide-hospital .featured-label {
  font-size: 0.75rem;
}

.slide-hospital .featured-tagline {
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 280px;
  margin: 5px auto;
}

.slide-hospital .featured-cta {
  min-width: 220px;
  min-height: 38px;
  font-size: 0.7rem;
  padding: 0 14px;
}

.slide-hospital .decor-line {
  width: 150px;
  margin: 5px auto;
}

.slide-sabores .featured-title {
  font-family: "Marcellus", serif !important;
  font-size: 0.95rem !important;
  line-height: 1.05 !important;
  max-width: 180px !important;
  width: 180px !important;
  margin: 4px auto !important;
  text-align: center !important;
  white-space: normal !important;
  display: block !important;
}

.slide-luz .featured-title {
  font-family: "Marcellus", serif !important;
  font-size: 0.95rem !important;
  line-height: 1.05 !important;
  max-width: 180px !important;
  width: 180px !important;
  margin: 4px auto !important;
  text-align: center !important;
  white-space: normal !important;
  display: block !important;
}

.slide-mares .featured-title {
  font-family: "Marcellus", serif !important;
  font-size: 0.8rem !important;
  line-height: 1.1 !important;
  max-width: 180px !important;
  width: 180px !important;
  margin: 4px auto !important;
  text-align: center !important;
  white-space: normal !important;
  display: block !important;
}

.slide-ceus .featured-title {
  font-family: "Marcellus", serif !important;
  font-size: 0.75rem !important;
  line-height: 1.08 !important;
  max-width: 180px !important;
  width: 180px !important;
  margin: 4px auto !important;
  text-align: center !important;
  white-space: normal !important;
  display: block !important;
}

.slide-terras .featured-title {
  font-family: "Marcellus", serif !important;
  font-size: 0.75rem !important;
  line-height: 1.08 !important;
  max-width: 180px !important;
  width: 180px !important;
  margin: 4px auto !important;
  text-align: center !important;
  white-space: normal !important;
  display: block !important;
}

/* Destaque Especial - Edificio 13 */
.special-feature {
  max-width: 1200px;
  margin: 80px auto;
  padding: 70px 80px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 180, 95, 0.55);
  background:
    radial-gradient(circle at 72% 52%, rgba(190, 0, 0, 0.28), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(216, 180, 95, 0.1), transparent 16rem),
    radial-gradient(circle at 14% 90%, rgba(120, 0, 0, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(65, 5, 15, 0.82), rgba(5, 5, 7, 0.96));
  font-family: "Marcellus", serif;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  isolation: isolate;
}

.special-feature::before,
.special-feature::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-color: #d8b45f;
  opacity: 0.75;
  pointer-events: none;
  z-index: 4;
}

.special-feature::before {
  top: 18px;
  left: 18px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.special-feature::after {
  right: 18px;
  bottom: 18px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.special-feature .special-content::before {
  content: "";
  position: absolute;
  inset: -42px -30px;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(216, 180, 95, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(181, 40, 40, 0.14) 0 1px, transparent 1.5px);
  background-size: 72px 72px, 108px 108px;
  opacity: 0.38;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
  animation: specialParticles 18s linear infinite;
}

.special-content {
  max-width: 560px;
  position: relative;
  z-index: 3;
}

.special-kicker {
  margin: 0 0 18px;
  font-family: "Marcellus", serif;
  color: #d8b45f;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(216, 180, 95, 0.2),
    0 0 24px rgba(216, 180, 95, 0.1);
}

.special-title {
  margin: 0 0 24px;
  font-family: "Marcellus", serif;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 1;
  color: #f3eee5;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.12),
    0 0 30px rgba(216, 180, 95, 0.1);
}

.special-text {
  max-width: 540px;
  margin: 0 0 32px;
  font-family: "Marcellus", serif;
  font-size: 1.25rem;
  line-height: 1.65;
  color: #f0dfc2;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

.special-actions {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.special-btn {
  min-width: 220px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-family: "Marcellus", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(5% 0, 95% 0, 100% 18%, 100% 82%, 95% 100%, 5% 100%, 0 82%, 0 18%);
}

.special-btn.primary {
  background: linear-gradient(135deg, #f5dc8d, #b98934);
  color: #1a1008;
  border: 1px solid rgba(80, 48, 15, 0.65);
  box-shadow:
    0 14px 35px rgba(216, 180, 95, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.special-btn.secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #f3eee5;
  border: 1px solid rgba(216, 180, 95, 0.45);
  box-shadow: inset 0 0 18px rgba(216, 180, 95, 0.035);
}

.special-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.special-btn.primary:hover {
  box-shadow:
    0 18px 44px rgba(216, 180, 95, 0.36),
    0 0 24px rgba(216, 180, 95, 0.18);
}

.special-btn.secondary:hover {
  color: #d8b45f;
  border-color: rgba(216, 180, 95, 0.76);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(216, 180, 95, 0.12);
}

@keyframes specialParticles {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(24px, -36px, 0);
  }
}

@media (max-width: 800px) {
  .special-feature {
    margin: 58px auto;
    padding: 50px 24px;
    text-align: center;
  }

  .special-content {
    margin: auto;
  }

  .special-title {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .special-text {
    font-size: 1.04rem;
    line-height: 1.7;
  }

  .special-actions {
    justify-content: center;
  }

  .special-btn {
    width: min(100%, 280px);
    min-width: 0;
  }

}

.special-gabriel {
  position: absolute;
  right: 90px;
  bottom: 0;
  width: 320px;
  z-index: 2;
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.special-gabriel::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(circle, rgba(170, 0, 0, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.special-gabriel img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    brightness(0.95)
    contrast(1.08)
    drop-shadow(0 0 25px rgba(180, 0, 0, 0.45))
    drop-shadow(0 0 60px rgba(120, 0, 0, 0.25));
}

.special-mares {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  align-items: center !important;
  gap: 48px !important;
  min-height: 460px !important;
  max-height: 500px !important;
  padding: 42px 64px !important;
  overflow: hidden !important;
}

.special-mares .special-content {
  max-width: 620px !important;
}

.special-mares .special-title {
  font-size: clamp(2.1rem, 3vw, 3.4rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
}

.special-mares .special-text {
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
  margin: 0 0 24px !important;
  max-width: 590px !important;
}

.special-mares .special-actions {
  display: flex !important;
  gap: 20px !important;
  margin-top: 22px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.special-mares .special-btn {
  min-width: 210px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: 0.9rem !important;
}

.special-mares .special-visual {
  width: 340px !important;
  height: 430px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

.special-mares .special-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border: 1px solid rgba(216, 180, 95, 0.65) !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.70);
}

.special-ceus {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  align-items: center !important;
  gap: 48px !important;
  min-height: 460px !important;
  max-height: 500px !important;
  padding: 42px 64px !important;
  overflow: hidden !important;
  position: relative !important;
}

.special-ceus .special-content {
  max-width: 620px !important;
}

.special-ceus .special-title {
  font-size: clamp(2.1rem, 3vw, 3.4rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
}

.special-ceus .special-text {
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
  margin: 0 0 24px !important;
  max-width: 590px !important;
}

.special-ceus .special-actions {
  display: flex !important;
  gap: 20px !important;
  margin-top: 22px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.special-ceus .special-btn {
  min-width: 210px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: 0.9rem !important;
}

.special-ceus .special-visual {
  width: 340px !important;
  height: 430px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

.special-ceus .special-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border: 1px solid rgba(216, 180, 95, 0.65) !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.70) !important;
}

.special-terras {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  align-items: center !important;
  gap: 48px !important;
  min-height: 460px !important;
  max-height: 500px !important;
  padding: 42px 64px !important;
  overflow: hidden !important;
  position: relative !important;
}

.special-terras .special-content {
  max-width: 620px !important;
}

.special-terras .special-title {
  font-size: clamp(2.1rem, 3vw, 3.4rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
}

.special-terras .special-text {
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
  margin: 0 0 24px !important;
  max-width: 590px !important;
}

.special-terras .special-actions {
  display: flex !important;
  gap: 20px !important;
  margin-top: 22px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.special-terras .special-btn {
  min-width: 210px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: 0.9rem !important;
}

.special-terras .special-visual {
  width: 340px !important;
  height: 430px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

.special-terras .special-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border: 1px solid rgba(216, 180, 95, 0.65) !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.70) !important;
}

.special-terras {
  min-height: 520px !important;
  max-height: 560px !important;
  padding-bottom: 82px !important;
}

.special-terras .special-content {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.special-terras .special-actions {
  flex-wrap: nowrap !important;
}

.special-luz {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  align-items: center !important;
  gap: 48px !important;
  min-height: 460px !important;
  max-height: 500px !important;
  padding: 42px 64px !important;
  overflow: hidden !important;
  position: relative !important;
}

.special-luz .special-content {
  max-width: 620px !important;
}

.special-luz .special-title {
  font-size: clamp(2.1rem, 3vw, 3.4rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 18px !important;
}

.special-luz .special-text {
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
  margin: 0 0 24px !important;
  max-width: 590px !important;
}

.special-luz .special-actions {
  display: flex !important;
  gap: 20px !important;
  margin-top: 22px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.special-luz .special-btn {
  min-width: 210px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: 0.9rem !important;
}

.special-luz .special-visual {
  width: 340px !important;
  height: 430px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

.special-luz .special-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border: 1px solid rgba(216, 180, 95, 0.65) !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.70) !important;
}

.special-hospital {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  gap: 48px !important;
  align-items: center !important;
  min-height: 460px !important;
  max-height: 500px !important;
  padding: 42px 64px !important;
  overflow: hidden !important;
  position: relative !important;
}

.special-hospital .special-content {
  max-width: 620px !important;
  position: relative !important;
  z-index: 2 !important;
}

.special-hospital .special-title {
  font-family: "Marcellus", serif !important;
  font-size: clamp(2.8rem, 4.4vw, 4.8rem) !important;
  line-height: 0.95 !important;
  margin: 0 0 18px !important;
  color: #f3eee5 !important;
}

.special-hospital .special-text {
  font-size: 1.18rem !important;
  line-height: 1.55 !important;
  color: #f0dfc2 !important;
  margin: 0 0 28px !important;
  max-width: 610px !important;
}

.special-hospital .special-visual {
  width: 340px !important;
  height: 430px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.special-hospital .special-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  border: 1px solid rgba(216, 180, 95, 0.65) !important;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.70),
    0 0 34px rgba(120, 0, 0, 0.25) !important;
}

@media (max-width: 900px) {
  .special-gabriel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 220px;
    margin: 40px auto 0;
    opacity: 0.85;
  }
}

.library-slide-luz-apagar .featured-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.library-slide-luz-apagar .luz-apagar-title {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
  margin: 18px auto 20px;
  padding: 0 10px;
  box-sizing: border-box;
  text-align: center !important;
  font-size: 28px !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  display: block;
}

@media (max-width: 900px) {
  .library-slide-luz-apagar .luz-apagar-title {
    font-size: 24px !important;
  }
}

@media (max-width: 600px) {
  .library-slide-luz-apagar .luz-apagar-title {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }
}

.special-sabores {
  display: grid !important;
  grid-template-columns: 1fr 340px !important;
  align-items: center !important;
  gap: 48px !important;
  min-height: 460px !important;
  max-height: 500px !important;
  padding: 42px 64px !important;
  overflow: hidden !important;
  position: relative !important;
}

.special-sabores .special-content {
  position: relative !important;
  z-index: 2 !important;
  max-width: 620px !important;
}

.special-sabores .special-title {
  font-family: "Marcellus", serif !important;
  font-size: clamp(2.6rem, 4vw, 4.4rem) !important;
  line-height: 0.95 !important;
  margin: 0 0 12px !important;
  color: #f3eee5 !important;
}

.special-sabores .special-title span {
  display: block !important;
  font-size: 0.46em !important;
  line-height: 1.05 !important;
  color: #d8b45f !important;
  margin-top: 4px !important;
}

.special-sabores .special-text {
  max-width: 590px !important;
  font-size: 1.08rem !important;
  line-height: 1.45 !important;
  color: #f0dfc2 !important;
  margin: 0 0 22px !important;
}

.special-sabores .special-actions {
  display: flex !important;
  gap: 20px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-top: 18px !important;
}

.special-sabores .special-btn {
  min-width: 210px !important;
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

.special-sabores .special-visual {
  position: relative !important;
  width: 340px !important;
  height: 450px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}

.special-sabores .special-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding-bottom: 18px !important;
  display: block !important;
  border: 1px solid rgba(216, 180, 95, 0.65) !important;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.70),
    0 0 34px rgba(170, 75, 10, 0.25) !important;
}

.special-sabores .special-book-art,
.special-sabores .featured-book-image,
.special-sabores .featured-character-image {
  position: static !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .special-sabores {
    grid-template-columns: 1fr !important;
    max-height: none !important;
    padding: 48px 24px !important;
    gap: 34px !important;
    text-align: center !important;
  }

  .special-sabores .special-content {
    max-width: 100% !important;
  }

  .special-sabores .special-visual {
    width: 280px !important;
    height: 380px !important;
    margin: 0 auto !important;
  }

  .special-sabores .special-title {
    font-size: 2.8rem !important;
  }

  .special-sabores .special-text {
    font-size: 1.08rem !important;
  }
}

/* Pagina interna - Edificio 13 */
.story-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% 50%, rgba(160, 0, 0, 0.22), transparent 28%),
    radial-gradient(circle at 18% 16%, rgba(216, 180, 95, 0.08), transparent 18rem),
    linear-gradient(135deg, #120006, #050506 70%);
  color: #f3eee5;
  font-family: "Marcellus", serif;
  position: relative;
  overflow-x: hidden;
}

.story-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/img/edificio-13.jpg") center right / contain no-repeat;
  opacity: 0.1;
  filter: brightness(0.55) blur(1px);
  z-index: 0;
  pointer-events: none;
}

.story-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent, rgba(0, 0, 0, 0.82) 72%);
  z-index: 1;
  pointer-events: none;
}

.story-page .site-header,
.story-page .purchase-modal,
.story-page .back-to-top,
.story-page .particle-canvas {
  z-index: 60;
}

.story-page .purchase-modal {
  z-index: 90;
}

.story-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}

.story-panel {
  position: relative;
  padding: 70px 76px;
  border: 1px solid rgba(216, 180, 95, 0.55);
  background: rgba(5, 5, 7, 0.72);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.65),
    inset 0 0 80px rgba(120, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.story-panel::before,
.story-panel::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: #d8b45f;
  opacity: 0.75;
  pointer-events: none;
}

.story-panel::before {
  top: 18px;
  left: 18px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.story-panel::after {
  right: 18px;
  bottom: 18px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.story-kicker {
  margin: 0 0 18px;
  color: #d8b45f;
  font-family: "Marcellus", serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(216, 180, 95, 0.18),
    0 0 25px rgba(216, 180, 95, 0.08);
}

.story-title {
  margin: 0 0 18px;
  color: #f3eee5;
  font-family: "Marcellus", serif;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.05;
  max-width: 850px;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.12),
    0 0 30px rgba(216, 180, 95, 0.1);
}

.story-subtitle {
  margin: 0 0 34px;
  color: #c83232;
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  text-shadow: 0 0 14px rgba(200, 50, 50, 0.14);
}

.story-text {
  color: #f0dfc2;
  font-family: "Marcellus", serif;
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.75;
}

.story-text p {
  margin: 0 0 26px;
}

.story-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.story-btn {
  min-width: 210px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-family: "Marcellus", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(5% 0, 95% 0, 100% 18%, 100% 82%, 95% 100%, 5% 100%, 0 82%, 0 18%);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.story-btn.primary {
  color: #1a1008;
  background: linear-gradient(135deg, #f5dc8d, #b98934);
  box-shadow:
    0 14px 35px rgba(216, 180, 95, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.story-btn.secondary {
  color: #f3eee5;
  border: 1px solid rgba(216, 180, 95, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.story-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.story-btn.primary:hover {
  box-shadow:
    0 18px 44px rgba(216, 180, 95, 0.36),
    0 0 24px rgba(216, 180, 95, 0.18);
}

.story-btn.secondary:hover {
  color: #d8b45f;
  border-color: rgba(216, 180, 95, 0.76);
  box-shadow: 0 0 20px rgba(216, 180, 95, 0.12);
}

.site-visitor-counter {
  margin: 60px auto 30px;
  text-align: center;
}

.visitor-label {
  display: block;
  margin-bottom: 14px;
  color: #d4af37;
  font-family: "Marcellus", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visitor-digits {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.visitor-digits span {
  width: 54px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  background: linear-gradient(#f5f5f5, #9b9b9b 48%, #e5e5e5 52%, #777);
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.65);
  position: relative;
}

.visitor-digits span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.45);
}

.background-music-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9998;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 104px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: 12px;
  color: #f3e2b5;
  background:
    linear-gradient(135deg, rgba(80, 12, 18, 0.88), rgba(16, 8, 10, 0.82)),
    rgba(212, 175, 55, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  font-family: "Marcellus", serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0.88;
}

.music-toggle:hover {
  opacity: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.52), 0 0 18px rgba(212, 175, 55, 0.12);
}

.trilogia-terror-slide .trilogia-terror-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 40px;
}

.trilogia-terror-slide .trilogia-terror-content .featured-label {
  color: #d33;
  font-family: "Cinzel", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.trilogia-terror-slide .trilogia-terror-content .featured-genre {
  color: #d8b45f;
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
}

.trilogia-terror-slide .trilogia-terror-kicker {
  color: #d8b45f;
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-align: center;
}

.trilogia-terror-slide .trilogia-terror-content .featured-title {
  max-width: 100%;
  margin: 0 0 30px;
  font-family: "Marcellus", serif;
  font-size: clamp(44px, 4vw, 56px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
}

.trilogia-terror-slide .trilogia-terror-content .featured-tagline {
  margin-top: 6px;
  margin-bottom: 6px;
  color: #d33 !important;
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.35;
}

.trilogia-terror-slide .trilogia-terror-content .featured-cta {
  display: inline-flex !important;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 5;
}

.library-slide--abismos .trilogia-terror-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.library-slide--abismos .trilogia-terror-content .featured-genre {
  font-size: clamp(13px, 1.15vw, 18px);
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.library-slide--abismos .trilogia-terror-content .featured-label,
.library-slide--abismos .trilogia-terror-content .featured-genre {
  max-width: 100%;
  white-space: normal;
}

.library-slide--abismos .trilogia-terror-content .library-feature-title {
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.08;
  letter-spacing: 0.5px;
  max-width: 100%;
  width: 100%;
  margin: 14px auto 16px;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

.library-slide--abismos .trilogia-terror-content .featured-tagline {
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.35;
  margin: 14px auto 18px;
}

.library-slide-abismos-audio .feature-copy {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 20px 18px;
  box-sizing: border-box;
  overflow: visible;
}

.library-slide-abismos-audio .abismos-audio-title {
  font-size: clamp(22px, 1.85vw, 28px) !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  max-width: 100% !important;
  width: 100%;
  margin: 10px 0 12px !important;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.library-slide-abismos-audio .abismos-audio-title span {
  display: block;
  white-space: nowrap;
}

.library-slide-complete-audio .complete-audio-title {
  font-size: clamp(18px, 1.45vw, 22px) !important;
  line-height: 1.05 !important;
  margin: 6px 0 8px !important;
}

.library-slide-complete-audio .feature-copy {
  padding: 14px 18px;
}

.library-slide-complete-audio .decor-line {
  margin: 3px auto;
}

.library-slide-complete-audio .feature-description {
  line-height: 1.2 !important;
  margin: 6px 0 8px !important;
}

.library-slide-abismos-audio .feature-kicker {
  font-size: 13px !important;
  line-height: 1.2;
}

.library-slide-abismos-audio .feature-category {
  font-size: 15px !important;
  line-height: 1.2;
}

.library-slide-abismos-audio .feature-description {
  font-size: 15px !important;
  line-height: 1.3 !important;
  margin: 10px 0 14px !important;
}

.library-slide-abismos-audio .feature-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  flex-shrink: 0;
}

.library-slide-abismos-audio .feature-button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: 90%;
  max-width: 260px;
  min-height: 44px;
  margin: 0 auto;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .library-slide--abismos .trilogia-terror-content .library-feature-title {
    font-size: clamp(19px, 4vw, 28px);
    line-height: 1.08;
  }
}

@media (max-width: 600px) {
  .library-slide--abismos .trilogia-terror-content .library-feature-title {
    font-size: clamp(17px, 5vw, 24px);
    line-height: 1.08;
  }
}

@media (max-width: 600px) {
  .library-slide-abismos-audio .abismos-audio-title {
    font-size: 22px !important;
  }

  .library-slide-abismos-audio .feature-description {
    font-size: 13px !important;
  }

  .library-slide-abismos-audio .feature-copy {
    padding: 14px 12px;
  }
}

@media (max-width: 800px) {
  .story-content {
    padding: 100px 18px 60px;
  }

  .story-panel {
    padding: 46px 26px;
  }

  .story-title {
    font-size: 3rem;
  }

  .story-subtitle {
    font-size: 1.12rem;
  }

  .story-text {
    font-size: 1.08rem;
    line-height: 1.65;
  }

  .story-actions {
    justify-content: center;
  }

  .story-btn {
    width: min(100%, 280px);
    min-width: 0;
  }

  .story-page::before {
    background-position: center bottom;
    opacity: 0.07;
  }
}

/* Biblioteca: o slide ativo dimensiona o carrossel, sem limitar o conteúdo. */
.hero-carousel {
  min-width: 0;
  container-type: inline-size;
}

.hero-carousel .carousel-stage {
  height: auto;
  min-height: 0;
  max-height: none;
}

.hero-carousel .book-slide.featured-slide {
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 370px;
  max-height: none;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  overflow: visible;
  visibility: hidden;
}

.hero-carousel .book-slide.featured-slide.is-active {
  position: relative;
  inset: auto;
  visibility: visible;
}

.hero-carousel .book-slide.featured-slide .featured-cover {
  height: auto;
  min-height: 260px;
  aspect-ratio: auto;
  overflow: visible;
}

.hero-carousel .book-slide.featured-slide .featured-cover img {
  max-width: min(180px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-carousel .book-slide.featured-slide .featured-info {
  min-width: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
}

.hero-carousel .featured-info > * {
  flex-shrink: 0;
  max-width: 100%;
}

.hero-carousel .book-slide.featured-slide .featured-title,
.hero-carousel .abismos-audio-title span {
  white-space: normal;
}

.hero-carousel .book-slide.featured-slide .featured-cta {
  min-width: 0;
  max-width: 100%;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* A largura disponível do card também pode ser pequena no desktop. */
@container (max-width: 600px) {
  .hero-carousel .book-slide.featured-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-carousel .book-slide.featured-slide .featured-info {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.hero-carousel .carousel-dots {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-carousel .circle-btn {
  flex-shrink: 0;
}

/* Responsividade: substituições isoladas; o desktop acima de 980px é preservado. */
@media (max-width: 980px) {
  body {
    overflow-x: visible;
  }

  body.story-page {
    overflow-x: visible;
  }

  main::before,
  main::after,
  .hero .atmosphere,
  .hero .mist {
    left: 0;
    right: 0;
    max-width: 100%;
    transform: none !important;
    translate: none;
    animation: none;
  }

  .special-feature {
    padding: 44px clamp(18px, 4vw, 32px);
  }

  .special-feature .special-content::before {
    inset: 0;
    animation: none;
  }

  .books-grid .book-card::after {
    animation: none;
    transform: none;
  }

  .books-section::before {
    inset: 22px 0;
  }

  .special-feature:is(.special-mares, .special-ceus, .special-terras, .special-luz, .special-hospital, .special-sabores) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding: 44px clamp(18px, 4vw, 32px) !important;
  }

  .special-feature .special-content {
    width: 100%;
    min-width: 0;
    max-width: 620px !important;
    height: auto !important;
    margin-inline: auto;
    overflow-wrap: anywhere;
  }

  .special-feature .special-title {
    font-size: clamp(1.8rem, 5.5vw, 3.4rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }

  .special-feature .special-text {
    max-width: 100% !important;
    font-size: 1.08rem !important;
    line-height: 1.6 !important;
  }

  .special-feature .special-actions {
    flex-direction: column;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100%;
    min-width: 0;
  }

  .special-feature .special-btn {
    width: 100%;
    max-width: 320px;
    min-width: 0 !important;
    height: auto;
    padding: 14px 22px !important;
    line-height: 1.4 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .special-feature .special-visual {
    width: min(100%, 340px) !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto !important;
  }

  .special-feature .special-visual img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain !important;
  }

  .special-feature .special-gabriel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(220px, 100%);
    margin: 32px auto 0;
  }

  .author-section.about-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .author-section .about-photo {
    width: min(280px, 100%) !important;
    max-width: 100%;
  }

  .author-section .author-copy {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .books-grid .book-card {
    height: auto;
    min-width: 0;
  }

  .books-grid .book-content {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .books-grid .book-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .books-grid .book-actions a {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-carousel .book-slide.featured-slide .featured-title {
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .hero-carousel .book-slide.featured-slide .featured-cover {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-carousel .book-slide.featured-slide .featured-cover::before {
    max-width: 100%;
  }

  .story-modal,
  .purchase-modal {
    padding: 12px;
  }

  .story-modal .story-modal-box,
  .purchase-modal .purchase-dialog {
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 64px clamp(16px, 4vw, 32px) 28px;
    overflow-wrap: anywhere;
  }

  #trilogia-terror-detalhes .story-modal-box {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .purchase-modal .purchase-dialog {
    max-width: 560px;
  }

  body .purchase-modal {
    z-index: 10000;
  }

  .story-modal .story-modal-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .story-modal .story-modal-actions .special-btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 12px 20px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .purchase-modal .purchase-option {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .purchase-modal .option-copy {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .particle-canvas {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 640px) {
  .books-grid .book-cover,
  .books-grid .book-cover-placeholder {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .books-grid .book-cover img {
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
    object-fit: contain;
  }

  .hero-carousel {
    padding: 12px;
  }

  .hero-carousel .book-slide.featured-slide {
    padding: 18px 8px;
  }

  .hero-carousel .carousel-topline {
    flex-wrap: wrap;
    gap: 8px;
    overflow-wrap: anywhere;
  }

  .story-modal .story-modal-box h2,
  #hospital-historia .story-modal-kicker,
  #luz-historia .story-modal-kicker {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.15;
  }

  .story-content .story-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
    overflow-wrap: anywhere;
  }

  .story-content .story-text,
  .story-content .story-kicker,
  .story-content .story-btn {
    overflow-wrap: anywhere;
  }
}
