/* version= 0.4.0 */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&display=swap");

html {
  overflow: hidden;
}
:root {
  --first-color: #ffffff;

  --second-color: #014d1a;

  --third-color: #01330f;

  --fourth-color: #016622;

  --fifth-color: #011a08;

  --sixth-color: #012e12;

  --seventh-color: #35735a;

  --eighth-color: #00aa44;

  --ninth-color: #00cc55;

  --tenth-color: #010d05;

  --eleventh-color: #00e676;

  --twelfth-color: #1aff8c;

  --thirteenth-color: #004d1a;

  --fourteenth-color: #043310;

  --fifteenth-color: #b5ffd9;

  --sixteenth-color: #ccff00; /* opcional: verde-limão */

  --seventeenth-color: #009933;

  --eighteenth-color: #333333;
  --nineteenth-color: #555555;
  --twentieth-color: #666666;
  --twenty-first-color: #222222;

  --green: #00c800; /* principal */
}
body {
  background: radial-gradient(circle, var(--first-color), var(--second-color));
  background-position: top;
  background-size: cover;
  overflow: auto;
  padding-bottom: 1vw;
  font-weight: 600;
  padding-top: 10px;
}
.main {
  padding: 5px 0 20px 0 !important;
  margin-top: 60px !important;
}
body,
.main-menu,
.main,
.modal-dialog .bilhete-melhores-cartelas,
.login-page {
  background: var(--second-color) !important;
  background-image: none;
}
.header .row {
  flex-wrap: nowrap;
}
.header .material-icons {
  font-size: 25px;
}
.main.hideHeader {
  padding-top: 0px !important;
}
.proximos .acumulado {
  overflow: visible !important;
  animation: balancar-2 3s infinite ease-in-out;
}
.proximos .acumulado::before {
  display: none;
}

/* Definindo o delay para cada item (intervalo entre animações) */
.proximos .linha .premio:nth-child(1),
.proximos .linha .premio:nth-child(1)::before {
  animation-delay: 0s;
}

.proximos .linha .premio:nth-child(2),
.proximos .linha .premio:nth-child(2)::before {
  animation-delay: 1s;
}

.proximos .linha .premio:nth-child(3),
.proximos .linha .premio:nth-child(3)::before {
  animation-delay: 2s;
}

.proximos .linha .premio:nth-child(4),
.proximos .linha .premio:nth-child(4)::before {
  animation-delay: 3s;
}

.proximos .linha .premio:nth-child(5),
.proximos .linha .premio:nth-child(5)::before {
  animation-delay: 4s;
}
.three-prizes .premio {
  overflow: hidden;
}
.three-prizes .premio::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateY(-50%);
  animation: shine 9s infinite;
}

@keyframes balancar {
  0% {
    transform: scaleX(0.9) rotate(-3deg); /* diminui e inclina */
  }
  1% {
    transform: scaleX(1.1) rotate(3deg); /* diminui e inclina */
  }
  2% {
    transform: scaleX(1.1) rotate(-3deg); /* aumenta e inclina pro outro lado */
  }
  3% {
    transform: scaleX(1.1) rotate(3deg); /* volta ao normal */
  }
  4% {
    transform: scaleX(1.1) rotate(-3deg); /* diminui e inclina */
  }

  5% {
    transform: scaleX(1) rotate(0deg); /* parado por 3s */
  }
  100% {
    transform: scaleX(1) rotate(0deg); /* parado por 3s */
  }
}

