@import url("./ui-v4.css?v=base-20260903");

/* Correcoes incrementais da UI v5 */
#modalCadastro {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#modalCadastro::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Menu de categorias: sempre centralizado quando houver espaço. */
.categorias-wrapper {
  width: calc(100% - 32px);
  max-width: var(--ui-max);
  margin: 12px auto 0;
  overflow: hidden;
}

.categorias-jogos {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

.categoria-btn,
.categoria-esporte-wrap,
.categoria-esporte-wrap .botao-esporte,
.categoria-esporte-wrap .botao-esporte-card,
.categoria-esporte-wrap .botao-esporte-btn {
  flex: 0 0 auto;
  width: auto;
}

@media (max-width: 640px) {
  body { padding-bottom: 18px; }
  html { scroll-padding-top: 68px; }

  .bonus-cadastro {
    min-height: 23px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1.15;
  }

  .top-bar {
    min-height: 54px;
    padding: 5px 0;
    background: rgba(4, 11, 7, .98);
  }

  .top-bar .container {
    width: calc(100% - 20px);
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .top-bar .logo {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
  }

  .top-bar .logo img {
    width: 102px;
    max-width: 28vw;
    height: 31px;
    object-fit: contain;
    object-position: left center;
  }

  .top-bar .buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
  }

  .top-bar .button,
  .top-bar .button.modalCadastro,
  .top-bar .button.modalLogin {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
  }

  .top-bar .button.modalCadastro {
    border-color: color-mix(in srgb, var(--brand) 64%, transparent);
    background: var(--brand);
    color: var(--brand-text);
  }

  .top-bar .button.modalLogin {
    min-width: 54px;
    border-color: rgba(255,255,255,.12);
    background: #111a15;
    color: #fff;
  }

  .categorias-wrapper {
    width: calc(100% - 20px);
    margin-top: 8px;
    overflow: hidden;
  }

  .categorias-jogos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 2px 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .categorias-jogos::-webkit-scrollbar { display: none; }

  .categoria-btn,
  .categoria-esporte-wrap,
  .categoria-esporte-wrap .botao-esporte,
  .categoria-esporte-wrap .botao-esporte-card,
  .categoria-esporte-wrap .botao-esporte-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
  }

  .categoria-btn,
  .categoria-esporte-wrap .botao-esporte-btn {
    min-height: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    gap: 6px;
    font-size: 10px !important;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    scroll-snap-align: start;
  }

  .categoria-btn span,
  .categoria-esporte-wrap .botao-esporte-btn span {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .categoria-esporte-wrap .botao-esporte {
    position: static !important;
    height: 36px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .public-mobile-nav { display: none !important; }
}

@media (max-width: 370px) {
  .top-bar .logo img { width: 88px; max-width: 25vw; }
  .top-bar .buttons { gap: 4px; }
  .top-bar .button,
  .top-bar .button.modalCadastro,
  .top-bar .button.modalLogin {
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }
}
