:root {
  --swiper-pagination-bullet-horizontal-gap: 0;
  --bg-gradient: linear-gradient(
    0deg,
    rgba(69, 134, 248, 1) 1%,
    rgba(0, 55, 150, 1) 50%,
    rgba(69, 134, 248, 1) 100%
  );
}

body {
  background: #000 url("../images/wrap-bg-m.jpg") no-repeat center top;
  background-size: 100% auto;
  @media (width > 1054px) {
    background-image: url("../images/wrap-bg.jpg");
    background-size: 1920px auto;
  }
}

.wrap {
  overflow: hidden;
}

.site-main {
  max-width: 1054px;
  margin: 0 auto;
}

.game-intro {
  position: relative;
  aspect-ratio: 960/1882;
  @media (width > 1054px) {
    aspect-ratio: inherit;
    height: 1882px;
  }
}

.btn-play {
  width: 85vw;
  display: block;
  position: absolute;
  transition: all 300ms ease;
  left: 50%;
  bottom: 0;
  transform: translate3d(-50%, -100%, 0);
  &::before {
    width: 100%;
    height: 100%;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background: transparent url("../images/btn-play-hover@2x.webp") no-repeat 0
      0;
    background-size: cover;
    opacity: 0.5;
    transition: opacity 300ms ease;
  }
  &::after {
    content: "";
    position: absolute;
    width: 20vw;
    aspect-ratio: 1/1;
    background: transparent url("../images/hand@2x.webp") no-repeat 0 0;
    background-size: cover;
    animation: handAnimation 1000ms alternate infinite;
    translate: -24% 15%;
    left: 50%;
    top: 50%;
    pointer-events: none;
  }
  img {
    display: block;
    margin: 0;
  }
  @media (width > 1054px) {
    width: 840px;
    transform: translate3d(-50%, -38%, 0);
    &::after {
      width: 188px;
      translate: -24% 15%;
    }
  }
  @media (hover: hover) {
    & > div {
      transition: all 300ms ease;
    }
    &:hover {
      &::before {
        opacity: 1;
      }
    }
  }
}

.comment {
  aspect-ratio: 960/3050;
  padding-top: 4.4vw;
  position: relative;
  box-sizing: border-box;
  @media (width > 1054px) {
    aspect-ratio: 1920/3050;
    gap: 24px;
    padding-top: 40px;
  }
}

