#popup_modal.welcome-promo {
    padding: 0 !important;
}
#popup_modal.welcome-promo .modal-dialog {
    width: min(25rem, calc(100vw - 24px));
    max-width: none;
    min-width: 0;
    min-height: calc(100% - 24px);
    margin: 12px auto;
    display: flex;
    align-items: center;
}
#popup_modal.welcome-promo .modal-content {
    width: 100%;
    padding: 0;
    border: 1px solid #be9149;
    border-radius: 16px;
    background: linear-gradient(145deg, #481a21, #220e12);
    box-shadow: 0 18px 64px #100508aa;
    overflow: hidden;
}
#popup_modal.welcome-promo .modal-header {
    position: relative;
    padding: 0 56px 0 16px;
    min-height: 46px;
    border: 0;
}
#popup_modal.welcome-promo .modal-title {
    margin: 0;
    color: #f5d38b;
    text-align: left;
    font: 700 1rem/46px system-ui, sans-serif;
}
#popup_modal.welcome-promo .modal-title::before,
#popup_modal.welcome-promo .modal-footer { display: none; }
#popup_modal.welcome-promo .btn-close {
    position: absolute;
    inset: 0 0 auto auto;
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    opacity: 1;
    background: transparent;
    color: #ffedc5;
    font: 400 30px/1 system-ui, sans-serif;
}
#popup_modal.welcome-promo .btn-close span { color: inherit; }
#popup_modal.welcome-promo .modal-body,
#popup_modal.welcome-promo .modal-body p { margin: 0; padding: 0; }
#popup_modal.welcome-promo .promo-art {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 252px);
    max-height: calc(100dvh - 252px);
    object-fit: contain;
    background: #230e13;
}
#popup_modal.welcome-promo .promo-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
}
#popup_modal.welcome-promo .promo-actions a {
    grid-column: span 3;
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #a97e44;
    color: #ffe6b0;
    text-decoration: none;
    font: 650 .875rem/1.2 system-ui, sans-serif;
}
#popup_modal.welcome-promo .promo-actions a:nth-child(n+3):nth-child(-n+5) { grid-column: span 2; }
#popup_modal.welcome-promo .promo-actions a[data-panel-action] {
    background: #381b22;
    border-color: #80545b;
    color: #ffdc81;
}
#popup_modal.welcome-promo .promo-actions a[data-panel-action="login"] {
    background: linear-gradient(155deg, #9c3957, #6d213c);
    border-color: #cf738a;
    color: #fff6f2;
}
#popup_modal.welcome-promo .promo-actions a[data-panel-action="daftar"] {
    background: linear-gradient(155deg, #ffe6aa, #e2aa4e);
    border-color: #ffdf98;
    color: #34200f;
}
#popup_modal.welcome-promo .promo-actions a:not([data-panel-action="login"]):not([data-panel-action="daftar"]) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-color: #8a6a38;
}
@keyframes action-edge-orbit {
    from { transform: translate(-50%, -50%) rotate(0turn); }
    to { transform: translate(-50%, -50%) rotate(1turn); }
}
@supports (background: conic-gradient(red, blue)) {
    @media (prefers-reduced-motion: no-preference) {
        #popup_modal.welcome-promo .promo-actions a:not([data-panel-action="login"]):not([data-panel-action="daftar"])::before {
            content: "";
            position: absolute;
            z-index: -2;
            pointer-events: none;
            top: 50%;
            left: 50%;
            width: 160%;
            aspect-ratio: 1;
            background: conic-gradient(#796039 0deg 279deg, #e6b958 312deg, #ffedb2 332deg, #796039 360deg);
            animation: action-edge-orbit 4s linear infinite;
        }
        #popup_modal.welcome-promo .promo-actions a:not([data-panel-action="login"]):not([data-panel-action="daftar"])::after {
            content: "";
            position: absolute;
            z-index: -1;
            pointer-events: none;
            inset: 1px;
            border-radius: inherit;
            background: #381b22;
        }
    }
}
#popup_modal.welcome-promo :focus-visible { outline: 2px solid #fff1c8; outline-offset: -3px; }

@media (max-width: 767px) {
    .home-inner-container:has(> a > .home-progressive-jackpot) { margin-block: 10px 20px; }
    
    .home-inner-container > a:has(> .home-progressive-jackpot) { display: block; }
    .home-progressive-jackpot { padding: 3px; border-radius: 17px; }
    .home-progressive-jackpot :is(.outer-container, .inner-container) {
        min-width: 0;
        padding: 2px;
        border-radius: 14px;
    }
    .home-progressive-jackpot .border-container {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 7px;
        border-radius: 12px;
    }
    .home-progressive-jackpot .jackpot-play-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
    }
    .home-progressive-jackpot .jackpot-play-section img { display: block; width: 64px; }
    .home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
        font-size: 17px;
        white-space: nowrap;
    }
    .home-progressive-jackpot .jackpot-container {
        min-width: 0;
        padding: 3px;
        font-size: clamp(18px, 5vw, 28px);
        letter-spacing: .025em;
    }
    .home-progressive-jackpot .jackpot-inner-container { min-width: 0; padding: 2px; }
    .home-progressive-jackpot .jackpot-border-container {
        min-width: 0;
        align-items: baseline;
        gap: .35em;
        line-height: 1.2;
        padding: 5px;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
    .home-progressive-jackpot .jackpot-currency { margin: 0; font-size: .8em; }
}