@keyframes balancar-2 {
  0% {
    transform: scaleX(0.9) rotate(-3deg); /* diminui e inclina */
  }
  3% {
    transform: scaleX(1.1) rotate(3deg); /* diminui e inclina */
  }
  6% {
    transform: scaleX(1.1) rotate(-3deg); /* aumenta e inclina pro outro lado */
  }
  9% {
    transform: scaleX(1.1) rotate(3deg); /* volta ao normal */
  }
  12% {
    transform: scaleX(1.1) rotate(-3deg); /* diminui e inclina */
  }

  15% {
    transform: scaleX(1) rotate(0deg); /* parado por 3s */
  }
  100% {
    transform: scaleX(1) rotate(0deg); /* parado por 3s */
  }
}
@keyframes pulse-ball {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shine {
  0% {
    opacity: 0;
    left: -200%;
  }
  5% {
    opacity: 1;
    left: -100%;
  }
  10% {
    opacity: 1;
    left: 100%;
  }
  15% {
    left: 200%;
    opacity: 0;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

#comprar .qtd-bt {
  background: var(--seventeenth-color);
  color: var(--first-color);
  border: none;
}

#comprar .bt-comprar,
#comprar .bt-menos-mais {
  background: var(--third-color);
  color: white;
}

.cartela {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cartela .numero {
  width: 19%;
  position: relative;
}

/* Cabeçalho BINGO – desktop */
.cartela .numero:nth-child(2),
.cartela .numero:nth-child(3),
.cartela .numero:nth-child(4),
.cartela .numero:nth-child(5),
.cartela .numero:nth-child(6) {
  margin-top: 2.3vw !important;
  position: relative;
}

.cartela .numero:nth-child(2)::before,
.cartela .numero:nth-child(3)::before,
.cartela .numero:nth-child(4)::before,
.cartela .numero:nth-child(5)::before,
.cartela .numero:nth-child(6)::before {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--first-color);
  background: var(--eighth-color);
  border-radius: 0.5vw;
  top: -2.4vw;
}

.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-1
  .numero:nth-child(2)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-1
  .numero:nth-child(3)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-1
  .numero:nth-child(4)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-1
  .numero:nth-child(5)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-1
  .numero:nth-child(6)::before {
  top: -2.5vw !important;
}

.zoom-cartela-1 .cartela .numero:nth-child(2),
.zoom-cartela-1 .cartela .numero:nth-child(3),
.zoom-cartela-1 .cartela .numero:nth-child(4),
.zoom-cartela-1 .cartela .numero:nth-child(5),
.zoom-cartela-1 .cartela .numero:nth-child(6) {
  margin-top: 2.5vw !important;
}

.coluna-direita .bilhete-melhores-cartelas.zoom-cartela-2 .numero {
  width: 17.9% !important;
}

.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-2
  .numero:nth-child(2)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-2
  .numero:nth-child(3)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-2
  .numero:nth-child(4)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-2
  .numero:nth-child(5)::before,
.coluna-direita
  .bilhete-melhores-cartelas.zoom-cartela-2
  .numero:nth-child(6)::before {
  top: -1.9vw !important;
}

.zoom-cartela-2 .cartela .numero:nth-child(2),
.zoom-cartela-2 .cartela .numero:nth-child(3),
.zoom-cartela-2 .cartela .numero:nth-child(4),
.zoom-cartela-2 .cartela .numero:nth-child(5),
.zoom-cartela-2 .cartela .numero:nth-child(6) {
  margin-top: 1.8vw !important;
}

.cartela .numero:nth-child(2)::before {
  content: "B";
}
.cartela .numero:nth-child(3)::before {
  content: "I";
}
.cartela .numero:nth-child(4)::before {
  content: "N";
}
.cartela .numero:nth-child(5)::before {
  content: "G";
}
.cartela .numero:nth-child(6)::before {
  content: "O";
}

.coluna-direita .bilhete-melhores-cartelas .cartela {
  height: auto !important;
}

.cartelas-compradas {
  background-image: none;
  background: linear-gradient(
    to right,
    var(--fifteenth-color) 0%,
    var(--first-color) 50%,
    var(--fifteenth-color) 100%
  );
}

.esquerda .premios .premio .value {
  margin-top: 1vw !important;
}

.esquerda .premios .acumulado .label {
  font-size: 1.2vw;
  padding-right: 1vw;
}

/* (valor sobrescrito mais abaixo – mantido último) */

/* PROXIMOS – bloco único sem duplicação */
.proximos {
  width: 100%;
  padding: 1vw 2vw 0;
}

.proximos .linha:first-child {
  background: rgba(255, 255, 255, 1);
  margin-bottom: 0.5vw;
  padding: 5px 0;
}
.proximos .info {
  height: auto;
}
.proximos .info:nth-child(1) .label,
.proximos .info:nth-child(2) .label,
.proximos .info:nth-child(3) .label,
.proximos .info:nth-child(4) .label,
.proximos .info:nth-child(5) .label {
  color: black;
  font-size: 1.4vw;
  line-height: 2vw;
}

.proximos .info:nth-child(1) .value,
.proximos .info:nth-child(2) .value,
.proximos .info:nth-child(3) .value,
.proximos .info:nth-child(4) .value,
.proximos .info:nth-child(5) .value {
  color: var(--eleventh-color);
  font-size: 1.4vw;
  line-height: 2vw;
}
.proximos .premio {
  padding: 1.4vw 3vw;
}
.proximos .premio .balls {
  display: none;
}
.proximos .premio {
  background: linear-gradient(
    to bottom,
    var(--twelfth-color),
    var(--tenth-color)
  );
  border: 0.2vw solid var(--first-color);
  color: white;
}

.proximos .acumulado {
  z-index: 9;
  background: linear-gradient(
    to bottom,
    var(--eighth-color),
    var(--thirteenth-color)
  ) !important;
}

/* Contador de espera */
.espera .relogio {
  height: auto;
  padding: 1vw;
  width: calc(100% - 4vw);
  background: var(--fourth-color);
  border-radius: 2vw;
  font-family: "Orbitron";
  margin: auto;
}

.espera .relogio .numero {
  color: var(--ninth-color);
  border-color: var(--fourteenth-color);
  background: var(--fourteenth-color);
  font-weight: 400;
  font-size: 6vw;
  line-height: 8vw;
}

.espera .relogio .doispontos {
  color: var(--ninth-color);
  font-size: 6vw;
  line-height: 8vw;
}

/* Premiado cartelas – desktop */
.premiado-cartelas .cartela .numero:nth-child(2),
.premiado-cartelas .cartela .numero:nth-child(3),
.premiado-cartelas .cartela .numero:nth-child(4),
.premiado-cartelas .cartela .numero:nth-child(5),
.premiado-cartelas .cartela .numero:nth-child(6) {
  margin-top: 0 !important;
}

.premiado-cartelas .cartela .numero:nth-child(2)::before,
.premiado-cartelas .cartela .numero:nth-child(3)::before,
.premiado-cartelas .cartela .numero:nth-child(4)::before,
.premiado-cartelas .cartela .numero:nth-child(5)::before,
.premiado-cartelas .cartela .numero:nth-child(6)::before {
  margin-top: -0.8vw;
}
.premiado .premiado-cartelas {
  gap: 20px;
  align-content: start;
  overflow: auto;
  height: 80%;
}
.premiado .premiado-cartelas .premiado-cartelas {
  width: 100%;
  gap: 10px;
  height: fit-content;
}
.premiado .cartela {
  width: 48%;
  margin: auto;
}
.premiado .cartela .numero {
  width: 19.3% !important;
}

.principal {
  padding-top: 30px;
  overflow: hidden;
  flex-wrap: wrap;
  height: auto;
}
#modal-cartelas-compradas {
  z-index: 9999;
}
#modal-cartelas-compradas .cartela .numero:nth-child(2)::before,
#modal-cartelas-compradas .cartela .numero:nth-child(3)::before,
#modal-cartelas-compradas .cartela .numero:nth-child(4)::before,
#modal-cartelas-compradas .cartela .numero:nth-child(5)::before,
#modal-cartelas-compradas .cartela .numero:nth-child(6)::before {
  top: -1.8vw;
}

#modal-cartelas-compradas .cartela .numero {
  width: 17% !important;
}

/* Bloco PRÊMIOS – desktop */
.esquerda .premios .premio {
  border: 0.2vw solid var(--fifth-color);
  border-radius: 1vw;
  background: var(--sixth-color);
}

.esquerda .premios .premio-ativo {
  border: 0.2 solid var(--sixteenth-color);
  box-shadow:
    0 0 5px cyan,
    0 0 10px cyan,
    0 0 20px cyan,
    0 0 20px cyan,
    0 0 20px cyan;
}

