/* =========================================================
   JOKER1X2 MOBILE  — exact-match mobile look
   White mobile header (burger + wordmark + login/deposit),
   lime pill nav (nav-menu-mobile), banner slider,
   home-sport-menu (gray header + image tiles + lime name bars),
   main-page-mobile__casino cards, footer-mobile.
   Loaded last (after joker1x2.css).
   ========================================================= */

@media (min-width: 1024px) {
    .header-block-mobile,
    .nav-menu-mobile,
    .footer-mobile,
    .home-sport-menu,
    .main-page-mobile__casino { display: none !important; }
}

@media (max-width: 1023px) {
    .topbar { display: none !important; }

    /* mobile home page is white edge-to-edge */
    body.home-page,
    body.home-page .app-content { background: #ffffff !important; }
    body.home-page .page-content-inner { padding: 0 !important; }
    body.home-page .main-content {
        margin-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }
    body.home-page .chat-fab { display: none !important; }
    body.home-page .site-footer { display: none !important; }

    /* ===== lettobet365 app shell (mobile home) =====
       The page is one locked screen: the header stays pinned,
       the content area scrolls inside, and the footer is pinned
       to the bottom via margin-top:auto (exact ltb structure). */
    body.home-page .main-content {
        display: flex;
        flex-direction: column;
    }
    body.home-page .page-content-inner,
    body.home-page .home,
    body.home-page .home-main {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    body.home-page .footer-mobile {
        margin-top: auto;
        padding-bottom: 10px;
        background: #ffffff;
    }

    /* desktop lime bar never shows on mobile now (pill nav replaces it) */
    .main-nav { display: none !important; }
}

/* =========================================================
   1. MOBILE HEADER  (white; burger + wordmark + user/deposit)
   ========================================================= */
.header-block-mobile {
    display: none;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (max-width: 1023px) {
    .header-block-mobile { display: block; }
}

.header-block-mobile__top {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    box-sizing: border-box;
    padding: 0 14px;
}

.header-block-mobile__burger {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #67cc06;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.header-block-mobile__burger span {
    display: block;
    width: 18px;
    height: 2.5px;
    border-radius: 2px;
    background: #ffffff;
}

.header-block-mobile__logo-link {
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.jbr-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 23px;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}
.jbr-wordmark__brand {
    color: #14181f;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}
.jbr-wordmark__num {
    color: #20c012;
}
.jbr-wordmark__arrow {
    display: inline-flex;
    align-items: baseline;
    margin-left: 1px;
    align-self: center;
}
.jbr-wordmark__arrow svg {
    display: block;
}

.header-block-mobile__login {
    flex: 0 0 auto;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #079c20;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.header-block-mobile__login svg {
    width: 24px;
    height: 24px;
}

/* balance chip (logged-in users) */
.header-block-mobile__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(7, 156, 32, 0.10);
    color: #079c20;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* "Se connecter" / "Dépôt" button row */
.header-block-mobile__down {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 51px;
    box-sizing: border-box;
    padding: 0 14px;
}
.header-block-mobile__buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-block-mobile .auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 34px;
    border-radius: 6px;
    background: #67cc06;
    color: #ffffff;
    border: none;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    width: max-content;
    -webkit-tap-highlight-color: transparent;
}
.header-block-mobile .auth-button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.header-block-mobile .auth-button:active {
    background: #55a804;
}

/* =========================================================
   2. LIME PILL NAV  (nav-menu-mobile)
   ========================================================= */
.nav-menu-mobile {
    display: none;
    background: #67cc06;
}
@media (max-width: 1023px) {
    .nav-menu-mobile { display: block; }
}

.nav-menu-mobile__items {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-menu-mobile__items::-webkit-scrollbar { display: none; }

.nav-menu-mobile__item {
    flex: 0 0 20%;
    min-width: 20%;
    max-width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 2px 8px;
    border-right: 1px solid #ffffff;
    color: #494450;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: capitalize;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
.nav-menu-mobile__item:last-child { border-right: none; }
.nav-menu-mobile__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.nav-menu-mobile__item span { line-height: 1; }
.nav-menu-mobile__item.is-active {
    background: rgba(0, 0, 0, 0.12);
    font-weight: 700;
}
.nav-menu-mobile__item:active { background: rgba(0, 0, 0, 0.10); }

/* =========================================================
   3. BANNER SLIDER
   ========================================================= */
.home-slider {
    position: relative;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    background: #ffffff;
}
.home-slider__viewport { overflow: hidden; }
.home-slider__slides {
    display: flex;
    transition: transform 0.45s ease;
}
.home-slider__slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: block;
}
.home-slider__slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1280 / 541;
    object-fit: fill;
    user-select: none;
    -webkit-user-drag: none;
}
.home-slider__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.home-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}
.home-slider__dot.is-active {
    background: #ffffff;
    transform: scale(1.25);
}

/* =========================================================
   4. SPORT MENU  (gray header + image tiles + lime name bar)
   ========================================================= */
.home-sport-menu {
    margin-top: 0;
    background: #dedfe4;
}
.home-sport-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 39px;
    box-sizing: border-box;
    padding: 0 14px;
}
.home-sport-menu__head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1e2126;
    letter-spacing: 0.01em;
}
.home-sport-menu__head a {
    font-size: 12px;
    font-weight: 700;
    color: #079c20;
    text-decoration: none;
    white-space: nowrap;
}
.home-sport-menu__head a:hover { color: #55a804; }

.home-sport-menu__items {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 5px 0;
    background: #dedfe4;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.home-sport-menu__items::-webkit-scrollbar { display: none; }

.home-sport-menu__item {
    flex: 0 0 158px;
    width: 158px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: #dedfe4;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}
.home-sport-menu__item img {
    display: block;
    width: 100%;
    height: 95px;
    object-fit: cover;
    background: #e6eadf;
}
.home-sport-menu__name {
    background: #67cc06;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 4px 10px;
}

/* =========================================================
   5. CASINO CARDS
   ========================================================= */
.main-page-mobile__casino {
    display: flex;
    gap: 14px;
    padding: 26px 8px 4px;
}
.main-page-mobile__casino-item {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.10);
    -webkit-tap-highlight-color: transparent;
}
.main-page-mobile__casino-item img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: cover;
}
.main-page-mobile__casino-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 10px 9px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
    color: #ffffff;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}

/* =========================================================
   6. DESKTOP GAME SHORTCUTS  (joker "slider-pages" style)
   ========================================================= */
.home-slider-pages {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}
@media (min-width: 1024px) {
    .home-slider-pages { display: grid; }
}
.home-slider-page {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}
.home-slider-page:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
}
.home-slider-page img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #eef1ec;
}
.home-slider-page__label {
    background: #67cc06;
    color: #ffffff;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 11px 12px;
}

