:root {
  --body-bg: #18090d;
  --site-header-bg: linear-gradient(180deg, #54202b, #350e17);
  --site-footer-bg: #2a0d14;
  --site-content-cntr-bg: #270c13;
  --site-info-cntr-bg: #300f17;
  --home-inner-cntr-bg: #300e17f2;
  --topbar-cntr-bg: #250b12;
  --topbar-cntr-border: 1px solid #895b39;
  --top-menu-li-color: #fff0db;
  --top-menu-li-true-hover-color: #ffd582;
  --top-menu-game-list-cntr-bg: #3a131c;
  --top-menu-games-cntr-li-bg: #260d13;
  --theme-text-color: #edc57e;
  --theme-text-dark-color: #e9bc70;
  --primary-button-bg: #ecc16f;
  --announcement-outer-cntr-bg: #300d16;
  --announcement-cntr-data-section-announcements-bg: #411721;
  --popular-game-title-cntr-game-list-cntr-bg: #250c12;
  --popular-game-title-cntr-game-list-cntr-border: #87593e;
  --popular-game-title-cntr-a-bg: #73303d;
  --modal-header-bg: linear-gradient(110deg, #43151e, #662435);
  --modal-body-bg: #2c0e16;
  --modal-footer-bg: #240b11;
  --footer-banking-card-bg: #3a1420;
  --footer-featured-product-bg: #3a1420;
  --footer-sitemap-link-color: #ead4bb;
  --site-info-inner-cntr-footer-links-li-a-color: #ead4bb;
}
body { background-color: var(--body-bg); }
body .site-header, body .site-contacts { background: var(--site-header-bg); }
body [data-container-background="home"] {
  background-color: #431322;
  background-blend-mode: luminosity;
}
body .login-panel .login-button { background: #6c2333; color: #fff1dc; }
body .login-panel .register-button { background: #edc370; color: #2b1013; }
.site-footer .site-description a, .site-description h1 { color: #efc47b; }
/* Jackpot and game collections */
[data-container-background="home"] .home-progressive-jackpot {
  --home-progressive-jackpot-bg: linear-gradient(165deg, #612333, #310e18 62%, #501b28);
  --home-progressive-jackpot-color: #fff3d9;
  --home-progressive-jackpot-outer-cntr-bg: #260b12;
  --home-progressive-jackpot-inner-cntr-bg: linear-gradient(180deg, #824153, #360f1a);
  --home-progressive-jackpot-border-cntr-bg: #360f1a;
  --home-progressive-jackpot-border-cntr-border: #c59a5d;
  --home-progressive-jackpot-jackpot-cntr-bg: linear-gradient(170deg, #e6bd77, #905c37 42%, #5e2733 88%);
  --home-progressive-jackpot-jackpot-inner-cntr-bg: #210c12;
  --home-progressive-jackpot-jackpot-border-cntr-border: #ac784b;
  --home-progressive-jackpot-jackpot-currency-color: #edc779;
  --home-progressive-jackpot-jackpot-play-text-color: #f7d49c;
  --home-progressive-jackpot-jackpot-play-text-label-color: #e4a957;
}
body [data-container-background="home"] {
  background-color: #390f1b;
  background-blend-mode: multiply;
  --popular-game-title-cntr-color: #ffe7b7;
  --popular-game-title-cntr-i-border-top: #af8051;
  --popular-game-title-cntr-i-border-bottom: #4d1925;
  --popular-game-title-cntr-game-list-cntr-bg: #2c0e17;
  --popular-game-title-cntr-game-list-cntr-border: #926845;
  --popular-game-title-cntr-a-bg: #652535;
  --popular-game-title-cntr-a-color: #ffe2ae;
  --popular-game-title-cntr-content-game-list-scrollbar-thumb-bg: #a5774b;
  --game-list-game-item-bg: linear-gradient(160deg, #59202e, #390f1a);
  --game-list-provider-name-color: #ebcb9a;
}
.home-outer-container .game-list .game-item { box-shadow: inset 0 0 0 1px #966a47; }
.home-outer-container .game-list .game-name { color: #fff1df; }
.home-outer-container .game-item .play-now { background: #f0c577; color: #34131a; }
.home-outer-container .popular-game-title-container a { box-shadow: inset 0 0 0 1px #b48954; }
.home-outer-container .popular-game-title-container a:hover { background: #863247; }
.home-outer-container a:focus-visible { outline: 2px solid #f4d390; outline-offset: 2px; }

.download-apk-container {
  --download-apk-color: #fff1d9;
  --download-apk-h2-span-color: #f1c87e;
  --download-apk-section-i-color: #e8b86e;
  background: transparent;
}
/* Merah marun dan emas pada permukaan yang terlihat di homepage. */
.home-outer-container {
  --marun-panel: #350a16;
  --marun-terang: #7c2238;
  --bingkai-emas: #c19151;
  --teks-emas: #ffda92;
}
.home-outer-container .popular-game-title-container + .game-list-container {
  background: linear-gradient(135deg, #4d1121, var(--marun-panel));
  border-color: var(--bingkai-emas);
}
.home-outer-container .game-list-container .game-list {
  background: transparent;
}
.home-outer-container .game-list-container .game-list .game-item {
  background: linear-gradient(160deg, var(--marun-terang), #440f20 76%);
  box-shadow: inset 0 0 0 1px var(--bingkai-emas);
}
.home-outer-container .game-list-container .game-item .game-name,
.home-outer-container .game-list-container .game-item .provider-name {
  color: var(--teks-emas);
}
.home-outer-container .home-progressive-jackpot {
  background: linear-gradient(145deg, #742036, #370a17 75%);
  box-shadow: inset 0 0 0 1px var(--bingkai-emas);
}
.home-outer-container .home-progressive-jackpot .outer-container {
  background: #300813;
}
.home-outer-container .home-progressive-jackpot .inner-container {
  background: linear-gradient(#9d4052, #551426);
}
.home-outer-container .home-progressive-jackpot .border-container {
  background: linear-gradient(100deg, #5c1729, #390b19);
  border-color: var(--bingkai-emas);
}
.home-outer-container .home-progressive-jackpot .jackpot-container {
  background: linear-gradient(165deg, #ffe0a0, #bd8a46 48%, #77472c);
}
.home-outer-container .home-progressive-jackpot .jackpot-inner-container {
  background: #300b16;
}
.home-outer-container .home-progressive-jackpot .jackpot-border-container {
  border-color: var(--bingkai-emas);
  color: var(--teks-emas);
}
.home-outer-container .jackpot-border-container #progressive_jackpot,
.home-outer-container .home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
  color: var(--teks-emas);
}
.home-outer-container .home-progressive-jackpot .jackpot-currency,
.home-outer-container .home-progressive-jackpot .jackpot-play-section .jackpot-play-text label {
  color: #eaba67;
}

/* Motif dekoratif di belakang konten setiap bagian. */
.motif-area { position: relative; isolation: isolate; }
.motif-jatuh {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none; user-select: none; container-type: size;
}
.motif-jatuh > i {
  display: block; position: absolute; top: -48px; left: var(--jalur);
  width: clamp(23px, 3.2vw, 42px); aspect-ratio: 1;
  background: url("/assets/images/motif-jatuh.webp") var(--ikon) 50% / 800% 100% no-repeat;
  opacity: .36; animation: motif-turun var(--waktu) linear var(--awal) infinite;
}
@keyframes motif-turun {
  from { transform: translate3d(0,0,0) rotate(-18deg); }
  50% { transform: translate3d(8px,calc(50cqh + 24px),0) rotate(8deg); }
  to { transform: translate3d(-4px,calc(100cqh + 52px),0) rotate(30deg); }
}
.motif-jatuh > i:nth-child(1) { --jalur: 2%; --ikon: 0.00000%; --waktu: 18s; --awal: -7s; }
.motif-jatuh > i:nth-child(2) { --jalur: 15%; --ikon: 14.28571%; --waktu: 22s; --awal: -16s; }
.motif-jatuh > i:nth-child(3) { --jalur: 28%; --ikon: 28.57143%; --waktu: 20s; --awal: -3s; }
.motif-jatuh > i:nth-child(4) { --jalur: 40%; --ikon: 42.85714%; --waktu: 26s; --awal: -21s; }
.motif-jatuh > i:nth-child(5) { --jalur: 53%; --ikon: 57.14286%; --waktu: 19s; --awal: -10s; }
.motif-jatuh > i:nth-child(6) { --jalur: 66%; --ikon: 71.42857%; --waktu: 23s; --awal: -5s; }
.motif-jatuh > i:nth-child(7) { --jalur: 80%; --ikon: 85.71429%; --waktu: 25s; --awal: -17s; }
.motif-jatuh > i:nth-child(8) { --jalur: 93%; --ikon: 100.00000%; --waktu: 21s; --awal: -12s; }

@media (max-width: 680px) { .motif-jatuh > i { width: 22px; opacity: .26; } }
@media (prefers-reduced-motion: reduce), print { .motif-jatuh { display: none; } }

/* Provider menu */
.top-menu .game-list-container {
  --top-menu-game-list-cntr-bg: #340e1b;
  --top-menu-games-cntr-li-bg: linear-gradient(155deg, #e2bd78, #945b35 65%, #d2a464);
  --top-menu-games-cntr-li-a-img-bg: linear-gradient(165deg, #671b2e, #360d1c 68%, #501627);
  --top-menu-games-cntr-li-hover-a-bg: #652333;
}
.top-menu .games-container > li > a:focus-visible {
  outline: 2px solid #ffdc95;
  outline-offset: 2px;
}
.top-menu .games-container > li:hover,
.top-menu .games-container > li:focus-within {
  --top-menu-games-cntr-li-a-img-bg: linear-gradient(165deg, #812a40, #4d1629 72%, #682337);
}
.site-footer .payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .payment-methods li {
  color: #f4d398;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

/* Satu latar untuk seluruh homepage, termasuk saat halaman digulir. */
body {
  isolation: isolate;
  background: #240b14 radial-gradient(ellipse at 50% 15%, #501525 0%, #300e1a 55%, #1c0810 100%) fixed;
}
body > .motif-home {
  position: fixed;
  inset: 0;
  z-index: -1;
}
.motif-home > i { opacity: .62; width: clamp(27px, 3.3vw, 50px); }
body [data-container-background="home"],
body .download-apk-container,
body .site-footer {
  background: transparent;
}
.home-outer-container .home-inner-container { background: transparent; }
.home-outer-container .popular-game-title-container + .game-list-container {
  background: linear-gradient(135deg, rgb(85 21 40 / 54%), rgb(44 12 25 / 42%));
}
.home-outer-container .home-progressive-jackpot {
  background: linear-gradient(145deg, rgb(116 32 54 / 64%), rgb(55 10 23 / 38%));
}
.home-outer-container .home-progressive-jackpot .outer-container { background: rgb(48 8 19 / 20%); }
.home-outer-container .home-progressive-jackpot .inner-container {
  background: linear-gradient(rgb(157 64 82 / 38%), rgb(85 20 38 / 26%));
}
.home-outer-container .home-progressive-jackpot .border-container {
  background: linear-gradient(100deg, rgb(92 23 41 / 52%), rgb(57 11 25 / 42%));
}
.motif-home > i:nth-child(9) { --jalur: 7%; --ikon: 0.00000%; --waktu: 23s; --awal: -16s; }
.motif-home > i:nth-child(10) { --jalur: 20%; --ikon: 14.28571%; --waktu: 19s; --awal: -4s; }
.motif-home > i:nth-child(11) { --jalur: 33%; --ikon: 28.57143%; --waktu: 22s; --awal: -13s; }
.motif-home > i:nth-child(12) { --jalur: 47%; --ikon: 42.85714%; --waktu: 24s; --awal: -9s; }
.motif-home > i:nth-child(13) { --jalur: 59%; --ikon: 57.14286%; --waktu: 26s; --awal: -20s; }
.motif-home > i:nth-child(14) { --jalur: 72%; --ikon: 71.42857%; --waktu: 21s; --awal: -6s; }
.motif-home > i:nth-child(15) { --jalur: 86%; --ikon: 85.71429%; --waktu: 19s; --awal: -9s; }
.motif-home > i:nth-child(16) { --jalur: 97%; --ikon: 100.00000%; --waktu: 25s; --awal: -23s; }
@media (max-width: 680px) { .motif-home > i { width: 24px; opacity: .54; } .motif-home > i:nth-child(n+9) { display: none; } }

/* Navigasi tetap di bagian bawah layar. */
.bos-dock-space { height: calc(86px + env(safe-area-inset-bottom, 0px)); }
.bos-dock {
  position: fixed; z-index: 1000; bottom: 0; left: 0; right: 0;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: linear-gradient(180deg,#501527,#290c16);
  border-top: 1px solid #b78b51; box-shadow: 0 -4px 18px #23091055;
}
.bos-dock-items {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  width: 100%; max-width: 640px; margin: 0 auto;
}
.bos-dock .bos-dock-items a {
  min-width: 0; height: 62px; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; gap: 4px; padding: 0 0 7px;
  box-sizing: border-box; color: #ffe1a5; text-decoration: none;
  font: 600 12px/15px Arial,sans-serif; white-space: nowrap;
}
.bos-dock .bos-dock-icon { display: grid; place-items: center; height: 26px; color: #ecc576; }
.bos-dock .bos-dock-login .bos-dock-icon {
  width: 48px; height: 48px; flex: 0 0 48px; box-sizing: border-box;
  border-radius: 50%; border: 2px solid #e1b869;
  background: radial-gradient(ellipse at top,#76263c,#3c101f);
  box-shadow: 0 0 0 4px #431321;
}
.bos-dock-login svg { width: 28px; height: 28px; }
.bos-dock .bos-dock-items a:hover { color: #fff7df; background: #ffffff08; }
.bos-dock .bos-dock-items a:focus-visible { outline: 2px solid #ffdf99; outline-offset: -3px; }

.bos-dock .bos-dock-items a { position: relative; isolation: isolate; }
.bos-dock .bos-dock-items a::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 68%, #ffc96665, #f7b74722 46%, transparent 72%);
  opacity: .12;
}
@media (prefers-reduced-motion: no-preference) {
  .bos-dock .bos-dock-items a { --dock-delay: 0s; }
  .bos-dock .bos-dock-items a:nth-child(2) { --dock-delay: -.34s; }
  .bos-dock .bos-dock-items a:nth-child(3) { --dock-delay: -.68s; }
  .bos-dock .bos-dock-items a::before { animation: bos-dock-glow 1.8s ease-in-out var(--dock-delay) infinite; }
  .bos-dock .bos-dock-icon svg { animation: bos-icon-green 1.8s ease-in-out var(--dock-delay) infinite; }
}
@keyframes bos-icon-green { 0%, 100% { color: #ecc576; } 45%, 60% { color: #75ff8d; } }
@keyframes bos-dock-glow { 0%, 100% { opacity: .12; } 50% { opacity: 1; } }

@media print { .bos-dock, .bos-dock-space { display: none; } }

@media (max-width: 767px), (max-height: 500px) and (max-width: 950px) {
  .bos-dock {
    width: auto; box-sizing: border-box; z-index: 1044;
    inset: auto 0 0;
  }
}

@media (max-width: 767px), (max-height: 500px) and (max-width: 950px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { overflow-x: clip; }
}
