/* Responsive adaptation layer. Loaded after legacy styles. */

html,
body {
  width: 100%;
  max-width: 100%;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  overscroll-behavior: none;
}

*,
*::before,
*::after {
  min-width: 0;
  letter-spacing: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

input,
button,
select,
textarea {
  max-width: 100%;
}

table {
  width: 100%;
  max-width: 100%;
}

#app {
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

#app > .sidebar,
#app > .main,
#app > .right {
  min-width: 0;
}

#app > .main {
  overflow: hidden;
}

#app > .main > .gx-s {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#app > .main main {
  min-height: 0;
}

#_ajax_content_,
#_ajax_content_ > * {
  min-width: 0;
}

.wrapper,
.content-wrap,
.container {
  width: 100%;
}

.wrapper {
  max-width: min(100%, 1400px);
}

.content-wrap,
.container {
  max-width: min(100%, 1200px);
}

.gx-row,
.d-flex,
.header__user,
.header__right,
.wallet,
.wallet__tabs,
.popup__tabs,
.slot-actions,
.filters-row,
.provider-filters,
.game-categories {
  min-width: 0;
}

.history,
.table-responsive,
.wallet__history,
.referrals-table-wrapper,
.vip-table-wrap,
.pstats-games,
.popup__content {
  max-width: 100%;
}

.history,
.table-responsive,
.referrals-table-wrapper,
.vip-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.history table,
.referrals-table,
.vip-table,
.popup table {
  min-width: 640px;
}

.btn,
.gx-btn,
.filter-btn,
.category-btn,
.bonus-usdt-btn,
.btn-load-more,
.play-live-btn,
.slot-actions a {
  min-height: 42px;
  white-space: normal;
}

.btn span,
.gx-btn div,
.slot-info h3,
.live-game-info h3,
.user-split > span,
.hp-card-label .name,
.orig-card-label .name {
  overflow-wrap: anywhere;
}

@media (max-width: 1360px) {
  #app > .main main {
    padding: 22px 24px !important;
  }

  .games {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 16px !important;
  }

  .gx-game-item {
    min-width: 0;
  }
}

@media (max-width: 1125px) {
  :root {
    --header-height: 70px;
  }

  #app > .main {
    width: 100vw;
    flex: 1 1 100%;
  }

  #app > .main > .header {
    flex: 0 0 auto;
    min-height: var(--header-height);
    padding: 10px 16px !important;
    z-index: 30;
  }

  #app > .main > .header .wrapper {
    max-width: none;
    height: 100%;
    padding: 0;
  }

  #app > .main main {
    padding: 18px !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #app > .main > .gx-s > .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .header__links {
    display: none !important;
  }

  .header__right {
    width: 100% !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .header__right > .d-flex:first-child {
    flex: 0 1 auto;
    gap: 10px !important;
  }

  .header__right .sidebar__logotype {
    display: block !important;
    width: clamp(104px, 20vw, 150px) !important;
    height: 28px !important;
    flex: 0 0 auto;
  }

  .header__right .sidebar__logotype a {
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain !important;
  }

  .header__user {
    gap: 8px;
    justify-content: flex-end !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header__user-balance {
    flex: 1 1 auto;
    min-width: 0;
  }

  .crypto-balance-selector {
    flex: 1 1 auto;
    min-width: 0;
  }

  .crypto-balance-current {
    width: min(100%, 220px);
    min-width: 126px;
    height: 48px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .crypto-balance-current #balance {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
  }

  #selected-currency-container,
  #selected-crypto-container {
    overflow: hidden;
  }

  .header__user-balance-add {
    margin-left: 8px !important;
    flex: 0 0 auto;
  }

  .header__user-balance-add .btn {
    height: 48px;
    min-width: 48px;
    padding: 0 14px;
    justify-content: center;
  }

  .header__user-profile {
    width: 48px;
    height: 48px;
    margin-left: 6px;
    padding: 0 !important;
    justify-content: center;
    flex: 0 0 48px;
  }

  .header__user-profile::before {
    display: none;
  }

  .user-split {
    gap: 0;
  }

  .user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .user-split > span {
    display: none;
  }

  .header__user-dropdown {
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--header-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%);
    width: min(520px, calc(100vw - 20px)) !important;
    height: 68px;
    padding: 8px 18px 10px !important;
    border-radius: 22px !important;
    background: rgba(18, 20, 28, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    z-index: 70;
  }

  .mobile-menu__links {
    height: 100%;
  }

  .mobile-menu__links li {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0 !important;
    color: #9ca3af !important;
  }

  .mobile-menu__links li a {
    height: 38px;
  }

  .mobile_p {
    display: block;
    overflow: hidden;
    color: #9ca3af;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu__links .icon,
  .mobile-menu__links .active .icon,
  .icon_mobiles {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
  }

  a.btn_active.active svg {
    width: 34px !important;
    height: 34px !important;
    margin-top: -12px !important;
    background-color: #886cff !important;
  }

  .mobile-navbar {
    top: var(--header-height) !important;
    height: calc(100dvh - var(--header-height) - 92px - env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 0 !important;
    padding: 18px !important;
    background: #0f1014 !important;
    overflow-y: auto;
    z-index: 60 !important;
  }

  .mobile-navbar::before {
    display: none;
  }

  .mobile-navbar li {
    gap: 10px;
  }

  .mobile-navbar a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    color: #fff;
    background: #202329 !important;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px !important;
  }

  .mobile-navbar-overlay {
    z-index: 55 !important;
  }

  .chat--opened #app > .right {
    width: 100vw !important;
    height: 100dvh !important;
  }

  .chat {
    width: 100vw !important;
    height: 100dvh !important;
  }
}

