/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  color: var(--color-text-primary);
  font-family: "Noto Sans Thai", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:"wdth" 100;
  background: url(../images/huaban-7048734721.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
}

main {
  margin-top: 86px;
    background: #0b2d0024;
    background-blend-mode: multiply, multiply;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

a {
  text-decoration: none;
  color: var(--color-text-primary);
  cursor: pointer;
}

a:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

h2 span.en-title{ 
  color: var(--color-text-primary); 
  font-size: 50%; 
  font-weight: normal;
}
.text-right{
  text-align: right;
}
.small, small {
  font-size: 50%;
}
.button{
  color: var(--color-bg-white) !important;
  text-transform: uppercase;
  background: var(--color-accent-orange);
  padding: 6px 20px;
  border: 2px solid var(--color-accent-orange);
  min-width: 100px;
}
.button:hover {
  color: var(--color-btn-hover);
}
@media screen and (max-width: 768px) {
  h2 span.min-title{
    display: none;
  }
}
/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--color-back-to-top);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: var(--color-back-to-top-light);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--color-back-to-top-hover);
  color: var(--color-back-to-top-light);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}
@media screen and (max-width: 768px) {
  .back-to-top{
    bottom: 100px;
  }
}
/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: .4s !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 87px;
  z-index: 997;
  transition: all 0.5s;
}

#header .logo{
    width: min(20vw, 160px);
    display: flex;
    align-items: center;
    gap: 8px;
}

#header .logo img {
  padding: 4px;
  max-height: 80px;
}
.heard-top{
  padding: 0.5rem;
}
.heard-top h2{
  /* font-size: 24px; */
  font-weight: 900;
  padding: 8px;
  text-align: center;
  color: transparent;
}
.scrolled-offset {
  margin-top: 90px;
}
@media (max-width: 1410px) {
  #header .logo a span{
    font-size: 24px;
  }
}
@media (max-width: 1199px) {
  #header {
    height: 70px;}
  #header .logo img {
    margin: auto;
    padding-top: 6px;
  }
  #header .logo{
    flex: none;
  }
}
@media (max-width: 767px) {
  main{
    margin-top: 90px;
    padding-bottom: 70px;
  }
  #header {
    height: 90px;
  }
  #header .logo img {
    max-height: 70px;
    padding: 4px;
  }
  .scrolled-offset {
    margin-top: 90px;
  }
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar-bg {
  padding: 0;
  background: var(--gradient-navbar);
  background-blend-mode: multiply, multiply;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* border-bottom: 2px solid #ffffff!important; */
  box-shadow: 0 6px 11px #00000078;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  height: 87px;
}
/* .navbar-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
} */
.navbar {
  padding: 0;
  margin: auto;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-primary);
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s;
  height: 87px;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--color-text-light);
  text-shadow: 1px 1px rgba(69, 34, 1, .48);
}
.navbar a span{
  color: var(--color-text-primary);
  font-size: 12px;
  display: none;
}

.btn-login span, .btn-register span{
  font-size: .8em !important;
  color: var(--color-grey-dark);
  display: none !important;
}
.btn-login {
  background: var(--gradient-btn-login);
  box-shadow: 0 5px 20px 0 rgba(0,0,0,.49);
  color: var(--color-bg-white) !important;
  padding: 6px 20px;
  border-right: 0;
  width: 100px;
  height: 85px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-register {
  background: var(--gradient-btn-register);
  box-shadow: 0 5px 20px 0 rgba(0,0,0,.49);
  border: 1px solid var(--gradient-btn-login) ;
  color: var(--color-bg-white) !important;
  padding: 6px 20px;
  width: 100px;
  height: 85px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-login:hover{
  color: var(--color-bg-white) !important;
  background: var(--gradient-btn-login-hover);
  transform: scale(1.025);
}
.btn-register:hover {
  color: var(--color-bg-white) !important;
  background: var(--gradient-btn-register-hover);
  transform: scale(1.025);
  /* box-shadow: 0 5px 20px 0 rgb(255 193 7 / 50%); */
}
.btn-icon {
  max-width: 40px;
  max-height: 40px;
  padding: 4px;
}
/* Header登入資訊----------------- */
.u-login{
    padding: 6px 12px;
    width: 250px;
    height: 85px;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.u-login .u-info{
  padding: 0 6px;
  display: flex; 
  flex-direction: column;
}
.uuid, .uucash{
  color: var(--color-text-primary);
  width: 128px;
  margin: 2px 0px;
  display: flex;
  overflow: hidden;
}
.u-login .link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
}
.u-login .btn-tsfr, .u-login .btn-dpst,
.u-login .btn-tsfr:hover, .u-login .btn-dpst:hover, 
.u-login .btn-tsfr:focus, .u-login .btn-dpst:focus{
    font-size: 14px !important;
    height: 32px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    border-radius: 24px;
    margin: 2px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    -ms-border-radius: 24px;
    -o-border-radius: 24px;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }
  .navbar .dropdown .dropdown:hover > ul {
    left: -100%;
  }
}
@media (max-width: 990px) {
  .btn-login, .btn-register{
    width: 200px;
    font-size: 2rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-content: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .btn-sm {
    width: auto;
    min-width: 90px;
    white-space: nowrap;
    height: 30px;
    padding: 6px 10px;
    font-size: 10px !important;
    border-radius: 20px;
    margin: 0;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}
  .btn-login{ 
    border-radius: 20px 0 0 20px; 
    -webkit-border-radius: 20px 0 0 20px; 
    -moz-border-radius: 20px 0 0 20px; 
    -ms-border-radius: 20px 0 0 20px; 
    -o-border-radius: 20px 0 0 20px;
    border: 1px solid var(--gradient-btn-login) ;
  }
  .btn-register{ 
    border-radius: 0 20px 20px 0; 
    -webkit-border-radius: 0 20px 20px 0; 
    -moz-border-radius: 0 20px 20px 0; 
    -ms-border-radius: 0 20px 20px 0; 
    -o-border-radius: 0 20px 20px 0; 
    border: 1px solid var(--gradient-btn-login) ;
  }
  .btn-icon {
    max-width: 30px;
    max-height: 28px;
    padding: 2px 5px;
  }
}

/**
* Mobile Navigation 
*/
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}
a#mobNavop img, a#mobNavco img {
  width: 32px;
}


