/* ==========================================================================
   JOHN S. MEINLEM - UNIVERSO LITERÁRIO & DESIGN SYSTEM CÓSMICO
   Design Aesthetics: High-End Ethereal Mysticism, Deep Space & Gold Leaf Luxury
   ========================================================================== */

:root {
  /* Cosmic Color Palette */
  --bg-deep-space: #03060f;
  --bg-nebula-dark: #070d1e;
  --bg-panel-glass: rgba(10, 17, 34, 0.72);
  --bg-panel-solid: #0c1427;
  
  /* Celestial Golds */
  --gold-300: #fef08a;
  --gold-400: #fce0ad;
  --gold-500: #dfac57;
  --gold-600: #c5933c;
  --gold-700: #966b24;
  --gold-900: #4a340f;
  --gold-gradient: linear-gradient(135deg, #FFF0CA 0%, #DFAC57 50%, #8E6523 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFFFFF 0%, #F5C978 50%, #B88534 100%);

  /* Aura Colors for Themes */
  --aura-cyan: rgba(56, 189, 248, 0.45);
  --aura-gold: rgba(245, 158, 11, 0.45);
  --aura-teal: rgba(45, 212, 191, 0.45);
  --aura-blue: rgba(96, 165, 250, 0.45);
  --aura-amber: rgba(234, 179, 8, 0.45);
  --aura-emerald: rgba(52, 211, 153, 0.45);
  --aura-purple: rgba(192, 132, 252, 0.45);
  --aura-rose: rgba(244, 114, 182, 0.45);

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-display: 'Cinzel Decorative', cursive;
  --font-editorial: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-handwriting: 'Great Vibes', cursive;

  /* Borders & Shadows */
  --border-gold-subtle: rgba(223, 172, 87, 0.22);
  --border-gold-glow: rgba(223, 172, 87, 0.55);
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(223, 172, 87, 0.08);
  --shadow-cosmic-glow: 0 0 25px rgba(223, 172, 87, 0.35);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-space);
}

body.cosmic-theme {
  font-family: var(--font-sans);
  color: #e2e8f0;
  background-color: var(--bg-deep-space);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Interactive Cosmic Canvas Background */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.35;
}

.glow-top-left {
  top: -10vw;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent 70%);
}

.glow-center {
  top: 25%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(223, 172, 87, 0.15), rgba(59, 130, 246, 0.15), transparent 75%);
}

.glow-bottom-right {
  bottom: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
}

/* Glassmorphism Panel Class */
.glass-panel {
  background: var(--bg-panel-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-glass);
  position: relative;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-gold-glow);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(180deg, rgba(3, 6, 15, 0.95) 0%, rgba(3, 6, 15, 0.75) 70%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 172, 87, 0.12);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  padding: 0.85rem 2.5rem;
  background: rgba(4, 8, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.header-container {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.logo-feather-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-feather {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(223, 172, 87, 0.6));
  animation: feather-float 4s ease-in-out infinite alternate;
}

@keyframes feather-float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-3px) rotate(4deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.author-tagline {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #94a3b8;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

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

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--gold-500);
}

.nav-indicator::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 0 10px var(--gold-400);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(223, 172, 87, 0.15);
  border-color: var(--gold-500);
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(223, 172, 87, 0.35);
}

/* Audio waves animation */
.audio-trigger {
  position: relative;
}

.audio-sound-waves {
  display: none;
  position: absolute;
  bottom: 6px;
  right: 6px;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
}

.audio-sound-waves.playing {
  display: flex;
}

.audio-sound-waves i {
  width: 2px;
  background: var(--gold-400);
  border-radius: 1px;
  animation: sound-bounce 1s ease-in-out infinite alternate;
}

.audio-sound-waves i:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.audio-sound-waves i:nth-child(2) { height: 9px; animation-delay: 0.3s; }
.audio-sound-waves i:nth-child(3) { height: 6px; animation-delay: 0.2s; }

@keyframes sound-bounce {
  0% { height: 2px; }
  100% { height: 10px; }
}

.btn-primary-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--gold-600);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary-outline:hover {
  background: var(--gold-gradient);
  color: #0c1427;
  border-color: transparent;
  box-shadow: var(--shadow-cosmic-glow);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-400);
  transition: var(--transition-fast);
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   STAGE / MAIN GRID HERO LAYOUT (DESKTOP)
   ========================================================================== */

.hero-stage {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  min-height: 600px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.mobile-books-ribbon {
  display: none !important;
}

/* ==========================================================================
   LEFT COLUMN - PRESENTATION & PHILOSOPHY
   ========================================================================== */

.left-hero-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #f8fafc;
}

.highlight-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.golden-filigree-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 1.15rem;
}

.filigree-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(223, 172, 87, 0.6) 0%, transparent 100%);
}

.filigree-line:first-child {
  background: linear-gradient(90deg, transparent 0%, rgba(223, 172, 87, 0.6) 100%);
}

.filigree-gem {
  color: var(--gold-400);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 5px var(--gold-500));
}

