html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, 'Microsoft YaHei', 微软雅黑, sans-serif;
  height: 100dvh;
  width: 100%;
  /* background: url(../img/bg.jpg) center no-repeat;
    background-size: cover; */
  background: #0f0902;
  box-sizing: border-box;
  overflow: hidden;
}
body {
  -moz-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
}
a {
  text-decoration: none;
  transition: 0.2s;
}

p {
  margin: 0;
}

img {
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.w750 {
  /* width: min(100%, 750px); */
  margin: 0 auto;
  height: 100%;
  position: relative;
  /* background: url(../img/99win_進入頁.mp4) 50% 50%; */
}

.banner {
  position: relative;
  width: 100%;
  max-height: 100vh;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

.banner .video-pc,
.banner .video-wap {
  width: 100%;
  pointer-events: none;
  display: block;
  object-fit: cover;
  margin: 0 auto;
  height: 100%;
}
.banner .mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/mask.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.85;
}
.banner-wap {
  display: none;
}
.main {
  top: 48%;
  position: fixed;
  text-align: center;
  transition: 0.5s;
  animation: fadeDown_In 1s;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    margin-top: -20px;
  }

  100% {
    opacity: 1;
    margin-top: 0;
  }
}

.logo {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-bottom: min(8vw, 160px);
}

.logo-item {
  width: min(55vw, 640px);
  max-width: 94vw;
  display: block;
  filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.45));
}

/* 按鈕 */
.btn {
  position: relative;
  cursor: pointer;
  display: block;
  width: min(50vw, 660px);
  margin: auto;
}

.btn:hover .btn-main {
  animation: btn-hover 0.6s ease forwards, btn-pulse 2s ease-in-out infinite;
}
.btn .btn-main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(70%, 529px);
  aspect-ratio: 529/104;
  margin: 0 auto;
  background: #fff;
  color: #1faa6a;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 2rem);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(31, 170, 106, 0.25);
  box-shadow: 0 15px 40px rgba(47, 255, 178, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 12px rgba(31, 170, 106, 0.65);
  animation: btn-pulse 2.5s ease-in-out infinite;
}
.btn .btn-bg {
  position: absolute;
  top: -50%;
  left: 0;
  right: 0;
  z-index: -1;
  width: 100%;
  pointer-events: none;
  animation: btn-light-glow 2.5s ease-in-out infinite;
}
.btn.btn-wap {
  display: none;
}

@keyframes btn-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(47, 255, 178, 0.3),
      inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  }

  35% {
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 25px 60px rgba(47, 255, 178, 0.55),
      inset 0 0 25px rgba(255, 255, 255, 0.7);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(47, 255, 178, 0.3),
      inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  }
}

@keyframes btn-light-glow {
  0% {
    transform: scale(1);
    opacity: 0.85;
    filter: brightness(1);
  }

  40% {
    transform: scale(1.08);
    opacity: 1;
    filter: brightness(1.25);
  }

  100% {
    transform: scale(1);
    opacity: 0.85;
    filter: brightness(1);
  }
}

@keyframes btn-hover {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03) translateY(-1px);
  }

  100% {
    transform: scale(1.01);
  }
}

@media screen and (max-height: 900px) {
  .banner video {
    top: -50px;
  }

  .container {
    padding: 12px;
  }
  /* 
    .sub01 {
        font-weight: bold;
        font-size: min(1.5vh, 24px);
        letter-spacing: 1px;
        margin-bottom: 4px;
        margin-top: 8px;
    }

    .sub02 {
        font-size: min(1.4vh, 18px);
        letter-spacing: 1px;
    } */
}

@media screen and (max-width: 768px) {
  .banner .mask {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03) 0%,
        rgba(32, 125, 108, 0.15) 45%,
        rgba(128, 245, 207, 0.3) 100%
      )
      !important;
  }
  .banner .video-pc {
    display: none;
  }
  .banner .video-wap {
    display: block;
  }
  .w750 {
    width: min(100%, 750px);
  }
  .main {
    top: 44%;
  }
  .logo {
    margin-bottom: 80px;
  }
  .logo-item {
    width: min(98vw, 460px);
  }
  .btn {
    width: min(60vw, 400px);
  }

  .btn .btn-main {
    width: min(90%, 420px);
    font-size: clamp(0.9rem, 4vw, 1.4rem);
  }
  .btn .btn-bg {
    top: -18%;
  }
  .btn.btn-pc {
    display: none;
  }
  .btn.btn-wap {
    display: block;
  }
}