@media (max-width: 991px) {
  .navbar {
    padding: 12px 0;
    margin: 0;
  }
  .navbar-bg{
    padding: 0 !important;
        height: 70px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
  .navbar a, .navbar a:focus {
    display: flex;
    flex-direction: row;
    justify-content:center;
  }
  .navbar a span{ margin-left: .8rem;}
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgb(81 67 56 / 90%);
  transition: 0.3s;
  z-index: 999;
}
.navbar-mobile::before{
  content: '';
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 30%);
  opacity: 0.6;
  margin-top: -25px;
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a {
  padding: 10px 20px;
  font-size: 1.5rem;
  font-weight: normal;
  /* font-family: 'Bebas Neue'; */
  color: var(--color-bg-white);
}

.navbar-mobile a:after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 1px;
  background: var(--color-bg-white);
  opacity: .4;
}

header nav.mainNav .border-link:after {
  width: 20px;
  height: 1px;
  background: var(--color-bg-white);
  opacity: 0.4;
  left: 50%;
  top: -14px;
  margin-left: -10px;
}
.navbar-mobile .getstarted {
  margin: 15px;
}

.navbar-mobile .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: var(--color-bg-white);
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover, .navbar-mobile .dropdown ul .active:hover, .navbar-mobile .dropdown ul li:hover > a {
  color: #f44336;
}

.navbar-mobile .dropdown > .dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  overflow: hidden;
}
.section-bg {
  background-color: #000
}
.section-title {
  text-align: center;
  padding-bottom: 40px;
}
.section-title h1, .section-title h2 {
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 0;
  line-height: 33px;
}
.section-title h1 small, .section-title h2 small{
  color: var(--secondary);
}
.section-title p {
  margin-bottom: 0;
  color: var(--color-text-dark);
}
@media (max-width: 768px) {
  .section-title {
    padding-bottom: 20px;
  }
}
/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {
  padding: 0;
}
.testimonials .swiper-container{
  overflow:hidden;
}
.testimonials .testimonial-item {
  text-align: center;
  color: var(--color-bg-white);
  border-radius: 45px;
  overflow: hidden;
  margin: 12px 0px;
}

