.kj-jackpots {
    margin: 30px 0;
    font-family: inherit;
    /* background: linear-gradient(135deg, #071847, #111f5f); */ /* commented out gradient */
    color: #ffffff;
    border-radius: 18px;
    padding: 24px 24px 28px;
    box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.35 );
}

/* HEADER */

.kj-jackpots-header {
    margin-bottom: 20px;
}
.kj-jackpot-name,
.kj-jackpot-name a {
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #fff !important;
    min-height: 50px;
}
.kj-jackpot-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kj-jackpot-game-id,
.kj-jackpot-vendor {
    font-weight: 600;
    font-size: 14px;
    color: #c7972f;
    margin: 0;
}
.kj-jackpot-play-btn {
    display: block;
    width: fit-content;
    padding: 5px 20px;
    margin: 10px auto;
    margin-top: 0;
    text-align: center;
    background: #c7972f;
    border-radius: 15px;
    line-height: 1.5;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.kj-jackpot-pill .kj-jackpot-pill-value {
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    background: #c7972f;
    border-radius: 15px;
    line-height: 2;
    margin: 20px 0;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.kj-jackpot-play-btn::before,
.kj-jackpot-pill .kj-jackpot-pill-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(239, 227, 204, 0.4) 0%, rgba(255, 255, 255, 0) 80%);
    transform: skewX(-25deg);
    animation: glow-slide 4s infinite;
    animation-delay: var(--stagger, 0s);
    z-index: 2;
}

.kj-jackpots-header-inner {
    max-width: 900px;
}

.kj-jackpots-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    opacity: 0.8;
    margin: 0 0 6px;
}

.kj-jackpots-title {
    font-size: 28px;
    margin: 0 0 8px;
}

.kj-jackpots-lede {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

.kj-jackpots-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
    color: #000;
}

.kj-jackpots-button--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kj-jackpots-button {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    background: #ff4cc3;
    color: #1b0c38;
    box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.35 );
    margin-right: 20px;
}

.kj-jackpots-timestamp {
    font-size: 12px;
    opacity: 0.8;
    color: #f7e0b3;
}

.kj-jackpots-timestamp--muted {
    opacity: 0.6;
}

/* GRID */

.kj-jackpots-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Custom columns (jackpots + games) */
.kj-jackpots-grid.kj-cols-5 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.kj-jackpots-grid.kj-cols-4 {
    /* slightly wider cards => usually 4 per row on desktop */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.kj-jackpots-grid.kj-cols-3 {
    /* even wider => about 3 per row */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}


/* CARD */

.kj-jackpot-card {
    background: #a2322a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.45 );
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    padding: 15px;
}

.kj-jackpot-card:hover {
    transform: translateY( -4px );
    box-shadow: 0 10px 24px rgba( 0, 0, 0, 0.6 );
}

/* IMAGE + PILL */

.kj-jackpot-thumb-wrapper {
    position: relative;
    overflow: hidden;
}

.kj-jackpot-thumb {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 25px;
}

/* commented out - pill positioning
.kj-jackpot-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6p
} */

.kj-games-filters {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

.kj-games-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-weight: 600;
}

.kj-games-filters select {
    border-radius: 999px;
    border: none;
    padding: 4px 12px;
    font-size: 12px;
    background: #fbe1c5;
}

.kj-games-grid--loading {
    opacity: 0.5;
    pointer-events: none;
}



@media screen and (max-width: 768px)    {
    .kj-jackpot-play-btn {
        margin: 10px auto;
        margin-top: 0;
    }
    .kj-jackpot-name, .kj-jackpot-name a {
        min-height: auto;
        margin-bottom: 20px;
    }
    .kj-jackpot-thumb {
        margin-bottom: 15px;
    }
 }