/* Keep the original desktop layout while allowing content to fit smaller screens. */
html { -webkit-text-size-adjust: 100%; }
.page { height: auto; min-height: 100vh; }
.page > .site-footer-art { height: auto; line-height: 0; }
.page > .site-footer-art > img { display: block; width: 100%; height: auto; }
.mobile-footer { display: none; }
.page > .main,
.header .header-inner[data-v-9b632c04] {
  width: calc(100% - 32px);
  max-width: 1080px;
  box-sizing: border-box;
}
.page > .el-carousel .el-carousel__container {
  height: auto !important;
  aspect-ratio: auto;
}
.page > .el-carousel .el-carousel__item { position: relative; height: auto; }
.page > .el-carousel .el-carousel__item > .el-image { height: auto !important; display: block; }
.page > .el-carousel .el-image__inner { display: block; width: 100%; height: auto; }
.page > .el-carousel .el-carousel__indicators { display: none; }
.page > .main .title2 { width: 100%; text-align: center; }
.page > .main .img > .el-image__inner {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.page > .main .content .img {
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 12px;
  background: #eaf4ff;
  box-shadow: 0 2px 8px #173b6510;
}
.page > .main .content .img > .el-image__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .header .header-l[data-v-9b632c04] { padding-right: 24px; }
  .header .header-m .game-item[data-v-9b632c04] { margin-right: 16px; font-size: 15px; white-space: nowrap; }
  .page > .main .content .el-col { flex-basis: 33.333333%; max-width: 33.333333%; }
}

@media (max-width: 900px) {
  .header[data-v-9b632c04] { height: 112px; }
  .header .header-inner[data-v-9b632c04] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 60px 44px;
    column-gap: 12px;
  }
  .header .header-l[data-v-9b632c04] { grid-area: 1 / 1; padding: 0; }
  .header .header-r[data-v-9b632c04] { grid-area: 1 / 2; }
  .header .header-m[data-v-9b632c04] {
    grid-area: 2 / 1 / 3 / -1;
    display: flex;
    gap: 22px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header .header-m[data-v-9b632c04]::-webkit-scrollbar { display: none; }
  .header .header-m .game-item[data-v-9b632c04] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    font-size: 14px;
    flex: 0 0 auto;
    position: relative;
  }
  .header .header-m .game-item.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color, #3066ff);
  }
  .header + div[data-v-d55fe8a3] { height: 112px !important; }
  .header-r .el-button { min-height: 32px; padding: 10px 14px; }
}

@media (max-width: 767px), (max-width: 900px) and (max-height: 500px) {
  .page > .main > .title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    height: auto;
    padding: 24px 0 16px;
    background: none;
    text-align: left;
  }
  .page > .main .title .title1,
  .page > .main .title .title2 {
    position: static;
    transform: none;
    width: auto;
    font-family: inherit;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-align: left;
    line-height: 1.4;
  }
  .page > .main .title .title1 { font-size: 21px; font-weight: 700; color: #202b40; }
  .page > .main .title .title2 { font-size: 12px; color: #7a8598; }
  .page > .main .content { padding-top: 0; }
  .page > .main .content > .el-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
  }
  .page > .main .content .el-col { width: auto; max-width: 100%; min-width: 0; padding: 0 !important; }
  .page > .main .content .img { margin-bottom: 0; }
  .page > .main > div[style="height: 64px"] { height: 28px !important; }
  .page > .site-footer-art { display: none !important; }
  .mobile-footer {
    display: block;
    padding: 24px 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    color: #29364c;
  }
  .mobile-footer__brand { display: flex; align-items: center; gap: 14px; }
  .mobile-footer__brand > img { flex: 0 0 62px; width: 62px; height: 36px; object-fit: contain; }
  .mobile-footer h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
  .mobile-footer__brand p { margin: 0; font-size: 12px; color: #7a8598; line-height: 1.6; }
  .mobile-footer__services { display: flex; gap: 8px; margin: 18px 0 24px; }
  .mobile-footer__services > span {
    flex: 1;
    padding: 9px 4px;
    border-radius: 8px;
    background: #f3f6fb;
    color: #52627a;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
  }
  .mobile-footer h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
  .mobile-footer__brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mobile-footer__brands > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #51617b;
  }
  .mobile-footer__payment { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 16px 0; border-top: 1px solid #edf0f5; font-size: 12px; color: #7a8598; }
  .mobile-footer__payment strong { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #29364c; }
  .mobile-footer__token { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: #199d83; color: #fff; border-radius: 50%; font-size: 16px; }
  .mobile-footer__notice { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid #edf0f5; font-size: 11px; line-height: 1.7; color: #8792a4; }
  .mobile-footer__notice > span { flex-shrink: 0; padding: 2px 5px; border: 1px solid #c8d0dc; border-radius: 5px; font-weight: 600; }
  .page > .bottom[data-v-660eee82] {
    height: auto;
    min-height: 56px;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.8;
    background: #edf1f7;
    color: #7a8598;
  }

  #auth-modal .el-overlay-dialog {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #auth-modal .el-dialog {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 12px;
  }
  #auth-modal .el-dialog__header { padding-bottom: 16px; min-height: 28px; }
  #auth-modal .el-dialog__headerbtn { top: 4px; right: 4px; width: 44px; height: 44px; }
  #auth-modal .login-box { height: auto; min-height: 0; }
  #auth-modal .login-box .left { display: none; }
  #auth-modal .login-box .right { padding: 0 8px; height: auto; min-width: 0; }
  #auth-modal .el-tabs__item { height: 44px; }
  #auth-modal .el-input__inner { font-size: 16px; min-width: 0; }
  #auth-modal .el-input__wrapper { min-height: 44px; box-sizing: border-box; }
  #auth-modal form button { min-height: 44px; }
  #auth-modal .el-form-item { margin-bottom: 18px; }
  #auth-modal .kefu { flex-wrap: wrap; gap: 8px 12px; line-height: 1.8; }
  #auth-modal .auth-status { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .header-r .el-space { gap: 0 6px !important; }
  .header-r .el-button { padding: 10px; }
  #auth-modal .login-box .right { padding: 0; }
}
