@-webkit-keyframes wobble {
  26% {
    transform: translateZ(0);
  }
  29% {
    transform: translate3d(-10%, 0, 0) rotate(-5deg);
  }
  35% {
    transform: translate3d(10%, 0, 0) rotate(3deg);
  }
  42% {
    transform: translate3d(-5%, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(5%, 0, 0) rotate(2deg);
  }
  54% {
    transform: translate3d(-2%, 0, 0) rotate(-1deg);
  }
  60% {
    transform: translateZ(0);
  }
}
@keyframes wobble {
  26% {
    transform: translateZ(0);
  }
  29% {
    transform: translate3d(-10%, 0, 0) rotate(-5deg);
  }
  35% {
    transform: translate3d(10%, 0, 0) rotate(3deg);
  }
  42% {
    transform: translate3d(-5%, 0, 0) rotate(-3deg);
  }
  50% {
    transform: translate3d(5%, 0, 0) rotate(2deg);
  }
  54% {
    transform: translate3d(-2%, 0, 0) rotate(-1deg);
  }
  60% {
    transform: translateZ(0);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
}

#body {
  margin: 0 auto;
  max-width: 450px;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}

#header {
  width: 100%;
  height: 74px;
  background: url("../img/header.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
}

#header img {
  height: 32px;
}

#main {
  width: 100%;
  flex: 1;
  margin-top: 1px;
}

#main #category {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  margin-top: 20px;
  padding: 0 10px;
}

#main #category::-webkit-scrollbar {
  display: none;
}

#main #category .category-item {
  padding: 5px 10px;
  border-radius: 7px;
  color: #411B79;
  font-size: 12px;
  margin-right: 10px;
}

#main #category .category-item:last-child {
  margin-right: 0;
}

#main #category .active {
  font-weight: 700;
  background: linear-gradient(
    to left,
    #5BFFD4,
    #F7A7FF
  );
  color: #6C14C2;
}

#main #list {
  padding: 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

#main #list .game-item {
  width: 33.3%;
  padding: 5px;
  aspect-ratio: 1;
}

#main #list .game-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff;
}

#main .main-content {
  padding: 10px;
  color: #333;
  font-size: 14px;
  line-height: 20px;
  text-indent: 2em;
}

#main .main-content h2 {
  text-align: center;
  margin-bottom: 10px;
}

#main .main-content .mian-content-contact {
  padding: 10px;
  border-radius: 10px;
  background: #ACFFF1;
  color: #411B79;
  margin-top: 20px;
}
#main .main-content .mian-content-contact a {
  color: #009cff;
}

.main-detail {
  position: relative;
  width: 100%;
  height: 212px;
  overflow: hidden;
}

.main-detail-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(10px);
}

.main-detail-games {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0 0 20px;
}

.main-detail-games-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #fff;
  overflow: hidden;
}

.main-detail-games-avatar img {
  width: 100%;
  height: 100%;
}

.main-detail-games-info {
  margin-left: 20px;
}
.main-detail-games-info-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-weight: 700;
}

.main-detail-games-info-rate {
  color: #fff;
  height: auto;
  display: flex;
  align-items: center;
  margin-top: 5px;
}
.rating-star {
  width: 12px;
  height: 12px;
  font-size: 12px;
  position: relative;
  margin-right: 5px;
}

.full-star:before {
  color: #5BFFD5;
  content: "\2605";
  position: absolute;
  left: 0;
  overflow: hidden;
}

.empty-star:before {
  content: "\2605";
  position: absolute;
  left: 0;
  overflow: hidden;
}

.half-star:before {
  color: #5BFFD5;
  content: "\2605";
  width: 100%;
  position: absolute;
  left: 0;
  overflow: hidden;
}

.half-star:after {
  content: "\2605";
  position: absolute;
  width: 100%;
  left: 50%;
  text-indent: -50%;
  overflow: hidden;
}

.main-detail-btn {
  position: relative;
  margin: 60px auto 0;
  width: 60%;
  height: 40px;
  background: linear-gradient(to left,#5BFFD4,#F7A7FF);
  line-height: 40px;
  text-align: center;
  color: #fff;
  border-radius: 40px;
  font-size: 14px;
  -webkit-animation: wobble 3s linear infinite backwards;
  animation: wobble 3s linear infinite backwards;
}

.Recommend {
  position: relative;
  margin-top: 20px;
}
.recommend-title-bg {
  position: absolute;
  width: 175px;
  height: 28px;
}
.recommend-title-bg img {
  width: 100%;
  height: 100%;
}
.recommend-title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: #6C14C2;
  width: 146px;
  font-weight: 700;
  text-align: right;
}

.recommend-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.recommend-list .recommend-item {
  width: 25%;
  padding: 5px;
  aspect-ratio: 1;
}

.recommend-list .recommend-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff;
}

#intro {
  width: calc(100% - 20px);
  margin: 10px auto;
  border-radius: 10px;
  padding: 15px 10px;
  background: #ACFFF1;
  color: #411B79;
}

#intro p {
  font-size: 16px;
  line-height: 20px;
  text-indent: 1em;
}

#intro li {
  font-size: 14px;
  line-height: 20px;
}

#intro h2 {
  font-size: 20px;
  text-align: center;
  font-weight: 700;
}

#footer {
  width: 100%;
  height: 130px;
  background: url("../img/footer.png") no-repeat;
  background-size: 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #411B79;
}

#footer img {
  height: 32px;
}

#footer #link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  margin-top: 20px;
}

#link .a a {
  display: block;
  color: #411B79;
  font-size: 14px;
  margin-bottom: 10px;
}

#link .a a:last-child {
  margin-bottom: 0;
}

#footer p {
  color: #411B79;
  width: 90%;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.gameIframe{
  width: 100%;
  height: 100%;
}
#backIcon{
  background: url("../img/backhome.png")no-repeat;
  width: 42px;
  height: 42px;
  background-size: 100% 100%;
  position: absolute;
  cursor: pointer;
  transition: left 0.3s ease;
}
#play{
  width: 100vw;
  height: 100vh;
}