.hero-description {
  font-family: var(--font-editorial);
  font-size: 1.05rem;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.hero-subquestion {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

.hero-subquestion strong {
  color: var(--gold-400);
  font-weight: 600;
}

.author-signature-block {
  margin: 1rem 0;
}

.author-signature {
  font-family: var(--font-handwriting);
  font-size: 2.3rem;
  color: var(--gold-400);
  display: inline-block;
  transform: rotate(-3deg);
  filter: drop-shadow(0 0 8px rgba(223, 172, 87, 0.5));
}

.btn-mystic-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(12, 20, 39, 0.85);
  border: 1.5px solid var(--gold-500);
  border-radius: 50px;
  padding: 0.65rem 1.4rem;
  color: #FFF;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.btn-play-copy {
  display: flex;
  flex-direction: column;
}

.btn-play-title {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.btn-play-sub {
  font-size: 0.64rem;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.play-icon-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c1427;
  padding-left: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(223, 172, 87, 0.5);
}

.btn-mystic-play:hover {
  background: rgba(223, 172, 87, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(223, 172, 87, 0.4);
}

/* Literature Card */
.literature-card {
  padding: 1.35rem;
}

.card-mini-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.card-mini-text {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.pillars-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.pillar-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.pillar-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFF;
  transition: var(--transition-fast);
}

.pillar-icon-wrap.gold-glow-sm { color: var(--gold-400); border-color: rgba(223, 172, 87, 0.4); }
.pillar-icon-wrap.cyan-glow-sm { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.pillar-icon-wrap.purple-glow-sm { color: #c084fc; border-color: rgba(192, 132, 252, 0.4); }
.pillar-icon-wrap.magenta-glow-sm { color: #f472b6; border-color: rgba(244, 114, 182, 0.4); }

.pillar-badge:hover .pillar-icon-wrap {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 0 15px currentColor;
}

.pillar-label {
  font-size: 0.65rem;
  color: #cbd5e1;
}

/* ==========================================================================
   CENTER COLUMN - CELESTIAL MANDALA & ORBITAL BOOKS (ORBE MÍSTICO)
   ========================================================================== */

.center-mandala-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 580px;
}

.mandala-system {
  flex: 0 0 auto;
  position: relative;
  width: 520px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Concentric Cosmic Rings */
.cosmic-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  width: 440px;
  height: 440px;
  border: 1px dashed rgba(223, 172, 87, 0.3);
  animation: ring-rotate-cw 80s linear infinite;
}

.ring-middle {
  width: 340px;
  height: 340px;
  border: 2px solid transparent;
  border-top-color: rgba(192, 132, 252, 0.45);
  border-bottom-color: rgba(223, 172, 87, 0.55);
  box-shadow: inset 0 0 30px rgba(223, 172, 87, 0.15);
  animation: ring-rotate-ccw 50s linear infinite;
}

.ring-inner {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.25);
  animation: ring-rotate-cw 35s linear infinite;
}

.ring-starburst {
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(223, 172, 87, 0.1) 0%, rgba(147, 51, 234, 0.06) 50%, transparent 70%);
  animation: starburst-pulse 6s ease-in-out infinite alternate;
}

@keyframes ring-rotate-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ring-rotate-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes starburst-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Light Source from Bottom Open Book */
.portal-light-source {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.book-rays {
  width: 140px;
  height: 180px;
  background: linear-gradient(0deg, rgba(255, 233, 179, 0.45) 0%, rgba(223, 172, 87, 0.1) 60%, transparent 100%);
  clip-path: polygon(30% 100%, 70% 100%, 100% 0%, 0% 0%);
  filter: blur(10px);
  animation: rays-flicker 4s ease-in-out infinite alternate;
}

@keyframes rays-flicker {
  0% { opacity: 0.6; transform: scaleY(0.9); }
  100% { opacity: 1; transform: scaleY(1.1); }
}

.golden-book-base {
  width: 90px;
  margin-top: -15px;
  filter: drop-shadow(0 0 12px var(--gold-400));
}

/* Top Editorial Quote (Acima do Círculo) */
.mandala-top-quote {
  text-align: center;
  width: min(100%, 34rem);
  margin-bottom: 2.5rem;
  padding-inline: 1rem;
  position: relative;
  z-index: 5;
}

.top-quote-text {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-style: italic;
  color: #f8fafc;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(223, 172, 87, 0.2);
}

/* Central Portal Core (Ao Centro do Círculo) */
.central-portal-core {
  position: relative;
  z-index: 3;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 20, 42, 0.95) 0%, rgba(4, 8, 18, 0.98) 100%);
  border: 1.5px solid var(--gold-500);
  box-shadow: inset 0 0 25px rgba(223, 172, 87, 0.35), 0 0 40px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem;
  cursor: default;
}

.portal-action-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.portal-sparkle {
  color: var(--gold-400);
  font-size: 0.9rem;
  animation: pulse-gold-subtle 2s infinite ease-in-out;
}

.portal-main-prompt {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #FFF;
  text-shadow: 0 0 12px rgba(223, 172, 87, 0.6);
  line-height: 1.25;
}

/* Bottom Editorial Quote (Abaixo do Círculo) */
.mandala-bottom-quote {
  text-align: center;
  width: min(100%, 34rem);
  margin-top: 2.5rem;
  padding-inline: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
}

.bottom-quote-text {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-300);
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.bottom-arrow-pulse {
  font-size: 0.75rem;
  color: var(--gold-400);
  animation: bounce-vertical 1.5s infinite;
}

/* 8 Orbiting Planetary Books Container */
.orbit-books-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.book-sphere-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  margin-top: -41px;
  margin-left: -41px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  z-index: 5;
}

/* Polar positioning of 8 nodes around radius ~215px */
.book-sphere-node[data-angle="270"] { transform: translate(0, -215px); }
.book-sphere-node[data-angle="315"] { transform: translate(152px, -152px); }
.book-sphere-node[data-angle="0"]   { transform: translate(215px, 0); }
.book-sphere-node[data-angle="45"]  { transform: translate(152px, 152px); }
.book-sphere-node[data-angle="90"]  { transform: translate(0, 215px); }
.book-sphere-node[data-angle="135"] { transform: translate(-152px, 152px); }
.book-sphere-node[data-angle="180"] { transform: translate(-215px, 0); }
.book-sphere-node[data-angle="225"] { transform: translate(-152px, -152px); }

/* Sphere Glowing Aura */
.sphere-aura {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.55;
  transition: var(--transition-smooth);
}

.aura-cyan    { background: var(--aura-cyan); }
.aura-gold    { background: var(--aura-gold); }
.aura-teal    { background: var(--aura-teal); }
.aura-blue    { background: var(--aura-blue); }
.aura-amber   { background: var(--aura-amber); }
.aura-emerald { background: var(--aura-emerald); }
.aura-purple  { background: var(--aura-purple); }
.aura-rose    { background: var(--aura-rose); }

.sphere-orb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(223, 172, 87, 0.45);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(223, 172, 87, 0.2);
  background: #060a14;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.sphere-image-frame {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.orb-glass-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Floating High-Contrast Glass Capsule Badge */
.orb-floating-badge {
  position: absolute;
  bottom: -36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 24, 0.94);
  border: 1px solid rgba(223, 172, 87, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 10px rgba(223, 172, 87, 0.25);
  border-radius: 14px;
  box-sizing: border-box;
  width: max-content;
  min-width: 104px;
  max-width: 152px;
  min-height: 34px;
  padding: 4px 11px;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 10;
}

.badge-book-title {
  font-family: var(--font-serif);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #FFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.badge-book-cat {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 100%;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Top node badge placement adjustment */
.book-sphere-node[data-angle="270"] .orb-floating-badge {
  top: -36px;
  bottom: auto;
}

/* Hover and Active State of Orbs */
.book-sphere-node:hover {
  z-index: 25;
}

.book-sphere-node:hover .sphere-orb,
.book-sphere-node.active .sphere-orb {
  transform: scale(1.18);
  border-color: var(--gold-400);
  box-shadow: 0 0 35px var(--node-accent), inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.book-sphere-node:hover .sphere-aura,
.book-sphere-node.active .sphere-aura {
  opacity: 1;
  transform: scale(1.4);
}

.book-sphere-node:hover .orb-floating-badge,
.book-sphere-node.active .orb-floating-badge {
  transform: scale(1.08);
  border-color: var(--gold-400);
  background: rgba(10, 16, 36, 0.98);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.95), 0 0 15px rgba(223, 172, 87, 0.5);
}

.book-sphere-node:hover .badge-book-title,
.book-sphere-node.active .badge-book-title {
  color: var(--gold-300);
  text-shadow: 0 0 8px rgba(223, 172, 87, 0.6);
}

/* Scroll Hint */
.scroll-explore-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 1.25rem;
  opacity: 0.85;
}

.hint-arrow {
  font-size: 0.65rem;
  color: var(--gold-400);
  animation: bounce-vertical 1.5s infinite;
}

@keyframes bounce-vertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes mouse-scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(7px); opacity: 0; }
}

/* ==========================================================================
   RIGHT COLUMN - DYNAMIC 3D BOOK SHOWCASE CARD (DESKTOP)
   ========================================================================== */

.right-showcase-column {
  z-index: 2;
  min-width: 0;
  scroll-margin-top: 6rem;
}

.right-showcase-column[hidden] {
  display: none !important;
}

.book-detail-card {
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.card-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 20;
  touch-action: manipulation;
}

.card-close-btn:hover {
  color: #FFF;
  background: rgba(223, 172, 87, 0.2);
  border-color: var(--gold-500);
}

/* 3D Floating Book Stage */
.card-book-stage {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0 1rem;
}

.book-3d-wrapper {
  position: relative;
  width: 140px;
  height: 200px;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(8deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.book-3d-wrapper:hover {
  transform: rotateY(-8deg) rotateX(4deg) translateY(-8px);
}

.book-front-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #090e1d 100%);
  border-radius: 4px 8px 8px 4px;
  border: 1px solid rgba(223, 172, 87, 0.4);
  box-shadow: 10px 15px 35px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.cover-art-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
}

.cover-glow-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.35), transparent 70%);
}

.cover-author-mini {
  font-family: var(--font-serif);
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  display: block;
}

.cover-title-text {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin-top: 0.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(90deg, #090e1d 0%, #1e293b 70%, #334155 100%);
  transform: rotateY(-90deg) translateX(-16px);
  transform-origin: left;
  border-radius: 4px 0 0 4px;
}

.book-shadow {
  position: absolute;
  bottom: -20px;
  left: 10px;
  width: 120px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
  filter: blur(6px);
}

/* Content Area in Card */
.book-title-meta {
  margin-bottom: 0.5rem;
}

.active-book-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF;
}

.active-book-category {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #38bdf8;
  display: block;
  margin-top: 0.15rem;
}

