
:root {
    /* Typography Scales */
    --smaller-font: 0.7rem;
    --small-font: 0.87rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    
    /* Red-Orange-Maroon Color Palette */
    --bg-color: #1a0a0a;
    --text-first: #ffe8e8;
    --text-second: #fff0f0;
    
    /* Primary Red-Maroon Shades */
    --first-color: #4d1a1a;
    --second-color: #2e0d0d;
    --third-color: #6b2d2d;
    --fourth-color: #8f4a4a;
    --fifth-color: #a05c5c;
    --sixth-color: #0a0a0a;
    
    /* Gradient Colors */
    --g1: #4d1a1a;
    --g2: #a05c5c;
    
    /* Accent */
    --marquee: #6b2d2d;
    --accent-orange: #ff6b35;
    --accent-fire: #ff4500;
    --accent-dark: #3d0d0d;
    --accent-maroon: #800020;
}

body {
    background: var(--bg-color);
    color: var(--text-first);
}

/* === LOGO === */
.logo img {
    width: 19rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.9rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(46, 13, 13, 0.5));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

/* === RTP CARD === */
.rtp-card {
    background: linear-gradient(180deg, var(--second-color) 0%, var(--third-color) 100%);
    padding: 0.7rem;
    text-align: center;
    width: 24rem;
    max-width: 100%;
    height: 100%;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
    border: 1px solid var(--first-color);
    box-shadow: 0 4px 12px rgba(46, 13, 13, 0.6);
    transition: all 0.3s ease;
}

.rtp-card:hover {
    transform: translateY(-3px);
    border-color: var(--fourth-color);
}

.rtp-card-img {
    max-width: 100%;
    width: 29rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    border: 1px solid var(--first-color);
}

/* === IMAGE CONTAINER === */
.place-img-rtp {
    width: 100%;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-items: center;
    border-radius: 6px;
    background: var(--second-color);
    box-shadow: inset 0 0 15px rgba(46, 13, 13, 0.8);
    border: 1px solid var(--first-color);
    transition: all 0.3s ease;
}

.place-img-rtp:hover {
    cursor: pointer;
    border-color: var(--accent-orange);
    box-shadow: inset 0 0 20px rgba(107, 45, 45, 0.5);
}

/* === PLAY BUTTON === */
.btn-play {
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent-orange);
    background: linear-gradient(135deg, var(--first-color) 0%, var(--fourth-color) 100%);
    color: var(--text-first);
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 13, 13, 0.4);
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--fourth-color) 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* === PATTERN WRAPPER === */
.pola-wrapper {
    background: var(--second-color);
    padding: 0.9rem;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    position: relative;
    border: 1px solid var(--first-color);
    box-shadow: 0 2px 8px rgba(46, 13, 13, 0.5);
}

.pola-wrapper h4 {
    font-size: 0.95rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.pola-wrapper h5 {
    font-size: 0.75rem;
    color: var(--text-second);
}

.pola-wrapper h4 i,
.pola-wrapper h5 i {
    color: var(--fourth-color);
}

/* === TIME WRAPPER === */
.jam-wrapper {
    background: var(--accent-dark);
    border-radius: 50%;
    padding: 0.6rem;
    border: 2px solid var(--first-color);
    box-shadow: 0 2px 6px rgba(46, 13, 13, 0.4);
}

/* === TABLE === */
.table-pola {
    max-width: 100%;
    width: 100%;
}

.table-pola tr td {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-second);
    padding: 0.3rem;
}

/* === BADGES === */
.top-game,
.hot-game {
    background-repeat: no-repeat !important;
    position: absolute;
    width: 3rem;
    top: 0rem;
    z-index: 2;
    height: 2.9rem;
    left: 0.4rem;
    opacity: 0.95;
}

.top-game {
    background: url('../images/top.gif');
}

.hot-game {
    background: url('../images/hot.gif');
}

/* === PROVIDER ICONS === */
.icon-providers {
    position: absolute;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 2rem;
    top: 0.5rem;
    right: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(46, 13, 13, 0.4));
}

.icon-providers img {
    width: 1.7rem;
}

/* === SLIDER === */
.slider,
.swiper {
    width: 100%;
    max-width: 100%;
}

.slider-img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    border: 1px solid var(--first-color);
}

.slider-wrapper {
    background: linear-gradient(180deg, var(--second-color) 0%, var(--accent-dark) 100%);
    height: 100%;
    border-bottom: 1px solid var(--accent-orange);
    padding: 0.5rem;
}

/* === RUNNING TEXT === */
.running-text {
    background: var(--marquee);
    border-top: 1px solid var(--accent-orange);
    border-bottom: 1px solid var(--accent-orange);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--text-first);
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
}

