.page-jogos .site-bg-static {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-jogos .site-bg-veil {
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.62) 0%, rgba(7, 8, 10, 0.28) 55%, rgba(7, 8, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.18) 0%, rgba(7, 8, 10, 0.78) 100%);
}

.hero-jogos {
  min-height: auto;
  align-items: end;
}

.hero-jogos .hero-inner {
  max-width: 1100px;
  grid-template-columns: minmax(16rem, 1fr) minmax(280px, 400px);
  align-items: start;
  padding-top: 28px;
  padding-bottom: 20px;
}

.hero-jogos .hero-copy {
  grid-column: 1;
  max-width: 40rem;
}

.hero-jogos .roleta-stage {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.esboco-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roleta-stage {
  width: min(100%, 400px);
  justify-self: center;
}

.roleta-frame {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.78);
}

.roleta-ponteiro {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--gold);
  transform: translateX(-50%);
}

.roleta-anel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 10px;
  background: repeating-conic-gradient(#1a1408 0 8deg, var(--gold) 0 16deg);
}

.roleta-disco {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(
    from -15deg,
    #16110a 0 30deg,
    #9a7418 0 60deg,
    #16110a 0 90deg,
    #c9a02a 0 120deg,
    #16110a 0 150deg,
    #9a7418 0 180deg,
    #16110a 0 210deg,
    #c9a02a 0 240deg,
    #16110a 0 270deg,
    #9a7418 0 300deg,
    #16110a 0 330deg,
    #e0b84a 0 360deg
  );
  box-shadow: inset 0 0 0 6px #07080a;
  transform: rotate(0deg);
  transition: transform 8s cubic-bezier(0.05, 0.92, 0.08, 1);
}

.roleta-disco.is-spinning {
  animation: roleta-giro 0.55s linear infinite;
  transition: none;
}

@keyframes roleta-giro {
  to { transform: rotate(360deg); }
}

.roleta-stage.is-win-flash .roleta-frame {
  animation: roleta-pisca-frame 1.65s ease-in-out 1;
}

.roleta-stage.is-win-flash .roleta-anel {
  animation: roleta-pisca-anel 1.65s ease-in-out 1;
}

.roleta-stage.is-win-flash .roleta-disco {
  animation: roleta-pisca-disco 1.65s ease-in-out 1;
}

@keyframes roleta-pisca-frame {
  0%, 10%, 22%, 32%, 44%, 54%, 100% {
    box-shadow: none;
  }
  5%, 16% {
    box-shadow: 0 0 0 3px #ff3b3b, 0 0 28px rgba(255, 59, 59, 0.85);
  }
  27%, 38% {
    box-shadow: 0 0 0 3px #3dff9a, 0 0 28px rgba(61, 255, 154, 0.85);
  }
  49%, 60% {
    box-shadow: 0 0 0 3px #ffd24a, 0 0 28px rgba(255, 210, 74, 0.9);
  }
}