.esquerda .premios .premio .label {
  width: 80%;
  margin: auto;
  margin-top: -0.6vw;
  height: 3.2vw;
  background-color: var(--seventh-color);
  border-radius: 1vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.esquerda .premios .acumulado {
  border-color: var(--twenty-first-color);
  background: var(--eighth-color);
  color: var(--eighth-color);
  box-shadow:
    0 0 5px cyan,
    0 0 10px cyan,
    0 0 20px cyan,
    0 0 20px cyan,
    0 0 20px cyan;
}

.esquerda .premios .acumulado .label {
  color: var(--first-color);
}

.esquerda .premios .acumulado .value {
  position: relative;
  color: var(--sixteenth-color);
}

.esquerda .premios .acumulado-desativo {
  box-shadow: none;
  background: var(--eighteenth-color);
}

.esquerda .premios .acumulado-desativo .label {
  background: var(--nineteenth-color);
  color: var(--twentieth-color);
}

.esquerda .premios .acumulado-desativo .value {
  color: var(--twentieth-color);
}

.premios .acumulado-desativo .acumulado-numero {
  opacity: 0.2;
}

.premios .acumulado .acumulado-numero {
  right: -1.2vw;
  top: -1vw;
  z-index: 9;
  font-size: 1.5vw;
}

.star {
  right: -1vw;
  top: -1vw;
  z-index: 8;
}
/* PROXIMOS – ajustes gerais */
.proximos .info .value {
  font-size: 2.5vw;
  line-height: 4vw;
}

.proximos .acumulado {
  background: linear-gradient(
    to bottom,
    rgb(255, 0, 0),
    rgb(105 0 0)
  ) !important;
  color: yellow;
}

.numAcumulado {
  color: red;
  z-index: 9;
}

.video-descanso {
  height: 36vw;
}
.esquerda .centro {
  pointer-events: none;
}
/* SORTEIO BOLAS – valor principal */
.esquerda .centro .sorteio-bolas .info .box .value {
  background: var(--fifth-color);
  border: 2px solid var(--fourth-color);
  padding-top: 2vw;
}

.esquerda .centro .sorteio-bolas .info .box .label {
  background: var(--seventeenth-color);
  color: var(--fifteenth-color);
}

/* Bola principal animada */
.esquerda .centro .sorteio-bolas .bolas .bola-1 {
  z-index: 90;
}

.animaBolaPrincipal {
  animation: bolaAnimate 1s ease;
  z-index: 91;
}

@keyframes bolaAnimate {
  0% {
    transform: scale(5) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

h1.premio-title {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  font-size: 2rem;
  font-weight: bold;
  font-family:
    "Elms Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: yellow;
  text-transform: uppercase;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  -webkit-text-stroke: unset;
  font-weight: 900;
  margin-bottom: 50px;
}

#modal-result-partida h1.premio-title {
  background: linear-gradient(
    to bottom,
    var(--twelfth-color),
    var(--tenth-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-5deg);
  margin-bottom: 30px;
}

.ganhadores-final.show {
  min-height: 100vh;
  height: 100vh;
  overflow: auto;
  padding-top: 0;
  padding-bottom: 200px;
}

.ganhadores-final-title {
  display: none;
}
.login-box .align-right img {
  display: none;
}

.h-100 {
  overflow-x: hidden;
}

.header {
  background-image: none;
  background-color: var(--fourth-color);
  padding-right: 60px;
}

/* GANHADORES FINAL – blocos */
.ganhadores-final .box-amarelo {
  border: 0.4vw solid yellow;
  background-color: var(--fifth-color) !important;
  padding-bottom: 30px;
  font-family:
    "Elms Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  animation: pulse2 2s infinite;
  padding-bottom: 50px;
  overflow: auto;
}

.ganhadores-final .box:first-child img:last-child {
  display: none;
}

.ganhadores-final .box-amarelo .box-ganhador {
  height: auto;
  width: 60%;
  margin: 2vw;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid yellow;
  animation: pulse2 2s infinite;
  background: linear-gradient(
    to top,
    rgb(0 196 255 / 10%),
    rgb(30 51 105 / 10%)
  ) !important;
}

.ganhadores-final .box-amarelo .box-ganhador .nome {
  color: yellow;
  font-weight: 900;
  font-size: 1.2vw;
  padding: 0 10px;
  margin: 0;
  width: 100%;
}

.ganhadores-final .box-amarelo .box-ganhador .codigo {
  color: var(--eleventh-color);
  background: yellow;
  font-weight: 900;
  border-radius: 10px;
  font-size: 1.5vw;
}

.ganhadores-final .box-amarelo .box-ganhador .valor {
  color: white;
  font-weight: 900;
  font-size: 1.5vw;
}

/* Cartelas / listas direita */
.coluna-direita .bilhete-melhores-cartelas .cartela .cupom,
.coluna-direita .bilhete-melhores-cartelas .cartela .doador,
.coluna-direita .lista-melhores-cartelas .topo,
.premiado .cartela .doador,
.premiado .cartela .rodape {
  background: var(--fifth-color);
  color: white;
}

.esquerda .painel-numeros .numero {
  background: var(--fifteenth-color);
}

.esquerda .painel-numeros .sorteado,
.coluna-direita .lista-melhores-cartelas .corpo .faltam span {
  background: var(--seventeenth-color);
  color: white;
}

.esquerda .painel-numeros .ultimo {
  background: yellow;
  color: red;
}

.esquerda .premios .premio-desativo .label {
  background: var(--nineteenth-color);
  color: var(--twentieth-color);
}
.esquerda .premios .premio-desativo .value {
  color: var(--twentieth-color);
}

.esquerda .premios .premio-desativo {
  background: var(--eighteenth-color);
}
.coluna-direita .lista-melhores-cartelas {
  top: 0;
  margin-bottom: 1vw;
}
.coluna-direita .lista-melhores-cartelas .corpo .doador {
  color: var(--fifth-color);
}

.premiado .cartela .sorteado {
  background: var(--seventeenth-color);
}

.premiado .cartela .ultimo {
  background: red !important;
}

.cartela .sorteado {
  background: var(--seventeenth-color) !important;
}

.esquerda .painel-numeros {
  background-color: rgba(0, 0, 0, 0.5);
}

.premiado .janela .box {
  color: yellow;
  background: var(--eleventh-color);
}

/* Login */
form#sign_in h2.font-weight-normal.mb-5 {
  color: white !important;
  padding: 10px 20px !important;
  text-align: center !important;
  border-radius: 25px !important;
  font-size: 20px !important;
  margin-bottom: 10px !important;
}

.float-label .form-control.text-white {
  border-radius: 60px 20px 20px 60px;
  background: white;
  width: 100%;
  position: relative;
}

form#sign_in .form-group {
  position: relative;
  padding: 0;
}

form#sign_in .form-group input {
  color: white;
  background: none;
  border-radius: 0;
  padding-left: 50px;
  padding-right: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

form#sign_in .form-group::before {
  font-family: "Material Icons";
  content: "";
  display: flex;
  font-size: 24px;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 100%;
  padding-top: 6px;
  justify-content: center;
  z-index: 9;
}

form#sign_in .form-group:has(input[name="email"])::before {
  content: "perm_identity" !important;
}
form#sign_in .form-group:has(input[name="password"])::before {
  content: "lock" !important;
}
form#sign_in .form-group:has(input[name="password_confirmation"])::before {
  content: "lock" !important;
}
form#sign_in .form-group:has(input[name="cpf"])::before {
  content: "assignment_ind" !important;
}

form#sign_in .float-label .form-control-label {
  display: none;
}

/**
 * STYLE COMPRAR
 */

.modal-comprar #comprar {
  height: 200px;
  padding-top: 50px !important;
}

.modal-comprar .div-esq {
  width: 100%;
}

.modal-comprar .div-dir {
  float: none;
  display: flex;
  width: 100%;
}

.modal-comprar .div-100 {
  display: flex;
  width: 100%;
  height: auto;
  justify-content: space-between;
  gap: 5px;
}

.modal-comprar .div-100r {
  width: 100%;
  height: auto;
  display: flex;
  gap: 10px;
  margin: 5px 0;
}

.modal-comprar .quadro-qtd {
  height: auto;
  display: flex;
  width: 50%;
}

#comprar .bt-menos-mais {
  height: auto;
}

.modal-comprar .div-100r .input-valor input {
  width: 100%;
  height: 30px;
  border: none;
  background: #efefef;
  font-weight: 500;
  border-radius: 10px;
  padding: 0 10px;
}

