@charset "utf-8";

@media screen and (max-width: 900px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .header,
  .panel,
  .main,
  .login {
    width: auto !important;
    max-width: none !important;
  }

  .header {
    height: auto !important;
    padding: 12px 16px 0;
  }

  .header a {
    float: none !important;
    margin: 0 auto !important;
    background-size: contain !important;
    background-position: center center !important;
    width: min(240px, 72vw) !important;
  }

  .main {
    min-height: calc(100vh - 88px);
    height: auto !important;
    background-position: center top !important;
    background-size: cover !important;
    padding: 24px 0 32px;
  }

  .panel {
    height: auto !important;
    background: none !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .login {
    float: none !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    padding-bottom: 12px;
  }

  .form_t {
    margin: 14px 20px 6px !important;
  }

  .form_t span.user_t {
    font-size: 22px !important;
  }

  .login .info {
    width: calc(100% - 32px) !important;
    margin: 10px 16px !important;
    background-size: 100% 100% !important;
  }

  .login .info input {
    width: calc(100% - 62px) !important;
    font-size: 16px !important;
  }

  .login .code input {
    width: 88px !important;
  }

  .login .control input {
    width: calc(100% - 32px) !important;
    margin: 18px 16px 8px !important;
    background-size: 100% 100% !important;
  }

  .left_adv {
    display: none !important;
  }

  .user_win,
  .agree_win {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .agree_win {
    padding: 16px !important;
    box-sizing: border-box;
  }

  .agree_win ul,
  .agree_win li {
    width: auto !important;
  }

  .win_info {
    max-height: none !important;
  }

  .user_winmain {
    padding: 0 !important;
  }

  .user_winbu {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 12px !important;
  }

  .user_winbu a {
    min-width: 120px;
  }

  #header,
  #main,
  #side,
  .frame,
  #footer {
    position: static !important;
    inset: auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #header {
    height: auto !important;
  }

  #main {
    display: flex;
    flex-direction: column;
    background: #f7f7f7 !important;
  }

  #side {
    order: 2;
    background: #f7f7f7 !important;
    padding: 12px;
    box-sizing: border-box;
  }

  .frame {
    order: 1;
    background: #fff !important;
    left: auto !important;
  }

  #frame {
    display: block;
    min-height: 72vh;
    background: #fff;
  }

  .logo {
    position: static !important;
    width: auto !important;
    padding: 12px 16px 4px;
  }

  .logo span {
    width: auto !important;
    height: auto !important;
    line-height: 1.25 !important;
    text-align: left !important;
    font-size: 24px !important;
    letter-spacing: 0 !important;
  }

  .header .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    height: auto !important;
    padding: 0 12px 12px !important;
    box-sizing: border-box;
  }

  .header .menu1,
  .header .menu2,
  .header .menu3,
  .header .menu4 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    height: auto !important;
  }

  .header .menu1 {
    order: 1;
  }

  .header .menu2 {
    order: 3;
    line-height: 1.8 !important;
  }

  .header .menu2 a {
    width: auto !important;
    min-width: 4.5em;
  }

  .header .menu3 {
    order: 2;
  }

  .header .menu3 a {
    margin: 0 !important;
    width: auto !important;
    min-width: 84px;
    padding-right: 14px;
  }

  .header .lotterys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    height: auto !important;
    line-height: normal !important;
    padding: 8px 12px !important;
    box-sizing: border-box;
  }

  #lotterys {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .header .lotterys a {
    float: none !important;
    flex: 0 0 auto;
    height: auto !important;
  }

  .header .lotterys a span {
    width: auto !important;
    height: auto !important;
    padding: 10px 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    background: none !important;
  }

  .header .lotterys .setting,
  .more_game {
    position: static !important;
    left: auto !important;
    padding: 10px 14px !important;
    background-position: 10px center !important;
    background-size: 14px 14px !important;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
  }

  .header .sub {
    height: auto !important;
    line-height: normal !important;
  }

  .header .sub > div:not(#sub_HK6),
  .header .sub > div:not(#sub_HK6JSC),
  .header .sub > div#sub_HK6,
  .header .sub > div#sub_HK6JSC {
    padding: 8px 12px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header .sub .sub-title {
    display: none !important;
  }

  .header .sub a {
    padding: 8px 12px !important;
    line-height: 1.2 !important;
    border-radius: 6px;
  }

  .popPanel.moregame {
    position: static !important;
    width: 100% !important;
    margin: 0;
  }

  .zhanghu,
  .side_left .title,
  #drawOfficial {
    width: 100% !important;
  }

  .side_left .info span {
    width: calc(100% - 88px) !important;
  }

  #lastBets {
    margin-bottom: 12px;
  }

  #lastBets .bets {
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #footer {
    height: auto !important;
    line-height: 1.4 !important;
    padding: 10px 12px 12px !important;
    box-sizing: border-box;
  }

  #footer .info {
    padding-right: 0 !important;
  }

  #footer .more {
    position: static !important;
    display: inline-block;
    margin-top: 8px;
  }

  .ui-dialog,
  .sendtb,
  .news,
  .gameset {
    position: fixed !important;
    top: 5vh !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 24px) !important;
    max-width: 560px;
    height: auto !important;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .ui-dialog-content {
    max-height: 70vh !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .ui-dialog-buttonset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .ui-dialog-buttonset .ui-button {
    min-width: 88px;
  }

  .main.report,
  .main.lib,
  .main.longs,
  .main.userinfo {
    padding: 12px !important;
    box-sizing: border-box;
  }

  .main.report .search,
  .main.report .page,
  .main.report .table,
  .main.longs .table,
  .main.lib .table,
  .main.userinfo .table {
    width: 100% !important;
  }

  .main.report .table,
  .main.longs .table,
  .main.lib .table,
  .main.userinfo .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}
