/* ===== ESCOPO: só vale dentro de #dota2-menu ===== */
    #dota2-menu * { box-sizing: border-box; }

    #dota2-menu .dota-hero-menu {
      font-family: 'Arial', sans-serif;
      color: #ffffff;
      margin: 0;
      padding: 20px 20px 0 20px; /* sem espaço extra embaixo */
      /* min-height removido para não forçar altura de tela */
    }

    #dota2-menu .dota-hero-menu * { margin: 0; padding: 0; box-sizing: border-box; }

    /* Grid do container principal */
    #dota2-menu .menu-container-dota {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(2px, 1fr));
      gap: 20px;
      max-width: 100%;
      margin: 0 auto;
      align-items: start;
    }

    /* Box de categoria */
    #dota2-menu .menu-category-dota {
      background: linear-gradient(145deg, #2a2f36 0%, #232831 100%);
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
      animation: d2-fadeInUp 0.6s ease forwards;
      opacity: 0;
      transform: translateY(20px);
    }
    #dota2-menu .menu-category-dota::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
      border-radius: 12px 12px 0 0;
    }
    #dota2-menu .menu-category-dota.strength::before { background: linear-gradient(90deg, #ff4757, #ff6b81); }
    #dota2-menu .menu-category-dota.agility::before { background: linear-gradient(90deg, #2ed573, #7bed9f); }
    #dota2-menu .menu-category-dota.intelligence::before { background: linear-gradient(90deg, #5352ed, #70a1ff); }
    #dota2-menu .menu-category-dota.universal::before { background: linear-gradient(90deg, #ffa502, #ff7675); }

    #dota2-menu .menu-category-dota h3 {
      font-size: 18px; font-weight: bold; margin-bottom: 16px; color: #fff;
      text-transform: uppercase; letter-spacing: 1px; text-align: center;
      text-shadow: 0 2px 4px rgba(0,0,0,.5);
    }

    /* Grid dos heróis */
    #dota2-menu .heroes-grid-dota {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 1px;
      max-height: 580px; /* se quiser eliminar rolagem interna, remova esta linha */
      overflow-y: auto;
      padding-right: 8px;
    }

    /* Scrollbar */
    #dota2-menu .heroes-grid-dota::-webkit-scrollbar { width: 6px; }
    #dota2-menu .heroes-grid-dota::-webkit-scrollbar-track { background: rgba(255,255,255,.1); border-radius: 3px; }
    #dota2-menu .heroes-grid-dota::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#4ecdc4,#45b7d1); border-radius: 3px; }
    #dota2-menu .heroes-grid-dota::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#45b7d1,#4ecdc4); }

    /* Card de herói (agora é <a>) */
    #dota2-menu .menu-item-dota {
      display: block;
      text-decoration: none;
      color: inherit;
      background: linear-gradient(145deg, #3a3f47 0%, #2d3238 100%);
      border-radius: 8px; overflow: hidden; cursor: pointer;
      transition: all .3s ease; border: 2px solid transparent; position: relative;
      aspect-ratio: 16/9;
    }
    #dota2-menu .menu-item-dota:hover { transform: translateY(-2px) scale(1.02); border-color: #4ecdc4; box-shadow: 0 8px 25px rgba(78,205,196,.3); }
    #dota2-menu .menu-item-dota:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 15px rgba(78,205,196,.2); }

    #dota2-menu .menu-item-dota img {
      width: 100%; height: 100%; object-fit: cover; transition: all .3s ease;
      background: linear-gradient(90deg, #2a2f36 25%, #3a3f47 50%, #2a2f36 75%);
      background-size: 200% 100%; animation: d2-loading 2s infinite;
      display: block;
    }
    #dota2-menu .menu-item-dota:hover img { filter: brightness(1.1) saturate(1.2); }
    #dota2-menu .menu-item-dota img[src]:not([src=""]) { background: none; animation: none; }

    /* Overlay com nome */
    #dota2-menu .menu-item-dota::after {
      content: attr(data-name);
      position: absolute; bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,.8));
      color: #fff; font-size: 10px; font-weight: bold; text-align: center;
      padding: 8px 4px 4px; transform: translateY(100%); transition: transform .3s ease;
      text-shadow: 0 1px 2px rgba(0,0,0,.8);
    }
    #dota2-menu .menu-item-dota:hover::after { transform: translateY(0); }

    /* Responsivo */
    @media (max-width: 1200px){
      #dota2-menu .menu-container-dota { grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:16px; }
    }
    @media (max-width: 768px){
      #dota2-menu .dota-hero-menu { padding: 10px 10px 0 10px; }
      #dota2-menu .menu-container-dota { grid-template-columns: 1fr; gap:16px; }
      #dota2-menu .heroes-grid-dota { grid-template-columns: repeat(4, 1fr); gap: 6px; }
      #dota2-menu .menu-category-dota h3 { font-size: 16px; }
    }
    @media (max-width: 480px){
      #dota2-menu .heroes-grid-dota { grid-template-columns: repeat(3, 1fr); gap: 4px; }
      #dota2-menu .menu-item-dota::after { font-size: 8px; padding: 6px 2px 2px; }
    }
    @media (max-width: 360px){
      #dota2-menu .heroes-grid-dota { grid-template-columns: repeat(2, 1fr); }
    }

    /* Animações isoladas para não colidir com o tema */
    @keyframes d2-fadeInUp { to { opacity:1; transform: translateY(0); } }
    @keyframes d2-loading { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
    
/* --- MOBILE: categorias em acordeão, só quando #dota2-menu[data-accordion="1"] --- */
@media (max-width: 768px){
  #dota2-menu[data-accordion="1"] .menu-category-dota { padding: 12px; }
  #dota2-menu[data-accordion="1"] .menu-category-dota h3{
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    user-select: none;
  }
  #dota2-menu[data-accordion="1"] .menu-category-dota h3::after{
    content: "+";
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease;
  }
  #dota2-menu[data-accordion="1"] .menu-category-dota.is-open h3::after{
    content: "–";
  }

  /* fecha as grades por padrão no mobile */
  #dota2-menu[data-accordion="1"] .heroes-grid-dota{
    display: none !important;
    max-height: none;
    padding-right: 0;
  }
  /* quando a categoria estiver aberta, mostra a grade */
  #dota2-menu[data-accordion="1"] .menu-category-dota.is-open .heroes-grid-dota{
    display: grid !important;
    margin-top: 10px;
  }
}
/* === DESKTOP GRANDE: força 4 colunas e amplia a largura útil === */
@media (min-width: 1280px){
  /* 4 colunas fixas para as 4 categorias */
  #dota2-menu .menu-container-dota{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    /* ajuste a largura máxima como preferir (1600–1920px) */
    max-width: 1760px; /* 4 cards largos + gaps confortáveis */
  }
}

/* === OPCIONAL: “full-bleed” pra escapar de containers estreitos do tema ===
   Ative colocando data-fullbleed="1" no <div id="dota2-menu"> */
#dota2-menu[data-fullbleed="1"] .dota-hero-menu{
  width: 100vw;            /* ocupa toda a largura da janela */
  margin-left: 50%;        /* centraliza quebrando o container pai */
  transform: translateX(-50%);
  padding-left: 24px;      /* mantêm respiro nas bordas */
  padding-right: 24px;
}

/* === Mantém as 4 boxes com a mesma altura === */
#dota2-menu .menu-container-dota{
  align-items: stretch; /* todas as colunas com mesma altura */
}

#dota2-menu .menu-category-dota{
  display: flex;
  flex-direction: column; /* conteúdo interno organizado verticalmente */
  height: 100%;           /* ocupa toda a altura disponível */
}