/* ==========================================================================
   /casino-sites/ — the filter panel and the casino cards.

   Every class, id, custom property and keyframe here ends in -28, so nothing
   collides with the stylesheets this page already loads (the Tailwind CDN
   build, style2.css, casino/casino.css) or with the -27 work on /slot.

   Direction-neutral: logical properties throughout, so Arabic, Urdu and
   Persian mirror without any rule in app/rtl.py.
   ========================================================================== */

:root {
    --cs-purple-28: #a948f8;
    --cs-teal-28: #22e2b6;
    --cs-gold-28: #fbbf24;
    --cs-ink-28: #f5f3ff;
    --cs-text-28: #d6d4de;
    --cs-muted-28: #a3a1ae;
    --cs-faint-28: #77748a;
    --cs-line-28: rgba(255, 255, 255, 0.07);
    --cs-line-strong-28: rgba(255, 255, 255, 0.12);
    --cs-grad-28: linear-gradient(90deg, #a948f8, #22e2b6);
    --cs-grad-loop-28: linear-gradient(90deg, #a948f8, #22e2b6, #a948f8);
    --cs-shadow-28: 0 24px 60px -32px rgba(0, 0, 0, 0.9);
    --cs-ease-28: cubic-bezier(.22, 1, .36, 1);
    --cs-font-28: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

.cs-sr-28 {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   1. Shell
   ========================================================================== */

.cs-shell-28 {
    box-sizing: border-box;
    width: 100%;
    max-width: 1600px;
    margin: 28px auto 0;
    padding-inline: 16px;
    color: var(--cs-text-28);
    font-family: var(--cs-font-28);
}

.cs-shell-28 *,
.cs-shell-28 *::before,
.cs-shell-28 *::after {
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .cs-shell-28 {
        padding-inline: 24px;
    }
}

/* ==========================================================================
   2. Filter panel
   ========================================================================== */

.cs-filter-28 {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--cs-line-28);
    background:
        radial-gradient(90% 140% at 0% 0%, rgba(169, 72, 248, 0.1), transparent 55%),
        radial-gradient(90% 140% at 100% 100%, rgba(34, 226, 182, 0.06), transparent 55%),
        linear-gradient(180deg, rgba(29, 26, 36, 0.92), rgba(19, 17, 23, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--cs-shadow-28);
}

.cs-row-28 {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cs-row-28 + .cs-row-28 {
    padding-top: 14px;
    border-top: 1px solid var(--cs-line-28);
}

.cs-row-label-28 {
    margin: 0;
    color: var(--cs-faint-28);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

@media (min-width: 900px) {
    .cs-filter-28 {
        padding: 18px 22px;
    }

    /* Label beside its row on wide screens. */
    .cs-row-28 {
        grid-template-columns: 120px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
    }
}

/* --- Scrolling rows ------------------------------------------------------ */

.cs-scroller-28 {
    --cs-fade-start-28: 0px;
    --cs-fade-end-28: 0px;
    --cs-fade-dir-28: to right;
    position: relative;
    min-width: 0;
}

[dir="rtl"] .cs-scroller-28 {
    --cs-fade-dir-28: to left;
}

.cs-scroller-28.cs-more-start-28 {
    --cs-fade-start-28: 36px;
}

.cs-scroller-28.cs-more-end-28 {
    --cs-fade-end-28: 36px;
}

.cs-track-28 {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 3px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(var(--cs-fade-dir-28), transparent 0, #000 var(--cs-fade-start-28), #000 calc(100% - var(--cs-fade-end-28)), transparent 100%);
    mask-image: linear-gradient(var(--cs-fade-dir-28), transparent 0, #000 var(--cs-fade-start-28), #000 calc(100% - var(--cs-fade-end-28)), transparent 100%);
}

.cs-track-28::-webkit-scrollbar {
    display: none;
}

/* Arrows: only where a mouse is the likely pointer, and only when there is
   something to scroll to in that direction (the -28 JS sets `hidden`). */
.cs-arrow-28 {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: none;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--cs-line-strong-28);
    background: rgba(29, 26, 36, 0.92);
    color: var(--cs-ink-28);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.cs-arrow-28:hover {
    border-color: rgba(169, 72, 248, 0.6);
    background: rgba(169, 72, 248, 0.25);
}

.cs-arrow-28 svg {
    width: 16px;
    height: 16px;
}

.cs-arrow-prev-28 { inset-inline-start: -4px; }
.cs-arrow-next-28 { inset-inline-end: -4px; }

[dir="rtl"] .cs-arrow-28 svg {
    transform: scaleX(-1);
}

@media (hover: hover) and (min-width: 768px) {
    .cs-arrow-28 {
        display: grid;
    }

    .cs-arrow-28[hidden] {
        display: none;
    }
}

/* --- Category chips ------------------------------------------------------ */

.cs-chip-28 {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding-inline: 16px;
    border-radius: 999px;
    border: 1px solid var(--cs-line-strong-28);
    background: rgba(255, 255, 255, 0.035);
    color: var(--cs-text-28);
    font: 600 14px/1 var(--cs-font-28);
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.cs-chip-28:hover {
    border-color: rgba(169, 72, 248, 0.6);
    background: rgba(169, 72, 248, 0.12);
    color: #fff;
}

.cs-chip-28:active {
    transform: scale(.97);
}

.cs-chip-28:focus-visible {
    outline: 2px solid var(--cs-teal-28);
    outline-offset: 2px;
}

.cs-chip-on-28,
.cs-chip-on-28:hover {
    border-color: transparent;
    background: var(--cs-grad-28);
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(169, 72, 248, 0.9);
}

/* --- Bonus pills (radio buttons) ----------------------------------------- */

/* Quieter than the category chips, so the two rows read as two different
   choices. Unselected: plain text. Selected: a soft teal fill, and a check
   mark that slides in before the label. */
.cs-pill-28 {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding-inline: 15px;
    border-radius: 999px;
    border: 1px solid var(--cs-line-28);
    background: rgba(255, 255, 255, 0.025);
    color: var(--cs-muted-28);
    font: 500 13.5px/1 var(--cs-font-28);
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .2s ease, background .2s ease, color .2s ease,
        padding .25s var(--cs-ease-28);
}

.cs-pill-28:hover {
    border-color: rgba(34, 226, 182, 0.4);
    color: #fff;
}

/* The real radio stays in the page for keyboards and screen readers,
   stretched invisibly over the whole pill. */
.cs-radio-28 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cs-check-28 {
    flex: none;
    width: 0;
    height: 14px;
    margin-inline-end: 0;
    overflow: hidden;
    color: var(--cs-teal-28);
    opacity: 0;
    transition: width .25s var(--cs-ease-28), margin .25s var(--cs-ease-28), opacity .2s ease;
}

.cs-pill-28:has(.cs-radio-28:checked),
.cs-pill-on-28 {
    padding-inline-start: 12px;
    border-color: rgba(34, 226, 182, 0.5);
    background: rgba(34, 226, 182, 0.12);
    color: #fff;
}

.cs-pill-28:has(.cs-radio-28:checked) .cs-check-28,
.cs-pill-on-28 .cs-check-28 {
    width: 14px;
    margin-inline-end: 7px;
    opacity: 1;
}

.cs-pill-28:has(.cs-radio-28:focus-visible) {
    outline: 2px solid var(--cs-teal-28);
    outline-offset: 2px;
}

/* ==========================================================================
   3. Results
   ========================================================================== */

.cs-results-28 {
    position: relative;
    margin-top: 22px;
}

/* A thin bar while the next set of cards is on its way. */
.cs-results-28::before {
    content: "";
    position: absolute;
    top: -12px;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--cs-grad-loop-28);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .2s ease;
}

.cs-results-28[aria-busy="true"]::before {
    opacity: 1;
    animation: cs-busy-28 1s linear infinite;
}

.cs-results-28[aria-busy="true"] .cs-grid-28 {
    opacity: .45;
    pointer-events: none;
}

@keyframes cs-busy-28 {
    to { background-position: -200% 0; }
}

.cs-intro-28 {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--cs-line-28);
    background: rgba(255, 255, 255, 0.025);
    color: var(--cs-text-28);
    font-size: 14px;
    line-height: 1.65;
}

.cs-intro-28 > :first-child { margin-top: 0; }
.cs-intro-28 > :last-child { margin-bottom: 0; }

.cs-intro-28 a {
    color: var(--cs-teal-28);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Grid ---------------------------------------------------------------- */

/* Two classes deep: app/rtl.py pads every `ul` on right-to-left pages. */
.cs-shell-28 ul.cs-grid-28 {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity .2s ease;
}

@media (min-width: 600px) {
    .cs-shell-28 ul.cs-grid-28 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .cs-shell-28 ul.cs-grid-28 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}

/* Four across only once every card still has room to breathe. */
@media (min-width: 1400px) {
    .cs-shell-28 ul.cs-grid-28 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

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

/* Centred and roomy: logo, name, the offer as the headline, then the two
   actions. The offer grows, so buttons line up along a row of cards. */
.cs-card-28 {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 30px 24px 22px;
    border-radius: 24px;
    border: 1px solid var(--cs-line-28);
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(169, 72, 248, 0.14), transparent 62%),
        linear-gradient(180deg, #1e1b25, #15131a);
    box-shadow: var(--cs-shadow-28);
    text-align: center;
    transition: transform .35s var(--cs-ease-28), box-shadow .35s var(--cs-ease-28);
}

/* Gradient hairline that fades in on hover. */
.cs-card-28::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(169, 72, 248, 0.9), rgba(34, 226, 182, 0.7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.cs-card-28:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 18px 40px -28px rgba(169, 72, 248, 0.55);
}

.cs-card-28:hover::before {
    opacity: 1;
}

.cs-logo-28 {
    flex: none;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding: 3px;
    border-radius: 50%;
    background: var(--cs-grad-28);
    box-shadow: 0 16px 34px -14px rgba(169, 72, 248, 0.75);
    transition: transform .35s var(--cs-ease-28);
}

.cs-card-28:hover .cs-logo-28 {
    transform: scale(1.04);
}

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

.cs-name-28 {
    max-width: 100%;
    margin: 14px 0 0;
    overflow: hidden;
    color: var(--cs-ink-28);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The offer is the reason the card exists, so it gets the size. */
.cs-offer-28 {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 14px 0 22px;
}

.cs-offer-label-28 {
    color: var(--cs-faint-28);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.cs-offer-text-28 {
    background: linear-gradient(90deg, #ffffff, #e9d5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.cs-actions-28 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.cs-claim-28 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 15px;
    background-image: var(--cs-grad-loop-28);
    background-size: 200% 100%;
    color: #fff;
    font: 800 15.5px/1.2 var(--cs-font-28);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 30px -14px rgba(169, 72, 248, 0.85);
    transition: background-position .5s var(--cs-ease-28), transform .2s ease, box-shadow .2s ease;
}

.cs-claim-28:hover {
    background-position: 100% 0;
    box-shadow: 0 16px 34px -12px rgba(34, 226, 182, 0.6);
    color: #fff;
}

.cs-claim-28:active {
    transform: scale(.98);
}

.cs-claim-28 svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.cs-review-28 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--cs-muted-28);
    font: 600 14px/1.2 var(--cs-font-28);
    text-align: center;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.cs-review-28:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.cs-arrow-icon-28 {
    display: inline-block;
    transition: transform .2s ease;
}

.cs-review-28:hover .cs-arrow-icon-28 {
    transform: translateX(3px);
}

[dir="rtl"] .cs-arrow-icon-28,
[dir="rtl"] .cs-claim-28 svg {
    transform: scaleX(-1);
}

[dir="rtl"] .cs-review-28:hover .cs-arrow-icon-28 {
    transform: scaleX(-1) translateX(3px);
}

.cs-claim-28:focus-visible,
.cs-review-28:focus-visible,
.cs-arrow-28:focus-visible,
.cs-empty-28 a:focus-visible {
    outline: 2px solid var(--cs-teal-28);
    outline-offset: 2px;
}

/* Rank: gold, silver and bronze for the first three. */
.cs-rank-28 {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 28px;
    padding-inline: 9px;
    border-radius: 999px;
    color: #1a1305;
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.cs-rank-1-28 .cs-rank-28 {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.7);
}

.cs-rank-2-28 .cs-rank-28 {
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    box-shadow: 0 6px 18px -6px rgba(148, 163, 184, 0.6);
}

.cs-rank-3-28 .cs-rank-28 {
    background: linear-gradient(135deg, #fed7aa, #c2410c);
    box-shadow: 0 6px 18px -6px rgba(194, 65, 12, 0.6);
}

.cs-rank-1-28 {
    border-color: rgba(251, 191, 36, 0.28);
}

@media (max-width: 599px) {
    .cs-card-28 {
        padding: 26px 20px 20px;
    }

    .cs-logo-28 {
        width: 80px;
        height: 80px;
    }

    .cs-offer-text-28 {
        font-size: 21px;
    }
}

/* --- Empty ---------------------------------------------------------------- */

.cs-empty-28 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 20px;
    border-radius: 22px;
    border: 1px dashed var(--cs-line-strong-28);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.cs-empty-title-28 {
    margin: 0;
    color: var(--cs-ink-28);
    font-size: 18px;
    font-weight: 800;
}

.cs-empty-text-28 {
    max-width: 420px;
    margin: 0 0 6px;
    color: var(--cs-muted-28);
    font-size: 14px;
}

.cs-empty-28 a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 14px;
    background-image: var(--cs-grad-loop-28);
    background-size: 200% 100%;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================================================
   4. Scripts that must not be letter-spaced, and reduced motion
   ========================================================================== */

:is(:lang(ar), :lang(fa), :lang(ur), :lang(bn), :lang(th)) :is(.cs-row-label-28, .cs-offer-label-28) {
    letter-spacing: 0;
}

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

    .cs-card-28:hover {
        transform: none;
    }
}
