/* demo */
.iframe-bwb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #171515ff;
    margin-bottom: 15px;
}

.iframe-bwb__bg-image {
    height: 80vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(50%) blur(6px);
    /* background-image: url(./assets/main1_11zon.webp); */

      @media screen and (max-width: 768px) {
         height: 70vh;
    }
}

.iframe-bwb__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.iframe-bwb__button-box{
    position: absolute;
    top: 40%;
    left: 50%;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iframe-bwb__button {
    transform: translate(-50%, -50%);
    font-size: 1.1em;
    line-height: 48px;
    min-width: 250px;
    border: 0;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 2px;
    padding: 4px 10px;
    color: var(--dark-primary);
    background: #f3f2f7;;
    border-radius: 0.75rem;
    transition: all 0.1s ease;
  font-weight: 700;
  text-transform: uppercase;
}

.iframe-bwb__button:hover {
    background: var(--btn-hover);
  }

  .iframe-bwb__red{
    background: #ffcc29;
    transition: all 0.3s ease;
  }

  .iframe-bwb__red:hover{
    background: linear-gradient(145deg, #fded3f, #ffd000);
  }


  #game-container {
    /* margin-top: 20px; */
    width: 100%;
    max-width: 100%;
    height: 80vh;
    display: none;

    /* margin-bottom: 15px;  */
     background-position: center;
     background-repeat: no-repeat;
     background-size: cover;

        @media screen and (max-width: 768px) {
         height: 60vh;
    }
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.stake-img{
    display: block;
    margin: 20px auto;
}

.stake-num{
    font-size: 18px;
    font-weight: 600;
    color: #ffcc29;
}

.stake-box-item{
    display: flex;
    gap: 5px;
}

.hero-cta{
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 32px));
  background: #fff;
  color: #111;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}
.hero-cta__title{
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 800;
}
.hero-cta__sub{
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #555;
}
.hero-cta__buttons{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: .3px;
  border: 0;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: #ffcc29;
  color: #111;
}
.btn--primary:hover{
  background: linear-gradient(145deg, #fded3f, #ffd000);
}

.btn--ghost{
  background: #f3f2f7;
  color: #111;
}
.btn--ghost:hover{
  background: #e8e7ef;
}

#iframe-bwb__content{}
.iframe-bwb.is-playing .iframe-bwb__content{
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.game{
  width: 100%;
  max-width: 100%;
  height: 0;
  overflow: hidden;
  transition: height .25s ease;
  background: #0b1320;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.iframe-bwb.is-playing + .game{
  height: 420px;
}
@media (max-width: 768px){
  .hero-cta{
    grid-template-columns: 1fr;
    text-align: left;
    bottom: 25%;
    padding: 18px;
  }
  .iframe-bwb.is-playing + .game{
    height: 320px;
  }
  .hero-cta__buttons{ justify-content: center; }
}

/* iframe */
.game-iframe{
  width: 100%;
  height: 100%;
  border: 0;
  margin-top: 50px;
}

/* CTA */
.cta-under-demo{
  display: none;
  gap: 12px;
  padding: 16px;
  justify-content: center;
}
.iframe-bwb.is-playing + .game .cta-under-demo{
  display: flex;
}
.iframe-bwb.is-playing .iframe-bwb__content { opacity:0; pointer-events:none; transition: opacity .25s ease; }
.hero-cta__text{
  text-align: center;
}