.testimonials .testimonial-title {
  position: absolute;
  left: 25%;
  top: 25%;
  transform: rotate(-4deg);
  -webkit-filter: drop-shadow(12px 12px 7px rgba(0, 0, 0, 0.7));
  filter: drop-shadow(12px 12px 7px rgba(0, 0, 0, 0.7));
  display:none;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100%;
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 7rem;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: var(--color-bg-white);
  background-image: linear-gradient(180deg,var(--color-bg-white)fff 20%,#f3efb3 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.testimonials .testimonial-item h4 {
  font-size: 4rem;
  color: var(--color-hover-light);
  margin: 0 0 15px 0;
  background-image: linear-gradient(180deg,var(--color-bg-white)fff 20%,#f3efb3 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 600;
}

.testimonials .swiper-pagination {
  margin-top: 0;
  position: absolute;
  bottom: 5%;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  background: hwb(0deg 100% 0% / 70%);
  width: 12px;
  height: 12px;
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: hwb(0deg 100% 0% / 100%);
  box-shadow: 0px 0px 4px 3px #fdb548;
}

@media (max-width: 768px) {
  .testimonials {
    background: transparent;
  }
  .testimonials .testimonial-item .testimonial-img {
    overflow: hidden;
  }
  .testimonials .testimonial-item {
    border-radius: 25px;
    overflow: hidden;
    margin: 5px 0px;
  }
  .testimonials .testimonial-item p {
    width: 80%;
  }
  .testimonials .swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/*--------------------------------------------------------------
# m-side-menu
--------------------------------------------------------------*/
.testimonials-game {
  padding: 0;
  margin-bottom: 16px;
}
.testimonials-game .container-fluid{
  padding: 0;
}
.testimonials-game img{
  width: 100%;
}
.GameNav {
  padding: 12px;
  width: 100%;
}
.GameNav .nav {
  max-width: 80%;
  margin: auto;
  justify-content: center;
  backdrop-filter: blur(2px);
  text-shadow: 1px 1px var(--color-bg-greyblue);
  color: var(--color-text-primary);
  background-color: var(--color-bg-greyblue);
  border: 1px solid var(--color-border-light);
  border-radius: 100px;
  box-shadow: 0 8px 16px var(--color-border-light), inset -2px -4px 2px rgba(127, 63, 2, .16), inset 0 2px 1px var(--color-border-light)
}
.GameNav li.nav-item{
  text-align: center;
  display: contents;
}
.GameNav .color .img{
  width: 105px;
  overflow: hidden;
  margin: auto;
  margin-bottom: 6px;
  margin-top: 10px;
}
.GameNav picture{
  display: block;
  margin: 10px auto 2px auto;
}
.GameNav img{
  max-width: 100%;
  height: 40px;
}
.nav-pills2 .nav-link {
    background: transparent;
    border-radius: 100px;
    margin: 6px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;
}
.nav-pills .nav-link {
  border-radius: 0;
  color: var(--color-bg-white);
  padding: 20px 0px 0px 0px;
}
.GameNav .nav-link {
  color: var(--color-text-primary);
  padding: 0;
  padding-bottom: 6px;
  text-align: center;

}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link{
  background-color: transparent;
}
.GameNav .nav-link.color.active{
  color: var(--color-text-primary);
  text-shadow: 1px 1px rgba(1, 85, 29, 0.48);
  display: block;
  filter: none;
  background: var( --gradient-game-nav);
  box-shadow: var(--gradient-game-nav-shdow);
  filter: grayscale(0%) brightness(110%);
  -webkit-filter: grayscale(0%) brightness(110%);
}
.GameNav .nav-link.color .img-active {
  display: none;
}
.GameNav .nav-link.color.active .img-action {
  display: none;
}
.GameNav .nav-link.color.active .img-active {
  display: block;
}
@media (max-width: 1024px) {
  .GameNav .color .img{
    width: 77px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .game-tab-content {
    min-height: 60vh;
    width: 100%;
    float: right;
    margin-top: 24px;
  }  
  .GameNav .container{ padding-right: 0;}
  .GameNav {
    padding: 0px;
    width: 20%;
    float: left;
    padding-top: 12px;
  }
  .GameNav .nav {
    /* max-width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0; */
    border: 0;
        min-width: 100%;
        max-width: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow-x: auto;
        display: flex;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 12px 16px;
        flex-direction: row;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
  }
  .GameNav .color .img {
    width: 40px;  
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    margin: auto;
  }
  .GameNav picture, .GameNav .img img{
    max-width: 40px;
    height: auto;
    max-height: 100%;
  }
  .GameNav .nav-link {
        font-size: .6em;
        width: 70px;
        height: 70px;
        border-radius: 22px;
        border: 1px solid var(--color-border-light);
        padding: 3px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        margin-bottom: 10px;
        flex-shrink: 0;
        justify-content: center;
        backdrop-filter: blur(2px);
        /*text-shadow: 1px 1px #fff8e4;
        */color: var(--color-text-light);
        background-color: var(--color-bg-greyblue);
        /*box-shadow: 0 8px 16px rgba(69, 34, 1, .32), inset -2px -4px 2px rgba(127, 63, 2, .16), inset 0 2px 1px #fafafa;
        */-webkit-border-radius: 10px;
        -moz-border-radius: 22px;
        -ms-border-radius: 22px;
        -o-border-radius: 22px;
        -webkit-border-radius: 22px;
}
  .GameNav .nav-link.color.active{
        text-shadow:0 0 2px var(--color-grey-medium);
        display: flex;
        align-items: center;
}
  .GameNav li.nav-item span{
    display: none;
  }
}
@media (max-width: 768px){
    .GameNav {
      width: 100%;
      float: none;
      padding: 0;
    }
    .game-tab-content{
      width: 100%;
      margin-top: 0px;
      max-height: none;
      overflow: visible;
    }
    .GameNav .nav-link{
      flex-direction: column !important;
    }
    .GameNav .nav {
        min-width: 100%;
        max-width: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow-x: auto;
        display: flex;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 12px 16px;
        flex-direction: row;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        backdrop-filter: none;
    }
    .GameNav li.nav-item {
      text-align: center;
      display: inline-block;
      scroll-snap-align: start;
    }
  }
/*--------------------------------------------------------------
# userwallet
--------------------------------------------------------------*/
    section.Wbody {
      padding-top: 20px;
      font-size: 14px;
    }
    .Wbody_box{
        width: calc(100% - 1.75rem);
        max-width: 100%;
        outline: none;
        border: none;
        border-radius: 1rem;
        position: relative;
        z-index: 1;
        overflow: hidden;
        background: var(--gradient-navbar);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 8px 0 24px 0;
        /* box-shadow: 0px -2px 10px -3px #b0b0b0; */
        display: flex;
        flex-direction: row;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: .375rem .625rem .5rem;
        margin: 0 .875rem .5rem;
        border: 1px solid var(--gradient-navbar);
    }
    .Wbody_box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-primary);
    }
    .Wbody_box img{width: 24px; height: 24px;}
    .Wbody_box .userwallet{
      width: 100%;
      display: flex;    
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
  }
  .u-cone, .u-conWbtn {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
  }
  .u-cone { width: 80%; }
  .u-conWbtn{ width: 20%; }
  .usname {
    width: 100%;
    font-weight: bold;
    padding: 6px 0;
  }
  .Wbtn{
      width: 50% !important;
      display: flex;
      width: 80px;
      height: 32px;
      border-radius: 10px;
      padding: 4px;
      text-align: center;
      font-size: .8em;
      color: var(--color-bg-white) !important;
      align-items: center;
      justify-content: center;
      margin: 2px;
      -webkit-border-radius: 10px;
      -moz-border-radius: 10px;
      -ms-border-radius: 10px;
      -o-border-radius: 10px;
}
  .btn-dpst {
      background: var(--color-bg-greyblue);
      border: 1px solid var(--color-border-light);
      margin-top: -4px;
      height: 38px;
  }
  .btn-tsfr{
      background: var(--color-bg-greyblue);
      color: var(--text-primary);
      border: 1px solid var(--color-border-light);
      margin-top: -4px;
      height: 38px;
  }
  .Wbtn img{
    width: 20px; height: 20px;
    margin-right: 4px;
  }
  .Wbtn.btn-luckycash {
    width: 100% !important;
    background: var(--gradient-primary);
  }
  section.Wbody {
      padding-top: 10px;
  }
  .u-cone, .u-conWbtn {
    width: 50%;
  }


/*--------------------------------------------------------------
# FEATURED GAMES
--------------------------------------------------------------*/
section.dm {
    background: linear-gradient(180deg, var(--color-marquee-gradient-light)8f 10%, var(--color-bg-white)fff00 40%, var(--color-bg-white)fff00 73%, var(--color-marquee-gradient-light)66 90%, var(--color-marquee-gradient-mid)75 100%);
    padding: 120px 0;
}
.dm-qrbox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 60px auto;
}
.dm-qr img{
  border-radius: 20px;
}
.dm-qr {
    width: 40%;
    overflow: hidden;
}
img.qr-app{
  width: 200px;
}
.qr-applink{
    margin-top: 10px;
    width: 200px;
}
/*--------------------------------------------------------------
# FEATURED GAMES
--------------------------------------------------------------*/
.featured {
  padding: 80px 0;
}
.carousel {
  /* background: #EEE; */
}
.carousel-cell {
  width: 28%;
  /* height: 200px; */
  margin-right: 10px;
  border-radius: 5px;
  counter-increment: carousel-cell;
}
.carousel-cell {
  width: 22%;
  height: 480px;
  border: 1px solid var(--color-btn-login-primary);
  padding: 20px 20px;
  margin-right: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  counter-increment: carousel-cell;
}
.featured-brand .carousel-cell{
  height: 320px;
}

.carousel-cell.is-selected {
  border: 1px solid var(--color-btn-login-primary);
}

.carousel-cell img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 200px;
}
.carousel-cell:hover img {
  transform: translate3d(0px, -4px, 14px) rotate(0deg) scale(1.1, 1.1);
  transition-duration: 2s;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
}
.carousel-cell .leading-loose{
  padding: 20px 0;
  font-size: 1em;
  color: #555;
  height: 40%;
  overflow: scroll;
}
.carousel-cell .game-info{
  display: flex !important;
  justify-content: center;
}
.carousel-cell .game-info div{
  width: 33.33%;
  color: var(--color-text-primary);
}
.carousel-cell .game-info div span{
  color: var(--color-btn-login-primary);
  font-weight: bold;
}
.carousel-cell .game-info hr{
  display: block;
  height: 32px;
  border-right: 1px solid rgba(62, 62, 62, .2);
}
.gamemore{
  text-align: center;
  padding: 50px 0;
  display: flex;
  justify-content: center;
}
.btn-gamemore {
  display: block;
  width: 400px;
  padding: 14px;
  color: var(--color-bg-white);
  background: var(--color-btn-login-primary);
  border: 2px solid var(--color-btn-login-primary);
  border-radius: 10px;
  text-align: center;
  transition: all .4s;
}
.btn-gamemore:hover {
  color: var(--color-btn-login-primary);
  background: transparent;
  border: 2px solid var(--color-btn-login-primary);
}

