/* =========================================================================
   rd-mobile.css — Redesign tampilan mobile (Tahap 2). Dimuat SETELAH rd-base.css.
   Hanya selector .rd- dan override terbatas untuk wadah lama (#sideNav, #r-side-bar,
   .main-content) yang diperlukan agar tata letak baru tidak tertimpa CSS lama.
   ========================================================================= */
.rd-body { --rd-hh: 54px; --rd-bn: 64px; font-size: 14px; }
.rd-body .rd-wrap { padding: 0 10px; }

/* Wadah lama: offset header & ruang untuk bottom nav */
.rd-body .layout .main-content { padding-top: 0 !important; padding-bottom: calc(var(--rd-bn) + 38px + env(safe-area-inset-bottom)) !important; }
.rd-body .layout .content { margin-top: var(--rd-hh) !important; } /* lama: 47px untuk .top-bar */
/* Homepage no longer has the legacy footer. Reserve only the fixed nav's height,
   not the old 200px footer margins or the additional floating-widget clearance. */
.rd-home-page .layout .main-content {
  height: auto !important; min-height: 0 !important;
  margin-bottom: 0 !important; padding-bottom: 0 !important;
}
.rd-home-page .layout .content {
  margin-bottom: 0 !important; min-height: 0 !important;
  padding-bottom: calc(var(--rd-bn) + env(safe-area-inset-bottom)) !important;
}
.rd-home-page .rd-win-sim { margin-bottom: 0; }
.rd-body .layout .main-content.sideNavOpen,
.rd-body .layout .main-content.navContentOpen { margin-left: 0 !important; margin-right: 0 !important; }
.rd-body .sideNavOpen .backdrop:before,
.rd-body .navContentOpen .backdrop:before { display: none !important; }

