/* =========================================================================
   Shell da area logada + vitrine da Home.
   Sidebar com marca e cards, topbar compacta (sem brand/nav), hero grande,
   carrossel Em destaque (so livros em destaque), acesso rapido (continuar
   lendo / criar obra / generos) e comunidades.
   Carregado por todas as paginas, depois de cosmos.css.
   ========================================================================= */

/* ------------------------------- sidebar -------------------------------- */

body.has-sidebar .sidebar {
  top: 0;
  padding-top: var(--space-5);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-5);
  padding: 4px 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sidebar__brand:hover {
  color: var(--text);
}

.sidebar__brand-logo {
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.24), rgba(255, 209, 102, 0.16));
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sidebar__brand:hover .sidebar__brand-logo {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(255, 209, 102, 0.34);
}

.sidebar__brand-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar__group--plain {
  margin-top: 0 !important;
}

.sidebar__group + .sidebar__group {
  margin-top: var(--space-4);
}

.sidebar__list {
  display: grid;
  gap: 3px;
}

.sidebar__link {
  border-radius: var(--radius-pill);
}

.sidebar__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

/* --------------------------------- cards --------------------------------- */

.sidebar__card {
  margin-top: var(--space-4);
  padding: var(--space-4);
}

.sidebar__card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-2);
}

.sidebar__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: rgba(255, 209, 102, 0.14);
  color: var(--neon);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.2);
}

.sidebar__card-icon--gold {
  background: rgba(255, 209, 102, 0.16);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.22);
}

.sidebar__card-title {
  margin: 0;
}

.sidebar__card--pro {
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(255, 209, 102, 0.24), transparent 70%),
    radial-gradient(90% 100% at 0% 100%, rgba(138, 92, 255, 0.3), transparent 70%),
    linear-gradient(160deg, #171445, #0b0e28);
  border-color: rgba(255, 209, 102, 0.34);
}

[data-theme='light'] .sidebar__card--pro {
  background:
    radial-gradient(90% 100% at 100% 0%, rgba(255, 209, 102, 0.26), transparent 70%),
    radial-gradient(90% 100% at 0% 100%, rgba(138, 92, 255, 0.16), transparent 70%),
    linear-gradient(160deg, #ffffff, #f4f1ff);
}

.sidebar__quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(167, 139, 250, 0.42);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.sidebar__quick:hover {
  color: #fff;
  border-color: rgba(255, 209, 102, 0.6);
  background: rgba(167, 139, 250, 0.14);
}

[data-theme='light'] .sidebar__quick:hover {
  color: var(--text);
}

/* ------------------------------ topbar ----------------------------------- */

body.has-sidebar .brand,
body.has-sidebar .nav,
body.has-sidebar .header__menu {
  display: none;
}

body.has-sidebar .site-header__inner {
  justify-content: flex-end;
  gap: var(--space-3);
}

body.has-sidebar .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.has-sidebar .site-header::after {
  display: none;
}

body.has-sidebar .site-header.is-scrolled {
  background: rgba(5, 7, 20, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
  box-shadow: 0 18px 40px rgba(2, 4, 18, 0.4);
}

[data-theme='light'] body.has-sidebar .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
}

body.has-sidebar .header__search-input {
  width: clamp(200px, 26vw, 320px);
  padding: 9px 44px 9px 16px;
  opacity: 1;
  background: rgba(10, 14, 36, 0.72);
  border-color: var(--border);
}

[data-theme='light'] body.has-sidebar .header__search-input {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(124, 58, 237, 0.24);
}

body.has-sidebar .header__search-input:focus {
  outline: none;
  border-color: rgba(255, 209, 102, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}

body.has-sidebar .header__search-toggle {
  position: absolute;
  right: 4px;
}

body.has-sidebar .header__user-name {
  max-width: 110px;
}

@media (max-width: 720px) {
  body.has-sidebar .header__search-input {
    width: 0;
    padding: 0;
    opacity: 0;
    border-color: transparent;
    background: transparent;
  }
}

/* ================================ HOME =================================== */

.home {
  display: grid;
  gap: clamp(30px, 4.4vw, 56px);
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

/* ------------------------------ saudacao --------------------------------- */

.home-greet {
  position: relative;
  z-index: 2;
}

.home-greet__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.home-greet__name {
  background: linear-gradient(100deg, #ffe3a3 5%, #8b5cf6 52%, #a66cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-greet__sub {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  line-height: 1.65;
}

/* -------------------------------- hero ----------------------------------- */

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 340px);
  align-items: center;
}

.home-hero .banner {
  z-index: 2;
  box-shadow:
    0 34px 90px rgba(3, 6, 26, 0.6),
    0 0 0 1px rgba(167, 139, 250, 0.16),
    0 0 60px rgba(139, 92, 246, 0.18);
}

.home-hero .banner__stage,
.home-hero .banner__inner {
  min-height: clamp(430px, 44vw, 560px);
}

.home-hero .banner__inner {
  grid-template-columns: clamp(170px, 21vw, 300px) minmax(0, 1fr);
  padding-right: clamp(30px, 4vw, 56px);
}

.home-hero .banner__title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.7rem);
}