/* =========================================================
   7. MOBILE FOOTER
   ========================================================= */
.footer-mobile {
    margin-top: 24px;
    padding-bottom: 10px;
    background: #ffffff;
}
.footer-mobile__payments {
    display: block;
    width: 100%;
    height: auto;
}
.footer-mobile__note {
    margin: 0;
    padding: 12px 16px 8px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}
.footer-mobile__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 0 6px;
}
.footer-mobile__socials a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    color: #4b5563;
}
.footer-mobile__socials a svg { width: 16px; height: 16px; }

/* =========================================================
   DESKTOP: banner slider sizes
   ========================================================= */
@media (min-width: 1024px) {
    .home-slider {
        margin: 24px 0 0;
        border-radius: 16px;
    }
    .home-slider__slide img { aspect-ratio: 1280 / 541; }
    .home-slider__dots { bottom: 14px; }
}

/* =========================================================
   8. LETTOBET SIDE MENU (drawer)  — exact ltb look
      Gray #dedfe4 fullscreen drawer sliding in from the left
      below the mobile header; 3-column #9fa4a7 icon tiles with
      white separators; active tile = lime underline + #494450.
   ========================================================= */
@media (max-width: 1023px) {
    .header-block-mobile { position: sticky; top: 0; z-index: 100; }

    .side-menu {
        background: #dedfe4;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
        margin-top: auto;
        overflow-x: auto;
        padding-bottom: .1875rem;
        position: fixed;
        top: 0;
        left: -100vw;
        transition: -webkit-transform .4s ease;
        transition: transform .4s ease;
        width: 100%;
        z-index: 520;
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    .side-menu_open {
        -webkit-transform: translateX(100vw);
        transform: translateX(100vw);
    }

    .side-menu__items {
        align-items: flex-start;
        display: flex;
        flex-wrap: wrap;
        height: max-content;
        justify-content: flex-start;
        width: 100%;
    }

    .side-menu__item {
        align-items: center;
        background: #9fa4a7;
        border-bottom: .0625rem solid #fff;
        border-left: .0625rem solid #fff;
        color: #fff;
        display: flex;
        flex-direction: column;
        height: 4.175rem;
        justify-content: center;
        text-decoration: none;
        width: 33.33333%;
    }
    .side-menu__item * { fill: #fff; }
    .side-menu__item_active {
        border-bottom: .25rem solid #67cc06;
        color: #494450;
    }
    .side-menu__item_active * { fill: #494450; }

    .side-menu__item-text {
        font-size: .8rem;
        margin-top: .2rem;
        text-align: center;
    }
    .side-menu__icon {
        align-items: center;
        display: flex;
        height: 1.6rem;
        justify-content: center;
        width: 1.6rem;
    }
}
@media (min-width: 1024px) {
    .side-menu { display: none !important; }
}