/* ==========================================================================
   /livecasino — the live table cards.

   Same card, same reading order (RTP, live, logo, name), a lighter touch:
   - the heat of a table (its live RTP band) tints the card's border, its
     RTP pill and a soft glow behind the logo, instead of the blurred flame
     blobs that sat behind the name;
   - the card lifts on hover rather than scaling, so its text stays sharp;
   - the live dot pulses;
   - two across on a phone, so the list is not a column of tall cards.

   Every class, custom property and keyframe here ends in -35. Logical
   properties throughout, so right-to-left locales mirror.
   ========================================================================== */

.lc-grid-35 {
    --lc-ease-35: cubic-bezier(.22, 1, .36, 1);

    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    padding-inline: 16px;
    text-align: start;
}

.lc-grid-35 *,
.lc-grid-35 *::before,
.lc-grid-35 *::after {
    box-sizing: border-box;
}

/* --- Heat bands -------------------------------------------------------------
   One colour per band, the band the cards always used. Two classes deep, so
   they win over the neutral default set on .lc-card-35 below. */

.lc-card-35.lc-heat-hot3-35 { --lc-heat-35: 239, 68, 68;   --lc-heat-2-35: 249, 115, 22; }
.lc-card-35.lc-heat-hot2-35 { --lc-heat-35: 248, 82, 82;   --lc-heat-2-35: 251, 146, 60; }
.lc-card-35.lc-heat-hot1-35 { --lc-heat-35: 251, 113, 133; --lc-heat-2-35: 251, 146, 60; }
.lc-card-35.lc-heat-warm-35 { --lc-heat-35: 251, 146, 60;  --lc-heat-2-35: 250, 204, 21; }
.lc-card-35.lc-heat-cold1-35 { --lc-heat-35: 59, 130, 246; --lc-heat-2-35: 34, 211, 238; }
.lc-card-35.lc-heat-cold2-35 { --lc-heat-35: 96, 165, 250; --lc-heat-2-35: 165, 243, 252; }
.lc-card-35.lc-heat-flat-35 { --lc-heat-35: 148, 163, 184; --lc-heat-2-35: 203, 213, 225; }

/* --- Card ------------------------------------------------------------------ */

.lc-card-35 {
    --lc-heat-35: 148, 163, 184;
    --lc-heat-2-35: 203, 213, 225;

    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 224px;
    padding: 12px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(var(--lc-heat-35), 0.35);
    background:
        radial-gradient(80% 60% at 50% 42%, rgba(var(--lc-heat-35), 0.16), transparent 70%),
        linear-gradient(180deg, #17151d, #101016);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
    color: #fff;
    text-decoration: none;
    transition: transform .35s var(--lc-ease-35), border-color .25s ease, box-shadow .35s var(--lc-ease-35);
}

/* The heat glow behind the logo; the hot bands breathe slowly. */
.lc-card-35::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 46%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--lc-heat-2-35), 0.32), rgba(var(--lc-heat-35), 0.12) 45%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.lc-heat-hot3-35::before,
.lc-heat-hot2-35::before {
    animation: lc-breathe-35 3.2s ease-in-out infinite;
}

@keyframes lc-breathe-35 {
    0%, 100% { opacity: .75; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1.06); }
}

@media (hover: hover) {
    .lc-card-35:hover {
        transform: translateY(-4px);
        border-color: rgba(var(--lc-heat-35), 0.7);
        box-shadow: 0 26px 48px -28px rgba(0, 0, 0, 0.95), 0 14px 36px -24px rgba(var(--lc-heat-35), 0.55);
        color: #fff;
    }

    .lc-card-35:hover .lc-logo-35 img {
        transform: scale(1.07);
    }

    .lc-card-35:hover .lc-name-35 svg {
        opacity: 1;
        transform: translateX(0);
    }
}

.lc-card-35:focus-visible {
    outline: 2px solid #22e2b6;
    outline-offset: 3px;
}

/* --- Top row: RTP and live -------------------------------------------------- */

.lc-rtp-35 {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--lc-heat-35), 0.95), rgba(var(--lc-heat-2-35), 0.85));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    box-shadow: 0 6px 16px -8px rgba(var(--lc-heat-35), 0.9);
}

.lc-heat-flat-35 .lc-rtp-35 {
    color: #1f2937;
    text-shadow: none;
}

.lc-live-35 {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(15, 14, 20, 0.7);
    color: #f87171;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
}

.lc-live-35 i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: lc-pulse-35 1.8s ease-out infinite;
}

@keyframes lc-pulse-35 {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --- Logo -------------------------------------------------------------------- */

.lc-logo-35 {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 40px 8px 10px;
}

.lc-logo-35 img {
    display: block;
    max-width: 100%;
    height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
    transition: transform .4s var(--lc-ease-35);
}

/* --- Name -------------------------------------------------------------------- */

.lc-name-35 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(90deg, rgba(169, 72, 248, 0.28), rgba(34, 226, 182, 0.22));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-align: center;
}

.lc-name-text-35 {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #f5f3ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.lc-name-35 svg {
    flex: none;
    width: 14px;
    height: 14px;
    color: #22e2b6;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .25s ease, transform .25s ease;
}