/* ---------- Header ---------- */
.rd-mheader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--rd-hh);
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px 0 10px;
  background: var(--rd-head); box-shadow: 0 2px 10px rgba(0, 0, 0, .6); border-bottom: 1px solid rgba(242, 193, 78, .25);
}
.rd-mlogo { flex: 0 1 auto; min-width: 0; display: block; line-height: 0; }
.rd-mlogo img { max-height: 36px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
.rd-mactions { display: flex; align-items: center; gap: 5px; flex: none; }
.rd-btn-sm { min-height: 28px; padding: 3px 9px; font-size: 11.5px; border-radius: 5px; text-transform: uppercase; }
.rd-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  border-radius: 8px; border: 0; background: transparent; color: var(--rd-accent); font-size: 20px; cursor: pointer;
}
.rd-mheader a, .rd-mheader button { height: auto; } /* netralkan .top-bar a{height:47px} lama bila terwarisi */
.rd-mbal {
  display: inline-flex !important; align-items: center; gap: 6px; height: 30px !important; padding: 0 10px !important;
  border-radius: 15px; background: rgba(255, 255, 255, .07); border: 1px solid var(--rd-border);
  color: var(--rd-text) !important; font-size: 12px !important; font-weight: 700; text-decoration: none !important; max-width: 46vw;
}
.rd-mbal i { color: var(--rd-accent); }
.rd-mbal .bal-txt { color: var(--rd-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Drawer kanan (#sideNav) ---------- */
.rd-body #sideNav.rd-drawer {
  position: fixed; top: 0; bottom: 0; right: 0; left: auto; z-index: 1300; width: min(320px, 86vw);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: #121214; border-left: 1px solid rgba(242, 193, 78, .3); box-shadow: -10px 0 30px rgba(0, 0, 0, .6);
  transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
.rd-body #sideNav.rd-drawer.open { transform: none; visibility: visible; }
.rd-scrim { position: fixed; inset: 0; z-index: 1250; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.rd-body #sideNav.open + .rd-scrim { opacity: 1; visibility: visible; }
.rd-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--rd-border); }
.rd-drawer-logo { max-height: 34px; max-width: 150px; object-fit: contain; }
.rd-drawer-user { padding: 14px; border-bottom: 1px solid var(--rd-border); }
.rd-drawer-welcome { margin: 0 0 10px; color: var(--rd-text); font-size: 13.5px; line-height: 1.4; }
.rd-drawer-welcome b { color: var(--rd-accent); overflow-wrap: anywhere; }
.rd-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rd-drawer-cta .rd-btn { min-height: 38px; }
.rd-bal-block { width: 100%; height: 42px; justify-content: space-between; }
.rd-drawer-nav ul, .rd-drawer-lang ul { list-style: none; margin: 0; padding: 0; }
.rd-drawer-nav a, .rd-drawer-lang a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 16px;
  color: var(--rd-text) !important; text-decoration: none !important; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.rd-drawer-nav a:active, .rd-drawer-nav a:hover, .rd-drawer-lang a:hover { background: rgba(242, 193, 78, .1); }
.rd-drawer-nav i { width: 20px; text-align: center; color: var(--rd-accent); font-size: 16px; }
.rd-drawer-lang { padding: 6px 0 20px; }
.rd-drawer-sub { margin: 10px 16px 4px; font-size: 11px; color: var(--rd-muted); text-transform: uppercase; letter-spacing: .1em; }
.rd-drawer-lang a { font-weight: 700; font-size: 13px; }
.rd-drawer-lang a.is-active { color: var(--rd-accent) !important; }
.rd-drawer-lang a .fa-check { margin-left: auto; color: var(--rd-accent); }

/* ---------- Panel login / profil (#r-side-bar existing) ---------- */
.rd-body #r-side-bar { z-index: 1400; background: #0e0e10 !important; color: var(--rd-text); }
.rd-body #r-side-bar .rd-login { max-width: 420px; margin: 0 auto; padding: 18px 18px 30px; }
.rd-login-top { display: flex; align-items: center; justify-content: space-between; }
.rd-login-logo { display: block; max-height: 46px; max-width: 170px; margin: 6px auto 0; object-fit: contain; }
.rd-login-title { margin: 18px 0 18px; text-align: center; font-size: 22px; font-weight: 800; color: var(--rd-text); }
.rd-body #r-side-bar .rd-field { position: relative; margin-bottom: 14px; }
.rd-body #r-side-bar .rd-field > i.rd-fi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #555; font-size: 15px; pointer-events: none; }
.rd-body #r-side-bar .rd-field input.form-control {
  height: 46px; padding: 0 44px 0 44px !important; border-radius: 23px !important; border: 1px solid transparent !important;
  background: #fff !important; color: #111 !important; font-size: 15px; letter-spacing: normal !important;
}
.rd-body #r-side-bar .rd-field input.form-control:focus { border-color: var(--rd-accent) !important; box-shadow: 0 0 0 3px rgba(242, 193, 78, .35) !important; }
.rd-body #r-side-bar .rd-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: #444; cursor: pointer;
}
.rd-login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; font-size: 13px; color: var(--rd-text); }
.rd-login-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.rd-login-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rd-accent); }
.rd-btn-block { width: 100%; min-height: 46px; border-radius: 23px; font-size: 16px; }
.rd-login-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--rd-text); }
.rd-login-foot a { color: var(--rd-accent) !important; font-weight: 700; text-decoration: underline; }
.rd-alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 13px; background: rgba(229, 72, 77, .15); border: 1px solid var(--rd-danger); color: #ffb4b6; }
.rd-body #r-side-bar .profile-head { color: var(--rd-text); }
.rd-body #r-side-bar .profile-head .title { color: var(--rd-accent); }

