@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* Desktop treatment for desktop/index.php, scoped under body.desktop (mobile untouched).
   Theme mirrors https://rajaplaynice.com/ : white page, Poppins, dark #353535 bars,
   1204px container (15px padding), dark game cards, black pill "Show all".
   Selectors are prefixed with "html" so they beat the inline <style> in desktop/index.php. */

/* ---------- Base ---------- */
html:has(body.desktop){background:var(--mt-page-bg,#fff)!important}
html body.desktop{background:var(--mt-page-bg,#fff)!important;color:var(--mt-page-text,#44454d)!important;font-family:'Poppins',sans-serif!important;font-size:13px}
html body.desktop *{font-family:'Poppins',sans-serif}
html body.desktop .app-shell{max-width:none;width:100%;margin:0;min-width:0;padding-left:0;padding-right:0;background:var(--mt-page-bg,#fff)!important}

/* ---------- Top bar (login row) ---------- */
html body.desktop .d-site-header{height:69px!important;background:linear-gradient(180deg,var(--mt-header-start,#353535) 0%,var(--mt-header-end,#171717) 100%)!important}
html body.desktop .d-site-header .brand img{max-height:45px}
html body.desktop .d-login-field,html body.desktop .d-captcha-input{background:var(--mt-card-bg,#fff)!important;color:var(--mt-page-text,#000)!important;border:0!important;border-radius:5px!important;height:35px}
html body.desktop .d-login-field{width:164px!important}
html body.desktop .d-btn-masuk{background:var(--mt-card-bg,#fff)!important;color:var(--mt-page-text,#171717)!important;height:34px}
html body.desktop .d-btn-daftar{height:34px}

/* ---------- Category nav ---------- */
html body.desktop .d-full-nav{background:var(--mt-nav-bg,#353535)!important}
html body.desktop #dFullNav .category-nav{height:50px!important;min-height:50px!important;font-size:15px!important;background:transparent!important;color:var(--mt-nav-text,#fff)!important}
html body.desktop #dFullNav .category-nav>a{height:50px!important;min-height:50px!important;line-height:50px!important;font-size:15px!important;color:var(--mt-nav-text,#fff)!important}
html body.desktop #dFullNav .category-nav>a:hover{color:var(--mt-nav-active,#ffc23d)!important}

/* ---------- Banner ---------- */
html body.desktop .banner-window{max-width:none;width:100%;margin:0;height:min(32vw,420px);background:var(--mt-card-bg,#fff)}
html body.desktop .banner-slide img{width:100%;height:100%;object-fit:cover}

/* ---------- Pengumuman bar ---------- */
html body.desktop .announcement.igp-announcement{max-width:none;width:100%;height:50px!important;font-size:13px!important;background:var(--mt-ann-bg,#353535)!important;border:0!important}
html body.desktop .igp-announcement .speaker{background:var(--mt-ann-bg,#353535)!important}
html body.desktop .igp-announcement .speaker::after{color:#fff!important;font-size:13px!important;font-weight:400!important}
html body.desktop .igp-announcement .marquee{background:var(--mt-ann-bg,#353535)!important;border-left:1px solid color-mix(in srgb,var(--mt-card-text,#44454d) 18%,transparent)!important}
html body.desktop .igp-announcement .marquee span{font-size:13px!important;color:var(--mt-ann-text,#fff)!important}

/* ---------- Home sections container ---------- */
html body.desktop .home-reference-sections{max-width:1204px;width:100%;margin:0 auto;padding:20px 15px 40px;box-sizing:border-box;display:flex;flex-direction:column;background:var(--mt-page-bg,#fff)!important}
html body.desktop .home-reference-sections>*{order:0}
html body.desktop .home-reference-sections .game-section:has(#home-slots){order:-1}
html body.desktop .home-reference-sections .game-section{margin:0 0 34px}

/* ---------- Section headers ---------- */
html body.desktop .home-reference-sections .section-head{height:32px;margin:0 0 8px;gap:8px;color:var(--mt-page-text,#14171e)!important;font-size:19px}
html body.desktop .home-reference-sections .section-head strong{font-size:19px;font-weight:500;color:var(--mt-page-text,#14171e)!important}
html body.desktop .home-reference-sections .bubble{background:transparent!important;width:32px;height:32px;font-size:24px;color:var(--mt-page-text,#14171e)}
html body.desktop .home-reference-sections .show-all{width:120px;min-width:120px;height:32px;padding:4px 10px!important;border-radius:25px!important;background:var(--mt-nav-bg,#171717)!important;color:#fff!important;font-size:14px!important;font-weight:400;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}

/* Slots section re-titled like the reference tournament block */
html body.desktop .game-section:has(#home-slots) .section-head .bubble{font-size:0!important}
html body.desktop .game-section:has(#home-slots) .section-head .bubble::before{content:"\1F451";font-size:26px}
html body.desktop .game-section:has(#home-slots) .section-head strong{font-size:0!important;overflow:visible}
html body.desktop .game-section:has(#home-slots) .section-head strong::after{content:"KEJUARAAN SLOT TUNAI PG  ( Nov 25, 00:00 ~ Dec 16, 23:59, GMT+7 )";font-size:19px;font-weight:500;color:var(--mt-page-text,#14171e);white-space:nowrap}

/* ---------- Game cards ---------- */
html body.desktop .home-reference-sections .game-card{background:var(--mt-card-bg,#353535)!important;border-radius:10px!important;overflow:hidden}
html body.desktop .home-reference-sections .game-art{border-radius:10px 10px 0 0;background:var(--mt-card-bg,#353535)}
html body.desktop .home-reference-sections .game-label{height:49px!important;padding:0 10px!important;font-size:12px!important;color:var(--mt-card-text,#aab6cb)!important;background:var(--mt-card-bg,#353535)!important;border-radius:0 0 10px 10px}
html body.desktop .home-reference-sections .game-label .star{color:var(--mt-card-text,#aab6cb)!important;font-size:18px}

/* Bento grid (1 big + 8 small), sizes from the reference: 386px big tile, 189px tiles, 8px gap */
html body.desktop .home-reference-sections .game-grid.grid{display:grid;grid-template-columns:repeat(5,1fr);grid-auto-rows:auto;gap:8px}
html body.desktop .home-reference-sections #home-slots.game-grid.grid{grid-template-columns:2fr repeat(4,1fr)}
html body.desktop .home-reference-sections #home-slots.game-grid.grid .game-card:first-child{grid-column:1/2;grid-row:1/3;display:flex;flex-direction:column}
html body.desktop .home-reference-sections #home-slots.game-grid.grid .game-card:first-child .game-art{flex:1;aspect-ratio:auto}
html body.desktop .home-reference-sections #home-slots.game-grid.grid .game-card:first-child .game-label{font-size:21px!important;height:74px!important;padding:0 14px!important}

/* Rail sections (Royal Cashback / Favorit) as a 5-col, 2-row grid */
html body.desktop .home-reference-sections .game-grid.featured{display:grid;grid-auto-flow:row;grid-template-columns:repeat(5,1fr);gap:8px;overflow:visible}
html body.desktop .home-reference-sections .game-grid.featured .game-card{min-width:0}

/* ---------- Misc ---------- */
html body.desktop .closing-copy{color:var(--mt-page-text,#14171e)}
html body.desktop .drawer{max-width:320px}
html body.desktop .modal-card{max-width:460px;margin:0 auto}

/* Rail headers (Royal Cashback / Favorite) on the white page */
html body.desktop .home-reference-sections .home-royal-dates{color:var(--mt-page-text,#44454d)!important;font-size:13px!important;font-weight:400}
html body.desktop .home-reference-sections .home-rail-controls button{background:var(--mt-nav-bg,#171717)!important;color:#fff!important;border:0!important}
html body.desktop .home-reference-sections .home-royal-info{color:var(--mt-page-text,#171717)!important}