.home-hero .banner__synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0 0 var(--space-4);
  color: rgba(214, 222, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 600;
}

.banner__stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.banner__stats svg {
  color: var(--neon);
  flex: none;
}

.home-hero .banner__nav--next {
  right: 40px;
}

.home-hero .banner__nav {
  width: 50px;
  height: 50px;
  box-shadow: 0 14px 30px rgba(3, 6, 26, 0.5);
}

/* mascote integrada ao hero */
.home-mascot {
  position: relative;
  z-index: 3;
  justify-self: center;
  margin-left: -30px;
}

.home-mascot .mascot-scene {
  max-width: none;
  width: clamp(240px, 24vw, 350px);
}

.home-mascot .mascot-scene__bubble {
  left: -32%;
  top: -3%;
  max-width: 250px;
  font-size: 0.94rem;
}

/* --------------------------- acesso rapido ------------------------------
   Continuar lendo, Criar obra e Ver generos viraram botoes customizados
   com icone (antes eram duas secoes inteiras + botao texto). */

.home-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.home-quick__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(22, 29, 67, 0.85), rgba(9, 13, 31, 0.72));
  color: var(--text);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  animation: chipPop 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--qi, 0) * 70ms);
}

.home-quick__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.home-quick__btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow:
    0 18px 36px rgba(3, 6, 26, 0.45),
    0 0 24px rgba(255, 209, 102, 0.16);
  color: var(--text);
}

.home-quick__btn:hover::after {
  transform: translateX(130%);
}

.home-quick__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.35);
}

