/* ZebuBet Public UI v4 — camada exclusivamente visual */
:root {
  --ui-bg: #07100b;
  --ui-header: rgba(5, 11, 8, .96);
  --ui-surface: #0d1711;
  --ui-surface-2: #121f17;
  --ui-border: rgba(255, 255, 255, .09);
  --ui-text: #f4f8f5;
  --ui-muted: #8e9b93;
  --ui-max: 1180px;
  --ui-radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -100px, color-mix(in srgb, var(--brand) 10%, transparent), transparent 420px),
    var(--ui-bg);
  color: var(--ui-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.bonus-cadastro {
  padding: 7px 12px;
  background: var(--brand);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 66px;
  padding: 9px 0;
  background: var(--ui-header);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.top-bar .container {
  width: calc(100% - 32px);
  max-width: var(--ui-max);
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
}

.top-bar .logo img {
  width: 150px;
  max-width: none;
  height: 44px;
  object-fit: contain;
}

.top-bar .buttons { gap: 8px; }

.top-bar .button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 900;
}

.top-bar .button.modalLogin {
  border-color: var(--ui-border);
  background: var(--ui-surface);
  color: #fff;
}

.categorias-wrapper,
.slider-wrapper,
.busca-container,
.lista-jogos,
.footer .container-footer,
.footer-text,
.footer-centered-img,
.footer-bottom,
.footer-line {
  width: calc(100% - 32px);
  max-width: var(--ui-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.categorias-wrapper { margin-top: 16px; }

.categorias-jogos {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categorias-jogos::-webkit-scrollbar { display: none; }

.categoria-btn,
.categoria-esporte-wrap .botao-esporte-btn {
  width: auto;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--ui-border);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ui-surface);
  color: #c6d0ca;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.categoria-btn.active,
.categoria-btn:hover,
.categoria-esporte-wrap .botao-esporte-btn:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, var(--ui-surface));
  color: var(--brand);
}

.categoria-esporte-wrap,
.categoria-esporte-wrap .botao-esporte { width: auto; height: auto; margin: 0; background: transparent; }

.slider-wrapper { margin-top: 16px; padding: 0; }

.slider-container {
  min-height: 0;
  max-height: none;
  aspect-ratio: 5 / 1;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.slides, .slide, .slide-action { width: 100%; height: 100%; }

.slide-action {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slide-action img,
.slide img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
}

.dots { margin-top: 8px; }
.dot { width: 6px; height: 6px; }
.dot.active { width: 22px; border-radius: 99px; background: var(--brand); }

.busca-container { margin-top: 16px; padding: 0; }
.busca-input-icon { max-width: none; }

.busca-input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: var(--ui-surface);
  color: #fff;
}

.busca-input:focus {
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
}

.busca-resultado {
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: #0b130e;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .3);
}

.lista-jogos {
  margin-top: 0;
  padding: 15px 0;
  background: transparent;
}

.titulo-lista-jogos {
  margin: 12px 0 11px;
  color: #f3f7f4;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.01em;
}

.lista-jogos .jogos-container {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.lista-jogos .jogo-card {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: .72;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  background: var(--ui-surface);
  box-shadow: 0 9px 24px rgba(0, 0, 0, .16);
  transform: none;
}

.lista-jogos .jogo-card:hover { transform: translateY(-3px); }

.lista-jogos .jogo-img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.lista-jogos .jogo-info {
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 34px 9px 9px;
  transform: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .94));
  text-align: left;
  z-index: 4;
}

.lista-jogos .jogo-info .nome {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lista-jogos .jogo-info .jogadores { display: none; }
.lista-jogos .jogo-overlay { border-radius: 13px; background: rgba(0, 0, 0, .58); }
.lista-jogos .jogar-btn { border-radius: 11px; background: var(--brand); color: var(--brand-text); font-weight: 900; }

.btn-ver-mais,
.submit-button {
  min-height: 44px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-text);
  font-weight: 900;
}

.footer {
  margin-top: 32px;
  padding-bottom: 22px;
  background: #050b08;
  border-top: 1px solid var(--ui-border);
}