@media (max-width: 768px) {
  .carousel-cell {
    width: 75%;
    height: 500px;
  }
}
@media (max-width: 450px) {
  .carousel-cell {
    width: 75%;
    height: 450px;
  }
}

/*--------------------------------------------------------------
# HotGame
--------------------------------------------------------------*/
.hotGame .nav-pills .nav-link.active, .hotGame .nav-pills .show>.nav-link {
  color: var(--color-btn-login-primary);
  background-color: transparent;
  border-bottom: 4px solid var(--color-btn-login-primary);
  padding: 5px 0;
}
.hotGame .nav-pills .nav-link{
  color: var(--secondary);
  border-bottom: 4px solid transparent;
  padding: 5px 0;
}
.hotGame .nav {
  justify-content: space-around;
  border-bottom: solid 1px var(--color-btn-login-primary);
  margin-bottom: 10px;
}
@media (max-width: 660px) {
  .hotGame .tab-content {
      min-height: 60vh;
      width: 100%;
      float: inherit;
      padding-top: 12px;
  }
  .hotGame .nav {
    margin-bottom: 5px;
  }
}
/*--------------------------------------------------------------
# fishgames
--------------------------------------------------------------*/
.BrandGame {
    padding-top: 20px;
    padding-bottom: 60px;
}
.slot-games-menu img{
    width: 24px;
    padding: 0px 2px;
}
@media (max-width: 768px) {
      .BrandGame {
        padding-top: 6px;
        padding-bottom: 40px;
    }
}
/*--------------------------------------------------------------
# Game search (搜尋區塊樣式)
--------------------------------------------------------------*/
.Game_search{
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2px 0;
}
.Game_search .btn {
    min-width: 60px;
    height: 30px;
    padding: 6px 6px;
    font-size: 10px !important;
    border-radius: 20px;
    margin-right: 6px;
    margin-top: 0;
}
.Game_search .search .btn{
  margin: 0 !important;
  border-radius: 0px 20px 20px 0px;
      border: 0;
    border-left: 1px solid var(--color-border-light);
}
.Game_search .search{
  padding: 0px 0px 0px 6px;
  border-radius: 20px;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-greyblue);
  color: var(--color-text-primary);
  display: flex;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}