.modal-comprar .div-dir button {
  top: 0;
  width: 100%;
  color: white;
  border: none;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-comprar #comprar .qtd-bt {
  background: white;
  color: var(--fourth-color);
  border: 1px solid var(--fourth-color);
  width: 12%;
  border-radius: 10px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.modal-comprar .quadro-qtd input {
  width: 100%;
  height: 30px;
  text-align: center;
}

.modal-comprar .bt-menos-mais {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 30px;
}

.modal-comprar .input-qtd {
  width: 60%;
}

.modal-comprar .menos-mais-esquerda {
  border-radius: 10px 0 0 10px;
}

.modal-comprar .menos-mais-direita {
  border-radius: 0 10px 10px 0;
}

/* Removendo cabeçalho BINGO via override */
.numero::before {
  display: none !important;
}

.cartela .numero:nth-child(2),
.cartela .numero:nth-child(3),
.cartela .numero:nth-child(4),
.cartela .numero:nth-child(5),
.cartela .numero:nth-child(6),
.zoom-cartela-2 .cartela .numero:nth-child(2),
.zoom-cartela-2 .cartela .numero:nth-child(3),
.zoom-cartela-2 .cartela .numero:nth-child(4),
.zoom-cartela-2 .cartela .numero:nth-child(5),
.zoom-cartela-2 .cartela .numero:nth-child(6),
.zoom-cartela-1 .cartela .numero:nth-child(2),
.zoom-cartela-1 .cartela .numero:nth-child(3),
.zoom-cartela-1 .cartela .numero:nth-child(4),
.zoom-cartela-1 .cartela .numero:nth-child(5),
.zoom-cartela-1 .cartela .numero:nth-child(6),
.premiado-cartelas .cartela .numero:nth-child(2),
.premiado-cartelas .cartela .numero:nth-child(3),
.premiado-cartelas .cartela .numero:nth-child(4),
.premiado-cartelas .cartela .numero:nth-child(5),
.premiado-cartelas .cartela .numero:nth-child(6) {
  margin-top: 0 !important;
}

/* Layout / branding */
.menu-footer {
  position: relative;
  margin-top: 50px;
}

.header .navbar-brand {
  background: url(logo-2.png) left top no-repeat !important;
  background-size: auto 100% !important;
  color: transparent !important;
  height: 50px !important;
  display: none;
}

.especial {
  border: 2px solid var(--fourth-color);
  background: linear-gradient(to bottom, white, var(--fifteenth-color));
  position: relative;
}

.super.especial {
  border: 2px solid red;
  background: linear-gradient(to bottom, white, #ffa7a2);
  position: relative;
}

.nome-sala {
  width: 0;
}

.login-page {
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
}

.login-box {
  max-width: 360px;
  margin: auto;
  padding: 20px 0;
}

body:has(form#sign_in) {
  background-color: black;
  height: 100vh;
}

html:has(form#sign_in) {
  overflow: auto;
}

.login-page .login-box .logo {
  background: url(logo.png) center top no-repeat !important;
  text-align: center !important;
  padding-top: 47px;
  height: 110px;
  background-size: contain !important;
}

.login-page .login-box .logo b {
  display: none !important;
}

.login-page .btn {
  background: var(--fourth-color) !important;
  font-weight: 700;
  transition: 0.5s;
  font-size: 12px !important;
  border: none !important;
}

/* Animação de pulse do ganhador */
@keyframes pulse2 {
  0%,
  100% {
    box-shadow:
      0 0 2px cyan,
      0 0 4px cyan,
      0 0 6px cyan,
      0 0 8px cyan;
  }
  50% {
    box-shadow:
      0 0 4px cyan,
      0 0 6px cyan,
      0 0 8px cyan,
      0 0 10px cyan;
  }
}

.proximos .acumulado.major .label,
.proximos .acumulado.major .value {
  font-size: 3.5vw !important;
}

.proximos .acumulado.minor .label,
.proximos .acumulado.minor .value {
  font-size: 3vw !important;
}
.proximos .acumulado.mini .label,
.proximos .acumulado.mini .value {
  font-size: 2.5vw !important;
}

.compra-fechada .bilhete-melhores-cartelas {
  height: 19vw;
}

.acumulado .star-acumulado {
  top: -3vw;
}
.cartelas-compradas {
  padding-right: 50px;
}
.modal {
  padding: 50px 0 50px;
}
.modal-dialog-scrollable .modal-body {
  overflow: auto;
  height: 90vh;
}
/* =========================
   MEDIA QUERY – PORTRAIT
   ========================= */
@media (orientation: portrait) {
  .ganhadores-final.show {
    padding-top: 4vw;
  }
  .coluna-direita .bilhete-melhores-cartelas {
    margin-bottom: 50px !important;
  }
  .main,
  #app-kit-games {
    min-height: unset !important;
    height: auto !important;
  }
  .modal {
    padding: 50px 0 50px;
  }
  .modal-dialog-scrollable {
    max-height: max-content;
  }
  .modal-dialog-scrollable .modal-content {
    max-height: max-content;
    overflow: unset;
  }

  .premiado .premiado-cartelas .premiado-cartelas {
    width: 80%;
    margin: auto;
  }
  .premiado .cartela {
    width: 100%;
  }

  .acumulado .star-acumulado {
    top: -5vw;
  }
  .compra-fechada .bilhete-melhores-cartelas {
    height: auto;
  }
  .video-descanso {
    height: 56vw;
  }

  .proximos .info .value {
    font-size: 3.2vw;
  }

  .principal {
    padding-top: 10px;
    min-height: 100vh !important;
    align-content: flex-start;
  }

  .premiado-cartelas .cartela .numero:nth-child(2),
  .premiado-cartelas .cartela .numero:nth-child(3),
  .premiado-cartelas .cartela .numero:nth-child(4),
  .premiado-cartelas .cartela .numero:nth-child(5),
  .premiado-cartelas .cartela .numero:nth-child(6) {
    margin-top: 0 !important;
  }

  .premiado-cartelas .cartela .numero:nth-child(2)::before,
  .premiado-cartelas .cartela .numero:nth-child(3)::before,
  .premiado-cartelas .cartela .numero:nth-child(4)::before,
  .premiado-cartelas .cartela .numero:nth-child(5)::before,
  .premiado-cartelas .cartela .numero:nth-child(6)::before {
    margin-top: 0.2vw;
  }

  .esquerda .premios {
    height: 13vw;
  }

  .esquerda .premios .premio {
    border: 0.5vw solid var(--fifth-color);
    border-radius: 2vw;
    background: var(--sixth-color);
  }

  .esquerda .premios .acumulado .label {
    font-size: 2.5vw;
  }

  .esquerda .premios .premio .value {
    font-size: 3.5vw;
  }

  .esquerda .premios .premio-ativo {
    border: 1vw solid var(--sixteenth-color);
    box-shadow:
      0 0 5px cyan,
      0 0 10px cyan,
      0 0 20px cyan,
      0 0 20px cyan,
      0 0 20px cyan;
  }

  .esquerda .premios .premio .label {
    width: 80%;
    margin: auto;
    margin-top: -0.6vw;
    height: 5vw;
    background-color: var(--seventh-color);
    border-radius: 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .esquerda .premios .acumulado {
    border-color: var(--twenty-first-color);
    background: var(--eighth-color);
    color: var(--eighth-color);
    box-shadow:
      0 0 5px cyan,
      0 0 10px cyan,
      0 0 20px cyan,
      0 0 20px cyan,
      0 0 20px cyan;
  }

  .esquerda .premios .acumulado .label {
    color: var(--first-color);
  }

  .esquerda .premios .acumulado .value {
    color: var(--sixteenth-color);
  }

  .esquerda .premios .acumulado .value::before {
    margin: 0 5%;
    width: 90%;
    font-size: 2vw;
    height: 5vw;
  }

  .esquerda .premios .acumulado-desativo {
    background: var(--eighteenth-color);
    box-shadow: none;
  }

  .esquerda .premios .acumulado-desativo .label {
    background: var(--nineteenth-color);
    color: var(--twentieth-color);
  }

  .esquerda .premios .acumulado-desativo .value {
    background: var(--eighteenth-color);
    color: var(--twentieth-color);
  }

  .premios .acumulado .acumulado-numero {
    right: -3vw;
    top: -1vw;
  }

  .star {
    right: -3vw;
    top: -1vw;
  }

  .premiado .cartela .numero {
    width: 19.5% !important;
  }

  .espera {
    padding: 2vw 0 0;
    height: auto;
    background: none;
  }

  .espera .relogio {
    height: auto;
    padding: 2vw;
    width: calc(100% - 4vw);
    background: var(--fourth-color);
    border-radius: 2vw;
    font-family: "Orbitron";
  }

  .espera .relogio .numero {
    color: var(--ninth-color);
    border-color: var(--fourteenth-color);
    background: var(--fourteenth-color);
  }

  .espera .relogio .doispontos {
    color: var(--ninth-color);
  }

  .proximos {
    width: 100%;
    padding: 2vw 2vw 0;
  }

  .proximos .linha:first-child {
    background: rgba(255, 255, 255, 1);
    margin-bottom: 0.5vw;
  }

  .proximos .premio {
    border: 0.4vw solid var(--first-color);
  }

  .cartela .numero:nth-child(2),
  .cartela .numero:nth-child(3),
  .cartela .numero:nth-child(4),
  .cartela .numero:nth-child(5),
  .cartela .numero:nth-child(6) {
    margin-top: 0 !important;
    position: relative;
  }

  .coluna-direita {
    padding: 1vw;
  }

  .coluna-direita .bilhete-melhores-cartelas.zoom-cartela-2 .cartela-25,
  .coluna-direita .bilhete-melhores-cartelas.zoom-cartela-1 .cartela-25 {
    height: auto !important;
  }

  .cartela .numero:nth-child(2)::before,
  .cartela .numero:nth-child(3)::before,
  .cartela .numero:nth-child(4)::before,
  .cartela .numero:nth-child(5)::before,
  .cartela .numero:nth-child(6)::before {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--first-color);
    background: var(--eighth-color);
    border-radius: 1vw;
    top: -5.8vw;
  }

  .coluna-direita
    .bilhete-melhores-cartelas.zoom-cartela-1
    .numero:nth-child(2)::before,
  .coluna-direita
    .bilhete-melhores-cartelas.zoom-cartela-1
    .numero:nth-child(3)::before,
  .coluna-direita
    .bilhete-melhores-cartelas.zoom-cartela-1
    .numero:nth-child(4)::before,
  .coluna-direita
    .bilhete-melhores-cartelas.zoom-cartela-1
    .numero:nth-child(5)::before,
  .coluna-direita
    .bilhete-melhores-cartelas.zoom-cartela-1
    .numero:nth-child(6)::before {
    top: -8.8vw !important;
  }

  .coluna-direita .bilhete-melhores-cartelas .cartela {
    height: auto !important;
  }

  .cartelas-compradas {
    background-image: none;
    background: linear-gradient(
      to right,
      var(--fifteenth-color) 0%,
      var(--first-color) 50%,
      var(--fifteenth-color) 100%
    );
  }

  #modal-cartelas-compradas .cartela .numero:nth-child(2)::before,
  #modal-cartelas-compradas .cartela .numero:nth-child(3)::before,
  #modal-cartelas-compradas .cartela .numero:nth-child(4)::before,
  #modal-cartelas-compradas .cartela .numero:nth-child(5)::before,
  #modal-cartelas-compradas .cartela .numero:nth-child(6)::before {
    top: -4.5vw;
  }

  #modal-cartelas-compradas .cartela .numero {
    width: 19% !important;
  }

  .esquerda .centro .sorteio-bolas .info .box {
    height: 8.5vw;
  }
  .ganhadores-final::before {
    content: "";
  }
  /* Ajustes específicos de ganhadores em portrait */
  .ganhadores-final .box-amarelo {
    margin: 20px 50px;
  }

  .ganhadores-final .box-amarelo .box-ganhador {
    width: 80%;
  }

  /* Ajustes gerais da coluna esquerda */
  .esquerda {
    padding: 1% 1% 0;
  }

  .ganhadores-final .box-amarelo .box-ganhador .nome,
  .ganhadores-final .box-amarelo .box-ganhador .codigo,
  .ganhadores-final .box-amarelo .box-ganhador .valor {
    font-size: 4vw;
  }

  .proximos .acumulado.major .label,
  .proximos .acumulado.major .value {
    font-size: 7vw !important;
  }

  .proximos .acumulado.minor .label,
  .proximos .acumulado.minor .value {
    font-size: 6vw !important;
  }
  .proximos .acumulado.mini .label,
  .proximos .acumulado.mini .value {
    font-size: 5vw !important;
  }
  .proximos .premio {
    padding: 3vw;
  }
  html,
  body {
    height: 100%;
    margin: 0;
  }
}
.proximos .linha:first-child .box {
  flex: 1; /* cada box ocupa a mesma fração */
  box-sizing: border-box;
}
.proximos .linha:first-child .box:not(:last-child) {
  border-right: 1px solid #999;
}
.proximos .linha:first-child .info::before {
  display: none;
}