.book-quote-highlight {
  position: relative;
  padding: 0.35rem 0.5rem;
  border-left: 2px solid var(--gold-500);
  background: rgba(223, 172, 87, 0.04);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.65rem;
}

.quote-mark {
  color: var(--gold-500);
  font-family: var(--font-editorial);
  font-size: 1.1rem;
}

.quote-text {
  font-family: var(--font-editorial);
  font-size: 0.8rem;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.4;
  display: inline;
}

.book-synopsis-preview {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

/* Micro Pillars */
.book-micro-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.micro-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.micro-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 172, 87, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.micro-pillar span {
  font-size: 0.58rem;
  color: #cbd5e1;
}

/* Buttons inside Card */
.card-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-gold-fill {
  background: var(--gold-gradient);
  border: none;
  color: #0b1122;
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(223, 172, 87, 0.25);
}

.btn-gold-fill:hover {
  background: var(--gold-gradient-hover);
  box-shadow: 0 6px 20px rgba(223, 172, 87, 0.45);
  transform: translateY(-1px);
}

.btn-dark-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold-subtle);
  color: #e2e8f0;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-dark-outline:hover {
  background: rgba(223, 172, 87, 0.1);
  border-color: var(--gold-500);
  color: var(--gold-400);
}

/* Carousel Dots */
.carousel-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.dot-btn {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot-btn.active {
  width: 18px;
  border-radius: 4px;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-500);
}

/* ==========================================================================
   BOTTOM INTERACTIVE DECK (THEMES, MASTER QUOTE, QUIZ)
   ========================================================================== */

.bottom-interactive-row {
  margin-top: 1.5rem;
  padding: 0 2.5rem;
  z-index: 10;
}

.bottom-grid-container {
  display: grid;
  grid-template-columns: 340px 1fr 390px;
  gap: 1.5rem;
}

/* 1. Themes Explorer */
.explore-themes-card {
  padding: 1.25rem;
}

.sub-header-tag {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-400);
  display: block;
  margin-bottom: 0.85rem;
}

.theme-buttons-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
}

.theme-orb-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: #cbd5e1;
}

.theme-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.gold-circle   { color: var(--gold-400); border-color: rgba(223, 172, 87, 0.4); }
.cyan-circle   { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.blue-circle   { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }
.amber-circle  { color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); }
.purple-circle { color: #c084fc; border-color: rgba(192, 132, 252, 0.4); }
.orange-circle { color: #fb923c; border-color: rgba(251, 146, 60, 0.4); }

.theme-orb-btn:hover .theme-icon-circle,
.theme-orb-btn.active .theme-icon-circle {
  transform: scale(1.12);
  box-shadow: 0 0 16px currentColor;
  border-color: currentColor;
}

.theme-text {
  font-size: 0.62rem;
  white-space: nowrap;
}

/* 2. Author Quote Center */
.author-quote-card {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
}

.quote-box-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

/* Real Image Covers in Orbs */
.orb-img-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) contrast(1.15);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.book-sphere-node:hover .orb-img-cover,
.book-sphere-node.active .orb-img-cover {
  transform: scale(1.12);
  filter: brightness(1.05) contrast(1.2);
}

.cover-real-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* 2. Author Showcase Card with Real Photo */
.author-showcase-card {
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.author-portrait-wrapper {
  position: relative;
  flex-shrink: 0;
}

.author-photo-frame {
  width: 100px;
  height: 110px;
  border-radius: 12px;
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 0 20px rgba(223, 172, 87, 0.4);
  overflow: hidden;
  position: relative;
  background: #080d1a;
}

.author-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.author-photo-frame:hover .author-real-photo {
  transform: scale(1.08);
}

.award-glow-pill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 16, 32, 0.92);
  border-top: 1px solid var(--gold-500);
  color: var(--gold-400);
  font-size: 0.52rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-align: center;
  padding: 2px 3px;
  letter-spacing: 0.05em;
}

.author-details-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-badge-gold {
  font-family: var(--font-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-400);
}

.author-title-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.author-bio-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--gold-300);
}

.author-header-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.author-real-name-tag {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-400);
  opacity: 0.9;
  letter-spacing: normal;
}

.author-bio-text {
  font-size: 0.73rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.secondary-bio-text {
  color: #94a3b8;
  font-size: 0.69rem;
}

.author-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(223, 172, 87, 0.25);
}

.btn-author-direct-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(223, 172, 87, 0.1);
  border: 1px solid var(--gold-500);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: var(--gold-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-author-direct-mail:hover {
  background: var(--gold-500);
  color: #030712;
  box-shadow: 0 0 12px rgba(223, 172, 87, 0.4);
}

.gold-email-text {
  color: var(--gold-400);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}

.direct-contact-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  font-size: 0.7rem;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-email:hover {
  background: rgba(223, 172, 87, 0.18);
  border-color: var(--gold-500);
  color: var(--gold-400);
}

@media (max-width: 640px) {
  .author-showcase-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.85rem;
  }
  .author-photo-frame {
    width: 90px;
    height: 95px;
  }
  .author-footer-actions {
    justify-content: center;
  }
  .direct-contact-actions {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }
  .direct-contact-actions .btn-newsletter,
  .direct-contact-actions .btn-copy-email {
    width: 100%;
    justify-content: center;
  }
}

/* 3. Quiz Portal Card */
.quiz-portal-card {
  padding: 1.25rem;
}

.quiz-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-title {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 0.3rem;
}

.quiz-subtext {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.btn-quiz-trigger {
  padding: 0.45rem 0.85rem;
  font-size: 0.68rem;
}

.quiz-portal-visual {
  width: 70px;
  height: 85px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-archway {
  width: 55px;
  height: 75px;
  border-radius: 28px 28px 4px 4px;
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 0 15px rgba(223, 172, 87, 0.5), inset 0 0 15px rgba(223, 172, 87, 0.3);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 80%, rgba(223, 172, 87, 0.6), #070d1e);
}

/* ==========================================================================
   FOOTER SECTION (NEWSLETTER & SOCIAL)
   ========================================================================== */

.universe-footer {
  position: relative;
  z-index: 10;
  background: rgba(3, 6, 15, 0.95);
  border-top: 1px solid rgba(223, 172, 87, 0.15);
  padding: 1.25rem 2.5rem;
}

.footer-container {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.newsletter-sub-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.newsletter-icon {
  color: var(--gold-400);
  filter: drop-shadow(0 0 6px var(--gold-500));
}

.newsletter-copy {
  display: flex;
  flex-direction: column;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.news-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.news-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: #FFF;
  width: 220px;
  outline: none;
  transition: var(--transition-fast);
}

.news-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 12px rgba(223, 172, 87, 0.3);
}

.btn-newsletter {
  padding: 0.55rem 1.25rem;
  font-size: 0.72rem;
}

.footer-social-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-label {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #94a3b8;
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: rgba(223, 172, 87, 0.2);
  border-color: var(--gold-500);
  color: var(--gold-400);
  transform: translateY(-2px);
}

/* ==========================================================================
   MOBILE-FIRST SMARTPHONE BOTTOM SHEET (GAVETA FLUTUANTE)
   ========================================================================== */

.mobile-bottom-sheet-backdrop {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9998;
}

.mobile-bottom-sheet-backdrop.active {
  display: block !important;
}

.mobile-bottom-sheet {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: #080e1e;
  border-top: 1.5px solid var(--gold-500);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(223, 172, 87, 0.2);
  z-index: 9999;
  flex-direction: column;
}

.mobile-bottom-sheet.open {
  display: flex !important;
}

.sheet-drag-handle-bar {
  padding: 0.75rem 0 0.25rem;
  display: flex;
  justify-content: center;
  cursor: grab;
}

.sheet-drag-indicator {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(223, 172, 87, 0.4);
}

.sheet-scroll-container {
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
  position: relative;
}

.sheet-close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  cursor: pointer;
}

.sheet-book-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.sheet-book-cover-wrap {
  width: 90px;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold-500);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.sheet-mini-3d-book {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.sheet-book-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sheet-category-badge {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-400);
}

.sheet-book-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
}