.Game_search .search:hover{
  border-color: var(--color-border-light);
}
.Game_search .search .form-control{
  font-size: .8rem;
  width: 120px;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
}
.Game_search .form-control:focus{
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.Game_search input:-internal-autofill-selected {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--color-text-primary) !important;
} 
.Game_search .search .btn img{
  width: 16px;
  height: 16px;
}

/*--------------------------------------------------------------
# BrandGame
--------------------------------------------------------------*/
.BrandGame .games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  justify-items: center;
  padding: 10px 0;
}

.BrandGame .gamesBox {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 2px solid #284f14;
  background: url(../images/bg_200.png) #0000008a;
  backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.BrandGame .gamesBox:hover {
  transform: translateY(-8px);
  background: url(../images/bg_200.png) #0000008a;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.slotGames .gamesBox{ aspect-ratio: 1 / 1;}


.BrandGame .gamesBox a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.BrandGame .gamesBox--image {
  flex: 1;
  min-height: 170px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 212 81 / 25%) 100%);
}

.BrandGame .gamesBox--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.BrandGame .gamesBox:hover .gamesBox--image img {
  transform: scale(1.05);
}

.BrandGame .gamesBox--logo {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: #122c04;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  z-index: 2;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.BrandGame .gamesBox--logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.BrandGame .BrandName {
  width: 100%;
  background: #284f14;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  bottom: 0;
}

.BrandGame .gamesBox--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.BrandGame .gamesBox--button-none {
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.85;
}

.BrandGame .game-name {
  color: #ffffff;
  font-size: .8em;
  font-weight: 700;
  line-height: 1.3;
}

.BrandGame .gamesBox .BrandName .game-name {
  margin: 0;
}
.gamesBox.action-game.notrans_bg {
    border: 2px solid rgba(40, 255, 33, 0.712);
}
.BrandGame .gamesBox.action-game {
    background: url(../images/bg_200.png) center center, linear-gradient(180deg, #16360c 0%, #0d2107 100%);
    background-size: cover;
}
.notrans {
    position: absolute;
    width: 45px;
    height: 45px;
    overflow: hidden;
    right: 0;
    top: 0;
}
.notrans img{
max-width: 100%;
}
@media (max-width: 768px) {
    .BrandGame .games {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .BrandGame .gamesBox {
      max-width: 100%;
      aspect-ratio: 4 / 5;
    }
    .slotGames .gamesBox{ aspect-ratio: 1 / 1;}
    .BrandGame .BrandName {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 0;
    }
}

@media (max-width: 540px) {
  .BrandGame .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .BrandGame .gamesBox {
    aspect-ratio: 3 / 4;
  }
  .slotGames .gamesBox{ aspect-ratio: 1 / 1;}
  .BrandGame .gamesBox--logo {
    width: 32px;
    height: 32px;
  }
}

/*--------------------------------------------------------------
# btn
--------------------------------------------------------------*/
.btn {
  position: relative;
  display: inline-block;
  font-size: .875rem;
  line-height: 1.25;
  min-width: 180px;
  border-radius: 6.25rem;
  text-align: center;
  padding: 0.75rem 1.875rem;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: color .3s ease,background-color .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.btn--white {
  color: var(--color-bg-white);
  border: 4px solid var(--color-bg-white);
  margin-top: 12px;
}

.btn--white:hover {
  color: #000;
  background: var(--color-bg-white);
}

.btn--secondary {
  color: var(--color-bg-white);
  background: linear-gradient(357deg, #B39973 0%, #9B774C 100%);
}
.btn--secondary:hover {
  color: var(--color-bg-white);
  background: linear-gradient(180deg, #B39973 0%, #9B774C 100%);
}
@media (min-width: 48em){
  .btn {
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 2px;
  }
}
@media (max-width: 1024px) {

}
@media (max-width: 768px) {
  .btn{
    border-width: 2px;
    margin-top: 12px;
    max-width: 80%;
  }
}

@media (max-width: 425px) {
  .btn {
    min-width: 180px;
  }
}

/*--------------------------------------------------------------
# 優惠情報Promotion
--------------------------------------------------------------*/
section#faq {
  padding: 60px 20px;
}
.faq .container{
  max-width: 960px;
}
.faq .faq-list {
  padding: 0;
  list-style: none;
  color: var(--color-text-darker);
}

.faq .faq-list li {
  padding: 10px;
  background: var(--color-bg-greyblue);
  border: 2px solid var(--color-border-light);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}
.faq .faq-list a {
  display: contents;
  position: relative;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  padding-right: 25px;
  cursor: pointer;
  color: var(--color-accent-orange);
}
.faq .faq-list .btn {
  display: initial;
  padding: 6px 24px;
  color: var(--color-bg-white);
  font-size: .8em;
}
.faq .faq-list img{
  position: relative;
  border-radius: 20px;
}
.faq .faq-list i {
  font-size: 24px;
  position: absolute;
  right: 4px;
  top: 4px;
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  padding: 6px;
  border-radius: 12px;
}

.faq .faq-list p {
  margin-bottom: 0;
  padding: 1rem 3rem;
}

.faq .faq-list .icon-show {
  display: none;
}

.faq .faq-list a.collapsed {
  color: var(--color-accent-orange);
}

.faq .faq-list a.collapsed:hover {
  color: var(--color-accent-orange);
}

.faq .faq-list a.collapsed .icon-show {
  display: inline-block;
}
.faq .faq-list a.collapsed .icon-close {
  display: none;
}

@media (max-width: 768px) {
  section#faq {
    padding: 40px 0;
  }
  .faq .faq-list p {
    font-size: 1em;
    padding: 1rem 1rem;
  }
}
/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
  padding: 40px 0;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 300;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #2f2f2f;
  content: "/";
}

@media (max-width: 768px) {
  .breadcrumbs .d-flex {
    display: block !important;
  }
  .breadcrumbs ol {
    display: block;
  }
  .breadcrumbs ol li {
    display: inline-block;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  /* background: url("../images/footer-bg.png") #000 repeat; */
  background: #151404d6;
  color: var(--color-bg-white);
  font-size: 1em;
  position: relative;
}

#footer ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
}
#footer ul li{
    list-style: none;
    margin: 4px 2px;
    padding: 0;
}
#footer a {
  color: var(--color-bg-white)fff;
  font-size: 1em;
}
#footer .footer-top {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
}