.comment-wrap {
  width: 110vw;
  margin: 0 auto;
  background-color: rgba(22, 13, 13, 0.7);
  border: solid 0.6vw #fff;
  padding: 5vw 0;
  border-radius: 4vw;
  transform: translate3d(-5vw, 0, 0);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4vw;
  box-shadow: 0 0 1vw 0.5vw #f84afe;
  filter: drop-shadow(0 0 1.5vw #f84afe);
  @media (width > 1054px) {
    width: 900px;
    border-width: 7px;
    border-radius: 40px;
    padding: 52px 24px;
    transform: translate3d(0, 0, 0);
    gap: 25px;
    box-shadow: 0 0 8px 4px #f84afe;
    filter: drop-shadow(0 0 20px #f84afe);
  }
}

.comment-post {
  width: 102vw;
  margin: 0 auto;
  @media (width > 1054px) {
    width: 100%;
  }
}

.remind {
  aspect-ratio:960/962; /* 原 960/3062;*/
  padding-top: 4.4vw;
  position: relative;
  box-sizing: border-box;
  
  @media (width > 1054px) {
    aspect-ratio: 1920/2062;
    gap: 24px;
    padding-top: 286px;
    padding-bottom: 40px;
  }
}

.remind-wrap {
  width: 110vw;
  margin: 0 auto;
  background-color: rgba(22, 13, 13, 0.7);
  border: solid 0.6vw #fff;
  padding: 7vw 0 5vw;
  border-radius: 4vw;
  transform: translate3d(-5vw, 0, 0);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3vw;
  position: relative;
  box-shadow: 0 0 1vw 0.5vw #f84afe;
  filter: drop-shadow(0 0 1.5vw #f84afe);
  @media (width > 1054px) {
    width: 900px;
    border-width: 7px;
    border-radius: 40px;
    padding: 52px 0;
    transform: translate3d(0, 0, 0);
    gap: 25px;
    box-shadow: 0 0 8px 4px #f84afe;
    filter: drop-shadow(0 0 20px #f84afe);
  }
}

.remind-item {
  &:not(:last-child) {
    margin-bottom: 3vw;
    @media (width > 1054px) {
      margin-bottom: 20px;
    }
  }
}

.remind-content {
  background: transparent url("../images/remind-content-bg@2x.webp") no-repeat
    center top;
  background-size: 100% auto;
  width: 102vw;
  margin: 0 auto;
  padding-top: 6vw;
  padding-left: 4vw;
  padding-right: 4vw;
  aspect-ratio: 1958/4229;
  box-sizing: border-box;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  font-weight: bold;
  @media (width > 1054px) {
    width: 840px;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
  }
  h2 {
    font-size: 8vw;
    color: #2a221c;
    text-align: center;
    @media (width > 1054px) {
      font-size: 70px;
    }
  }
  h3 {
    font-size: 2.73vw;
    color: #2a221c;
    @media (width > 1054px) {
      font-size: 26px;
    }
  }
  ul {
    padding-left: 4.6vw;
    @media (width > 1054px) {
      padding-left: 25px;
    }
    li {
      font-size: 2.73vw;
      color: #2a221c;
      @media (width > 1054px) {
        font-size: 25px;
        line-height: 1.2;
      }
      &:not(:last-child) {
        margin-bottom: 1vw;
        @media (width > 1054px) {
          margin-bottom: 12px;
        }
      }
      &.highlight {
        color: #71421c;
      }
    }
  }
}

.app-download {
  width: 100vw;
  margin: 0 auto;
  @media (width > 1054px) {
    width: 100%;
  }
}

.app-wrap {
  width: 84vw;
  display: grid;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  @media (width > 1054px) {
    width: 788px;
  }
}

.btn-link {
  width: 100%;
  @media (hover: hover) {
    transition: all 300ms ease;
    &:hover {
      translate: 0 -5%;
    }
  }
}

.icon-wrap {
  display: flex;
  justify-content: center;
  width: 84vw;
  margin: 0 auto;
  @media (width > 1054px) {
    width: 788px;
  }
}

.btn-icon {
  width: 100%;
  @media (hover: hover) {
    transition: all 300ms ease;
    &:hover {
      translate: 0 -5%;
    }
  }
}

.site-header {
  background-color: #fff;
  padding: 9vw 4vw 2vw;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2vw;
  @media (width > 1054px) {
    padding: 40px 24px;
    justify-content: center;
    gap: 20px;
  }
}

.lvc-logo {
  width: 30vw;
  height: auto;
  @media (width > 1054px) {
    width: 256px;
    position: absolute;
    left: 50%;
    transform: translate3d(-275%, 0, 0);
  }
}

.site-header-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Noto Serif TC", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  gap: 1vw;
  @media (width > 1054px) {
    width: auto;
    flex-direction: row;
  }
}

.site-header-inner {
  display: flex;
  gap: 4vw;
  @media (width > 1054px) {
    gap: 12px;
  }
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vw;
  span {
    font-size: 3vw;
    color: #cf1011;
  }
  @media (width > 1054px) {
    gap: 0;
    span {
      font-size: 24px;
    }
  }
}

.time-box {
  position: relative;
}

.num {
  width: 6.2vw;
  text-align: center;
  font-size: 5vw;
  color: #cf1011;
  padding-bottom: 1.2vw;
  line-height: 1;
  @media (width > 1054px) {
    width: 56px;
    font-size: 44px;
    padding-bottom: 4px;
  }
}

.label {
  font-size: 0;
  text-align: center;
  aspect-ratio: 1/1;
  width: 2.4vw;
  margin: 0 auto;
  @media (width > 1054px) {
    width: 24px;
  }
  &.day {
    background: transparent url("../images/text-day@2x.webp") no-repeat 0 0;
    background-size: cover;
  }
  &.hour {
    background: transparent url("../images/text-hour@2x.webp") no-repeat 0 0;
    background-size: cover;
  }
  &.min {
    background: transparent url("../images/text-min@2x.webp") no-repeat 0 0;
    background-size: cover;
  }
  &.sec {
    background: transparent url("../images/text-sec@2x.webp") no-repeat 0 0;
    background-size: cover;
  }
}

.btn-play-top {
  width: 26vw;
  margin: 0 auto;
  position: relative;
  display: block;
  &::after {
    content: "";
    position: absolute;
    width: 6vw;
    aspect-ratio: 190/192;
    background: transparent url("../images/hand@2x.webp") no-repeat 0 0;
    background-size: cover;
    animation: handAnimation 1000ms alternate infinite;
    translate: -10% 10%;
    left: 50%;
    top: 50%;
    pointer-events: none;
  }
  @media (width > 1054px) {
    width: 288px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(155%, -50%, 0);
    transition: transform 300ms ease;
    &::after {
      width: 64px;
    }
  }
  div {
    pointer-events: none;
    img {
      pointer-events: none;
    }
  }
}

.site-header-swiper {
  width: 50vw;
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 20%;
  @media (width > 1054px) {
    width: 550px;
    position: relative;
    top: inherit;
    left: inherit;
    translate: 0 0;
  }
  .swiper {
    width: 100%;
    aspect-ratio: 560/60;
  }
}

.site-footer {
  width: 100%;
  background: #000;
  padding: 10vw 0 15vw;
  display: flex;
  flex-direction: column;
  gap: 4vw;
  @media (width > 1054px) {
    padding: 40px 0;
    gap: 20px;
  }
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 6vw;
  @media (width > 1054px) {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4vw;
  p {
    font-size: 2vw;
    color: #fff;
    font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  }
  @media (width > 1054px) {
    gap: 12px;
    p {
      font-size: 14px;
    }
  }
}

.uj-logo {
  width: 24vw;
  @media (width > 1054px) {
    width: 156px;
  }
}

.footer-level {
  display: flex;
  padding: 0 6vw;
  @media (width > 1054px) {
    padding-left: 20px;
    padding-right: 20px;
    gap: 12px;
    align-items: center;
  }
}

.level-icon {
  width: 12vw;
  @media (width > 1054px) {
    width: 36px;
  }
}

.footer-list {
  padding-left: 5vw;
  @media (width > 1054px) {
    padding-left: 20px;
  }
  li {
    color: #fff;
    font-size: 2vw;
    @media (width > 1054px) {
      font-size: 14px;
    }
  }
}

.footer-remind {
  border-top: solid 0.2vw #fff;
  color: #fff;
  font-size: 2vw;
  padding: 3vw 4vw 0;
  text-align: center;
  @media (width > 1054px) {
    border-width: 1px;
    font-size: 14px;
    padding-top: 16px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

.loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #fff;
  left: 0;
  top: 0;
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity 1.5s ease;
  &.loaded {
    opacity: 0;
  }
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 51px;
  height: 51px;
  margin: 4px;
  border: 4px solid #ce0207;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #ce0207 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes mainTitleAnimation {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  25% {
    transform: scale(1.01);
    transition: all 1s ease-out;
    filter: brightness(1.2);
  }

  50% {
    transform: scale(1);
    filter: brightness(1);
  }

  75% {
    transform: scale(1.01);
    transition: all 1s ease-out;
    filter: brightness(1.2);
  }

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

@keyframes handAnimation {
  0%,
  50%,
  100% {
    filter: brightness(100%);
    scale: 1;
  }
  25%,
  75% {
    filter: brightness(130%);
    scale: 1.1;
  }
}

@keyframes borderAnimation {
  0%,
  50%,
  100% {
    filter: brightness(100%);
  }
  25%,
  75% {
    filter: brightness(150%);
  }
}
