/** mixins **/

.top-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  z-index: 99;
}

.top-bar #logo {
  width: 1.8rem;
  height: 1.33rem;
  position: absolute;
  left: 0.55rem;
  top: 0.16rem;
}

.top-bar #logo img {
  width: 1.8rem;
  height: 1.33rem;
  -o-object-fit: contain;
  object-fit: contain;
}

.top-bar.scrolled::before {
  position: absolute;
  display: block;
  content: '';
  width: 25.18rem;
  height: 0.8rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/bg_54cd27f1.png) no-repeat;
  background-size: 100% 100%;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.top-bar nav {
  margin-left: 3.32rem;
}

.top-bar nav ul {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.top-bar nav ul li {
  margin-right: 1.26rem;
  text-transform: uppercase;
  font-size: 0.28rem;
  color: #a1baff;
}

.top-bar nav ul li a {
  display: block;
  position: relative;
  -webkit-perspective: 5rem;
  perspective: 5rem;
}

.top-bar nav ul li a span {
  display: block;
}

.top-bar nav ul li a span:nth-child(1) {
  display: block;
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
  opacity: 1;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform-origin: center center -0.1rem;
  transform-origin: center center -0.1rem;
}

.top-bar nav ul li a span:nth-child(2) {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: -webkit-gradient(linear, left top, right top, from(#f8b7cf), color-stop(#bab2fb), to(#b5c4fd));
  background: linear-gradient(to right, #f8b7cf, #bab2fb, #b5c4fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-transform: rotateX(90deg);
  transform: rotateX(90deg);
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-transform-origin: center center -0.1rem;
  transform-origin: center center -0.1rem;
}

.top-bar nav ul li a:hover span:nth-child(1) {
  opacity: 0;
  -webkit-transform: rotateX(-90deg);
  transform: rotateX(-90deg);
}

.top-bar nav ul li a:hover span:nth-child(2) {
  opacity: 1;
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
}

.top-bar nav ul li a.active span:nth-child(1) {
  opacity: 0;
  -webkit-transform: rotateX(-90deg);
  transform: rotateX(-90deg);
}

.top-bar nav ul li a.active span:nth-child(2) {
  opacity: 1;
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
}

.top-bar nav ul li a.active::after,
.top-bar nav ul li a.active::before {
  display: block;
  content: '';
  position: absolute;
}

.top-bar nav ul li a.active::before {
  left: 0;
  top: 50%;
  margin-left: -0.52rem;
  margin-top: -0.13rem;
  width: 0.26rem;
  height: 0.26rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -3.64rem -1.5rem;
  -webkit-animation: z_i_3_hecheng_1_000_transform_bezier_anim 0.333s 0s both;
  animation: z_i_3_hecheng_1_000_transform_bezier_anim 0.333s 0s both;
}

.top-bar nav ul li a.active::after {
  right: 0;
  top: 50%;
  margin-right: -0.52rem;
  margin-top: -0.13rem;
  width: 0.26rem;
  height: 0.26rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -2.42rem -1.95rem;
  -webkit-animation: z_i_3_hecheng_1_000_transform_bezier_anim 0.333s 0s both;
  animation: z_i_3_hecheng_1_000_transform_bezier_anim 0.333s 0s both;
}

@-webkit-keyframes z_i_3_hecheng_1_000_transform_bezier_anim {
  0% {
    -webkit-transform: rotate(0deg) scale(0, 0);
    transform: rotate(0deg) scale(0, 0);
    -webkit-animation-timing-function: cubic-bezier(0.33, 0, 0.67, 1);
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 1);
  }

  80% {
    -webkit-transform: rotate(180deg) scale(1, 1);
    transform: rotate(180deg) scale(1, 1);
    -webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);
    animation-timing-function: cubic-bezier(0, 0, 1, 1);
  }

  100% {
    -webkit-transform: rotate(180deg) scale(1, 1);
    transform: rotate(180deg) scale(1, 1);
  }
}

@keyframes z_i_3_hecheng_1_000_transform_bezier_anim {
  0% {
    -webkit-transform: rotate(0deg) scale(0, 0);
    transform: rotate(0deg) scale(0, 0);
    -webkit-animation-timing-function: cubic-bezier(0.33, 0, 0.67, 1);
    animation-timing-function: cubic-bezier(0.33, 0, 0.67, 1);
  }

  80% {
    -webkit-transform: rotate(180deg) scale(1, 1);
    transform: rotate(180deg) scale(1, 1);
    -webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);
    animation-timing-function: cubic-bezier(0, 0, 1, 1);
  }

  100% {
    -webkit-transform: rotate(180deg) scale(1, 1);
    transform: rotate(180deg) scale(1, 1);
  }
}

.top-bar .right-section {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-right: 0.65rem;
}

.top-bar .right-section .social-media {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding-right: 0.32rem;
  margin-right: 0.28rem;
  position: relative;
}

.top-bar .right-section .social-media::after {
  display: block;
  content: '';
  width: 0.02rem;
  height: 0.31rem;
  background-color: #acbafd;
  opacity: 0.61;
  position: absolute;
  right: -0.02rem;
}

.top-bar .right-section .social-media a {
  display: block;
  margin-right: 0.42rem;
}

.top-bar .right-section .social-media a:last-child {
  margin-right: 0;
}

.top-bar .right-section .social-media a .icon {
  display: block;
}

.top-bar .right-section .social-media a .icon-discord {
  width: 0.41rem;
  height: 0.34rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0.8rem -1.95rem;
}

.top-bar .right-section .social-media a .icon-discord:hover {
  width: 0.41rem;
  height: 0.34rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -1.25rem -1.95rem;
}

.top-bar .right-section .social-media a .icon-x {
  width: 0.32rem;
  height: 0.34rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -1.7rem -1.95rem;
}

.top-bar .right-section .social-media a .icon-x:hover {
  width: 0.32rem;
  height: 0.34rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -2.06rem -1.95rem;
}

.top-bar .right-section .social-media a .icon-youtube {
  width: 0.44rem;
  height: 0.32rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -2.18rem -1.5rem;
}

.top-bar .right-section .social-media a .icon-youtube:hover {
  width: 0.44rem;
  height: 0.32rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -2.66rem -1.5rem;
}

.top-bar .right-section .social-media a .icon-facebook {
  width: 0.4rem;
  height: 0.4rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0.44rem -1.5rem;
}

.top-bar .right-section .social-media a .icon-facebook:hover {
  width: 0.4rem;
  height: 0.4rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0.88rem -1.5rem;
}

.top-bar .right-section .social-media a .icon-instagram {
  width: 0.39rem;
  height: 0.39rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -1.32rem -1.5rem;
}

.top-bar .right-section .social-media a .icon-instagram:hover {
  width: 0.39rem;
  height: 0.39rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -1.75rem -1.5rem;
}

.top-bar .right-section .social-media a .icon-twitch {
  width: 0.36rem;
  height: 0.43rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0 -1.95rem;
}

.top-bar .right-section .social-media a .icon-twitch:hover {
  width: 0.36rem;
  height: 0.43rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0.4rem -1.95rem;
}

.top-bar .right-section .user-box {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 0.42rem;
}

.top-bar .right-section .user-box .user-login,
.top-bar .right-section .user-box .user-name {
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 0.28rem;
  height: 0.56rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.28rem;
}

.top-bar .right-section .user-box .user-login > span,
.top-bar .right-section .user-box .user-name > span {
  display: inline-block;
  color: #bab2fb;
  font-weight: bold;
  background: -webkit-gradient(linear, left top, right top, from(#f8b7cf), color-stop(#bab2fb), to(#b5c4fd));
  background: linear-gradient(to right, #f8b7cf, #bab2fb, #b5c4fd);
  -webkit-background-clip: text;
  background-clip: text;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .top-bar .right-section .user-box .user-login > span,
  .top-bar .right-section .user-box .user-name > span {
    color: transparent !important;
  }
}

.top-bar .right-section .user-box .user-name {
  position: relative;
}

.top-bar .right-section .user-box .user-name > span {
  max-width: 1.32rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.top-bar .right-section .user-box .user-name:after {
  content: '';
  width: 0.46rem;
  height: 0.28rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -3.14rem -1.5rem;
  margin-left: 0.18rem;
}

.top-bar .right-section .user-box .user-name:hover:after {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.top-bar .right-section .user-box .user-name:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
}

.top-bar .right-section .user-box .user-name:hover .user-dropdown > ul {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.top-bar .right-section .user-box .user-dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
}

.top-bar .right-section .user-box .user-dropdown > ul {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin-top: 0.05rem;
  width: 2.22rem;
  height: 1.46rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0 -0;
  padding-top: 0.2rem;
  -webkit-transform: translateY(0.1rem);
  transform: translateY(0.1rem);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.top-bar .right-section .user-box .user-dropdown li {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 0.22rem;
  margin-bottom: 0.1rem;
}

.top-bar .right-section .user-box .user-dropdown li span {
  color: #5c78db;
  background: -webkit-gradient(linear, left top, left bottom, from(#5c78db), to(#ad9cf0));
  background: linear-gradient(to bottom, #5c78db, #ad9cf0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-bar .right-section .user-box .user-dropdown li .user-logout {
  width: 1.5rem;
  height: 0.4rem;
  background-color: #fff;
  color: #5c78db;
  border-radius: 0.4rem;
  cursor: pointer;
}

.top-bar .right-section .user-box .user-dropdown li:last-child {
  margin-bottom: 0;
}

.top-bar .right-section .user-box.is-login .user-login {
  display: none;
}

.top-bar .right-section .user-box.is-login .user-name {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.top-bar .right-section .user-box.is-not-login .user-login {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.top-bar .right-section .user-box.is-not-login .user-name {
  display: none;
}

.top-bar .language-switcher {
  position: relative;
}

.top-bar .language-switcher:hover .language-list {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0) translateX(-64%);
  transform: translateY(0) translateX(-64%);
}

.top-bar .language-switcher .language-trigger {
  cursor: pointer;
  width: 0.4rem;
  height: 0.41rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -0 -1.5rem;
}

.top-bar .language-switcher .language-trigger i {
  font-size: 1.2rem;
  color: white;
}

.top-bar .language-switcher .language-list {
  position: absolute;
  left: 50%;
  top: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 1.82rem;
  height: 1.46rem;
  background: url(https://www.pptgame.com/pc/gw/20250422163632/assets/sprite-0e6571_0e6571a9.png) no-repeat;
  background-size: 4.12rem 2.42rem;
  background-position: -2.26rem -0;
  padding-top: 0.2rem;
  margin-top: 0.05rem;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(0.1rem) translateX(-64%);
  transform: translateY(0.1rem) translateX(-64%);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 100;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.top-bar .language-switcher .language-list .language-option {
  width: 1.5rem;
  height: 0.4rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.22rem;
  margin-bottom: 0.1rem;
  border-radius: 0.4rem;
}

.top-bar .language-switcher .language-list .language-option span {
  color: #5c78db;
  background: -webkit-gradient(linear, left top, left bottom, from(#5c78db), to(#ad9cf0));
  background: linear-gradient(to bottom, #5c78db, #ad9cf0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-bar .language-switcher .language-list .language-option:hover,
.top-bar .language-switcher .language-list .language-option.active {
  background-color: #fff;
}

.top-bar .language-switcher .language-list .language-option:last-child {
  margin-bottom: 0;
}