#footer .footer-top .footer-logo img {
  height: 60px;
  margin-bottom: 24px;
}

#footer .footer-top h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  /* font-family: "Poppins", sans-serif; */
  margin-bottom: 0;
  text-align: left;
}

#footer .footer-top p {
  font-size: 1em;
  line-height: 1.8;
  padding: 0;
  text-align: left;
}
.ft-about{
    margin-bottom: 20px;
}
#footer .footer-top .social-links {
  margin-top: 30px;
  display: flex;
}

#footer .footer-top .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--color-bg-white);
  color: var(--color-bg-white);
  line-height: 1;
  padding: 8px 0;
  margin-right: 8px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #fcba01;
  color: var(--color-bg-white);
  text-decoration: none;
}
#footer .footer-top .social-links img{
    width: 24px;
    height: auto;
    margin: auto;
}
#footer .footer-bottom {
  border-top: 1px solid #222222;
  z-index: 2;
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  text-align: center;
  font-size: 13px;
  padding-top: 5px;
}
.brand-logo{
  border-bottom: 1px solid #6c757d4a;
}
.brand-logo .container{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    opacity: 0.6;
}
.brand-logo {
  padding: 20px;
  margin: auto;
}
.brand-logo img {
    max-width: 70px;
    max-height: 50px;
    margin: 13px 10px;
}

@media (max-width: 768px) {
  #footer { font-size: 14px;}
  #footer .footer-top p { font-size: 14px;}
  #footer ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  #footer ul li {
    padding: 4px;
  }
  .brand-logo img {
    max-width: 50px;
    max-height: 40px;}
}
/*--------------------------------------------------------------
# modal
--------------------------------------------------------------*/
.modal{
  top: 10%;
}
.modal-header {
  /* background: var(--gradient-secondary); */
  border-bottom: 1px solid var(--color-border-light) !important;
  color: var(--color-bg-white);
  font-weight: 900;
  border-bottom: 0;
}
.modal-header .close {
  color: var(--color-bg-white);
  font-size: 2rem;
  padding: 1rem 1rem;
  margin: -1rem -0.2rem -1rem auto;
  padding: 0;
  background-color: transparent;
  border: 0;
}
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 0 var(--color-bg-white);
  opacity: 1;
}
.modal-footer{
  border: 0;
}
h4.modal-title{
  color:var(--color-bg-white);
}
.modal-content {
    background: var(--color-bg-greyblue);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 0 4px 2px rgb(0 0 0 / 30%);
}
.modal-body {
  min-height: 60vh;
  max-height: 60vh;
  overflow-y: scroll;
}
.login_form .form-control {
  font-size: 18px;
  color: var(--color-text-primary);
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid;
  background: 0 0;
}
.login_form label {
  margin: 10px 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}
.login_form .button-red {
  /* min-width: 120px;
  height: 40px; */
  color: var(--color-bg-white);
  letter-spacing: 2px;
  font-weight: 400 !important;
  text-shadow: none;
  margin: 0 -15px;
  background: var(--color-btn-register-bright);
  border-radius: 40px;
  border: solid 1px var(--color-btn-register-bright);
}
.login_form .button-red:hover {
  background :#99000f;
  transition: all 0.4s;
}
#notice .nav-tabs {
  display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-text-primary);
}
#notice .tab-content li{
  margin-bottom: 12px;
  border-bottom: 1px dotted var(--color-box-shadow-dark);
}
#notice .nav-link{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  font-size: .8em;
  color: var(--color-text-primary);
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active, .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover{
  border: 0 !important;
  border-bottom: 4px solid var(--primary) !important; 
}
#notice .nav-link.active{
  color: var(--color-text-primary);
  background: transparent;
  border: 0;
  border-bottom: 4px solid var(--primary) !important; 
}
#notice .nav-link img{ max-height: 30px;}
#notice .tab-content .date {
    font-size: .8em;
    color: var(--color-text-lightgrey);
}
/*--------------------------------------------------------------
# Register
--------------------------------------------------------------*/
section#register {
    min-height: 60vh;
    padding: 60px 40px 120px 40px;
    background: #162405c7;
}

