/* ==========================================================================
   /slot — search, filters, results, the Fun Play window and the jackpot card.

   Every class, id, custom property and data attribute used here ends in -27,
   so nothing collides with the older sheets this page still loads
   (tailwind.css, style2.css, style3.css) or with anything added later.

   Plain CSS rather than Tailwind utilities: tailwind.css is pre-built with no
   build step, so a utility that is not already in that file does nothing.

   Direction-neutral on purpose. Spacing and positioning use logical
   properties (margin-inline, inset-inline, text-align: start), so Arabic,
   Urdu and Persian mirror without any rule in app/rtl.py.
   ========================================================================== */

:root {
    --sx-purple-27: #a948f8;
    --sx-teal-27: #22e2b6;
    --sx-gold-27: #fbbf24;
    --sx-gold-soft-27: #fde68a;
    --sx-ink-27: #f5f3ff;
    --sx-text-27: #d6d4de;
    --sx-muted-27: #a3a1ae;
    --sx-faint-27: #77748a;
    --sx-line-27: rgba(255, 255, 255, 0.07);
    --sx-line-strong-27: rgba(255, 255, 255, 0.12);
    --sx-surface-27: #16141b;
    --sx-surface-2-27: #1d1a24;
    --sx-grad-27: linear-gradient(90deg, #a948f8, #22e2b6);
    --sx-grad-loop-27: linear-gradient(90deg, #a948f8, #22e2b6, #a948f8);
    --sx-shadow-27: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
    --sx-ease-27: cubic-bezier(.22, 1, .36, 1);
    --sx-nav-h-27: 68px;
    --sx-font-27: 'Roboto', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* Screen-reader only text. */
.sx-sr-27 {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll lock while the game window or a jackpot dialog is open. */
html.sx-lock-27,
html.sx-lock-27 body {
    overflow: hidden;
}

/* ==========================================================================
   1. Explorer shell
   ========================================================================== */

.sx-shell-27 {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding: 40px 16px 8px;
    color: var(--sx-text-27);
    font-family: var(--sx-font-27);
}

.sx-shell-27 *,
.sx-shell-27 *::before,
.sx-shell-27 *::after {
    box-sizing: border-box;
}

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

/* ==========================================================================
   2. Search
   ========================================================================== */

.sx-search-27 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 60px;
    padding: 6px;
    padding-inline-start: 18px;
    border-radius: 999px;
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(169, 72, 248, 0.14), transparent 55%),
        linear-gradient(180deg, rgba(37, 34, 46, 0.92), rgba(22, 20, 27, 0.95));
    border: 1px solid var(--sx-line-strong-27);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--sx-shadow-27);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.sx-search-27:focus-within {
    border-color: rgba(169, 72, 248, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 4px rgba(169, 72, 248, 0.16),
        0 24px 60px -28px rgba(169, 72, 248, 0.5);
}

.sx-search-icon-27 {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--sx-muted-27);
    transition: color .25s ease;
}

.sx-search-27:focus-within .sx-search-icon-27 {
    color: var(--sx-teal-27);
}

.sx-search-input-27 {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 6px;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--sx-ink-27);
    /* 16px keeps iOS from zooming the page when the field gets focus. */
    font: 500 16px/1.2 var(--sx-font-27);
    -webkit-appearance: none;
    appearance: none;
}

.sx-search-input-27::placeholder {
    color: var(--sx-faint-27);
    opacity: 1;
}

.sx-search-input-27::-webkit-search-cancel-button,
.sx-search-input-27::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.sx-search-clear-27 {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sx-muted-27);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.sx-search-clear-27:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.sx-search-clear-27[hidden] {
    display: none;
}

.sx-kbd-27 {
    display: none;
    flex: none;
    min-width: 26px;
    height: 26px;
    padding-inline: 8px;
    border-radius: 7px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sx-faint-27);
    font: 600 12px/24px var(--sx-font-27);
    text-align: center;
}

@media (min-width: 1024px) and (hover: hover) {
    .sx-kbd-27 {
        display: inline-block;
    }

    .sx-search-27[data-filled-27] .sx-kbd-27,
    .sx-search-27:focus-within .sx-kbd-27 {
        display: none;
    }
}

.sx-search-submit-27 {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding-inline: 22px;
    border: 0;
    border-radius: 999px;
    background: var(--sx-grad-loop-27);
    background-size: 200% 100%;
    color: #fff;
    font: 700 15px/1 var(--sx-font-27);
    cursor: pointer;
    box-shadow: 0 10px 26px -12px rgba(169, 72, 248, 0.8);
    transition: background-position .5s var(--sx-ease-27), transform .2s ease;
}

.sx-search-submit-27:hover {
    background-position: 100% 0;
}

.sx-search-submit-27:active {
    transform: scale(.97);
}

.sx-search-submit-27 svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 479px) {
    .sx-search-27 {
        min-height: 54px;
        padding-inline-start: 14px;
    }

    .sx-search-input-27 {
        height: 42px;
    }

    .sx-search-submit-27 {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .sx-search-submit-27 span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (min-width: 480px) {
    .sx-search-submit-27 svg {
        display: none;
    }
}

/* ==========================================================================
   3. Toolbar: filter toggle, quick chips, active filters
   ========================================================================== */

.sx-toolbar-27 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.sx-filter-toggle-27 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 16px;
    border-radius: 14px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(255, 255, 255, 0.035);
    color: var(--sx-ink-27);
    font: 600 15px/1.2 var(--sx-font-27);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.sx-filter-toggle-27:hover {
    border-color: rgba(169, 72, 248, 0.55);
    background: rgba(169, 72, 248, 0.08);
}

.sx-filter-toggle-27[aria-expanded="true"] {
    border-color: rgba(34, 226, 182, 0.55);
    background: rgba(34, 226, 182, 0.08);
}

.sx-filter-toggle-27 > svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--sx-teal-27);
}

