/* NAONDE — novidades de 22/11/2026 (par do nd-novidades.js) */

/* ---------- 1. Barra principal: Início | NADE Play | Loja | Amigos | Comunidade (NADE TV fica dentro da Loja) ---------- */
header.navbar .nav-center a.aba-nadetv { display: none !important; }
header.navbar .nav-center a.aba-videos .n24-rot-nav { white-space: nowrap !important; }
@media (max-width: 350px) { header.navbar .nav-center a .n24-rot-nav { font-size: 10.5px !important; letter-spacing: .3px !important; } }

/* ---------- 3. Menu do perfil no celular: ancorado ao botão, alinhado à direita ----------
   Corrige a folha genérica ".menu-drop.show" (left/right 0 + bottom) que, somada à largura fixa do
   #dropPerfil, o prendia à esquerda e o esticava até o rodapé. Mesmo breakpoint de smartphone do projeto. */
@media (max-width: 700px) {
  html body #dropPerfil.menu-drop.show {
    left: auto !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    top: var(--nd-pf-topo, 58px) !important;
    bottom: auto !important;
    width: min(260px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    height: auto !important;
    max-height: calc(100vh - var(--nd-pf-topo, 58px) - 76px - env(safe-area-inset-bottom)) !important;
    max-height: calc(100dvh - var(--nd-pf-topo, 58px) - 76px - env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform-origin: top right;
  }
}

/* ---------- 4. Celular: botão Atividades flutuante (estilo AssistiveTouch) ---------- */
.nd-at-sonda { position: fixed; left: 0; top: 0; width: 0; height: 0; visibility: hidden; pointer-events: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
html.nd-celular #activities-button.nd-at {
  position: fixed !important; left: 0 !important; top: 0 !important; right: auto !important; bottom: auto !important;
  width: 56px !important; height: 56px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  border-radius: 17px !important; border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(28, 28, 30, .58) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .14) !important;
  transform: translate3d(var(--nd-at-x, calc(100vw - 64px)), var(--nd-at-y, 58vh), 0) !important;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  display: grid !important; place-items: center; overflow: visible !important; z-index: 2000 !important;
  opacity: 0; transition: opacity .25s ease, background-color .18s ease, box-shadow .18s ease, scale .14s ease !important;
  animation: none !important; outline: none;
}
html.nd-celular #activities-button.nd-at.pronto { opacity: .82; }
html.nd-celular #activities-button.nd-at.nd-at-recolhido { opacity: 0 !important; pointer-events: none !important; scale: .85; }
/* o botão saiu do cabeçalho: a reserva de espaço que ele ocupava antes do logo deixa de existir (no celular) */
html.nd-celular body header.navbar .nav-left #logo { margin-left: 4px !important; }
html.nd-celular #activities-button.nd-at > :not(.nd-at-anel) { display: none !important; }
html.nd-celular #activities-button.nd-at::before, html.nd-celular #activities-button.nd-at::after { display: none !important; content: none !important; }
html.nd-celular #activities-button.nd-at .nd-at-anel {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .10) 0 48%, rgba(255, 255, 255, .26) 49% 60%, rgba(255, 255, 255, .12) 61% 78%, rgba(255, 255, 255, .30) 79% 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 2px rgba(0, 0, 0, .35);
}
html.nd-celular #activities-button.nd-at .nd-at-miolo {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 42% 35%, #ffffff 0 45%, #ececee 70%, #d4d4d8 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45), inset 0 -1px 1px rgba(0, 0, 0, .10);
}
html.nd-celular #activities-button.nd-at:active, html.nd-celular #activities-button.nd-at.on { opacity: 1; background: rgba(28, 28, 30, .66) !important; }
html.nd-celular #activities-button.nd-at:active:not(.arrastando) { scale: .94; }
html.nd-celular #activities-button.nd-at.arrastando { opacity: 1; scale: 1.06; background: rgba(28, 28, 30, .7) !important; transition: opacity .1s, scale .12s ease !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .16) !important; }
html.nd-celular #activities-button.nd-at:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(0, 122, 255, .7) !important; }
html.nd-celular.nd-escuro #activities-button.nd-at { background: rgba(72, 72, 76, .5) !important; border-color: rgba(255, 255, 255, .2) !important; }
html.nd-celular.nd-escuro #activities-button.nd-at:active, html.nd-celular.nd-escuro #activities-button.nd-at.arrastando { background: rgba(72, 72, 76, .7) !important; }
@media (prefers-reduced-motion: reduce) { html.nd-celular #activities-button.nd-at { transition: opacity .2s !important; } html.nd-celular #activities-button.nd-at.arrastando, html.nd-celular #activities-button.nd-at:active { scale: 1; } }

/* ---------- 5. Computador: rodinha do mouse sobre o botão Atividades ---------- */
html:not(.nd-celular) #activities-button.nd-roda-pronto { box-shadow: 0 0 0 3px rgba(0, 122, 255, .22), 0 4px 14px rgba(0, 0, 0, .12) !important; transition: box-shadow .18s ease; }
html:not(.nd-celular) #activities-button.nd-roda-baixo { animation: ndRodaBaixo .26s cubic-bezier(.2, .8, .2, 1) !important; }
html:not(.nd-celular) #activities-button.nd-roda-cima { animation: ndRodaCima .26s cubic-bezier(.2, .8, .2, 1) !important; }
@keyframes ndRodaBaixo { 40% { translate: 0 3px; } 100% { translate: 0 0; } }
@keyframes ndRodaCima { 40% { translate: 0 -3px; } 100% { translate: 0 0; } }
.nd-roda-dica { position: fixed; z-index: 100060; display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 10px;
  background: rgba(28, 28, 30, .9); color: #fff; font: 600 12.5px/1.2 var(--nd-fonte, system-ui, sans-serif); white-space: nowrap; pointer-events: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  opacity: 0; translate: 0 -4px; transition: opacity .16s ease, translate .16s ease; }
.nd-roda-dica.on { opacity: 1; translate: 0 0; }
.nd-roda-dica b { font-weight: 700; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }
.nd-roda-dica i { font-size: 15px; }
.nd-roda-dica.nova { background: #007aff; }
.nd-roda-dica.nova b { color: rgba(255, 255, 255, .8); }
@media (prefers-reduced-motion: reduce) { .nd-roda-dica { transition: opacity .1s; translate: 0 0; } html:not(.nd-celular) #activities-button.nd-roda-baixo, html:not(.nd-celular) #activities-button.nd-roda-cima { animation: none !important; } }

/* ---------- 6. Lateral direita persistente ---------- */
html body #homeDir.nd-hd-fixo { position: fixed !important; top: var(--nd-hd-top, 56px) !important; bottom: auto !important; max-height: none !important; overflow: visible !important; }

/* ---------- 2. NADE TV: ver nd-nadetv.css (Loja > NADE TV) ---------- */