@keyframes roleta-pisca-anel {
  0%, 10%, 22%, 32%, 44%, 54%, 100% {
    background: repeating-conic-gradient(#1a1408 0 8deg, var(--gold) 0 16deg);
    filter: none;
  }
  5%, 16% {
    background: repeating-conic-gradient(#3a0808 0 8deg, #ff3b3b 0 16deg);
    filter: saturate(1.4) brightness(1.25);
  }
  27%, 38% {
    background: repeating-conic-gradient(#083018 0 8deg, #3dff9a 0 16deg);
    filter: saturate(1.4) brightness(1.25);
  }
  49%, 60% {
    background: repeating-conic-gradient(#2a1a00 0 8deg, #ffd24a 0 16deg);
    filter: saturate(1.4) brightness(1.3);
  }
}

@keyframes roleta-pisca-disco {
  0%, 10%, 22%, 32%, 44%, 54%, 100% {
    filter: none;
  }
  5%, 16% {
    filter: hue-rotate(-20deg) saturate(1.8) brightness(1.35);
  }
  27%, 38% {
    filter: hue-rotate(90deg) saturate(1.8) brightness(1.35);
  }
  49%, 60% {
    filter: hue-rotate(200deg) saturate(1.7) brightness(1.4);
  }
}

.roleta-label {
  position: absolute;
  left: 50%;
  top: 0;
  width: 64px;
  height: 50%;
  margin-left: -32px;
  transform: rotate(calc(var(--a) * 1deg));
  transform-origin: 50% 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  color: #f4f1ea;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.roleta-eixo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #0c0d10 url("img/NOva-moeda.png") center / 78% no-repeat;
  box-shadow: 0 0 0 8px #07080a;
}

.roleta-acoes {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.roleta-acoes .btn {
  width: 100%;
  text-align: center;
}

.roleta-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.roleta-alerta {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 12px 22px;
  border: 1px solid rgba(224, 184, 74, 0.38);
  background: rgba(8, 9, 12, 0.78);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.roleta-alerta strong {
  color: var(--gold);
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roleta-resultado {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(7, 8, 10, 0.72);
  padding: 22px;
}

.roleta-resultado[hidden] {
  display: none !important;
}

.roleta-resultado-card {
  width: min(100%, 380px);
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  background: #101218;
  text-align: center;
}

.roleta-resultado-card p {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--display);
  font-size: 0.82rem;
}

.roleta-resultado-card strong {
  display: block;
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-jogos .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-jogos .hero-copy,
  .hero-jogos .roleta-stage {
    grid-column: auto;
    grid-row: auto;
  }
}

.bau-section {
  position: relative;
  z-index: 1;
  padding: 72px 0 12px;
}

.bau-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px 8px;
}

.bau-copy {
  max-width: 40rem;
  margin-bottom: 18px;
}

.bau-copy h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bau-copy p {
  margin: 0;
  color: var(--muted);
}

.bau-janela {
  position: relative;
  overflow: hidden;
  height: 240px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.78);
}

.bau-ponteiro {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 16px rgba(224, 184, 74, 0.7);
  pointer-events: none;
}

.bau-ponteiro::before,
.bau-ponteiro::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  transform: translateX(-50%);
}

.bau-ponteiro::before {
  top: 0;
  border-top: 14px solid var(--gold);
}

.bau-ponteiro::after {
  bottom: 0;
  border-bottom: 14px solid var(--gold);
}

.bau-faixa {
  display: flex;
  height: 100%;
  will-change: transform;
  transform: translateX(0);
  transition: transform 12s cubic-bezier(0.05, 0.92, 0.08, 1);
}

.bau-faixa.is-spinning {
  animation: bau-giro 0.45s linear infinite;
  transition: none;
}

@keyframes bau-giro {
  to { transform: translateX(-180px); }
}

.bau-card {
  flex: 0 0 180px;
  height: 100%;
  border-right: 1px solid rgba(224, 184, 74, 0.18);
  background-color: #12141a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bau-card-15 { background-image: url("/img/premios/premio-15-moedas.png?v=1"); }
.bau-card-20 { background-image: url("/img/premios/premio-20-moedas.png?v=1"); }
.bau-card-25 { background-image: url("/img/premios/premio-25-moedas.png?v=1"); }
.bau-card-30 { background-image: url("/img/premios/premio-30-moedas.png?v=1"); }
.bau-card-35 { background-image: url("/img/premios/premio-35-moedas.png?v=1"); }
.bau-card-40 { background-image: url("/img/premios/premio-40-moedas.png?v=1"); }
.bau-card-45 { background-image: url("/img/premios/premio-45-moedas.png?v=1"); }
.bau-card-50 { background-image: url("/img/premios/premio-50-moedas.png?v=1"); }
.bau-card-miss { background-image: url("/img/premios/premio-nao-foi-dessa-vez.png?v=1"); }

.bau-jogo .roleta-acoes {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.bau-jogo.is-win-flash .bau-janela {
  animation: roleta-pisca-frame 1.65s ease-in-out 1;
}