.sx-chevron-27 {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--sx-muted-27);
    transition: transform .35s var(--sx-ease-27);
}

.sx-filter-toggle-27[aria-expanded="true"] .sx-chevron-27 {
    transform: rotate(180deg);
}

.sx-count-27 {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding-inline: 6px;
    border-radius: 999px;
    background: var(--sx-grad-27);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sx-quick-27 {
    display: flex;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sx-quick-27::-webkit-scrollbar {
    display: none;
}

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

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

.sx-chip-27:active {
    transform: scale(.97);
}

.sx-chip-27 svg {
    flex: none;
    width: 16px;
    height: 16px;
}

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

@media (max-width: 639px) {
    .sx-toolbar-27 {
        flex-direction: column;
        align-items: stretch;
    }

    .sx-filter-toggle-27 {
        justify-content: center;
    }

    /* On a phone the three shortcuts share the row, and drop to a second
       one when a translation is too long, rather than scrolling half out
       of view. */
    .sx-quick-27 {
        flex-wrap: wrap;
        overflow: visible;
    }

    .sx-chip-27 {
        flex: 1 1 auto;
        justify-content: center;
        padding-inline: 12px;
    }
}

/* Active filters — each chip is a link to the same page without that one. */
.sx-active-27 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.sx-active-label-27 {
    margin-inline-end: 4px;
    color: var(--sx-faint-27);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sx-tag-27 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 32px;
    padding-block: 4px;
    padding-inline: 12px 5px;
    border-radius: 999px;
    border: 1px solid rgba(169, 72, 248, 0.38);
    background: rgba(169, 72, 248, 0.12);
    color: #e9d5ff;
    font-size: 13px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.sx-tag-27:hover {
    border-color: rgba(169, 72, 248, 0.7);
    background: rgba(169, 72, 248, 0.2);
}

.sx-tag-27 b {
    overflow: hidden;
    max-width: 220px;
    color: #fff;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sx-tag-x-27 {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background .2s ease;
}

.sx-tag-27:hover .sx-tag-x-27 {
    background: rgba(255, 255, 255, 0.2);
}

.sx-tag-x-27 svg {
    width: 10px;
    height: 10px;
}

.sx-clear-all-27 {
    padding: 6px 4px;
    color: var(--sx-teal-27);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sx-clear-all-27:hover {
    color: #fff;
}

/* ==========================================================================
   4. Advanced filter panel
   ========================================================================== */

/* Height animation without measuring: a one-row grid going from 0fr to 1fr.
   `visibility` keeps the closed panel out of the tab order. */
.sx-collapse-27 {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition:
        grid-template-rows .5s var(--sx-ease-27),
        opacity .3s ease,
        visibility 0s linear .5s;
}

.sx-collapse-27.sx-open-27 {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition:
        grid-template-rows .5s var(--sx-ease-27),
        opacity .35s ease .05s,
        visibility 0s;
}

.sx-collapse-inner-27 {
    min-height: 0;
    overflow: hidden;
}

/* Once open, the panel may overflow again — tooltips and the sticky action
   bar on phones both need it. */
.sx-collapse-27.sx-settled-27 > .sx-collapse-inner-27 {
    overflow: visible;
}

.sx-panel-27 {
    position: relative;
    margin-top: 16px;
    padding: clamp(18px, 3vw, 32px);
    border-radius: 24px;
    border: 1px solid var(--sx-line-27);
    background:
        radial-gradient(100% 120% at 0% 0%, rgba(169, 72, 248, 0.12), transparent 55%),
        radial-gradient(100% 120% at 100% 100%, rgba(34, 226, 182, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(29, 26, 36, 0.96), rgba(19, 17, 23, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--sx-shadow-27);
}

.sx-fields-27 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.sx-field-27 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sx-label-27 {
    color: var(--sx-muted-27);
    font-size: 13px;
    font-weight: 600;
}

.sx-input-27 {
    width: 100%;
    height: 48px;
    margin: 0;
    padding-inline: 14px;
    border-radius: 14px;
    border: 1px solid var(--sx-line-strong-27);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--sx-ink-27);
    font: 500 16px/1.2 var(--sx-font-27);
    color-scheme: dark;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.sx-input-27::placeholder {
    color: var(--sx-faint-27);
    opacity: 1;
}

.sx-input-27:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.sx-input-27:focus {
    outline: 0;
    border-color: rgba(169, 72, 248, 0.75);
    background-color: rgba(169, 72, 248, 0.07);
    box-shadow: 0 0 0 4px rgba(169, 72, 248, 0.18);
}

.sx-select-27 {
    padding-inline-end: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a3a1ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 14px center;
    cursor: pointer;
    text-overflow: ellipsis;
}

[dir="rtl"] .sx-select-27 {
    background-position: left 14px center;
}

.sx-select-27 option {
    background: #1d1a24;
    color: #f5f3ff;
}

.sx-input-27[type="date"] {
    padding-inline-end: 10px;
}

.sx-input-27[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .7;
    cursor: pointer;
    filter: invert(1);
}

/* Range cards */
.sx-ranges-27 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    margin-top: 20px;
}

.sx-range-card-27 {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--sx-line-27);
    background: rgba(255, 255, 255, 0.025);
}

.sx-range-head-27 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sx-range-title-27 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--sx-ink-27);
    font-size: 15px;
    font-weight: 700;
}

.sx-range-dot-27 {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sx-teal-27);
    box-shadow: 0 0 0 4px rgba(34, 226, 182, 0.15);
}

.sx-range-card-bet-27 .sx-range-dot-27 {
    background: var(--sx-purple-27);
    box-shadow: 0 0 0 4px rgba(169, 72, 248, 0.18);
}

.sx-range-desc-27 {
    margin: 6px 0 0;
    color: var(--sx-faint-27);
    font-size: 12.5px;
    line-height: 1.45;
}

.sx-range-row-27 {
    margin-top: 16px;
}

.sx-range-meta-27 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: var(--sx-muted-27);
    font-size: 13px;
}

