@import url("./main.css");
@import "play_mobile.css";

.playPage {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playPage .gameBanner {
    position: relative;
    /* height: 100vh; */
    max-height: 1500px;
    background-color: rgba(255, 255, 255, 0.1);
  }

.playPage .gameBanner .bgdimg {
      position: absolute;
      z-index: -1;
      width: 100%;
      height: 100%;
      /* 毛玻璃效果 */
      filter: blur(25px);
    }

.playPage .gameBanner .gameBannerbox {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      gap: 20px;
      padding: 20px 0;
    }

.playPage .gameBanner .gameBannerbox .gameTitle {
        color: var(--color-background-light);
        /* 省略号 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        text-align: center;
        /* height: 60px; */
      }

.playPage .gameBanner .gameBannerbox .footer {
        width: 100%;
        opacity: 0.8;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 20px;
      }

.playPage .gameBanner .gameBannerbox .footer .mainImg {
          width: 150px;
          height: 150px;
          aspect-ratio: 1/1;
          -o-object-fit: cover;
             object-fit: cover;
          border-radius: 20px;
          transform: scale(1);
          transition: 0.3s;
          box-shadow: 2px 2px 4px 0 rgba(255, 255, 255, 0.3);
        }

.playPage .gameBanner .gameBannerbox .footer .gameMsg {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 4px;
        }

.playPage .gameBanner .gameBannerbox .footer .gameMsg img {
            width: 30px;
          }

.playPage .gameBanner .gameBannerbox .footer .gameMsg .gameMsgNum {
            color: var(--color-background-light);
            height: 20px;
          }

.playPage .playButton {
    width: calc(100% - 20px);
    margin: 0 auto;
    cursor: pointer;
    padding: 10px;
    background-color: hsl(193.95, 90.53%, 62.75%);
    color: var(--color-background-light);
    border-radius: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

.playPage .playButton:hover {
      background-color: var(--color-background-light);
      color: var(--color-background1);
    }

.playPage .playButton img {
      width: 30px;
      height: 30px;
      -o-object-fit: cover;
         object-fit: cover;
    }

.playPage .description {
    width: calc(100% - 20px);
    margin: 0 auto;
    height: 140px;
    overflow: auto;
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 10px 20px;
    line-height: 2rem;
    color: var(--color-background-light);
  }

.playPage .SimilarGame {
    width: calc(100% - 20px);
    margin: 0 auto;
    display: grid;
    grid-auto-rows: 100px;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-gap: 10px;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 10px;
  }

.playPage .SimilarGame a {
      width: 100%;
      height: 100%;
      display: flex;
    }

.playPage .SimilarGame .gameItem img {
        width: 100%;
        height: 100%;
        -o-object-fit: cover;
           object-fit: cover;
        border-radius: 10px;
      }

.playPage .SimilarGame .gameItem img:hover {
          transform: scale(1.1);
        }

.playPage .HomeButton {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 70px;
    /* background-color: rgba(255, 255, 255, 0.5); */
    background-color: var(--color-background-light);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border-radius: 0 0 100% 0;
    color: var(--color-background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
  }

.playPage .HomeButton span {
      transform: translate(-10px, -10px);
    }

.playPage .HomeButton {
    /* 禁止复制 */
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }

.playPage .HomeButton:hover {
      background-color: var(--color-background-light);
      color: white;
    }

.playPage .HomeButton img {
      width: 40px;
      height: 40px;
      -o-object-fit: cover;
         object-fit: cover;
      transform: translate(-5px, -5px);
    }

.playPage.loadingAnimation::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, white, white); /* 背景渐变色 */
  }

.playPage.loadingAnimation::after {
    content: "welcome...";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: var(--color-background-light);
    font-size: 50px;
    font-weight: bold;
    /* 字体抖动动画 */
    animation: shake 1.5s linear infinite, fadeIn 1.5s linear infinite;
  }
