/* NAONDE — celular leve e botão das Atividades à direita (30/11/2026)
   1. Só no celular: o botão Atividades do canto superior esquerdo (#activities-button) sai; fica só o botão flutuante
      redondo (#ndAtivFab) no lado direito, em vidro, acima da barra preta de baixo. O computador não muda.
   2. Barra preta de baixo do celular: sólida, numa camada própria e isolada do resto da página (o navegador não
      repinta a barra a cada rolagem), sem desfoque e sem transições pesadas.
   3. Celular: sem backdrop-filter nas superfícies grandes (é o que mais pesa na rolagem); os botões pequenos de vidro
      continuam com o efeito. */

/* 1. Atividades no celular (até 760 px): sai a pílula preta do canto superior esquerdo (e a bolinha de tablet) e fica só
      o botão flutuante redondo no estilo Apple, à direita. No computador fica como era antes (pílula, sem o botão redondo). */
@media (max-width: 760px) {
html body #activities-button#activities-button, html body #nd64Doca#nd64Doca { display: none !important; } /* um botão de Atividades só: o redondo da direita */
html:not(#ndab1) body:not(#ndab2) #ndAtivFab#ndAtivFab { display: grid !important; place-items: center; position: fixed; left: auto !important; top: auto !important;
  right: calc(20px + env(safe-area-inset-right)) !important; bottom: calc(24px + var(--nd-fab-sobe, 0px) + env(safe-area-inset-bottom)) !important; z-index: 1550;
  width: 56px; height: 56px; border-radius: 50% !important; color: #1d1d1f;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 232, 140, .36)) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .8) !important; box-shadow: inset 0 1px 0 #fff, 0 10px 26px -10px rgba(122, 90, 0, .45) !important;
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1) !important; }
html:not(#ndab1) body:not(#ndab2) #ndAtivFab#ndAtivFab.aperta { transform: scale(.92) !important; }
html:not(#ndab1) body:not(#ndab2) #ndAtivFab#ndAtivFab.on { background: #1d1d1f !important; color: #ffe066; }
}
/* com app aberto ou painel das Atividades aberto, continua clicável por cima */
body.nda-on #ndAtivFab { z-index: 1560; }
@media (min-width: 761px) { }

@media (max-width: 600px) {
  html:not(#ndab1) body:not(#ndab2) #ndAtivFab#ndAtivFab { right: var(--ndfab-r, calc(14px + env(safe-area-inset-right))) !important;
    bottom: var(--ndfab-b, calc(84px + env(safe-area-inset-bottom))) !important; width: 52px; height: 52px; touch-action: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; /* no celular, vidro sem desfoque (leve) */
    background: radial-gradient(120% 70% at 50% -10%, #fff, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #fff8d6, #ffe680) !important; }

  /* 2. barra preta de baixo: camada própria, sólida e isolada */
  html body header.navbar nav.nav-center { contain: layout style; /* sem "paint": cortava a aba de puxar, que sai 15 px acima da barra */ transform: translateZ(0); will-change: transform; backface-visibility: hidden;
    background: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body header.navbar nav.nav-center > .nd-mb { contain: layout; }
  html body header.navbar nav.nav-center .nd-mb-bt { transition: none !important; -webkit-tap-highlight-color: transparent; }
  html body header.navbar nav.nav-center .nd-mb-bt:active { opacity: .6; }
  #ndMbGaveta { contain: layout paint style; transform: translateZ(0); }

  /* 3. sem desfoque nas superfícies grandes do celular */
  html body :is(header.navbar, #ndFeedAbas, .nxp-top, .n25-h, #ndMbGaveta, #ndMbFundo, .composer, .post, .card, aside, main, section) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* celular (30/11): topo com o NAONDE no centro e o "+" encostado na esquerda (o espaço era da pílula preta, que saiu) */
@media (max-width: 600px) {
  html body header.navbar #ndMbMais { position: absolute !important; left: calc(8px + env(safe-area-inset-left)) !important; top: 50% !important;
    transform: translateY(-50%) !important; margin: 0 !important; }
}
/* botão das Atividades: o nome "Atividades" ao lado some ao tocar/clicar; no celular não aparece */
#ndAtivFab.ndfab-tocado .nd-fab-dica { opacity: 0 !important; visibility: hidden !important; }
@media (max-width: 760px) { #ndAtivFab .nd-fab-dica { display: none !important; } #ndAtivFab.ndfab-movendo { transition: none !important; } }
/* com a gaveta da barra de baixo aberta, o botão fica na frente dela (nd-ativ-fab-move.js põe ele logo acima da borda) */
@media (max-width: 760px) { html body #ndAtivFab.ndfab-sobre-gaveta { z-index: 9510 !important; } }
/* botão das Atividades no celular: sem o quadrado azul ao tocar (realce de toque e contorno de foco) */
@media (max-width: 760px) {
  html body #ndAtivFab, html body #ndAtivFab * { -webkit-tap-highlight-color: transparent !important; }
  html body #ndAtivFab:focus, html body #ndAtivFab:focus-visible, html body #ndAtivFab:active { outline: none !important; }
}

/* 30/11: o botão das Atividades sobe junto com a gaveta usando "translate" (liso); com a mola da gaveta, mesma curva */
@media (max-width: 760px) {
  html:not(#ndab1) body:not(#ndab2) #ndAtivFab#ndAtivFab { will-change: transform, translate; }
  html:not(#ndab1) body:not(#ndab2) #ndAtivFab#ndAtivFab.ndfab-gav-solta { transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), translate .26s cubic-bezier(.22, 1, .36, 1) !important; }
}