[dir="rtl"] .lc-name-35 svg {
    transform: scaleX(-1) translateX(-4px);
}

@media (hover: hover) {
    [dir="rtl"] .lc-card-35:hover .lc-name-35 svg {
        transform: scaleX(-1);
    }
}

/* --- Narrower screens ---------------------------------------------------- */

@media (max-width: 1023px) {
    .lc-grid-35 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Two across on a phone: a smaller card, the same parts. */
@media (max-width: 767px) {
    .lc-grid-35 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lc-card-35 {
        min-height: 0;
        padding: 9px;
        border-radius: 15px;
    }

    .lc-card-35::before {
        width: 100px;
        height: 100px;
        margin: -50px 0 0 -50px;
    }

    .lc-rtp-35 {
        top: 9px;
        inset-inline-start: 9px;
        padding: 3px 7px;
        font-size: 10.5px;
    }

    .lc-live-35 {
        top: 9px;
        inset-inline-end: 9px;
        gap: 4px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .lc-live-35 i {
        width: 6px;
        height: 6px;
    }

    .lc-logo-35 {
        min-height: 92px;
        padding: 32px 4px 8px;
    }

    .lc-logo-35 img {
        height: 62px;
    }

    .lc-name-35 {
        min-height: 38px;
        padding: 7px 8px;
        border-radius: 10px;
    }

    .lc-name-text-35 {
        font-size: 11px;
        letter-spacing: .04em;
    }

    .lc-name-35 svg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-grid-35 *,
    .lc-grid-35 *::before,
    .lc-grid-35 *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .lc-card-35:hover {
        transform: none;
    }
}

/* ==========================================================================
   Free demos: the six BetGames tables under "Try free live casino demos"
   ========================================================================== */

.ld-wrap-35 {
    --ld-ease-35: cubic-bezier(.22, 1, .36, 1);

    box-sizing: border-box;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 8px 16px 32px;
}

.ld-wrap-35 *,
.ld-wrap-35 *::before,
.ld-wrap-35 *::after {
    box-sizing: border-box;
}

/* Two classes deep: app/rtl.py pads every `ul` on right-to-left pages. */
.ld-wrap-35 ul.ld-grid-35 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-card-35 {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 18px 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(90% 55% at 50% 0%, rgba(169, 72, 248, 0.16), transparent 70%),
        linear-gradient(180deg, #1c1a22, #131118);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
    text-align: center;
    transition: transform .35s var(--ld-ease-35), border-color .25s ease, box-shadow .35s var(--ld-ease-35);
}

@media (hover: hover) {
    .ld-card-35:hover {
        transform: translateY(-4px);
        border-color: rgba(169, 72, 248, 0.45);
        box-shadow: 0 24px 46px -28px rgba(0, 0, 0, 0.95), 0 14px 34px -24px rgba(169, 72, 248, 0.55);
    }

    .ld-card-35:hover .ld-art-35 {
        transform: scale(1.05);
    }
}

/* The table's picture in the site's gradient ring. */
.ld-art-35 {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a948f8, #22e2b6);
    box-shadow: 0 12px 26px -12px rgba(169, 72, 248, 0.8);
    transition: transform .35s var(--ld-ease-35);
}

.ld-art-35 img {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid #17151c;
    border-radius: 50%;
    object-fit: cover;
    background: #0f0e11;
}

.ld-name-35 {
    margin: 4px 0 0;
    color: #f5f3ff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.ld-tag-35 {
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(34, 226, 182, 0.35);
    background: rgba(34, 226, 182, 0.08);
    color: #22e2b6;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ld-play-35 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background-image: linear-gradient(90deg, #a948f8, #22e2b6, #a948f8);
    background-size: 200% 100%;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px -14px rgba(169, 72, 248, 0.9);
    transition: background-position .5s var(--ld-ease-35), transform .2s ease;
}

.ld-play-35:hover {
    background-position: 100% 0;
}

.ld-play-35:active {
    transform: scale(.97);
}

.ld-play-35:focus-visible {
    outline: 2px solid #22e2b6;
    outline-offset: 2px;
}

.ld-play-35 svg {
    flex: none;
    width: 14px;
    height: 14px;
}

[dir="rtl"] .ld-play-35 svg {
    transform: scaleX(-1);
}

@media (max-width: 1199px) {
    .ld-wrap-35 ul.ld-grid-35 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Phone: two across, a little smaller. */
@media (max-width: 639px) {
    .ld-wrap-35 {
        padding: 4px 16px 24px;
    }

    .ld-wrap-35 ul.ld-grid-35 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ld-card-35 {
        gap: 6px;
        padding: 14px 10px 10px;
        border-radius: 15px;
    }

    .ld-art-35 {
        width: 62px;
        height: 62px;
    }

    .ld-name-35 {
        font-size: 13.5px;
    }

    .ld-play-35 {
        min-height: 36px;
        font-size: 12.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-card-35,
    .ld-art-35,
    .ld-play-35 {
        transition: none;
    }

    .ld-card-35:hover {
        transform: none;
    }
}
