: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 MERAH – HITAM – EMAS */
    --bg-color: #050508;
    --text-first: #fdf5e6;
    --text-second: #1a0202;
    
    --first-color: #b71c1c;   /* merah tua */
    --second-color: #ff5252;  /* merah terang */
    --third-color: #f6c455;   /* emas utama */
    --fourth-color: #2b0000;  /* merah sangat gelap */
    --fifth-color: #ffb74d;   /* emas lembut */
    --g1: #f6c455;            /* emas */
    --g2: #b71c1c;            /* merah */
}

/* GLOBAL */
body {
    background: radial-gradient(circle at top, #190008 0%, #050508 45%, #000000 100%);
    color: var(--text-first);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* LOGO */
.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 16px rgba(246, 196, 85, 0.7));
}

/* CARD RTP */
.rtp-card {
    background: radial-gradient(circle at top, var(--fifth-color) 0%, var(--fourth-color) 55%, #000000 100%);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(246, 196, 85, 0.8);
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.85);
}

/* WRAPPER GAMBAR RTP */
.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.9) inset;
    background: radial-gradient(circle at center, #2b0000 0%, #050508 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow:
        0 0 16px rgba(0, 0, 0, 1),
        0 0 14px rgba(246, 196, 85, 0.6);
}

/* TOMBOL PLAY DI ATAS GAMBAR */
.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: none;
    border-radius: 30px;
    padding: 0.4rem 0.7rem;
    width: 12rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    max-width: 70%;
    border: 1px solid rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, var(--third-color) 0%, var(--g2) 50%, #000000 100%);
    color: #fff9e6;
    letter-spacing: 0.06em;
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.9),
        0 0 18px rgba(246, 196, 85, 0.75);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--g2) 0%, var(--third-color) 60%, #ffffff 100%);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 0 18px rgba(0, 0, 0, 1),
        0 0 22px rgba(255, 215, 0, 0.9);
}

/* POLA WRAPPER */
.pola-wrapper {
    background: radial-gradient(circle at top, #2b0000 0%, #020203 80%);
    padding: 0.9rem;
    width: 14rem;
    max-width: 100%;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(246, 196, 85, 0.7);
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.9),
        inset 0 0 10px rgba(0, 0, 0, 0.85);
    color: var(--text-first);
}

.pola-wrapper h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pola-wrapper h5 {
    font-size: 0.7rem;
    opacity: 0.9;
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--third-color);
}

/* JAM WRAPPER */
.jam-wrapper {
    background: radial-gradient(circle at center, #3c0000 0%, #000000 90%);
    border-radius: 50%;
    padding: 0.6rem;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(255, 0, 0, 0.4);
}

/* TABEL POLA */
.table-pola {
    max-width: 100%;
    width: 9rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-first);
}

/* BADGE TOP/HOT GAME */
.top-game,
.hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9));
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

/* ICON PROVIDERS DI POJOK GAMBAR */
.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.95));
}

/* 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: 10px;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        0 0 16px rgba(246, 196, 85, 0.5);
}

.slider-wrapper {
    background: linear-gradient(0deg, #020203 0%, #190008 100%);
    height: 100%;
    border-bottom: 1px dashed rgba(246, 196, 85, 0.7);
}

/* RUNNING TEXT / MARQUEE */
.running-text {
    background: linear-gradient(90deg, var(--g2) 0%, var(--second-color) 45%, var(--third-color) 100%);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fff9e6;
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.08em;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

/* BAR ICON PROVIDER */
.icon-prov {
    background: linear-gradient(90deg, #000000 0%, #260003 40%, #000000 100%);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.95),
        inset 0 0 10px rgba(0, 0, 0, 0.85);
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    color: var(--text-second);
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 700;
    color: #fef2d8;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}

.icon-card-bg:hover p {
    transform: translateY(-1px);
    text-shadow:
        0 0 4px rgba(246, 196, 85, 0.8),
        0 0 8px rgba(183, 28, 28, 0.7);
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.95));
}

.item-prov {
    padding: 0 0.5rem;
}

/* TOMBOL LOGIN/DAFTAR (DEFAULT) */
.btn-credit {
    background: linear-gradient(0deg, var(--g1) 0%, var(--g2) 100%);
    padding: 0.6rem;
    color: #1a0202;
    border: none;
    font-weight: bold;
    border-right: 1px solid rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.35);
}

.btn-credit:hover {
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
}

/* NAV BOTTOM */
.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 3px solid var(--third-color);
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.9);
}

.item-nav-bottom {
    background: linear-gradient(0deg, var(--g2) 0%, var(--first-color) 100%);
    color: #fef2d8;
    font-weight: bold;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.item-nav-bottom:hover {
    background: linear-gradient(0deg, var(--first-color) 0%, var(--g2) 100%);
    cursor: pointer;
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

/* BUTTON SCROLL-UP */
.btn-up {
    display: none;
    position: fixed;
    bottom: 3.8rem;
    right: 0;
    z-index: 99;
    font-size: 0.9rem;
}

/* PERSENTASE RTP BAR */
.percent {
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: .75rem;
    background-color: #1a1a1a;
    position: relative;
    z-index: 1;
    border-radius: 5px;
    width: 100%;
    margin: 0 auto;
    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.8);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    top: -15px;
    font-weight: bold;
    transform: translateY(14px);
    color: #fff9e6;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, .18) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .18) 50%,
        rgba(255, 255, 255, .18) 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 2s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
}

/* WARNA BAR */
.good {
    background-color: #ffb300;  /* emas */
}

.great {
    background-color: #28a745;  /* hijau */
}

.bad {
    background-color: #e53935;  /* merah */
}

/* CONTENT HOME */
.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: radial-gradient(circle at top, #20000a 0%, #000000 85%);
    color: #fdf5e6;
    border-radius: 12px 12px 0 0;
    box-shadow:
        0 0 16px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(246, 196, 85, 0.5);
}

/* 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
   ============================================================ */

.btn-credit,
.nav-bottom .item-nav-bottom {
    background: linear-gradient(180deg, #fff3c2 0%, #f6c455 40%, #b71c1c 100%) !important;
    color: #1a0202 !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.8rem 0.3rem !important;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(246, 196, 85, 0.8);
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.35);
}

.nav-bottom .item-nav-bottom,
.btn-credit {
    border-right: 1px solid rgba(0, 0, 0, 0.7);
}

.nav-bottom .item-nav-bottom:last-child {
    border-right: none;
}

.btn-credit:hover,
.nav-bottom .item-nav-bottom:hover {
    background: linear-gradient(180deg, #fff9d6 0%, #ffe089 40%, #e53935 100%) !important;
    transform: translateY(-1px);
}

.nav-bottom .item-nav-bottom p,
.nav-bottom .item-nav-bottom i {
    color: #1a0202 !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.35);
}