.one-prizes .proximos .premio .balls {
  margin-left: 10vw;
  font-weight: 600;
  font-size: 1.5vw;
  display: block;
}
.one-prizes .proximos .premio {
  width: 70%;
  height: auto;
  margin: auto;
  text-transform: uppercase !important;
  border-color: white;
  display: flex;
  justify-content: normal;
  color: yellow;
  animation: balancar 9s infinite ease-in-out;
}
.one-prizes .proximos .acumulado {
  background: linear-gradient(
    to bottom,
    var(--twelfth-color),
    var(--tenth-color)
  ) !important;
  color: white;
}
.one-prizes .proximos .premio .value {
  position: absolute;
  right: 3vw;
}
.one-prizes .proximos .premio .label {
  font-size: 1.2vw;
}

.one-prizes .proximos .acumulado .label {
  font-size: 2vw;
}
/* Primeiro elemento */
.one-prizes .proximos .major {
  width: 100%;
  margin: 2px auto;
}
.premios .major .acumulado-numero span,
.premios .minor .acumulado-numero span,
.premios .mini .acumulado-numero span {
  font-size: 2vw;
}
.one-prizes .numAcumulado {
  color: white;
  font-weight: 600;
  font-size: 2vw;
}
.one-prizes .proximos .premio .star-acumulado {
  top: unset !important;
}
.one-prizes .proximos .acumulado .label {
  display: flex;
  align-items: center;
}
.one-prizes .proximos .major .star-acumulado {
  background-image: url("./images/ball-gold.png");
}
/* Segundo elemento */
.one-prizes .proximos .minor {
  width: 90%;
  margin: 2px auto;
}
.one-prizes .proximos .minor .star-acumulado {
  background-image: url("./images/ball-silver.png");
}
/* Terceiro elemento */
.one-prizes .proximos .mini {
  width: 80%;
  margin: 2px auto;
}