/* ---------- Beranda ---------- */
.rd-mhome { padding-top: 8px; }
.rd-mhome .rd-announce { height: 32px; border-radius: 16px; padding: 0 6px 0 12px; }
.rd-mhome .rd-banner { margin-top: 8px; border-radius: 12px; aspect-ratio: 16 / 7; }
.rd-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.rd-pill {
  display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 4px 6px; border-radius: 17px;
  background: #1b1b1f; border: 1px solid rgba(242, 193, 78, .45); color: var(--rd-text) !important; text-decoration: none !important;
  font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center;
}
.rd-pill i { color: var(--rd-accent); font-size: 13px; flex: none; }
.rd-pill span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.rd-cats { margin-top: 10px; }
.rd-sticky-menus {
  position: sticky; top: var(--rd-hh); z-index: 1150;
  margin: 10px -10px 0; padding: 0 10px 8px;
  background: var(--rd-bg, #111);
}
.rd-sticky-menus > .rd-pills { margin-top: 0; }
.rd-cats .rd-scroll-track { gap: 6px; }
.rd-cat {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 70px; min-height: 66px; padding: 6px 4px; border-radius: 10px; border: 1px solid transparent; background: #17171a;
  color: var(--rd-text) !important; text-decoration: none !important; font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer;
}
.rd-cat i { font-size: 20px; color: var(--rd-accent); }
.rd-cat span { max-width: 100%; overflow-wrap: anywhere; }
.rd-cat.is-active { background: linear-gradient(180deg, rgba(242, 193, 78, .25), rgba(242, 193, 78, .06)); border-color: rgba(242, 193, 78, .5); }
.rd-cats .rd-scroll-prev, .rd-cats .rd-scroll-next { width: 22px; height: 66px; }

.rd-mhome .rd-jackpot { margin-top: 10px; padding: 8px 6px 6px; gap: 4px; border-radius: 12px; }
.rd-mhome .rd-jp-crown { width: 30px; height: 24px; }
.rd-mhome .rd-jp-title { font-size: 11px; }
.rd-mhome .rd-jp-row { gap: 5px; }
.rd-mhome .rd-jp-cur { font-size: 13px; }
.rd-mhome .rd-jp-digits { gap: 2px; }
.rd-mhome .rd-jp-d { width: 18px; height: 27px; border-radius: 4px; }
.rd-mhome .rd-jp-d b { height: 27px; line-height: 27px; font-size: 18px; }
.rd-mhome .rd-jp-sep { width: 5px; font-size: 16px; }
.rd-mhome .rd-jp-note { font-size: 9.5px; text-align: center; }

.rd-msec { margin-top: 12px; }
.rd-msec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rd-msec-title { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 16px !important; line-height: 1.2; text-transform: none; font-weight: 800; color: var(--rd-text); }
.rd-msec-title i { color: var(--rd-accent); }
.rd-msec-head a { color: var(--rd-accent) !important; font-size: 12px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.rd-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd-mhome .rd-game { border-radius: 10px; }
.rd-mhome .rd-game-play { display: none; }
.rd-mhome .rd-game-name { font-size: 11px; padding: 5px 4px; }
.rd-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; padding-bottom: 2px; }
.rd-chips::-webkit-scrollbar { display: none; }
.rd-chip {
  flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--rd-border);
  background: #17171a; color: var(--rd-text) !important; text-decoration: none !important; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.rd-chip.is-active { background: var(--rd-gold-grad); color: var(--rd-gold-text) !important; border-color: transparent; }
.rd-mhome .rd-search { display: block; margin-bottom: 8px; }
.rd-mhome .rd-search input { width: 100%; height: 38px; border-radius: 19px; font-size: 14px; }
.rd-mhome .rd-pager .rd-pg { min-width: 34px; height: 34px; }

/* ---------- Bottom nav ---------- */
.rd-bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; height: calc(var(--rd-bn) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: linear-gradient(180deg, #1c1c20, #0e0e10); border-top: 1px solid rgba(242, 193, 78, .35); box-shadow: 0 -4px 16px rgba(0, 0, 0, .6);
}
.rd-bnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--rd-bn); padding: 4px 2px;
  border: 0; background: transparent; color: var(--rd-text) !important; text-decoration: none !important; font-size: 10.5px; font-weight: 600; cursor: pointer;
  line-height: 1.1; text-align: center;
}
.rd-bnav-item i { font-size: 19px; color: var(--rd-accent); }
.rd-bnav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-bnav-play { position: relative; }
.rd-bnav-play .rd-play-disc {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #ffe9a3, var(--rd-accent) 55%, #8a5a12 100%);
  border: 3px solid #2a1c05; box-shadow: 0 0 0 3px rgba(242, 193, 78, .45), 0 6px 16px rgba(0, 0, 0, .7);
  color: #1a1206; font-weight: 900; font-size: 12px; letter-spacing: .04em;
}
.rd-bnav-play .rd-play-disc i { color: #1a1206; font-size: 20px; }
.rd-bnav-play > span:last-child { visibility: hidden; }

/* Livechat GIF lama tidak boleh menutupi bottom nav */
.rd-body #btn-livechat { bottom: calc(var(--rd-bn) + 12px + env(safe-area-inset-bottom)) !important; }
.rd-body #btn-livechat img { width: 96px !important; }

/* ---------- Footer mobile ---------- */
.rd-mfooter { margin-top: 18px; padding: 16px 0 10px; border-top: 1px solid rgba(242, 193, 78, .3); color: var(--rd-muted); font-size: 12px; }
.rd-mfooter .rd-foot-provs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rd-mfooter .rd-foot-links { grid-template-columns: 1fr 1fr; }
.rd-mfooter .rd-foot-bottom { flex-direction: column; align-items: flex-start; }

/* ---------- Tablet (768+) pada situs mobile ---------- */
@media (min-width: 600px) {
  .rd-mhome, .rd-mfooter .rd-wrap { max-width: 720px; margin: 0 auto; }
  .rd-grid-3 { grid-template-columns: repeat(4, 1fr); }
  .rd-mhome .rd-jp-d { width: 24px; height: 34px; } .rd-mhome .rd-jp-d b { height: 34px; line-height: 34px; font-size: 22px; }
  .rd-mhome .rd-jp-crown { width: 44px; height: 34px; }
  .rd-mfooter .rd-foot-provs { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1000px) { .rd-grid-3 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 370px) {
  .rd-mlogo img { max-width: 96px; }
  .rd-btn-sm { padding: 3px 7px; font-size: 10.5px; }
  .rd-icon-btn { width: 30px; }
  .rd-pill { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-body #sideNav.rd-drawer, .rd-scrim { transition: none !important; }
}

/* Panel login tampil layar penuh seperti referensi; placeholder terlihat */
.rd-body #r-side-bar.open { width: 100% !important; } /* lama: 20rem; tertutup tetap width:0 */
@media (min-width: 768px) { .rd-body #r-side-bar.open { width: 32rem !important; } }
.rd-body #r-side-bar .rd-field input.form-control::placeholder { color: #8a8a8a !important; opacity: 1 !important; }
.rd-body #r-side-bar .rd-field input.form-control { -webkit-text-fill-color: #111 !important; caret-color: #111; }
.rd-body #r-side-bar .rd-field input.form-control::placeholder { -webkit-text-fill-color: #8a8a8a !important; }

/* ---------- Ikon emas ilustrasi (rd_icon) — mobile ---------- */
.rd-pill { justify-content: flex-start; gap: 6px; padding: 3px 8px 3px 3px; min-height: 38px; border-radius: 19px; background: #0f0f11; border-color: rgba(242, 193, 78, .7); text-align: left; font-size: 11.5px; }
.rd-pill .rd-ic { width: 30px; height: 30px; }
.rd-cats .rd-scroll-track { gap: 2px; }
.rd-cat { width: 78px; min-height: 84px; gap: 5px; padding: 8px 4px 6px; border: 0; background: transparent; font-size: 12px; font-weight: 800; color: #fff !important; }
.rd-cat .rd-ic { width: 42px; height: 42px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }
.rd-cat.is-active { background: #3a3a3e; border: 0; }
.rd-cats .rd-scroll-prev, .rd-cats .rd-scroll-next { height: 84px; }
.rd-msec-title .rd-ic { width: 22px; height: 22px; }
.rd-bnav-item { font-size: 11px; font-weight: 700; color: #fff !important; gap: 4px; }
.rd-bnav-item .rd-ic { width: 27px; height: 27px; }
.rd-bnav-play .rd-play-disc {
  width: 76px; height: 76px; bottom: 8px; gap: 0; border: 3px solid #e7b64a;
  background: radial-gradient(circle at 50% 30%, #3a2a12, #120c04 70%);
  box-shadow: 0 0 0 2px #5a3a08, 0 0 14px rgba(242, 193, 78, .45), 0 6px 16px rgba(0, 0, 0, .7);
}
.rd-bnav-play .rd-play-disc .rd-ic { width: 46px; height: 46px; margin-top: -4px; }
.rd-bnav-play .rd-play-disc b {
  font-size: 13px; font-weight: 900; letter-spacing: .06em; line-height: 1; margin-top: -1px;
  background: linear-gradient(180deg, #fff4c2, #f3c552 55%, #a8701a); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
@media (max-width: 370px) { .rd-pill { font-size: 10px; gap: 4px; } .rd-pill .rd-ic { width: 26px; height: 26px; } .rd-cat { width: 72px; } }
.rd-cats .rd-scroll-prev, .rd-cats .rd-scroll-next { width: 18px; background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff !important; font-size: 18px; }
.rd-cats .rd-scroll-prev[disabled], .rd-cats .rd-scroll-next[disabled] { opacity: 0; pointer-events: none; }

/* =========================================================================
   Revisi 3 — tata letak mengikuti video referensi (mobile)
   ========================================================================= */
.rd-body { --rd-bn: 62px; }
.rd-mheader { background: #0b0b0c; border-bottom: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .7); padding: 0 6px 0 8px; }
.rd-mactions { gap: 6px; }
.rd-mheader .rd-btn-sm { min-height: 30px; padding: 3px 10px; border-radius: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.rd-mheader .rd-btn-ghost { background: #0b0b0c; border: 1px solid #e7b64a; color: #f3c552 !important; }
.rd-mheader .rd-btn-gold i { font-size: 12px; margin-left: 2px; }
.rd-flag-round { width: 30px !important; height: 30px !important; border-radius: 50% !important; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85) !important; background-size: cover; }
.rd-pop-menu .rd-flag-round { width: 22px !important; height: 22px !important; }
.rd-mheader .rd-icon-btn { width: 34px; }
.rd-menu-btn { color: #fff !important; }
.rd-menu-btn .rd-ic { width: 30px; height: 30px; }

.rd-mhome { padding-top: 10px; }
.rd-mhome .rd-announce { height: 36px; border-radius: 8px; padding: 0 3px 0 10px; background: #3b3b3e; border: 0; gap: 8px; }
.rd-mhome .rd-announce > .fa-bell { color: #f3c552; font-size: 17px; }
.rd-mhome .rd-marquee { color: #fff; font-weight: 700; font-size: 13px; }
.rd-app-badge {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #ffe9a3, #e7b64a 55%, #9a6a14); color: #1a1206 !important; text-decoration: none !important;
  font-size: 8px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 1px #6b4a12;
}
.rd-app-badge i { font-size: 9px; }
.rd-mhome .rd-banner { margin-top: 8px; border-radius: 10px; }

.rd-pills { gap: 5px; margin-top: 10px; }
.rd-pill { min-height: 36px; border-radius: 7px; padding: 2px 6px 2px 3px; gap: 5px; background: #0b0b0c; border: 1px solid #c9973a; font-size: 11.5px; font-weight: 700; color: #fff !important; }
.rd-pill .rd-ic { width: 28px; height: 28px; border-radius: 50%; }

.rd-cats { margin-top: 8px; }
.rd-cats .rd-scroll-track { gap: 0; }
.rd-cat { width: 86px; min-height: 92px; justify-content: flex-start; padding: 8px 4px 6px; border-radius: 8px; font-size: 12px; line-height: 1.15; }
.rd-cat .rd-ic { width: 44px; height: 44px; flex: none; }
.rd-cat.is-active { background: #3a3a3a; }
.rd-cats .rd-scroll-prev, .rd-cats .rd-scroll-next { height: 92px; font-size: 13px; }

.rd-mpanel { margin-top: 8px; }
.rd-mpanel[hidden], .rd-view[hidden], [data-rd-view-only][hidden] { display: none !important; }
.rd-slotbox { padding: 8px; border-radius: 10px; background: #232323; }
.rd-slot-tools { display: flex; align-items: center; gap: 6px; }
.rd-tool {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 8px;
  border: 0; background: #3a3a3a; color: #fff; cursor: pointer;
}
.rd-tool .rd-ic { width: 22px; height: 22px; fill-opacity: 1; }
.rd-tool.is-active { background: linear-gradient(180deg, #ffe08a, #e7b64a 60%, #b07a1c); color: #111; }
.rd-gsearch { position: relative; flex: 1 1 auto; min-width: 0; display: block; margin: 0; }
.rd-gsearch input {
  width: 100%; height: 36px; padding: 0 38px 0 12px; border-radius: 8px; border: 1px solid #c9973a; background: #1a1a1a;
  color: #fff; font-size: 14px; outline: none;
}
.rd-gsearch input::placeholder { color: #8d8d8d; }
.rd-gsearch input:focus { box-shadow: 0 0 0 2px rgba(242, 193, 78, .45); }
.rd-gsearch .rd-ic { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.rd-gsearch-full { margin-bottom: 10px; }
.rd-gsearch-full input { height: 40px; }

.rd-provrow { margin-top: 8px; }
.rd-provrow .rd-scroll-track { gap: 6px; align-items: center; }
.rd-provrow .rd-scroll-prev, .rd-provrow .rd-scroll-next {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff !important; color: #222 !important; border: 0 !important; font-size: 11px; box-shadow: none !important;
}
.rd-provchip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 62px; padding: 0 8px; border-radius: 8px;
  color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.rd-provchip.is-active { background: linear-gradient(180deg, #ffe08a, #e7b64a 60%, #b07a1c); color: #111 !important; }
.rd-provlogo img { max-height: 24px; max-width: 72px; width: auto; object-fit: contain; }
.rd-provlogo.is-active { background: #3a3a3a; box-shadow: inset 0 0 0 1px #e7b64a; }

.rd-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.rd-mcard { position: relative; min-width: 0; border-radius: 8px; overflow: hidden; background: #2a2a2a; }
.rd-mcard[hidden] { display: none !important; }
.rd-mcard-link { display: block; color: #fff !important; text-decoration: none !important; }
.rd-mcard .rd-game-img { display: block; aspect-ratio: 1 / 1; background: #1a1a1a; }
.rd-mcard .rd-game-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-mcard-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px; padding: 5px 32px 5px 6px; font-size: 11.5px; line-height: 1.3; color: #e8e8e8;
}
.rd-fav {
  position: absolute; right: 3px; bottom: 4px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #e7b64a; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.rd-fav .rd-ic { width: 20px; height: 20px; fill-opacity: 0; }
.rd-fav.is-on .rd-ic, .rd-fav[aria-pressed="true"] .rd-ic { fill-opacity: 1; }
.rd-tool[data-rd-view="fav"] .rd-ic { fill-opacity: 1; }
.rd-fav:focus-visible, .rd-tool:focus-visible, .rd-provchip:focus-visible { outline: 2px solid #f3c552; outline-offset: 1px; }
.rd-mhome .rd-empty { padding: 18px 8px; text-align: center; color: #9a9a9a; font-size: 13px; grid-column: 1 / -1; }
.rd-empty-big { padding: 34px 10px !important; }
.rd-local-note { margin: 8px 2px 0; font-size: 11px; color: #8a8a8a; text-align: center; }
[data-rd-search-results]:empty { margin-top: 0; }

.rd-mprovs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.rd-mprov { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; background: #2a2a2a; color: #fff !important; text-decoration: none !important; }
.rd-mprov-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #1a1a1a; }
.rd-mprov-img img { width: 100%; height: 100%; object-fit: cover; }
.rd-mprov-img b { font-size: 22px; color: #e7b64a; }
.rd-mprov-name { padding: 6px; font-size: 11.5px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rd-mhome .rd-pager { display: flex; justify-content: center; gap: 5px; margin-top: 12px; flex-wrap: wrap; }
.rd-mhome .rd-pager .rd-pg { min-width: 34px; height: 34px; border-radius: 17px; background: #2a2a2a; border: 0; color: #fff; }
.rd-mhome .rd-pager .rd-pg.is-active { background: linear-gradient(180deg, #ffe08a, #e7b64a 60%, #b07a1c); color: #111; }

/* Bottom nav: hitam, ikon garis putih, disk tengah besar */
.rd-bnav { background: #0b0b0c; border-top: 1px solid #2a2a2a; box-shadow: 0 -2px 10px rgba(0, 0, 0, .7); }
.rd-bnav-item { font-size: 11.5px; }
.rd-bnav-play .rd-play-disc { width: 88px; height: 88px; bottom: 6px; }
.rd-bnav-play .rd-play-disc .rd-ic { width: 54px; height: 54px; }

/* Drawer kanan */
.rd-body #sideNav.rd-drawer { width: min(86vw, 340px); background: #2a2820; border-left: 0; }
.rd-drawer-head {
  position: relative; display: block; padding: 46px 14px 16px; border-bottom: 0;
  background:
    radial-gradient(120% 60% at 100% 0%, transparent 58%, rgba(231, 182, 74, .55) 59%, transparent 61%),
    radial-gradient(130% 70% at 110% 10%, transparent 62%, rgba(231, 182, 74, .35) 63%, transparent 65%),
    linear-gradient(160deg, #222 0%, #0d0d0d 70%);
}
.rd-drawer-x {
  position: absolute; left: 10px; top: 10px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1.5px solid #fff;
  background: rgba(0, 0, 0, .4); color: #fff; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.rd-drawer-id { display: flex; align-items: center; gap: 12px; }
.rd-drawer-id .rd-ic { width: 52px; height: 52px; flex: none; }
.rd-drawer-welcome { margin: 0; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.3; }
.rd-drawer-cta { margin-top: 16px; }
.rd-drawer-cta .rd-btn { min-height: 40px; border-radius: 4px; font-size: 14px; }
.rd-drawer-cta .rd-btn-ghost { background: transparent; border: 1px solid #e7b64a; color: #fff !important; }
.rd-drawer-head .rd-bal-block { margin-top: 14px; }
.rd-drawer-nav { padding: 6px 0; }
.rd-drawer-nav a { min-height: 54px; padding: 8px 18px; gap: 14px; border-bottom: 0; font-size: 15px; font-weight: 700; color: #fff !important; }
.rd-drawer-nav i { width: 22px; color: #fff; font-size: 18px; }
.rd-drawer-lang { padding: 4px 0 24px; }
.rd-drawer-lang ul { padding: 0 0 0 12px; }
.rd-drawer-lang a { min-height: 50px; gap: 16px; padding: 6px 14px; border-bottom: 0; border-radius: 26px 0 0 26px; font-size: 13.5px; color: #fff !important; }
.rd-drawer-lang a.is-active { background: #0b0b0c; color: #fff !important; }
.rd-drawer-lang .rd-flag-round { width: 32px !important; height: 32px !important; }

@media (min-width: 600px) {
  .rd-mgrid, .rd-mprovs { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) { .rd-mgrid, .rd-mprovs { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 370px) {
  .rd-mheader .rd-btn-sm { padding: 3px 7px; font-size: 10.5px; }
  .rd-mheader .rd-btn-gold i { display: none; }
  .rd-flag-round { width: 26px !important; height: 26px !important; }
  .rd-cat { width: 80px; }
  .rd-mcard-name { font-size: 10.5px; }
}
.rd-cat:focus:not(:focus-visible), .rd-tool:focus:not(:focus-visible) { outline: none; }
.rd-cat:focus-visible { outline: 2px solid #f3c552; outline-offset: -2px; }

/* Nov 1: header belongs to the viewport, outside legacy layout wrappers. */
body.rd-body > .rd-mheader {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
  transform: none !important; visibility: visible; z-index: 1200;
}
.rd-body .layout .content { scroll-margin-top: calc(var(--rd-hh) + 8px); }
.rd-bnav-play .rd-play-gif {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 88px; height: 88px; max-width: none; display: block;
  object-fit: cover; object-position: center; border-radius: 50%;
  border: 0; background: transparent; box-shadow: none;
}

/* Registration is a dedicated screen, matching the video's back/logo layout. */
body.rd-register-page {
  background: radial-gradient(ellipse at 48% 0,rgba(255,255,255,.09),transparent 65%),
    linear-gradient(150deg,#2a2a2a 0%,#161616 48%,#080808 100%) fixed !important;
}
body.rd-register-page > .rd-mheader,
.rd-register-page .rd-mfooter,.rd-register-page .rd-bnav,
.rd-register-page #btn-livechat,.rd-register-page #floatingMenu,
.rd-register-page .menu-hamburger,.rd-register-page .floating-menu,
.rd-register-page .ard-sosmed { display: none !important; }
.rd-register-page .layout .content { margin-top: 0 !important; }
.rd-register-page .layout .main-content { padding-bottom: 20px !important; }
.rd-register-brand { position: relative; display: flex; justify-content: center; align-items: center; max-width: 440px; margin: 0 auto; padding: 22px 26px 8px; min-height: 88px; }
.rd-register-brand img { display: block; max-width: 150px; max-height: 62px; width: auto; height: auto; object-fit: contain; }
.rd-register-brand .rd-register-back { position: absolute; top: 18px; left: 12px; display: grid; place-items: center; width: 40px; height: 44px; color: #fff; font: 44px/1 Arial,sans-serif; text-decoration: none; }
.rd-register-content { max-width: 440px !important; width: 100% !important; margin: 0 auto !important; padding: 0 20px !important; }
.rd-register-content .row { margin: 0 !important; }
.rd-register-content .col-xs-12,.rd-register-content .col-md-5,.rd-register-content .col-md-7,.rd-register-content .col-xs-5 { width: 100% !important; float: none !important; padding: 0 !important; }
.rd-mobile-register-title { text-align: center; color: #fff !important; font-size: 28px !important; font-weight: 700 !important; margin: 24px 0 28px !important; }
.rd-register-content .sub-title { color: #e2bd68 !important; border: 0 !important; margin: 20px 0 12px; padding: 0 !important; font-size: 13px; font-weight: 600; }
.rd-register-content .register-form .form-group { margin: 0 0 18px !important; position: relative; }
.rd-register-content .register-form label { color: #eee; font-size: 12px; margin-bottom: 6px; }
.rd-register-content .radio_2 label,
.rd-register-content .radio_2 .radio-title { color: #222 !important; }
.rd-register-content .register-form .rd-register-labelled { position: absolute !important; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
body.rd-register-page .register-form input.form-control,
body.rd-register-page .register-form select.form-control {
  height: 48px !important; min-height: 48px; border: 1px solid #e6e6e6 !important;
  background: #fafafa !important; border-radius: 12px !important;
  color: #171717 !important; -webkit-text-fill-color: #171717 !important;
  font-size: 15px !important; font-weight: 600; letter-spacing: normal !important; padding: 10px 16px !important; caret-color: #171717;
}
body.rd-register-page .register-form input.form-control::placeholder { color: #272727 !important; opacity: 1; }
body.rd-register-page .register-form input.form-control:focus,
body.rd-register-page .register-form select.form-control:focus { outline: 2px solid #e6bc54 !important; outline-offset: 2px; }
.rd-register-content .register-form small { display: block; color: #aaa; font-size: 10px; line-height: 1.4; margin: 5px 2px 0; }
.rd-register-content .rd-register-help {
  display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 7px);
  padding: 8px 10px; background: #292929; border: 1px solid #7b6634;
  border-radius: 8px; z-index: 5; pointer-events: none;
}
.rd-register-content .form-group:focus-within .rd-register-help { display: block; }
.rd-register-content .rd-register-help small { color: #eee; margin: 2px 0; }
.rd-register-content .rd-register-input-wrap { position: relative; }
.rd-register-content .rd-register-input-wrap > i { position: absolute; left: 15px; top: 16px; color: #333; font-size: 16px; pointer-events: none; z-index: 1; }
body.rd-register-page .rd-register-input-wrap > input.form-control { padding-left: 42px !important; }
body.rd-register-page .rd-register-input-wrap > input[type=password],
body.rd-register-page .rd-register-input-wrap > input[data-rd-password] { padding-right: 46px !important; }
.rd-register-eye { position: absolute; right: 5px; top: 3px; width: 42px; height: 42px; color: #222; background: transparent; border: 0; font-size: 16px; cursor: pointer; }
.rd-register-content .input-group-btn > button { height: 48px !important; border-radius: 12px 0 0 12px !important; border: 0; background: #666; color: #fff; font-weight: 600; }
body.rd-register-page .register-form #mobile_no { border-radius: 0 12px 12px 0 !important; }
.rd-register-content #captcha_image { max-width: 140px; height: auto; }
.rd-register-content .register-form button[type=submit] {
  display: block; width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid #edbe4f;
  background: var(--rd-gold-grad,linear-gradient(#ffe19a,#e8ae2c,#ffe19a)) !important;
  color: #14100a !important; font-size: 18px; font-weight: 800; margin-top: 8px;
}
.rd-register-content .alert { border-radius: 10px; overflow-wrap: anywhere; }
.rd-register-content .alert p { margin: 0 0 5px; }
.rd-register-signin { text-align: center; color: #fff; font-size: 13px; font-weight: 600; margin: 20px 20px 40px; }
.rd-register-signin a { color: #f0c653 !important; text-decoration: underline; }
.rd-register-page :focus-visible { outline: 2px solid #e6bc54; outline-offset: 3px; }

/* Only the four marked icons shake: Slot, Kasino, Memancing and Deposit.
   Labels and tap targets stay still. The center GIF keeps its own animation. */
.rd-cat[data-rd-tab="slot"] > .rd-ic,
.rd-cat[data-rd-tab="casino"] > .rd-ic,
.rd-cat[data-rd-tab="fishing"] > .rd-ic,
.rd-bnav-item:first-child > .rd-ic {
  transform-origin: 50% 65%; animation: rd-mobile-icon-wiggle 0.8s ease-in-out infinite;
}
.rd-cat[data-rd-tab="casino"] > .rd-ic,
.rd-bnav-item:first-child > .rd-ic { animation-delay: -.35s; }
.rd-cat[data-rd-tab="fishing"] > .rd-ic { animation-delay: -.7s; }
@keyframes rd-mobile-icon-wiggle {
  0%,10%,90%,100% { transform: rotate(0) translateX(0); }
  20%,40%,60% { transform: rotate(-10deg) translateX(-3px); }
  30%,50%,70% { transform: rotate(10deg) translateX(3px); }
  80% { transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rd-cat[data-rd-tab="slot"] > .rd-ic,
  .rd-cat[data-rd-tab="casino"] > .rd-ic,
  .rd-cat[data-rd-tab="fishing"] > .rd-ic,
  .rd-bnav-item:first-child > .rd-ic { animation: none; }
}
