/* =============================================================
   KARTOOSH CASINO / GAMES PAGE
   pagehead, search+filter bar, chips, provider list, game grid
   palette: kartoosh skinning.js
   ============================================================= */

/* ---------- PAGE HEAD ---------- */
.kt-pagehead {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 4px 0 12px;
}
.kt-pagehead__title {
    margin: 0;
    color: var(--text, #f4f7fb);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.kt-pagehead__count { color: var(--muted, #9aa8b6); font-size: 12px; font-weight: 500; }

/* ---------- SEARCH + FILTER BAR ---------- */
.kt-casino-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.kt-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 220px;
    min-width: 180px;
    height: 36px;
    padding: 0 12px;
    background: #0a1730;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    transition: border-color 0.15s ease;
}
.kt-search:focus-within { border-color: var(--kt-gold); }
.kt-search svg { flex: 0 0 16px; width: 16px; height: 16px; fill: var(--muted, #9aa8b6); margin-right: 8px; }
.kt-search__input {
    flex: 1 1 auto;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    color: var(--text, #f4f7fb);
    font-size: 13px;
}
.kt-search__input::placeholder { color: var(--muted, #9aa8b6); }

/* ---------- SELECT ---------- */
.kt-select {
    position: relative;
    min-width: 168px;
    height: 36px;
    background: #0a1730;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}
.kt-select__value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 30px 0 12px;
    color: var(--text, #f4f7fb);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kt-select__caret {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
    fill: var(--kt-gold);
    transition: transform 0.18s ease;
}
.kt-select__caret.is-open { transform: translateY(-50%) rotate(180deg); }
.kt-select__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    background: #0c1a36;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    z-index: 40;
}
.kt-select.is-open .kt-select__menu { display: block; }
.kt-select__option {
    padding: 8px 12px;
    color: var(--text, #f4f7fb);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}
.kt-select__option:hover { background: #2e3b46; }
.kt-select__option.is-active { color: var(--kt-gold); }

/* ---------- FAVORITES BUTTON ---------- */
.kt-fav {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    background: #0a1730;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    color: var(--text, #f4f7fb);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.kt-fav svg { width: 15px; height: 15px; fill: var(--kt-gold); }
.kt-fav:hover { border-color: var(--kt-gold); }
.kt-fav.is-active { background: var(--kt-gold); border-color: var(--kt-gold); color: #1d1600; }
.kt-fav.is-active svg { fill: #1d1600; }

/* ---------- CATEGORY CHIPS ---------- */
.kt-chips {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.kt-chips::-webkit-scrollbar { display: none; }
.kt-chip {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    background: #0a1730;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: var(--text, #f4f7fb);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.kt-chip:hover { border-color: var(--kt-gold); }
.kt-chip.is-active { background: var(--kt-gold); border-color: var(--kt-gold); color: #1d1600; }

/* ---------- PROVIDER LIST ---------- */
.kt-provlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    background: #0a1730;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}
.kt-provlist.close { display: none; }
.kt-provlist.open { display: grid; }
.kt-provlist__item {
    padding: 10px 12px;
    background: #0c1a36;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text, #f4f7fb);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.kt-provlist__item:hover { border-color: var(--kt-gold); }
.kt-provlist__item.is-active { background: var(--kt-gold); border-color: var(--kt-gold); color: #1d1600; font-weight: 700; }

/* ---------- GAME GRID ---------- */
.kt-gamegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.kt-gtile {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: linear-gradient(180deg, #0d1a3c, #071430);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.kt-gtile:hover {
    transform: translateY(-3px);
    border-color: var(--kt-gold);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.kt-gtile__img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.kt-gtile__img > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.kt-gtile:hover .kt-gtile__img > img { transform: scale(1.05); }
.kt-gtile__img .game-tile__art { display: block; width: 100%; height: 100%; }

/* hover overlay: play + CTA + provider */
.kt-gtile__hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(8, 16, 14, 0.15), rgba(8, 16, 14, 0.82));
    opacity: 0;
    transition: opacity 0.18s ease;
}
.kt-gtile:hover .kt-gtile__hover { opacity: 1; }
.kt-gtile__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--kt-gold);
    border-radius: 50%;
    color: #1d1600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.kt-gtile__play svg { width: 20px; height: 20px; fill: currentColor; }
.kt-gtile__cta {
    color: var(--kt-gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.kt-gtile__prov { color: rgba(244, 247, 251, 0.75); font-size: 11px; font-weight: 500; }

/* footer: name + heart */
.kt-gtile__foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px 8px;
}
.kt-gtile__name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text, #f4f7fb);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.kt-gtile__fav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.kt-gtile__fav svg { width: 14px; height: 14px; fill: rgba(244, 247, 251, 0.4); transition: fill 0.14s ease; }
.kt-gtile__fav:hover svg { fill: var(--kt-gold); }
.kt-gtile__fav.is-active svg { fill: var(--kt-gold); }

/* ---------- EMPTY ---------- */
.kt-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--muted, #9aa8b6);
}
.kt-empty p { margin: 0 0 10px; font-size: 14px; }
.kt-empty a { color: var(--kt-gold); font-size: 13px; font-weight: 700; text-decoration: none; }
.kt-empty a:hover { text-decoration: underline; }

/* ---------- MOBILE-ONLY ACTIONS ---------- */
.kt-mobileonly { display: none; }
.kt-fav--wide { justify-content: center; width: 100%; }

/* games/home has no category strip: an empty chips element collapses */
.kt-chips--empty { display: none !important; }

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 820px) {
    .kt-mobileonly { display: flex; gap: 6px; margin-bottom: 12px; }
    .kt-mobileonly .kt-fav { flex: 1 1 50%; min-width: 0; }
    .kt-pagehead__title { font-size: 18px; }
    .kt-casino-bar { gap: 6px; }
    .kt-search { flex: 1 1 100%; }
    .kt-select { flex: 1 1 calc(50% - 3px); min-width: 0; }
    .kt-fav { flex: 1 1 100%; justify-content: center; }
    .kt-gamegrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media screen and (max-width: 480px) {
    .kt-gamegrid { grid-template-columns: repeat(2, 1fr); }
    .kt-provlist { grid-template-columns: 1fr; }
}

/* =============================================================
   MOBILE LOBBY  (<=1023px)
   Rebuild of /games.php for phones, measured against the real
   m.kartoosh.bet/fr/casino/slots at 390x844:

     hero slider   390x188 @ y117   (full bleed, fraction pager)
     Tendance      390x134 @ y329   (head 20 + gap 8 + rail 106)
     chips strip   390x48  @ y479   (32 pills, 8 gap, 8 pad)
     filter row    390x92  @ y531   (40 + 4 gap + 40 + 8 bottom pad)
     lobby rows    84 / 134 / 92 / 293 / 162 / 266 / 134 / 134, 24 gap

   The same class names (kt-gtile, kt-chip, kt-provlist, kt-empty)
   are reused everywhere, so assets/js/casino.js (search, category
   chips, provider filter, favourites) is untouched on both views.
   EVERY rule of this block lives inside a media query: nothing here
   can move a pixel at 1024px and up.
   ============================================================= */

/* the mobile lobby markup can never surface on a desktop viewport */
@media screen and (min-width: 1024px) {
    .kt-monly { display: none !important; }
}

@media screen and (max-width: 1023px) {
    /* content clears the fixed 64px header + 48px nav strip, and the
       fixed 72px bottom tab bar never covers the last row */
    body.page-casino .kt-page {
        padding-top: 112px;
        padding-bottom: 88px;
    }

    .kt-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* desktop-only furniture is replaced by the mobile lobby chrome */
    .kt-pagehead,
    .kt-casino-bar,
    .kt-mobileonly,
    .kt-gamegrid { display: none; }

    /* ---------- ROW ORDER (real mobile stack) ---------- */
    .kt-mhero        { order: 1; }
    .kt-mrow         { order: 6; }
    .kt-chips        { order: 3; }
    .kt-mfilter      { order: 4; }
    .kt-provlist     { order: 5; }
    .kt-empty        { order: 7; }
    /* the Tendance rail sits ABOVE the chips strip, hence declared after */
    .kt-mrow--trend  { order: 2; }

    /* ---------- HERO SLIDER : 188, full bleed, fraction pager ---------- */
    .kt-mhero {
        position: relative;
        height: 188px;
        margin: 5px 0 0;
        overflow: hidden;
        background: #0f1b24;
    }
    .kt-mhero__track { position: absolute; inset: 0; }
    .kt-mhero__slide {
        position: absolute;
        inset: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease;
    }
    .kt-mhero__slide.is-active { opacity: 1; visibility: visible; }
    .kt-mhero__slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .kt-mhero__count {
        position: absolute;
        right: 6px;
        bottom: 6px;
        padding: 4px 6px;
        border-radius: 4px;
        background: rgba(248, 197, 36, 0.7);
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
        font-weight: 400;
    }

    /* ---------- shared row : 134 = head 20 + gap 8 + rail 106 ---------- */
    .kt-mrow { margin-top: 24px; }
    .kt-mrow__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        height: 20px;
        margin-bottom: 8px;
        padding: 0 8px;
    }
    .kt-mrow__head h2 {
        min-width: 0;
        margin: 0;
        color: rgba(255, 255, 255, 0.9);
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kt-mrow__more {
        flex: 0 0 auto;
        color: var(--kt-gold, #f8c524);
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }
    .kt-mrail {
        display: flex;
        gap: 8px;
        height: 106px;
        padding: 0 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .kt-mrail::-webkit-scrollbar { display: none; }

    /* game tile inside a rail : 150x106, radius 8, no chrome */
    .kt-mrail > .kt-gtile {
        position: relative;
        flex: 0 0 150px;
        width: 150px;
        height: 106px;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.12);
        scroll-snap-align: start;
    }
    .kt-mrail > .kt-gtile:hover {
        transform: none;
        border-color: transparent;
        box-shadow: none;
    }
    .kt-mrail > .kt-gtile .kt-gtile__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border-radius: 8px;
    }
    .kt-mrail > .kt-gtile .kt-gtile__foot { display: none; }
    .kt-mrail > .kt-gtile .kt-gtile__fav {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(0, 2, 5, 0.45);
    }
    .kt-mrail > .kt-gtile .kt-gtile__fav svg {
        width: 13px;
        height: 13px;
        fill: rgba(255, 255, 255, 0.85);
    }
    .kt-mrail > .kt-gtile .kt-gtile__fav.is-active svg { fill: var(--kt-gold, #f8c524); }

    /* a row whose tiles are all filtered out disappears (casino.js
       toggles inline `display:none` on every .kt-gtile) */
    .kt-mrow--games:not(:has(.kt-gtile:not([style*="display: none"]))) { display: none; }

    /* ---------- FOURNISSEURS : 84 = head 20 + gap 8 + rail 56 ---------- */
    .kt-mrail--prov { height: 56px; }
    .kt-mrail--prov > a {
        flex: 0 0 116px;
        width: 116px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        scroll-snap-align: start;
    }
    .kt-mrail--prov > a.is-active {
        background: var(--kt-gold, #f8c524);
        color: #1d1600;
    }

    /* ---------- TOP DES VAINQUEURS : 92 = head 24 + gap 8 + line 60 ------ */
    .kt-mrow--winners .kt-mrow__head { height: 24px; }
    .kt-mrail--win { height: 60px; }
    .kt-winner {
        flex: 0 0 168px;
        width: 168px;
        height: 60px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
        scroll-snap-align: start;
    }
    .kt-winner__img {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 6px;
        overflow: hidden;
    }
    .kt-winner__img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .kt-winner__meta {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .kt-winner__user {
        color: var(--text, #f4f7fb);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kt-winner__amount {
        color: var(--kt-gold, #f8c524);
        font-size: 11px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    /* ---------- REVOIR LES VICTOIRES : 293, two stacked tile rows ------- */
    .kt-mrow--recent .kt-mrail {
        flex-wrap: wrap;
        align-content: flex-start;
        height: 265px;
        overflow-x: hidden;
    }
    .kt-mrow--recent .kt-mrail > .kt-gtile { height: 128px; }

    /* ---------- MEDIA ROW : 162, no title ---------- */
    .kt-mrail--media { height: 162px; }
    .kt-mrail--media > a {
        flex: 0 0 260px;
        width: 260px;
        height: 162px;
        display: block;
        border-radius: 8px;
        overflow: hidden;
        scroll-snap-align: start;
    }
    .kt-mrail--media > a img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ---------- TOURNOIS : 266 = head 20 + gap 8 + rail 238 ---------- */
    .kt-mrail--tour { height: 238px; }
    .kt-tour {
        flex: 0 0 200px;
        width: 200px;
        height: 238px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        text-decoration: none;
        scroll-snap-align: start;
    }
    .kt-tour__img {
        display: block;
        width: 100%;
        height: 96px;
        border-radius: 8px;
        overflow: hidden;
    }
    .kt-tour__img img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .kt-tour__title {
        color: rgba(255, 255, 255, 0.9);
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kt-tour__game {
        color: rgba(255, 255, 255, 0.56);
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .kt-tour__prize {
        color: var(--kt-gold, #f8c524);
        font-size: 13px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .kt-tour__meta {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .kt-tour__fee {
        padding: 2px 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.8);
        font-size: 10px;
        font-weight: 600;
    }
    .kt-tour__time {
        color: rgba(255, 255, 255, 0.56);
        font-size: 11px;
        font-variant-numeric: tabular-nums;
    }
    .kt-tour__players {
        color: rgba(255, 255, 255, 0.56);
        font-size: 11px;
    }
    .kt-tour__cta {
        margin-top: auto;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: var(--kt-gold, #f8c524);
        color: #1d1600;
        font-size: 12px;
        font-weight: 700;
    }

    /* ---------- CATEGORY CHIPS : 48px strip, 32px pills ---------- */
    .kt-chips {
        height: 48px;
        margin: 16px 0 0;
        padding: 8px;
        gap: 8px;
        align-items: center;
    }
    .kt-chip {
        height: 32px;
        padding: 0 12px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.8);
        font-size: 12.5px;
        font-weight: 500;
    }
    .kt-chip.is-active {
        background: #fff;
        color: rgba(0, 2, 5, 0.9);
    }

    /* ---------- FILTER ROW : 92 = 40 + 4 + 40 + 8 ---------- */
    .kt-mfilter {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
        height: 92px;
        margin-top: 4px;
        padding: 0 8px 8px;
    }
    .kt-mfilter > * {
        min-width: 0;
        height: 40px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 16px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.8);
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        cursor: pointer;
    }
    .kt-mfilter__search svg {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        fill: rgba(255, 255, 255, 0.56);
    }
    .kt-mfilter__search input {
        flex: 1 1 auto;
        min-width: 0;
        background: none;
        border: 0;
        outline: none;
        color: rgba(255, 255, 255, 0.8);
        font-family: inherit;
        font-size: 14px;
        font-weight: 500;
    }
    .kt-mfilter__search input::placeholder { color: rgba(255, 255, 255, 0.56); }
    .kt-mfilter__rand {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 0 8px;
    }

    /* ---------- PROVIDER PANEL + MOBILE FAVOURITES TOGGLE ---------- */
    .kt-provlist {
        grid-template-columns: 1fr;
        max-height: 60vh;
        margin-top: 8px;
        padding: 8px;
        border-radius: 12px;
        overflow-y: auto;
    }
    .kt-provlist__fav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        height: 40px;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.8);
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .kt-provlist__fav svg {
        width: 15px;
        height: 15px;
        fill: rgba(255, 255, 255, 0.8);
    }
    .kt-provlist__fav.is-active {
        background: var(--kt-gold, #f8c524);
        color: #1d1600;
    }
    .kt-provlist__fav.is-active svg { fill: #1d1600; }
    .kt-provlist__item { border-radius: 8px; }

    /* ---------- LIVE CASINO (/live-casino/home) + GAMES HOME (/games/home) +
       TV GAMES (/tv-games/home) --
       These use a flat 2-column grid instead of the curated lobby rails.
       live : nav 92 @321 (chips 48 + filters 40)  grid 2x183x129 @437
       games: nav 40 @329                           grid 2x183x129 @393
       tv   : no slider, nav 40 @136                grid 2x183x129 @200
       Measured on m.kartoosh.bet/fr/live-casino/home, /games/home and
       /tv-games/home. */
    .kt-mode-live .kt-mfilter--slim,
    .kt-mode-games .kt-mfilter--slim,
    .kt-mode-tv .kt-mfilter--slim {
        height: 40px;
        margin-top: 4px;
        padding: 0 8px;
    }
    .kt-mode-games .kt-mfilter--slim { margin-top: 24px; }

    /* tv-games drops the carousel, so the filter row becomes the first
       block and starts 24px below the fixed header (y136). */
    .kt-mode-tv { padding-top: 24px; }
    .kt-mode-tv .kt-mfilter--slim { margin-top: 0; }

    .kt-mode-live .kt-gamegrid,
    .kt-mode-games .kt-gamegrid,
    .kt-mode-tv .kt-gamegrid {
        order: 6;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 24px;
        padding: 0 8px;
    }
    .kt-mode-live .kt-gtile,
    .kt-mode-games .kt-gtile,
    .kt-mode-tv .kt-gtile {
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
    }
    .kt-mode-live .kt-gtile__hover,
    .kt-mode-games .kt-gtile__hover,
    .kt-mode-live .kt-gtile__foot,
    .kt-mode-games .kt-gtile__foot,
    .kt-mode-tv .kt-gtile__hover,
    .kt-mode-tv .kt-gtile__foot { display: none; }
    .kt-mode-live .kt-gtile__img,
    .kt-mode-games .kt-gtile__img,
    .kt-mode-tv .kt-gtile__img {
        aspect-ratio: auto;
        height: 129px;
    }
}
