@import url("mobile-home.css");
@import url("mobile-sports.css");
@import url("mobile-casino.css");
@import url("mobile-more.css");

@media (max-width: 1199px) {
  html, body, .app {
    max-width: 100%;
    overflow-x: clip;
  }
  .app-page {
    max-width: 100%;
    overflow-x: clip;
  }
  .app-page.hb-enter {
    animation: hb-page-in .18s ease;
  }
  @keyframes hb-page-in {
    from { opacity: .72; }
    to { opacity: 1; }
  }
  @keyframes hb-tile-in {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to { opacity: 1; transform: none; }
  }

  .hdr-desk { display: none !important; }
  .hdr-mbl { display: flex; }
  .tabbar { display: grid; }

  .hdr-mbl {
    height: 47px;
    padding: 0 10px 0 8px;
  }
  .hdr-mbl .menu-btn {
    width: 28px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 20px;
    line-height: 23px;
    color: #e5e9ed;
  }
  .hdr-mbl .menu-btn:before { content: none; }
  .hdr-mbl .menu-btn .bet-menu {
    width: 28px;
    height: 23px;
    font-size: 20px;
    line-height: 23px;
    color: #e5e9ed;
  }
  .hdr-mbl .brand-mbl img {
    width: 128px;
    height: 36px;
    object-fit: fill;
  }
  .hdr-mbl .mbl-auth.is-in {
    gap: 10px;
    align-items: center;
  }
  .hdr-mbl .hb-mbl-bal {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
  }
  .hdr-mbl .hb-mbl-bal em { font-style: normal; }
  .hdr-mbl .hb-wallet { width: 18px; height: 18px; }
  .hdr-mbl .hb-mbl-mail {
    position: relative;
    width: 24px;
    height: 28px;
    display: grid;
    place-items: center;
  }
  .hdr-mbl .hb-mail-svg { width: 18px; height: 18px; }
  .hdr-mbl .hb-mail-n {
    top: 0;
    right: -6px;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    font-size: 9px;
  }
  .hdr-mbl .hb-mbl-acct { color: #fff; font-size: 13px; font-weight: 600; }
  .hdr-mbl {
    overflow: visible;
  }
  .hdr-mbl.is-acct { z-index: 90; }
  .hb-mbl-acct-wrap { position: relative; }
  .hb-mbl-drop { display: none !important; }
  html.is-acct,
  body.is-acct,
  body.is-acct .app {
    overflow: visible !important;
    overflow-x: visible !important;
  }
  #hb-mbl-acct-layer {
    position: fixed;
    inset: 0;
    z-index: 200000;
  }
  .hb-mbl-sheet-back {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
  }
  .hb-mbl-sheet {
    position: absolute;
    top: 47px;
    right: 8px;
    width: 220px;
    background: #273142;
    border: 1px solid #313d4f;
    box-shadow: 0 8px 24px #00000066;
    padding: 6px 0;
    transform-origin: top right;
    animation: hb-acct-slide .18s ease;
  }
  .hb-mbl-sheet a,
  .hb-mbl-sheet button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: #dfe3e8;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
  }
  .hb-mbl-sheet a:active,
  .hb-mbl-sheet button:active { background: #313d4f; color: #fff; }
  .hb-mbl-sheet [data-logout] { color: #ff8a90; }
  @keyframes hb-acct-slide {
    from { opacity: 0; transform: translate3d(0, -10px, 0); }
    to { opacity: 1; transform: none; }
  }
  .hb-notice { width: calc(100% - 20px); padding: 18px 14px 16px; }

  .app-page { padding-bottom: 72px; }

  /* origin .mobile-menu 390×65 @779, bg #273142, pad 8 25 5 */
  .tabbar {
    height: 65px;
    background: #273142;
    border-top: 0;
    padding: 8px 25px 5px;
    grid-template-columns: 1fr 1fr 60px 1fr 1fr;
    align-items: end;
    font-size: 11px;
    font-weight: 600;
    color: #7f8fa4;
    line-height: 1.05;
    overflow: visible;
  }
  .tabbar > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #7f8fa4;
    min-width: 0;
  }
  .tabbar > a small {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    color: inherit;
  }
  .tabbar > a:not(.tab-mid)::before { display: none; }
  .tabbar .tb {
    font-family: beticon, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 23px;
    line-height: 23px;
    width: 23px;
    height: 23px;
    display: block;
    -webkit-font-smoothing: antialiased;
  }
  .tabbar .tb-sport:before { content: "\e8d0"; }
  .tabbar .tb-live:before { content: "\e8c0"; }
  .tabbar .tb-slot:before { content: "\e8bf"; }
  .tabbar .tb-casino:before { content: "\e8a9"; }
  body:has(.hb-sport) .tabbar > a[href="/sportsbook"],
  body:has(.hb-live) .tabbar > a[href="/livebetting"],
  body:has(.slot-page:not(.is-live)) .tabbar > a[href="/casino"],
  body:has(.slot-page.is-live) .tabbar > a[href="/livecasino"],
  body:has(.more-live) .tabbar > a[href="/livecasino"],
  .tabbar > a.is-on {
    color: #d9dde4;
  }
  .tabbar .tab-mid {
    position: relative;
    width: 65px;
    height: 65px;
    margin: -25px auto 0;
    border: 0;
    border-radius: 50%;
    background: #1b2431;
    color: #7f8fa4;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    overflow: visible;
  }
  .tabbar .tab-mid::before,
  .tabbar .tab-mid::after { content: none !important; display: none !important; }
  .tabbar .tab-mid small {
    display: block;
    width: 46px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.05;
    color: #7f8fa4;
    white-space: normal;
  }
  .tabbar .bet-count {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    font-size: 10px;
    font-weight: 600;
    color: #7f8fa4;
    white-space: nowrap;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .hb-fab-wrap {
    right: 10px;
    bottom: 75px;
  }
  .hb-chat-panel {
    right: 8px;
    bottom: 132px;
    width: min(360px, calc(100vw - 16px));
    height: min(520px, calc(100vh - 160px));
  }

  .hero-slider,
  .hero-slider.is-home,
  .hero-slider.is-slot,
  .hero-slider.is-live,
  .hero-slider.is-sport,
  .home-page .hero-slider.is-home,
  .slot-page .hero-slider.is-slot,
  .more-live .hero-slider.is-live,
  .more-bingo .hero-slider,
  .hb-main .hero-slider.is-sport {
    height: 279px !important;
  }
  .hero-slider img,
  .home-page .hero-slider.is-home img,
  .slot-page .hero-slider.is-slot img,
  .more-live .hero-slider.is-live img,
  .hb-main .hero-slider.is-sport img {
    width: 100% !important;
    height: 279px !important;
    object-fit: fill !important;
    object-position: center center !important;
  }
  .hb-main .hero-slider.is-sport {
    width: calc(100% - 10px);
    margin: 0 5px;
    height: 278px !important;
  }
  .hb-main .hero-slider.is-sport img {
    height: 271px !important;
  }
}