.home-quick__btn--violet .home-quick__icon {
  background: linear-gradient(135deg, #a66cff, #7c3aed);
  box-shadow: 0 10px 22px rgba(139, 92, 246, 0.4);
}

.home-quick__btn--cyan .home-quick__icon {
  background: linear-gradient(135deg, #06b6d4, #4c5cff);
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.35);
}

.home-quick__btn--gold .home-quick__icon {
  background: linear-gradient(135deg, #ffd166, #f59e0b);
  box-shadow: 0 10px 22px rgba(255, 209, 102, 0.38);
}

.home-quick__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-quick__label {
  font-weight: 800;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quick__hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quick__arrow {
  margin-left: auto;
  flex: none;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.home-quick__btn:hover .home-quick__arrow {
  transform: translateX(4px);
  color: var(--neon);
}

[data-theme='light'] .home-quick__btn {
  background: linear-gradient(155deg, #ffffff, #f7f3ff);
}

/* --------------------------- comunidades teaser --------------------------- */

.home-comms {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 30px) clamp(22px, 3.4vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(167, 139, 250, 0.36);
  background:
    radial-gradient(80% 170% at 4% 0%, rgba(139, 92, 246, 0.3), transparent 60%),
    radial-gradient(60% 150% at 100% 100%, rgba(255, 209, 102, 0.16), transparent 60%),
    linear-gradient(140deg, #101743, #080c22);
  box-shadow: var(--shadow-md);
}

.home-comms::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  background: var(--grad-brand);
  opacity: 0.7;
}

[data-theme='light'] .home-comms {
  background:
    radial-gradient(80% 170% at 4% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(60% 150% at 100% 100%, rgba(255, 209, 102, 0.14), transparent 60%),
    linear-gradient(140deg, #ffffff, #eef2ff);
}

.home-comms__main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: min(100%, 320px);
}

.home-comms__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: rgba(255, 209, 102, 0.16);
  color: var(--neon);
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.24);
}

.home-comms__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.16rem;
}

.home-comms__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 58ch;
}

/* ------------------------------ secoes ----------------------------------- */

.home .lib-section {
  gap: var(--space-5);
}

/* estante: linha de abas principais ocupa a largura toda */
.shelf-tabs--main {
  width: 100%;
}

.shelf-tabs--main .shelf-tab {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* ranking de autores */
.rank-row__media--avatar {
  aspect-ratio: 1;
  border-radius: 50%;
}

.rank-row__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.rank-row__avatar--initials {
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.rank-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.rank-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rank-row__meta svg {
  color: var(--accent-strong);
}

/* ============================ responsivo ================================= */

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-mascot {
    order: -1;
    margin: 0 auto var(--space-4);
  }

  .home-mascot .mascot-scene {
    width: min(64vw, 300px);
  }

  .home-mascot .mascot-scene__bubble {
    left: auto;
    right: -14%;
    top: 6%;
    max-width: 220px;
  }

  .home-hero .banner__nav--next {
    right: 14px;
  }
}

@media (max-width: 640px) {
  .home-quick {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero .banner__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-4) var(--space-6);
  }

  .home-hero .banner__cover {
    max-width: 190px;
  }

  .home-hero .banner__badges,
  .home-hero .banner__actions,
  .home-hero .banner__stats {
    justify-content: center;
  }

  .home-hero .banner__stage,
  .home-hero .banner__inner {
    min-height: 0;
  }

  .home-hero .banner__nav {
    width: 42px;
    height: 42px;
  }

  .home-comms {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
}

/* =========================== sidebar compacta =============================
   Todos os itens da lateral cabem na tela sem barra de rolagem.
   Regra de ouro: se aparecer scroll aqui, aperte mais um degrau abaixo.
   ========================================================================= */

body.has-sidebar .sidebar {
  padding: var(--space-3) var(--space-3) var(--space-4) var(--space-4);
}

.sidebar__brand {
  gap: 8px;
  margin-bottom: 10px;
  padding: 2px 4px;
  font-size: 1rem;
}

.sidebar__brand-logo {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 11px;
}

.sidebar__group + .sidebar__group {
  margin-top: 10px;
}

.sidebar__group-label {
  margin-bottom: 6px;
  padding-left: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
}

.sidebar__list {
  gap: 2px;
}

.sidebar__link {
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.86rem;
  line-height: 1.25;
}

.sidebar__icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.sidebar__card {
  margin-top: 10px;
  padding: 10px var(--space-3);
}

.sidebar__card-head {
  gap: 8px;
  margin-bottom: 6px;
}

.sidebar__card-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.sidebar__card-title {
  margin: 0;
  font-size: 0.9rem;
}

.sidebar__card-text {
  margin-bottom: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.sidebar__card .button--small {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.sidebar__quick {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

/* Em telas baixas o texto descritivo dos cards sai do caminho para nenhum
   item de menu ficar escondido alem da borda. Voltas automaticamente em
   monitores altos. */
@media (max-height: 899px) {
  .sidebar__card-text {
    display: none;
  }
}

/* Tela baixa (<=767px de viewport): aperta ainda mais. */
@media (max-height: 767px) {
  body.has-sidebar .sidebar {
    padding-top: var(--space-2);
  }

  .sidebar__brand {
    margin-bottom: 8px;
  }

  .sidebar__brand-logo {
    width: 28px;
    height: 28px;
  }

  .sidebar__link {
    padding: 4px 9px;
    font-size: 0.82rem;
  }

  .sidebar__icon {
    width: 22px;
    height: 22px;
  }

  .sidebar__quick {
    margin-top: 8px;
    padding: 7px 10px;
  }
}

/* Tela muito baixa (janela reduzida / notebook 1366x600): tira tudo que e
   decorativo para nenhum item de menu ficar alem da borda. */
@media (max-height: 690px) {
  .sidebar__brand-logo {
    width: 26px;
    height: 26px;
  }

  .sidebar__brand-text {
    display: none;
  }

  .sidebar__link {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  .sidebar__icon {
    width: 20px;
    height: 20px;
  }

  .sidebar__card {
    margin-top: 8px;
    padding: 8px 10px;
  }

  .sidebar__card-icon {
    display: none;
  }

  .sidebar__card-head {
    margin-bottom: 4px;
  }

  .sidebar__card .button--small {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .sidebar__quick {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* Janela minima: vira so navegacao (botoes dos cards se explicam sozinhos). */
@media (max-height: 640px) {
  .sidebar__brand {
    margin-bottom: 6px;
  }

  .sidebar__group + .sidebar__group {
    margin-top: 6px;
  }

  .sidebar__card-head {
    display: none;
  }

  .sidebar__card {
    margin-top: 6px;
    padding: 6px 10px;
  }
}


/* ===================== performance em celular ============================
   Todo backdrop-filter/blur sobre o canvas fixo e re-rasterizado a cada
   quadro (junto com nebulosas/curtinas animadas). Em telas estreitas ou
   ponteiro groso (celular) desligamos os filtros, subimos a opacidade dos
   fundos para manter legibilidade e param as animacoes infinitas caras. */

@media (max-width: 768px), (pointer: coarse) {
  /* -------- backdrop-filter: nenhum -------- */
  .site-header,
  body.has-sidebar .site-header.is-scrolled,
  .nav.is-open .nav__list,
  .button--ghost,
  .panel,
  .lib-notice,
  .badge,
  .toast,
  .modal__backdrop,
  .mascot-scene__bubble,
  .sidebar,
  body.has-sidebar .sidebar,
  .sidebar__backdrop,
  .lib-search,
  .account-menu,
  .eyebrow,
  .hero__eyebrow,
  .hero__float,
  .hero__chip,
  .author-card,
  .pro-teaser__actions,
  .notifications,
  .auth__panel,
  .book-card__favorite,
  .featured-card__rank {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* -------- fundos mais opacos (compensam a falta do blur) -------- */
  body .site-header {
    background: linear-gradient(180deg, rgba(5, 7, 20, 0.96), rgba(8, 11, 32, 0.92));
  }

  body.has-sidebar .site-header.is-scrolled {
    background: rgba(5, 7, 20, 0.94);
  }

  .button--ghost {
    background: var(--grad-brand-soft);
  }

  .panel {
    background: linear-gradient(160deg, rgba(22, 29, 67, 0.92), rgba(9, 13, 31, 0.94));
  }

  .lib-notice {
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.3), rgba(255, 209, 102, 0.2)),
      rgba(9, 12, 32, 0.94);
  }

  [data-theme='light'] .lib-notice {
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.22), rgba(255, 209, 102, 0.18)),
      rgba(255, 255, 255, 0.95);
  }

  .modal__backdrop {
    background: rgba(3, 5, 16, 0.88);
  }

  .sidebar__backdrop {
    background: rgba(3, 5, 16, 0.85);
  }

  body.has-sidebar .sidebar {
    background: linear-gradient(180deg, rgba(9, 12, 34, 0.93), rgba(5, 7, 22, 0.96));
  }

  .hero__eyebrow {
    background: rgba(12, 16, 40, 0.9);
  }

  .hero__chip {
    background: rgba(10, 14, 36, 0.93);
  }

  .pro-teaser__actions {
    background: rgba(5, 8, 24, 0.92);
  }

  .book-card__favorite {
    background: rgba(5, 6, 15, 0.88);
  }

  .featured-card__rank {
    background: rgba(5, 6, 15, 0.9);
  }

  .eyebrow,
  .hero__float,
  .lib-search {
    background: rgba(22, 14, 48, 0.92);
  }

  [data-theme='light'] .eyebrow,
  [data-theme='light'] .hero__float,
  [data-theme='light'] .lib-search {
    background: rgba(255, 255, 255, 0.94);
  }

  .author-card,
  .auth__panel {
    background: rgba(28, 18, 56, 0.93);
  }

  [data-theme='light'] .author-card,
  [data-theme='light'] .auth__panel {
    background: rgba(255, 255, 255, 0.95);
  }

  /* -------- tema light: fundos opacos acima seriam escuros demais
       para o texto --text/--text-soft (escuro) -------- */
  [data-theme='light'] body .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 240, 255, 0.88));
  }

  [data-theme='light'] body .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
  }

  [data-theme='light'] body.has-sidebar .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 255, 0.98));
  }

  [data-theme='light'] .panel {
    background: rgba(255, 255, 255, 0.95);
  }

  [data-theme='light'] .hero__eyebrow,
  [data-theme='light'] .hero__chip {
    background: rgba(255, 255, 255, 0.94);
  }

  [data-theme='light'] .pro-teaser__actions {
    background: rgba(255, 255, 255, 0.95);
  }

  /* -------- animacoes infinitas caras viram estaticas -------- */
  .cosmos__neb,
  [data-theme='light'] .cosmos__neb,
  .banner__cosmos-neb {
    animation: none;
  }

  .cosmos__neb--5,
  .cosmos__neb--6 {
    display: none;
  }

  .cosmos__deco-item {
    will-change: auto;
  }

  .deco {
    filter: none;
  }

  .gradient-text {
    /* parada num trecho colorido: sem animacao o padrao 0% mostra o branco */
    animation: none;
    background-position: 60% 50%;
  }

  .button--pro {
    animation: none;
  }

  /* o SVG interno (aura/olhos/cabelo) se re-rasteriza a cada quadro e o
     drop-shadow grande obrigava a refazer um blur enorme em cima disso —
     maior culpado de travamento; o flutuar (floatY/mascotFloat) fica. */
  .hero__character,
  .mascot-scene__figure {
    filter: none;
  }
}