.sheet-author-tag {
  font-size: 0.78rem;
  color: #94a3b8;
}

.sheet-quote-box {
  background: rgba(223, 172, 87, 0.06);
  border-left: 2px solid var(--gold-500);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.25rem;
}

.sheet-quote-text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.92rem;
  color: #f1f5f9;
  line-height: 1.4;
}

.sheet-section-title {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.sheet-synopsis-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.sheet-pillars-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.sheet-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.w-100 {
  width: 100%;
}

/* ==========================================================================
   COSMIC MODALS (SYNOPSIS, READER, QUIZ, SEARCH)
   ========================================================================== */

.cosmic-modal-overlay {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 5, 13, 0.88);
  backdrop-filter: blur(14px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cosmic-modal-overlay.active {
  display: flex !important;
}

.cosmic-modal-window {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.cosmic-modal-overlay.active .cosmic-modal-window {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #FFF;
  border-color: var(--gold-500);
}

.modal-badge-tag {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-400);
}

.modal-title-gold {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFF;
  margin-top: 0.25rem;
}

.modal-body-scrollable {
  overflow-y: auto;
  margin: 1.5rem 0;
  padding-right: 0.5rem;
}

.synopsis-full-text p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sociological-notes-box {
  background: rgba(223, 172, 87, 0.05);
  border-left: 3px solid var(--gold-500);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin-top: 1.25rem;
}

.sociological-notes-box strong {
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.35rem;
}

.sociological-notes-box p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Reader Modal */
.book-reader-modal {
  max-width: 820px;
}

.reader-pages-container {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 1.5rem;
  background: #fdfbf7;
  color: #1e293b;
  border-radius: 8px;
  padding: 2.2rem;
  margin: 1rem 0;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
  min-height: 380px;
}

.reader-book-header-name {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: #64748b;
  display: block;
  margin-bottom: 1.25rem;
  text-align: center;
}

.reader-passage-text {
  font-family: var(--font-editorial);
  font-size: 0.95rem;
  line-height: 1.75;
  color: #1e293b;
}

.reader-page-divider {
  background: linear-gradient(180deg, transparent 0%, #cbd5e1 50%, transparent 100%);
}

.reader-page-number {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1.5rem;
}

/* Quiz Modal */
.quiz-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.quiz-step-dot.active {
  background: var(--gold-gradient);
  color: #090e1d;
  border-color: transparent;
  box-shadow: 0 0 12px var(--gold-500);
}

.quiz-step-line {
  width: 35px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.quiz-step-count {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-400);
}

.quiz-question-headline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #FFF;
  margin: 0.4rem 0 1.25rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: left;
  color: #e2e8f0;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quiz-option-btn:hover {
  background: rgba(223, 172, 87, 0.15);
  border-color: var(--gold-500);
  transform: translateX(5px);
}

/* Video Modal Placeholder */
.video-frame-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold-glow);
  background: #02040a;
}

.cinema-placeholder {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Video Modal Window */
.video-modal-window {
  max-width: 860px;
  width: 95%;
  padding: 2rem;
}

.video-modal-header {
  margin-bottom: 1.25rem;
}

.video-modal-description {
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.video-frame-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 0 35px rgba(223, 172, 87, 0.25), 0 20px 40px rgba(0, 0, 0, 0.8);
  background: #000;
}

.video-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(223, 172, 87, 0.2);
  flex-wrap: wrap;
}

.video-footer-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-400);
  flex: 1;
}

@media (max-width: 640px) {
  .video-modal-window {
    padding: 1.25rem;
  }
  .video-modal-footer {
    flex-direction: column;
    text-align: center;
  }
  .video-modal-footer .btn-gold-fill {
    width: 100%;
  }
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 15, 0.95);
  backdrop-filter: blur(16px);
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.search-box-inner {
  width: 100%;
  max-width: 650px;
  padding: 0 1.5rem;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--gold-500);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  color: var(--gold-400);
}

.search-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #FFF;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}

.search-results-list {
  margin-top: 1.25rem;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.search-result-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(223, 172, 87, 0.12);
  border-color: var(--gold-500);
}

.search-result-item h5 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #FFF;
}

.search-result-item span {
  font-size: 0.72rem;
  color: var(--gold-400);
}