/*-----------------------------------
    ft_menu
------------------------------------*/
.ft-navbar {
    background: transparent;
    /* backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */
    padding: 8px 0 28px 0;
    /* box-shadow: 0px -3px 16px rgb(154 113 75 / 43%), inset 0px 0px 0px 0px #fff8e854, inset 0px 3px 4px 0px #fff8e8; */
}
.ft-navbar::before {
    /* content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary); */
}
.ft-navbar ul {
  margin: auto;
  height: 40px;
  color: #d3def9;
}
.ft-navbar ul li {
  list-style: none;
  text-align: center;
  padding: 0px 10px;
  min-width: 46px;
}
.ft-link-home {
  position: relative;
  bottom: 17px;
  width: 120px;
  height: 54px;
  z-index: 10;
  text-align: center;
}
.ft-link-home .home {
  text-align: center;
  margin: 18px 0;
}
.ft-link-home .home img {
  margin: -8px 0px;
  max-width: 100%;
}
.ft-link-home .home div{
  font-size: .6em;
  line-height: 2.4;
  width: 50px;
  margin: -26px 14px;
}
a.ft-link {
    text-decoration: none;
    position: relative;
    font-size: .7em;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    border: 1px solid var(--color-border-light);
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-bottom: 10px;
    flex-shrink: 0;
    justify-content: center;
    backdrop-filter: blur(2px);
    color: var(--color-text-light);
    background-color: #1f3506cc;
    box-shadow: 0 8px 16px rgb(139 195 74 / 50%), inset -2px -4px 2px rgba(127, 63, 2, .16), inset 0 2px 1px #bbe57a;
    -webkit-border-radius: 10px;
    -moz-border-radius: 22px;
    -ms-border-radius: 22px;
    -o-border-radius: 22px;
    -webkit-border-radius: 22px;
    transition: all 0.3s ease;
}
.ft-link img {
  height: 25px;
  filter: drop-shadow(1px 1px 0px rgba(69, 34, 1, 0.5));
}
a.ft-link div{
  margin: 4px auto;
    text-align: center;
}
/*======================mynav=====================*/
.overlay {
  height: 100%;
  width: 0%;
  position: fixed;
  z-index: 1030;
  top: 0;
  left: 0;
  background-color: rgb(19 24 36 / 65%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  top: 0;
  position: relative;
  width: 70%;
  height: 100%;
  padding: 100px 12%;
  text-align: left;
  background: var(--color-bg-greyblue);
  opacity: 0;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.overlay a {
  text-decoration: none;
  transition: 0.3s;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  padding: 12px 25px;
  text-align: center;
  color: var(--color-bg-white) !important;
  display: flex;
  align-items: center;
  margin-bottom: 12px;

    position: relative;
    border: 1px solid var(--color-border-light);
    flex-shrink: 0;
    backdrop-filter: blur(2px);
    background-color: #1f3506cc;
    box-shadow: 0 8px 16px rgb(139 195 74 / 50%), inset -2px -4px 2px rgba(127, 63, 2, .16), inset 0 2px 1px #bbe57a;
    -webkit-border-radius: 10px;
    -moz-border-radius: 22px;
    -ms-border-radius: 22px;
    -o-border-radius: 22px;
    -webkit-border-radius: 22px;
    transition: all 0.3s ease;
}
.overlay a:hover, .overlay a:focus {
  color: #e3ba94;
}
a.overlay-btn img {
  width: 25px;
  height: 25px;
  color: var(--color-bg-white);
  margin-right: 10px;
}
.overlay a.closebtn {
    position: absolute;
    z-index: 1;
    width: 60px;
    height: 60px;
    left: 15px;
    top: 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
        display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.brand-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(5, 14, 30, 0.95);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8%);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  overflow-y: auto;
}

.brand-overlay.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.brand-overlay-panel {
  position: relative;
  min-height: 100vh;
  padding: 90px 24px 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 0.85;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-overlay-head h2 {
  color: #ffffff;
  font-size: 2.1rem;
  margin-bottom: 0.35rem;
}

.brand-overlay-head p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.brand-card {
  display: block;
  min-height: 140px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.brand-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: #ffffff;
}

.brand-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.brand-overlay .brandtxt {
  position: static;
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-overlay-panel {
    padding: 80px 16px 32px;
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

/* mobNav_home */
a.mobNav_home {
  background: transparent;
  margin-bottom: 12px;
}
a.mobNav_home img{
  max-width: 100%;
}
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

/*======================login-els=====================*/
.login-else, .register_else{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-else h4, .register h4{
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}
.login-else .hr ,.register_else .hr{
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: #8f8f8f;
}
.register_else .hr{
  margin: 40px 0;
}
.else-btn {
  display: flex;
    width: 275px !important;
    height: 50px;
    background: -webkit-linear-gradient(90deg,#5BC2E7 20%, #ffe97d,#5BC2E7 90%);
    border-radius: 40px;
    padding: 6px 20px;
    margin: 5px 0;
    align-items: center;
    justify-content: space-between;
}
.else-btn.google{
    padding: 0;
    background:linear-gradient( 127deg,
    #4285f4 0%, #4285f4 15%,
    #DB4437 15%, #DB4437 20%,
    #f4b400 20%, #f4b400 30%,
    #0f9d58 20%, #0f9d58 100%);
}
.google div{
  color: #DB4437;
  background: #ffffff;
  width: 272px !important;
  height: 47px;
  border-radius: 40px;
  padding: 6px 20px;
  margin: auto;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.else-btn.line{
  background: #06c755;
  color: #fff;
  border: 2px solid #0ce762;
}
.else-btn span {
  width: 80%;
  text-align: left;
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 14px;
  border-left: 1px solid;
  padding-left: 16px;
}
.else-btn img{
  max-width: 40px;
  padding: 5px;
}


/* --=========.authModal============-- */
.auth-btn {
  cursor: pointer;
}

.authModal{
  display: none;
  position: fixed;
  z-index: 1040;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.authModal .modal-box{
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: var(--color-bg-greyblue);
  padding: 0px 0px 16px 0px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}

/* 桌機版：置中顯示 */
@media (min-width: 768px) {
  .modal-box {
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: fadeInUp 0.3s ease;
  }
}

/* 手機版：底部滑出 */
@media (max-width: 767px) {
  .modal-box {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: slideUp 0.4s ease;
  }
}

/* 動畫效果 */
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100%);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    transform: translate(-50%, 60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.6);
  }
}

.authModal .close_m {
    position: absolute;
    right: 10px;
    top: -49px;
    font-size: 4em;
    line-height: 1.1;
    background: transparent;
    /* border: 4px solid #fff; */
    border-radius: 100%;
    line-height: 0.8;
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
}
.authModal .tab-header{
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
}

.authModal .tab-btn{
  flex: 1;
  padding: 10px;
  background: var( --color-bg-lighter);
  opacity: .5;
  border: none;
  color: #fff;
  cursor: pointer;
}

.authModal .tab-btn.active{
  background: var(--color-bg-greyblue);
  color:#fff;
  font-weight: bold;
  opacity: 1;
}
.authModal .tab-content{
  padding: 20px;
  text-align: center;
  max-height: 70vh;
  overflow-y: scroll;
}
.authModal .tab-content input ,.authModal .tab-content select{
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background: var(--color-bg-greyblue);
  border: 4px solid var(--color-border-light);
  border-radius: 6px;
  color: var(--color-text-primary);
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}
.authModal .captcha-box {
    height: 46px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius:10px;
}
.authModal .login, .authModal .register,
.authModal .transfer, .authModal .history{
  width: 100%;
  padding: 20px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  margin-top: 20px;
  cursor: pointer;
}
.authModal h5{
  color: var(--color-text-primary);
  font-weight: 400;
}
.authModal .login-else-box{
    margin-top: 13px;
    border-top: 1px solid var(--color-bg-lighter);
    padding: 12px 0px;
}
.login-else-box .log-img img{
  width: 50px;
  margin-right: 4px;
}
.authModal img#regImg {
    margin: 20px;
}

/* 快速轉點------------------------------------- */
#authModalTransfer .modal-box .content{
  padding: 40px 30px 85px 30px;
  text-align: center;
}
#transferFrom, #transferTo, #transferAmount{
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--color-bg-white);
}
#transferAmount{
  width: 70%;
}
.transfer-group, #transferFrom{
  width: 100%; 
}
.transfer-group-box{
  display: flex;
}
#authModalTransfer .transfer-group.Amount, #transferFrom, #transferTo {
    padding: 10px 6px;
    margin: 10px 0;
    background: var(--color-grey-grey);
    border: 1px solid var(--color-grey-medium);
    border-radius: 5px;
    color: var(--color-text-primary);
    margin: 2px;
}
#authModalTransfer .transfer-group label{
    width: 100%;
    padding: 0 10px;
}
#authModalTransfer .transfer-group option{
  position: relative;
}
.transfer-group.Amount {
    width: 100% !important;
}
#authModalTransfer button {
    width: 49%;
    padding: 9px 10px;
    margin: 1px;
    background: var(--gradient-secondary);
    color: #000;
    border: none;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    font-weight: normal;
    border-radius:30px;
    -webkit-border-radius:30px;
    -moz-border-radius:30px;
    -ms-border-radius:30px;
    -o-border-radius:30px;
}
.transfer-actions{
  width: 100%;
  display: flex;
}
#authModalTransfer button.transfer-all{
    width: 28%;
    margin-top: 0px;
    padding: 6px;
    font-size: .9em;
}
#authModalTransfer .transferToIcon{ 
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 2em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 4px 12px 4px;
}
.transfer-actions .btn-confirm {
    background: transparent !important;
    border: 1px solid var(--color-accent-orange) !important;
    color: var(--color-text-primary) !important;
}