/* === PROVIDER SECTION === */
.icon-prov {
    background: linear-gradient(180deg, var(--second-color) 0%, var(--first-color) 100%);
    display: flex;
    position: relative;
    overflow: auto !important;
    padding: 0.5rem 0;
    border-top: 1px solid var(--third-color);
    border-bottom: 1px solid var(--third-color);
}

.icon-card-bg {
    cursor: pointer;
    padding: 0.5rem !important;
    color: var(--text-second);
    background: var(--accent-dark);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.icon-card-bg:hover {
    border-color: var(--accent-orange);
    background: var(--first-color);
    transform: translateY(-2px);
}

.icon-card-bg p {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-first);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.img-prov {
    display: block;
    margin-right: auto;
    margin-left: auto;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.icon-card-bg:hover .img-prov {
    filter: grayscale(0%);
}

.item-prov {
    padding: 0 0.5rem;
}

/* === LOGIN BUTTON === */
.btn-login {
    background: linear-gradient(135deg, var(--first-color) 0%, var(--fourth-color) 100%);
    padding: 0.7rem;
    color: var(--text-first);
    border: 2px solid var(--fourth-color);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--fourth-color) 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* === REGISTER BUTTON === */
.btn-daftar {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-fire) 100%);
    padding: 0.7rem;
    color: #ffffff;
    border: 2px solid var(--accent-orange);
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-daftar:hover {
    background: linear-gradient(135deg, var(--accent-fire) 0%, var(--accent-maroon) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.5);
}

/* === BOTTOM NAVIGATION === */
.nav-bottom {
    position: fixed;
    bottom: 0;
    display: flex;
    z-index: 11;
    overflow: hidden;
    width: 100%;
    border-top: 2px solid var(--accent-orange);
    background: var(--second-color);
    box-shadow: 0 -4px 16px rgba(46, 13, 13, 0.6);
}

.item-nav-bottom {
    background: linear-gradient(180deg, var(--accent-dark) 0%, var(--first-color) 100%);
    color: var(--text-first);
    font-weight: 600;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.75rem 0.3rem;
    flex: 1;
    border-right: 1px solid var(--third-color);
    transition: all 0.3s ease;
}

.item-nav-bottom:last-child {
    border-right: none;
}

.item-nav-bottom:hover {
    background: linear-gradient(180deg, var(--first-color) 0%, var(--fourth-color) 100%);
    cursor: pointer;
    color: var(--text-second);
}

.item-nav-bottom p {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
}

/* === SCROLL TO TOP === */
.btn-up {
    display: none;
    position: fixed;
    bottom: 4.5rem;
    right: 1rem;
    z-index: 99;
    font-size: 1.1rem;
    background: var(--fourth-color);
    color: var(--text-first);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 2px 8px rgba(46, 13, 13, 0.5);
    transition: all 0.3s ease;
}

.btn-up:hover {
    background: var(--accent-orange);
    color: #ffffff;
    transform: translateY(-3px);
}

/* === PROGRESS BARS === */
.percent {
    height: 22px;
    margin-top: 10px !important;
    display: flex;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: var(--second-color);
    border: 1px solid var(--first-color);
    position: relative;
    z-index: 1;
    border-radius: 6px;
    width: 100%;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.percent p {
    z-index: 15;
    position: absolute;
    text-align: center;
    width: 100%;
    font-size: 13px;
    top: 50%;
    font-weight: 600;
    transform: translateY(-50%);
    color: var(--text-first);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.percent-bar {
    background-image: linear-gradient(
        45deg,
        rgba(107, 45, 45, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(107, 45, 45, 0.15) 50%,
        rgba(107, 45, 45, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--text-first);
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    -webkit-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 2s linear infinite;
    z-index: 10;
    font-weight: 500;
}

/* Progress States */
.bad {
    background-color: #8b0000;
}

.good {
    background-color: #d2691e;
}

.great {
    background-color: var(--accent-orange);
}

/* === CONTENT HOME === */
.content-home {
    padding: 1.5rem;
    margin-bottom: 5rem;
    background: var(--bg-color);
    color: var(--text-first);
}

/* === RESPONSIVE CONTAINER === */
@media (min-width: 1200px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1100px !important;
    }
}

/* === ANIMATIONS === */
@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* === ACCESSIBILITY === */
*:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* === SMOOTH SCROLLING === */
html {
    scroll-behavior: smooth;
}

/* === SELECTION STYLING === */
::selection {
    background: var(--accent-maroon);
    color: var(--text-first);
}