/* menu do topo com submenus (04/12). Vale para .nav-links (páginas novas) e .gh-links (streamer, mata-mata). */
.mn { position: relative; display: flex; align-items: center; gap: 2px; }
.nav-links > .mn:first-child, .gh-links > .mn:first-child { margin-left: auto; }
.mn-abre { display: grid; place-items: center; width: 22px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #ccc2f5; cursor: pointer; }
.mn-abre svg { width: 14px; height: 14px; transition: transform .15s; }
.mn-abre:hover, .mn.aberto .mn-abre { color: #fff9cb; }
.mn.aberto .mn-abre svg { transform: rotate(180deg); }
.mn-abre:focus-visible { outline: 2px solid #ffb2c6; outline-offset: 2px; }
.mn-sub { display: none; }
.nav-links .mn .mn-sub a:not(.btn), .gh-links .mn .mn-sub a:not(.gh-cta) {
  display: block; margin: 0; padding: 10px 12px; border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-transform: none; white-space: nowrap; color: #ccc2f5; text-decoration: none;
}
.nav-links .mn .mn-sub a:not(.btn):hover, .gh-links .mn .mn-sub a:not(.gh-cta):hover,
.nav-links .mn .mn-sub a:not(.btn):focus-visible, .gh-links .mn .mn-sub a:not(.gh-cta):focus-visible { background: rgba(255,178,198,.12); color: #fff9cb; outline: none; }
.nav-links .mn .mn-sub a:not(.btn)::after, .gh-links .mn .mn-sub a:not(.gh-cta)::after { content: none; }
.mn-sub small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #9d93c9; }

/* computador: abre ao passar o mouse, com o teclado (foco) ou na setinha */
@media (min-width: 761px) {
  .nav-links .mn-sub { position: absolute; top: 100%; left: -12px; z-index: 50; min-width: 230px; padding-top: 10px; }
  .nav-links .mn:hover .mn-sub, .nav-links .mn:focus-within .mn-sub, .nav-links .mn.aberto .mn-sub { display: block; }
}
@media (min-width: 861px) {
  .gh-links .mn-sub { position: absolute; top: 100%; left: -12px; z-index: 50; min-width: 230px; padding-top: 10px; }
  .gh-links .mn:hover .mn-sub, .gh-links .mn:focus-within .mn-sub, .gh-links .mn.aberto .mn-sub { display: block; }
}
.mn-caixa { padding: 6px; border: 1px solid rgba(204,194,245,.18); border-radius: 12px; background: #0e0f1f; box-shadow: 0 18px 36px rgba(0,0,0,.45); }

/* celular: o menu já abre em lista; cada nome ganha uma setinha que mostra as outras opções */
@media (max-width: 760px) {
  .nav-links > .mn, .nav-links > .mn:first-child { flex-wrap: wrap; margin: 0; border-bottom: 1px solid rgba(204,194,245,.16); }
  .nav-links > .mn > a:not(.btn) { flex: 1; border-bottom: 0 !important; }
  .nav-links .mn-abre { width: 44px; height: 44px; }
  .nav-links .mn-abre svg { width: 18px; height: 18px; }
  .nav-links .mn.aberto .mn-sub { display: block; flex-basis: 100%; padding: 0 0 10px 10px; }
  .nav-links .mn-caixa { padding: 0; border: 0; background: none; box-shadow: none; }
}
@media (max-width: 860px) {
  .gh-links > .mn, .gh-links > .mn:first-child { flex-wrap: wrap; margin: 0; border-bottom: 1px solid rgba(204,194,245,.16); }
  .gh-links > .mn > a { flex: 1; border-bottom: 0 !important; }
  .gh-links .mn-abre { width: 44px; height: 44px; }
  .gh-links .mn-abre svg { width: 18px; height: 18px; }
  .gh-links .mn.aberto .mn-sub { display: block; flex-basis: 100%; padding: 0 0 10px 10px; }
  .gh-links .mn-caixa { padding: 0; border: 0; background: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .mn-abre svg { transition: none; } }
