/**
 * Slot Home - Override styles untuk halaman slot index
 * Warna dinamis (slider accent) di-inject via :root di blade
 */

/* Carousel */
.slider-size {
    max-height: 500px;
    min-height: 130px;
}

/* Pemenang Terakhir & Deposit Terakhir */
.common-group-section .last-winner .gradient-bg {
    background: url(https://files.sitestatic.net/assets/imgs/kixplays_game_bg.png) no-repeat 0 0,
        linear-gradient(180deg, #352b07, #050401);
    background-position: 100% 0;
    background-size: contain;
    border-radius: 14px;
    padding: 8px;
    position: relative;
}

.common-group-section .last-winner .gradient-bg:after {
    background: linear-gradient(180deg, var(--slot-slider-accent, #bea64b), #000);
    border-radius: 14px;
    content: "";
    height: 100%;
    left: -1px;
    padding: 0 !important;
    position: absolute;
    top: -1px;
    width: calc(100% + 2px);
    z-index: -1;
}

.common-group-section .last-winner .lw-loop-content {
    height: 340px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
    padding: 0;
}

.common-group-section .last-winner .lw-loop-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transition: top 0.35s ease;
}

.common-group-section .last-winner .lw-loop-content ul li {
    background: url(https://files.sitestatic.net/assets/imgs/kixplays_game_bg.png) no-repeat 0 0,
        linear-gradient(180deg, #352b07, #050401);
    background-position: 100% 0;
    background-size: contain;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin: 0;
    position: relative;
}

.common-group-section .last-winner .lw-loop-content ul li:after {
    background: linear-gradient(180deg, var(--slot-slider-accent, #bea64b), #000);
    border-radius: 14px;
    content: "";
    height: 100%;
    left: -1px;
    padding: 0 !important;
    position: absolute;
    top: -1px;
    width: calc(100% + 2px);
    z-index: -1;
}

.common-group-section .last-winner .LW-div {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.common-group-section .last-winner .wd-item__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.common-group-section .last-winner .flex-space-btw {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.common-group-section .last-winner .last-winner-name .LW-font {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.common-group-section .last-winner .LW-btn {
    background: transparent;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none;
}

/* Gold sync dengan scroll-wrapper: border & nav underline ikut theme */
.scroll-wrapper[_home] .btn-box.active,
.scroll-wrapper[_home] .btn-box:active,
.sub-games .filter .btn.active {
    border-bottom-color: var(--slot-slider-accent-light, #cdbb71) !important;
    color: var(--slot-slider-accent-light, #cdbb71) !important;
}

/* Spacing Pemenang/Deposit */
.common-group-section .lgo-lw-wraper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.common-group-section .lgo-lw-wraper + .lgo-lw-wraper {
    margin-top: 8px !important;
}

.common-group-section .title-wrapper {
    margin: 6px 0 2px !important;
}

.common-group-section .last-winner .gradient-bg {
    padding: 2px 8px 6px !important;
}

/* Popup home */
.home-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.home-popup-overlay.hide {
    display: none;
}

.home-popup-box {
    position: relative;
    width: 312px;
    height: 432px;
    background: transparent;
    border: none;
    overflow: visible;
}

.home-popup-box img {
    width: 312px;
    height: 432px;
    object-fit: contain;
    display: block;
}

.home-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.home-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
}