.sx-out-27 {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sx-ink-27);
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.sx-range-27 {
    --sx-fill-27: 0%;
    --sx-a-27: #22e2b6;
    --sx-b-27: #a948f8;
    --sx-dir-27: to right;
    display: block;
    width: 100%;
    height: 26px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

[dir="rtl"] .sx-range-27 {
    --sx-dir-27: to left;
}

.sx-range-card-bet-27 .sx-range-27 {
    --sx-a-27: #a948f8;
    --sx-b-27: #d8b4fe;
}

.sx-range-27:focus {
    outline: 0;
}

.sx-range-27::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(var(--sx-dir-27), var(--sx-a-27) 0, var(--sx-b-27) var(--sx-fill-27), rgba(255, 255, 255, 0.1) var(--sx-fill-27));
}

.sx-range-27::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    border: 4px solid var(--sx-b-27);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    -webkit-appearance: none;
    appearance: none;
    transition: transform .15s ease, box-shadow .2s ease;
}

.sx-range-27:active::-webkit-slider-thumb {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(169, 72, 248, 0.2);
}

.sx-range-27:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(34, 226, 182, 0.35);
}

.sx-range-27::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.sx-range-27::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sx-a-27), var(--sx-b-27));
}

.sx-range-27::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 4px solid var(--sx-b-27);
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.sx-range-27:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(34, 226, 182, 0.35);
}

.sx-range-sum-27 {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--sx-line-strong-27);
    color: var(--sx-faint-27);
    font-size: 12.5px;
    text-align: center;
}

.sx-range-sum-27 b {
    color: var(--sx-ink-27);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Tooltip: hover, keyboard focus, or a tap (the -on class, set by the JS). */
.sx-tip-wrap-27 {
    position: relative;
    flex: none;
}

.sx-tip-27 {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--sx-line-27);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sx-muted-27);
    cursor: help;
    transition: color .2s ease, border-color .2s ease;
}

.sx-tip-27:hover,
.sx-tip-wrap-27.sx-tip-on-27 .sx-tip-27 {
    border-color: rgba(34, 226, 182, 0.5);
    color: #fff;
}

.sx-tip-27 svg {
    width: 16px;
    height: 16px;
}

.sx-tip-text-27 {
    position: absolute;
    z-index: 6;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(250px, 72vw);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--sx-line-strong-27);
    background: #0c0b0f;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
    color: #e5e7eb;
    font-size: 12.5px;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.sx-tip-wrap-27:hover .sx-tip-text-27,
.sx-tip-27:focus-visible + .sx-tip-text-27,
.sx-tip-wrap-27.sx-tip-on-27 .sx-tip-text-27 {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* Actions */
.sx-actions-27 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.sx-btn-27 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 26px;
    border-radius: 14px;
    border: 1px solid transparent;
    font: 700 15px/1.2 var(--sx-font-27);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-position .5s var(--sx-ease-27), border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.sx-btn-27:active {
    transform: scale(.98);
}

.sx-btn-primary-27 {
    background-image: var(--sx-grad-loop-27);
    background-size: 200% 100%;
    color: #fff;
    box-shadow: 0 14px 32px -14px rgba(169, 72, 248, 0.8);
}

.sx-btn-primary-27:hover {
    background-position: 100% 0;
}

.sx-btn-ghost-27 {
    border-color: var(--sx-line-strong-27);
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--sx-text-27);
}

.sx-btn-ghost-27:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sx-btn-27 svg {
    flex: none;
    width: 18px;
    height: 18px;
}

@media (max-width: 639px) {
    /* The two buttons stay in reach while a long panel is scrolled. */
    .sx-actions-27 {
        position: sticky;
        bottom: 0;
        z-index: 3;
        flex-wrap: nowrap;
        margin: 20px -18px -18px;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
        border-radius: 0 0 24px 24px;
        background: linear-gradient(180deg, rgba(19, 17, 23, 0), rgba(19, 17, 23, 0.96) 35%);
    }

    .sx-actions-27 .sx-btn-27 {
        flex: 1 1 0;
        padding-inline: 14px;
    }
}

/* ==========================================================================
   5. Results
   ========================================================================== */

.sx-results-head-27 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 28px 0 14px;
}

.sx-results-count-27 {
    margin: 0;
    color: var(--sx-muted-27);
    font-size: 14px;
}

.sx-results-count-27 b {
    color: var(--sx-ink-27);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sx-legend-27 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: var(--sx-faint-27);
    font-size: 12px;
}

.sx-legend-27 span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sx-legend-27 i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* --- Shared cells ------------------------------------------------------- */

.sx-new-27 {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding-inline: 8px;
    border-radius: 7px;
    background: var(--sx-grad-27);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(34, 226, 182, 0.5);
    animation: sx-glow-27 2.4s ease-in-out infinite;
}

@keyframes sx-glow-27 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 226, 182, 0); }
    50% { box-shadow: 0 0 16px 0 rgba(34, 226, 182, 0.45); }
}

