/* Homepage-only corrections. Shared pages keep their existing styles. */
html.celobit-home-page,
body.celobit-home { min-width: 0 !important; width: 100%; }
body.celobit-home {
  --home-accent: #ffd532;
  --home-nav-height: 0px;
  --home-cookie-height: 0px;
  --home-header-height: 65px;
  --home-viewport-height: 100dvh;
  --home-bottom-clearance: calc(var(--home-nav-height) + var(--home-cookie-height));
  padding-bottom: var(--home-bottom-clearance);
  height: auto !important;
  min-height: 100vh;
  background-color: #000;
}

body.celobit-home .v-application--wrap { overflow: visible; }
body.celobit-home .main-header {
  z-index: 700;
  transform: translate3d(0, 0, 0) !important;
}
body.celobit-home .main-header__logo-section { transform: translateZ(0); }
body.celobit-home .mobile-menu {
  position: fixed !important;
  top: var(--home-header-height);
  bottom: var(--home-bottom-clearance);
  width: min(370px, 100vw) !important;
  height: auto !important;
  max-height: calc(var(--home-viewport-height) - var(--home-header-height) - var(--home-bottom-clearance));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 800;
}
body.celobit-home .cookie {
  bottom: var(--home-nav-height) !important;
  z-index: 500;
  max-height: calc(var(--home-viewport-height) - var(--home-nav-height) - var(--home-header-height));
  overflow-y: auto;
}
body.celobit-home .cookie .cookie__content { bottom: auto; }
body.celobit-home .support-button {
  bottom: calc(var(--home-bottom-clearance) + 16px) !important;
  z-index: 600 !important;
  border-radius: 50% !important;
  overflow: hidden;
}
body.celobit-home .support-button > div { border-radius: inherit; }
body.celobit-home #message_buble {
  bottom: calc(var(--home-bottom-clearance) + 89px) !important;
  max-width: calc(100vw - 32px);
  z-index: 600;
}
body.celobit-home .chat-box {
  bottom: calc(var(--home-bottom-clearance) + 12px);
  max-height: min(650px, calc(var(--home-viewport-height) - var(--home-header-height) - var(--home-bottom-clearance) - 24px));
}
body.celobit-home.home-menu-open .support-button,
body.celobit-home.home-menu-open #message_buble { visibility: hidden; }
body.celobit-home.home-has-scrolled #message_buble { visibility: hidden; }

