: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: #000000;
    color: var(--text-first);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

/* LOGO */
.logo img {
    width: 17rem;
    max-width: 80%;
    display: block;
    margin: 1.8rem auto 1rem auto;
    filter:
        drop-shadow(0 0 14px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 18px rgba(247, 196, 85, 0.8));
}

/* CARD RTP */
.rtp-card {
    background: radial-gradient(circle at top, #29292c 0%, #101015 80%);
    padding: 0.8rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    position: relative;
    border: 1px solid rgba(246, 196, 85, 0.7);
    box-shadow:
        0 0 14px rgba(0, 0, 0, 0.9),
        inset 0 0 8px rgba(0, 0, 0, 0.85);
    color: var(--text-first);
}

/* WRAPPER GAMBAR RTP */
.place-img-rtp {
    width: 100%;
    padding: 0.6rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    background: radial-gradient(circle at center, #3c3c40 0%, #050508 70%);
    box-shadow:
        inset 0 0 10px rgba(0, 0, 0, 0.85),
        0 0 10px rgba(0, 0, 0, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    transform: translateY(-3px);
    filter: brightness(1.03);
    box-shadow:
        0 0 20px rgba(0, 0, 0, 1),
        0 0 18px rgba(246, 196, 85, 0.7);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(0, 0, 0, 0.8);
}

/* BUTTON PLAY */
.btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border-radius: 40px;
    padding: 0.45rem 0.9rem;
    width: 14rem;
    max-width: 75%;
    border: 1px solid rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #fff3c2 0%, #f6c455 40%, #b71c1c 100%);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2b0000;
    box-shadow:
        0 0 16px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(246, 196, 85, 0.95);
    text-shadow: 0 0 2px rgba(255, 248, 220, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, #fff9d9 0%, #ffe089 45%, #ff5252 100%);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 0 20px rgba(0, 0, 0, 1),
        0 0 22px rgba(255, 215, 0, 0.95);
}

/* BADGE TOP/HOT GAME */
.top-game,
.hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 1;
}

.top-game {
    left: 0rem;
}

.hot-game {
    left: 0.1rem;
}

/* ICON PROVIDER GLOBAL (RTP CARD, DLL) */
.icon-providers {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 2.1rem;
    display: block;
}

.icon-providers img {
    width: 1.9rem;
    filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.95));
}

/* SLIDER / SWIPER */
.slider,
.swiper {
    width: 50rem;
    max-width: 100%;
}

.slider {
    padding: 1rem;
}

.slider-img {
    width: 40rem;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow:
        0 0 22px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(246, 196, 85, 0.7);
}

.slider-wrapper {
    background: #000000;
    border-bottom: 1px solid rgba(246, 196, 85, 0.5);
}

/* RUNNING TEXT */
.running-text {
    background: linear-gradient(
        90deg,
        #8b0000 0%,
        #b71c1c 35%,
        #f47b20 65%,
        #f6c455 100%
    );
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #fffbe8;
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.09em;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
}

/* BAR ICON PROVIDER */
.icon-prov {
    background: #000000;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: auto !important;
    box-shadow:
        0 0 12px rgba(0, 0, 0, 0.95),
        inset 0 0 12px rgba(0, 0, 0, 0.85);
}

.item-prov {
    padding: 0 0.55rem;
}

.img-prov {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.95));
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.1rem !important;
    transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.icon-card-bg p {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff3cc;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.95);
}

.icon-card-bg:hover p {
    transform: translateY(-1px);
    text-shadow:
        0 0 4px rgba(246, 196, 85, 0.9),
        0 0 8px rgba(255, 82, 82, 0.8);
}

/* TOMBOL CREDIT / LOGIN / DAFTAR */
.btn-credit {
    background: linear-gradient(180deg, #fff3c2 0%, #f6c455 40%, #b71c1c 100%);
    padding: 0.75rem;
    color: #2b0000;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-right: 1px solid rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 3px rgba(255, 248, 225, 0.7);
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(246, 196, 85, 0.85);
}

.btn-credit:hover {
    background: linear-gradient(180deg, #fff9d9 0%, #ffe089 40%, #ff5252 100%);
}

/* NAV BOTTOM (MOBILE) */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    z-index: 11;
    width: 100%;
    border-top: 3px solid var(--third-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.95);
}

.item-nav-bottom {
    background: linear-gradient(180deg, #fff3c2 0%, #f6c455 40%, #b71c1c 100%);
    color: #2b0000;
    font-weight: 800;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.35rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 2px rgba(255, 248, 220, 0.6);
}

.item-nav-bottom:last-child {
    border-right: none;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, #fff9d9 0%, #ffe089 40%, #ff5252 100%);
    cursor: pointer;
    transform: translateY(-1px);
}

.item-nav-bottom p {
    margin: 0;
}

/* BUTTON SCROLL-UP */
.btn-up {
    display: none;
    position: fixed;
    bottom: 4.1rem;
    right: 0.5rem;
    z-index: 99;
    font-size: 0.9rem;
}

/* POLA WRAPPER */
.pola-wrapper {
    background: radial-gradient(circle at top, #2b0000 0%, #020203 80%);
    /* dinaikkan padding-top supaya teks tidak nabrak icon provider di pojok */
    padding: 1.6rem 0.9rem 0.9rem 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);
}

/* Kalau ada icon provider di dalam pola-wrapper, posisinya sedikit dirapatkan */
.pola-wrapper .icon-providers {
    top: 0.35rem;
    right: 0.35rem;
}

/* ✅ FIX JUDUL POLA SLOT + LOGO PROVIDER */
.pola-wrapper h4 {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    /* kasih ruang di kanan agar teks tidak masuk area icon provider */
    padding-right: 2.6rem;
    flex-wrap: wrap;
}

.pola-wrapper h4 img {
    width: 30px;
    height: auto;
    display: block;
    margin-left: auto;
    flex-shrink: 0;
}

.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: 9.5rem;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-first);
}

/* BAR PERSEN RTP */
.percent {
    height: 19px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #2a0906;
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    margin: 0 auto;
    box-shadow:
        inset 0 0 9px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.9);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    font-weight: 800;
    transform: translateY(2px);
    color: #fffbe8;
    text-shadow: 0 0 3px rgba(0, 0, 0, 1);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.18) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.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 0.6s ease;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10;
}

.good {
    background-color: #f6c455;
}

.great {
    background-color: #2ecc71;
}

.bad {
    background-color: #e53935;
}

/* CONTENT WRAPPER */
.content-home {
    padding: 1rem;
    margin-bottom: 4rem;
    background: radial-gradient(circle at top, #1a0005 0%, #000000 60%);
    color: #fff9e6;
    border-radius: 14px 14px 0 0;
    box-shadow:
        0 0 18px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(246, 196, 85, 0.6);
}

/* CONTAINER WIDTH DESKTOP */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}