.one-prizes .proximos .mini .star-acumulado {
  background-image: url("./images/ball-bronze.png");
}
.one-prizes .proximos .premio .label::before {
  display: none !important;
}
.one-prizes .acumulado .star-acumulado {
  width: 3.5vw;
  height: 3.5vw;
  max-width: 95px;
  max-height: 95px;
  padding: 0;
  top: -2.5vw;
  border-radius: 100%;
  animation: pulse-ball 1.5s infinite ease-in-out;
}

@media (orientation: portrait) {
  .espera .relogio .numero {
    font-size: 16vw !important;
    line-height: 18vw !important;
  }
  .espera .relogio .doispontos {
    font-size: 16vw !important;
    line-height: 18vw !important;
  }
  iframe {
    height: calc(100vh - 120px) !important;
  }

  .one-prizes .acumulado .star-acumulado {
    width: 9vw;
    height: 9vw;
  }
  .one-prizes .proximos .premio .label {
    padding-right: 0;
    font-size: 3vw;
  }
  .one-prizes .proximos .premio .balls {
    font-size: 3vw;
    margin-left: 14vw;
  }

  .proximos .info .label {
    font-size: 4vw !important;
    line-height: 4.5vw !important;
  }

  .proximos .info .value {
    font-size: 4vw !important;
    line-height: 4.5vw !important;
  }
  .proximos .show_points_and_players .info .value,
  .proximos .show_points_and_players .info .label {
    font-size: 3vw !important;
    line-height: 3.5vw !important;
  }

  .premios .major .acumulado-numero span,
  .premios .minor .acumulado-numero span,
  .premios .mini .acumulado-numero span {
    font-size: 4vw;
  }
  .one-prizes .numAcumulado {
    font-size: 4vw;
  }
}
#app-kit-games {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  align-content: start;
  justify-content: center;
}
.game-card {
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
}
.game-card .btn {
  position: absolute;
  bottom: 5px;
  right: 10px;
}
#app-kit-rodadas-finalizadas .card-body p {
  font-size: 0.8rem;
}
#app-kit-rodadas-finalizadas .card-body h6 {
  font-size: 0.8rem !important;
  margin-bottom: 20px !important;
}
#modal-rodadas,
#app-kit-rodadas,
#app-kit-minhas-rodadas {
  z-index: 9999;
}
.modal-comprar {
  z-index: 9999;
  align-content: center;
}
@media (orientation: portrait) {
  .cartelas-compradas {
    font-size: 3.5vw;
  }
  #app-kit-rodadas .card-body .col-3,
  #app-kit-rodadas-finalizadas .card-body .col-3 {
    flex: 50%;
    max-width: 50%;
    margin-top: 10px;
  }
}
#app-kit-games {
  min-height: 100vh;
}
.ganhadores-final .box-amarelo {
  border-color: cyan;
}
.ganhadores-final {
  flex-wrap: wrap;
  flex: 100%;
  justify-content: center;
  height: 100vh;
  overflow: auto;
}
.ganhadores-final .box {
  display: none;
}
.ganhadores-final .box-amarelo {
  display: flex;
}
.ganhadores-final .box-amarelo .box-ganhador {
  border: 0;
  box-shadow:
    0 0 5px cyan,
    0 0 10px cyan,
    0 0 20px cyan,
    0 0 20px cyan,
    0 0 20px cyan;
  background: var(--sixth-color);
  max-width: 400px;
}
.ganhadores-final .box-amarelo .box-ganhador .codigo {
  background-color: var(--seventh-color);
  color: white;
  width: 100%;
  margin: auto;
  margin-top: -20px;
  max-width: 200px;
}

h1.premio-title {
  --bg-size: 400%;
  --color-one: hsl(60 90% 70%);
  --color-two: hsl(40 95% 55%);
  background: linear-gradient(90deg, yellow, rgb(255, 255, 255), yellow) 0 0 /
    var(--bg-size) 100%;
  animation: move-bg 5s infinite linear reverse;
  color: transparent;
  background-clip: text;
}

@keyframes move-bg {
  to {
    background-position: var(--bg-size) 0;
  }
}
.alert {
  margin: 15px;
}
.nav .nav-link[href*="/kit/games"] {
  background: red;
  color: white;
  margin: 5px 0;
}
.nav .nav-link[href*="/kit/games"] .arrow {
  color: white !important;
}
iframe {
  height: 100%;
  overflow: auto;
}

iframe body {
  padding-bottom: 100px;
}
.propaganda {
  position: relative;
  z-index: 9;
}

.propaganda {
  position: relative;
}
#owl-propaganda {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  max-width: 90%;
}

#owl-propaganda .owl-stage-outer,
#owl-propaganda .owl-stage,
#owl-propaganda .owl-item,
#owl-propaganda .item {
  height: auto !important;
  max-height: none !important;
}

#owl-propaganda .owl-stage-outer {
  overflow: hidden;
}

#owl-propaganda .item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.footer {
  border-radius: 0;
  background-color: var(--fourteenth-color);
  justify-content: center;
  align-items: center;
  right: 0;
  left: unset;
  z-index: 999999999;
}
.footer .row {
  display: flex;
  align-items: center;
  height: 100%;
}
.footer .col-auto {
  height: fit-content;
}
.footer .col-auto a {
  padding: 5px 10px;
  filter: brightness(1000%);
}
.footer a:not(.btn) {
  padding: 0 15px;
  border-top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.footer a:not(.btn) p {
  line-height: 11px;
}
.footer a:not(.btn) i,
.footer a:not(.btn) span {
  width: 16px;
  height: 16px;
}
.material-icons {
  font-size: 16px;
}
.footer a {
  color: white !important;
}

.footer a:hover {
  color: var(--sixteenth-color) !important;
}

.menu-btn .material-icons {
  font-size: 25px;
}
.back-btn .material-icons {
  font-size: 25px;
}
@media (orientation: portrait) {
  #owl-propaganda .owl-stage-outer,
  #owl-propaganda .owl-stage,
  #owl-propaganda .owl-item,
  #owl-propaganda .item {
    height: auto !important;
    max-height: none !important;
  }

  .footer {
    height: 50px;
    width: 100%;
    display: flex;
  }

  #buttons-footer {
    width: 20%;
    height: 50px;
    display: flex;
    flex-wrap: nowrap;
    max-width: 600px;
    margin: auto;
  }
}

html:has(.app-kit-games iframe),
body:has(.app-kit-games iframe) {
  overflow: hidden !important;
}

body.no-scroll-game {
  overflow: hidden !important;
  height: 100vh !important;
}

/* trava também o container que costuma rolar em layout flex */
body.no-scroll-game > main.main {
  overflow: hidden !important;
  height: 100vh !important;
}
#buttons-footer a {
  cursor: pointer;
}
.footer a:not(.btn):hover i,
.footer a:not(.btn):hover p {
  color: cyan;
}

.header .btn-link {
  text-decoration: none;
}
.header .btn-link i {
  margin-right: 5px;
}
.header .btn-link:hover {
  color: cyan;
}
.only-desktop {
  display: inline;
}