@media (max-width: 1200px) {
  #app > .main main {
    padding: 16px !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .wrapper,
  .content-wrap,
  .container,
  .referral-container,
  .profile-modern {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cr-layout,
  .dc-layout,
  .pl-layout,
  .bj-layout,
  .bc-layout,
  .rl-layout,
  .hl-layout,
  .tw-layout,
  .x30-layout,
  .x100-layout,
  .mn,
  .crash.coinflip > .d-flex.align-stretch.justify-space-between {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .lm-layout,
  .dt-layout,
  .dr-layout,
  .pm-shell,
  .cc-shell,
  .cases-shell,
  .cf-layout,
  .vp-layout,
  .zoo-layout,
  .rps-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .cr-right,
  .dc-right,
  .pl-right,
  .bj-right,
  .bc-right,
  .rl-right,
  .hl-right,
  .tw-right,
  .x30-right,
  .x100-right,
  .lm-stage,
  .dt-stage,
  .dr-stage,
  .pm-stage,
  .cc-stage-wrap,
  .cases-stage,
  .cf-right,
  .vp-table,
  .zoo-stage,
  .rps-arena,
  .mn-right,
  .boomcity__main {
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .cr-panel,
  .dc-panel,
  .pl-panel,
  .bj-panel,
  .bc-panel,
  .rl-panel,
  .hl-panel,
  .tw-panel,
  .x30-panel,
  .x100-panel,
  .lm-panel,
  .dt-panel,
  .dr-panel,
  .pm-panel,
  .cc-panel,
  .cases-panel,
  .cf-panel,
  .vp-panel,
  .zoo-panel,
  .rps-panel,
  .mn-left,
  .boomcity__betblock {
    order: 2 !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .keno__content,
  .shoot {
    display: flex !important;
    flex-direction: column !important;
  }

  .keno__mines,
  .shoot__live {
    order: 1 !important;
  }

  .keno__bet,
  .shoot__bet {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .shoot__bets {
    order: 3 !important;
  }

  .gx-row.flex-wrap {
    flex-wrap: wrap !important;
  }

  .gx-col,
  .gx-col-x,
  .gx-w-box.gx-col-x {
    flex: 1 1 100%;
    max-width: 100% !important;
  }

  .gx-container,
  .gx-wrap {
    padding: 16px !important;
  }

  .gx-w-box {
    min-width: 0 !important;
    min-height: 170px;
    padding: 22px !important;
    gap: 16px;
  }

  .gx-w-box h1 {
    font-size: 22px !important;
  }

  .gx-w-box p {
    font-size: 14px !important;
  }

  .hp-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }

  .hp-banner {
    min-height: clamp(142px, 15vw, 190px);
    max-height: 220px;
    aspect-ratio: 3 / 1;
  }

  .hp-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hp-tabs::-webkit-scrollbar {
    display: none;
  }

  .hp-tab {
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .hp-section-head,
  .orig-header {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hp-section-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hp-card {
    flex-basis: clamp(126px, 30vw, 150px);
    width: clamp(126px, 30vw, 150px);
    height: auto;
    aspect-ratio: 5 / 7;
  }

  .hp-card-bg img.icon {
    width: 76%;
    height: 76%;
  }

  .orig-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 14px;
  }

  .games {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 14px !important;
  }

  .gx-game-item {
    min-width: 0 !important;
    min-height: 202px !important;
    padding: 14px !important;
  }

  .gx-game-item-bk .center {
    width: clamp(118px, 30vw, 150px) !important;
    height: clamp(118px, 30vw, 150px) !important;
  }

  .page-header h1,
  .live-casino-page .page-header h1,
  .slots-page .page-header h1 {
    font-size: clamp(30px, 8vw, 42px) !important;
    line-height: 1.12;
  }

  .page-header p,
  .live-casino-page .page-header p,
  .slots-page .page-header p {
    font-size: 15px !important;
    line-height: 1.45;
  }

  .slots-page,
  .live-casino-page {
    padding: 18px 0 0 !important;
    min-height: auto !important;
  }

  .slots-filters {
    padding: 18px !important;
    margin-bottom: 28px !important;
  }

  .filters-row {
    align-items: stretch !important;
  }

  .provider-filters,
  .game-categories {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .provider-filters::-webkit-scrollbar,
  .game-categories::-webkit-scrollbar {
    display: none;
  }

  .filter-btn,
  .category-btn {
    flex: 0 0 auto;
  }

  .sort-options,
  .sort-options select {
    width: 100%;
  }

  .slots-grid,
  .live-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 14px !important;
  }

  .slot-card img,
  .live-game-card img {
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .slot-info,
  .live-game-info {
    padding: 14px !important;
  }

  .popular-slots-section h2,
  .all-slots-section h2,
  .popular-games-section h2,
  .all-games-section h2 {
    font-size: 24px !important;
  }

  .profile-header,
  .referral-hero {
    border-radius: 14px !important;
  }

  .link-input-wrapper {
    flex-direction: column;
    align-items: stretch !important;
  }

  .btn-copy {
    justify-content: center;
  }

  .stats-grid,
  .levels-grid,
  .achievements-grid,
  .crypto-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .popup {
    width: min(100%, 680px) !important;
    max-height: calc(100dvh - 24px) !important;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  #app > .main > .header {
    padding: 8px 12px !important;
  }

  #app > .main main {
    padding: 14px !important;
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .header__right {
    flex-direction: row !important;
    gap: 8px !important;
  }

  .header__right > .d-flex:first-child {
    flex: 0 0 auto;
  }

  .header__right .sidebar__logotype {
    width: 112px !important;
    height: 24px !important;
  }

  .header__user {
    gap: 6px;
  }

  .crypto-balance-current {
    width: min(42vw, 176px);
    min-width: 112px;
    height: 44px !important;
    padding: 0 10px !important;
  }

  .crypto-balance-current #balance {
    font-size: 13px !important;
  }

  #selected-currency-name {
    font-size: 10px !important;
  }

  #crypto-dropdown {
    position: fixed !important;
    top: calc(var(--header-height) + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100dvh - var(--header-height) - 24px) !important;
    z-index: 1000 !important;
  }

  .header__user-balance-add .btn span {
    display: none;
  }

  .header__user-balance-add .btn {
    width: 44px;
    height: 44px;
    padding: 0 !important;
  }

  .header__user-profile {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .user-avatar {
    width: 38px;
    height: 38px;
  }

  .header__right > .d-flex:last-child {
    gap: 8px !important;
    margin-left: auto;
  }

  .btn-login,
  .btn-register {
    min-height: 42px;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .footer .gx-row.justify-space-between {
    justify-content: center;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
    gap: 10px;
  }

  .footer__link {
    margin-right: 0 !important;
  }

  .hp-banner {
    min-height: 142px;
  }

  .hp-row {
    gap: 10px;
    scroll-snap-type: x proximity;
  }

  .hp-card {
    scroll-snap-align: start;
  }

  .wallet {
    flex-direction: column !important;
  }

  .wallet__methods {
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    margin-bottom: 14px;
  }

  .wallet__content {
    width: 100% !important;
    padding-left: 0 !important;
  }

  .wallet__tabs,
  .popup__tabs {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }

  .wallet__tabs::-webkit-scrollbar,
  .popup__tabs::-webkit-scrollbar {
    display: none;
  }

  .wallet__tab,
  .popup__tab {
    flex: 0 0 auto;
  }

  .popup__title {
    padding: 16px !important;
  }

  .popup__title span {
    font-size: 18px !important;
  }

  .popup__content {
    padding: 16px !important;
  }

  .popup .bx-input__create-coupon,
  .popup .bx-input__create-coupon:nth-child(2) {
    grid-template-columns: 1fr !important;
  }

  .popup--register.active {
    margin: 0 auto !important;
  }

  .popup--register .gx-right {
    padding: 22px 18px !important;
  }

  .overlayed {
    padding: 12px !important;
    align-items: center !important;
  }

  .game-modal-content {
    width: calc(100vw - 24px) !important;
    height: calc(100dvh - 24px) !important;
  }
}

@media (max-width: 560px) {
  #app > .main main {
    padding: 12px !important;
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .header__right .sidebar__logotype {
    width: 102px !important;
  }

  .crypto-balance-current {
    width: min(39vw, 150px);
    min-width: 100px;
  }

  .header__user-balance-add {
    display: none !important;
  }

  .btn-login,
  .btn-register {
    min-width: 0;
    padding: 0 9px !important;
    font-size: 11px !important;
  }

  .mobile-menu {
    width: calc(100vw - 14px) !important;
    height: 66px;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .mobile_p {
    font-size: 9px !important;
    line-height: 1.1;
  }

  .hp-banners,
  .hp-section,
  .popular-slots-section,
  .all-slots-section,
  .popular-games-section,
  .all-games-section {
    margin-bottom: 22px !important;
  }

  .hp-banner {
    min-height: 142px;
    max-height: 170px;
    aspect-ratio: 16 / 7;
  }

  .hp-banner-text {
    padding: 36px 14px 14px;
  }

  .hp-banner-text h3 {
    font-size: 15px;
  }

  .hp-card {
    flex-basis: 122px;
    width: 122px;
  }

  .hp-card-label {
    padding: 40px 10px 10px;
  }

  .hp-card-label .name {
    font-size: 13px;
  }

  .orig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .orig-header-title {
    font-size: 17px !important;
  }

  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .gx-game-item {
    min-height: 188px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .gx-game-item-bk {
    bottom: 44px;
  }

  .gx-game-item-bk .center {
    width: clamp(104px, 34vw, 128px) !important;
    height: clamp(104px, 34vw, 128px) !important;
  }

  .gx-game-item-tl {
    height: 44px;
  }

  .gx-game-item-tl > span {
    font-size: 13px !important;
  }

  .slots-grid,
  .live-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .slot-info h3,
  .live-game-info h3 {
    font-size: 14px !important;
  }

  .slot-info .provider,
  .live-game-info .provider {
    font-size: 12px !important;
  }

  .slot-actions {
    flex-direction: column;
  }

  .slot-actions a,
  .play-live-btn,
  .btn-load-more {
    padding: 10px !important;
    font-size: 13px !important;
  }

  .referral-hero,
  .profile-header,
  .slots-filters,
  .bonus-usdt-card--telegram,
  .bonus-usdt-card--wheel {
    padding: 16px !important;
  }

  .hero-title,
  .profile-name {
    font-size: 28px !important;
    line-height: 1.15;
  }

  .popup {
    width: 100% !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 18px) !important;
    border-radius: 12px !important;
  }

  .popup__title span {
    font-size: 16px !important;
  }

  .history table,
  .referrals-table,
  .vip-table,
  .popup table {
    min-width: 540px;
  }
}

@media (max-width: 390px) {
  #app > .main > .header {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .header__right {
    gap: 6px !important;
  }

  .header__right .sidebar__logotype {
    width: 92px !important;
  }

  .crypto-balance-current {
    width: min(38vw, 132px);
    min-width: 92px;
    height: 42px !important;
    padding: 0 8px !important;
  }

  .crypto-balance-current #balance {
    font-size: 12px !important;
  }

  .header__user-profile {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    margin-left: 2px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .btn-login,
  .btn-register {
    padding: 0 9px !important;
    min-height: 40px;
    font-size: 11px !important;
  }

  .mobile-menu__links .icon,
  .mobile-menu__links .active .icon,
  .icon_mobiles {
    width: 22px !important;
    height: 22px !important;
  }

  .hp-card {
    flex-basis: 116px;
    width: 116px;
  }

  .gx-game-item {
    min-height: 174px !important;
  }

  .slots-grid,
  .live-games-grid {
    grid-template-columns: 1fr !important;
  }

  .slot-actions {
    flex-direction: row;
  }
}

@media (hover: none) {
  .hp-card:hover,
  .orig-card:hover,
  .gx-game-item:hover,
  .slot-card:hover,
  .live-game-card:hover,
  .hp-banner:hover,
  .gx-w-box:hover {
    transform: none !important;
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Viewport resize adaptation for desktop and tablet-sized browser windows. */
#app {
  --wanted-sidebar-width: 192px;
  --wanted-sidebar-collapsed-width: 70px;
}

#app > .sidebar {
  flex: 0 0 var(--wanted-sidebar-width);
  width: var(--wanted-sidebar-width);
}

.left--closed #app > .sidebar {
  flex-basis: var(--wanted-sidebar-collapsed-width);
  width: var(--wanted-sidebar-collapsed-width);
}

#app > .main {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: 100%;
}

#app > .main > .header .wrapper {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  gap: clamp(10px, 1vw, 18px);
}

#app > .main > .gx-s > main,
#_ajax_content_ {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.header__links {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.header__links li {
  flex: 0 0 auto;
}

.header__right {
  flex: 1 1 0 !important;
  min-width: 0;
}

.header__right > .d-flex:first-child {
  flex: 0 1 auto;
  min-width: 0;
}

.header__user,
.header__user-balance,
.crypto-balance-selector {
  min-width: 0;
  max-width: 100%;
}

.crypto-balance-current {
  min-width: 0;
}

.hp-carousel,
.hp-row,
.hp-tabs,
.hp-section,
.slots-page,
.live-casino-page,
.popular-slots-section,
.all-slots-section,
.popular-games-section,
.all-games-section {
  max-width: 100%;
}

.hp-carousel {
  overflow: hidden;
}

.hp-row,
.hp-tabs,
.provider-filters,
.game-categories {
  overscroll-behavior-inline: contain;
}

.hp-tabs {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.hp-tabs::-webkit-scrollbar {
  display: none;
}

.hp-tab {
  flex: 0 0 auto;
}

.hp-banner,
.hp-card,
.slot-card,
.live-game-card,
.gx-game-item {
  min-width: 0;
}

.hp-banner {
  aspect-ratio: 3 / 1;
  min-height: clamp(142px, 15vw, 190px);
  max-height: 220px;
}

.hp-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-banner--games img {
  object-position: 62% center;
}

.hp-banner--telegram img {
  object-position: 68% center;
}

@media (max-width: 1540px) and (min-width: 1126px) {
  #app > .main > .header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #app > .main main {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .header__links li a {
    width: 44px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center;
  }

  .header__links li a span {
    display: none !important;
  }

  .header__links li a .icon {
    margin-right: 0 !important;
  }

  .header__user-balance-add {
    margin-left: 12px !important;
  }

  .header__user-balance-add .btn {
    min-width: 48px;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hp-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-banner {
    min-height: clamp(142px, 15vw, 190px);
  }

  .hp-card {
    flex-basis: clamp(132px, 10.5vw, 150px);
    width: clamp(132px, 10.5vw, 150px);
    height: auto;
    aspect-ratio: 5 / 7;
  }
}

@media (max-width: 1320px) and (min-width: 1126px) {
  .crypto-balance-current {
    width: clamp(132px, 14vw, 188px);
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .header__user-balance-add .btn span,
  .user-split > span {
    display: none !important;
  }

  .header__user-profile {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0 !important;
    justify-content: center;
  }

  .header__user-profile::before {
    display: none;
  }

  .hp-banners {
    gap: 12px;
  }

  .hp-tabs {
    width: 100%;
  }

  .hp-tab {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 1125px) {
  #app > .sidebar {
    flex-basis: 0;
    width: 0;
  }

  #app > .main {
    flex-basis: 100% !important;
    max-width: 100vw;
  }
}

@media (max-width: 560px) {
  .header__right > .d-flex:last-child:not(.header__user) {
    gap: 6px !important;
    flex: 0 0 auto;
  }

  .header__right .btn-login,
  .header__right .btn-register {
    box-sizing: border-box;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 11px !important;
    justify-content: center;
  }

  .header__right .btn-login {
    width: 48px;
  }

  .header__right .btn-register {
    width: 104px;
  }
}