body {
  min-height: 110vh; /* 確保內容比螢幕長，才有滾動空間觸發隱藏 */
}
/* ========== GAMES CAROUSEL ========== */
.games-section {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, rgba(38, 75, 129, 0.15) 0%, rgba(5, 14, 30, 0.08) 100%);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var( --color-border-light );
  border-radius: 50%;
  background: var(--color-shadow-dark);
  color: var( --color-text-light );
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-box-shadow-darkk);
  border-color: var(--color-border-light);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: #ffd699;
}

.games-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 20px;
  margin: 0 -20px;
  padding-right: 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.games-carousel::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 calc(50% - 8px);
  min-width: 220px;
  max-width: 280px;
  border-radius: 18px;
  background: rgb(0 0 0 / 25%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  background: rgb(0 0 0 / 25%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.game-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.08);
}

.game-info {
  padding: 14px 16px;
}

.game-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.game-meta span {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: #50791f;
  color: #ffffff;
  font-weight: 600;
}

.game-meta .prize {
  background: rgba(255, 217, 102, 0.15);
  color: #ffd966;
}

@media (max-width: 1024px) {
  .game-card {
    flex: 0 0 calc(50% - 8px);
    max-width: 100%;
  }

  .game-card.featured {
    flex: 0 0 calc(100% - 0px);
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .games-section {
    padding: 32px 0 50px;
  }

  .section-header {
    margin-bottom: 20px;
    padding: 0 12px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .games-carousel {
    padding: 0 12px;
    margin: 0 -12px;
    gap: 12px;
  }

  .game-card {
    flex: 0 0 calc(50% - 6px);
    min-width: 160px;
    max-width: 100%;
  }

  .game-card.featured {
    flex: 0 0 100%;
  }

  .game-info {
    padding: 12px 14px;
  }

  .game-title {
    font-size: 0.95rem;
  }

  .game-description {
    font-size: 0.8rem;
  }

  .game-meta span {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}