.only-mobile {
  display: none;
}

@media (orientation: portrait) {
  .esquerda,
  .coluna-direita {
    width: 100%;
  }
  #owl-propaganda {
    max-width: 100%;
  }
  .only-desktop {
    display: none;
  }

  .only-mobile {
    display: inline;
  }
}
.modal {
  padding-top: 50px;
}
.iframe .modal {
  padding-top: 0;
}
.principal {
  padding-top: 0;
}
.iframe .principal {
  padding-top: 30px;
}
#modal-comprar,
#modal-auto-comprar {
  margin-top: 50px;
  padding-top: 10px;
  padding-bottom: 60px;
  z-index: 99991;
}
#modal-auto-comprar .modal-body .media h6 {
  font-size: 15px;
}
#modal-auto-comprar .modal-body .media input {
  background: white;
  color: var(--fifth-color);
}
#modal-auto-comprar .input-qtd {
  width: 100%;
  margin: auto;
  height: 40px;
  border: none;
  border-top: 1px solid var(--fifth-color);
  border-bottom: 1px solid var(--fifth-color);
}
#modal-auto-comprar .input-qtd input {
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
}
#modal-auto-comprar .quadro-qtd {
  margin: 10px auto;
}

#modal-auto-comprar .bt-menos-mais {
  background-color: var(--fifth-color);
  color: white;
  height: 40px;
}
#modal-auto-comprar .qtd-bt {
  background-color: var(--eighth-color);
  color: white;
  padding: 10px 3%;
  border-radius: 10px;
}

#modal-auto-comprar .card {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid #999;
}

#modal-comprar .qtd-bt {
  width: 11.5%;
  height: 50px;
  line-height: 50px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  background: var(--seventeenth-color);
  color: var(--first-color);
  border: none;
  width: 100%;
  text-align: center;
}

#modal-comprar .bt-comprar,
#modal-comprar .bt-menos-mais {
  background: var(--third-color);
  color: white;
}
@media (max-width: 500px) {
  #modal-auto-comprar .qtd-bt {
    padding: 5px 1.6%;
    border-radius: 5px;
    font-size: 13px;
  }
}
#modal-auto-comprar .div-dir button {
  background: green;
  color: white;
}
@media (orientation: landscape) {
  .esquerda .centro {
    height: 25vw;
  }
  .esquerda .centro .sorteio-bolas .info .box {
    height: 5vw;
    margin: 4% 0;
  }

  .esquerda .painel-numeros {
    padding: 0.5% 1%;
  }
}
#modal-rodadas .card-body > .row > .col-4:only-child {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex: 1;
  gap: 10px;
}
#modal-rodadas .card-body .col-4 p.mb-1 {
  font-size: 12px;
}
/* Base: transforma o container em flex (o Bootstrap row pode atrapalhar) */
#buttons-footer {
  display: flex !important;
  width: fit-content;
  justify-content: space-around; /* ou space-between */
  align-items: center;
}

/* garante que order funcione */
#buttons-footer > a {
  flex: 1 1 0;
  text-align: center;
}

/* =========================================================
   3 BOTÕES (exatamente 3 <a>)
   Queremos: [2º] [HOME] [3º]
   (HOME é o 1º no HTML)
   ========================================================= */
#buttons-footer:has(> a:nth-child(3)):not(:has(> a:nth-child(4)))
  > a:nth-child(1) {
  order: 2;
} /* home */
#buttons-footer:has(> a:nth-child(3)):not(:has(> a:nth-child(4)))
  > a:nth-child(2) {
  order: 1;
}
#buttons-footer:has(> a:nth-child(3)):not(:has(> a:nth-child(4)))
  > a:nth-child(3) {
  order: 3;
}

/* =========================================================
   4 BOTÕES (exatamente 4 <a>)
   Centro "mais natural" (par): [2º] [HOME] [3º] [4º]
   ========================================================= */
#buttons-footer:has(> a:nth-child(4)):not(:has(> a:nth-child(5)))
  > a:nth-child(1) {
  order: 2;
} /* home */
#buttons-footer:has(> a:nth-child(4)):not(:has(> a:nth-child(5)))
  > a:nth-child(2) {
  order: 1;
}
#buttons-footer:has(> a:nth-child(4)):not(:has(> a:nth-child(5)))
  > a:nth-child(3) {
  order: 3;
}
#buttons-footer:has(> a:nth-child(4)):not(:has(> a:nth-child(5)))
  > a:nth-child(4) {
  order: 4;
}

/* =========================================================
   5 BOTÕES (exatamente 5 <a>)
   Queremos: [2º] [3º] [HOME] [4º] [5º]
   ========================================================= */
#buttons-footer:has(> a:nth-child(5)):not(:has(> a:nth-child(6)))
  > a:nth-child(1) {
  order: 3;
} /* home */
#buttons-footer:has(> a:nth-child(5)):not(:has(> a:nth-child(6)))
  > a:nth-child(2) {
  order: 1;
}
#buttons-footer:has(> a:nth-child(5)):not(:has(> a:nth-child(6)))
  > a:nth-child(3) {
  order: 2;
}
#buttons-footer:has(> a:nth-child(5)):not(:has(> a:nth-child(6)))
  > a:nth-child(4) {
  order: 4;
}
#buttons-footer:has(> a:nth-child(5)):not(:has(> a:nth-child(6)))
  > a:nth-child(5) {
  order: 5;
}

/* =========================================================
   6 BOTÕES (exatamente 6 <a>)
   Centro "mais natural" (par): [2º] [3º] [HOME] [4º] [5º] [6º]
   ========================================================= */
#buttons-footer:has(> a:nth-child(6)):not(:has(> a:nth-child(7)))
  > a:nth-child(1) {
  order: 3;
} /* home */
#buttons-footer:has(> a:nth-child(6)):not(:has(> a:nth-child(7)))
  > a:nth-child(2) {
  order: 1;
}
#buttons-footer:has(> a:nth-child(6)):not(:has(> a:nth-child(7)))
  > a:nth-child(3) {
  order: 2;
}
#buttons-footer:has(> a:nth-child(6)):not(:has(> a:nth-child(7)))
  > a:nth-child(4) {
  order: 4;
}
#buttons-footer:has(> a:nth-child(6)):not(:has(> a:nth-child(7)))
  > a:nth-child(5) {
  order: 5;
}
#buttons-footer:has(> a:nth-child(6)):not(:has(> a:nth-child(7)))
  > a:nth-child(6) {
  order: 6;
}

/* bloqueia geral */
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* libera seleção onde faz sentido */
input,
textarea,
[contenteditable],
.select-text {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ===========================
   MODAL AUTO-COMPRAR (COMPACTO)
   =========================== */
#modal-auto-comprar.modal-comprar .modal-dialog {
  margin: 0 auto;
  max-width: 520px;
}

#modal-auto-comprar .modal-content {
  border-radius: 14px;
  overflow: hidden;
}

