* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #310909;
    color: #fff;
}

/* ========================= */
/* HEADER */
/* ========================= */
.header {
    display: flex;
    justify-content: space-between;
    /* logo kiri, tombol kanan */
    align-items: center;
    /* vertical center */
    padding: 12px 30px;
    background: linear-gradient(90deg, #490609 0, #7a201f 49%, #490609);
    border-bottom: 1px solid #971200;
}

/* LOGO */
.header .logo img {
    width: 200px;
    /* default desktop */
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* BUTTONS */
.header .auth-btn {
    display: flex;
    gap: 10px;
    /* jarak antar tombol */
}

.header .auth-btn button {
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.header .login {
    background: #23afa9;
    color: #fff;
}

.header .daftar {
    background: #b9b910;
    color: #ffffff;
}

.header .login:hover {
    background: #00fff2;
    color: #000000;
}

.header .daftar:hover {
    background: #ffff00;
    color: #000;
}

/* SLIDER */
.slider img {
    width: 100%;
    max-height: auto;
    object-fit: cover;
}

/* ========================= */
/* RTP MARQUEE BOX */
/* ========================= */
.color-4 {
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 30px;
}

/* BORDER GRADIENT ANIMATED */
.color-4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    /* lebih lebar untuk animasi */
    height: 2px;
    background: linear-gradient(90deg,
            #ff0000,
            #ffff00,
            #4b0000,
            #ff0000);
    animation: borderMove 3s linear infinite;
}

/* ANIMATION */
@keyframes borderMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ICON VOLUME */
.color-4 .icon {
    font-size: 18px;
    color: #fff;
}

/* MARQUEE TEXT */
.color-4 marquee {
    flex: 1;
    /* supaya teks menyesuaikan sisa ruang */
    margin-left: 10px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

/* RESPONSIVE */
/* TABLET */
@media (max-width: 768px) {
    .color-4 {
        height: 35px;
        padding: 4px 8px;
    }

    .color-4 .icon {
        font-size: 16px;
    }

    .color-4 marquee {
        font-size: 13px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .color-4 {
        height: 30px;
        padding: 3px 6px;
    }

    .color-4 .icon {
        font-size: 14px;
    }

    .color-4 marquee {
        font-size: 12px;
    }
}


/* ========================= */
/* PROVIDER ICON ONLY - SCROLL HORIZONTAL */
/* ========================= */
.provider {
    background: linear-gradient(90deg, #310909 0%, #7a0000 50%, #310909 100%);
    padding: 14px 0;
    overflow-x: auto;
    /* scroll horizontal */
    white-space: nowrap;
    /* jangan wrap ke baris baru */

}

.provider ul {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

/* ITEM */
.provider li {
    display: inline-flex;
    /* supaya inline scrollable */
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 3px;
    cursor: pointer;
    transition: all .25s ease;
    flex-shrink: 0;
    /* jangan mengecil saat scroll */
}

/* ICON */
.provider li img {
    width: 60px;
    height: auto;
    object-fit: contain;
}

/* ACTIVE */
.provider li.active {
    border-bottom: 3px solid #ff0000;
}

/* HOVER */
.provider li:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

/* TABLET */
@media (max-width: 768px) {
    .provider li {
        width: 56px;
        height: 56px;
    }

    .provider li img {
        width: 60px;
        height: auto;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .provider ul {
        gap: 10px;
    }

    .provider li {
        width: 50px;
        height: 50px;
    }

    .provider li img {
        width: 36px;
        height: 36px;
    }
}



/* GAME LIST - Base Style */
.game-list {
    display: grid;
    /* Default untuk desktop sebelum media query pertama */
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    padding: 25px;
}

/* CARD GAME */
.card-game {
    position: relative;
    background: linear-gradient(180deg, #7b0000, #2b0000);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, .6);
    overflow: hidden;
}

/* CARD GAME */
.card-game {
    position: relative;
    background: linear-gradient(180deg, #7b0000, #2b0000);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, .6);
    transition: transform 0.3s;
    overflow: hidden;
}

/* BORDER ROTATING */
.card-game::before {
    content: "";
    position: absolute;
    inset: -2px; /* jarak border */
    border-radius: 14px;
    background: conic-gradient(
        from 0deg,
        #9c0000,
        #fff000,
        #9c0000,
        #fff000
    );
    animation: rotateBorder 15s linear infinite;
    z-index: 0;
}

/* MASK ISI CARD */
.card-game::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: linear-gradient(180deg, #7b0000, #2b0000);
    border-radius: 10px;
    z-index: 1;
}

/* SEMUA ISI CARD DI ATAS BORDER */
.card-game > * {
    position: relative;
    z-index: 2;
}

/* ANIMASI ROTASI */
@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* BUTTON MAIN */
.game-link {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.btn-game {
    background: #f5b301;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-game:hover {
    background: #ffcc00;
}

/* IMAGE */
.game-item-img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

/* RTP */
.percent {
    margin-top: 6px;
}

.percent-txt {
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

.percent-bar {
    width: 0%;
    height: 10px;
    border-radius: 20px;
    margin-top: 4px;
    transition: width 1s ease-in-out;
}

/* RTP COLORS */
.percent-bar.red {
    background: linear-gradient(90deg, #ff4d4d, #c80000);
}

.percent-bar.yellow {
    background: linear-gradient(90deg, #ffd000, #ff9f00);
}

.percent-bar.green {
    background: linear-gradient(90deg, #00ff99, #00cc66);
}

/* TITLE */
.card-title {
    display: block;
    text-align: center;
    margin: 6px 0;
    font-weight: bold;
}

/* JAM + POLA */
.jam {
    margin-top: 6px;
}

.jamBg {
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 6px;
}

.jamgacorRange {
    text-align: center;
    font-size: 13px;
}

.pola h5 {
    text-align: center;
    font-size: 13px;
    margin-bottom: 4px;
}

.pola p {
    font-size: 12px;
    text-align: center;
}

/* ==============================
   RESPONSIVE CSS
   ============================== */

/* Tablet (Layar hingga 992px) */
@media screen and (max-width: 992px) {
    .logo img {
        width: 180px;
        height: 45px;
    }
}

/* Mobile (Layar hingga 768px) */
@media screen and (max-width: 768px) {
    .logo img {
        width: 150px;
        height: 40px;
    }

    .auth-btn button {
        padding: 6px 14px;
        font-size: 14px;
        margin-left: 5px;
    }

    .slider img {
        max-height: 250px;
    }

    .provider ul {
        padding: 0 10px;
    }

    .provider li {
        font-size: 14px;
        margin: 5px 5px;
        padding: 5px 12px;
    }
}

/* Mobile Kecil (Layar hingga 576px) */
@media screen and (max-width: 576px) {
    /* Responsivitas lainnya di sini jika diperlukan */
}


/* ===================================== */
/* FULL RESPONSIVE GAME LIST & CARD */
/* ===================================== */

/* DESKTOP BESAR */
@media (min-width: 1400px) {
    .game-list {
        grid-template-columns: repeat(6, 1fr);
        padding: 30px 60px;
        gap: 24px;
    }
}

/* LAPTOP / DESKTOP */
@media (max-width: 1399px) {
    .game-list {
        grid-template-columns: repeat(5, 1fr);
        gap: 22px;
    }
}

/* TABLET LANDSCAPE */
@media (max-width: 1024px) {
    .game-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .card-game {
        padding: 9px;
    }
}

/* TABLET PORTRAIT */
@media (max-width: 900px) {
    .game-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* MOBILE (HP NORMAL) → 3 KOLOM */
@media (max-width: 768px) {
    .game-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .btn-game {
        font-size: 10px;
        padding: 4px 8px;
    }

    .percent-txt {
        font-size: 11px;
    }

    .card-title {
        font-size: 11px;
    }

    .jamgacorRange,
    .pola p {
        font-size: 10px;
    }

    .pola h5 {
        font-size: 11px;
    }
}

/* MOBILE KECIL */
@media (max-width: 576px) {
    .game-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .card-game {
        padding: 7px;
    }
}

/* MOBILE SANGAT KECIL */
@media (max-width: 420px) {
    .game-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .btn-game {
        font-size: 9px;
        padding: 3px 6px;
    }

    .card-title {
        font-size: 10px;
    }
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

/* TABLET */
@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
    }

    .header .logo img {
        width: 150px;
        height: 40px;
    }

    .header .auth-btn button {
        padding: 6px 14px;
        font-size: 14px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .header {
        padding: 8px 15px;
        flex-wrap: wrap;
        /* wrap jika terlalu sempit */
        justify-content: space-between;
    }

    .header .logo img {
        width: 120px;
        height: 35px;
    }

    .header .auth-btn {
        gap: 6px;
    }

    .header .auth-btn button {
        padding: 5px 10px;
        font-size: 13px;
    }
}

.footer-copy {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #ccc;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    border-top: 1px solid #222;
    z-index: 9999;
}

.footer-copy strong {
    color: #f5b301;
}

/* Supaya konten tidak ketutup footer */
body {
    padding-bottom: 45px;
    /* sesuaikan dengan tinggi footer */
}

/* MOBILE */
@media (max-width: 480px) {
    .footer-copy {
        font-size: 12px;
        padding: 8px 6px;
    }

    body {
        padding-bottom: 40px;
    }
}