/* Responsive overrides; desktop styles remain in the original stylesheets. */
@media (max-width: 991px) {
  html, body { min-width: 0; width: 100%; }
  body { overflow-wrap: break-word; }
  .container { width: 100%; max-width: 100%; padding-left: 14px; padding-right: 14px; }
  .container > .row { margin-left: -14px; margin-right: -14px; }
  img { max-width: 100%; }
  .topbar-container { padding: 8px 0; }
  .topbar-container .row { margin: 0; gap: 8px; justify-content: space-between; }
  .topbar-left-container, .topbar-right-container { width: auto; min-width: 0; }
  .topbar-left-section .topbar-item:nth-child(2),
  .topbar-left-section .topbar-item:nth-child(n+4) { display: none; }
  .topbar-left-section .topbar-item a.telegram-btn { padding: 7px; font-size: 10px; white-space: nowrap; }
  .login-panel { gap: 7px; }
  .login-panel .login-panel-item + .login-panel-item { margin-left: 0; }
  .login-panel .login-button, .login-panel .register-button { width: 66px; min-height: 34px; padding: 6px; font-size: 11px; }
  .site-header .row > div { width: 100%; float: none; }
  .site-header .logo { width: 200px; height: 68px; padding: 0; margin: 0 auto; }
  .site-header .logo > img { max-width: 200px; height: 50px; margin: 9px auto; }
  .menu-slide { width: 100%; min-width: 0; }
  .menu-slide > .glyphicon { display: none; }
  .top-menu { width: 100%; flex: 1 1 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .top-menu > li { flex: 0 0 76px; width: 76px; }
  .top-menu > li > a { min-height: 80px; padding: 12px 3px; font-size: 10px; }
  .top-menu > li > a > img { height: 26px; width: 26px; }
  .top-menu .game-list { display: none !important; }
  .banner { width: 100%; min-width: 0; }
  .banner .slick-slide img, .banner-carousel > div:first-child img { width: 100%; height: auto; }
  .banner .carousel-indicators { bottom: 3px; margin-bottom: 0; }
  .announcement-container { gap: 8px; padding: 10px; margin: 12px 0; }
  .announcement-container > [data-section="title"] { flex: 0 0 auto; font-size: 11px; }
  .announcement-container [data-icon="announcement"] { display: none; }
  .announcement-container > [data-section="announcements"] { width: auto; flex: 1 1 0; min-width: 0; font-size: 12px; }
  .announcement-container > [data-section="date"] { display: none; }
  .home-inner-container, .home-inner-container > [data-section="jackpot"] { min-width: 0; width: 100%; }
  .home-progressive-jackpot { padding: 5px; border-radius: 22px; margin-bottom: 18px; }
  .home-progressive-jackpot .outer-container,
  .home-progressive-jackpot .inner-container { min-width: 0; padding: 4px; border-radius: 20px; }
  .home-progressive-jackpot .border-container { min-width: 0; width: 100%; gap: 10px; padding: 8px; border-width: 1px; border-radius: 16px; }
  .home-progressive-jackpot .jackpot-play-section { margin-left: 0; flex: 0 0 85px; align-items: center; }
  .home-progressive-jackpot .jackpot-play-section img { width: 54px; }
  .home-progressive-jackpot .jackpot-play-section .jackpot-play-text { font-size: 15px; white-space: nowrap; }
  .home-progressive-jackpot .jackpot-container { min-width: 0; padding: 4px; font-size: clamp(15px, 3.6vw, 26px); letter-spacing: 1px; }
  .home-progressive-jackpot .jackpot-inner-container { min-width: 0; padding: 4px; }
  .home-progressive-jackpot .jackpot-border-container { min-width: 0; align-items: center; gap: 5px; padding: 4px 2px; line-height: 1.5; border-width: 1px; }
  .home-game-list-container .container-title span,
  .popular-game-title-container .container-title span { padding: 7px 20px; font-size: 12px; }
  .home-game-list-container .container-content,
  .popular-game-title-container .container-content { padding: 6px; }
  .home-game-list-container .container-content .game-list,
  .popular-game-title-container .container-content .game-list { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .home-game-list-container .container-content .game-list .game-item,
  .popular-game-title-container .container-content .game-list .game-item { width: calc((100% - 12px) / 3.1); min-width: 0; }
  .popular-game-title-container .container-content .game-list .games-group { width: calc((100% - 12px) / 3.1); }
  .popular-game-title-container .container-content .game-list .games-group .game-item { width: 100%; }
  .popular-games { flex-direction: column; min-width: 0; margin-bottom: 18px; }
  .popular-games > [data-section="right"] { width: 100%; min-width: 0; order: 0; }
  .popular-games > [data-section="left"] { width: 100%; margin-right: 0; order: 1; }
  .popular-games .animated-image { display: none; }
  .popular-games .popular-game-list { width: 100%; padding: 5px; }
  .popular-games .popular-game-list .game-item { width: 33.333333%; padding: 4px; }
  .popular-games .nav-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .popular-games .nav-tabs > li { flex: 0 0 82px; float: none; }
  .popular-games .nav-tabs > li > a { padding: 4px; }
  .popular-games .nav-tabs img { width: 74px; height: 32px; object-fit: contain; }
  .popular-games .scrtabs-tab-container, .popular-games .scrtabs-tabs-fixed-container { max-width: 100%; }
  .popular-games .popular-game-list .link-container { top: auto; bottom: 0; height: 35px; opacity: 1; background: linear-gradient(transparent, #000b); }
  .popular-games .popular-game-list .link-container a { width: 85%; margin: 0; padding: 4px; font-size: 11px; min-height: 28px; }
  .popular-games .popular-game-list .link-container .free-play { display: none; }
  .popular-games [data-section="left"] .section-title { height: 42px; font-size: 16px; }
  .download-apk { gap: 10px; padding: 18px 0; }
  .download-apk > div { min-width: 0; }
  .download-apk .h2 { margin-top: 0; font-size: 21px; line-height: 1.25; }
  .download-apk .h3 { font-size: 15px; line-height: 1.5; }
  .download-apk-info .download-apk-section { flex-basis: 100%; }
  .download-apk-section { font-size: 12px; gap: 6px; }
  .download-apk-section > * { flex-basis: calc(50% - 3px); }
  .download-apk-detail { font-size: 14px; }
  .download-apk-qr-code img { width: 70px; height: 70px; }
  .telegram-banner-container img { width: 100%; height: auto; }
  .site-footer { padding-top: 16px; }
  .site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .site-footer .footer-links > li { margin: 0; font-size: 12px; }
  .site-footer .footer-links > li + li { margin-left: 0; padding-left: 8px; }
  .site-footer .copyright { margin-top: 12px; text-align: left; font-size: 12px; }
  .site-description { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
  .site-description h1 { font-size: 20px; line-height: 1.4; margin-top: 18px; }
  .site-description h1 span { font-size: inherit !important; }
  .site-description p[style] { text-align: left !important; }
  .site-info-container { width: 100%; float: none; padding-right: 15px; margin-top: 22px; }
  .site-info-container:not(:last-child) { padding-right: 15px; }
  .site-info-container:not(:last-child)::after { display: none; }
  .site-info-title h3 { font-size: 19px; }
  .site-info-description { line-height: 1.7; overflow-wrap: anywhere; }
  .site-footer .provider-container { max-width: 100%; width: 100%; margin: 18px 0 0; padding: 12px 8px 8px; }
  .site-footer .provider-container > h5 { font-size: 14px; top: -18px; }
  .provider-section .hover-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; padding: 0; }
  .provider-section .hover-list > li, .provider-section .hover-list > li + li { min-width: 0; margin: 0; }
  .provider-section .hover-list img { width: 100%; height: auto; aspect-ratio: 130 / 50; object-fit: contain; }
  .provider-section .hover-list > li:hover > picture:first-child { opacity: 1; }
  .provider-section .hover-list > li > picture:last-child { display: none; }
  .modal-dialog { width: calc(100% - 24px); max-width: 540px; margin: 18px auto; }
  .modal-content { max-height: calc(100dvh - 36px); overflow-y: auto; }
  .modal-body { overflow-wrap: anywhere; }
  input, select, textarea { max-width: 100%; font-size: 16px; }
}

@media (max-width: 575px) {
  .download-apk { flex-direction: column; text-align: center; gap: 12px; }
  .download-apk > div { flex-basis: auto; width: 100%; }
  .download-apk > div:first-child { max-width: 310px; }
  .download-apk .h2 > strong { text-align: center; }
  .download-apk-info { max-width: 290px; margin: 12px auto 0; }
  .download-apk-section { font-size: 13px; }
  .download-apk-section > span { flex-basis: 100%; }
  .provider-section .hover-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .container > .row { margin-left: -10px; margin-right: -10px; }
  .topbar-left-section .topbar-item:first-child { display: none; }
  .topbar-left-section .topbar-item + .topbar-item { margin-left: 0; padding-left: 0; border-left: 0; }
  .home-progressive-jackpot .jackpot-play-section { flex-basis: 66px; }
  .home-progressive-jackpot .jackpot-play-section .jackpot-play-text { font-size: 12px; }
  .home-progressive-jackpot .border-container { gap: 5px; padding: 5px; }
}
