  /* Barra de atalhos fixa no rodapé -- só celular/tablet estreito (mesmo corte de 900px da
     gaveta do painel virar sobreposição). Compartilhada pelo painel (layout()) e pelas
     telas públicas /vila e /inscricao-liga (que têm casca própria e não carregam o
     painel.css), pra dar sempre o mesmo caminho de ida e volta entre elas. Escondida no
     desktop. O espaço reservado embaixo é um ::after (não padding do body): vila.css e
     inscricao.css já definem padding próprio no body e brigariam por ordem de carga. */
  .nav-rodape { display: none; }
  @media (max-width: 900px) {
    :root { --altura-nav-rodape: calc(58px + env(safe-area-inset-bottom)); }
    body::after { content: ''; display: block; height: var(--altura-nav-rodape); }
    .nav-rodape {
      display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 240;
      height: var(--altura-nav-rodape); padding-bottom: env(safe-area-inset-bottom);
      background: #000; border-top: 3px solid #e0332a; box-sizing: border-box;
    }
    .nav-rodape a {
      flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
      justify-content: center; gap: 3px; color: #8b8d93; text-decoration: none;
      font: 700 0.62rem/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      text-transform: uppercase; letter-spacing: 0.3px;
      -webkit-tap-highlight-color: transparent;
    }
    .nav-rodape a svg { width: 20px; height: 20px; flex-shrink: 0; }
    .nav-rodape a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-rodape a:active { background: rgba(255,255,255,0.08); }
    .nav-rodape a.ativo { color: #fff; box-shadow: inset 0 3px 0 #e0332a; }

    /* Botão "+" e o painel com os atalhos que não cabem na barra (ver montarNavRodapeHtml). */
    .nav-rodape-mais { flex: 1 1 0; min-width: 0; display: flex; }
    .nav-rodape-mais > summary {
      flex: 1; list-style: none; cursor: pointer; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 3px; color: #8b8d93;
      font: 700 0.62rem/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
      text-transform: uppercase; letter-spacing: 0.3px;
      -webkit-tap-highlight-color: transparent;
    }
    .nav-rodape-mais > summary::-webkit-details-marker { display: none; }
    .nav-rodape-mais > summary svg { width: 20px; height: 20px; transition: transform 0.15s; }
    .nav-rodape-mais > summary.ativo { color: #fff; box-shadow: inset 0 3px 0 #e0332a; }
    .nav-rodape-mais[open] > summary { color: #fff; }
    .nav-rodape-mais[open] > summary svg { transform: rotate(45deg); }
    .nav-rodape-mais-painel {
      position: fixed; left: 8px; right: 8px; bottom: calc(var(--altura-nav-rodape) + 8px);
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px;
      background: #111; border: 1px solid #2a2c31; border-top: 3px solid #e0332a;
      border-radius: 10px; box-shadow: 0 -6px 24px rgba(0,0,0,0.5);
    }
    .nav-rodape-mais-painel a { padding: 10px 4px; border-radius: 8px; font-size: 0.66rem; }
    .nav-rodape-mais-painel a.ativo { box-shadow: none; background: rgba(224,51,42,0.18); }
  }
