.loading-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: flex-end;
z-index: 999999999;
overflow: hidden;
}


.blur-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/abplay/img/bg.webp'); 
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
filter: blur(15px); 
z-index: -2; 
transform: scale(1.1); 
}


.background-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('/abplay/img/LuckyTiger_bg.webp'); 
background-size: contain; 
background-position: center center;
background-repeat: no-repeat;
z-index: -1; 
}

/* 手機版Logo */
.mobile-logo {
display: none;
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 150px; /* 調整Logo大小 */
z-index: 10;
}





/* 手機版樣式 */
@media only screen and (max-width: 768px) {
/* 顯示Logo */
.mobile-logo {
    display: block;
}

/* 手機版的進度條寬度調整 */
.egyptian-container {
    width: 90%; 
}

/* 手機版模糊背景和普通背景設置 */
.blur-background {
    background-image: url('/abplay/img/lobbyBg.webp'); 
    background-size: cover;
    background-position: center;
}

.background-image {
    background-image: url('/abplay/img/LuckyTiger_bgm.webp'); /* 手機版清晰背景 */
    background-size: cover;
    background-position: center;
}

#progress-text {
    font-size: 14px; /* 百分比文字縮小 */
}

#header {
    display: none;
}

#game-iframe {
    z-index: 999999999;
    position: fixed;
    width: 100%;
    height: 100%;
}


.ab-baccarat-wrapper {
  position: absolute;
  top: 15%;
  left: 11%;
  width: auto;
  z-index: 10;
  text-align: center;
  opacity: 0; /* 預設先隱藏 */
  will-change: transform;
  backface-visibility: hidden;
}

.ab-baccarat-wrapper.float-in {
  animation: ab-baccarat 2s infinite ease-in-out;
  animation-fill-mode: both;
  opacity: 1; /* 動畫開始後顯示 */
}


.ab-baccarat {
max-width: 150px; /* 限制圖片的最大寬度 */
height: auto; /* 確保圖片按比例縮放 */
margin: 0 auto; /* 確保內部圖片居中 */
}

.start-button img {
  max-width: 270px !important; 
}

}

@media only screen and (min-width: 769px) {
.ab-baccarat-wrapper {
display:none;
}
}

@keyframes ab-baccarat {
  0%, 100% {
    transform: translate(-50%, -40%);
  }
  50% {
    transform: translate(-50%, -50%);
  }
}

@media (orientation: landscape) {
#header {
    display: none; 
}
}


.loading-bar-container {
  display: none; 
  position: absolute; 
  bottom: 10%; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 90%; 
  max-width: 873px; 
  height: 6vw; 
  max-height: 56px; 
  z-index: 10; 
}

    .loading-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 102%;
      height: 100%;
      background: url('/abplay/img/12ce1bc9-baed-43c9-b750-860b4507a297.1713b.webp') no-repeat center center;
      background-size: 100% 102%;
      /*background-position: center 3px;*/
    }

    .loading-progress {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0;
      overflow: hidden;
    }

    .loading-progress img {
      height: 100%;
      width: auto;
    }

    .loading-light {
      position: absolute;
      top: -3px;
      height: 100%;
      width: 20%;
      transform: translateX(0);
      pointer-events: none;
      z-index: 3;
    }

    .loading-border {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      /*background: url('https://lshglass.com/thorimg/1.webp') no-repeat center center;*/
      background-size: contain;
      z-index: 2;
    }

    .loading-percentage {
      position: absolute;
      top: 50%;
      right: 5%; 
      transform: translateY(-50%);
      font-size: 1.75vw; 
      max-font-size: 18px; 
      font-weight: bold;
      color: #fff;
      text-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
      z-index: 4;
    }

/* 開始遊戲按鈕樣式 */
.start-button {
  position: absolute;
  bottom: 5%; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 11; 
  cursor: pointer;
}

/* 按鈕閃爍效果 */
@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.start-button.blink {
  animation: flash 1s infinite; 
}

.start-button img {
  max-width: 436px; 
}
