.floating-menu {
  display: none;
}

/* Responsive adjustments for the retained desktop components. */
body {
  background-color: #0e0319;
}
.container {
  max-width: 1320px;
}
.container,
.row > *,
.home-inner-container > *,
.download-apk > * {
  min-width: 0;
}
.site-header .logo {
  padding-top: 86px;
}
.site-header .logo > img {
  width: min(100%, 240px);
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.top-menu > li {
  flex: 0 0 76px;
  width: 76px;
}
.top-menu > li > a {
  min-height: 82px;
  padding: 12px 3px;
  font-size: 12px;
  line-height: 1.3;
}
.top-menu > li > a > img,
.top-menu > li > a > picture {
  display: block;
  margin: 0 auto 5px;
}
.top-menu > li > a .floating-icon {
  position: absolute;
}
.site-header .menu-slide {
  min-width: 0;
}
.site-header .top-menu {
  overflow-x: auto;
  scrollbar-width: thin;
}
.banner {
  position: relative;
}
.banner-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.banner .nav-btn {
  z-index: 2;
}
.home-progressive-jackpot .border-container {
  gap: clamp(8px, 2vw, 32px);
}
.home-progressive-jackpot .jackpot-container {
  min-width: 0;
  font-size: clamp(20px, 2.6vw, 40px);
  letter-spacing: 2px;
}
.home-progressive-jackpot .jackpot-border-container {
  align-items: center;
  white-space: nowrap;
}
.home-progressive-jackpot .jackpot-play-section {
  margin-left: 0;
  flex-shrink: 0;
}
.home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
  font-size: clamp(20px, 2.1vw, 30px);
}
.home-inner-container [data-section="lottery"] {
  flex: 0 0 220px;
}
.home-inner-container [data-section="jackpot"] {
  min-width: 0;
}
.site-description {
  font-family: Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
.footer-description-section .site-description {
  font-size: 16px;
  line-height: 1.8;
}
.site-description h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  color: #f6f0ff;
  margin-bottom: 22px;
}
.site-description h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.35;
  color: #f6f0ff;
  margin: 30px 0 14px;
  scroll-margin-top: 120px;
}
.site-description p {
  margin-bottom: 16px;
  color: #ddd0eb;
}
.site-description a {
  color: #dfff00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-description strong {
  color: #f6f0ff;
}
.site-info-description h2 {
  font-size: 18px;
}
.download-apk > div {
  flex: 1 1 50%;
  max-width: 50%;
}
.download-apk img {
  max-width: 100%;
  object-fit: contain;
}
.download-apk .h2 {
  font-size: clamp(24px, 3vw, 36px);
}
.download-apk .h3 {
  font-size: clamp(17px, 2vw, 23px);
}
.download-apk .download-apk-info {
  min-width: 0;
}
.modal-dialog {
  max-width: min(720px, calc(100vw - 24px));
  margin: 24px auto;
}
.modal-content,
.modal-body {
  overflow-wrap: anywhere;
}
.modal-body {
  max-height: calc(100dvh - 190px);
  overflow-y: auto;
}
.modal-footer {
  flex-wrap: wrap;
  gap: 8px;
}
.btn-close {
  min-width: 36px;
  min-height: 36px;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #dfff00;
  outline-offset: 3px;
}

@media (max-width: 1199px) {
  .site-header .row > div:first-child {
    width: 24%;
  }
  .site-header .row > div:last-child {
    width: 76%;
  }
  .home-inner-container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .home-inner-container [data-section="jackpot"] {
    flex-basis: 100%;
  }
  .home-inner-container [data-section="lottery"] {
    flex: 0 1 320px;
  }
  .home-progressive-jackpot .jackpot-container {
    font-size: clamp(24px, 4vw, 38px);
  }
  .site-footer .container {
    padding-inline: 24px;
  }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 14px;
  }
  .topbar-left-container,
  .topbar-right-container {
    width: 100%;
  }
  .topbar-left-section {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .topbar-right-container {
    margin-top: 10px;
  }
  .login-panel {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }
  .login-panel-item {
    flex: 1;
  }
  .login-panel .login-button,
  .login-panel .register-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .site-header {
    position: relative;
  }
  .site-header .row > div:first-child,
  .site-header .row > div:last-child {
    width: 100%;
  }
  .site-header .logo {
    padding-top: 74px;
  }
  .site-header .logo > img {
    width: 220px;
    max-width: 80%;
    max-height: 49px;
    margin: 12px auto;
  }
  .site-header .menu-slide {
    padding-bottom: 8px;
  }
  .top-menu > li > a {
    min-height: 76px;
  }
  .top-menu .game-list {
    max-width: 100vw;
  }
  .announcement-container {
    display: flex;
    flex-wrap: wrap;
  }
  .announcement-container [data-section="title"] {
    flex: 0 0 115px;
  }
  .announcement-container [data-section="announcements"] {
    flex: 1;
    min-width: 0;
  }
  .announcement-container [data-section="date"] {
    width: 100%;
    text-align: center;
    padding: 6px;
  }
  .home-inner-container {
    margin-bottom: 24px;
  }
  .home-progressive-jackpot {
    padding: 6px;
    border-radius: 22px;
  }
  .home-progressive-jackpot .outer-container,
  .home-progressive-jackpot .inner-container {
    padding: 5px;
  }
  .home-progressive-jackpot .border-container {
    flex-direction: column;
    padding: 12px 6px;
    gap: 12px;
    border-radius: 24px;
  }
  .home-progressive-jackpot .jackpot-play-section {
    align-items: center;
  }
  .home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
    font-size: 26px;
  }
  .home-progressive-jackpot .jackpot-play-section img {
    width: 76px;
  }
  .home-progressive-jackpot .jackpot-container {
    width: 100%;
    padding: 5px;
    font-size: clamp(18px, 5.8vw, 34px);
    letter-spacing: 1px;
  }
  .home-progressive-jackpot .jackpot-inner-container {
    padding: 5px;
  }
  .home-progressive-jackpot .jackpot-border-container {
    padding: 4px 3px 8px;
    line-height: 1.4;
  }
  .home-progressive-jackpot .jackpot-currency {
    margin-right: 5px;
  }
  .popular-game-title-container,
  .home-game-list-container,
  .popular-games {
    max-width: 100%;
    min-width: 0;
  }
  .home-game-list-container .content {
    min-width: 0;
  }
  .popular-games {
    display: block;
  }
  .popular-games > *,
  .popular-games .left-section,
  .popular-games .right-section {
    width: 100%;
    max-width: 100%;
  }
  .download-apk {
    flex-direction: column;
    padding: 24px 0;
    gap: 18px;
    text-align: center;
  }
  .download-apk > div {
    max-width: 100%;
    width: 100%;
  }
  .download-apk > div:first-child img {
    max-height: 240px;
    width: auto;
  }
  .download-apk-info,
  .download-apk-section {
    justify-content: center;
    flex-wrap: wrap;
  }
  .site-footer .container {
    padding-inline: 18px;
  }
  .site-description h2 {
    scroll-margin-top: 20px;
  }
  .modal-dialog {
    margin: 12px auto;
  }
  .modal-body {
    max-height: calc(100dvh - 180px);
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }
  .modal-footer button {
    min-width: 70px;
  }
}

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