html {
  min-height: 100%;
  background: #efefef;
}
body.mobile-reference-body {
  position: relative;
  width: 100%;
  max-width: 393px;
  min-height: 100vh;
  margin: 0 auto !important;
  padding-bottom: 58px !important;
  overflow-x: hidden;
  background: #f4f4f4;
  box-shadow: 0 0 18px rgba(0, 0, 0, .18);
}
body.mirror-modal-open { overflow: hidden; }

/* The user's target screenshot has the compact header, not the optional APK notice. */
.download-apk-notification,
#download_apk_notification { display: none !important; }

.header {
  right: auto !important;
  left: max(0px, calc(50% - 196.5px)) !important;
  width: min(100%, 393px) !important;
  max-width: 393px !important;
  transform: none !important;
}

.site-header {
  top: 0 !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 393px !important;
  margin: 0 !important;
}
.site-menu {
  right: auto !important;
  left: 100% !important;
  width: min(100%, 393px) !important;
  max-width: 393px !important;
  transform: none !important;
}
.site-menu-trigger-input:checked ~ .site-menu {
  left: max(0px, calc(50% - 196.5px)) !important;
}
.site-header .logo img,
.logo img {
  width: 238px !important;
  max-width: 68vw !important;
  height: 60px !important;
  object-fit: contain !important;
}

.announcement-container { height: 33px !important; min-height: 33px !important; overflow: hidden !important; }
#announcement_list.mobile-ticker {
  display: flex !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 80px;
  will-change: transform;
}
#announcement_list.mobile-ticker > li { flex: 0 0 auto; white-space: nowrap; }

.banner { position: relative; overflow: hidden; }
.banner-carousel.mobile-banner-ready {
  position: relative;
  height: 100% !important;
  overflow: hidden;
  touch-action: pan-y;
}
.mobile-main-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
  will-change: transform;
}
.mobile-main-track.mobile-no-transition,
.mobile-sub-track.mobile-no-transition { transition: none !important; }
.mobile-main-track > .mobile-mirror-slide {
  position: relative;
  display: block !important;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.mobile-mirror-slide a,
.mobile-mirror-slide img { display: block; width: 100%; height: 100% !important; }
.mobile-mirror-slide img { object-fit: cover; }
.mobile-sub-ready {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-x;
}
.mobile-sub-track {
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
  will-change: transform;
}
.mobile-sub-track > .mobile-sub-slide {
  display: block !important;
  width: 100%;
  height: 100%;
}
.mobile-sub-track > .mobile-sub-slide > a,
.mobile-sub-track > .mobile-sub-slide img { display: block; width: 100%; height: 100% !important; }
.mobile-sub-ready ~ .nav-btn { display: flex !important; }
.mobile-mirror-dots {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 7px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mobile-main-dots { z-index: 15; }
.mobile-sub-dots {
  z-index: 16;
  top: 50%;
  right: 9px;
  bottom: auto;
  left: auto;
  flex-direction: column;
  transform: translateY(-50%);
}
.mobile-mirror-dots button {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.mobile-mirror-dots .active button { background: #fff; }

.main-menu-outer-container main {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.main-menu-outer-container main::-webkit-scrollbar { display: none; }
.main-menu-outer-container .left_trigger,
.main-menu-outer-container .right_trigger { cursor: pointer; user-select: none; }

.popular-game-container,
.popular_games {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.popular-game-container::-webkit-scrollbar,
.popular_games::-webkit-scrollbar { display: none; }

/* The reference skin starts these columns off-canvas; mobile-live reveals them on view. */
.download-apk-container.mirror-apk-visible > div {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
@media (prefers-reduced-motion: reduce) {
  .download-apk-container > div {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.ard-sosmed {
  left: max(5px, calc(50vw - 191px)) !important;
}
.ard-sosmed .hamburg { border: 0; cursor: pointer; }
.ard-sosmed .hamburg div { pointer-events: none; }

.fixed-footer,
.bottom-menu,
.footer-menu,
nav[class*="bottom"] {
  right: auto !important;
  left: 50% !important;
  width: min(100%, 393px) !important;
  max-width: 393px !important;
  transform: translateX(-50%);
}

.best-login-modal[hidden] { display: none !important; }
.best-login-modal {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 15px;
}
.best-login-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.7); }
.best-login-dialog {
  position: relative;
  width: min(360px, 100%);
  padding: 25px 20px;
  border-radius: 8px;
  color: #333;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.best-login-dialog > img { display: block; width: 225px; height: 70px; margin: 0 auto; object-fit: contain; }
.best-login-dialog h2 { margin: 5px 0 16px; text-align: center; font-size: 21px; }
.best-login-dialog label { display: block; margin: 10px 0; font-weight: 700; }
.best-login-dialog input { display: block; width: 100%; height: 42px; margin-top: 5px; padding: 0 11px; border: 1px solid #aaa; border-radius: 4px; }
.best-login-dialog form > button,
.best-login-dialog form > a { display: block; width: 100%; margin-top: 9px; padding: 11px; border: 0; border-radius: 3px; text-align: center; color: #fff; background: #68a8aa; }
.best-login-dialog form > a { background: #f29100; }
.best-login-close { position: absolute; top: 5px; right: 7px; border: 0; background: transparent; font-size: 28px; }
.best-login-message { min-height: 18px; margin: 8px 0 0; text-align: center; color: #a60000; }

@media (max-width: 393px) {
  body.mobile-reference-body { box-shadow: none; }
}