/* Header menor */
#modal-auto-comprar .modal-header {
  padding: 10px 12px;
  background: var(--fourth-color);
  color: #fff;
  border: 0;
}
#modal-auto-comprar .modal-title {
  font-size: 14px;
  letter-spacing: 0.5px;
}
#modal-auto-comprar .modal-header .close {
  color: #fff;
  opacity: 1;
  font-size: 26px;
  line-height: 1;
}

/* Body mais compacto e sem “cards grandes” */
#modal-auto-comprar .modal-body {
  padding: 10px 12px 92px; /* espaço pro CTA fixo */
}

/* Mata espaçamentos do bootstrap dentro do modal */
#modal-auto-comprar .card {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  margin-bottom: 10px !important; /* sobrescreve mb-3 */
  background: #fff;
}
#modal-auto-comprar .card-body {
  padding: 10px 0;
}
#modal-auto-comprar .media,
#modal-auto-comprar .media-body {
  margin: 0;
  padding: 0;
}

/* Títulos menores e colados */
#modal-auto-comprar .modal-body .media h6 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--fourteenth-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Preço (input grande) vira “placa” */
#modal-auto-comprar .large-gift-card {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 22px;
  font-weight: 900;
  color: var(--fourteenth-color);
}

/* Linhas de controle (menos espaço vertical) */
#modal-auto-comprar .div-100r {
  gap: 8px;
  margin: 4px 0 6px;
}

/* Stepper (+ / input / -) mais “flat” e compacto */
#modal-auto-comprar .quadro-qtd {
  width: 100%;
  gap: 0;
}
#modal-auto-comprar .bt-menos-mais {
  height: 38px;
  width: 48px; /* botão fixo */
  background: var(--fifth-color);
  color: #fff;
  font-size: 18px;
  border-radius: 10px;
}
#modal-auto-comprar .input-qtd {
  height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-left: 0;
  border-right: 0;
}
#modal-auto-comprar .input-qtd input {
  font-size: 16px;
  font-weight: 800;
  color: var(--fourteenth-color);
}

/* Grid dos botões rápidos (em vez de “linha solta”) */
#modal-auto-comprar .div-100 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

/* Botões rápidos mais compactos */
#modal-auto-comprar .qtd-bt {
  padding: 8px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  background: var(--eighth-color);
  color: #fff;
  text-align: center;
}

/* MAX diferente (menos “igual a tudo”) */
#modal-auto-comprar .qtd-bt:last-child {
  background: var(--third-color);
  grid-column: 4 / span 2;
}

/* TOTAL: vira uma faixa compacta */
#modal-auto-comprar .card:last-of-type {
  border-bottom: 0;
  margin-bottom: 0 !important;
}
#modal-auto-comprar .card:last-of-type .card-body {
  padding-bottom: 6px;
}

/* CTA fixo no fundo do modal */
#modal-auto-comprar .div-dir {
  bottom: 0;
  background: #fff;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 0 -12px -10px; /* cola nas bordas do body */
}
#modal-auto-comprar .div-dir .bt-comprar {
  height: 48px;
  border-radius: 12px;
  background: #0a8f2a; /* verde */
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ===========================
   MODAL COMPRAR (COMPACTO)
   =========================== */
#modal-comprar.modal-comprar .modal-dialog {
  margin: 0 auto;
  max-width: 520px;
}

#modal-comprar .modal-content {
  border-radius: 14px;
  overflow: hidden;
}

/* Header menor e mais limpo */
#modal-comprar .modal-header {
  padding: 10px 12px;
  background: var(--fourth-color);
  color: #fff;
  border: 0;
}
#modal-comprar .modal-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#modal-comprar .modal-header .close {
  color: #fff;
  opacity: 1;
  font-size: 26px;
  line-height: 1;
}

/* Body compacto + espaço pro CTA fixo */
#modal-comprar .modal-body {
  padding: 10px 12px 92px;
}

/* Remove “gordura” dos cards/mb-3/rows */
#modal-comprar .card {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  margin-bottom: 10px !important;
  background: #fff;
}
#modal-comprar .card-body {
  padding: 10px 0;
}
#modal-comprar .media,
#modal-comprar .media-body {
  margin: 0;
  padding: 0;
}

/* Textos do topo (valor/cartelas) mais compactos */
#modal-comprar .card-body h6.mb-1 {
  margin: 0 0 4px !important;
  font-size: 12px;
  font-weight: 900;
  color: var(--fourteenth-color);
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

/* Bloco do prêmio: força layout mais “inline” e sem espaçamento */
#modal-comprar .card-body .row {
  margin: 6px 0 0;
}
#modal-comprar .card-body .col-4 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
}
#modal-comprar .card-body .col-4 p.mb-1 {
  margin: 0 !important;
  font-size: 11px;
  opacity: 0.8;
}
#modal-comprar .card-body .col-4 h6.mb-1 {
  margin: 2px 0 0 !important;
  font-size: 12px;
}

/* Faixa de SALDO (fica bem evidente e ocupa pouco) */
#modal-comprar > .modal-dialog > .modal-content > .modal-body > .row {
  margin: 0 0 10px;
}
#modal-comprar > .modal-dialog > .modal-content > .modal-body > .row .col-12 {
  padding: 0;
}
#modal-comprar > .modal-dialog > .modal-content > .modal-body > .row h6 {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 128, 0, 0.1);
  border: 1px solid rgba(0, 128, 0, 0.18);
  font-size: 13px;
  font-weight: 900;
}

/* Área de compra compacta */
#modal-comprar .div-esq {
  width: 100%;
}

/* Grid de quantidades (melhor que linha solta) */
#modal-comprar .div-100 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

/* Botões quantidade */
#modal-comprar .div-esq .qtd-bt {
  height: 42px;
  line-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  background: var(--eighth-color);
  color: #fff;
  border: 0;
  text-align: center;
}

/* Linha do stepper + valor lado a lado */
#modal-comprar .div-100r {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin: 0;
}

#modal-comprar .quadro-qtd {
  width: 100%;
  display: flex;
  gap: 0;
}
#modal-comprar .bt-menos-mais {
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fifth-color);
  color: #fff;
  font-size: 18px;
  border-radius: 12px;
}
#modal-comprar .menos-mais-esquerda {
  border-radius: 12px 0 0 12px;
}
#modal-comprar .menos-mais-direita {
  border-radius: 0 12px 12px 0;
}

#modal-comprar .input-qtd {
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-left: 0;
  border-right: 0;
}
#modal-comprar .input-qtd input {
  height: 100%;
  font-size: 16px;
  font-weight: 900;
  color: var(--fourteenth-color);
  background: #fff;
  border: 0;
}

/* Campo valor compra */
#modal-comprar .input-valor input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  font-weight: 900;
  text-align: center;
  color: var(--fourteenth-color);
}

/* CTA fixo no fundo */
#modal-comprar .div-dir {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 12px -12px -10px;
  width: calc(100% + 24px);
}
#modal-comprar .div-dir .bt-comprar {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #0a8f2a;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.3px;
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Ajustes para telas bem pequenas */
@media (max-width: 360px) {
  #modal-comprar .div-100 {
    grid-template-columns: repeat(3, 1fr);
  }
  #modal-comprar .div-100r {
    grid-template-columns: 1fr;
  }
}
.btn-comunidade {
  display: none !important;
}