.footer .container-footer { gap: 18px; }
.footer-column { min-width: 0; }
.footer-text { color: #87928b; }
.footer-line { border-color: var(--ui-border); }

.overlay {
  z-index: 2000;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(5px);
}

.modal {
  z-index: 2001;
  width: min(92vw, 470px);
  max-width: 470px;
  max-height: 90dvh;
  overflow: auto;
  padding: 23px;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  background: #101914;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
}

.modal-content h2 {
  margin: 0 0 18px;
  padding-right: 40px;
  color: #fff;
  text-align: left;
  font-size: 21px;
}

.close-modal {
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #1a251e;
  color: #fff;
}

.input-icon input,
.input-icon textarea {
  height: 50px;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: #0a110d;
  color: #fff;
}

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

@media (max-width: 900px) {
  .lista-jogos .jogos-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html { scroll-padding-top: 68px; }

  .bonus-cadastro { padding: 6px 8px; font-size: 9px; }
  .top-bar { min-height: 56px; padding: 6px 0; }

  .top-bar .container {
    width: calc(100% - 20px);
    min-height: 44px;
    gap: 8px;
  }

  .top-bar .logo img { width: 105px; max-width: 31vw; height: 34px; }
  .top-bar .buttons { gap: 5px; }

  .top-bar .button {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 10px;
  }

  .top-bar .button.modalCadastro { display: none; }

  .categorias-wrapper,
  .slider-wrapper,
  .busca-container,
  .lista-jogos,
  .footer .container-footer,
  .footer-text,
  .footer-centered-img,
  .footer-bottom,
  .footer-line {
    width: calc(100% - 20px);
  }

  .categorias-wrapper { margin-top: 10px; }
  .categorias-jogos { gap: 7px; }

  .categoria-btn,
  .categoria-esporte-wrap .botao-esporte-btn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 11px;
  }

  .slider-wrapper { margin-top: 11px; }
  .slider-container { aspect-ratio: 5 / 2; border-radius: 11px; }
  .slide-action img, .slide img { object-fit: cover; object-position: left center; }
  .dots { margin-top: 6px; }

  .busca-container { margin-top: 12px; }
  .busca-input { height: 44px; border-radius: 11px; font-size: 14px; }

  .lista-jogos { padding: 10px 0; }
  .titulo-lista-jogos { margin: 9px 0; font-size: 14px; }

  .lista-jogos .jogos-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }

  .lista-jogos .jogo-card { min-width: 0; border-radius: 11px; }
  .lista-jogos .jogo-img { border-radius: 10px; }
  .lista-jogos .jogo-info { padding: 25px 6px 6px; }
  .lista-jogos .jogo-info .nome { font-size: 10px; }
  .lista-jogos .jogo-overlay { opacity: 0; pointer-events: none; }
  .lista-jogos .jogar-btn { display: none; }

  .modal {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(18px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .modal.show { transform: translateY(0); }

  .footer { margin-top: 24px; padding-bottom: 12px; }
  .footer .container-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-column { width: 100%; margin: 0; padding: 8px; }
  .footer-column h4 { margin: 0 0 7px; font-size: 13px; }
  .footer-column ul { margin: 0; }
  .footer-column ul li a { font-size: 11px; }
  .footer-text { font-size: 10px; line-height: 1.5; }
  .footer-bottom { font-size: 10px; }

  .public-mobile-nav {
    position: fixed;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 1900;
    min-height: 62px;
    padding: 5px 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: rgba(8, 16, 11, .96);
    box-shadow: 0 15px 45px rgba(0, 0, 0, .5);
    backdrop-filter: blur(18px);
  }

  .public-mobile-nav a,
  .public-mobile-nav button {
    min-height: 50px;
    padding: 4px 2px;
    border: 0;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    color: #919d95;
    text-decoration: none;
    font-size: 9px;
    font-weight: 750;
  }

  .public-mobile-nav i { font-size: 16px; }
  .public-mobile-nav .public-signup { background: var(--brand); color: var(--brand-text); }
}

@media (max-width: 355px) {
  .lista-jogos .jogos-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