.sx-rtp-27 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 62px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sx-meter-27 {
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.sx-meter-27 i {
    display: block;
    width: var(--sx-w-27, 50%);
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

/* Same thresholds and hues the table always used: > 96, > 94, the rest. */
.sx-rtp-hot-27 { color: #f87171; }
.sx-rtp-warm-27 { color: #fca5a5; }
.sx-rtp-cool-27 { color: #eab308; }

.sx-vol-27 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
}

.sx-vol-27::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Colour still follows the stored English value, never the translation. */
.sx-vol-high-27 { color: #f87171; border-color: rgba(248, 113, 113, 0.4); background: rgba(239, 68, 68, 0.1); }
.sx-vol-mid-27 { color: #facc15; border-color: rgba(250, 204, 21, 0.38); background: rgba(234, 179, 8, 0.1); }
.sx-vol-other-27 { color: #f472b6; border-color: rgba(244, 114, 182, 0.4); background: rgba(236, 72, 153, 0.1); }

.sx-money-27 {
    color: var(--sx-text-27);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
}

.sx-clamp-27 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sx-clamp-2-27 {
    -webkit-line-clamp: 2;
}

.sx-soon-27 {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(169, 72, 248, 0.35);
    background: rgba(169, 72, 248, 0.1);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.sx-date-27 {
    color: var(--sx-muted-27);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* --- Action buttons ----------------------------------------------------- */

.sx-play-27,
.sx-review-27,
.sx-nodemo-27 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 11px;
    font: 700 13px/1.2 var(--sx-font-27);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-position .5s var(--sx-ease-27), border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sx-play-27 {
    border: 0;
    background-image: var(--sx-grad-loop-27);
    background-size: 200% 100%;
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(169, 72, 248, 0.85);
}

.sx-play-27:hover {
    background-position: 100% 0;
    box-shadow: 0 12px 26px -10px rgba(34, 226, 182, 0.6);
}

.sx-play-27:active,
.sx-review-27:active {
    transform: scale(.97);
}

.sx-play-27 svg {
    flex: none;
    width: 15px;
    height: 15px;
}

.sx-review-27 {
    border: 1px solid var(--sx-line-strong-27);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--sx-text-27);
}

.sx-review-27:hover {
    border-color: rgba(169, 72, 248, 0.6);
    background-color: rgba(169, 72, 248, 0.1);
    color: #fff;
}

.sx-nodemo-27 {
    border: 1px dashed var(--sx-line-strong-27);
    background: transparent;
    color: var(--sx-faint-27);
    cursor: not-allowed;
}

.sx-arrow-27 {
    display: inline-block;
}

[dir="rtl"] .sx-arrow-27,
[dir="rtl"] .sx-flip-27 {
    transform: scaleX(-1);
}

/* --- Desktop table (1280px and up) -------------------------------------- */

.sx-table-wrap-27 {
    display: none;
    border-radius: 22px;
    border: 1px solid var(--sx-line-27);
    background: linear-gradient(180deg, rgba(29, 26, 36, 0.9), rgba(20, 18, 25, 0.96));
    box-shadow: var(--sx-shadow-27);
}

.sx-table-27 {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.45;
}

.sx-table-27 thead th {
    position: sticky;
    top: var(--sx-nav-h-27);
    z-index: 2;
    padding: 14px 12px;
    border-bottom: 1px solid var(--sx-line-strong-27);
    background: rgba(29, 26, 36, 0.97);
    color: var(--sx-muted-27);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: start;
    text-transform: uppercase;
    vertical-align: bottom;
    /* German, Finnish and Dutch headings are single long words
       ("Mindesteinsatz", "Erscheinungsdatum"). They keep their column wide
       enough to stay whole, and hyphenate where the browser knows how. */
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .sx-table-27 thead th {
        background: rgba(29, 26, 36, 0.86);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

.sx-table-27 thead th:first-child {
    border-start-start-radius: 22px;
    padding-inline-start: 20px;
}

.sx-table-27 thead th:last-child {
    border-start-end-radius: 22px;
    padding-inline-end: 20px;
}

.sx-table-27 tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--sx-line-27);
    color: var(--sx-text-27);
    vertical-align: middle;
}

.sx-table-27 tbody td:first-child {
    padding-inline-start: 20px;
}

.sx-table-27 tbody td:last-child {
    padding-inline-end: 20px;
}

.sx-table-27 tbody tr:last-child td {
    border-bottom: 0;
}

.sx-table-27 tbody tr {
    transition: background-color .2s ease;
}

.sx-table-27 tbody tr:hover {
    background-color: rgba(169, 72, 248, 0.06);
}

.sx-table-27 tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--sx-purple-27);
}

[dir="rtl"] .sx-table-27 tbody tr:hover td:first-child {
    box-shadow: inset -3px 0 0 var(--sx-purple-27);
}

.sx-col-game-27 { min-width: 170px; }
.sx-col-feat-27 { min-width: 180px; }
.sx-col-demo-27 { width: 150px; min-width: 140px; }

.sx-game-27 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.sx-game-link-27 {
    color: var(--sx-ink-27);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.sx-game-link-27:hover {
    color: var(--sx-teal-27);
}

.sx-theme-27 {
    color: var(--sx-muted-27);
    font-size: 13px;
}

.sx-feat-27 {
    color: var(--sx-muted-27);
    font-size: 13px;
    line-height: 1.5;
}

.sx-provider-27 {
    color: var(--sx-text-27);
    font-weight: 500;
}

.sx-cell-actions-27 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Translated button labels wrap inside their column instead of widening it. */
.sx-cell-actions-27 .sx-play-27,
.sx-cell-actions-27 .sx-review-27,
.sx-cell-actions-27 .sx-nodemo-27 {
    white-space: normal;
}

.sx-table-27 .sx-vol-27 {
    white-space: nowrap;
}

/* Ten columns need 1280px once the headings are translated: German alone
   has "Mindesteinsatz" and "Erscheinungsdatum" as single words. Below that
   the same rows are shown as cards (section below). */
@media (min-width: 1280px) {
    .sx-table-wrap-27 {
        display: block;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .sx-table-27 {
        font-size: 13.5px;
    }

    .sx-table-27 thead th,
    .sx-table-27 tbody td {
        padding-inline: 10px;
    }

    .sx-table-27 thead th {
        letter-spacing: .05em;
    }

    .sx-col-feat-27 { min-width: 160px; }
    .sx-col-demo-27 { width: 136px; min-width: 128px; }
}

/* --- Cards (below 1280px): one, two or three columns --------------------- */

/* Two classes deep on purpose: app/rtl.py pads every `ul` on right-to-left
   pages, and a one-class selector would lose to it. */
.sx-shell-27 ul.sx-cards-27 {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .sx-shell-27 ul.sx-cards-27 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sx-shell-27 ul.sx-cards-27 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .sx-shell-27 ul.sx-cards-27 {
        display: none;
    }
}

.sx-card-27 {
    /* The card sizes its own insides: a card is narrow in a three-column
       grid on a tablet and in a one-column list on a phone alike. */
    container: sx-card-27 / inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--sx-line-27);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(169, 72, 248, 0.12), transparent 60%),
        linear-gradient(180deg, #1d1a24, #15131a);
    box-shadow: var(--sx-shadow-27);
}

.sx-card-head-27 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sx-card-title-27 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sx-card-title-27 a {
    color: var(--sx-ink-27);
    text-decoration: none;
}

.sx-card-title-27 a:hover {
    color: var(--sx-teal-27);
}

.sx-card-sub-27 {
    margin: 4px 0 0;
    color: var(--sx-muted-27);
    font-size: 13px;
}

.sx-stats-27 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.sx-stat-27 {
    min-width: 0;
    padding: 10px 9px;
    border-radius: 12px;
    border: 1px solid var(--sx-line-27);
    background: rgba(255, 255, 255, 0.035);
}

/* Labels wrap rather than truncate: "Release Date" already needs two lines
   on a phone, and most translations are longer. */
.sx-stat-27 dt {
    margin-bottom: 5px;
    color: var(--sx-faint-27);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .03em;
    text-transform: uppercase;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.sx-stat-27 dd {
    margin: 0;
    color: var(--sx-ink-27);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: break-word;
}

.sx-stat-27 .sx-vol-27 {
    white-space: nowrap;
}

.sx-stat-27 dd .sx-vol-27 {
    padding: 2px 8px;
    font-size: 12px;
}

.sx-stat-27 dd.sx-theme-27 {
    font-size: 12.5px;
    font-weight: 500;
}

.sx-stat-27 .sx-soon-27 {
    padding: 3px 8px;
    font-size: 12px;
    white-space: normal;
}


.sx-card-feat-27 {
    margin: 0;
    color: var(--sx-muted-27);
    font-size: 13px;
    line-height: 1.55;
}

.sx-card-feat-27 strong {
    display: block;
    margin-bottom: 2px;
    color: var(--sx-faint-27);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sx-card-actions-27 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.sx-card-actions-27 .sx-play-27,
.sx-card-actions-27 .sx-review-27,
.sx-card-actions-27 .sx-nodemo-27 {
    min-height: 44px;
    font-size: 14px;
    white-space: normal;
}

/* A narrow card: two stats per row, and the two buttons one above the
   other. Placed after the rules it overrides. */
@container sx-card-27 (max-width: 419px) {
    .sx-stats-27 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sx-card-actions-27 {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

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

.sx-empty-icon-27 {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(169, 72, 248, 0.14);
    color: #d8b4fe;
}

.sx-empty-icon-27 svg {
    width: 26px;
    height: 26px;
}

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

.sx-empty-text-27 {
    max-width: 420px;
    margin: 0 0 8px;
    color: var(--sx-muted-27);
    font-size: 14px;
}

/* --- Pagination --------------------------------------------------------- */

.sx-pager-27 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 40px;
}

.sx-page-btn-27 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 18px;
    border-radius: 14px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sx-ink-27);
    font: 700 14px/1.2 var(--sx-font-27);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.sx-page-btn-27:hover {
    border-color: rgba(169, 72, 248, 0.6);
    background: rgba(169, 72, 248, 0.12);
}

.sx-page-btn-27 svg {
    width: 16px;
    height: 16px;
}

.sx-pager-form-27 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin: 0;
    padding: 4px;
    padding-inline-start: 14px;
    border-radius: 14px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sx-muted-27);
    font-size: 14px;
}

.sx-page-input-27 {
    width: 64px;
    height: 36px;
    margin: 0;
    padding: 0 6px;
    border-radius: 10px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font: 700 16px/1 var(--sx-font-27);
    text-align: center;
    color-scheme: dark;
    -moz-appearance: textfield;
}

.sx-page-input-27:focus {
    outline: 0;
    border-color: rgba(169, 72, 248, 0.75);
    box-shadow: 0 0 0 3px rgba(169, 72, 248, 0.2);
}

.sx-page-go-27 {
    min-height: 36px;
    padding: 6px 16px;
    border: 0;
    border-radius: 10px;
    background-image: var(--sx-grad-loop-27);
    background-size: 200% 100%;
    color: #fff;
    font: 700 14px/1 var(--sx-font-27);
    cursor: pointer;
    transition: background-position .5s var(--sx-ease-27);
}

.sx-page-go-27:hover {
    background-position: 100% 0;
}

@media (max-width: 639px) {
    .sx-pager-form-27 {
        order: -1;
        flex-basis: 100%;
        justify-content: center;
    }

    .sx-page-btn-27 {
        flex: 1 1 0;
        justify-content: center;
    }
}

/* --- Keyboard focus, everywhere in the explorer ------------------------- */

.sx-shell-27 a:focus-visible,
.sx-shell-27 button:focus-visible,
.jp-wrap-27 a:focus-visible,
.jp-wrap-27 button:focus-visible,
.gm-dialog-27 button:focus-visible,
.gm-dialog-27 a:focus-visible,
.sx-dialog-27 button:focus-visible {
    outline: 2px solid var(--sx-teal-27);
    outline-offset: 2px;
}

/* ==========================================================================
   6. Fun Play window
   ========================================================================== */

.gm-dialog-27 {
    --gm-bar-h-27: 60px;
    width: min(1280px, calc(100vw - 48px), calc((100vh - 48px - var(--gm-bar-h-27)) * 16 / 9));
    width: min(1280px, calc(100vw - 48px), calc((100dvh - 48px - var(--gm-bar-h-27)) * 16 / 9));
    min-width: min(520px, calc(100vw - 48px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--sx-ink-27);
    font-family: var(--sx-font-27);
}

.gm-dialog-27::backdrop {
    background: rgba(6, 5, 9, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gm-dialog-27[open] {
    animation: gm-in-27 .45s var(--sx-ease-27);
}

@keyframes gm-in-27 {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: none; }
}

/* Fallback for a browser without <dialog>: the JS adds this class. */
.gm-dialog-27.gm-fallback-27[open],
.sx-dialog-27.gm-fallback-27[open] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.gm-shell-27 {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #0d0c10;
    box-shadow:
        0 40px 120px -30px rgba(0, 0, 0, 0.9),
        0 24px 70px -34px rgba(169, 72, 248, 0.6);
}

/* Gradient hairline border, the same device the live plays bar uses. */
.gm-shell-27::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(169, 72, 248, 0.9), rgba(34, 226, 182, 0.6) 30%, rgba(255, 255, 255, 0.08) 55%, rgba(169, 72, 248, 0.6));
    -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;
    pointer-events: none;
}

.gm-bar-27 {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--gm-bar-h-27);
    padding-inline: 18px 10px;
    border-bottom: 1px solid var(--sx-line-27);
    background: linear-gradient(180deg, rgba(37, 34, 46, 0.98), rgba(23, 21, 27, 0.98));
}

.gm-heading-27 {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gm-live-27 {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sx-teal-27);
    animation: jp-pulse-27 1.8s ease-out infinite;
}

.gm-title-27 {
    overflow: hidden;
    margin: 0;
    color: var(--sx-ink-27);
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gm-tag-27 {
    flex: none;
    padding: 3px 8px;
    border-radius: 7px;
    border: 1px solid rgba(34, 226, 182, 0.4);
    background: rgba(34, 226, 182, 0.1);
    color: #5eead4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gm-tokens-27 {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.gm-tokens-27[hidden] {
    display: none;
}

.gm-pill-27 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding-inline: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sx-ink-27);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gm-pill-27 img {
    width: 20px;
    height: 20px;
}

.gm-ring-27 {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
}

.gm-ring-bg-27 {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 3.5;
}

.gm-ring-fg-27 {
    fill: none;
    stroke: url(#gm-ring-grad-27);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 97.4;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.gm-earned-27 {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding-inline: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
    color: var(--sx-gold-soft-27);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s var(--sx-ease-27);
}

.gm-earned-27:empty {
    display: none;
}

.gm-earned-27.gm-show-27 {
    opacity: 1;
    transform: none;
}

.gm-login-27 {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding-inline: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: var(--sx-gold-soft-27);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}

.gm-login-27:hover {
    background: rgba(251, 191, 36, 0.16);
}

.gm-login-27 img {
    width: 20px;
    height: 20px;
}

.gm-actions-27 {
    display: flex;
    flex: none;
    gap: 6px;
}

.gm-btn-27 {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sx-ink-27);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.gm-btn-27:hover {
    border-color: rgba(34, 226, 182, 0.5);
    background: rgba(34, 226, 182, 0.12);
}

.gm-btn-27[hidden] {
    display: none;
}

.gm-close-27:hover {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.14);
    color: #fecaca;
}

.gm-btn-27 svg {
    width: 18px;
    height: 18px;
}

.gm-btn-27 .gm-fs-exit-27,
.gm-fs-on-27 .gm-fs-enter-27 {
    display: none;
}

.gm-fs-on-27 .gm-fs-exit-27 {
    display: block;
}

.gm-stage-27 {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.gm-frame-27 {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.gm-loader-27 {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background:
        radial-gradient(circle at 50% 42%, rgba(169, 72, 248, 0.2), transparent 55%),
        #0d0c10;
    color: var(--sx-muted-27);
    font-size: 14px;
    font-weight: 600;
    transition: opacity .35s ease, visibility 0s linear .35s;
}

.gm-loaded-27 .gm-loader-27 {
    opacity: 0;
    visibility: hidden;
}

.gm-spinner-27 {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(169, 72, 248, 0), #a948f8, #22e2b6);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    animation: gm-spin-27 .9s linear infinite;
}

@keyframes gm-spin-27 {
    to { transform: rotate(360deg); }
}

/* Full screen: the element fills the display, the stage takes what is left. */
.gm-shell-27:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.gm-shell-27:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.gm-shell-27:fullscreen .gm-stage-27 {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
}

.gm-shell-27:-webkit-full-screen .gm-stage-27 {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
}

.gm-shell-27:fullscreen::before {
    display: none;
}

/* Tablets: the login hint gives way before the title does. */
@media (max-width: 1023px) {
    .gm-login-27 span {
        display: none;
    }

    .gm-login-27 {
        padding-inline: 8px;
    }
}

/* Phones, and any screen too short for a framed window: edge to edge. */
@media (max-width: 767px), (max-height: 520px) {
    .gm-dialog-27 {
        --gm-bar-h-27: 54px;
        width: 100vw;
        min-width: 0;
        height: 100vh;
        height: 100dvh;
        margin: 0;
    }

    .gm-dialog-27[open] {
        animation: gm-up-27 .4s var(--sx-ease-27);
    }

    .gm-shell-27 {
        height: 100%;
        border-radius: 0;
    }

    .gm-shell-27::before,
    .gm-tag-27,
    .gm-live-27 {
        display: none;
    }

    .gm-bar-27 {
        gap: 8px;
        height: calc(var(--gm-bar-h-27) + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0px);
        padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px));
    }

    .gm-title-27 {
        font-size: 15px;
    }

    .gm-pill-27 {
        height: 32px;
        padding-inline: 6px 9px;
        font-size: 12px;
    }

    .gm-pill-27 img,
    .gm-login-27 img {
        width: 18px;
        height: 18px;
    }

    .gm-ring-27 {
        width: 20px;
        height: 20px;
    }

    .gm-btn-27 {
        width: 38px;
        height: 38px;
    }

    .gm-earned-27 {
        position: absolute;
        top: calc(var(--gm-bar-h-27) + env(safe-area-inset-top, 0px) + 10px);
        inset-inline-end: 12px;
        z-index: 4;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
        background: #2a2112;
    }

    .gm-stage-27 {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: auto;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

@keyframes gm-up-27 {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 379px) {
    .gm-pill-balance-27 {
        display: none;
    }
}

/* ==========================================================================
   7. Jackpot bar

   Quiet on purpose: one slim row on desktop, no glow and no motion. It sits
   between the introduction and the games, and must not compete with them.
   ========================================================================== */

.jp-wrap-27 {
    box-sizing: border-box;
    width: 100%;
    max-width: 1056px;
    margin: 20px auto 0;
    padding-inline: 16px;
    color: var(--sx-text-27);
    font-family: var(--sx-font-27);
}

.jp-wrap-27 *,
.jp-wrap-27 *::before,
.jp-wrap-27 *::after {
    box-sizing: border-box;
}

.jp-card-27 {
    display: grid;
    grid-template-areas:
        "brand"
        "stats"
        "cta";
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--sx-line-27);
    background:
        radial-gradient(50% 160% at 0% 50%, rgba(251, 191, 36, 0.05), transparent 70%),
        linear-gradient(180deg, rgba(29, 26, 36, 0.85), rgba(21, 19, 26, 0.9));
}

/* --- Name and the two icon buttons -------------------------------------- */

.jp-brand-27 {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jp-name-27 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.jp-dot-27 {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22e2b6;
    box-shadow: 0 0 0 3px rgba(34, 226, 182, 0.14);
}

.jp-ended-27 .jp-dot-27 {
    background: var(--sx-faint-27);
    box-shadow: none;
}

.jp-title-27 {
    margin: 0;
    background: linear-gradient(90deg, #fde68a, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.jp-state-27 {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--sx-muted-27);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.jp-state-27[hidden] {
    display: none;
}

.jp-icons-27 {
    display: flex;
    flex: none;
    gap: 4px;
    margin-inline-start: auto;
}

.jp-icon-27 {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--sx-muted-27);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.jp-icon-27:hover {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: #fcd34d;
}

.jp-icon-27 svg {
    width: 15px;
    height: 15px;
}

/* --- Figures ------------------------------------------------------------ */

.jp-stats-27 {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "prize tokens"
        "time time";
    gap: 12px 16px;
    margin: 0;
}

.jp-stat-27 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.jp-stat-prize-27 { grid-area: prize; }
.jp-stat-time-27 { grid-area: time; }
.jp-stat-tokens-27 { grid-area: tokens; }

.jp-stat-27 dt {
    color: var(--sx-faint-27);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .07em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.jp-stat-27 dd {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    color: var(--sx-gold-soft-27);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.jp-stat-27 dd img {
    flex: none;
    width: 18px;
    height: 18px;
}

.jp-mult-27 {
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.1);
    color: #fcd34d;
    font-size: 10.5px;
    font-weight: 800;
}

.jp-amount-27 {
    direction: ltr;
    unicode-bidi: isolate;
}

.jp-clock-27 {
    display: flex;
    align-items: flex-start;
    gap: 3px;
}

.jp-seg-27 {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}

.jp-seg-27 b {
    font-weight: 800;
    line-height: 1.1;
}

.jp-seg-27 small {
    margin-top: 3px;
    color: var(--sx-faint-27);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.jp-sep-27 {
    color: rgba(253, 230, 138, 0.35);
    font-weight: 800;
    line-height: 1.1;
}

.jp-ended-27 .jp-seg-27 b {
    color: var(--sx-faint-27);
}

/* --- Call to action ----------------------------------------------------- */

.jp-cta-27 {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.jp-btn-27 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 12px;
    background-image: var(--sx-grad-loop-27);
    background-size: 200% 100%;
    color: #fff;
    font: 700 14px/1.2 var(--sx-font-27);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-position .5s var(--sx-ease-27), opacity .2s ease;
}

.jp-btn-27:hover {
    background-position: 100% 0;
}

.jp-btn-27:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.jp-join-27 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.jp-mine-27 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--sx-faint-27);
    font-size: 12px;
}

.jp-mine-27 b {
    color: var(--sx-gold-soft-27);
    font-variant-numeric: tabular-nums;
}

.jp-join-row-27 {
    display: flex;
    gap: 6px;
}

.jp-input-27 {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding-inline: 12px;
    border-radius: 12px;
    border: 1px solid var(--sx-line-strong-27);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: 600 16px/1 var(--sx-font-27);
    color-scheme: dark;
}

.jp-input-27::placeholder {
    color: var(--sx-faint-27);
    font-size: 14px;
    font-weight: 500;
}

.jp-input-27:focus {
    outline: 0;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.jp-join-row-27 .jp-btn-27 {
    flex: none;
}

.jp-status-27 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.jp-status-27:empty {
    display: none;
}

.jp-status-ok-27 { color: #5eead4; }
.jp-status-err-27 { color: #fda4af; }

.jp-none-27 {
    grid-area: stats;
    margin: 0;
    color: var(--sx-muted-27);
    font-size: 13px;
}

/* Shared with the game window's live dot. */
@keyframes jp-pulse-27 {
    0% { box-shadow: 0 0 0 0 rgba(34, 226, 182, 0.65); }
    80%, 100% { box-shadow: 0 0 0 9px rgba(34, 226, 182, 0); }
}

/* Tablet: name and button share a line, the figures sit under them. */
@media (min-width: 640px) {
    .jp-card-27 {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand cta"
            "stats stats";
        align-items: center;
        gap: 12px 20px;
        padding: 14px 20px;
    }

    .jp-icons-27 {
        margin-inline-start: 4px;
    }

    .jp-stats-27 {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 0;
    }

    .jp-stat-27 {
        padding-inline: 20px;
        border-inline-start: 1px solid var(--sx-line-27);
    }

    .jp-stat-27:first-child {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .jp-join-27 {
        min-width: 250px;
    }
}

/* Desktop: everything on one row. */
@media (min-width: 1024px) {
    .jp-card-27 {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand stats cta";
        gap: 24px;
        padding: 14px 22px;
    }

    .jp-brand-27 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .jp-icons-27 {
        margin-inline-start: 15px;
    }

    .jp-stats-27 {
        justify-content: center;
    }
}

/* ==========================================================================
   8. Jackpot dialogs (how it works, winners)
   ========================================================================== */

.sx-dialog-27 {
    width: min(720px, calc(100vw - 32px));
    max-width: none;
    max-height: min(86vh, 860px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--sx-text-27);
    font-family: var(--sx-font-27);
}

.sx-dialog-wide-27 {
    width: min(980px, calc(100vw - 32px));
}

.sx-dialog-27::backdrop {
    background: rgba(6, 5, 9, 0.74);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sx-dialog-27[open] {
    animation: gm-in-27 .4s var(--sx-ease-27);
}

.sx-dialog-card-27 {
    display: flex;
    flex-direction: column;
    max-height: inherit;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--sx-line-strong-27);
    background:
        radial-gradient(90% 60% at 0% 0%, rgba(169, 72, 248, 0.14), transparent 60%),
        linear-gradient(180deg, #1d1a24, #131117);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

.sx-dialog-head-27 {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 16px 22px;
    border-bottom: 1px solid var(--sx-line-27);
}

.sx-dialog-title-27 {
    margin: 0;
    background: linear-gradient(90deg, #e9d5ff, #a948f8 55%, #22e2b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.sx-dialog-body-27 {
    overflow-y: auto;
    padding: 20px 22px 24px;
    font-size: 14px;
    line-height: 1.65;
    overscroll-behavior: contain;
}

.sx-dialog-body-27 p {
    margin: 0 0 12px;
    color: var(--sx-text-27);
}

.sx-dialog-body-27 h2 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.sx-dialog-body-27 h2:first-child {
    margin-top: 0;
}

.sx-dialog-body-27 ul {
    margin: 8px 0 12px;
    padding-inline-start: 20px;
    color: var(--sx-muted-27);
    list-style: disc;
}

.sx-dialog-body-27 li + li {
    margin-top: 6px;
}

.sx-dialog-body-27 li::marker {
    color: var(--sx-purple-27);
}

@media (max-width: 639px) {
    /* A bottom sheet on phones. */
    .sx-dialog-27,
    .sx-dialog-wide-27 {
        width: 100vw;
        max-height: 90vh;
        max-height: 90dvh;
        margin: auto 0 0;
    }

    .sx-dialog-27[open] {
        animation: gm-up-27 .4s var(--sx-ease-27);
    }

    .sx-dialog-card-27 {
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* Winners table */
.jw-table-27 {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.jw-table-27 th {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--sx-faint-27);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: start;
    text-transform: uppercase;
    white-space: nowrap;
}

.jw-table-27 th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.jw-table-27 th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }

.jw-table-27 td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--sx-line-27);
    vertical-align: top;
}

.jw-table-27 tbody tr:last-child td {
    border-bottom: 0;
}

.jw-names-27 { color: #d8b4fe; font-weight: 600; }
.jw-amount-27 { color: #5eead4; font-weight: 800; white-space: nowrap; }
.jw-tickets-27 { color: var(--sx-gold-soft-27); font-variant-numeric: tabular-nums; }
.jw-chance-27 { color: #93c5fd; font-variant-numeric: tabular-nums; }
.jw-date-27 { color: var(--sx-faint-27); white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 639px) {
    .jw-table-27 thead {
        display: none;
    }

    .jw-table-27,
    .jw-table-27 tbody,
    .jw-table-27 tr,
    .jw-table-27 td {
        display: block;
    }

    .jw-table-27 tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--sx-line-27);
    }

    .jw-table-27 tbody tr:last-child {
        border-bottom: 0;
    }

    .jw-table-27 td {
        display: grid;
        grid-template-columns: minmax(84px, 34%) 1fr;
        gap: 10px;
        padding: 4px 0;
        border: 0;
    }

    .jw-table-27 td::before {
        content: attr(data-label-27);
        color: var(--sx-faint-27);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        /* The amount and date cells are nowrap; their label must not be. */
        white-space: normal;
        overflow-wrap: break-word;
    }
}

/* ==========================================================================
   9. Scripts that must not be letter-spaced
   ========================================================================== */

/* Tracking breaks joined scripts (Arabic, Persian, Urdu) and clusters in
   Bengali and Thai. The uppercase labels keep their spacing everywhere else. */
:is(:lang(ar), :lang(fa), :lang(ur), :lang(bn), :lang(th)) :is(
    .sx-active-label-27, .sx-new-27, .sx-table-27 thead th, .sx-stat-27 dt,
    .sx-card-feat-27 strong, .gm-tag-27, .jp-title-27, .jp-stat-27 dt,
    .jp-seg-27 small, .jw-table-27 th
) {
    letter-spacing: 0;
}

/* Separate rule: a pseudo-element inside :is() invalidates the whole list. */
:is(:lang(ar), :lang(fa), :lang(ur), :lang(bn), :lang(th)) .jw-table-27 td::before {
    letter-spacing: 0;
}

/* ==========================================================================
   10. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .sx-shell-27 *,
    .jp-wrap-27 *,
    .gm-dialog-27,
    .gm-dialog-27 *,
    .sx-dialog-27 {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
