:root {
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;

    /* TEMA HITAM + EMAS + CREAM */
    --bg-color: #050406;
    --text-first: #f7efe2;
    --text-second: #1b1308;

    --first-color: #d9b45a;   /* emas utama */
    --second-color: #f7d97a;  /* emas terang */
    --third-color: #b38939;
    --fourth-color: #8b672c;
    --fifth-color: #fbe7b0;   /* cream emas */

    --g1: #fff4c9;            /* untuk tombol: cream */
    --g2: #ffd76a;            /* untuk tombol: kuning emas */

    --card-cream-1: #fff5d6;  /* gradasi card */
    --card-cream-2: #f6e1aa;
    --card-gold-1: #eac466;
}

body {
    background: radial-gradient(circle at top, #151018 0%, var(--bg-color) 55%, #020104 100%);
    color: var(--text-first);
}

.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
}

/* ===========================
   CARD GAME (RTP CARD)
   =========================== */

.rtp-card {
    /* gradasi cream + emas */
    background: linear-gradient(
        145deg,
        var(--card-cream-1) 0%,
        var(--card-cream-2) 45%,
        var(--card-gold-1) 100%
    );
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 16px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 233, 183, 0.65);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.7),
        0 0 18px rgba(255, 225, 170, 0.35),
        inset 0 0 8px rgba(255,255,255,0.25);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(0,0,0,0.85);
}

.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #2d1f16 0%, #140e0a 55%, #080504 100%);
    box-shadow:
        inset 0 0 16px rgba(0,0,0,0.9),
        0 0 8px rgba(0,0,0,0.6);
}

.place-img-rtp:hover {
    cursor: pointer;
}

/* ===========================
   BUTTON PLAY DI TENGAH CARD
   =========================== */

.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    width: 12rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    max-width: 70%;
    border: 1px solid rgba(255,255,255,0.8);
    background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 100%);
    color: var(--text-second);
    letter-spacing: 0.05em;
    box-shadow:
        0 0 22px rgba(255, 232, 180, 1),
        0 0 40px rgba(0,0,0,1);
}

.btn-play:hover {
    background: linear-gradient(180deg, var(--g2) 0%, var(--g1) 100%);
    transform: translate(-50%, -53%) scale(1.06);
}

/* ===========================
   POLA SLOT
   =========================== */

.pola-wrapper {
    background: linear-gradient(160deg, #f9ecc3 0%, #f3dc9b 55%, #e0c06b 100%);
    padding: 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 12px;
    position: relative;
    color: var(--text-second);
    border: 1px solid rgba(220, 185, 110, 0.7);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.5),
        inset 0 0 6px rgba(255,255,255,0.3);
}

.pola-wrapper h4 {
    font-size: 0.9rem;
}

.pola-wrapper h5 {
    font-size: 0.7rem;
}

.pola-wrapper h4 i, .pola-wrapper h5 i {
    color: var(--first-color);
}

.jam-wrapper {
    background: radial-gradient(circle, #332217 0%, #140e0a 80%);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow:
        0 0 10px rgba(0,0,0,0.9),
        0 0 10px rgba(249, 217, 145, 0.7);
}

.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-second);
}

/* ===========================
   BADGE HOT/TOP & PROVIDER
   =========================== */

.top-game, .hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2rem;
    top: 0.5rem;
    right: 0.5rem;
}

.icon-providers img {
    width: 1.7rem;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.9));
}

/* ===========================
   SLIDER
   =========================== */

.slider, .swiper {
    width: 50rem;
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.9);
}

.slider-wrapper {
    background: linear-gradient(0deg, #20140f 0%, #0d0907 100%);
    height: 100%;
    border-bottom: 1px dashed var(--first-color);
}

/* ===========================
   RUNNING TEXT
   =========================== */

.running-text {
    background: linear-gradient(90deg, var(--g2) 0%, var(--g1) 50%, var(--g2) 100%);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-second);
    padding: 0.1rem 0.6rem;
}

/* ===========================
   ICON PROVIDER STRIP
   =========================== */

.icon-prov {
    background: linear-gradient(0deg, #20140f 0%, #110b08 100%);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    color: var(--text-first);
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-first);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.item-prov {
    padding: 0 0.5rem;
}

/* ===========================
   BUTTON LOGIN/DAFTAR DEFAULT
   =========================== */

.btn-credit {
    background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 100%);
    padding: 0.6rem;
    color: var(--text-second);
    border: none;
    font-weight: bold;
    border-right: 1px solid rgba(0,0,0,0.25);
}

/* ===========================
   NAV BOTTOM
   =========================== */

.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--second-color);
    box-shadow: 0 -6px 18px rgba(0,0,0,0.9);
}

.item-nav-bottom {
    background: linear-gradient(180deg, var(--g2) 0%, var(--g1) 100%);
    color: var(--text-second);
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 100%);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

.btn-up {
  display: none;
  position: fixed;
  bottom: 3.8rem;
  right: 0.7rem;
  z-index: 99;
  font-size: 0.9rem;
}

/* ===========================
   PERCENT BAR
   =========================== */

.percent{
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: #1a130d;
    position: relative;
    z-index: 1;
    border-radius: 999px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255,225,170,0.45);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.9);
}

.percent p{
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    top: -15px;
    font-weight: bold;
    transform: translateY(14px);
    color: var(--text-first);
}

.percent-bar{
    background-image: linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
    -webkit-animation: progress-bar-stripes 1s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
    border-radius: 999px;
}

.good{
    background-color: #ffc107;
}

.great{
    background-color: #28a745;
}

.bad{
    background-color: #dc3545;
}

/* ===========================
   CONTENT WRAPPER
   =========================== */

.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: radial-gradient(circle at top, #1b1410 0%, #0d0908 60%, #050406 100%);
    color: var(--text-first);
}

/* Container */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1100px !important;
    }
}

/* ============================================================
   UNIFY BUTTON LOGIN/DAFTAR (btn-credit) & NAV-BOTTOM
   ============================================================ */

/* Style emas untuk tombol LOGIN/DAFTAR atas DAN nav bawah */
.btn-credit,
.nav-bottom .item-nav-bottom {
    background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 100%) !important;
    color: #402f04 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.8rem 0.3rem !important;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
    border: none;
    border-top: 2px solid rgba(255,255,255,0.4);
}

/* Garis pemisah antar menu di nav-bottom & bar LOGIN/DAFTAR */
.nav-bottom .item-nav-bottom,
.btn-credit {
    border-right: 1px solid rgba(0,0,0,0.25);
}

.nav-bottom .item-nav-bottom:last-child {
    border-right: none;
}

/* Hover effect sama untuk semua */
.btn-credit:hover,
.nav-bottom .item-nav-bottom:hover {
    background: linear-gradient(180deg, var(--g2) 0%, var(--g1) 100%) !important;
    transform: translateY(-1px);
}

/* Teks & icon di nav-bottom ikut warna coklat tua */
.nav-bottom .item-nav-bottom p,
.nav-bottom .item-nav-bottom i {
    color: #402f04 !important;
}
