/* One layout for every slot provider. Reference mobile capture: 681px viewport. */
.slot-game-list { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 4.15% calc(100px + env(safe-area-inset-bottom,0px)); }
.slot-game-list .slot-provider-heading { font-size: clamp(15px,4.2vw,24px); font-weight: 400; color: #fff; margin: 10px 0; }
.slot-game-list .slot-provider-strip { display: flex; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 5px; margin-bottom: 0; }
.slot-game-list .slot-provider-strip a { display: flex; flex: 0 0 29%; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; min-height: 75px; padding: 7px; color: #fff; background: var(--theme-surface,#174c3c); text-decoration: none; border-bottom: 2px solid transparent; }
.slot-game-list .slot-provider-strip a[aria-current="page"] { background: var(--theme-header,#071d19); border-color: var(--theme-accent,#b2f46c); }
.slot-game-list .slot-provider-strip img { display: block; width: 100%; height: clamp(35px,10vw,65px); object-fit: contain; }
.slot-game-list .slot-provider-strip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.slot-game-list .filter { margin: 0 0 22px !important; padding: 3px 0 0; }
.slot-game-list .filter .btn { font-size: clamp(14px,4.2vw,23px); font-weight: 400; }
.slot-game-list .games { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,3.8vw,24px) 3.1%; margin: 0 !important; padding: 0 !important; }
.slot-game-list .games::before,.slot-game-list .games::after { display: none !important; }
.slot-game-list .games .game-box { float: none !important; display: block; width: 100% !important; max-width: 100%; min-width: 0; margin: 0 !important; padding: 0 !important; text-decoration: none; }
.slot-game-list .games .game-box .content-wrapper { display: block; position: relative; width: 100%; aspect-ratio: 195 / 260; height: auto !important; overflow: hidden; border-radius: 5px; background: var(--theme-surface,#174c3c); padding: 0 !important; margin: 0; }
.slot-game-list .games .game-box .content-wrapper img { display: block; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: cover; border: 0; border-radius: 0; }
.slot-game-list .games .game-box .content-wrapper .slot-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 10px; font-size: 12px; color: #fff; background: var(--theme-surface,#174c3c); }
.slot-game-list .games .game-box h5 { display: block; margin: 7px 0 0 !important; padding: 0 !important; width: 100%; min-width: 0; color: #dcf0e4 !important; font-size: clamp(10px,3.05vw,19px) !important; font-weight: 400 !important; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.slot-game-list .slot-rtp { position: absolute; z-index: 1; top: 0; right: 0; display: block; max-width: 100%; border-radius: 0 0 0 16px; padding: clamp(8px,2.7vw,16px) clamp(5px,1.6vw,10px); background: #080808c9; color: #eaff16; font-size: clamp(11px,3.6vw,23px); font-weight: 400; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.slot-game-list .slot-rtp[data-available="false"] { color: #eee; }
.slot-game-list .slot-games-empty { grid-column: 1 / -1; }
.slot-game-list .slot-games-empty[hidden] { display: none !important; }
.slot-game-list .mobile-border { display: none; }
/* Provider landing uses the same image proportions, regardless of provider artwork. */
.jiwa-gamelist .jiwa-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 3.1%; row-gap: 18px; }
.jiwa-gamelist .jiwa-card,.jiwa-gamelist .jiwa-card.jiwa-featured { aspect-ratio: 195 / 260; border-radius: 5px; }
.jiwa-gamelist .jiwa-card img { object-fit: cover; }
@media (min-width:768px) {
 .slot-game-list { padding-inline: 20px; }
 .slot-game-list .games { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px 18px; }
 .slot-game-list .games .game-box h5 { font-size: 14px !important; }
 .slot-game-list .slot-rtp { font-size: 17px; padding: 10px 8px; }
 .slot-game-list .slot-provider-strip a { flex-basis: 140px; }
 .jiwa-gamelist .jiwa-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 18px; }
 .jiwa-gamelist .jiwa-card,.jiwa-gamelist .jiwa-card.jiwa-featured { aspect-ratio: 195 / 260; }
}

.slot-game-list .slot-filter-bar { display: flex; align-items: center; gap: 2px; min-width: 0; flex-wrap: wrap; }
.slot-game-list .slot-filter-bar .btn { flex: 1 1 18%; padding: 12px 3px; color: #fff; background: transparent; border: 0; border-radius: 0; border-bottom: 2px solid transparent; outline-offset: -2px; }
.slot-game-list .slot-filter-bar .btn.active { color: var(--theme-accent,#b2f46c); border-bottom-color: var(--theme-accent,#b2f46c); box-shadow: none; }
.slot-game-list .slot-search { flex: 1 1 28%; margin: 0; min-width: 70px; max-width: 180px; }
.slot-game-list .slot-search input { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--theme-accent,#b2f46c); border-radius: 4px; color: #fff; background: var(--theme-header,#071d19); font-size: 12px; }
.slot-game-list .slot-search input::placeholder { color: #dcf0e4; opacity: 1; }

/* ── Slot provider grid (navbar.php) ── */
.slot-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 14px 4%;
    width: 100%;
    box-sizing: border-box;
}
.slot-nav-card {
    display: flex;
    flex-direction: column;
    background: var(--theme-surface,#174c3c);
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--theme-accent,#b2f46c);
    text-decoration: none;
    color: #fff;
    transition: transform .12s;
}
.slot-nav-card:active { transform: scale(.97); }
.slot-nav-img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 201 / 160;
    overflow: hidden;
    background: #174c3c;
}
/* EVENT badge */
.slot-nav-img::after {
    content: 'EVENT';
    position: absolute;
    top: 8px; right: 8px;
    background: #c8f52d;
    color: #061410;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px #0007;
    pointer-events: none;
}
.slot-nav-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slot-nav-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    font-size: 12px;
    color: #fff;
    text-align: center;
}
.slot-nav-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 14px;
}
.slot-nav-name {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1.25;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.slot-nav-btn {
    display: block;
    width: 90%;
    text-align: center;
    background: #c8f52d;
    color: #061410;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px #06141080;
    letter-spacing: .3px;
}
@media (min-width: 768px) {
    .slot-nav-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; padding: 18px 20px; }
    .slot-nav-name { font-size: 15px; }
    .slot-nav-btn  { font-size: 14px; }
}