/* The original desktop artwork and columns need at least 1264px. */
@media (max-width: 1279px) {
  body.celobit-home .desktop_show { display: none !important; }
  body.celobit-home #mobile-container {
    display: block !important;
    padding-top: calc(var(--home-header-height) + 12px);
  }
  body.celobit-home #mobile-container > #app {
    max-width: 768px;
    margin: 0 auto;
  }
  body.celobit-home #mobile-container [data-client="h5"] { display: block !important; }
  body.celobit-home .home-swiper-h5 {
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 0 16px;
  }
  body.celobit-home .home-swiper-h5 .swiper-wrapper {
    height: auto;
    padding: 0 !important;
    margin: 0;
    list-style: none;
  }
  body.celobit-home .home-swiper-h5 .h5-swiper-item {
    height: auto;
    aspect-ratio: 686 / 300;
  }
  body.celobit-home .home-swiper-h5 .h5-swiper-item a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
  }
  body.celobit-home .home-swiper-h5 .h5-swiper-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  body.celobit-home .home-swiper-h5 .swiper-pagination {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 8px;
    line-height: 12px;
  }
  body.celobit-home .home-recommend-h5 .recommend-h5-list {
    padding: 0;
    margin: 0;
    list-style: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  body.celobit-home .home-recommend-h5 .symbol-info { flex-wrap: wrap; }
  body.celobit-home .home-recommend-h5 .symbol-close {
    font-size: clamp(14px, 4.5vw, 18px);
    overflow-wrap: anywhere;
  }
  body.celobit-home .home-market-h5 .market-h5-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  body.celobit-home .home-market-h5 .market-h5-item { gap: 8px; }
  body.celobit-home .home-market-h5 .market-h5-item .market-symbol {
    min-width: 0;
    margin-right: 0;
  }
  body.celobit-home .home-market-h5 .market-close {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  body.celobit-home .home-market-h5 .market-h5-item > a {
    flex: 0 0 72px;
  }
  body.celobit-home .tabBar-wrap {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid #303035;
    background: #151518;
    z-index: 400;
    transform: translateZ(0);
  }
  body.celobit-home .tabBar-wrap .tabBar-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 !important;
    margin: 0;
    list-style: none;
  }
  body.celobit-home .tabBar-wrap .tabBar-item {
    min-width: 0;
    padding: 0;
    line-height: 14px;
    font-family: Roboto, sans-serif;
  }
  body.celobit-home .tabBar-wrap .tabBar-item a {
    min-height: 60px;
    padding: 7px 2px;
    gap: 3px;
    color: #a7a7ad !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  body.celobit-home .tabBar-wrap .tabBar-icon { height: 24px; line-height: 24px; }
  body.celobit-home .tabBar-wrap .tabBar-item svg { display: block; margin: 0; }
  body.celobit-home .tabBar-wrap .tabBar-text,
  body.celobit-home .tabBar-wrap svg path { color: inherit !important; }
  body.celobit-home .tabBar-wrap a[aria-current="page"] { color: var(--home-accent) !important; }
  body.celobit-home .tabBar-wrap a[aria-current="page"] .text-4-cl { color: #151518 !important; }
  body.celobit-home .tabBar-wrap a:focus-visible { outline: 2px solid var(--home-accent); outline-offset: -3px; }
  body.celobit-home .cookie .cookie__content {
    width: 100%;
    padding: 12px 16px;
    gap: 12px;
  }
  body.celobit-home .cookie .cookie__text {
    flex: 1;
    padding-right: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  body.celobit-home .cookie .spacer { display: none; }
  body.celobit-home .cookie .cookie__btn { flex-shrink: 0; min-height: 44px; }
  body.celobit-home .support-button { width: 52px; height: 52px; right: 16px; }
  body.celobit-home #message_buble { bottom: calc(var(--home-bottom-clearance) + 77px) !important; }
  body.celobit-home .chat-box { width: calc(100% - 24px); max-width: 450px; }
}

@media (min-width: 1280px) {
  body.celobit-home .desktop_show { display: block !important; }
  body.celobit-home #mobile-container { display: none !important; }
}

@media (max-width: 767px) {
  body.celobit-home .main-header .v-toolbar__content { padding: 0 12px; }
  body.celobit-home .main-header__logo-section { flex-shrink: 0; }
  body.celobit-home .main-header .main-header__logo-section__link-mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }
  body.celobit-home .main-header .main-header__logo-section__link-mobile img { width: 30px; height: 30px; }
  body.celobit-home .main-header__logo-section__link-mobile span { font-size: 17px; font-weight: 700; }
  body.celobit-home .mobile-menu-button { width: 40px; min-width: 40px; }
  body.celobit-home .main-header .main-header__logo-section__link.desktop { display: none; }
  body.celobit-home .main-header .login-btn {
    min-width: 0;
    padding: 0 8px;
    margin: 0 3px;
    font-size: 12px;
  }
  body.celobit-home .main-header .main-header__nav-button-primary {
    min-width: 0;
    padding: 0 10px;
    margin: 0 3px;
    font-size: 12px;
  }
  body.celobit-home .main-header .nav-button-lang { min-width: 36px; padding: 0 8px; }
}

@media (max-width: 359px) {
  body.celobit-home .main-header__logo-section__link-mobile span { font-size: 14px; }
  body.celobit-home .main-header .main-header__logo-section__link-mobile img { width: 24px; height: 24px; }
  body.celobit-home .main-header .v-toolbar__content { padding: 0 8px; }
  body.celobit-home .mobile-menu-button { width: 32px; min-width: 32px; }
  body.celobit-home .home-market-h5 .market-close { font-size: 14px; }
  body.celobit-home .home-market-h5 .market-symbol img { width: 20px; margin-right: 5px; }
}