/* Toast Notifications */
.cosmic-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cosmic-toast {
  background: #0d1527;
  border: 1px solid var(--gold-500);
  border-radius: 10px;
  padding: 0.85rem 1.35rem;
  color: #FFF;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE-FIRST SMARTPHONE PRIORITIZATION & DEVICE DETECTION
   ========================================================================== */

.mobile-portal-badge {
  display: none;
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold-400);
  background: rgba(223, 172, 87, 0.1);
  border: 1px solid var(--border-gold-glow);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.mobile-books-ribbon {
  display: none;
  width: 100%;
  margin-bottom: 1.25rem;
}

.ribbon-hint {
  font-size: 0.72rem;
  color: var(--gold-400);
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ribbon-scroller {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem 0.65rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ribbon-scroller::-webkit-scrollbar {
  display: none;
}

.mobile-book-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(12, 20, 39, 0.85);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-family: var(--font-serif);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-book-chip.active {
  background: var(--gold-gradient);
  color: #080e1e;
  border-color: transparent;
  box-shadow: 0 0 12px var(--gold-500);
}

.mobile-book-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

@media (max-width: 1280px) {
  .stage-container {
    grid-template-columns: 280px 1fr 340px;
    padding: 1rem 1.5rem;
  }
  .mandala-system {
    width: 440px;
    height: 440px;
  }
  .ring-outer { width: 380px; height: 380px; }
  .ring-middle { width: 300px; height: 300px; }
  .book-sphere-node[data-angle="270"] { transform: translate(0, -180px); }
  .book-sphere-node[data-angle="315"] { transform: translate(128px, -128px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(180px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(128px, 128px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 180px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-128px, 128px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-180px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-128px, -128px); }

  .bottom-grid-container {
    grid-template-columns: 280px 1fr 340px;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES)
   ========================================================================== */

@media (max-width: 1280px) {
  .stage-container {
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    padding: 1.5rem;
  }
  .mandala-system {
    width: 420px;
    height: 420px;
  }
  .ring-outer { width: 360px; height: 360px; }
  .ring-middle { width: 280px; height: 280px; }
  .ring-inner { width: 200px; height: 200px; }
  .book-sphere-node[data-angle="270"] { transform: translate(0, -155px); }
  .book-sphere-node[data-angle="315"] { transform: translate(110px, -110px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(155px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(110px, 110px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 155px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-110px, 110px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-155px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-110px, -110px); }
}

@media (max-width: 1024px) {
  .nav-menu, .btn-entrar {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* FLUXO VERTICAL MOBILE: 1. CÍRCULO NO TOPO | 2. CARD DO LIVRO ABAIXO */
  .stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
    padding: 1.5rem 1rem;
    min-height: auto;
    width: 100%;
    overflow-x: hidden;
  }

  .center-mandala-column {
    order: 1; /* CÍRCULO CENTRALIZADO NO TOPO */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    min-height: 380px;
    padding: 0;
  }

  .right-showcase-column {
    order: 2; /* DESCRIÇÃO DO LIVRO SELECIONADO LOGO ABAIXO */
    display: block !important;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .mandala-system {
    width: 360px;
    height: 360px;
    margin: 0 auto;
  }

  .ring-outer { width: 320px; height: 320px; }
  .ring-middle { width: 240px; height: 240px; }
  .ring-inner { width: 170px; height: 170px; }

  .central-portal-core {
    width: 130px;
    height: 130px;
    padding: 0.65rem;
  }

  .book-sphere-node {
    width: 68px;
    height: 68px;
    margin-top: -34px;
    margin-left: -34px;
  }

  .sphere-orb {
    width: 60px;
    height: 60px;
  }

  .orb-floating-badge {
    bottom: -22px;
    min-width: 96px;
    max-width: 118px;
    min-height: 31px;
    padding: 3px 7px;
  }

  .badge-book-title {
    font-size: 0.52rem;
    white-space: normal;
    overflow: visible;
  }

  .badge-book-cat {
    font-size: 0.42rem;
  }

  .book-sphere-node[data-angle="270"] { transform: translate(0, -125px); }
  .book-sphere-node[data-angle="315"] { transform: translate(88px, -88px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(125px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(88px, 88px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 125px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-88px, 88px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-125px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-88px, -88px); }
}

@media (max-width: 640px) {
  .main-header {
    padding: 0.75rem 1rem;
  }

  .hero-stage {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .stage-container {
    padding: 0.5rem;
    gap: 2rem;
  }

  .center-mandala-column {
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
  }

  .mandala-system {
    width: 340px;
    height: 340px;
    margin: 0 auto;
    position: relative;
  }

  .ring-outer { width: 300px; height: 300px; }
  .ring-middle { width: 225px; height: 225px; }
  .ring-inner { width: 155px; height: 155px; }

  .central-portal-core {
    width: 120px;
    height: 120px;
    padding: 0.5rem;
  }

  .mandala-top-quote {
    margin-bottom: 1.5rem;
  }

  .top-quote-text {
    font-size: 0.92rem;
  }

  .mandala-bottom-quote {
    margin-top: 1.5rem;
  }

  .bottom-quote-text {
    font-size: 0.92rem;
  }

  .portal-main-prompt {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .book-sphere-node {
    width: 62px;
    height: 62px;
    margin-top: -31px;
    margin-left: -31px;
  }

  .sphere-orb {
    width: 55px;
    height: 55px;
  }

  .orb-floating-badge {
    bottom: -22px;
    min-width: 88px;
    max-width: 104px;
    min-height: 31px;
    padding: 3px 6px;
  }

  .badge-book-title {
    font-size: 0.48rem;
    white-space: normal;
    overflow: visible;
  }

  .badge-book-cat {
    font-size: 0.38rem;
  }

  /* Trigonometria confortável com raio R = 118px */
  .book-sphere-node[data-angle="270"] { transform: translate(0, -118px); }
  .book-sphere-node[data-angle="315"] { transform: translate(83px, -83px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(118px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(83px, 83px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 118px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-83px, 83px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-118px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-83px, -83px); }

  .right-showcase-column {
    max-width: 100%;
    width: 100%;
    padding: 0 0.5rem;
    margin-top: 1rem;
    scroll-margin-top: 75px;
  }

  .desktop-book-card {
    padding: 1.5rem 1.15rem;
  }

  .book-3d-wrapper,
  .book-3d-wrapper:hover {
    transform: rotateY(-6deg) rotateX(2deg);
  }

  .cover-preview-overlay {
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  }

  .cover-preview-window {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 3rem 1rem 1.25rem;
  }

  .cover-preview-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .cover-preview-art {
    min-height: min(48dvh, 340px);
  }

  .cover-preview-art img {
    width: min(210px, 68vw);
    max-width: 100%;
    max-height: 44dvh;
    transform: none;
  }

  .cover-preview-halo {
    width: min(78vw, 320px);
    height: min(78vw, 320px);
  }

  .cover-preview-copy {
    width: 100%;
    padding-right: 0;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .cover-preview-copy > p { margin-inline: auto; }
  .cover-preview-actions { justify-content: center; }
}

/* ==========================================================================
   MULTI-SECTION SCROLLING LAYOUT (SEÇÕES SEQUENCIAIS COM RESPIRO)
   ========================================================================== */

.story-section {
  position: relative;
  z-index: 10;
  padding: 6.5rem 2rem;
  border-top: 1px solid rgba(223, 172, 87, 0.15);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-main-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

.section-lead-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-top: 1rem;
}

/* 1. Seção Fábulas: Card Integrado em 2 Colunas Balanceadas */
.fabulas-integrated-card {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.8rem 3rem;
  border-radius: 18px;
  background: rgba(8, 14, 28, 0.9);
  border: 1px solid rgba(223, 172, 87, 0.32);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(223, 172, 87, 0.15);
  backdrop-filter: blur(14px);
}

.fabulas-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.fabulas-headline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
}

.fabulas-editorial-lead {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-style: italic;
  color: #f8fafc;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.fabulas-subquestion {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

.fabulas-right-video {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cinema-preview-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 12px;
  background: radial-gradient(circle at center, #1e1b4b 0%, #030712 100%);
  border: 1.5px solid var(--gold-500);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cinema-preview-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(223, 172, 87, 0.5);
}

.cinema-backdrop-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(223, 172, 87, 0.2) 0%, transparent 70%);
}

.cinema-interactive-play {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
}

.cinema-play-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #080d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 25px rgba(223, 172, 87, 0.7);
  transition: transform 0.3s ease;
}

.cinema-preview-wrapper:hover .cinema-play-orb {
  transform: scale(1.12);
}

.cinema-play-headline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFF;
}

.cinema-play-sub {
  font-size: 0.76rem;
  color: var(--gold-400);
}

.fabulas-quote-footer-compact {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 2px solid var(--gold-500);
  text-align: left;
}

.fabulas-quote-footer-compact p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.signature-gold-mini {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.06em;
}

/* 2. Seção Autor Grand Card */
.author-grand-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 3rem;
  border-radius: 20px;
  background: rgba(10, 16, 32, 0.85);
  border: 1.5px solid rgba(223, 172, 87, 0.35);
  align-items: center;
}

.author-grand-portrait {
  position: relative;
  text-align: center;
}

.author-portrait-frame-large {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 30px rgba(223, 172, 87, 0.3);
  background: #080d1a;
  max-width: 280px;
  margin: 0 auto;
}

.author-real-photo-lg {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.award-glow-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 13, 26, 0.95);
  border-top: 1.5px solid var(--gold-500);
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.5rem 0.25rem;
  text-align: center;
  letter-spacing: 0.06em;
}

.author-grand-bio {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.author-grand-name {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 800;
  color: #FFF;
  margin-top: 0.25rem;
}

.pseudonym-callout {
  color: var(--gold-400);
  font-size: 1.25rem;
}

.author-grand-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.1rem;
  color: #f1f5f9;
  border-left: 3px solid var(--gold-500);
  padding-left: 1rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.author-grand-paragraphs p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.author-credentials-list {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(223, 172, 87, 0.2);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
}

.author-credentials-list strong {
  color: var(--gold-400);
}

.author-grand-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* 3. Seção Quiz Card */
.quiz-featured-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 20px;
  background: rgba(10, 16, 32, 0.85);
  border: 1.5px solid rgba(223, 172, 87, 0.3);
}

.quiz-featured-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.quiz-featured-headline {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.75rem;
}

.quiz-featured-text p {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portal-archway-lg {
  position: relative;
  width: 180px;
  height: 230px;
  border-radius: 90px 90px 8px 8px;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 30px rgba(223, 172, 87, 0.35);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #2e1065 0%, #030712 100%);
}

.arch-glow-lg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(223, 172, 87, 0.25) 0%, transparent 70%);
}

.arch-symbol {
  font-size: 2.5rem;
  color: var(--gold-400);
  position: relative;
  z-index: 2;
  animation: pulse-glow 3s infinite alternate;
}

/* 4. Seção Catálogo Grid */
.theme-filters-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.theme-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 172, 87, 0.25);
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-pill-btn:hover,
.theme-pill-btn.active {
  background: var(--gold-gradient);
  color: #090e1d;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(223, 172, 87, 0.4);
}

.books-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1120px;
  margin: 2.5rem auto 0;
  align-items: stretch;
}

.gallery-book-card {
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(223, 172, 87, 0.28);
  border-radius: 12px;
  padding: 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.gallery-book-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(223, 172, 87, 0.35);
}

.gallery-cover-frame {
  width: 160px;
  height: 240px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(223, 172, 87, 0.35);
  background: #040711;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(223, 172, 87, 0.15);
  flex-shrink: 0;
}

.gallery-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

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

.gallery-book-info {
  margin-top: 0.9rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-badge {
  font-family: var(--font-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFF;
  margin: 0 0 0.4rem;
  line-height: 1.25;
  min-height: 2.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-synopsis {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 0.35rem;
}

.gallery-btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  background: var(--gold-gradient);
  color: #080d1a;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(223, 172, 87, 0.25);
}

.gallery-btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(223, 172, 87, 0.5);
}

@media (max-width: 1024px) {
  .fabulas-integrated-card {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 2rem 1.5rem;
  }
  .fabulas-left-content {
    align-items: center;
    text-align: center;
  }
  .author-grand-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-section {
    padding: 4.5rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .books-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .gallery-book-card {
    padding: 0.85rem 0.6rem;
  }
  .gallery-cover-frame {
    width: 120px;
    height: 180px;
  }
  .gallery-title {
    font-size: 0.78rem;
    min-height: 2rem;
  }
  .gallery-synopsis {
    display: none;
  }
  .gallery-btn-action {
    font-size: 0.62rem;
    padding: 0.45rem 0.5rem;
  }
  .author-grand-card {
    padding: 1.5rem;
  }
  .author-portrait-frame-large {
    max-width: 220px;
    margin: 0 auto;
  }
  .author-real-photo-lg {
    height: 260px;
  }
  .section-main-title {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   SEÇÃO 6: FORMULÁRIO DE CONTATO DIRETO COM O AUTOR
   ========================================================================== */

.contact-form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.8rem 3rem;
  border-radius: 20px;
  background: rgba(10, 16, 32, 0.88);
  border: 1.5px solid rgba(223, 172, 87, 0.35);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
}

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

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-400);
}

.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 172, 87, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #FFF;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(223, 172, 87, 0.25);
}

.form-action-row {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.btn-send-message {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 2.2rem;
  border-radius: 30px;
  cursor: pointer;
  border: none;
}

/* Rodapé Minimalista */
.universe-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(223, 172, 87, 0.2);
  background: rgba(5, 8, 17, 0.95);
  padding: 2rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-author-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.1em;
}

.footer-tagline {
  font-size: 0.76rem;
  color: #94a3b8;
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 172, 87, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 20px;
  color: #FFF;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-social-pill:hover {
  background: var(--gold-gradient);
  color: #080d1a;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(223, 172, 87, 0.4);
  transform: translateY(-2px);
}

.agent-feather-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.15rem;
  color: rgba(209, 190, 151, 0.3);
  font-size: 0.78rem;
  line-height: 1;
  text-decoration: none;
  filter: grayscale(1);
  opacity: 0.55;
  cursor: default;
  transition: color 250ms ease, opacity 250ms ease;
}

.agent-feather-entry:hover {
  color: rgba(223, 211, 183, 0.55);
  opacity: 0.72;
}

.agent-feather-entry:focus-visible {
  outline: 1px solid rgba(223, 172, 87, 0.7);
  outline-offset: 0.25rem;
  opacity: 1;
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 1.75rem 1.25rem;
  }
  .form-row-two {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .agent-feather-entry { margin: 0.2rem 0 0; }
}

/* ==========================================================================
   REFINAMENTO 2026 — CAPAS ORBITAIS MAIORES E EXPANSÃO IMERSIVA
   ========================================================================== */

.book-sphere-node:focus-visible {
  outline: 3px solid #fff2d6;
  outline-offset: 9px;
  border-radius: 50%;
}

.book-3d-wrapper:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 8px;
  border-radius: 8px;
}

.cover-expand-label {
  display: block;
  width: 100%;
  margin-top: 0;
  text-align: center;
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.84;
}

.btn-cover-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.68rem 1rem;
  border: 1px solid rgba(223, 172, 87, 0.5);
  border-radius: 999px;
  color: var(--gold-300);
  background: linear-gradient(135deg, rgba(223, 172, 87, 0.13), rgba(56, 189, 248, 0.06));
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-cover-expand:hover,
.btn-cover-expand:focus-visible {
  transform: translateY(-2px);
  background: rgba(223, 172, 87, 0.2);
  box-shadow: 0 0 24px rgba(223, 172, 87, 0.28);
}

.btn-book-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.cover-preview-window {
  width: min(980px, calc(100vw - 3rem));
  max-width: 980px;
  max-height: calc(100dvh - 3rem);
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 25% 50%, rgba(223, 172, 87, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(11, 18, 38, 0.98), rgba(4, 8, 18, 0.99));
}

.cover-preview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(300px, 1.22fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cover-preview-art {
  position: relative;
  display: flex;
  min-height: 540px;
  align-items: center;
  justify-content: center;
  perspective: 1300px;
}

.cover-preview-art img {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  max-height: 570px;
  object-fit: contain;
  border-radius: 6px 14px 14px 6px;
  transform: rotateY(-7deg) rotateX(2deg);
  box-shadow: 22px 34px 70px rgba(0, 0, 0, 0.64), 0 0 34px rgba(223, 172, 87, 0.16);
  animation: cover-preview-arrive 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cover-preview-halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(223, 172, 87, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.08), 0 0 70px rgba(223, 172, 87, 0.08);
  animation: ring-rotate-cw 30s linear infinite;
}

.cover-preview-copy {
  padding-right: 1.5rem;
  min-width: 0;
}

.cover-preview-copy .modal-title-gold {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
}

.cover-preview-copy > p {
  max-width: 560px;
  margin: 1.35rem 0 0;
  color: #bac8d9;
  line-height: 1.75;
}

.cover-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.cover-preview-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cover-preview-author {
  display: block;
  margin-top: 1.5rem;
  color: #7f91aa;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

@keyframes cover-preview-arrive {
  from { opacity: 0; transform: translateY(36px) rotateY(-20deg) scale(0.88); }
  to { opacity: 1; transform: translateY(0) rotateY(-7deg) rotateX(2deg) scale(1); }
}

@media (min-width: 1281px) {
  .hero-stage {
    min-height: 96vh;
  }

  .stage-container {
    grid-template-columns: minmax(680px, 1fr) 400px;
    gap: 3.75rem;
    min-height: 750px;
  }

  .center-mandala-column {
    min-height: 840px;
  }

  .mandala-top-quote { margin-bottom: 3rem; }
  .mandala-bottom-quote { margin-top: 3rem; }

  .mandala-system {
    width: 620px;
    height: 620px;
  }

  .ring-outer { width: 520px; height: 520px; }
  .ring-middle { width: 410px; height: 410px; }
  .ring-inner { width: 280px; height: 280px; }
  .ring-starburst { width: 470px; height: 470px; }

  .book-sphere-node {
    width: 116px;
    height: 116px;
    margin-top: -58px;
    margin-left: -58px;
  }

  .sphere-orb {
    width: 116px;
    height: 116px;
    border-width: 2.5px;
  }

  .sphere-aura {
    width: 132px;
    height: 132px;
  }

  .book-sphere-node[data-angle="270"] { transform: translate(0, -250px); }
  .book-sphere-node[data-angle="315"] { transform: translate(177px, -177px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(250px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(177px, 177px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 250px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-177px, 177px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-250px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-177px, -177px); }

  .orb-floating-badge {
    bottom: -42px;
    padding: 5px 11px;
  }

  .book-sphere-node[data-angle="270"] .orb-floating-badge {
    top: -42px;
  }

  .badge-book-title { font-size: 0.7rem; }
  .badge-book-cat { font-size: 0.55rem; }

  .card-book-stage {
    padding-top: 0.15rem;
  }

  .book-3d-wrapper {
    width: 160px;
    height: 228px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .stage-container {
    grid-template-columns: minmax(520px, 1fr) 360px;
    gap: 2rem;
  }

  .center-mandala-column {
    min-height: 690px;
  }

  .mandala-system {
    width: 500px;
    height: 500px;
  }

  .ring-outer { width: 420px; height: 420px; }
  .ring-middle { width: 330px; height: 330px; }
  .ring-inner { width: 220px; height: 220px; }

  .book-sphere-node {
    width: 92px;
    height: 92px;
    margin-top: -46px;
    margin-left: -46px;
  }

  .sphere-orb { width: 92px; height: 92px; }
  .sphere-aura { width: 108px; height: 108px; }

  .book-sphere-node[data-angle="270"] { transform: translate(0, -195px); }
  .book-sphere-node[data-angle="315"] { transform: translate(138px, -138px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(195px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(138px, 138px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 195px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-138px, 138px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-195px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-138px, -138px); }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .center-mandala-column {
    min-height: 560px;
  }

  .mandala-top-quote { margin-bottom: 1.5rem; }
  .mandala-bottom-quote { margin-top: 1.5rem; }

  .mandala-system {
    width: 400px;
    height: 400px;
  }

  .ring-outer { width: 350px; height: 350px; }
  .ring-middle { width: 270px; height: 270px; }

  .book-sphere-node {
    width: 78px;
    height: 78px;
    margin-top: -39px;
    margin-left: -39px;
  }

  .sphere-orb { width: 72px; height: 72px; }

  .book-sphere-node[data-angle="270"] { transform: translate(0, -135px); }
  .book-sphere-node[data-angle="315"] { transform: translate(95px, -95px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(135px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(95px, 95px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 135px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-95px, 95px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-135px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-95px, -95px); }
}

@media (max-width: 640px) {
  .book-sphere-node {
    width: 72px;
    height: 72px;
    margin-top: -36px;
    margin-left: -36px;
  }

  .sphere-orb {
    width: 68px;
    height: 68px;
  }

  .sphere-aura {
    width: 78px;
    height: 78px;
  }

  .book-sphere-node[data-angle="270"] { transform: translate(0, -126px); }
  .book-sphere-node[data-angle="315"] { transform: translate(89px, -89px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(126px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(89px, 89px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 126px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-89px, 89px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-126px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-89px, -89px); }

  .cover-preview-window {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 3rem 1rem 1.25rem;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cover-preview-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .cover-preview-art {
    min-height: min(48dvh, 340px);
  }

  .cover-preview-art img {
    width: min(210px, 68vw);
    max-width: 100%;
    max-height: 44dvh;
    transform: none;
  }

  .cover-preview-halo {
    width: min(78vw, 320px);
    height: min(78vw, 320px);
  }

  .cover-preview-copy {
    width: 100%;
    padding-right: 0;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .cover-preview-copy > p { margin-inline: auto; }
  .cover-preview-actions { justify-content: center; }
}

@media (max-width: 380px) {
  .mandala-system {
    width: 320px;
    height: 320px;
  }

  .book-sphere-node {
    width: 64px;
    height: 64px;
    margin-top: -32px;
    margin-left: -32px;
  }

  .sphere-orb {
    width: 62px;
    height: 62px;
  }

  .book-sphere-node[data-angle="270"] { transform: translate(0, -112px); }
  .book-sphere-node[data-angle="315"] { transform: translate(79px, -79px); }
  .book-sphere-node[data-angle="0"]   { transform: translate(112px, 0); }
  .book-sphere-node[data-angle="45"]  { transform: translate(79px, 79px); }
  .book-sphere-node[data-angle="90"]  { transform: translate(0, 112px); }
  .book-sphere-node[data-angle="135"] { transform: translate(-79px, 79px); }
  .book-sphere-node[data-angle="180"] { transform: translate(-112px, 0); }
  .book-sphere-node[data-angle="225"] { transform: translate(-79px, -79px); }
}

/* ==========================================================================
   BEM APP — SEÇÃO INTEGRADA À PÁGINA PRINCIPAL
   ========================================================================== */

.section-bem-app {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 50%, rgba(126, 231, 135, 0.06), transparent 28%),
    radial-gradient(circle at 90% 35%, rgba(56, 189, 248, 0.08), transparent 32%);
}

.bem-ecosystem-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 620px;
  padding: clamp(2rem, 6vw, 5rem);
  border-color: rgba(85, 214, 255, 0.2);
  background:
    radial-gradient(circle at 20% 50%, rgba(40, 121, 216, 0.19), transparent 34%),
    linear-gradient(145deg, rgba(9, 23, 42, 0.95), rgba(4, 9, 20, 0.98));
}

.bem-home-visual {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.bem-home-visual img {
  position: relative;
  z-index: 2;
  width: min(280px, 75vw);
  height: auto;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.52)) drop-shadow(0 0 28px rgba(85, 214, 255, 0.16));
  animation: bem-home-float 5s ease-in-out infinite;
}

.bem-home-radar {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(85, 214, 255, 0.25);
  border-radius: 50%;
  animation: bem-home-radar 3.8s ease-out infinite;
}

.bem-home-radar.radar-two {
  animation-delay: 1.9s;
}

.bem-home-caption {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  color: #b6c8db;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.bem-tag {
  color: #7ee787;
}

.bem-home-copy h2 {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.8vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.bem-home-lead {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: #bdcada;
  font-size: 1rem;
  line-height: 1.75;
}

.bem-home-lead strong {
  color: #fff;
}

.bem-home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.bem-home-features > div {
  padding: 1rem;
  border: 1px solid rgba(85, 214, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.bem-home-features span {
  display: block;
  margin-bottom: 1rem;
  color: rgba(126, 231, 135, 0.7);
  font-weight: 900;
}

.bem-home-features p {
  margin: 0;
  color: #92a5bb;
  font-size: 0.76rem;
  line-height: 1.55;
}

.bem-home-features strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #eaf5ff;
  font-size: 0.8rem;
}

.bem-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.bem-home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bem-home-disclaimer {
  max-width: 780px;
  margin: 1.15rem 0 0;
  color: #73869d;
  font-size: 0.7rem;
  line-height: 1.55;
}

.search-result-bem {
  border-color: rgba(126, 231, 135, 0.22);
  background: linear-gradient(135deg, rgba(126, 231, 135, 0.05), rgba(56, 189, 248, 0.04));
}

@keyframes bem-home-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes bem-home-radar {
  0% { opacity: 0.65; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(1.24); }
}

@media (max-width: 900px) {
  .bem-ecosystem-card {
    grid-template-columns: 1fr;
  }

  .bem-home-visual {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .bem-ecosystem-card {
    padding: 1.5rem 1rem 2rem;
  }

  .bem-home-features {
    grid-template-columns: 1fr;
  }

  .bem-home-radar {
    width: 290px;
    height: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bem-home-visual img,
  .bem-home-radar,
  .cover-preview-art img,
  .cover-preview-halo {
    animation: none;
  }

  .book-sphere-node,
  .sphere-orb,
  .orb-img-cover {
    transition-duration: 0.01ms;
  }
}

/* ========================================================================== */
/* ORIENTADOR MEINLEM — RECOMENDAÇÃO LOCAL, TRANSPARENTE E ORIENTADA À AÇÃO */
/* ========================================================================== */
.section-orientador {
  background:
    radial-gradient(circle at 8% 30%, rgba(192, 132, 252, 0.1), transparent 34%),
    radial-gradient(circle at 92% 60%, rgba(223, 172, 87, 0.1), transparent 32%);
}

.meinlem-advisor {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 3.4rem);
  border-color: rgba(223, 172, 87, 0.32);
  background:
    linear-gradient(135deg, rgba(21, 25, 48, 0.97), rgba(7, 10, 24, 0.98)),
    radial-gradient(circle at 20% 0, rgba(223, 172, 87, 0.1), transparent 36%);
}

.meinlem-advisor::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 46%, rgba(255, 255, 255, 0.018) 50%, transparent 54%);
}

.advisor-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(223, 172, 87, 0.18);
}

.advisor-tag {
  color: #e9c57f;
}

.advisor-heading h2 {
  max-width: 820px;
  margin: 0.65rem 0 0.9rem;
  color: #f8ecd3;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.advisor-heading p {
  max-width: 820px;
  margin: 0;
  color: #9cabc1;
  line-height: 1.72;
}

.advisor-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.advisor-controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.advisor-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.advisor-fieldset legend,
.advisor-prompt-field > label {
  display: block;
  margin-bottom: 0.85rem;
  color: #edf3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.advisor-interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.advisor-interest-chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.advisor-interest-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.advisor-interest-chip span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 11px;
  color: #aeb9ca;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.advisor-interest-chip span::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #536176;
  box-shadow: 0 0 0 3px rgba(83, 97, 118, 0.12);
}

.advisor-interest-chip:hover span {
  color: #eef3fb;
  border-color: rgba(223, 172, 87, 0.36);
  background: rgba(223, 172, 87, 0.055);
}

.advisor-interest-chip input:focus-visible + span {
  outline: 3px solid #fff2d6;
  outline-offset: 3px;
}

.advisor-interest-chip input:checked + span {
  color: #fff1d4;
  border-color: rgba(223, 172, 87, 0.65);
  background: linear-gradient(135deg, rgba(223, 172, 87, 0.16), rgba(192, 132, 252, 0.08));
  transform: translateY(-1px);
}

.advisor-interest-chip input:checked + span::before {
  background: #f5ca78;
  box-shadow: 0 0 0 3px rgba(245, 202, 120, 0.14), 0 0 14px rgba(245, 202, 120, 0.7);
}

.advisor-interest-bem input:checked + span {
  color: #d4f8dc;
  border-color: rgba(126, 231, 135, 0.55);
  background: rgba(126, 231, 135, 0.09);
}

.advisor-interest-bem input:checked + span::before {
  background: #7ee787;
  box-shadow: 0 0 0 3px rgba(126, 231, 135, 0.12), 0 0 14px rgba(126, 231, 135, 0.6);
}

.advisor-prompt-field {
  margin-top: 1.25rem;
}

.advisor-prompt-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  outline: 0;
  color: #eef3fb;
  background: rgba(2, 6, 23, 0.55);
  font: 500 0.82rem/1.55 var(--font-body);
}

.advisor-prompt-field textarea:focus {
  border-color: rgba(223, 172, 87, 0.7);
  box-shadow: 0 0 0 3px rgba(223, 172, 87, 0.09);
}

.advisor-prompt-field textarea::placeholder {
  color: #637087;
}

.advisor-prompt-field small {
  display: block;
  margin-top: 0.5rem;
  color: #69778d;
  font-size: 0.65rem;
  line-height: 1.5;
}

.advisor-remember-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-top: 1.15rem;
  padding: 0.85rem;
  border: 1px solid rgba(223, 172, 87, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(223, 172, 87, 0.09), rgba(56, 189, 248, 0.035));
  cursor: pointer;
}

.advisor-remember-option input {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  accent-color: #d7a94f;
}

.advisor-remember-option strong,
.advisor-remember-option small {
  display: block;
}

.advisor-remember-option strong {
  color: #f7e8ca;
  font-size: 0.84rem;
}

.advisor-remember-option strong em {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.14rem 0.42rem;
  border: 1px solid rgba(223, 172, 87, 0.45);
  border-radius: 999px;
  color: #e9c57f;
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.advisor-remember-option small {
  margin-top: 0.18rem;
  color: #a4b1c4;
  font-size: 0.7rem;
  line-height: 1.45;
}

.advisor-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.advisor-submit {
  flex: 1 1 250px;
  min-height: 48px;
}

.advisor-reset {
  flex: 0 1 auto;
  border: 0;
  color: #77869c;
  background: transparent;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.advisor-reset:hover {
  color: #f6d18b;
}

.advisor-validation {
  margin: 0.75rem 0 0;
  color: #f5c47b;
  font-size: 0.72rem;
}

.advisor-result {
  min-width: 0;
  min-height: 100%;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(223, 172, 87, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(223, 172, 87, 0.08), transparent 43%),
    rgba(3, 6, 17, 0.56);
}

.advisor-empty-state {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.advisor-empty-state > span {
  color: #e1b45f;
  font-size: 2.5rem;
  filter: drop-shadow(0 0 14px rgba(223, 172, 87, 0.55));
}

.advisor-empty-state h3 {
  margin: 0.7rem 0 0.45rem;
  color: #f3e5c8;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.advisor-empty-state p {
  max-width: 470px;
  margin: 0;
  color: #748198;
  font-size: 0.76rem;
  line-height: 1.65;
}

.advisor-recommendation-card {
  display: grid;
  grid-template-columns: minmax(120px, 176px) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: start;
}

.advisor-recommendation-cover {
  position: relative;
}

.advisor-recommendation-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(223, 172, 87, 0.35);
  border-radius: 13px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.advisor-recommendation-cover.is-app img {
  border-radius: 24%;
}

.advisor-match-badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(223, 172, 87, 0.28);
  border-radius: 999px;
  color: #efce90;
  background: rgba(223, 172, 87, 0.07);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.advisor-recommendation-copy h3 {
  margin: 0 0 0.35rem;
  color: #fff1d6;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.06;
}

.advisor-recommendation-category {
  margin: 0 0 0.85rem;
  color: #7f8ba0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.advisor-recommendation-reason {
  margin: 0;
  color: #bec8d7;
  font-size: 0.82rem;
  line-height: 1.68;
}

.advisor-why-box {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-left: 2px solid #dcae58;
  color: #8f9db1;
  background: rgba(223, 172, 87, 0.045);
  font-size: 0.69rem;
  line-height: 1.55;
}

.advisor-why-box strong {
  color: #e9ca8e;
}

.advisor-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.advisor-result-actions a,
.advisor-result-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.85rem;
  border-radius: 9px;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.advisor-primary-action {
  flex: 1 1 180px;
  border: 1px solid #e4b85f;
  color: #151006;
  background: linear-gradient(135deg, #f4d28e, #c5903b);
}

.advisor-secondary-action {
  flex: 1 1 155px;
  border: 1px solid rgba(223, 172, 87, 0.34);
  color: #eed39e;
  background: rgba(223, 172, 87, 0.055);
}

.advisor-free-action {
  flex: 1 1 155px;
  border: 1px solid rgba(126, 231, 135, 0.3);
  color: #b9edc2;
  background: rgba(126, 231, 135, 0.055);
}

.advisor-conversion-note {
  margin: 0.9rem 0 0;
  color: #65738a;
  font-size: 0.62rem;
  line-height: 1.5;
}

.advisor-alternatives {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.advisor-alternatives > span {
  display: block;
  margin-bottom: 0.55rem;
  color: #738097;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.advisor-alternative-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.advisor-alternative-list button {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #9facbf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.62rem;
  cursor: pointer;
}

.advisor-alternative-list button:hover {
  color: #f1d49c;
  border-color: rgba(223, 172, 87, 0.4);
}

.advisor-privacy {
  position: relative;
  z-index: 1;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #758299;
}

.advisor-privacy summary {
  width: fit-content;
  color: #9eabc0;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.advisor-privacy > div {
  max-width: 930px;
  padding: 0.6rem 0;
}

.advisor-privacy p {
  margin: 0.55rem 0;
  color: #77859a;
  font-size: 0.69rem;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .advisor-heading,
  .advisor-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .meinlem-advisor {
    padding: 1.35rem 1rem;
    border-radius: 22px;
  }

  .advisor-interest-grid,
  .advisor-recommendation-card {
    grid-template-columns: 1fr;
  }

  .advisor-recommendation-cover {
    width: min(52vw, 180px);
    margin: 0 auto;
  }

  .advisor-recommendation-copy {
    text-align: center;
  }

  .advisor-why-box {
    text-align: left;
  }

  .advisor-alternatives {
    grid-column: 1;
  }

  .advisor-result-actions a,
  .advisor-result-actions button {
    flex-basis: 100%;
  }
}

/* Acessibilidade sem alterar a composição visual. */
.skip-link {
  position: fixed;
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #fff2d6;
  border-radius: 0.5rem;
  color: #090b12;
  background: #f6dca6;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #fff2d6;
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
