/* Raika global light/dark theme and responsive shell layer.
   External slot-player rules live in raika-slot-player.css. */
:root {
    --raika-font-text: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --raika-font-display: var(--raika-font-text);
}

/* Unified Raika palette: one navy scale, one border family and one accent. */
html[data-theme="dark"] {
    --raika-bg: #0c0f11;
    --raika-bg-soft: #13161b;
    --raika-sidebar-bg: #13161b;
    --raika-surface-1: #0d1a2a;
    --raika-surface-2: #13243a;
    --raika-surface-3: #1a2d46;
    --raika-control-bg: var(--raika-surface-2);
    --raika-border: rgba(113, 166, 224, .16);
    --raika-border-strong: rgba(113, 166, 224, .28);
    --raika-text: #f1f6fc;
    --raika-muted: #8fa2bb;
    --raika-card-gradient-start: #10233a;
    --raika-card-gradient-end: #0c1b2c;
    --raika-card-border: rgba(113, 166, 224, .24);
    --raika-card-shadow: 0 14px 34px rgba(1, 8, 18, .28);
}

html,
body,
body * {
    font-family: var(--raika-font-text) !important;
}

.raika-theme-icon-sun {
    display: none;
}

/* iPad hero artwork must retain the source image's full color and opacity. */
@media (min-width: 768px) and (max-width: 1180px) {
    html body.raika-body .raika-hero-slide img,
    html body.raika-body .raika-hero-wheel,
    html body.raika-body .raika-hero-art,
    html body.raika-body .raika-hero-slots,
    html body.raika-body .raika-hero-originals {
        opacity: 1 !important;
    }
}

/* Desktop referral art contains two mascots. Keep the primary mascot fully in
   the card and move the cropped second mascot cleanly beyond the right edge. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    html body.raika-body .raika-category-strip .raika-promo-referral img {
        translate: 32% 8px !important;
    }
}

html[data-theme="dark"] .raika-avatar-menu {
    color: #e7edf5 !important;
    background: var(--raika-surface-1) !important;
    border-color: var(--raika-border) !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .46) !important;
}

html[data-theme="dark"] .raika-avatar-menu::before {
    display: none !important;
}

html[data-theme="dark"] .raika-avatar-menu .menu > li > a,
html[data-theme="dark"] .raika-avatar-menu .language-trigger {
    min-height: 44px !important;
    padding: 6px 9px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #dce4ee !important;
    background: var(--raika-surface-2) !important;
    border: 1px solid var(--raika-border) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .raika-avatar-menu .menu > li > a:hover,
html[data-theme="dark"] .raika-avatar-menu .menu > li > a:focus-visible,
html[data-theme="dark"] .raika-avatar-menu .language-trigger:hover,
html[data-theme="dark"] .raika-avatar-menu .language-trigger:focus-visible,
html[data-theme="dark"] .raika-avatar-menu .language-picker.is-open .language-trigger {
    color: #ffffff !important;
    background: var(--raika-surface-3) !important;
    border-color: var(--raika-border-strong) !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="dark"] .raika-avatar-menu .menu-icon,
html[data-theme="dark"] .raika-avatar-menu .language-trigger-code,
html[data-theme="dark"] .raika-avatar-menu .language-option-code {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    color: #9dc9ff !important;
    background: var(--raika-surface-3) !important;
    border: 1px solid var(--raika-border-strong) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .raika-avatar-menu .menu-icon svg {
    width: 18px !important;
    height: 18px !important;
}

html[data-theme="dark"] .raika-avatar-menu .menu > li > a::after {
    color: #718096 !important;
    opacity: .7 !important;
}

html[data-theme="dark"] .raika-avatar-menu .menu > li > a:not(.history-btn)::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

html[data-theme="dark"] .raika-avatar-menu .language-trigger-arrow {
    color: #718096 !important;
}

html[data-theme="dark"] .raika-avatar-menu .raika-language-separator {
    border-color: #27323e !important;
}

html[data-theme="dark"] .raika-avatar-menu .language-options {
    color: #dce4ee !important;
    background: var(--raika-surface-1) !important;
    border-color: var(--raika-border) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] .raika-avatar-menu .language-option {
    color: #c4cedb !important;
    background: transparent !important;
}

html[data-theme="dark"] .raika-avatar-menu .language-option:hover,
html[data-theme="dark"] .raika-avatar-menu .language-option.active {
    color: #ffffff !important;
    background: var(--raika-surface-3) !important;
}

html[data-theme="light"] {
    color-scheme: light;
    --raika-bg: #e5eaf0;
    --raika-bg-soft: #edf1f5;
    --raika-panel: rgba(247, 249, 251, .94);
    --raika-panel-strong: #f7f9fb;
    --raika-border: rgba(43, 58, 78, .13);
    --raika-border-strong: rgba(0, 104, 230, .34);
    --raika-text: #172130;
    --raika-muted: #687589;
    --lobby-bg: #e5eaf0;
    --lobby-panel: #f7f9fb;
    --lobby-panel-2: #edf1f5;
    --lobby-panel-3: #e2e8ef;
    --lobby-border: rgba(43, 58, 78, .13);
    --lobby-border-strong: rgba(43, 58, 78, .22);
    --lobby-text: #172130;
    --lobby-muted: #687589;
    --raika-ui-bg: #e5eaf0;
    --raika-ui-surface: #f7f9fb;
    --raika-ui-surface-2: #edf1f5;
    --raika-ui-surface-3: #e2e8ef;
    --raika-ui-border: #d8e0e9;
    --raika-ui-muted: #687589;
    --raika-ui-text: #172130;
    --raika-page-bg: #e5eaf0;
    --raika-page-panel: #f7f9fb;
    --raika-page-panel-2: #edf1f5;
    --raika-page-border: #d8e0e9;
    --raika-page-muted: #687589;
    --raika-surface-1: #f7f9fb;
    --raika-surface-2: #edf1f5;
    --raika-surface-3: #e2e8ef;
    --raika-control-bg: #dbe3ec;
    --raika-card-gradient-start: #f8fafc;
    --raika-card-gradient-end: #eaf1f8;
    --raika-card-border: #d5e0eb;
    --raika-card-shadow: 0 8px 22px rgba(35, 49, 68, .07);
}

html[data-theme="light"],
html[data-theme="light"] body.raika-body,
html[data-theme="light"] .raika-shell,
html[data-theme="light"] .raika-main,
html[data-theme="light"] .raika-page {
    color: #172130 !important;
    background: #e5eaf0 !important;
}

html[data-theme="light"] .raika-topbar {
    background: #e5eaf0 !important;
    border-bottom-color: transparent !important;
}

html[data-theme="light"] .raika-topbar-wordmark,
html[data-theme="light"] .raika-mobile-brand,
html[data-theme="light"] .raika-mobile-brand span {
    color: #111925 !important;
}

html[data-theme="light"] .raika-theme-button {
    color: #56657a;
    background: #ffffff;
    border-color: #d9e1ea;
    box-shadow: 0 5px 15px rgba(35, 49, 68, .08);
}

html[data-theme="light"] .raika-theme-icon-moon {
    display: none;
}

html[data-theme="light"] .raika-theme-icon-sun {
    display: block;
}

html[data-theme="light"] .raika-balance-pill,
html[data-theme="light"] .raika-avatar {
    color: #172130 !important;
    background: #ffffff !important;
    border-color: #d9e1ea !important;
    box-shadow: 0 5px 15px rgba(35, 49, 68, .08) !important;
}

html[data-theme="light"] .raika-balance-pill::before,
html[data-theme="light"] .raika-balance-pill::after {
    opacity: .25;
}

html[data-theme="light"] .raika-sidebar {
    color: #263245 !important;
    background: #edf1f5 !important;
    border-right-color: #dce3eb !important;
}

html[data-theme="light"] .raika-sidebar-switcher,
html[data-theme="light"] .raika-sidebar-search {
    color: #56657a !important;
    background: #edf1f5 !important;
    border-color: #d8e0e9 !important;
}

html[data-theme="light"] .raika-nav-group-label {
    color: #7a8798 !important;
}

html[data-theme="light"] .raika-nav-item {
    color: #4a586c !important;
}

html[data-theme="light"] #desktop-toggle,
html[data-theme="light"] .raika-topbar-left > label[for="sidebar-toggle"] {
    color: #4a586c !important;
}

html[data-theme="light"] #desktop-toggle:hover,
html[data-theme="light"] .raika-topbar-left > label[for="sidebar-toggle"]:hover {
    color: #075fc8 !important;
}

html[data-theme="light"] .raika-nav-item:hover,
html[data-theme="light"] .raika-nav-item.is-active,
html[data-theme="light"] .raika-sidebar-collapsed .raika-nav-item.is-active {
    color: #075fc8 !important;
    background: #e4edf8 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-nav-divider,
html[data-theme="light"] .raika-sidebar-support {
    border-color: #dce3eb !important;
}

html[data-theme="light"] .raika-avatar-menu {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
    box-shadow: 0 18px 42px rgba(35, 49, 68, .18) !important;
}

html[data-theme="light"] .raika-avatar-menu a.history-btn,
html[data-theme="light"] .raika-avatar-menu .language-trigger,
html[data-theme="light"] .raika-avatar-menu .language-options {
    color: #3d4b60 !important;
    background: #f3f6f9 !important;
    border-color: #d8e0e9 !important;
}

.raika-avatar-menu .language-picker,
.raika-avatar-menu .language-trigger,
.raika-avatar-menu .language-option {
    pointer-events: auto !important;
}

.raika-avatar-menu .language-trigger,
.raika-avatar-menu .language-option {
    cursor: pointer !important;
    touch-action: manipulation;
}

.raika-avatar-menu .raika-language-theme-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
    align-items: stretch !important;
    gap: 7px !important;
    width: 100% !important;
}

.raika-avatar-menu .raika-language-theme-row .language-picker {
    min-width: 0 !important;
    width: 100% !important;
}

.raika-avatar-menu .raika-language-theme-row .language-trigger {
    height: 46px !important;
    min-height: 46px !important;
}

.raika-avatar-menu .raika-theme-button--menu {
    display: grid !important;
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 13px !important;
    color: #b7c4d4 !important;
    background: #19212b !important;
    border: 1px solid #2b3745 !important;
    box-shadow: none !important;
}

.raika-avatar-menu .raika-theme-button--menu:hover,
.raika-avatar-menu .raika-theme-button--menu:focus-visible {
    color: #ffffff !important;
    background: #1d2b3c !important;
    border-color: #36577b !important;
    outline: none !important;
}

.raika-avatar-menu .raika-theme-button--menu svg {
    width: 20px !important;
    height: 20px !important;
}

html[data-theme="light"] .raika-avatar-menu .raika-theme-button--menu {
    color: #56657a !important;
    background: #f4f7fa !important;
    border-color: #d8e0e9 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-avatar-menu .raika-theme-button--menu:hover,
html[data-theme="light"] .raika-avatar-menu .raika-theme-button--menu:focus-visible {
    color: #075fc8 !important;
    background: #eaf2fb !important;
    border-color: #c6d7ea !important;
}

/* Calm current-page state for the desktop sidebar: no blue fill or glow. */
html[data-theme="dark"] .raika-sidebar .raika-nav-item.is-active,
html[data-theme="dark"] .raika-sidebar .raika-nav-item.is-active:hover,
html[data-theme="dark"] .raika-sidebar-collapsed .raika-nav-item.is-active {
    color: #f2f5f8 !important;
    background: #1b232d !important;
    border: 1px solid #2b3744 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="dark"] .raika-sidebar .raika-nav-item.is-active .raika-nav-icon {
    color: #cbd6e2 !important;
    filter: none !important;
}

html[data-theme="light"] .raika-sidebar .raika-nav-item.is-active,
html[data-theme="light"] .raika-sidebar .raika-nav-item.is-active:hover,
html[data-theme="light"] .raika-sidebar-collapsed .raika-nav-item.is-active {
    color: #26374b !important;
    background: #e8edf3 !important;
    border: 1px solid #d3dce6 !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (min-width: 1024px) {
    .raika-home .raika-sections {
        gap: 14px !important;
    }

    .raika-home .raika-game-section {
        margin-top: 0 !important;
    }

    .raika-home .raika-section-head {
        min-height: 32px !important;
        margin-bottom: 7px !important;
    }

    .raika-home .raika-game-row {
        grid-auto-columns: clamp(138px, 8.35vw, 160px) !important;
        gap: 10px !important;
        padding: 2px 1px 5px !important;
    }

    .raika-home .raika-game-card {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
        aspect-ratio: 3 / 4 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .raika-home .raika-game-card > img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Empty search state: keep more air between the mascot image and the title. */
.raika-search-empty img {
    margin-bottom: 18px !important;
}

@media (max-width: 767px) {
    .raika-search-empty img {
        margin-bottom: 14px !important;
    }
}

/* Authoritative light search text. The late mobile/desktop search layout rules
   intentionally own sizing, while these values keep typed text readable. */
html[data-theme="light"] body.raika-body .raika-home > .raika-search-controls #search,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-search-controls #search {
    color: #243247 !important;
    -webkit-text-fill-color: #243247 !important;
    caret-color: #087cff !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-search-controls #search::placeholder,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-search-controls #search::placeholder {
    color: #7f8c9d !important;
    -webkit-text-fill-color: #7f8c9d !important;
    opacity: 1 !important;
}

html[data-theme="light"] .raika-avatar-menu::before {
    display: none !important;
}

html[data-theme="light"] .raika-avatar-menu .menu > li > a,
html[data-theme="light"] .raika-avatar-menu .language-trigger {
    min-height: 44px !important;
    padding: 6px 9px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #3d4b60 !important;
    background: #f4f7fa !important;
    border: 1px solid #d8e0e9 !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .raika-avatar-menu .menu > li > a:hover,
html[data-theme="light"] .raika-avatar-menu .menu > li > a:focus-visible,
html[data-theme="light"] .raika-avatar-menu .language-trigger:hover,
html[data-theme="light"] .raika-avatar-menu .language-trigger:focus-visible,
html[data-theme="light"] .raika-avatar-menu .language-picker.is-open .language-trigger {
    color: #075fc8 !important;
    background: #eaf2fb !important;
    border-color: #c6d7ea !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="light"] .raika-avatar-menu .menu-icon,
html[data-theme="light"] .raika-avatar-menu .language-trigger-code,
html[data-theme="light"] .raika-avatar-menu .language-option-code {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    color: #526b88 !important;
    background: #e7eef6 !important;
    border: 1px solid #d2ddea !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-avatar-menu .menu-icon svg {
    width: 18px !important;
    height: 18px !important;
}

html[data-theme="light"] .raika-avatar-menu .menu > li > a::after {
    color: #8795a8 !important;
    opacity: .65 !important;
}

html[data-theme="light"] .raika-avatar-menu .menu > li > a:not(.history-btn)::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
}

html[data-theme="light"] .raika-avatar-menu .language-trigger-arrow {
    color: #8795a8 !important;
}

html[data-theme="light"] .raika-avatar-menu .raika-language-separator {
    border-color: #dfe6ee !important;
}

html[data-theme="light"] .raika-avatar-menu .language-option {
    color: #4b5a6f !important;
    background: transparent !important;
}

html[data-theme="light"] .raika-avatar-menu .language-option:hover,
html[data-theme="light"] .raika-avatar-menu .language-option.active {
    color: #075fc8 !important;
    background: #eaf2fb !important;
}

html[data-theme="light"] .raika-searchbar,
html[data-theme="light"] .raika-search-field,
html[data-theme="light"] .raika-provider-field .ts-control,
html[data-theme="light"] .raika-lobby-tabs {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-searchbar,
html[data-theme="light"] .raika-lobby-tabs,
html[data-theme="light"] .raika-games-categories {
    background: transparent !important;
}

html[data-theme="light"] .raika-games-title-row h1 {
    color: #172130 !important;
}

html[data-theme="light"] .raika-games-categories {
    border-bottom-color: #cfd9e4 !important;
}

html[data-theme="light"] .raika-games-categories button {
    color: #687589 !important;
    background: transparent !important;
}

html[data-theme="light"] .raika-games-categories button:hover,
html[data-theme="light"] .raika-games-categories button:focus-visible,
html[data-theme="light"] .raika-games-categories button.is-active {
    color: #075fc8 !important;
    background: #e6effa !important;
}

html[data-theme="light"] .raika-games-categories button.is-active::after {
    background: #087cff !important;
}

html[data-theme="light"] .raika-games-back {
    color: #56657a !important;
    background: #e5ebf2 !important;
    border: 1px solid #d3dde8 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-games-back:hover,
html[data-theme="light"] .raika-games-back:focus-visible {
    color: #075fc8 !important;
    background: #dfeaf7 !important;
    border-color: #bfd0e3 !important;
}

html[data-theme="light"] .raika-search-field input,
html[data-theme="light"] .raika-provider-field input,
html[data-theme="light"] .raika-provider-field .item,
html[data-theme="light"] .raika-lobby-tabs button {
    color: #536176 !important;
}

html[data-theme="light"] .raika-search-field input::placeholder {
    color: #8a96a6 !important;
}

html[data-theme="light"] .raika-lobby-tabs button:hover,
html[data-theme="light"] .raika-lobby-tabs button.is-active,
html[data-theme="light"] .raika-provider-chips button.is-active {
    color: #075fc8 !important;
    background: #e6effa !important;
}

html[data-theme="light"] .raika-lobby-tabs button[data-provider="inout"] img,
html[data-theme="light"] .raika-games-categories button[data-provider="inout"] img {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(36%) sepia(98%) saturate(2597%) hue-rotate(202deg) brightness(101%) contrast(105%) !important;
}

html[data-theme="light"] .raika-provider-chips button {
    color: #687589;
    background: #ffffff;
    border-color: #d8e0e9;
}

html[data-theme="light"] #providers-wrap .ts-dropdown,
html[data-theme="light"] #providers-wrap .ts-dropdown-content {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
}

html[data-theme="light"] #providers-wrap .ts-dropdown {
    box-shadow: 0 14px 32px rgba(35, 49, 68, .14) !important;
}

html[data-theme="light"] #providers-wrap .ts-dropdown .option {
    color: #405068 !important;
    background: #ffffff !important;
}

html[data-theme="light"] #providers-wrap .ts-dropdown .option.active,
html[data-theme="light"] #providers-wrap .ts-dropdown .option.selected {
    color: #075fc8 !important;
    background: #e6effa !important;
}

html[data-theme="light"] #providers-wrap .ts-dropdown .no-results {
    color: #687589 !important;
}

html[data-theme="light"] .raika-feature-card,
html[data-theme="light"] .raika-promo-bonus,
html[data-theme="light"] .raika-promo-income,
html[data-theme="light"] .raika-promo-vip,
html[data-theme="light"] .raika-promo-referral {
    color: #172130 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 58%, #eaf2fb 100%) !important;
    border-color: #dce5ef !important;
    box-shadow: 0 8px 22px rgba(35, 49, 68, .07) !important;
}

html[data-theme="light"] .raika-feature-card::before,
html[data-theme="light"] .raika-promo-bonus::before,
html[data-theme="light"] .raika-promo-income::before,
html[data-theme="light"] .raika-promo-vip::before,
html[data-theme="light"] .raika-promo-referral::before {
    opacity: 0 !important;
    background: none !important;
    border-color: transparent !important;
}

html[data-theme="light"] .raika-feature-card::after {
    background: transparent !important;
    border-color: #dce5ef !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-feature-card strong {
    color: #172130 !important;
    text-shadow: none !important;
}

html[data-theme="light"] .raika-feature-card small {
    color: #617087 !important;
}

html[data-theme="light"] .raika-feature-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #edf6ff 100%) !important;
    border-color: #b9cce2 !important;
}

html[data-theme="light"] .raika-feature-card:hover::after {
    background: linear-gradient(135deg, #ffffff 0%, #edf6ff 100%) !important;
    border-color: #b9cce2 !important;
    box-shadow: 0 12px 28px rgba(35, 83, 138, .12) !important;
}

html[data-theme="light"] .raika-promo-mobile-label {
    color: #273448 !important;
    background: linear-gradient(180deg, rgba(238, 244, 251, .72), #e5edf7 48%) !important;
}

html[data-theme="light"] .raika-game-launch-title h1 {
    color: #172130 !important;
}

html[data-theme="light"] .raika-game-launch-title span {
    color: #687589 !important;
}

html[data-theme="light"] .raika-game-launch-back,
html[data-theme="light"] .raika-game-launch-action {
    color: #56657a !important;
    background: #ffffff !important;
    border: 1px solid #d8e0e9 !important;
    box-shadow: 0 5px 15px rgba(35, 49, 68, .07) !important;
}

html[data-theme="light"] .raika-game-launch-back:hover,
html[data-theme="light"] .raika-game-launch-action:hover {
    color: #075fc8 !important;
    background: #edf5ff !important;
}

html[data-theme="light"] .raika-game-stage {
    border-color: #cfd9e5 !important;
}

html[data-theme="light"] .raika-game-stage-card {
    color: #172130 !important;
    background: rgba(255, 255, 255, .95) !important;
    border-color: #d4deea !important;
    box-shadow: 0 22px 55px rgba(8, 24, 44, .22) !important;
    backdrop-filter: blur(14px);
}

html[data-theme="light"] .raika-game-stage-card strong {
    color: #172130 !important;
}

html[data-theme="light"] .raika-game-stage-card p {
    color: #687589 !important;
}

html[data-theme="light"] .raika-section-head,
html[data-theme="light"] .raika-section-head h2,
html[data-theme="light"] .raika-section-link {
    color: #1b2738 !important;
}

html[data-theme="light"] .raika-section-link,
html[data-theme="light"] .raika-row-control {
    color: #59677b !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
}

html[data-theme="light"] .raika-row-control:hover:not(:disabled) {
    color: #075fc8 !important;
    background: #e6effa !important;
}

html[data-theme="light"] .raika-game-card {
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
    box-shadow: 0 8px 22px rgba(35, 49, 68, .08) !important;
}

html[data-theme="dark"] .raika-game-card {
    background: var(--raika-surface-1) !important;
    border-color: var(--raika-border) !important;
    box-shadow: 0 8px 22px rgba(1, 8, 18, .18) !important;
}

html[data-theme="light"] .raika-search-empty {
    color: #687589 !important;
    min-height: 330px !important;
    padding: 28px 20px 38px !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-search-empty img {
    width: min(210px, 25vw);
    filter: drop-shadow(0 18px 26px rgba(44, 64, 91, .16)) !important;
}

html[data-theme="light"] .raika-search-empty strong {
    color: #1c293b !important;
}

html[data-theme="light"] .raika-search-empty p {
    color: #68778c !important;
}

html[data-theme="light"] .raika-footer {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-footer-copy strong,
html[data-theme="light"] .raika-footer-link span:nth-child(2) strong {
    color: #1b2738 !important;
}

html[data-theme="light"] .raika-footer-copy > span {
    color: #ffffff !important;
    background: #087cff !important;
    border-color: #087cff !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-footer-copy p,
html[data-theme="light"] .raika-footer-link span:nth-child(2) small {
    color: #718095 !important;
}

html[data-theme="light"] .raika-footer-link,
html[data-theme="light"] .raika-footer-icon {
    color: #405068 !important;
    background: #f3f6f9 !important;
    border-color: #d8e0e9 !important;
}

/* One calm blue system for the footer badge and both action cards. */
html[data-theme="dark"] .raika-footer {
    background: var(--raika-surface-1) !important;
    border-color: var(--raika-border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .raika-footer::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 58%) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .raika-footer-copy > span {
    color: #a9cff8 !important;
    background: var(--raika-surface-2) !important;
    border-color: var(--raika-border-strong) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .raika-footer-link,
html[data-theme="dark"] .raika-footer-link:hover,
html[data-theme="dark"] .raika-footer-link:focus-visible {
    color: #b6c4d5 !important;
    background: var(--raika-surface-2) !important;
    border-color: var(--raika-border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .raika-footer-link:hover,
html[data-theme="dark"] .raika-footer-link:focus-visible {
    background: var(--raika-surface-3) !important;
    border-color: var(--raika-border-strong) !important;
    transform: translateY(-1px) !important;
}

html[data-theme="dark"] .raika-footer-icon {
    color: #a9d2ff !important;
    background: var(--raika-surface-3) !important;
    border-color: var(--raika-border-strong) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-mobile-bottom-nav {
    color: #59677b !important;
    background: rgba(237, 241, 245, .98) !important;
    border-color: #cbd5e0 !important;
    box-shadow: 0 -10px 28px rgba(35, 49, 68, .12) !important;
}

html[data-theme="light"] .raika-mobile-bottom-nav > a,
html[data-theme="light"] .raika-mobile-bottom-nav > button {
    color: #69778a !important;
}

html[data-theme="light"] .raika-mobile-bottom-nav > .is-active {
    color: #075fc8 !important;
    background: #d7e2ef !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    html[data-theme="light"] .raika-mobile-bottom-nav > a:not(.is-active):hover,
    html[data-theme="light"] .raika-mobile-bottom-nav > button:not(.is-active):hover,
    html[data-theme="light"] .raika-mobile-bottom-nav > a:not(.is-active):focus,
    html[data-theme="light"] .raika-mobile-bottom-nav > button:not(.is-active):focus,
    html[data-theme="light"] .raika-mobile-bottom-nav > a:not(.is-active):focus-visible,
    html[data-theme="light"] .raika-mobile-bottom-nav > button:not(.is-active):focus-visible {
        color: #69778a !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

html[data-theme="light"] .modal-box,
html[data-theme="light"] .raika-profile-card,
html[data-theme="light"] .raika-wallet-modal,
html[data-theme="light"] #history_modal .modal-box {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
    box-shadow: 0 24px 60px rgba(35, 49, 68, .22) !important;
}

html[data-theme="light"] .raika-profile-head h2,
html[data-theme="light"] .raika-profile-stats strong,
html[data-theme="light"] .raika-profile-menu b,
html[data-theme="light"] .raika-wallet-modal h2,
html[data-theme="light"] #history-title {
    color: #1b2738 !important;
}

html[data-theme="light"] .raika-profile-stats article,
html[data-theme="light"] .raika-profile-menu button,
html[data-theme="light"] .raika-profile-menu a,
html[data-theme="light"] .raika-profile-language,
html[data-theme="light"] .raika-wallet-balance-row,
html[data-theme="light"] .raika-wallet-controls {
    color: #405068 !important;
    background: #f3f6f9 !important;
    border-color: #d8e0e9 !important;
}

html[data-theme="light"] .raika-profile-language select,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
    color: #273448;
    background-color: #ffffff;
    border-color: #d8e0e9;
}

html[data-theme="light"] #wallet_modal .raika-wallet-modal {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d4deea !important;
    box-shadow: 0 28px 75px rgba(22, 38, 59, .24) !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-modal::before {
    background: none !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-controls {
    color: #273448 !important;
    background: transparent !important;
    border: 0 !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-list {
    background: #eef3f8 !important;
    border-color: #d4deea !important;
    box-shadow: none !important;
}

/* History modal operation cards */
#history_modal .raika-history-row {
    position: relative;
    min-width: 0;
    min-height: 74px !important;
    padding: 10px 11px 10px 13px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 12px !important;
    overflow: hidden;
    color: #eef4fc !important;
    background: linear-gradient(120deg, rgba(24, 34, 48, .98), rgba(13, 22, 34, .98)) !important;
    border: 1px solid rgba(116, 183, 255, .14) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

#history_modal .raika-history-row::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #2188ff;
    opacity: .86;
}

#history_modal .raika-history-row:hover {
    border-color: rgba(116, 183, 255, .3) !important;
    background: linear-gradient(120deg, rgba(27, 40, 57, .99), rgba(15, 26, 40, .99)) !important;
    transform: translateY(-1px);
}

#history_modal .raika-history-primary {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#history_modal .raika-history-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #b9dcff;
    background: linear-gradient(145deg, rgba(32, 137, 255, .2), rgba(6, 64, 137, .22));
    border: 1px solid rgba(116, 183, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    font-size: 20px;
}

#history_modal .raika-history-icon img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

#history_modal .raika-history-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

#history_modal .raika-history-title-row {
    min-width: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}

#history_modal .raika-history-title-row strong {
    overflow: hidden;
    color: #f4f7fb;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#history_modal .raika-history-title-row em {
    padding: 3px 6px;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #7e9ab9;
    background: rgba(116, 183, 255, .075);
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

#history_modal .raika-history-copy time {
    color: #708097;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

#history_modal .raika-history-amounts {
    min-width: 108px;
    display: grid;
    gap: 5px;
}

#history_modal .raika-history-metric,
#history_modal .raika-history-transaction-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
}

#history_modal .raika-history-metric small,
#history_modal .raika-history-transaction-amount small {
    color: #718197;
    font-size: 8px;
    font-weight: 750;
}

#history_modal .raika-history-metric b,
#history_modal .raika-history-metric strong,
#history_modal .raika-history-transaction-amount strong {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #aebdce;
    font-family: var(--raika-font-display);
    font-size: 11px;
    font-weight: 800;
}

#history_modal .raika-history-result {
    padding: 5px 7px;
    border-radius: 9px;
}

#history_modal .raika-history-row.is-win .raika-history-result,
#history_modal .raika-history-row.is-win .raika-history-transaction-amount {
    background: rgba(27, 190, 116, .1);
}

#history_modal .raika-history-row.is-win .raika-history-result strong,
#history_modal .raika-history-row.is-win .raika-history-transaction-amount strong {
    color: #43d996;
}

#history_modal .raika-history-row.is-loss .raika-history-result,
#history_modal .raika-history-row.is-loss .raika-history-transaction-amount {
    background: rgba(235, 91, 100, .09);
}

#history_modal .raika-history-row.is-loss .raika-history-result strong,
#history_modal .raika-history-row.is-loss .raika-history-transaction-amount strong {
    color: #ff7d85;
}

#history_modal .raika-history-transaction-amount {
    min-width: 104px;
    padding: 7px 9px;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

html[data-theme="light"] #history_modal .raika-history-row {
    color: #243348 !important;
    background: linear-gradient(120deg, #ffffff, #f5f8fb) !important;
    border-color: #d8e2ed !important;
    box-shadow: 0 7px 18px rgba(38, 55, 76, .075) !important;
}

html[data-theme="light"] #history_modal .raika-history-row:hover {
    background: linear-gradient(120deg, #ffffff, #edf4fb) !important;
    border-color: #b7d4f3 !important;
}

html[data-theme="light"] #history_modal .raika-history-icon {
    color: #0864cf;
    background: linear-gradient(145deg, #eaf4ff, #dcecff);
    border-color: #c8def5;
}

html[data-theme="light"] #history_modal .raika-history-title-row strong {
    color: #1d2b3e;
}

html[data-theme="light"] #history_modal .raika-history-title-row em {
    color: #647b97;
    background: #edf3f9;
}

html[data-theme="light"] #history_modal .raika-history-copy time,
html[data-theme="light"] #history_modal .raika-history-metric small,
html[data-theme="light"] #history_modal .raika-history-transaction-amount small {
    color: #718096;
}

html[data-theme="light"] #history_modal .raika-history-metric b {
    color: #5b6b80;
}

@media (min-width: 1024px) {
    #history_modal .modal-box {
        width: min(calc(100vw - 28px), 480px) !important;
        max-width: min(calc(100vw - 28px), 480px) !important;
    }
}

@media (max-width: 480px) {
    #history_modal .raika-history-row {
        gap: 8px !important;
    }

    #history_modal .raika-history-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    #history_modal .raika-history-amounts {
        min-width: 96px;
    }

    #history_modal .raika-history-metric small {
        display: none;
    }
}

/* One compact provider selector beside search. */
.raika-home.is-games-view .raika-searchbar {
    grid-template-columns: minmax(0, 1fr) 220px !important;
}

.raika-home.is-games-view #providers-wrap {
    display: block !important;
}

.raika-provider-chips {
    display: none !important;
}

.raika-provider-chips button {
    min-width: 104px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    scroll-snap-align: start;
    transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease !important;
}

.raika-provider-chips button:hover {
    transform: translateY(-1px);
}

.raika-provider-chips button.is-active {
    color: #ffffff !important;
    background: linear-gradient(145deg, #2188ff, #0865d6) !important;
    border-color: #3192ff !important;
    box-shadow: 0 8px 18px rgba(0, 105, 230, .22), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}

.raika-provider-chips button.is-active .raika-lobby-grid-icon i {
    background: #ffffff !important;
}

html[data-theme="light"] .raika-provider-chips button.is-active {
    color: #ffffff !important;
    background: linear-gradient(145deg, #2188ff, #0865d6) !important;
    border-color: #2188ff !important;
    box-shadow: 0 8px 18px rgba(0, 105, 230, .17) !important;
}

@media (max-width: 767px) {
    .raika-home.is-games-view .raika-searchbar {
        grid-template-columns: minmax(0, 1fr) 48px !important;
    }

    .raika-provider-chips {
        margin-right: -14px;
        padding-right: 14px;
    }

    .raika-provider-chips button {
        min-width: 94px !important;
        min-height: 42px !important;
        padding: 0 14px !important;
    }
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-row {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e1eb !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-row:hover {
    background: #f7faff !important;
    border-color: #bfd2e7 !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-label,
html[data-theme="light"] #wallet_modal .raika-wallet-balance-label > span:last-child,
html[data-theme="light"] #wallet_modal #balance-label-text {
    color: #33445a !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-row-icon {
    color: #526f8f !important;
    background: #e5edf7 !important;
    border-color: #cfdae7 !important;
    box-shadow: none !important;
}

html[data-theme="light"] #wallet_modal .toggle {
    background-color: #cbd6e2 !important;
    border-color: #b9c6d4 !important;
    box-shadow: inset 0 1px 3px rgba(35, 49, 68, .16) !important;
}

html[data-theme="light"] #wallet_modal .toggle:checked {
    background-color: #087cff !important;
    border-color: #087cff !important;
    box-shadow: 0 0 0 4px rgba(8, 124, 255, .12) !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-divider {
    color: #65758a !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-divider::before,
html[data-theme="light"] #wallet_modal .raika-wallet-divider::after {
    background-color: #d8e2ed !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-currency-grid {
    background: #ffffff !important;
}

html[data-theme="light"] #wallet_modal .currency-btn {
    color: #405068 !important;
    background: #f3f6fa !important;
    border-color: #d8e1eb !important;
    box-shadow: none !important;
}

html[data-theme="light"] #wallet_modal .currency-btn .raika-currency-code,
html[data-theme="light"] #wallet_modal .currency-btn span:last-child {
    color: #536176 !important;
}

html[data-theme="light"] #wallet_modal .currency-btn:hover {
    color: #075fc8 !important;
    background: #eaf2fb !important;
    border-color: #bed1e6 !important;
    box-shadow: 0 8px 18px rgba(35, 83, 138, .1) !important;
}

html[data-theme="light"] #wallet_modal .currency-btn.btn-active,
html[data-theme="light"] #wallet_modal .currency-btn.btn-success {
    color: #ffffff !important;
    background: #147cff !important;
    border-color: #087cff !important;
    box-shadow: none !important;
}

html[data-theme="light"] #wallet_modal .currency-btn.btn-active .raika-currency-code,
html[data-theme="light"] #wallet_modal .currency-btn.btn-success .raika-currency-code {
    color: #ffffff !important;
}

html[data-theme="light"] .raika-key-page .raika-key-card,
html[data-theme="light"] .lucky-wheel-shell,
html[data-theme="light"] .lucky-wheel-prizes-wrap,
html[data-theme="light"] #referral-root #referral-skeleton > div,
html[data-theme="light"] #referral-root #referral-cards > div,
html[data-theme="light"] #referral-root .bg-base-200,
html[data-theme="light"] #referral-root .bg-base-100,
html[data-theme="light"] .raika-rules-page #policy-content,
html[data-theme="light"] .raika-rules-page #policy-buttons,
html[data-theme="light"] .raika-rain-card,
html[data-theme="light"] .raika-lottery-card,
html[data-theme="light"] .raika-cases-page,
html[data-theme="light"] .raika-case-page,
html[data-theme="light"] .raika-inventory-page {
    color: #273448 !important;
    background: #ffffff !important;
    border-color: #d8e0e9 !important;
}

html[data-theme="light"] .raika-key-benefits span,
html[data-theme="light"] .lucky-wheel-benefits span,
html[data-theme="light"] #referral-root .tabs,
html[data-theme="light"] .raika-rain-info {
    color: #405068 !important;
    background: #f3f6f9 !important;
}

html[data-theme="light"] #referral-root h1,
html[data-theme="light"] #referral-root h2,
html[data-theme="light"] #referral-root h3,
html[data-theme="light"] .raika-key-page h2,
html[data-theme="light"] .lucky-wheel-shell h2,
html[data-theme="light"] .raika-rules-page h2 {
    color: #1b2738 !important;
}

/* Referral page: keep the blue hero, but make the dashboard genuinely light. */
html[data-theme="light"] #referral-root .raika-referral-hero h1 {
    color: #ffffff !important;
}

html[data-theme="light"] #referral-root .raika-referral-hero p {
    color: #c8d8ee !important;
}

html[data-theme="light"] #referral-root .raika-referral-eyebrow {
    color: #ffffff !important;
    background: rgba(8, 124, 255, .9) !important;
    border-color: rgba(255, 255, 255, .28) !important;
}

html[data-theme="light"] #referral-root #referral-cards > div,
html[data-theme="light"] #referral-root #referral-skeleton > div,
html[data-theme="light"] #referral-root .bg-base-200,
html[data-theme="light"] #referral-root .bg-base-100 {
    color: #243247 !important;
    background: #ffffff !important;
    border-color: #d7e1ec !important;
    box-shadow: 0 8px 24px rgba(38, 67, 102, .07) !important;
}

html[data-theme="light"] #referral-root #referral-cards > div::before,
html[data-theme="light"] #referral-root #referral-skeleton > div::before {
    background: linear-gradient(110deg, rgba(255,255,255,.2), transparent 42%, rgba(8,124,255,.045)) !important;
}

html[data-theme="light"] #referral-root #referral-cards > div > span:first-child,
html[data-theme="light"] #referral-root #ref-system-title,
html[data-theme="light"] #referral-root #referral-cards > div .text-xs,
html[data-theme="light"] #referral-root .opacity-60,
html[data-theme="light"] #referral-root .opacity-70,
html[data-theme="light"] #referral-root .label-text {
    color: #718096 !important;
}

html[data-theme="light"] #referral-root #ref-balance,
html[data-theme="light"] #referral-root #ref-earned,
html[data-theme="light"] #referral-root #ref-total,
html[data-theme="light"] #referral-root #ref-active,
html[data-theme="light"] #referral-root #ref-revshare,
html[data-theme="light"] #referral-root .font-bold,
html[data-theme="light"] #referral-root .font-semibold {
    color: #172335 !important;
    text-shadow: none !important;
}

html[data-theme="light"] #referral-root #ref-link,
html[data-theme="light"] #referral-root .input,
html[data-theme="light"] #referral-root .select {
    color: #26354a !important;
    background: #f4f7fa !important;
    border-color: #cfdae6 !important;
    box-shadow: none !important;
}

html[data-theme="light"] #referral-root .tabs {
    color: #526176 !important;
    background: #ffffff !important;
    border: 1px solid #d8e1eb !important;
}

html[data-theme="light"] #referral-root .tab {
    color: #657389 !important;
}

html[data-theme="light"] #referral-root .tab:hover {
    color: #075fc8 !important;
    background: #edf4fc !important;
}

html[data-theme="light"] #referral-root .tab-active {
    color: #ffffff !important;
}

html[data-theme="light"] #referral-root .btn-outline,
html[data-theme="light"] #referral-root .btn-ghost {
    color: #42526a !important;
    background: #f3f6fa !important;
    border-color: #d2dde8 !important;
}

html[data-theme="light"] #referral-root .btn-outline:hover,
html[data-theme="light"] #referral-root .btn-ghost:hover {
    color: #075fc8 !important;
    background: #e7f1fc !important;
    border-color: #b9d4ef !important;
}

html[data-theme="light"] #referral-root .table,
html[data-theme="light"] #referral-root .table th,
html[data-theme="light"] #referral-root .table td {
    color: #34445a !important;
}

html[data-theme="light"] #referral-root .table tbody tr,
html[data-theme="light"] #referral-root .table-zebra tbody tr:nth-child(even) {
    background: #f4f7fa !important;
}

html[data-theme="light"] #referral-root .raika-ref-revshare-card > button:first-of-type {
    background: #edf3f9 !important;
    border-color: #d1dce8 !important;
}

html[data-theme="light"] #referral-root .raika-ref-revshare-card > button:first-of-type img {
    filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(865%) hue-rotate(178deg) brightness(94%) contrast(89%);
}

html[data-theme="light"] #referral-root #referral-cards > .raika-ref-revshare-card > button:last-child {
    color: #075fc8 !important;
    background: #e9f3ff !important;
    border-color: #bdd8f5 !important;
}

/* Revshare details modal in light theme. */
html[data-theme="light"] #revshare-info .raika-payout-scroll {
    color: #26354a !important;
    background: #f7f9fc !important;
    border-color: #cfdbe7 !important;
    box-shadow: 0 28px 80px rgba(31, 50, 75, .22) !important;
}

html[data-theme="light"] #revshare-info .raika-payout-scroll::before {
    background: linear-gradient(115deg, rgba(255,255,255,.72), transparent 36%) !important;
}

html[data-theme="light"] #revshare-info .raika-payout-hero {
    background: linear-gradient(135deg, #e8f2ff, #d9eaff) !important;
    border-bottom-color: #cadbeb !important;
}

html[data-theme="light"] #revshare-info .raika-payout-hero h3 {
    color: #172335 !important;
}

html[data-theme="light"] #revshare-info .raika-payout-hero p {
    color: #65758b !important;
}

html[data-theme="light"] #revshare-info .raika-payout-option,
html[data-theme="light"] #revshare-info details {
    color: #26354a !important;
    background: #ffffff !important;
    border-color: #d4dfea !important;
    box-shadow: none !important;
}

html[data-theme="light"] #revshare-info .raika-payout-option[open] {
    border-color: #a9c9ea !important;
    box-shadow: 0 8px 20px rgba(42, 91, 145, .08) !important;
}

html[data-theme="light"] #revshare-info .raika-payout-summary-title,
html[data-theme="light"] #revshare-info .raika-payout-formula {
    color: #26354a !important;
}

html[data-theme="light"] #revshare-info .raika-payout-description,
html[data-theme="light"] #revshare-info .raika-payout-row {
    color: #637288 !important;
}

html[data-theme="light"] #revshare-info .raika-payout-example {
    color: #34445a !important;
    background: #f2f6fa !important;
    border-color: #d7e1eb !important;
}

html[data-theme="light"] #revshare-info .raika-payout-example-label {
    color: #7a8799 !important;
}

html[data-theme="light"] #revshare-info .raika-payout-support {
    color: #5f7086 !important;
    background: #eaf3fd !important;
    border-color: #c9ddf2 !important;
}

html[data-theme="light"] #revshare-info .raika-payout-link {
    color: #0868d7 !important;
}

html[data-theme="light"] #revshare-info .raika-payout-option summary:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(8, 124, 255, .35) !important;
}

/* Payout options must mask the artwork behind them in the dark modal. */
html[data-theme="dark"] #revshare-info .raika-payout-option,
html[data-theme="dark"] #revshare-info details {
    color: #eef3ff !important;
    background: #0d1727 !important;
    border-color: #203a5c !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #revshare-info .raika-payout-option[open] {
    background: #101d30 !important;
    border-color: #2a5688 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

html[data-theme="dark"] #revshare-info .raika-payout-example {
    background: #080f1c !important;
}

/* Referral payout modal. */
#revshare-info.modal[open],
#revshare-info.modal.modal-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(82px, 10vh, 112px) 18px 22px !important;
    background: rgba(2, 7, 16, .82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2147483400 !important;
}

#revshare-info .raika-payout-modal {
    position: relative;
    display: block !important;
    width: min(760px, calc(100vw - 36px)) !important;
    max-width: 760px !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 28px !important;
    color: #eef3ff !important;
    background: transparent !important;
    box-shadow: none !important;
}

#revshare-info .raika-payout-scroll {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(76dvh, 720px);
    overflow: hidden auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(116, 183, 255, .24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 86% 3%, rgba(27, 137, 255, .26), transparent 31%),
        linear-gradient(155deg, rgba(16, 28, 45, .99), rgba(7, 13, 23, .995));
    box-shadow: 0 36px 100px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .07);
}

#revshare-info .raika-payout-scroll > * {
    position: relative;
    flex: 0 0 auto;
    z-index: 1;
}

#revshare-info .raika-payout-hero {
    position: relative;
    min-height: 182px;
    padding: 36px 300px 30px 36px;
    overflow: visible;
    border-radius: 28px 28px 0 0;
    border-bottom: 1px solid rgba(116, 183, 255, .14);
    background:
        radial-gradient(circle at 72% 30%, rgba(72, 166, 255, .30), transparent 42%),
        linear-gradient(120deg, rgba(17, 54, 98, .98), rgba(8, 26, 51, .92));
}

#revshare-info .raika-payout-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 360px;
    text-align: left;
}

#revshare-info .raika-payout-hero h3 {
    margin: 0 0 10px;
    color: #fff !important;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
}

#revshare-info .raika-payout-hero p {
    max-width: 320px;
    margin: 0;
    color: rgba(226, 234, 249, .68);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}

#revshare-info .raika-payout-cat {
    position: absolute;
    z-index: 4;
    top: -112px;
    right: 42px;
    width: 230px;
    max-width: none;
    pointer-events: none;
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .42));
}

#revshare-info .raika-payout-list {
    display: grid;
    gap: 14px;
    padding: 22px 24px 0;
}

#revshare-info .raika-payout-option {
    overflow: hidden;
    border-radius: 18px;
}

#revshare-info .raika-payout-option summary {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 0 126px 0 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

#revshare-info .raika-payout-option summary::-webkit-details-marker {
    display: none;
}

#revshare-info .raika-payout-option summary::marker {
    content: "";
}

#revshare-info .raika-payout-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(246, 248, 255, .94);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

#revshare-info .raika-payout-summary-title::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 1px;
    opacity: .86;
    transform: rotate(-45deg);
    transition: transform 180ms ease;
}

#revshare-info .raika-payout-option.is-open .raika-payout-summary-title::before,
#revshare-info .raika-payout-option[open] .raika-payout-summary-title::before {
    transform: translateY(-2px) rotate(45deg);
}

#revshare-info .raika-payout-badge {
    position: absolute;
    right: 14px;
    top: 50%;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(135deg, #2495ff, #096ee5);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
}

#revshare-info .ref-system-anim {
    display: grid !important;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: grid-template-rows 260ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1);
}

#revshare-info .raika-payout-option.is-open > .ref-system-anim,
#revshare-info .raika-payout-option[open] > .ref-system-anim {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}

#revshare-info .ref-system-anim-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 18px 18px;
}

#revshare-info .raika-payout-description {
    margin: 0 0 12px;
    color: rgba(229, 234, 249, .72);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

#revshare-info .raika-payout-example {
    padding: 16px;
    border-radius: 15px;
    border: 1px solid rgba(116, 183, 255, .14);
    background: rgba(4, 11, 21, .68) !important;
    text-align: left;
}

#revshare-info .raika-payout-example-label {
    color: rgba(226, 231, 246, .54);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

#revshare-info .raika-payout-formula {
    margin-top: 5px;
    color: rgba(244, 247, 255, .84);
    font-size: 13px;
}

#revshare-info .raika-payout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
    color: rgba(232, 237, 250, .78);
    font-size: 13px;
}

#revshare-info .raika-payout-row strong {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 900;
}

#revshare-info .raika-payout-support {
    margin: 16px 24px 0;
    padding: 14px 16px;
    border-radius: 17px;
    background: rgba(20, 124, 255, .10);
    border: 1px solid rgba(116, 183, 255, .16);
    color: rgba(230, 235, 250, .75);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

#revshare-info .raika-payout-link {
    color: #62adff;
    font-weight: 900;
    text-decoration: none;
}

#revshare-info .raika-payout-action {
    margin: 18px 24px 24px;
}

#revshare-info .raika-payout-action form,
#revshare-info .raika-payout-action .btn {
    width: 100%;
}

#revshare-info .raika-payout-action .btn {
    min-height: 54px;
    border: 0 !important;
    border-radius: 16px !important;
    color: #fff !important;
    background: var(--raika-cta-gradient-2, linear-gradient(135deg, #2498ff, #096ee5)) !important;
    font-weight: 900 !important;
    box-shadow: 0 16px 30px rgba(0, 94, 210, .28) !important;
}

html[data-theme="light"] #revshare-info.modal[open],
html[data-theme="light"] #revshare-info.modal.modal-open {
    background: rgba(15, 30, 50, .42) !important;
}

html[data-theme="light"] #revshare-info .raika-payout-summary-title {
    color: #26354a !important;
}

@media (max-width: 640px) {
    #revshare-info.modal[open],
    #revshare-info.modal.modal-open {
        align-items: flex-end !important;
        padding: 70px 8px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    }

    #revshare-info .raika-payout-modal {
        width: calc(100dvw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        border-radius: 24px !important;
    }

    #revshare-info .raika-payout-scroll {
        max-height: calc(100dvh - 78px - env(safe-area-inset-bottom, 0px));
        border-radius: 24px;
    }

    #revshare-info .raika-payout-hero {
        min-height: 132px;
        padding: 24px 132px 20px 20px;
        border-radius: 24px 24px 0 0;
    }

    #revshare-info .raika-payout-copy {
        max-width: none;
    }

    #revshare-info .raika-payout-hero h3 {
        margin-bottom: 8px;
        font-size: clamp(24px, 7vw, 28px);
    }

    #revshare-info .raika-payout-hero p {
        max-width: 220px;
        font-size: 11px;
        line-height: 1.35;
    }

    #revshare-info .raika-payout-cat {
        display: block;
        top: -58px;
        right: 14px;
        width: 132px;
        filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .40));
    }

    #revshare-info .raika-payout-list {
        gap: 10px;
        padding: 14px 12px 0;
    }

    #revshare-info .raika-payout-option summary {
        min-height: 50px;
        padding: 0 92px 0 14px;
    }

    #revshare-info .raika-payout-summary-title {
        font-size: 15px;
    }

    #revshare-info .ref-system-anim-inner {
        padding: 0 13px 13px;
    }

    #revshare-info .raika-payout-row {
        gap: 10px;
        font-size: 12px;
    }

    #revshare-info .raika-payout-support {
        margin: 12px 12px 0;
        font-size: 12px;
    }

    #revshare-info .raika-payout-action {
        margin: 14px 12px 12px;
    }

    #revshare-info .raika-payout-action .btn {
        min-height: 50px;
    }
}

/* Key activation card in the light theme. */
html[data-theme="light"] .raika-key-page .raika-key-card {
    color: #26354a !important;
    background: #ffffff !important;
    border-color: #cfdbe8 !important;
    box-shadow: 0 18px 44px rgba(37, 70, 108, .13) !important;
}

html[data-theme="light"] .raika-key-page .raika-key-card::before {
    background: linear-gradient(115deg, rgba(255,255,255,.72), transparent 45%) !important;
}

html[data-theme="light"] .raika-key-page .raika-key-icon {
    background: #e8f2ff !important;
    border-color: #cbdff5 !important;
}

html[data-theme="light"] .raika-key-page .raika-key-card-head span,
html[data-theme="light"] .raika-key-page .raika-key-field > span {
    color: #68778d !important;
}

html[data-theme="light"] .raika-key-page .raika-key-card-head strong {
    color: #172335 !important;
}

html[data-theme="light"] .raika-key-page .raika-key-field #key-input {
    color: #172335 !important;
    background: #f1f5f9 !important;
    border-color: #c8d5e3 !important;
    caret-color: #087cff !important;
    box-shadow: inset 0 1px 2px rgba(32, 58, 88, .05) !important;
}

html[data-theme="light"] .raika-key-page .raika-key-field #key-input::placeholder {
    color: #7b8798 !important;
    opacity: 1;
}

html[data-theme="light"] .raika-key-page .raika-key-field #key-input:focus {
    border-color: #6aaef4 !important;
    outline: 3px solid rgba(8, 124, 255, .13) !important;
}

html[data-theme="light"] .raika-key-page .raika-key-note {
    color: #65748a !important;
}

/* Blue key-reward accents instead of the old purple ones. */
.raika-key-page .raika-key-benefits svg {
    color: #55a9ff !important;
}

html[data-theme="dark"] .raika-key-page .raika-key-benefits span {
    background: #111b29 !important;
    border-color: #24486f !important;
}

html[data-theme="light"] .raika-key-page .raika-key-benefits span {
    color: #30435a !important;
    background: #edf5fe !important;
    border-color: #c7dcf2 !important;
}

html[data-theme="light"] .raika-key-page .raika-key-benefits svg {
    color: #087cff !important;
}

/* Lucky-wheel prize cards in the light theme. */
html[data-theme="light"] #app .lucky-wheel-prizes-wrap {
    background: #e7ecf1 !important;
    border-color: #d1d9e2 !important;
    box-shadow: none !important;
}

html[data-theme="light"] #app .lucky-wheel-prizes-title {
    color: #172335 !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card {
    color: #2b3a4f !important;
    background: #f3f6f8 !important;
    border-color: #d4dce4 !important;
    box-shadow: none !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card:hover {
    background: #ffffff !important;
    border-color: #c7d1db !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card img {
    background: #e3e8ed !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card span {
    color: #26354a !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-empty {
    color: #68778c !important;
    background: #eef3f8 !important;
    border-color: #d4dfe9 !important;
}

/* Lucky wheel: keep the same restrained violet/gold identity in the light theme. */
html[data-theme="light"] #app .lucky-wheel-hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(130, 96, 173, .18), transparent 34%),
        radial-gradient(circle at 18% 88%, rgba(197, 149, 77, .12), transparent 32%),
        linear-gradient(135deg, #e7e1ed 0%, #ddd4e7 52%, #dbe1ed 100%) !important;
    border-color: #cdc1d6 !important;
    box-shadow: 0 22px 52px rgba(60, 45, 78, .12) !important;
}

html[data-theme="light"] #app .lucky-wheel-title,
html[data-theme="light"] #app .lucky-wheel-board-head strong {
    color: #2b2436 !important;
}

html[data-theme="light"] #app .lucky-wheel-subtitle,
html[data-theme="light"] #app .lucky-wheel-timer-wrap {
    color: #665b70 !important;
}

html[data-theme="light"] #app .lucky-wheel-benefits span {
    color: #4a3f55 !important;
    background: rgba(255, 255, 255, .52) !important;
    border-color: rgba(146, 105, 164, .2) !important;
}

html[data-theme="light"] #app .lucky-wheel-shell {
    color: #33293e !important;
    background: linear-gradient(155deg, #eee8f2, #ded6e7 78%) !important;
    border-color: rgba(171, 129, 151, .28) !important;
    box-shadow: 0 20px 42px rgba(72, 50, 87, .12), inset 0 1px 0 rgba(255, 255, 255, .7) !important;
}

html[data-theme="light"] #app .lucky-wheel-board-head span {
    color: #76647d !important;
}

html[data-theme="light"] #app .lucky-wheel-prizes-wrap {
    background: #e7e1eb !important;
    border-color: #cec3d4 !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card {
    color: #332b3c !important;
    background: #f5f1f6 !important;
    border-color: #d7ccd9 !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card:hover {
    background: #ffffff !important;
    border-color: #c8b7cc !important;
}

html[data-theme="light"] #app .lucky-wheel-prize-card img {
    background: #e6ddea !important;
}

/* Lucky-wheel result card in the light theme. */
html[data-theme="light"] #lucky-wheel-result-modal > div {
    color: #26354a !important;
    background: #ffffff !important;
    border-color: #d3deea !important;
    box-shadow: 0 28px 72px rgba(26, 45, 68, .24) !important;
}

html[data-theme="light"] #lucky-wheel-result-modal > div::before {
    background: linear-gradient(115deg, rgba(255,255,255,.75), transparent 38%) !important;
}

html[data-theme="light"] #lucky-wheel-result-modal img {
    background: #f3f6fa !important;
    border-color: #d7c38f !important;
    box-shadow: 0 14px 28px rgba(48, 63, 83, .14) !important;
}

html[data-theme="light"] #lucky-wheel-modal-title {
    color: #172335 !important;
    text-shadow: none !important;
}

html[data-theme="light"] #lucky-wheel-modal-text {
    color: #68778c !important;
}

html[data-theme="light"] #lucky-wheel-modal-close {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2189ff, #0878ef 58%, #0754b9) !important;
    border-color: transparent !important;
    box-shadow: 0 14px 27px rgba(8, 100, 214, .22) !important;
}

/* Keep the round arrow badges crisp across every hero CTA. */
.raika-hero .raika-primary-btn::after,
.raika-hero .raika-primary-btn:hover::after,
.raika-hero .raika-primary-btn:focus-visible::after {
    box-shadow: none !important;
}

/* One definitive mobile layout for every card on the home page. */
@media (max-width: 767px) {
    .raika-home,
    .raika-home-panels,
    #home-sections {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home-brand-link {
        margin: 2px 0 8px !important;
        font-size: 28px !important;
        line-height: 1 !important;
    }

    .raika-hero {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        margin-top: 10px !important;
        overflow: hidden !important;
        clip-path: inset(0 round 16px) !important;
        border-radius: 16px !important;
    }

    .raika-hero .slides {
        display: flex !important;
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        overflow: visible !important;
        border-radius: inherit !important;
    }

    .raika-hero-slide {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        flex: 0 0 100% !important;
        padding: 25px 18px 58px !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
        text-align: left !important;
    }

    .raika-hero-copy {
        position: relative !important;
        z-index: 5 !important;
        display: flex !important;
        width: 55% !important;
        max-width: 55% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .raika-hero-brand-slide .raika-hero-copy {
        width: 100% !important;
        max-width: 100% !important;
    }

    .raika-hero-kicker {
        margin-bottom: 10px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .raika-hero-copy h1 {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        max-width: none !important;
        margin: 0 0 10px !important;
        overflow-wrap: normal !important;
        font-size: clamp(27px, 8vw, 34px) !important;
        line-height: 1.03 !important;
        text-align: left !important;
    }

    .raika-hero-copy p,
    .raika-hero-brand-slide .raika-hero-copy p {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        max-width: 100% !important;
        margin: 0 0 16px !important;
        font-size: 12px !important;
        line-height: 1.38 !important;
        text-align: left !important;
    }

    .raika-hero-brand-slide .raika-hero-copy p {
        max-width: 245px !important;
    }

    .raika-hero .raika-primary-btn {
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 43px 0 17px !important;
        align-self: flex-start !important;
        border-radius: 12px !important;
        font-size: 12px !important;
    }

    .raika-hero-title-row {
        width: auto !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
        gap: 10px !important;
    }

    .raika-hero-title-row h1 {
        width: auto !important;
        margin: 0 !important;
    }

    .raika-hero-title-row .raika-hero-wheel {
        width: 54px !important;
        height: 54px !important;
        flex: 0 0 54px !important;
    }

    .raika-hero-art,
    .raika-hero-slots,
    .raika-hero-originals {
        position: absolute !important;
        top: auto !important;
        right: -3% !important;
        bottom: -16px !important;
        left: auto !important;
        z-index: 3 !important;
        width: 57% !important;
        height: 194px !important;
        max-height: 194px !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        translate: none !important;
        transform: none !important;
    }

    .raika-hero-slots {
        right: -6% !important;
        width: 62% !important;
        height: 205px !important;
        max-height: 205px !important;
    }

    .raika-hero-originals {
        right: -5% !important;
        width: 59% !important;
        height: 198px !important;
        max-height: 198px !important;
    }

    .raika-hero-highlights,
    .raika-hero-slide::before {
        display: none !important;
    }

    .raika-hero .raika-hero-arrows {
        right: auto !important;
        bottom: 12px !important;
        left: 50% !important;
        width: auto !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 8px !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
    }

    .raika-hero .raika-hero-arrow {
        position: relative !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        z-index: 21 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .raika-hero-art,
    .raika-hero-slide::after {
        pointer-events: none !important;
    }

    .raika-category-strip {
        display: grid !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, 112px) !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .raika-feature-card {
        position: relative !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 112px !important;
        min-height: 112px !important;
        max-height: 112px !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip-path: inset(0 round 14px) !important;
        border: 0 !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    .raika-feature-card::before,
    .raika-promo-bonus::before,
    .raika-promo-income::before,
    .raika-promo-vip::before,
    .raika-promo-referral::before {
        content: "" !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 0 !important;
        border-radius: 14px !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .raika-feature-card img,
    .raika-feature-card[href="/lucky-wheel"] img {
        top: 2px !important;
        right: 50% !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 2 !important;
        width: 82px !important;
        height: 82px !important;
        object-fit: contain !important;
        translate: none !important;
        transform: translateX(50%) !important;
    }

    .raika-promo-bonus img { width: 92px !important; height: 92px !important; }
    .raika-promo-vip img { width: 88px !important; height: 88px !important; }
    .raika-promo-referral img { width: 98px !important; height: 92px !important; }

    .raika-feature-card > span {
        display: none !important;
    }

    .raika-promo-mobile-label {
        position: absolute !important;
        right: 1px !important;
        bottom: 1px !important;
        left: 1px !important;
        z-index: 4 !important;
        display: block !important;
        min-height: 31px !important;
        padding: 6px 5px 7px !important;
        overflow: hidden !important;
        border-radius: 0 0 13px 13px !important;
        font-size: 12px !important;
        font-style: normal !important;
        font-weight: 800 !important;
        line-height: 18px !important;
        text-align: center !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    html[data-theme="dark"] .raika-feature-card,
    html[data-theme="dark"] .raika-feature-card::before {
        background: linear-gradient(145deg, var(--raika-card-gradient-start), var(--raika-card-gradient-end)) !important;
        border: 1px solid var(--raika-card-border) !important;
    }

    html[data-theme="dark"] .raika-promo-mobile-label {
        color: #f2f5f8 !important;
        background: linear-gradient(180deg, rgba(12, 27, 44, .3), var(--raika-card-gradient-end) 48%) !important;
    }

    html[data-theme="light"] .raika-feature-card,
    html[data-theme="light"] .raika-feature-card::before {
        background: linear-gradient(145deg, #ffffff, #edf4fb) !important;
        border: 1px solid #d5e0eb !important;
    }

    html[data-theme="light"] .raika-promo-mobile-label {
        color: #26354a !important;
        background: linear-gradient(180deg, rgba(237, 244, 251, .28), #edf4fb 48%) !important;
    }

    .raika-game-row {
        box-sizing: border-box !important;
        width: 100% !important;
        margin-inline: 0 !important;
        padding: 2px 1px 7px !important;
        grid-auto-columns: calc((100% - 18px) / 3) !important;
        gap: 9px !important;
        scroll-padding-left: 1px !important;
    }

    .raika-game-grid,
    #grid {
        box-sizing: border-box !important;
        width: 100% !important;
        margin-inline: 0 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .raika-game-card {
        width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: .74 !important;
        overflow: hidden !important;
        border-radius: 11px !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.raika-body,
    .raika-topbar,
    .raika-sidebar,
    .raika-theme-button,
    .raika-balance-pill,
    .raika-mobile-bottom-nav,
    .raika-footer,
    .modal-box {
        transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    }
}
/* Header controls must stay interactive above game boards and page cards. */
.raika-user-actions,
.raika-user-actions > .relative {
    position: relative !important;
    z-index: 10080 !important;
    overflow: visible !important;
}

.raika-user-actions {
    gap: 6px !important;
}

#avatar-menu.raika-avatar-menu {
    z-index: 10090 !important;
}

/* Compact, neutral search clear action. */
.raika-search-field input {
    padding-right: 50px !important;
}

.raika-search-field .raika-clear-search {
    right: 9px !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #7f8b9b !important;
    background: rgba(255, 255, 255, .055) !important;
    box-shadow: none !important;
}

.raika-search-field .raika-clear-search::before,
.raika-search-field .raika-clear-search::after {
    width: 12px !important;
    height: 1.5px !important;
}

.raika-search-field .raika-clear-search:hover,
.raika-search-field .raika-clear-search:focus-visible {
    color: #dce5ef !important;
    background: rgba(255, 255, 255, .1) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

html[data-theme="light"] .raika-search-field .raika-clear-search {
    color: #7a8798 !important;
    background: #e8edf3 !important;
}

html[data-theme="light"] .raika-search-field .raika-clear-search:hover,
html[data-theme="light"] .raika-search-field .raika-clear-search:focus-visible {
    color: #33445a !important;
    background: #dce4ed !important;
}

/* Wallet balance selector: one restrained surface language in both themes. */
#wallet_modal .raika-wallet-balance-list {
    background: #161b21 !important;
    background-image: none !important;
    border-color: #2a3139 !important;
    box-shadow: none !important;
}

#wallet_modal .raika-wallet-balance-row,
#wallet_modal .raika-wallet-balance-row:hover {
    background: #1d232a !important;
    background-image: none !important;
    border-color: #2a3139 !important;
    box-shadow: none !important;
}

#wallet_modal .raika-wallet-balance-row:has(.toggle:checked) {
    background: #202731 !important;
    border-color: #3b5978 !important;
}

#wallet_modal .raika-wallet-row-icon {
    color: #a9c9ea !important;
    background: #29313a !important;
    background-image: none !important;
    border-color: #36414d !important;
    box-shadow: none !important;
}

#wallet_modal .toggle,
#wallet_modal .toggle:checked {
    background-image: none !important;
    box-shadow: none !important;
}

#wallet_modal .toggle {
    border-color: #3a444f !important;
    background-color: #10151b !important;
}

#wallet_modal .toggle:checked {
    border-color: #278bff !important;
    background-color: #278bff !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-list {
    background: #e9eef3 !important;
    border-color: #d5dde6 !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-row,
html[data-theme="light"] #wallet_modal .raika-wallet-balance-row:hover {
    background: #f5f7f9 !important;
    border-color: #d9e0e7 !important;
}

html[data-theme="light"] #wallet_modal .raika-wallet-balance-row:has(.toggle:checked) {
    background: #eef3f8 !important;
    border-color: #b9cce0 !important;
}

/* Feature cards: neutral page cards without the legacy white/colored frame. */
.raika-feature-card,
.raika-feature-card:hover,
.raika-feature-card:focus-visible {
    border: 1px solid var(--raika-card-border) !important;
    outline: 0 !important;
    background: linear-gradient(145deg, var(--raika-card-gradient-start), var(--raika-card-gradient-end)) !important;
    box-shadow: var(--raika-card-shadow) !important;
}

.raika-feature-card::before,
.raika-promo-bonus::before,
.raika-promo-income::before,
.raika-promo-vip::before,
.raika-promo-referral::before {
    border: 1px solid var(--raika-card-border) !important;
    background: linear-gradient(145deg, var(--raika-card-gradient-start), var(--raika-card-gradient-end)) !important;
    box-shadow: var(--raika-card-shadow) !important;
}

.raika-feature-card::after {
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .raika-feature-card,
html[data-theme="light"] .raika-feature-card:hover,
html[data-theme="light"] .raika-feature-card:focus-visible,
html[data-theme="light"] .raika-feature-card::before,
html[data-theme="light"] .raika-promo-bonus::before,
html[data-theme="light"] .raika-promo-income::before,
html[data-theme="light"] .raika-promo-vip::before,
html[data-theme="light"] .raika-promo-referral::before {
    border-color: #d5e0eb !important;
    background: linear-gradient(145deg, #f8fafc, #eaf1f8) !important;
    box-shadow: none !important;
}

/* Keep the sticky header on the same surface as the page itself. */
.raika-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10030 !important;
    background: var(--lobby-bg) !important;
    border-bottom-color: transparent !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 10030 !important;
        background: rgba(9, 13, 15, 0.94) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }
}

/* Footer action chevrons belong at the right edge, never on a second row. */
.raika-footer-link {
    grid-template-columns: 46px minmax(0, 1fr) 20px !important;
}

.raika-footer-arrow {
    display: block !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    color: rgba(173, 188, 211, .78) !important;
}

@media (min-width: 641px) and (max-width: 1440px) {
    .raika-footer-link {
        grid-template-columns: 38px minmax(0, 1fr) 18px !important;
    }

    .raika-footer-arrow {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
    }
}

@media (max-width: 640px) {
    .raika-footer-link {
        grid-template-columns: 40px minmax(0, 1fr) 18px !important;
    }

    .raika-footer-arrow {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
    }
}

/* Telegram Desktop Mini App compact/fullscreen switch. */
#webapp-fullscreen-toggle {
    box-sizing: border-box !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    left: 14px !important;
    bottom: 14px !important;
    z-index: 2147483000 !important;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 8px !important;
    border: 1px solid #2b3541 !important;
    border-radius: 11px !important;
    color: #aab7c8 !important;
    background: #171d24 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28) !important;
}

body.raika-mobile-webapp #webapp-fullscreen-toggle {
    display: inline-flex !important;
    left: 12px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}

body.raika-desktop-webapp #webapp-fullscreen-toggle {
    display: inline-flex !important;
}

#webapp-fullscreen-toggle:hover,
#webapp-fullscreen-toggle:focus-visible,
#webapp-fullscreen-toggle.is-fullscreen {
    color: #eef4fb !important;
    background: #202833 !important;
    border-color: #3a4654 !important;
}

#webapp-fullscreen-toggle svg,
#webapp-fullscreen-toggle svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

html[data-theme="light"] #webapp-fullscreen-toggle {
    color: #56657a !important;
    background: #f4f7fa !important;
    border-color: #d3dce6 !important;
    box-shadow: 0 8px 20px rgba(35, 51, 73, .14) !important;
}

/* Search and provider picker are one visual control pair. */
.raika-home.is-games-view .raika-searchbar {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.raika-home.is-games-view .raika-search-field,
.raika-home.is-games-view #providers-wrap,
.raika-home.is-games-view #providers-wrap .ts-wrapper,
.raika-home.is-games-view #providers-wrap .ts-control {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 18px !important;
}

.raika-home.is-games-view .raika-search-field,
.raika-home.is-games-view #providers-wrap .ts-control {
    color: #98a4b5 !important;
    background: var(--raika-control-bg, #13243a) !important;
    border: 1px solid var(--raika-border) !important;
    box-shadow: none !important;
}

.raika-home.is-games-view #providers-wrap {
    display: block !important;
    overflow: visible !important;
}

.raika-home.is-games-view #providers-wrap .ts-control {
    padding: 0 42px 0 46px !important;
    align-items: center !important;
}

.raika-home.is-games-view #providers-wrap .ts-control .item,
.raika-home.is-games-view #providers-wrap .ts-control input {
    color: #98a4b5 !important;
}

.raika-home.is-games-view #providers-wrap .left-icon {
    color: #aab6c8 !important;
}

html[data-theme="light"] .raika-home.is-games-view .raika-search-field,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .ts-control {
    color: #5d6a7d !important;
    background: #e5eaf0 !important;
    border-color: #d3dbe4 !important;
}

html[data-theme="light"] .raika-home.is-games-view #providers-wrap .ts-control .item,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .ts-control input,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .left-icon {
    color: #5d6a7d !important;
}

@media (max-width: 767px) {
    .raika-home.is-games-view .raika-searchbar {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 34px 0 42px !important;
        color: #98a4b5 !important;
    }
}

/* Final games search/provider pair: identical controls, no separate blue provider pill. */
.raika-home.is-games-view .raika-searchbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 12px !important;
}

.raika-home.is-games-view .raika-search-field,
.raika-home.is-games-view #providers-wrap,
.raika-home.is-games-view #providers-wrap .ts-wrapper,
.raika-home.is-games-view #providers-wrap .ts-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 18px !important;
}

.raika-home.is-games-view .raika-search-field,
.raika-home.is-games-view #providers-wrap .ts-control {
    color: #98a4b5 !important;
    background: var(--raika-control-bg, #13243a) !important;
    border: 1px solid var(--raika-border) !important;
    box-shadow: none !important;
}

.raika-home.is-games-view .raika-search-field input,
.raika-home.is-games-view #providers-wrap .ts-control .item,
.raika-home.is-games-view #providers-wrap .ts-control input {
    color: #aab4c4 !important;
    font-size: 16px !important;
    font-weight: 550 !important;
}

.raika-home.is-games-view .raika-search-field input::placeholder,
.raika-home.is-games-view #providers-wrap .ts-control input::placeholder {
    color: #8f9aac !important;
}

.raika-home.is-games-view #providers-wrap .left-icon {
    left: 20px !important;
    width: 24px !important;
    color: #aab6c8 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.raika-home.is-games-view #providers-wrap .left-icon svg,
.raika-home.is-games-view #providers-wrap .left-icon img {
    width: 24px !important;
    height: 24px !important;
}

.raika-home.is-games-view #providers-wrap .ts-control {
    padding: 0 42px 0 58px !important;
}

html[data-theme="light"] .raika-home.is-games-view .raika-search-field,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .ts-control {
    color: #5d6a7d !important;
    background: #e5eaf0 !important;
    border-color: #d3dbe4 !important;
}

html[data-theme="light"] .raika-home.is-games-view .raika-search-field input,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .ts-control .item,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .ts-control input,
html[data-theme="light"] .raika-home.is-games-view #providers-wrap .left-icon {
    color: #5d6a7d !important;
}

/* Final home search/provider match: provider must be the same control as search. */
body.raika-body .raika-home .raika-searchbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 12px !important;
}

body.raika-body .raika-home .raika-search-field,
body.raika-body .raika-home #providers-wrap,
body.raika-body .raika-home #providers-wrap .ts-wrapper,
body.raika-body .raika-home #providers-wrap .ts-control {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 18px !important;
}

body.raika-body .raika-home #providers-wrap {
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.raika-body .raika-home .raika-search-field,
body.raika-body .raika-home #providers-wrap .ts-wrapper,
body.raika-body .raika-home #providers-wrap .ts-control {
    color: #aab4c4 !important;
    background: var(--raika-control-bg, #13243a) !important;
    border: 1px solid var(--raika-border) !important;
    box-shadow: none !important;
}

body.raika-body .raika-home #providers-wrap .ts-wrapper {
    padding: 0 !important;
}

body.raika-body .raika-home #providers-wrap .ts-control {
    display: flex !important;
    align-items: center !important;
    padding: 0 42px 0 58px !important;
}

body.raika-body .raika-home .raika-search-field input,
body.raika-body .raika-home #providers-wrap .ts-control .item,
body.raika-body .raika-home #providers-wrap .ts-control input {
    color: #aab4c4 !important;
    font-size: 16px !important;
    font-weight: 550 !important;
}

body.raika-body .raika-home #providers-wrap .left-icon {
    left: 20px !important;
    width: 24px !important;
    height: 24px !important;
    color: #aab6c8 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.raika-body .raika-home #providers-wrap .left-icon svg,
body.raika-body .raika-home #providers-wrap .left-icon img {
    width: 24px !important;
    height: 24px !important;
}

html[data-theme="light"] body.raika-body .raika-home .raika-search-field,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-wrapper,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-control {
    color: #5d6a7d !important;
    background: #e5eaf0 !important;
    border-color: #d3dbe4 !important;
}

/* Final provider sizing fix: search stays wide, provider keeps matching style without stretching. */
body.raika-body .raika-home .raika-searchbar {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 14vw, 190px) !important;
}

body.raika-body .raika-home #providers-wrap {
    position: relative !important;
}

body.raika-body .raika-home #providers-wrap .ts-wrapper,
body.raika-body .raika-home #providers-wrap .ts-control {
    width: 100% !important;
}

body.raika-body .raika-home #providers-wrap .ts-wrapper {
    background: transparent !important;
    border: 0 !important;
}

body.raika-body .raika-home #providers-wrap .left-icon {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    display: grid !important;
    place-items: center !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-home .raika-searchbar {
        grid-template-columns: minmax(0, 1fr) 132px !important;
        gap: 10px !important;
    }

    body.raika-body .raika-home .raika-search-field,
    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        border-radius: 17px !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-control {
        padding: 0 24px 0 42px !important;
    }

    body.raika-body .raika-home #providers-wrap .left-icon {
        left: 14px !important;
    }
}

/* After removing category tabs, place the search/provider pair where that row was. */
body.raika-body .raika-home.is-games-view {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
}

body.raika-body .raika-home.is-games-view > .raika-searchbar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    width: min(100%, 560px) !important;
    max-width: 560px !important;
    margin: 0 0 18px !important;
}

body.raika-body .raika-home.is-games-view > .raika-sections {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 16px !important;
    }
}

@media (min-width: 1024px) {
    body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        width: min(100%, 560px) !important;
        max-width: 560px !important;
        margin: 0 !important;
    }
}

@media (min-width: 1024px) {
    body.raika-body .raika-balance-pill {
        width: auto !important;
        min-width: 124px !important;
        max-width: max-content !important;
        height: 42px !important;
        padding: 0 8px 0 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-balance-pill::before {
        content: none !important;
        display: none !important;
    }

    body.raika-body .raika-balance-pill #balance,
    body.raika-body .raika-balance-pill #no-balance {
        flex: 0 0 auto !important;
    }

    body.raika-body .raika-balance-pill .raika-balance-plus {
        flex: 0 0 28px !important;
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin-left: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 767px) {
    body.raika-body .raika-home.is-games-view {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        height: auto !important;
        min-height: 54px !important;
        margin: 8px 0 16px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home .raika-search-field {
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        overflow: visible !important;
        border-radius: 17px !important;
        background: var(--raika-control-bg, #13243a) !important;
        border-color: var(--raika-border) !important;
    }

    body.raika-body .raika-home .raika-search-field input {
        width: 100% !important;
        padding: 0 34px 0 46px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        color: #aab4c4 !important;
        font-size: 14px !important;
    }

    body.raika-body .raika-home .raika-search-field .raika-field-icon {
        top: 50% !important;
        left: 16px !important;
        width: 20px !important;
        height: 20px !important;
        transform: translateY(-50%) !important;
    }

    body.raika-body .raika-home .raika-provider-field,
    body.raika-body .raika-home #providers-wrap {
        display: block !important;
        flex: 0 0 132px !important;
        width: 132px !important;
        min-width: 132px !important;
        max-width: 132px !important;
        height: 54px !important;
        min-height: 54px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control {
        width: 132px !important;
        min-width: 132px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        border-radius: 17px !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-control {
        padding: 0 18px 0 42px !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-control .item,
    body.raika-body .raika-home #providers-wrap .ts-control input {
        min-width: 0 !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

body.raika-body #providers-wrap .ts-control {
    position: relative !important;
    cursor: pointer !important;
    user-select: none !important;
}

body.raika-body #providers-wrap .ts-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .72;
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
}

body.raika-body #providers-wrap .ts-control input {
    caret-color: transparent !important;
    cursor: pointer !important;
    user-select: none !important;
}

body.raika-body #providers-wrap .ts-control .item {
    cursor: pointer !important;
    pointer-events: none !important;
}

body.raika-body #providers-wrap .raika-provider-placeholder {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    color: #aab4c4;
    font-size: 16px;
    font-weight: 550;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

body.raika-body #providers-wrap .raika-provider-placeholder.hidden {
    display: none !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-home #providers-wrap .ts-control {
        padding-right: 32px !important;
    }

    body.raika-body #providers-wrap .raika-provider-placeholder {
        font-size: 14px;
    }

body.raika-body #providers-wrap .ts-control::after {
        right: 13px;
        width: 7px;
        height: 7px;
    }
}

body.raika-body .raika-sidebar-support {
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
}

body.raika-body .raika-sidebar-support .raika-nav-item {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.raika-body .raika-sidebar-support .raika-nav-item > span:not(.raika-nav-external) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.raika-body .raika-sidebar-support .raika-support-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 58px !important;
    min-height: 34px !important;
    margin-left: auto !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: #0878ff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.raika-body .raika-sidebar-section,
body.raika-body .raika-nav-accordion {
    width: 100% !important;
}

body.raika-body .raika-nav-accordion > summary {
    list-style: none !important;
    cursor: pointer !important;
}

body.raika-body .raika-nav-accordion > summary::marker {
    content: "" !important;
    display: none !important;
}

body.raika-body .raika-nav-accordion > summary::-webkit-details-marker {
    display: none !important;
}

body.raika-body #sidebar .raika-nav-accordion > summary.raika-nav-summary::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

body.raika-body .raika-nav-summary {
    position: relative !important;
}

body.raika-body .raika-nav-chevron {
    width: 18px !important;
    height: 18px !important;
    margin-left: auto !important;
    flex: 0 0 18px !important;
    color: #8793a4 !important;
    transition: transform 160ms ease, color 160ms ease !important;
}

body.raika-body .raika-nav-accordion[open] .raika-nav-chevron {
    transform: rotate(180deg) !important;
    color: #c8d2df !important;
}

body.raika-body .raika-nav-sublist {
    display: grid !important;
    gap: 5px !important;
    margin: 6px 0 4px !important;
    padding: 0 !important;
}

body.raika-body .raika-nav-sublist .raika-nav-item {
    min-height: 42px !important;
    padding: 9px 12px 9px 18px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    color: #b9c3d0 !important;
    background: transparent !important;
}

body.raika-body .raika-nav-sublist .raika-nav-item:hover,
body.raika-body .raika-nav-sublist .raika-nav-item.is-active {
    color: #f4f8ff !important;
    background: rgba(8, 124, 255, 0.10) !important;
}

body.raika-body .raika-nav-sublist .raika-nav-icon {
    width: 19px !important;
    height: 19px !important;
    color: #9facbd !important;
}

body.raika-body .raika-nav-sublist .raika-nav-item.is-active .raika-nav-icon {
    color: #66acff !important;
}

body.raika-body .raika-row-controls {
    position: static !important;
    display: inline-grid !important;
    grid-template-columns: 34px 34px auto !important;
    grid-auto-flow: column !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.raika-body .raika-row-controls .raika-row-control,
body.raika-body .raika-row-controls .raika-section-link {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    color: #aeb8c7 !important;
    background: rgba(162, 174, 189, 0.08) !important;
    border: 1px solid rgba(162, 174, 189, 0.06) !important;
    box-shadow: none !important;
}

body.raika-body .raika-row-controls .raika-row-control {
    width: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    padding: 0 !important;
}

body.raika-body .raika-row-controls .raika-row-control[data-row-scroll="prev"] {
    order: 0 !important;
    grid-column: 1 !important;
}

body.raika-body .raika-row-controls .raika-section-link {
    order: 2 !important;
    grid-column: 3 !important;
    width: auto !important;
    min-width: 44px !important;
    padding: 0 12px !important;
    flex: 0 0 auto !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.raika-body .raika-row-controls .raika-row-control[data-row-scroll="next"] {
    order: 1 !important;
    grid-column: 2 !important;
}

body.raika-body .raika-row-controls .raika-row-control svg {
    width: 16px !important;
    height: 16px !important;
}

body.raika-body .raika-row-controls .raika-row-control:disabled {
    opacity: 0.48 !important;
}

@media (hover: hover) {
    body.raika-body .raika-row-controls .raika-row-control:hover:not(:disabled),
    body.raika-body .raika-row-controls .raika-section-link:hover {
        color: #ffffff !important;
        background: rgba(31, 39, 50, 0.96) !important;
        border-color: rgba(116, 183, 255, 0.16) !important;
    }
}

@media (max-width: 1023px) {
    body.raika-body .raika-sidebar {
        position: relative !important;
        padding-top: calc(18px + env(safe-area-inset-top, 0px)) !important;
        gap: 9px !important;
    }

    body.raika-body #sidebar .raika-sidebar-close {
        position: absolute !important;
        top: calc(18px + env(safe-area-inset-top, 0px)) !important;
        right: 32px !important;
        z-index: 3 !important;
        width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    body.raika-body .raika-sidebar-wordmark {
        display: flex !important;
        min-height: 98px !important;
        margin: 0 0 8px !important;
        padding: 0 96px 0 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    body.raika-body .raika-sidebar-wordmark > a {
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    body.raika-body .raika-sidebar-wordmark > a img {
        width: 104px !important;
        max-width: 104px !important;
        height: auto !important;
        max-height: 88px !important;
        object-fit: contain !important;
    }

    body.raika-body .raika-sidebar .raika-nav-group-label {
        margin-top: 0 !important;
    }

    body.raika-body .raika-nav-sublist {
        gap: 8px !important;
        margin: 8px 0 6px !important;
    }

    body.raika-body .raika-nav-sublist .raika-nav-item {
        min-height: 50px !important;
        padding: 13px 18px 13px 28px !important;
        border-radius: 15px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    body.raika-body #sidebar .raika-sidebar-close {
        right: 28px !important;
        width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        border-radius: 17px !important;
    }

    body.raika-body .raika-sidebar-wordmark {
        min-height: 88px !important;
        margin-bottom: 6px !important;
        padding: 0 88px 0 0 !important;
    }

    body.raika-body .raika-sidebar-wordmark > a img {
        width: 94px !important;
        max-width: 94px !important;
        max-height: 80px !important;
    }
}

@media (max-width: 767px) {
    body.raika-body:not(.raika-slot-immersive) .raika-topbar {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 10040 !important;
        width: 100% !important;
        background: rgba(9, 13, 15, 0.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    body.raika-body:not(.raika-slot-immersive) .raika-app-content {
        padding-top: 64px !important;
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important;
        scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.raika-body:not(.raika-slot-immersive) .raika-mobile-bottom-nav,
    body.raika-body.raika-mobile-nav-hidden:not(.raika-slot-immersive) .raika-mobile-bottom-nav {
        display: grid !important;
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.28) !important;
    }

    body.raika-body .raika-mobile-swipe-zone,
    body.raika-body.raika-mobile-nav-hidden .raika-mobile-swipe-zone {
        display: none !important;
        pointer-events: none !important;
    }

    body.raika-body.raika-mobile-immersive:not(.raika-slot-immersive),
    body.raika-body.raika-mobile-immersive:not(.raika-slot-immersive) .raika-shell,
    body.raika-body.raika-mobile-immersive:not(.raika-slot-immersive) .raika-main,
    body.raika-body.raika-mobile-immersive:not(.raika-slot-immersive) .raika-page {
        height: auto !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    body.raika-body.raika-mobile-immersive:not(.raika-slot-immersive) .raika-app-content {
        height: auto !important;
        min-height: calc(100dvh - 64px) !important;
        overflow: visible !important;
        padding: 64px 16px calc(100px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

body.raika-body #providers-wrap .raika-provider-clear {
    position: absolute !important;
    top: 50% !important;
    right: 38px !important;
    z-index: 3 !important;
    display: grid !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #c4cfdd !important;
    background: rgba(148, 163, 184, 0.14) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
}

body.raika-body #providers-wrap .raika-provider-clear::before,
body.raika-body #providers-wrap .raika-provider-clear::after {
    content: "" !important;
    position: absolute !important;
    width: 11px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
}

body.raika-body #providers-wrap .raika-provider-clear::before {
    transform: rotate(45deg) !important;
}

body.raika-body #providers-wrap .raika-provider-clear::after {
    transform: rotate(-45deg) !important;
}

body.raika-body #providers-wrap .raika-provider-clear.hidden {
    display: none !important;
}

body.raika-body #providers-wrap .ts-control.has-provider-value {
    padding-right: 70px !important;
}

body.raika-body #providers-wrap .ts-control:has(.raika-provider-clear:not(.hidden)) {
    padding-right: 70px !important;
}

html[data-theme="light"] body.raika-body #providers-wrap .raika-provider-clear {
    color: #5d6a7d !important;
    background: rgba(83, 103, 128, 0.12) !important;
}

@media (max-width: 767px) {
    body.raika-body #providers-wrap .raika-provider-clear {
        right: 30px !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }

    body.raika-body #providers-wrap .ts-control.has-provider-value {
        padding-right: 58px !important;
    }

    body.raika-body #providers-wrap .ts-control:has(.raika-provider-clear:not(.hidden)) {
        padding-right: 58px !important;
    }

    body.raika-body .raika-mobile-bottom-nav > a,
    body.raika-body .raika-mobile-bottom-nav > button {
        color: #aeb9c8 !important;
        opacity: 1 !important;
    }

    body.raika-body .raika-mobile-bottom-nav > a svg,
    body.raika-body .raika-mobile-bottom-nav > button svg {
        opacity: 1 !important;
    }

    body.raika-body .raika-mobile-bottom-nav > .is-active,
    body.raika-body .raika-mobile-bottom-nav > .is-active:focus,
    body.raika-body .raika-mobile-bottom-nav > .is-active:focus-visible {
        color: #f7fbff !important;
        background: #252b34 !important;
        box-shadow: none !important;
    }

    html[data-theme="light"] body.raika-body .raika-mobile-bottom-nav {
        color: #58677b !important;
        background: rgba(238, 243, 248, 0.98) !important;
        border-color: #d3dce7 !important;
        box-shadow: 0 -12px 28px rgba(38, 52, 72, 0.14) !important;
    }

    html[data-theme="light"] body.raika-body .raika-mobile-bottom-nav > a,
    html[data-theme="light"] body.raika-body .raika-mobile-bottom-nav > button {
        color: #5f6f84 !important;
        opacity: 1 !important;
    }

    html[data-theme="light"] body.raika-body .raika-mobile-bottom-nav > .is-active,
    html[data-theme="light"] body.raika-body .raika-mobile-bottom-nav > .is-active:focus,
    html[data-theme="light"] body.raika-body .raika-mobile-bottom-nav > .is-active:focus-visible {
        color: #0c65cc !important;
        background: #dbe8f5 !important;
        box-shadow: none !important;
    }

    html[data-theme="light"] body.raika-body:not(.raika-slot-immersive) .raika-topbar {
        background: rgba(238, 243, 248, 0.96) !important;
        border-bottom-color: rgba(42, 58, 78, 0.08) !important;
    }
}

@media (max-width: 1023px) {
    html[data-theme="dark"] body.raika-body #sidebar .raika-sidebar {
        color: #d1dbe8 !important;
        background: var(--raika-surface-1) !important;
        border-right-color: var(--raika-border) !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-sidebar-close,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-item {
        color: #d1dbe8 !important;
        background: var(--raika-surface-2) !important;
        border-color: var(--raika-border) !important;
        opacity: 1 !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-item .raika-nav-icon {
        color: #d1dbe8 !important;
        opacity: 1 !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-item:hover,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-item.is-active {
        color: #ffffff !important;
        background: var(--raika-surface-3) !important;
        border-color: var(--raika-border-strong) !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
        color: #b9c3d0 !important;
        background: rgba(10, 18, 32, 0.42) !important;
        border-color: rgba(38, 49, 61, 0.72) !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active {
        color: #ffffff !important;
        background: var(--raika-surface-3) !important;
        border-color: var(--raika-border-strong) !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-sidebar {
        color: #243348 !important;
        background: linear-gradient(180deg, #f8fbff 0%, #edf3f9 100%) !important;
        border-right-color: #d7e0ea !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-close,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item {
        color: #526176 !important;
        background: #edf3f9 !important;
        border-color: #dbe4ee !important;
        opacity: 1 !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item .raika-nav-icon {
        color: #526176 !important;
        opacity: 1 !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item span {
        color: inherit !important;
        opacity: 1 !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item:hover,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item.is-active {
        color: #182538 !important;
        background: #ffffff !important;
        border-color: #d8e2ed !important;
        box-shadow: none !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
        color: #526176 !important;
        background: rgba(255, 255, 255, 0.58) !important;
        border-color: #dbe4ee !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active {
        color: #182538 !important;
        background: #ffffff !important;
        border-color: #d8e2ed !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-group-label {
        color: #7c8a9d !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-nav-divider,
    html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-support {
        border-color: #d7e0ea !important;
    }
}

/* Provider selector polish: desktop clear button spacing, mobile second row. */
body.raika-body #providers-wrap .raika-provider-clear {
    right: 32px !important;
}

/* Sidebar compact pass after the expanded menu sections were added. */
body.raika-body .raika-shell {
    --raika-sidebar-width: 224px !important;
}

body.raika-body .raika-sidebar {
    padding: 16px 12px 14px !important;
    gap: 3px !important;
}

body.raika-body .raika-sidebar-wordmark {
    min-height: 48px !important;
    margin-bottom: 4px !important;
}

body.raika-body .raika-sidebar-wordmark > a img {
    max-width: 88px !important;
}

body.raika-body .raika-nav-group-label {
    padding: 7px 8px 2px !important;
    font-size: 10.5px !important;
}

body.raika-body #sidebar .raika-nav-item {
    min-height: 38px !important;
    padding: 0 10px !important;
    gap: 9px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

body.raika-body #sidebar .raika-nav-item .raika-nav-icon {
    width: 19px !important;
    height: 19px !important;
    flex-basis: 19px !important;
}

body.raika-body .raika-nav-chevron {
    width: 16px !important;
    height: 16px !important;
    flex-basis: 16px !important;
}

body.raika-body .raika-nav-sublist {
    gap: 3px !important;
    margin: 4px 0 2px !important;
}

body.raika-body .raika-nav-sublist .raika-nav-item {
    min-height: 36px !important;
    padding: 7px 10px 7px 16px !important;
    border-radius: 11px !important;
    font-size: 12.5px !important;
}

body.raika-body .raika-nav-sublist .raika-nav-icon {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
}

body.raika-body .raika-nav-divider {
    margin: 5px 0 !important;
}

body.raika-body .raika-sidebar-support .raika-support-badge {
    min-width: 48px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
}

@media (min-width: 1024px) {
    body.raika-body .raika-sidebar-collapsed .raika-sidebar {
        gap: 2px !important;
        padding: 8px 8px 14px !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-sidebar-wordmark {
        min-height: 42px !important;
        margin-bottom: 0 !important;
    }

    body.raika-body .raika-sidebar-collapsed #desktop-toggle {
        width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-group-label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 18px !important;
        min-height: 18px !important;
        margin: 5px 0 5px !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        letter-spacing: 0 !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-group-label::before,
    body.raika-body .raika-sidebar-collapsed .raika-nav-divider::before {
        content: "" !important;
        display: block !important;
        width: 58px !important;
        height: 1px !important;
        border-radius: 999px !important;
        background: rgba(116, 183, 255, 0.18) !important;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-divider {
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 20px !important;
        min-height: 20px !important;
        margin: 10px 0 5px !important;
        padding: 0 !important;
        background: transparent !important;
        opacity: 1 !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-item,
    body.raika-body .raika-sidebar-collapsed .raika-nav-item {
        position: relative !important;
        min-height: 58px !important;
        padding: 6px 4px !important;
        gap: 5px !important;
        border-radius: 13px !important;
        box-shadow: none !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-item.is-active {
        color: #4ea7ff !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-item.is-active::before {
        content: "" !important;
        position: absolute !important;
        left: -8px !important;
        top: 0 !important;
        width: 3px !important;
        height: 100% !important;
        border-radius: 0 999px 999px 0 !important;
        background: #0878ff !important;
        box-shadow: 0 0 18px rgba(8, 120, 255, 0.34) !important;
        pointer-events: none !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-item.is-active .raika-nav-icon {
        color: #4ea7ff !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-sublist {
        display: none !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-summary .raika-nav-chevron {
        display: none !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-summary.is-flyout-open,
    body.raika-body .raika-sidebar-collapsed .raika-nav-summary:hover {
        color: #ffffff !important;
        background: rgba(31, 39, 50, 0.96) !important;
        border-color: rgba(116, 183, 255, 0.18) !important;
    }

    body.raika-body .raika-sidebar-collapsed .raika-nav-item > span:not(.raika-nav-external) {
        max-width: 74px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }
}

.raika-sidebar-flyout {
    position: fixed;
    z-index: 10020;
    width: 286px;
    max-width: calc(100vw - 136px);
    padding: 12px;
    border: 1px solid rgba(116, 183, 255, 0.13);
    border-radius: 18px;
    color: #dce6f3;
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 92, 154, 0.20), transparent 36%),
        linear-gradient(180deg, rgba(18, 26, 34, 0.98), rgba(12, 17, 23, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateX(-8px) scale(0.985);
    transform-origin: left top;
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
}

.raika-sidebar-flyout.is-open {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.raika-sidebar-flyout-list {
    display: grid;
    gap: 5px;
}

.raika-sidebar-flyout-item.raika-nav-item {
    display: flex !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 12px !important;
    border-radius: 13px !important;
    color: #d7e1ee !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.raika-sidebar-flyout-item.raika-nav-item:hover {
    color: #ffffff !important;
    background: rgba(36, 47, 60, 0.74) !important;
    border-color: rgba(116, 183, 255, 0.14) !important;
    transform: translateX(2px);
}

.raika-sidebar-flyout-item .raika-nav-icon {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
    color: #8cbfff !important;
}

.raika-sidebar-flyout-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    body.raika-body .raika-sidebar-wrap,
    body.raika-body .raika-sidebar {
        width: min(330px, 86vw) !important;
    }

    body.raika-body .raika-sidebar {
        padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 72px !important;
        gap: 5px !important;
    }

    body.raika-body #sidebar .raika-sidebar-close {
        top: calc(14px + env(safe-area-inset-top, 0px)) !important;
        right: 18px !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 14px !important;
    }

    body.raika-body .raika-sidebar-wordmark {
        min-height: 64px !important;
        margin-bottom: 4px !important;
        padding-right: 68px !important;
    }

    body.raika-body .raika-sidebar-wordmark > a img {
        width: 76px !important;
        max-width: 76px !important;
        max-height: 60px !important;
    }

    body.raika-body #sidebar .raika-nav-item {
        min-height: 44px !important;
        padding: 0 14px !important;
        gap: 12px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    body.raika-body .raika-nav-sublist {
        gap: 5px !important;
        margin: 5px 0 3px !important;
    }

    body.raika-body .raika-nav-sublist .raika-nav-item {
        min-height: 42px !important;
        padding: 9px 14px 9px 24px !important;
        border-radius: 13px !important;
        font-size: 13.5px !important;
    }
}

@media (max-width: 767px) {
    body.raika-body .raika-home:not(.is-games-view) {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto auto !important;
    }

    body.raika-body .raika-home .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 12px !important;
    }

    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 8px 0 18px !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home .raika-search-field {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home .raika-provider-field,
    body.raika-body .raika-home #providers-wrap {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-self: start !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-control {
        padding: 0 58px 0 46px !important;
        overflow: hidden !important;
    }

    body.raika-body #providers-wrap .raika-provider-clear {
        right: 30px !important;
    }
}

/* Sidebar active state: use the Raika blue edge marker in every sidebar size. */
body.raika-body #sidebar .raika-sidebar {
    --raika-sidebar-active-color: #4ea7ff;
    --raika-sidebar-active-bar: #0878ff;
    --raika-sidebar-active-offset: 12px;
}

body.raika-body #sidebar .raika-nav-item {
    position: relative !important;
}

body.raika-body #sidebar .raika-nav-item.is-active,
body.raika-body #sidebar .raika-nav-item.is-active:hover {
    color: var(--raika-sidebar-active-color) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.raika-body #sidebar .raika-nav-item.is-active::before {
    content: "" !important;
    position: absolute !important;
    left: calc(-1 * var(--raika-sidebar-active-offset)) !important;
    top: 0 !important;
    width: 3px !important;
    height: 100% !important;
    border-radius: 0 999px 999px 0 !important;
    background: var(--raika-sidebar-active-bar) !important;
    box-shadow: 0 0 18px rgba(8, 120, 255, 0.34) !important;
    pointer-events: none !important;
}

body.raika-body #sidebar .raika-nav-item.is-active .raika-nav-icon,
body.raika-body #sidebar .raika-nav-item.is-active img {
    color: var(--raika-sidebar-active-color) !important;
}

body.raika-body #sidebar .raika-nav-item .raika-nav-icon-img {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    flex: 0 0 26px !important;
    object-fit: contain !important;
    opacity: .96 !important;
    filter: none !important;
    transform: translateZ(0) !important;
    transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease !important;
}

body.raika-body #sidebar .raika-nav-sublist .raika-nav-icon-img {
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    flex-basis: 22px !important;
}

body.raika-body #sidebar .raika-nav-item:hover .raika-nav-icon-img,
body.raika-body #sidebar .raika-nav-item.is-active .raika-nav-icon-img {
    opacity: 1 !important;
    filter: none !important;
}

/* Sidebar selection/hover marker: left edge only, no filled card. */
body.raika-body #sidebar .raika-nav-item,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
    overflow: visible !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.raika-body #sidebar .raika-nav-item::before {
    content: "" !important;
    position: absolute !important;
    left: calc(-1 * var(--raika-sidebar-active-offset, 12px)) !important;
    top: 0 !important;
    width: 3px !important;
    height: 100% !important;
    border-radius: 0 999px 999px 0 !important;
    background: var(--raika-sidebar-active-bar, #0878ff) !important;
    box-shadow: 0 0 18px rgba(8, 120, 255, .38) !important;
    opacity: 0 !important;
    transform: scaleY(.72) !important;
    transform-origin: center !important;
    transition: opacity 160ms ease, transform 180ms ease !important;
    pointer-events: none !important;
}

body.raika-body #sidebar .raika-nav-sublist {
    overflow: visible !important;
}

body.raika-body #sidebar .raika-nav-sublist .raika-nav-item::before {
    left: -10px !important;
    top: 6px !important;
    height: calc(100% - 12px) !important;
}

body.raika-body #sidebar .raika-nav-item:hover,
body.raika-body #sidebar .raika-nav-item.is-active,
body.raika-body #sidebar .raika-nav-item.is-active:hover,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active:hover {
    color: var(--raika-sidebar-active-color, #4ea7ff) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.raika-body #sidebar .raika-nav-item:hover::before,
body.raika-body #sidebar .raika-nav-item.is-active::before,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover::before,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active::before {
    opacity: 1 !important;
    transform: scaleY(1) !important;
}

body.raika-body #sidebar .raika-nav-item:hover .raika-nav-icon-img,
body.raika-body #sidebar .raika-nav-item.is-active .raika-nav-icon-img {
    opacity: 1 !important;
    filter: none !important;
    transform: translateZ(0) !important;
}

@media (min-width: 1024px) {
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar {
        --raika-sidebar-active-offset: 8px;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-item .raika-nav-icon-img {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        flex-basis: 34px !important;
    }
}

@media (max-width: 1023px) {
    body.raika-body #sidebar .raika-sidebar {
        --raika-sidebar-active-offset: 14px;
    }
}

/* Fast, low-key desktop sidebar collapse/expand. */
@media (min-width: 1024px) {
    body.raika-body .raika-shell,
    body.raika-body #sidebar.raika-sidebar-wrap,
    body.raika-body #sidebar .raika-sidebar {
        transition:
            width 160ms cubic-bezier(0.2, 0, 0, 1),
            min-width 160ms cubic-bezier(0.2, 0, 0, 1),
            max-width 160ms cubic-bezier(0.2, 0, 0, 1),
            padding 160ms cubic-bezier(0.2, 0, 0, 1),
            border-color 120ms ease !important;
    }

    body.raika-body #sidebar .raika-sidebar {
        overflow-x: hidden !important;
        contain: layout paint;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark,
    body.raika-body #sidebar #desktop-toggle,
    body.raika-body #sidebar .raika-nav-item,
    body.raika-body #sidebar .raika-nav-item .raika-nav-icon,
    body.raika-body #sidebar .raika-nav-item > span:not(.raika-nav-external),
    body.raika-body #sidebar .raika-nav-group-label,
    body.raika-body #sidebar .raika-nav-chevron,
    body.raika-body #sidebar .raika-sidebar-support,
    body.raika-body #sidebar .raika-sidebar-support b {
        transition:
            opacity 100ms ease,
            transform 160ms cubic-bezier(0.2, 0, 0, 1),
            max-width 160ms cubic-bezier(0.2, 0, 0, 1),
            width 160ms cubic-bezier(0.2, 0, 0, 1),
            height 160ms cubic-bezier(0.2, 0, 0, 1),
            min-height 160ms cubic-bezier(0.2, 0, 0, 1),
            margin 160ms cubic-bezier(0.2, 0, 0, 1),
            padding 160ms cubic-bezier(0.2, 0, 0, 1),
            gap 160ms cubic-bezier(0.2, 0, 0, 1),
            color 120ms ease,
            background-color 120ms ease !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark > a {
        display: inline-flex !important;
        width: 96px !important;
        max-width: 96px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
        transform: translateX(0) scale(1) !important;
        transform-origin: left center;
        transition:
            opacity 100ms ease,
            transform 160ms cubic-bezier(0.2, 0, 0, 1),
            width 160ms cubic-bezier(0.2, 0, 0, 1),
            max-width 160ms cubic-bezier(0.2, 0, 0, 1),
            padding 160ms cubic-bezier(0.2, 0, 0, 1) !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a {
        display: inline-flex !important;
        width: 0 !important;
        max-width: 0 !important;
        padding-inline: 0 !important;
        opacity: 0 !important;
        transform: translateX(-8px) scale(0.96) !important;
        pointer-events: none !important;
    }

    body.raika-body #sidebar .raika-nav-sublist {
        display: grid !important;
        max-height: 360px !important;
        overflow: hidden !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition:
            max-height 160ms cubic-bezier(0.2, 0, 0, 1),
            opacity 100ms ease,
            transform 160ms cubic-bezier(0.2, 0, 0, 1),
            margin 160ms cubic-bezier(0.2, 0, 0, 1) !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-sublist {
        display: grid !important;
        max-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        opacity: 0 !important;
        transform: translateY(-6px) !important;
        pointer-events: none !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-summary .raika-nav-chevron {
        display: inline-flex !important;
        width: 0 !important;
        max-width: 0 !important;
        flex-basis: 0 !important;
        opacity: 0 !important;
        transform: translateX(-6px) scale(0.8) !important;
        pointer-events: none !important;
    }

    body.raika-body .raika-sidebar-animating #sidebar .raika-nav-item,
    body.raika-body .raika-sidebar-animating #sidebar .raika-sidebar-wordmark,
    body.raika-body .raika-sidebar-animating #sidebar .raika-nav-sublist {
        pointer-events: none !important;
        will-change: opacity, transform, max-width;
    }

    body.raika-body .raika-sidebar-animating,
    body.raika-body .raika-sidebar-animating #sidebar.raika-sidebar-wrap,
    body.raika-body .raika-sidebar-animating #sidebar .raika-sidebar {
        will-change: width, min-width, padding;
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
    body.raika-body .raika-shell,
    body.raika-body #sidebar.raika-sidebar-wrap,
    body.raika-body #sidebar .raika-sidebar,
    body.raika-body #sidebar .raika-sidebar-wordmark,
    body.raika-body #sidebar #desktop-toggle,
    body.raika-body #sidebar .raika-nav-item,
    body.raika-body #sidebar .raika-nav-item .raika-nav-icon,
    body.raika-body #sidebar .raika-nav-item > span:not(.raika-nav-external),
    body.raika-body #sidebar .raika-nav-group-label,
    body.raika-body #sidebar .raika-nav-chevron,
    body.raika-body #sidebar .raika-sidebar-support,
    body.raika-body #sidebar .raika-sidebar-support b,
    body.raika-body #sidebar .raika-sidebar-wordmark > a,
    body.raika-body #sidebar .raika-nav-sublist {
        transition-duration: 1ms !important;
    }
}

body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 42px !important;
    min-height: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    place-items: center !important;
}

body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > #desktop-toggle {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    transform: none !important;
}

body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > #desktop-toggle > svg {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 auto !important;
    place-self: center !important;
    transform: translate(3px, 9px) !important;
}

body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a,
body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a img {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-group-label:first-of-type {
    margin-top: 4px !important;
}

/* Home lobby carousel and provider list. */
body.raika-body .raika-pick-carousel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
    min-height: 176px;
    padding: 26px 28px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 82% 46%, rgba(38, 143, 255, 0.42), transparent 40%),
        linear-gradient(105deg, #07111d 0%, #0b2742 46%, #0878ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 54px rgba(0, 0, 0, 0.24);
}

body.raika-body .raika-pick-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 8, 14, 0.38), transparent 50%, rgba(2, 8, 14, 0.1));
    pointer-events: none;
}

body.raika-body .raika-pick-carousel-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 320px;
    text-align: left;
}

body.raika-body .raika-pick-carousel-copy strong {
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.08;
    text-align: left;
}

body.raika-body .raika-pick-carousel-copy p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    font-weight: 700;
}

body.raika-body .raika-pick-game-btn {
    display: inline-flex;
    width: max-content;
    min-height: 44px;
    margin-top: 24px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    color: #1c2a18;
    background: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(3, 18, 8, 0.24);
    cursor: pointer;
}

body.raika-body .raika-pick-game-btn svg {
    width: 16px;
    height: 16px;
}

body.raika-body .raika-pick-carousel-track {
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 0 14px;
    margin: -10px 0 -14px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}

body.raika-body .raika-pick-carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    pointer-events: none;
}

body.raika-body .raika-pick-carousel-arrow {
    position: absolute;
    top: 50%;
    display: inline-flex;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(116, 183, 255, 0.24);
    border-radius: 12px;
    color: #d8e9ff;
    background: rgba(8, 23, 42, 0.72);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
    transform: translateY(-50%);
}

body.raika-body .raika-pick-carousel-arrow[data-pick-carousel-dir="-1"] {
    left: calc(26.5% + 52px);
}

body.raika-body .raika-pick-carousel-arrow[data-pick-carousel-dir="1"] {
    right: 28px;
}

body.raika-body .raika-pick-carousel-arrow:hover,
body.raika-body .raika-pick-carousel-arrow:focus-visible {
    color: #ffffff;
    border-color: rgba(78, 167, 255, 0.58);
    background: rgba(18, 55, 96, 0.86);
    transform: translateY(calc(-50% - 2px));
    outline: none;
}

body.raika-body .raika-pick-carousel-arrow svg {
    width: 22px;
    height: 22px;
}

body.raika-body .raika-pick-carousel-track::-webkit-scrollbar {
    display: none;
}

body.raika-body .raika-pick-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

body.raika-body .raika-pick-carousel-track.is-dragging .raika-pick-carousel-card {
    pointer-events: none;
}

body.raika-body .raika-pick-carousel-cards {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    gap: 14px;
    animation: none;
}

body.raika-body .raika-pick-carousel-card {
    flex: 0 0 auto;
    width: 112px;
    aspect-ratio: 0.74;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: #10161e;
    box-shadow: 0 18px 32px rgba(3, 14, 8, 0.26);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    will-change: transform;
}

body.raika-body .raika-pick-carousel-card:hover,
body.raika-body .raika-pick-carousel-card:focus-visible {
    border-color: rgba(78, 167, 255, 0.62);
    box-shadow: 0 24px 42px rgba(3, 14, 8, 0.34), 0 0 0 1px rgba(78, 167, 255, 0.18);
    filter: brightness(1.06);
    transform: translateY(-8px);
    outline: none;
}

body.raika-body .raika-pick-carousel-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

body.raika-body .raika-pick-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.raika-body .raika-pick-selected-action {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    min-height: 34px;
    padding: 7px 10px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #172130;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

body.raika-body .raika-pick-carousel.is-picking .raika-pick-game-btn,
body.raika-body .raika-pick-carousel.is-picking .raika-pick-carousel-arrow {
    pointer-events: none;
}

body.raika-body .raika-pick-carousel.is-picking .raika-pick-carousel-card {
    pointer-events: none;
    filter: brightness(0.74) saturate(0.72);
    transform: scale(0.94);
}

body.raika-body .raika-pick-carousel.is-picked .raika-pick-carousel-card {
    pointer-events: none;
    filter: brightness(0.42) saturate(0.56);
    transform: scale(0.9);
}

body.raika-body .raika-pick-carousel.is-picked .raika-pick-carousel-card.is-selected {
    z-index: 3;
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(78, 167, 255, 0.42);
    filter: none;
    transform: scale(1.13);
}

body.raika-body .raika-pick-carousel.is-picked .raika-pick-carousel-card.is-selected::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 4;
    width: 0;
    height: 0;
    border-top: 10px solid #ffffff;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.32));
    transform: translateX(-50%);
    pointer-events: none;
}

body.raika-body .raika-pick-carousel.is-picked .raika-pick-carousel-card.is-selected .raika-pick-selected-action {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    cursor: pointer;
}

body.raika-body .raika-provider-list-section {
    display: grid;
    gap: 14px;
}

body.raika-body .raika-provider-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.raika-body .raika-provider-list::-webkit-scrollbar {
    display: none;
}

body.raika-body .raika-provider-list-item {
    display: flex;
    flex: 0 0 168px;
    width: 168px;
    min-height: 92px;
    padding: 16px 16px 14px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    color: #f4f7fb;
    background: #1b1f24;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 160ms ease, filter 160ms ease, transform 160ms ease;
}

body.raika-body .raika-provider-list-item:hover {
    color: #ffffff;
    background: #20262d;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

body.raika-body .raika-provider-logo-wrap {
    display: flex;
    width: 100%;
    height: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
}

body.raika-body .raika-provider-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 116px;
    max-height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

body.raika-body .raika-provider-logo.is-inout {
    max-width: 108px;
    filter: brightness(0) invert(1) contrast(1.35);
}

body.raika-body .raika-provider-card-mark {
    display: block;
    max-width: 100%;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

body.raika-body .raika-provider-card-name {
    display: block;
    max-width: 100%;
    color: #f3f6fb;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="light"] body.raika-body .raika-pick-carousel {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 44px rgba(20, 91, 178, 0.16);
}

html[data-theme="light"] body.raika-body .raika-provider-list-item {
    color: #ffffff;
    background: #1d2228;
    box-shadow: none;
}

html[data-theme="light"] body.raika-body .raika-provider-list-item:hover {
    color: #ffffff;
    background: #242b33;
    box-shadow: none;
}

html[data-theme="light"] body.raika-body .raika-provider-card-mark {
    color: #172335;
}

html[data-theme="light"] body.raika-body .raika-provider-card-name {
    color: #f3f6fb;
}

@keyframes raika-pick-carousel-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 7px));
    }
}

@media (max-width: 767px) {
    body.raika-body .raika-pick-carousel {
        grid-template-columns: minmax(0, 1fr);
        min-height: 170px;
        padding: 18px;
        gap: 16px;
    }

    body.raika-body .raika-pick-carousel-copy {
        max-width: 220px;
    }

    body.raika-body .raika-pick-carousel-copy strong {
        font-size: 22px;
    }

    body.raika-body .raika-pick-carousel-copy p {
        font-size: 12px;
    }

    body.raika-body .raika-pick-game-btn {
        min-height: 38px;
        margin-top: 14px;
        padding: 0 14px;
        font-size: 12px;
        border-radius: 9px;
    }

    body.raika-body .raika-pick-carousel-track {
        margin-inline: -18px;
    }

    body.raika-body .raika-pick-carousel-controls {
        inset: 0;
    }

    body.raika-body .raika-pick-carousel-arrow {
        top: 62%;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 10px;
    }

    body.raika-body .raika-pick-carousel-arrow[data-pick-carousel-dir="-1"] {
        left: 12px;
    }

    body.raika-body .raika-pick-carousel-arrow[data-pick-carousel-dir="1"] {
        right: 12px;
    }

    body.raika-body .raika-pick-carousel-arrow svg {
        width: 19px;
        height: 19px;
    }

    body.raika-body .raika-pick-carousel-card {
        width: 82px;
        border-radius: 10px;
    }

    body.raika-body .raika-provider-list {
        display: flex;
        gap: 10px;
    }

    body.raika-body .raika-provider-list-item {
        flex-basis: 136px;
        width: 136px;
        min-height: 84px;
        padding: 14px 12px 12px;
        gap: 10px;
    }

    body.raika-body .raika-provider-logo-wrap {
        height: 30px;
        min-height: 30px;
    }

    body.raika-body .raika-provider-logo {
        max-width: 96px;
        max-height: 30px;
    }

    body.raika-body .raika-provider-card-name {
        font-size: 14px;
    }
}

/* Compact home game filters: category tabs plus search, replacing the large provider control. */
body.raika-body .raika-home > .raika-searchbar,
body.raika-body .raika-home.is-games-view > .raika-searchbar {
    display: grid !important;
    grid-template-columns: minmax(690px, 1fr) 2px minmax(320px, 0.72fr) !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    margin: 0 0 18px !important;
    overflow: visible !important;
}

body.raika-body .raika-home-filter-tabs {
    display: grid;
    grid-template-columns: minmax(136px, 1.12fr) minmax(104px, 0.86fr) minmax(126px, 1fr) minmax(158px, 1.18fr) minmax(148px, 1.12fr);
    width: 100%;
    min-width: 0;
    min-height: 54px;
    align-items: center;
    gap: 0;
    padding: 3px;
    overflow: hidden;
    overflow-y: hidden;
    border-radius: 10px;
    border: 1px solid var(--lobby-border);
    background: linear-gradient(180deg, var(--lobby-panel-3) 0%, var(--lobby-panel-2) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body.raika-body .raika-home-filter-tabs::-webkit-scrollbar {
    display: none;
}

body.raika-body .raika-home-filter-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    color: #b9c4d3;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.raika-body .raika-home-filter-tab:first-child {
    min-width: 0;
}

body.raika-body .raika-home-filter-tab:nth-child(3) {
    min-width: 0;
}

body.raika-body .raika-home-filter-tab:nth-child(4) {
    min-width: 0;
}

body.raika-body .raika-home-filter-tab:nth-child(5) {
    min-width: 0;
}

body.raika-body .raika-home-filter-tab span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.raika-body .raika-home-filter-tab + .raika-home-filter-tab {
    border-left: 1px solid rgba(164, 190, 220, 0.15);
}

body.raika-body .raika-home-filter-tab.is-active + .raika-home-filter-tab,
body.raika-body .raika-home-filter-tab[aria-current="true"] + .raika-home-filter-tab,
body.raika-body .raika-home-filter-tab:has(+ .raika-home-filter-tab.is-active),
body.raika-body .raika-home-filter-tab:has(+ .raika-home-filter-tab[aria-current="true"]) {
    border-left-color: transparent;
}

body.raika-body .raika-filter-search-separator {
    display: block;
    width: 2px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

body.raika-body .raika-home-filter-tab svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

body.raika-body .raika-home-filter-tab .raika-home-filter-icon {
    width: 24px;
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    filter: none;
}

body.raika-body .raika-home-filter-tab:hover {
    color: #eef6ff;
    background: rgba(73, 145, 226, 0.11);
}

body.raika-body .raika-home-filter-tab.is-active,
body.raika-body .raika-home-filter-tab[aria-current="true"] {
    color: #ffffff;
    border-left-color: transparent;
    background: linear-gradient(135deg, #299cff 0%, #1479e8 100%);
    box-shadow: 0 8px 18px rgba(8, 120, 255, 0.2);
}

body.raika-body .raika-home-filter-tab:first-child {
    border-radius: 8px 0 0 8px;
}

body.raika-body .raika-home-filter-tab:last-child {
    border-radius: 0 8px 8px 0;
}

body.raika-body .raika-home > .raika-searchbar .raika-search-field,
body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
    width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    border-radius: 10px !important;
    background: var(--raika-control-bg, #13243a) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.raika-body .raika-home > .raika-searchbar .raika-search-field input,
body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input {
    height: 54px !important;
    padding-left: 46px !important;
    color: #dbe5f2 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
}

body.raika-body .raika-home > .raika-searchbar .raika-search-field input::placeholder,
body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input::placeholder {
    color: #8f98a7 !important;
}

body.raika-body .raika-home > .raika-searchbar .raika-field-icon,
body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-field-icon {
    left: 15px !important;
    width: 18px !important;
    height: 18px !important;
}

body.raika-body .raika-provider-control-ghost,
body.raika-body .raika-provider-control-ghost .ts-wrapper,
body.raika-body .raika-provider-control-ghost .ts-control {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    max-width: 1px !important;
    max-height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tabs {
    background: #e7edf4;
}

html[data-theme="light"] body.raika-body .raika-filter-search-separator {
    background: rgba(36, 50, 72, 0.14);
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab {
    color: #718096;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover {
    color: #1f3148;
    background: rgba(8, 120, 255, 0.08);
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
    background: #e7edf4 !important;
    border-color: transparent !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field input,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input {
    color: #243248 !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field input::placeholder,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input::placeholder {
    color: #7b889b !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
        width: 100% !important;
        margin: 8px 0 16px !important;
    }

    body.raika-body .raika-filter-search-separator {
        display: none;
    }

    body.raika-body .raika-home-filter-tabs {
        width: 100%;
        min-height: 42px;
        border-radius: 8px;
    }

    body.raika-body .raika-home-filter-tab {
        min-height: 42px;
        padding: 0 14px;
        gap: 7px;
        font-size: 13px;
    }

    body.raika-body .raika-home-filter-tab svg {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    body.raika-body .raika-home-filter-tab .raika-home-filter-icon {
        width: 21px;
        min-width: 21px;
        max-width: 21px;
        height: 21px;
        min-height: 21px;
        max-height: 21px;
        flex-basis: 21px;
    }

    body.raika-body .raika-home > .raika-searchbar .raika-search-field,
    body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field,
    body.raika-body .raika-home > .raika-searchbar .raika-search-field input,
    body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
    }
}

body.raika-body .raika-home-brand-link {
    display: block;
    position: absolute;
    top: 18px;
    left: 28px;
    z-index: 99999;
    width: auto;
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: 44px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

body.raika-body .raika-home-brand-link.hidden {
    display: none !important;
}

body.raika-body .raika-home-brand-link:hover,
body.raika-body .raika-home-brand-link:focus-visible {
    color: #4ea7ff;
    opacity: .98;
    transform: translateY(-1px);
    outline: none;
}

html[data-theme="light"] body.raika-body .raika-home-brand-link {
    color: #101923;
}

html[data-theme="light"] body.raika-body .raika-home-brand-link:hover,
html[data-theme="light"] body.raika-body .raika-home-brand-link:focus-visible {
    color: #0878ff;
}

@media (min-width: 768px) {
    body.raika-body .raika-app-content {
        position: relative !important;
        z-index: auto !important;
        overflow: visible !important;
    }

    body.raika-body .raika-page {
        position: relative !important;
        overflow: visible !important;
    }

    body.raika-body .raika-topbar {
        z-index: 10030 !important;
    }

    body.raika-body .raika-home:not(.is-games-view) {
        grid-template-rows: auto auto auto !important;
        margin-top: 116px !important;
    }

    body.raika-body .raika-home:not(.is-games-view) #home-sections > #slider.raika-hero {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-category-strip {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 2px 0 6px !important;
    }

    body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-sections {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }
}

@media (max-width: 767px) {
    body.raika-body .raika-home-brand-link {
        position: static !important;
        width: auto !important;
        margin: 2px 0 8px !important;
        font-size: 28px !important;
        line-height: 1 !important;
    }
}

/* Final sidebar subitem marker: keep it inside the row so animated sublist clipping cannot hide it. */
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
    position: relative !important;
}

body.raika-body #sidebar .raika-nav-sublist .raika-nav-item::before {
    left: 0 !important;
    top: 7px !important;
    height: calc(100% - 14px) !important;
    width: 3px !important;
    opacity: 0 !important;
    z-index: 1 !important;
}

body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover::before,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active::before {
    opacity: 1 !important;
    transform: scaleY(1) !important;
}

body.raika-body #sidebar .raika-nav-sublist .raika-nav-item .raika-nav-icon-img,
body.raika-body #sidebar .raika-nav-sublist .raika-nav-item > span {
    position: relative !important;
    z-index: 2 !important;
}

/* Smooth casino accordion reveal/hide. */
body.raika-body #sidebar .raika-nav-accordion > summary {
    cursor: pointer !important;
}

body.raika-body #sidebar .raika-nav-accordion .raika-nav-sublist {
    display: block !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transform: translateY(-6px) !important;
    transition:
        max-height 260ms cubic-bezier(.22, .61, .36, 1),
        opacity 180ms ease,
        transform 220ms ease !important;
}

body.raika-body #sidebar .raika-nav-accordion[open].is-open .raika-nav-sublist {
    max-height: 460px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

body.raika-body #sidebar .raika-nav-accordion[open].is-closing .raika-nav-sublist {
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-6px) !important;
}

body.raika-body #sidebar .raika-nav-accordion .raika-nav-chevron {
    transition: transform 220ms ease, opacity 180ms ease !important;
}

body.raika-body #sidebar .raika-nav-accordion[open] .raika-nav-chevron {
    transform: none !important;
}

body.raika-body #sidebar .raika-nav-accordion.is-open .raika-nav-chevron {
    transform: rotate(180deg) !important;
}

/* Final desktop burger anchor: the toggle stays pinned while only the logo fades/collapses. */
@media (min-width: 1024px) {
    body.raika-body #sidebar .raika-sidebar-wordmark,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark {
        position: relative !important;
        display: block !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin: 0 0 6px !important;
        padding: 0 !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark > #desktop-toggle,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > #desktop-toggle {
        position: absolute !important;
        left: 20px !important;
        top: 14px !important;
        display: grid !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        place-items: center !important;
        transform: none !important;
        z-index: 3 !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark > #desktop-toggle > svg,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > #desktop-toggle > svg {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        transform: none !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark > a,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a {
        position: absolute !important;
        left: 72px !important;
        top: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 58px !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        transform-origin: left center !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark > a {
        width: 96px !important;
        max-width: 96px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark > a img {
        width: 76px !important;
        max-width: 76px !important;
        max-height: 56px !important;
        opacity: 1 !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a {
        width: 0 !important;
        max-width: 0 !important;
        opacity: 0 !important;
        transform: translateX(-8px) scale(.96) !important;
        pointer-events: none !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a img {
        width: 0 !important;
        max-width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
    }
}

/* Final layer order: page < header < popovers/modals. */
body.raika-body .raika-app-content {
    z-index: auto !important;
}

body.raika-body .raika-topbar {
    z-index: 10030 !important;
}

body.raika-body .raika-home-brand-link {
    display: none !important;
}

html[data-theme="light"] body.raika-body .raika-topbar-wordmark,
html[data-theme="light"] body.raika-body .raika-home-brand-link {
    color: #101923 !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item > span {
    color: #4a586c !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover > span,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active > span {
    color: #0878ff !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab,
html[data-theme="light"] body.raika-body .raika-home-filter-tab > span {
    color: #4a586c !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover,
html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover > span {
    color: #263245 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab.is-active,
html[data-theme="light"] body.raika-body .raika-home-filter-tab.is-active > span,
html[data-theme="light"] body.raika-body .raika-home-filter-tab[aria-current="true"],
html[data-theme="light"] body.raika-body .raika-home-filter-tab[aria-current="true"] > span {
    color: #ffffff !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
    background: #dbe3ec !important;
    border-color: #c8d3df !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-field-icon,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-field-icon {
    color: #73829a !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field input::placeholder,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input::placeholder {
    color: #65758d !important;
}

body.raika-body .raika-home.is-games-view > .raika-searchbar {
    margin-bottom: 8px !important;
}

body.raika-body .raika-home.is-games-view > .raika-sections {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.raika-body .raika-home.is-games-view > .raika-sections > .raika-game-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-wordmark,
html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-wordmark > a,
html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-wordmark > a img {
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* EOF tablet override: keep this below every late desktop filter rule. */
@media (min-width: 768px) and (max-width: 1180px) {
    html body.raika-body .raika-app-content {
        height: auto !important;
        min-height: calc(100dvh - 64px) !important;
        flex: 1 0 auto !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home-filter-tab {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 58px !important;
        padding-inline: clamp(8px, 1.3vw, 14px) !important;
        gap: 8px !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: clamp(13px, 1.65vw, 16px) !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-search-field,
    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home,
    body.raika-body .raika-home-panels,
    body.raika-body .raika-sections,
    body.raika-body .raika-game-section,
    body.raika-body .raika-provider-list-section,
    body.raika-body .raika-hero,
    body.raika-body .raika-category-strip {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
}

/* Mobile drawer uses the same visual system as the expanded desktop sidebar. */
@media (max-width: 1023px) {
    html body.raika-body #sidebar.raika-sidebar-wrap,
    html body.raika-body #sidebar .raika-sidebar,
    html body.raika-body .raika-sidebar-collapsed #sidebar.raika-sidebar-wrap,
    html body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar {
        width: min(300px, 86vw) !important;
        min-width: min(300px, 86vw) !important;
        max-width: min(300px, 86vw) !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-sidebar,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-sidebar {
        color: #d1dbe8 !important;
        background: var(--raika-surface-1) !important;
        border-right-color: var(--raika-border) !important;
        box-shadow: none !important;
    }

    html[data-theme="light"] body.raika-body #sidebar .raika-sidebar {
        color: #263245 !important;
        background: #edf1f5 !important;
        border-right-color: #dce3eb !important;
        box-shadow: none !important;
    }

    html body.raika-body #sidebar .raika-sidebar {
        padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        gap: 3px !important;
    }

    html body.raika-body #sidebar .raika-sidebar-wordmark,
    html body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark {
        position: relative !important;
        display: flex !important;
        width: 100% !important;
        min-height: 58px !important;
        height: 58px !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    html body.raika-body #sidebar .raika-sidebar-close {
        position: absolute !important;
        top: calc(23px + env(safe-area-inset-top, 0px)) !important;
        left: 20px !important;
        right: auto !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: inherit !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    html body.raika-body #sidebar .raika-sidebar-wordmark > a,
    html body.raika-body.raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a {
        position: absolute !important;
        left: 70px !important;
        top: 0 !important;
        display: flex !important;
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    html body.raika-body #sidebar .raika-sidebar-wordmark > a img,
    html body.raika-body.raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a img {
        display: block !important;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        object-fit: contain !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body.raika-body #sidebar .raika-nav-group-label {
        min-height: 29px !important;
        height: 29px !important;
        margin: 0 !important;
        padding: 7px 8px 2px !important;
        font-size: 10.5px !important;
    }

    html body.raika-body #sidebar .raika-nav-item,
    html body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
        color: inherit !important;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    html body.raika-body #sidebar .raika-nav-item {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 10px !important;
        gap: 9px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    html body.raika-body #sidebar .raika-nav-sublist {
        gap: 3px !important;
        margin: 4px 0 2px !important;
    }

    html body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
        min-height: 36px !important;
        height: 36px !important;
        padding: 7px 10px 7px 16px !important;
        gap: 9px !important;
        border-radius: 11px !important;
        font-size: 12.5px !important;
    }

    html body.raika-body #sidebar .raika-nav-divider {
        margin: 5px 0 !important;
    }

    html body.raika-body:has(#sidebar-toggle:checked) .raika-mobile-bottom-nav {
        transform: translateY(calc(100% + 24px)) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Tablet shell: before the desktop sidebar breakpoint, Daisy drawer must not shrink to content width. */
@media (min-width: 768px) and (max-width: 1023px) {
    body.raika-body .raika-shell {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.raika-body .raika-main,
    body.raika-body .raika-page,
    body.raika-body .raika-app-content {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        flex: 0 0 100vw !important;
    }
}

/* Stable iPad layout. The carousel moves in 100% steps, so every slide must
   occupy the full viewport. Reset the inherited horizontal promo auto-flow as
   well; otherwise its container collapses and the filters overlap the cards. */
@media (min-width: 768px) and (max-width: 1180px) {
    html body.raika-body .raika-home,
    html body.raika-body .raika-home:not(.is-games-view) {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 18px !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections {
        display: contents !important;
    }

    html body.raika-body .raika-hero .slides {
        display: flex !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
    }

    html body.raika-body .raika-hero .raika-hero-slide {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    html body.raika-body .raika-hero-copy {
        width: min(55%, 500px) !important;
        max-width: min(55%, 500px) !important;
    }

    html body.raika-body .raika-hero-art,
    html body.raika-body .raika-hero-slots,
    html body.raika-body .raika-hero-originals {
        right: clamp(-42px, -3vw, -22px) !important;
        max-width: 50% !important;
    }

    html body.raika-body .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-auto-rows: minmax(118px, auto) !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-category-strip .raika-feature-card {
        width: 100% !important;
        min-width: 0 !important;
        height: clamp(118px, 14vw, 146px) !important;
        min-height: 118px !important;
        max-height: 146px !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        height: auto !important;
        min-height: 52px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) !important;
        align-items: center !important;
        gap: 12px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: none !important;
        margin: 0 0 24px !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field {
        grid-column: 1 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-provider-field {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 300px !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-footer {
        margin-top: 32px !important;
    }
}

/* Desktop lobby: stronger category hierarchy beside the 42px row controls. */
@media (min-width: 1181px) {
    html body.raika-body .raika-home .raika-section-head {
        min-height: 48px !important;
        margin-bottom: 14px !important;
    }

    html body.raika-body .raika-section-head h2 {
        gap: 12px !important;
        font-size: 27px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        letter-spacing: -.025em !important;
    }

    html body.raika-body .raika-section-head h2::before {
        width: 4px !important;
        height: 29px !important;
        border-radius: 999px !important;
    }

}

/* Light-theme ownership for promotional cards. Responsive lobby rules
   may change their geometry, but must not restore the dark card surface. */
html[data-theme="light"] body.raika-body .raika-feature-card,
html[data-theme="light"] body.raika-body.raika-home-compact-layout .raika-feature-card {
    color: #172130 !important;
    background: linear-gradient(145deg, #f8fafc, #eaf1f8) !important;
    border-color: #d5e0eb !important;
    box-shadow: 0 8px 22px rgba(35, 49, 68, 0.07) !important;
}

html[data-theme="light"] body.raika-body .raika-feature-card::before {
    opacity: 0 !important;
    background: none !important;
}

html[data-theme="light"] body.raika-body .raika-feature-card::after {
    background: transparent !important;
    box-shadow: none !important;
}

/* Compact desktop casino navigation always uses the detached flyout. Keep the
   accordion's inline list collapsed even when its persisted <details> state is
   open; the accordion animation rules above must not reveal it in the rail. */
@media (min-width: 1024px) {
    html body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-accordion .raika-nav-sublist,
    html body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-accordion[open].is-open .raika-nav-sublist,
    html body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-accordion[open].is-closing .raika-nav-sublist {
        display: none !important;
        max-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        opacity: 0 !important;
        transform: none !important;
        pointer-events: none !important;
    }
}

/* Tablets keep :hover after a tap. Do not let the legacy hover layer repaint
   only the lower 55% of a feature card with a blue/purple desktop surface. */
@media (max-width: 1180px) {
    body.raika-body .raika-feature-card:hover,
    body.raika-body .raika-feature-card:active,
    body.raika-body .raika-feature-card:focus,
    body.raika-body .raika-feature-card:focus-visible {
        transform: none !important;
    }

    html[data-theme="dark"] body.raika-body .raika-feature-card:hover::after,
    html[data-theme="dark"] body.raika-body .raika-feature-card:active::after,
    html[data-theme="dark"] body.raika-body .raika-feature-card:focus::after,
    html[data-theme="dark"] body.raika-body .raika-feature-card:focus-visible::after,
    html:not([data-theme="light"]) body.raika-body .raika-feature-card:hover::after,
    html:not([data-theme="light"]) body.raika-body .raika-feature-card:active::after,
    html:not([data-theme="light"]) body.raika-body .raika-feature-card:focus::after,
    html:not([data-theme="light"]) body.raika-body .raika-feature-card:focus-visible::after {
        background: linear-gradient(180deg, transparent, rgba(3, 7, 13, 0.84)) !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    html[data-theme="light"] body.raika-body .raika-feature-card:hover::after,
    html[data-theme="light"] body.raika-body .raika-feature-card:active::after,
    html[data-theme="light"] body.raika-body .raika-feature-card:focus::after,
    html[data-theme="light"] body.raika-body .raika-feature-card:focus-visible::after {
        background: transparent !important;
        border-color: #dce5ef !important;
        box-shadow: none !important;
    }
}

/* Keep the flagship highlight badges identical while the desktop sidebar toggles. */
@media (min-width: 1024px) {
    html body.raika-body .raika-hero-highlights {
        width: 148px !important;
        gap: 8px !important;
    }

    html body.raika-body .raika-hero-highlights > span {
        min-height: 48px !important;
        padding: 8px 13px !important;
        border-radius: 13px !important;
    }

    html body.raika-body .raika-hero-highlights > span:nth-child(2) {
        transform: translateX(-18px) !important;
    }

    html body.raika-body .raika-hero-highlights b {
        font-size: 14px !important;
    }

    html body.raika-body .raika-hero-highlights small {
        margin-top: 3px !important;
        font-size: 10px !important;
    }
}

/* One balance treatment on phones, tablets and desktop. */
html body.raika-body .raika-balance-pill::before,
html body.raika-body .raika-balance-pill::after {
    content: none !important;
    display: none !important;
}

html body.raika-body .raika-balance-pill .raika-balance-plus {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex: 0 0 28px !important;
}

/* Search and provider are one filter family, so their surfaces must match. */
html:not([data-theme="light"]) body.raika-body .raika-home .raika-search-field,
html:not([data-theme="light"]) body.raika-body .raika-home #providers-wrap,
html:not([data-theme="light"]) body.raika-body .raika-home #providers-wrap .ts-wrapper,
html:not([data-theme="light"]) body.raika-body .raika-home #providers-wrap .ts-control,
html[data-theme="dark"] body.raika-body .raika-home .raika-search-field,
html[data-theme="dark"] body.raika-body .raika-home #providers-wrap,
html[data-theme="dark"] body.raika-body .raika-home #providers-wrap .ts-wrapper,
html[data-theme="dark"] body.raika-body .raika-home #providers-wrap .ts-control {
    background: var(--raika-control-bg, #13243a) !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.raika-body .raika-home .raika-search-field,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-wrapper,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-control {
    background: #dbe3ec !important;
    background-image: none !important;
    border-color: #c8d3df !important;
    box-shadow: none !important;
}

/* Wallet secondary action must belong to the light modal, not the dark palette. */
html[data-theme="light"] body.raika-body #wallet_modal .raika-wallet-withdraw {
    color: #526176 !important;
    background: #e7edf4 !important;
    background-image: none !important;
    border-color: #c8d3df !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

html[data-theme="light"] body.raika-body #wallet_modal .raika-wallet-withdraw:hover,
html[data-theme="light"] body.raika-body #wallet_modal .raika-wallet-withdraw:focus-visible {
    color: #243248 !important;
    background: #dbe5ef !important;
    border-color: #aebdce !important;
    box-shadow: 0 8px 18px rgba(43, 58, 78, .10), inset 0 1px 0 rgba(255, 255, 255, .78) !important;
}

/* EOF mobile sidebar parity: theme-specific legacy cards must not override
   the transparent expanded-desktop navigation treatment above. */
@media (max-width: 1023px) {
    html body.raika-body #sidebar-toggle:checked ~ #sidebar.raika-sidebar-wrap {
        z-index: 10050 !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-sidebar-close,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-item,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-sidebar-close,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-nav-item,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
    html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-close,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
}

/* Center the tablet menu glyph inside its square hit target. */
@media (min-width: 768px) and (max-width: 1023px) {
    html body.raika-body .raika-topbar-left > label[for="sidebar-toggle"] {
        display: grid !important;
        place-items: center !important;
        padding: 0 !important;
        line-height: 0 !important;
    }

    html body.raika-body .raika-topbar-left > label[for="sidebar-toggle"] > .raika-icon {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* Universal filter flow: categories, then search/provider controls, then games. */
@media (min-width: 1024px) {
    html body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-sections,
    html body.raika-body .raika-home:not(.is-games-view) > .raika-sections {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
    }

    html body.raika-body .raika-home.is-games-view > .raika-searchbar {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    html body.raika-body .raika-home.is-games-view > .raika-search-controls {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

@media (min-width: 1181px) {
    html body.raika-body .raika-home > .raika-search-controls,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls {
        grid-template-columns: minmax(0, 1fr) 1px minmax(260px, 300px) !important;
        align-items: center !important;
        gap: 14px !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-search-field,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 1px !important;
        height: 30px !important;
        justify-self: center !important;
        border-radius: 999px !important;
        background: rgba(139, 162, 191, .18) !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > #providers-wrap {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 300px !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }
}

@media (max-width: 1023px) {
    html body.raika-body .raika-home,
    html body.raika-body .raika-home:not(.is-games-view),
    html body.raika-body .raika-home.is-games-view {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections {
        display: contents !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #slider,
    html body.raika-body .raika-home:not(.is-games-view) > #slider {
        order: 1 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) .raika-category-strip {
        order: 2 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar {
        order: 3 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls {
        order: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-sections,
    html body.raika-body .raika-home:not(.is-games-view) > .raika-sections {
        order: 5 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html body.raika-body .raika-home > .raika-search-controls,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) !important;
        align-items: center !important;
        gap: 12px !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-search-field,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > #providers-wrap {
        grid-area: auto !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 300px !important;
        justify-self: stretch !important;
    }
}

@media (max-width: 767px) {
    html body.raika-body .raika-home > .raika-search-controls,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) clamp(140px, 40vw, 160px) !important;
        grid-template-rows: 54px !important;
        gap: 10px !important;
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        margin: 0 0 18px !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-search-field,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > #providers-wrap {
        grid-area: auto !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap .ts-wrapper,
    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap .ts-control {
        height: 54px !important;
        min-height: 54px !important;
        max-height: 54px !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap .ts-control {
        padding: 0 28px 0 42px !important;
        overflow: hidden !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap .left-icon {
        left: 14px !important;
        width: 18px !important;
        height: 18px !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap .raika-provider-placeholder {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* Hero artwork belongs to the card, not to the sidebar state. Keep every image
   at the same card-relative coordinates while the desktop sidebar resizes. */
@media (min-width: 1024px) {
    html body.raika-body .raika-shell .raika-hero-slide img {
        transition: none !important;
        animation: none !important;
    }

    html body.raika-body .raika-shell:not(.raika-sidebar-collapsed) .raika-hero-slots,
    html body.raika-body .raika-shell.raika-sidebar-collapsed .raika-hero-slots {
        right: -18% !important;
        translate: none !important;
    }

    html body.raika-body .raika-shell:not(.raika-sidebar-collapsed) .raika-hero-originals,
    html body.raika-body .raika-shell.raika-sidebar-collapsed .raika-hero-originals {
        right: -10% !important;
        translate: none !important;
    }
}

/* Final tablet lockdown: this must stay after desktop filter-row overrides. */
@media (min-width: 768px) and (max-width: 1180px) {
    body.raika-body .raika-app-content,
    body.raika-body .raika-home,
    body.raika-body .raika-home-panels,
    body.raika-body .raika-sections,
    body.raika-body .raika-game-section,
    body.raika-body .raika-provider-list-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home-filter-tab {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 58px !important;
        padding-inline: clamp(8px, 1.3vw, 14px) !important;
        border-radius: 10px !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: clamp(13px, 1.65vw, 16px) !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-search-field,
    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-hero,
    body.raika-body .raika-category-strip,
    body.raika-body .raika-section-hero,
    body.raika-body .raika-key-hero,
    body.raika-body .raika-referral-hero,
    body.raika-body .lucky-wheel-hero,
    body.raika-body .raika-rules-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.raika-body .raika-game-row,
    body.raika-body .raika-provider-list {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

@media (min-width: 768px) and (max-width: 920px) {
    body.raika-body .raika-home-filter-tab {
        gap: 6px !important;
        padding-inline: 8px !important;
    }

    body.raika-body .raika-home-filter-icon {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }
}

/* Tablet adaptive safety net: keep every main surface inside the viewport. */
@media (min-width: 768px) and (max-width: 1180px) {
    html,
    body.raika-body {
        overflow-x: hidden !important;
    }

    body.raika-body .raika-shell,
    body.raika-body .raika-main,
    body.raika-body .raika-page,
    body.raika-body .raika-app-content {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body.raika-body .raika-app-content {
        padding-inline: clamp(16px, 3vw, 28px) !important;
        padding-bottom: 28px !important;
    }

    body.raika-body .raika-topbar {
        width: 100% !important;
        max-width: 100vw !important;
        padding-inline: clamp(16px, 3vw, 28px) !important;
    }

    body.raika-body .raika-user-actions {
        max-width: calc(100vw - 32px) !important;
    }

    body.raika-body .raika-home {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: clamp(16px, 2.6vw, 24px) !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-panels:not(.hidden) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 14px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-hero,
    body.raika-body .raika-section-hero,
    body.raika-body .raika-key-hero,
    body.raika-body .raika-referral-hero,
    body.raika-body .lucky-wheel-hero,
    body.raika-body .raika-rules-hero {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-hero,
    body.raika-body .raika-hero-slide {
        min-height: clamp(250px, 34vw, 360px) !important;
    }

    body.raika-body .raika-hero-copy {
        max-width: min(56%, 460px) !important;
        padding-left: clamp(28px, 5vw, 54px) !important;
    }

    body.raika-body .raika-hero-copy h1 {
        font-size: clamp(42px, 7vw, 76px) !important;
        line-height: .98 !important;
    }

    body.raika-body .raika-hero-copy p {
        max-width: 420px !important;
        font-size: clamp(16px, 2.2vw, 22px) !important;
    }

    body.raika-body .raika-hero-art,
    body.raika-body .raika-hero-slots,
    body.raika-body .raika-hero-originals {
        right: clamp(-80px, -7vw, -28px) !important;
        max-width: 50% !important;
        object-fit: contain !important;
    }

    body.raika-body .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-feature-card {
        width: 100% !important;
        min-width: 0 !important;
        height: clamp(96px, 16vw, 132px) !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs,
    body.raika-body .raika-lobby-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home-filter-tab {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 58px !important;
        padding: 0 10px !important;
        gap: 8px !important;
        font-size: clamp(13px, 1.7vw, 16px) !important;
        white-space: nowrap !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.raika-body .raika-home-filter-icon {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-search-field {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 58px !important;
    }

    body.raika-body .raika-search-field input {
        min-width: 0 !important;
        font-size: 16px !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-sections,
    body.raika-body .raika-game-section,
    body.raika-body .raika-provider-list-section {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-section-head {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-game-row,
    body.raika-body .raika-provider-list {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-auto-columns: minmax(130px, 156px) !important;
        gap: 14px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 8px !important;
        scrollbar-width: none !important;
    }

    body.raika-body .raika-game-row::-webkit-scrollbar,
    body.raika-body .raika-provider-list::-webkit-scrollbar {
        display: none !important;
    }

    body.raika-body #grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (min-width: 768px) and (max-width: 920px) {
    body.raika-body .raika-hero-copy {
        max-width: 62% !important;
    }

    body.raika-body .raika-category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.raika-body #grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Final home filter row: category tabs, search and provider selector visible together. */
body.raika-body .raika-home > .raika-searchbar,
body.raika-body .raika-home.is-games-view > .raika-searchbar {
    grid-template-columns: minmax(620px, 1fr) 2px minmax(300px, 0.46fr) minmax(210px, 0.3fr) !important;
    gap: 14px !important;
}

body.raika-body .raika-home #providers-wrap,
body.raika-body .raika-home.is-games-view #providers-wrap {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.raika-body .raika-home #providers-wrap .ts-wrapper,
body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
body.raika-body .raika-home #providers-wrap .ts-control,
body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.raika-body .raika-home #providers-wrap .ts-control,
body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
    align-items: center !important;
    padding: 0 42px 0 54px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: var(--raika-control-bg, #13243a) !important;
    box-shadow: none !important;
    color: #dbe5f2 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

body.raika-body .raika-home #providers-wrap .left-icon,
body.raika-body .raika-home.is-games-view #providers-wrap .left-icon {
    display: flex !important;
    position: absolute !important;
    z-index: 3 !important;
    top: 50% !important;
    left: 15px !important;
    width: 25px !important;
    height: 25px !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #8f98a7 !important;
}

body.raika-body .raika-home #providers-wrap .left-icon svg,
body.raika-body .raika-home.is-games-view #providers-wrap .left-icon svg {
    width: 17px !important;
    height: 17px !important;
}

body.raika-body .raika-home #providers-wrap .raika-provider-placeholder,
body.raika-body .raika-home.is-games-view #providers-wrap .raika-provider-placeholder,
body.raika-body .raika-home #providers-wrap .ts-control .item,
body.raika-body .raika-home.is-games-view #providers-wrap .ts-control .item {
    color: #8f98a7 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
}

body.raika-body .raika-home #providers-wrap .ts-control::after,
body.raika-body .raika-home.is-games-view #providers-wrap .ts-control::after {
    right: 15px !important;
}

html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-control,
html[data-theme="light"] body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
    background: #dbe3ec !important;
    color: #243248 !important;
}

html[data-theme="light"] body.raika-body .raika-home #providers-wrap .raika-provider-placeholder,
html[data-theme="light"] body.raika-body .raika-home.is-games-view #providers-wrap .raika-provider-placeholder,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-control .item,
html[data-theme="light"] body.raika-body .raika-home.is-games-view #providers-wrap .ts-control .item {
    color: #65758d !important;
}

html[data-theme="light"] body.raika-body .raika-home #providers-wrap .left-icon,
html[data-theme="light"] body.raika-body .raika-home.is-games-view #providers-wrap .left-icon {
    background: transparent !important;
    color: #65758d !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
    }
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab,
html[data-theme="light"] body.raika-body .raika-home-filter-tab > span {
    color: #4a586c !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover,
html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover > span {
    color: #263245 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab.is-active,
html[data-theme="light"] body.raika-body .raika-home-filter-tab.is-active > span,
html[data-theme="light"] body.raika-body .raika-home-filter-tab[aria-current="true"],
html[data-theme="light"] body.raika-body .raika-home-filter-tab[aria-current="true"] > span {
    color: #ffffff !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item > span {
    color: #4a586c !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover > span,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active > span {
    color: #0878ff !important;
    opacity: 1 !important;
}

@media (min-width: 768px) {
    body.raika-body .raika-home:not(.is-games-view) {
        margin-top: 14px !important;
    }
}

@media (min-width: 1024px) {
    body.raika-body .raika-topbar-left {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-topbar-wordmark {
        display: inline-flex !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        align-items: center !important;
        color: #ffffff !important;
        font-size: 44px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        text-decoration: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    body.raika-body .raika-topbar-wheel {
        display: inline-flex !important;
        width: auto !important;
        height: 44px !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 4px 15px 4px 5px !important;
        border: 1px solid #373d45 !important;
        border-radius: 14px !important;
        background: #22272f !important;
        box-shadow: none !important;
        overflow: hidden !important;
        text-decoration: none !important;
        transition: background-color .18s ease, border-color .18s ease, transform .18s ease !important;
    }

    body.raika-body .raika-topbar-wheel:hover {
        border-color: #4a525d !important;
        background: #292f37 !important;
        transform: translateY(-1px) !important;
    }

    body.raika-body .raika-topbar-wheel:focus-visible {
        outline: 2px solid #1682ff !important;
        outline-offset: 3px !important;
    }

    body.raika-body .raika-topbar-wheel > img {
        display: block !important;
        width: 34px !important;
        height: 38px !important;
        max-width: none !important;
        object-fit: contain !important;
    }

    body.raika-body .raika-topbar-wheel > span {
        display: block !important;
        color: #e1e5eb !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: -.01em !important;
        white-space: nowrap !important;
    }

    html[data-theme="light"] body.raika-body .raika-topbar-wheel {
        border-color: #cbd6e2 !important;
        background: #f7f9fb !important;
        box-shadow: inset 0 1px 0 #ffffff !important;
    }

    html[data-theme="light"] body.raika-body .raika-topbar-wheel:hover {
        border-color: #1682ff !important;
        background: #eaf2fb !important;
    }

    html[data-theme="light"] body.raika-body .raika-topbar-wheel > span {
        color: #243246 !important;
    }
}

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

    body.raika-body .raika-topbar-left {
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-mobile-brand {
        display: inline-flex !important;
        align-items: center !important;
        color: #ffffff !important;
        font-size: 30px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        text-decoration: none !important;
        overflow: visible !important;
    }

    body.raika-body .raika-mobile-brand span {
        color: inherit !important;
        font: inherit !important;
        letter-spacing: inherit !important;
        line-height: inherit !important;
    }
}

body.raika-body #avatar-menu.raika-avatar-menu {
    z-index: 10090 !important;
}

body.raika-body #wallet_modal.modal,
body.raika-body #history_modal.modal,
body.raika-body .raika-ui-overlay,
body.raika-body #lucky-wheel-result-modal,
body.raika-body .modal.modal-open {
    z-index: 2147483200 !important;
}

/* Reference graphite shell: near-black page with a clearly separated sidebar. */
html:not([data-theme="light"]) body.raika-body,
html[data-theme="dark"] body.raika-body {
    --lobby-bg: var(--raika-bg) !important;
    --raika-ui-bg: var(--raika-bg) !important;
    --raika-page-bg: var(--raika-bg) !important;
    background: var(--raika-bg) !important;
}

html:not([data-theme="light"]) body.raika-body .raika-shell,
html:not([data-theme="light"]) body.raika-body .raika-main,
html:not([data-theme="light"]) body.raika-body .raika-page,
html:not([data-theme="light"]) body.raika-body .raika-topbar,
html[data-theme="dark"] body.raika-body .raika-shell,
html[data-theme="dark"] body.raika-body .raika-main,
html[data-theme="dark"] body.raika-body .raika-page,
html[data-theme="dark"] body.raika-body .raika-topbar {
    background: var(--raika-bg) !important;
}

html:not([data-theme="light"]) body.raika-body #sidebar .raika-sidebar,
html[data-theme="dark"] body.raika-body #sidebar .raika-sidebar {
    background: var(--raika-sidebar-bg) !important;
}

@media (max-width: 767px) {
    html:not([data-theme="light"]) body.raika-body .raika-topbar,
    html[data-theme="dark"] body.raika-body .raika-topbar {
        background: rgba(12, 15, 17, .96) !important;
    }
}

html[data-theme="light"] body.raika-body .raika-topbar-wordmark,
html[data-theme="light"] body.raika-body .raika-mobile-brand,
html[data-theme="light"] body.raika-body .raika-mobile-brand span,
html[data-theme="light"] body.raika-body .raika-home-brand-link {
    color: #101923 !important;
}

/* Wallet payment steps: bring the old deposit/withdraw internals into the Raika surface language. */
body.raika-body #wallet_modal .raika-deposit-panel:not(.hidden) {
    display: flex !important;
    margin: 16px 24px 20px !important;
    padding: 0 !important;
    gap: 14px !important;
}

body.raika-body #wallet_modal .raika-deposit-head {
    display: grid !important;
    grid-template-columns: 44px 46px minmax(0, 1fr) !important;
    min-height: 64px !important;
    padding: 10px 16px 10px 10px !important;
    gap: 12px !important;
    align-items: center !important;
    border: 1px solid #263546 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #141f2b 0%, #0d1724 56%, #0a1320 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 12px 28px rgba(0, 0, 0, .18) !important;
}

body.raika-body #wallet_modal .raika-deposit-back {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #263546 !important;
    border-radius: 14px !important;
    color: #d9e7f6 !important;
    background: #1a232d !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045) !important;
}

body.raika-body #wallet_modal .raika-deposit-back:hover {
    color: #ffffff !important;
    border-color: #348cff !important;
    background: #1d2d43 !important;
}

body.raika-body #wallet_modal .raika-deposit-head-icon {
    width: 46px !important;
    height: 46px !important;
    border: 1px solid #2b5e93 !important;
    border-radius: 15px !important;
    color: #ddecff !important;
    background: linear-gradient(145deg, #218dff, #0b66df) !important;
    box-shadow: 0 12px 26px rgba(0, 115, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

body.raika-body #wallet_modal .raika-deposit-head-copy h4 {
    margin: 0 !important;
    color: #f7fbff !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

body.raika-body #wallet_modal .raika-deposit-head-copy p {
    margin-top: 5px !important;
    color: #8fa2b8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.raika-body #wallet_modal .raika-deposit-invoice,
body.raika-body #wallet_modal .raika-deposit-grid,
body.raika-body #wallet_modal .raika-deposit-networks,
body.raika-body #wallet_modal .raika-deposit-address,
body.raika-body #wallet_modal .raika-withdrawal-success {
    border: 1px solid #263546 !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #151d26, #0e151e) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

body.raika-body #wallet_modal .raika-deposit-grid,
body.raika-body #wallet_modal .raika-deposit-networks {
    padding: 14px !important;
}

body.raika-body #wallet_modal .raika-deposit-invoice {
    padding: 16px !important;
    gap: 11px !important;
}

body.raika-body #wallet_modal .raika-deposit-invoice label {
    color: #b9c7d8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

body.raika-body #wallet_modal .raika-deposit-invoice input,
body.raika-body #wallet_modal .raika-deposit-invoice select,
body.raika-body #wallet_modal .raika-deposit-address-value {
    min-height: 48px !important;
    border: 1px solid #263546 !important;
    border-radius: 12px !important;
    color: #eef6ff !important;
    background: #20262d !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body.raika-body #wallet_modal .raika-deposit-invoice input:focus,
body.raika-body #wallet_modal .raika-deposit-invoice select:focus {
    border-color: #2d8eff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(33, 136, 255, .16) !important;
}

body.raika-body #wallet_modal .raika-deposit-invoice .btn-primary,
body.raika-body #wallet_modal #deposit-invoice-create,
body.raika-body #wallet_modal #deposit-invoice-open,
body.raika-body #wallet_modal #withdrawal-calculate,
body.raika-body #wallet_modal #withdrawal-create {
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2799ff 0%, #0879f2 55%, #0666d4 100%) !important;
    box-shadow: 0 16px 32px rgba(0, 117, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

body.raika-body #wallet_modal .raika-deposit-choice,
body.raika-body #wallet_modal .raika-deposit-network,
body.raika-body #wallet_modal .raika-deposit-quick-amount,
body.raika-body #wallet_modal .raika-deposit-payment-currency,
body.raika-body #wallet_modal .raika-withdrawal-network-fee {
    border: 1px solid #263546 !important;
    border-radius: 14px !important;
    color: #eaf3ff !important;
    background: #1a222b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

body.raika-body #wallet_modal .raika-deposit-choice:hover,
body.raika-body #wallet_modal .raika-deposit-network:hover,
body.raika-body #wallet_modal .raika-deposit-quick-amount:hover,
body.raika-body #wallet_modal .raika-deposit-payment-currency:hover {
    border-color: #2f8dff !important;
    background: #1b2b40 !important;
    transform: translateY(-1px);
}

body.raika-body #wallet_modal .raika-deposit-choice-copy small,
body.raika-body #wallet_modal .raika-withdrawal-network-fee,
body.raika-body #wallet_modal #withdrawal-calculation,
body.raika-body #wallet_modal #withdrawal-confirm-details,
body.raika-body #wallet_modal #deposit-invoice-result-amount {
    color: #91a3b8 !important;
}

body.raika-body #wallet_modal .raika-deposit-address {
    padding: 16px !important;
}

body.raika-body #wallet_modal .raika-deposit-address-meta strong,
body.raika-body #wallet_modal .raika-withdrawal-success-copy > strong {
    color: #f7fbff !important;
}

body.raika-body #wallet_modal .raika-deposit-address-value code {
    color: #d9e8f9 !important;
}

html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-head,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-invoice,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-grid,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-networks,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-address,
html[data-theme="light"] body.raika-body #wallet_modal .raika-withdrawal-success {
    border-color: #d2dce7 !important;
    background: #f4f7fa !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-back,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-choice,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-network,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-quick-amount,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-payment-currency,
html[data-theme="light"] body.raika-body #wallet_modal .raika-withdrawal-network-fee {
    color: #33445a !important;
    border-color: #d2dce7 !important;
    background: #ffffff !important;
}

html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-head-copy h4,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-address-meta strong,
html[data-theme="light"] body.raika-body #wallet_modal .raika-withdrawal-success-copy > strong {
    color: #182536 !important;
}

html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-head-copy p,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-invoice label,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-choice-copy small {
    color: #64748b !important;
}

html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-invoice input,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-invoice select,
html[data-theme="light"] body.raika-body #wallet_modal .raika-deposit-address-value {
    color: #1b2738 !important;
    border-color: #d2dce7 !important;
    background: #ffffff !important;
}

@media (max-width: 640px) {
    body.raika-body #wallet_modal .raika-deposit-panel:not(.hidden) {
        margin: 12px 14px 16px !important;
        gap: 12px !important;
    }

    body.raika-body #wallet_modal .raika-deposit-head {
        grid-template-columns: 42px 44px minmax(0, 1fr) !important;
        min-height: 62px !important;
        padding: 9px !important;
        border-radius: 16px !important;
    }

    body.raika-body #wallet_modal .raika-deposit-back,
    body.raika-body #wallet_modal .raika-deposit-head-icon {
        width: 42px !important;
        height: 42px !important;
    }

    body.raika-body #wallet_modal .raika-deposit-head-copy h4 {
        font-size: 17px !important;
    }
}

/* Keep light-theme sidebar subcategories as readable as regular categories. */
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item > span {
    color: #4a586c !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item:hover > span,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active,
html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item.is-active > span {
    color: #0878ff !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab,
html[data-theme="light"] body.raika-body .raika-home-filter-tab > span {
    color: #4a586c !important;
    opacity: 1 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover,
html[data-theme="light"] body.raika-body .raika-home-filter-tab:hover > span {
    color: #263245 !important;
}

html[data-theme="light"] body.raika-body .raika-home-filter-tab.is-active,
html[data-theme="light"] body.raika-body .raika-home-filter-tab.is-active > span,
html[data-theme="light"] body.raika-body .raika-home-filter-tab[aria-current="true"],
html[data-theme="light"] body.raika-body .raika-home-filter-tab[aria-current="true"] > span {
    color: #ffffff !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
    background: #dbe3ec !important;
    border-color: #c8d3df !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-field-icon,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-field-icon {
    color: #73829a !important;
}

html[data-theme="light"] body.raika-body .raika-home > .raika-searchbar .raika-search-field input::placeholder,
html[data-theme="light"] body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field input::placeholder {
    color: #65758d !important;
}

body.raika-body .raika-home.is-games-view > .raika-searchbar {
    margin-bottom: 8px !important;
}

body.raika-body .raika-home.is-games-view > .raika-sections {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.raika-body .raika-home.is-games-view > .raika-sections > .raika-game-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-wordmark,
html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-wordmark > a,
html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-wordmark > a img {
    filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* EOF tablet override: keep this below every late desktop filter rule. */
@media (min-width: 768px) and (max-width: 1180px) {
    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home-filter-tab {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 58px !important;
        padding-inline: clamp(8px, 1.3vw, 14px) !important;
        gap: 8px !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: clamp(13px, 1.65vw, 16px) !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-search-field,
    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home,
    body.raika-body .raika-home-panels,
    body.raika-body .raika-sections,
    body.raika-body .raika-game-section,
    body.raika-body .raika-provider-list-section,
    body.raika-body .raika-hero,
    body.raika-body .raika-category-strip {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
}

/* Absolute final hero visual override: compact circle, no top glow. */
body.raika-body .raika-hero {
    background: linear-gradient(112deg, #10233c 0%, #0b4f9f 54%, #0878ff 100%) !important;
}

body.raika-body .raika-hero::before {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 18px) !important;
}

body.raika-body .raika-hero-slide::before {
    right: 18px !important;
    width: 220px !important;
    height: 220px !important;
    opacity: .72 !important;
}

/* Mobile drawer must not inherit desktop compact/flyout sidebar behavior. */
@media (max-width: 1023px) {
    body.raika-body #sidebar.raika-sidebar-wrap,
    body.raika-body #sidebar .raika-sidebar,
    body.raika-body .raika-sidebar-collapsed #sidebar.raika-sidebar-wrap,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar {
        width: min(330px, 86vw) !important;
        min-width: min(330px, 86vw) !important;
        max-width: min(330px, 86vw) !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark {
        display: flex !important;
        min-height: 64px !important;
        height: auto !important;
        max-height: none !important;
        margin-bottom: 4px !important;
        padding-right: 68px !important;
        place-items: initial !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark > a img {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 60px !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-sublist {
        display: grid !important;
        max-height: none !important;
        margin: 5px 0 3px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-item > span:not(.raika-nav-external) {
        max-width: none !important;
        font-size: inherit !important;
        line-height: inherit !important;
    }

    body.raika-body .raika-sidebar-collapsed #sidebar .raika-nav-summary .raika-nav-chevron {
        display: inline-flex !important;
        width: 16px !important;
        max-width: 16px !important;
        flex-basis: 16px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .raika-sidebar-flyout {
        display: none !important;
    }
}

/* Final iPad Mini/Air adaptive pass. Keeps tablet widths from inheriting the
   desktop home grid that needs more horizontal room than 768-1180px provides. */
@media (min-width: 768px) and (max-width: 1180px) {
    html,
    body.raika-body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body.raika-body .raika-shell,
    body.raika-body .raika-main,
    body.raika-body .raika-page,
    body.raika-body .raika-app-content {
        min-width: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body.raika-body .raika-app-content {
        padding-inline: clamp(16px, 2.6vw, 26px) !important;
        padding-bottom: 34px !important;
    }

    body.raika-body .raika-topbar {
        max-width: 100vw !important;
        padding-inline: clamp(16px, 2.6vw, 26px) !important;
    }

    body.raika-body .raika-home,
    body.raika-body .raika-home:not(.is-games-view) {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 16px !important;
        margin-top: 86px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home.is-games-view {
        margin-top: 0 !important;
    }

    body.raika-body .raika-home-panels:not(.hidden) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(218px, 0.38fr) !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 8px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home-filter-tab {
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 8px !important;
        gap: 7px !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: clamp(11px, 1.35vw, 14px) !important;
        line-height: 1.1 !important;
    }

    body.raika-body .raika-home-filter-icon {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-home > .raika-searchbar .raika-search-field,
    body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
    }

    body.raika-body .raika-hero,
    body.raika-body .raika-hero-slide,
    body.raika-body .raika-category-strip,
    body.raika-body .raika-sections,
    body.raika-body .raika-game-section,
    body.raika-body .raika-provider-list-section,
    body.raika-body .raika-pick-carousel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-hero,
    body.raika-body .raika-hero-slide {
        min-height: clamp(248px, 34vw, 336px) !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-hero-slide {
        padding: clamp(26px, 4vw, 42px) !important;
    }

    body.raika-body .raika-hero-copy {
        width: min(60%, 460px) !important;
        max-width: min(60%, 460px) !important;
        padding-left: 0 !important;
    }

    body.raika-body .raika-hero-copy h1,
    body.raika-body .raika-hero-title-row h1 {
        font-size: clamp(36px, 6vw, 64px) !important;
        line-height: 0.98 !important;
    }

    body.raika-body .raika-hero-copy p {
        max-width: 460px !important;
        font-size: clamp(15px, 2vw, 20px) !important;
    }

    body.raika-body .raika-hero-art,
    body.raika-body .raika-hero-slots,
    body.raika-body .raika-hero-originals {
        right: clamp(-95px, -8vw, -36px) !important;
        max-width: 54% !important;
        height: min(145%, 390px) !important;
    }

    body.raika-body .raika-hero-highlights {
        right: clamp(18px, 4vw, 46px) !important;
        transform: translateY(-50%) scale(0.9) !important;
        transform-origin: right center !important;
    }

    body.raika-body .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-feature-card {
        min-width: 0 !important;
        height: clamp(88px, 13vw, 120px) !important;
    }

    body.raika-body .raika-pick-carousel {
        display: grid !important;
        grid-template-columns: minmax(188px, 0.32fr) minmax(0, 1fr) !important;
        gap: 16px !important;
        padding: clamp(18px, 3vw, 24px) !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-pick-carousel-copy {
        max-width: 210px !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-pick-carousel-copy strong {
        font-size: clamp(22px, 3vw, 30px) !important;
        line-height: 1.08 !important;
    }

    body.raika-body .raika-pick-carousel-track,
    body.raika-body .raika-game-row,
    body.raika-body .raika-provider-list {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain !important;
    }

    body.raika-body .raika-pick-carousel-card {
        width: clamp(92px, 12vw, 128px) !important;
        flex-basis: clamp(92px, 12vw, 128px) !important;
    }

    body.raika-body .raika-pick-carousel-arrow {
        width: 40px !important;
        height: 40px !important;
    }

    body.raika-body .raika-pick-carousel-arrow[data-pick-carousel-dir="-1"] {
        left: 12px !important;
        right: auto !important;
    }

    body.raika-body .raika-pick-carousel-arrow[data-pick-carousel-dir="1"] {
        right: 12px !important;
        left: auto !important;
    }

    body.raika-body #grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    body.raika-body .raika-app-content {
        padding-inline: 16px !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap,
    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        grid-column: 1 !important;
    }

    body.raika-body .raika-home-filter-tab {
        padding: 0 5px !important;
        gap: 5px !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        font-size: 11px !important;
    }

    body.raika-body .raika-hero-copy {
        width: 64% !important;
        max-width: 64% !important;
    }

    body.raika-body .raika-hero-art,
    body.raika-body .raika-hero-slots,
    body.raika-body .raika-hero-originals {
        right: -120px !important;
        max-width: 58% !important;
    }

    body.raika-body .raika-hero-highlights {
        display: none !important;
    }

    body.raika-body .raika-pick-carousel {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.raika-body .raika-pick-carousel-copy {
        max-width: 100% !important;
    }

    body.raika-body #grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    body.raika-body #grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Final tablet/narrow-desktop home layout: keep tabs visible and move search below. */
@media (min-width: 768px) and (max-width: 1366px) {
    body.raika-body .raika-home,
    body.raika-body .raika-home:not(.is-games-view),
    body.raika-body .raika-home.is-games-view {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) !important;
        grid-template-areas:
            "tabs tabs"
            "search providers" !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs {
        grid-area: tabs !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        overflow: hidden !important;
    }

    body.raika-body .raika-home-filter-tab {
        min-width: 0 !important;
        padding-inline: clamp(8px, 1.4vw, 18px) !important;
        white-space: nowrap !important;
    }

    body.raika-body .raika-home-filter-tab > span {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-home > .raika-searchbar .raika-search-field,
    body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
        grid-area: search !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap {
        grid-area: providers !important;
        justify-self: stretch !important;
        width: 100% !important;
        max-width: 320px !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 56px !important;
        min-height: 56px !important;
    }

    body.raika-body .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body.raika-body .raika-feature-card {
        min-width: 0 !important;
        height: clamp(108px, 11vw, 138px) !important;
        min-height: 108px !important;
        padding: 16px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, var(--raika-card-gradient-start), var(--raika-card-gradient-end)) !important;
        border-color: var(--raika-card-border) !important;
        box-shadow: var(--raika-card-shadow) !important;
    }

    body.raika-body .raika-feature-card span {
        max-width: 60% !important;
        gap: 5px !important;
        z-index: 2 !important;
    }

    body.raika-body .raika-feature-card strong {
        font-size: clamp(15px, 1.8vw, 21px) !important;
        line-height: 1.08 !important;
    }

    body.raika-body .raika-feature-card small {
        display: block !important;
        font-size: clamp(11px, 1.25vw, 14px) !important;
        line-height: 1.15 !important;
        opacity: 0.82 !important;
    }

    body.raika-body .raika-feature-card img {
        right: -12px !important;
        bottom: -14px !important;
        width: auto !important;
        max-width: 58% !important;
        height: 128% !important;
        max-height: none !important;
        object-fit: contain !important;
        filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.28)) !important;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "tabs"
            "search"
            "providers" !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap {
        width: min(100%, 420px) !important;
        max-width: 100% !important;
        justify-self: start !important;
    }
}

/* Hard override for iPad, tablet emulation and compact webapp widths. */
@media (max-width: 1366px) {
    body.raika-body .raika-home > .raika-searchbar,
    body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "tabs"
            "search"
            "providers" !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home-filter-tabs {
        grid-area: tabs !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.raika-body .raika-filter-search-separator,
    body.raika-body .raika-home-filter-divider {
        display: none !important;
    }

    body.raika-body .raika-home > .raika-searchbar .raika-search-field,
    body.raika-body .raika-home.is-games-view > .raika-searchbar .raika-search-field {
        grid-area: search !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    body.raika-body .raika-home #providers-wrap,
    body.raika-body .raika-home.is-games-view #providers-wrap {
        grid-area: providers !important;
        grid-column: 1 / -1 !important;
        width: min(100%, 420px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: start !important;
    }

    body.raika-body .raika-home #providers-wrap .ts-wrapper,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    body.raika-body .raika-home #providers-wrap .ts-control,
    body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

@media (min-width: 560px) and (max-width: 1366px) {
    body.raika-body .raika-category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.raika-body .raika-feature-card {
        height: clamp(110px, 14vw, 146px) !important;
        min-height: 110px !important;
        padding: clamp(14px, 2vw, 18px) !important;
    }

    body.raika-body .raika-feature-card span {
        max-width: 62% !important;
    }

    body.raika-body .raika-feature-card img {
        right: -10px !important;
        bottom: -16px !important;
        max-width: 58% !important;
        height: 130% !important;
        max-height: none !important;
    }
}

/* React to the actual home content width, not the browser viewport. */
body.raika-body .raika-home {
    container-type: inline-size;
    container-name: raika-home;
}

@container raika-home (max-width: 980px) {
    .raika-home > .raika-searchbar,
    .raika-home.is-games-view > .raika-searchbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "tabs"
            "search"
            "providers" !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .raika-home-filter-tabs {
        grid-area: tabs !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .raika-filter-search-separator,
    .raika-home-filter-divider {
        display: none !important;
    }

    .raika-home > .raika-searchbar .raika-search-field,
    .raika-home.is-games-view > .raika-searchbar .raika-search-field {
        grid-area: search !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    .raika-home #providers-wrap,
    .raika-home.is-games-view #providers-wrap {
        grid-area: providers !important;
        grid-column: 1 / -1 !important;
        width: min(100%, 420px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: start !important;
    }

    .raika-home #providers-wrap .ts-wrapper,
    .raika-home.is-games-view #providers-wrap .ts-wrapper,
    .raika-home #providers-wrap .ts-control,
    .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .raika-feature-card {
        height: clamp(112px, 15cqw, 150px) !important;
        min-height: 112px !important;
        padding: clamp(14px, 2cqw, 18px) !important;
    }
}

@container raika-home (max-width: 620px) {
    .raika-category-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Tablet fallback driven by JS-measured content width. */
body.raika-body.raika-home-compact-layout .raika-home > .raika-searchbar,
body.raika-body.raika-home-compact-layout .raika-home.is-games-view > .raika-searchbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
        "tabs"
        "search"
        "providers" !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.raika-body.raika-home-compact-layout .raika-home-filter-tabs {
    grid-area: tabs !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

body.raika-body.raika-home-compact-layout .raika-filter-search-separator,
body.raika-body.raika-home-compact-layout .raika-home-filter-divider {
    display: none !important;
}

body.raika-body.raika-home-compact-layout .raika-home > .raika-searchbar .raika-search-field,
body.raika-body.raika-home-compact-layout .raika-home.is-games-view > .raika-searchbar .raika-search-field {
    grid-area: search !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
}

body.raika-body.raika-home-compact-layout .raika-home #providers-wrap,
body.raika-body.raika-home-compact-layout .raika-home.is-games-view #providers-wrap {
    grid-area: providers !important;
    grid-column: 1 / -1 !important;
    width: min(100%, 460px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: start !important;
}

body.raika-body.raika-home-compact-layout .raika-home #providers-wrap .ts-wrapper,
body.raika-body.raika-home-compact-layout .raika-home.is-games-view #providers-wrap .ts-wrapper,
body.raika-body.raika-home-compact-layout .raika-home #providers-wrap .ts-control,
body.raika-body.raika-home-compact-layout .raika-home.is-games-view #providers-wrap .ts-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.raika-body.raika-home-compact-layout .raika-category-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.raika-body.raika-home-compact-layout .raika-feature-card {
    height: clamp(108px, 15vw, 146px) !important;
    min-height: 108px !important;
    padding: clamp(12px, 2vw, 18px) !important;
    overflow: hidden !important;
}

body.raika-body.raika-home-compact-layout .raika-feature-card span {
    max-width: 64% !important;
    font-size: clamp(13px, 1.8vw, 16px) !important;
    line-height: 1.1 !important;
}

body.raika-body.raika-home-compact-layout .raika-feature-card img {
    right: -8px !important;
    bottom: -14px !important;
    max-width: 58% !important;
    height: 132% !important;
    max-height: none !important;
}

/* iPad/tablet: keep filters first, force search onto the next line. */
@media (min-width: 700px) and (max-width: 1220px) {
    html body.raika-body .raika-home > .raika-searchbar,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-home > .raika-searchbar > .raika-home-filter-tabs,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-home-filter-tabs {
        order: 1 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body.raika-body .raika-home > .raika-searchbar > .raika-filter-search-separator,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-filter-search-separator,
    html body.raika-body .raika-home > .raika-searchbar > .raika-home-filter-divider,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-home-filter-divider {
        display: none !important;
    }

    html body.raika-body .raika-home > .raika-searchbar > .raika-search-field,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-search-field {
        order: 2 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-home > .raika-searchbar > #providers-wrap,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > #providers-wrap {
        order: 3 !important;
        flex: 0 1 460px !important;
        width: min(100%, 460px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}

/* Physical split: tabs live on the first row, search/provider live below. */
body.raika-body .raika-home > .raika-searchbar,
body.raika-body .raika-home.is-games-view > .raika-searchbar {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    margin: 0 0 12px !important;
    overflow: visible !important;
}

body.raika-body .raika-home > .raika-searchbar > .raika-home-filter-tabs,
body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-home-filter-tabs {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.raika-body .raika-home > .raika-search-controls,
body.raika-body .raika-home.is-games-view > .raika-search-controls {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) 2px minmax(230px, 300px) !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 34px !important;
    overflow: visible !important;
}

body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
    display: block !important;
}

body.raika-body .raika-home > .raika-search-controls > .raika-search-field,
body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: var(--raika-control-bg, #13243a) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.raika-body .raika-home > .raika-search-controls > .raika-search-field input,
body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field input {
    height: 54px !important;
    padding-left: 46px !important;
    color: #dbe5f2 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
}

body.raika-body .raika-home > .raika-search-controls > .raika-search-field input::placeholder,
body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field input::placeholder {
    color: #8f98a7 !important;
}

body.raika-body .raika-home > .raika-search-controls > .raika-search-field .raika-field-icon,
body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field .raika-field-icon {
    left: 15px !important;
    width: 18px !important;
    height: 18px !important;
}

body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
body.raika-body .raika-home.is-games-view > .raika-search-controls > #providers-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

@media (min-width: 700px) and (max-width: 1220px) {
    body.raika-body .raika-home > .raika-search-controls,
    body.raika-body .raika-home.is-games-view > .raika-search-controls {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 26px !important;
    }

    body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
    body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }

    body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
    body.raika-body .raika-home.is-games-view > .raika-search-controls > #providers-wrap {
        width: min(100%, 460px) !important;
        justify-self: start !important;
    }
}

@media (max-width: 699px) {
    body.raika-body .raika-home > .raika-search-controls,
    body.raika-body .raika-home.is-games-view > .raika-search-controls {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 22px !important;
    }

    body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
    body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }
}

/* Final home/tablet layout guard: tabs and search must never sit on one row. */
@media (max-width: 1220px) {
    body.raika-body .raika-home:not(.is-games-view) {
        overflow-x: hidden !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        order: 3 !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls {
        order: 4 !important;
        display: grid !important;
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: -4px 0 22px !important;
        overflow: visible !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field,
    body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-provider-field {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch !important;
    }

    body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-provider-field {
        width: min(100%, 460px) !important;
        justify-self: start !important;
    }

    body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-sections,
    body.raika-body .raika-home:not(.is-games-view) > .raika-sections {
        order: 5 !important;
    }
}

/* iPad Air portrait: move the actual search input below the tabs row. */
@media (min-width: 800px) and (max-width: 840px) and (min-height: 1100px) and (max-height: 1220px) {
    body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field {
        display: flex !important;
        position: relative !important;
        top: 74px !important;
        width: calc(100vw - 64px) !important;
        max-width: calc(100vw - 64px) !important;
        margin-bottom: 74px !important;
        z-index: 3 !important;
    }
}

/* Final iPad/tablet home fix: categories stay on their row, search drops below. */
@media (min-width: 768px) and (max-width: 1023px) {
    html body.raika-body .raika-home:not(.is-games-view) {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        overflow-x: hidden !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections {
        display: contents !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections > #slider.raika-hero,
    html body.raika-body .raika-home:not(.is-games-view) > #slider.raika-hero {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-category-strip,
    html body.raika-body .raika-home:not(.is-games-view) > .raika-category-strip {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        order: 3 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar > .raika-home-filter-tabs {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls {
        order: 4 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 18px !important;
        overflow: visible !important;
        transform: none !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field {
        display: flex !important;
        position: static !important;
        top: auto !important;
        transform: none !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-provider-field {
        grid-column: 1 / -1 !important;
        width: min(100%, 460px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: start !important;
        margin: 0 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) #home-sections > .raika-sections,
    html body.raika-body .raika-home:not(.is-games-view) > .raika-sections {
        order: 5 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Final mobile sidebar color parity after all legacy theme variants. */
@media (max-width: 1023px) {
    html body.raika-body #sidebar .raika-sidebar-close {
        display: grid !important;
        place-items: center !important;
        line-height: 0 !important;
    }

    html body.raika-body #sidebar .raika-sidebar-close > svg {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
        transform: none !important;
    }

    html[data-theme="dark"] body.raika-body #sidebar .raika-sidebar-close,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-item,
    html[data-theme="dark"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-sidebar-close,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-nav-item,
    html:not([data-theme="light"]) body.raika-body #sidebar .raika-nav-sublist .raika-nav-item,
    html[data-theme="light"] body.raika-body #sidebar .raika-sidebar-close,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-item,
    html[data-theme="light"] body.raika-body #sidebar .raika-nav-sublist .raika-nav-item {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }
}

/* Phone category tabs are a horizontal swipe rail, not a five-column grid. */
@media (max-width: 767px) {
    html body.raika-body .raika-home > .raika-searchbar > .raika-home-filter-tabs,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-home-filter-tabs {
        display: flex !important;
        grid-template-columns: none !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity !important;
        scroll-padding-inline: 4px !important;
        overscroll-behavior-x: contain !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    html body.raika-body .raika-home > .raika-searchbar > .raika-home-filter-tabs::-webkit-scrollbar,
    html body.raika-body .raika-home.is-games-view > .raika-searchbar > .raika-home-filter-tabs::-webkit-scrollbar {
        display: none !important;
    }

    html body.raika-body .raika-home .raika-home-filter-tab {
        flex: 0 0 clamp(120px, 36vw, 148px) !important;
        width: clamp(120px, 36vw, 148px) !important;
        min-width: clamp(120px, 36vw, 148px) !important;
        max-width: clamp(120px, 36vw, 148px) !important;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 12px !important;
        justify-content: center !important;
        gap: 8px !important;
        scroll-snap-align: start !important;
    }

    html body.raika-body .raika-home .raika-home-filter-tab .raika-home-filter-icon {
        width: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        height: 18px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        flex-basis: 18px !important;
    }

    html body.raika-body .raika-home .raika-home-filter-tab > span {
        display: block !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: 13px !important;
    }
}

/* Final phone feature-card artwork alignment. The 560-1366px tablet fallback
   above also matches wide phones and used to push the already-centered image
   past the right edge of the card. */
@media (max-width: 767px) {
    html body.raika-body .raika-category-strip .raika-feature-card img,
    html body.raika-body .raika-category-strip .raika-feature-card[href="/lucky-wheel"] img {
        top: 2px !important;
        right: 50% !important;
        bottom: auto !important;
        left: auto !important;
        width: 82px !important;
        max-width: none !important;
        height: 82px !important;
        max-height: 82px !important;
        object-fit: contain !important;
        translate: none !important;
        transform: translateX(50%) !important;
    }

    html body.raika-body .raika-category-strip .raika-promo-bonus img {
        width: 92px !important;
        height: 92px !important;
        max-height: 92px !important;
    }

    html body.raika-body .raika-category-strip .raika-promo-vip img {
        width: 88px !important;
        height: 88px !important;
        max-height: 88px !important;
    }

    html body.raika-body .raika-category-strip .raika-promo-referral img {
        width: 98px !important;
        height: 92px !important;
        max-height: 92px !important;
    }
}

/* Authoritative tablet composition. Keep this last: the legacy stylesheet
   contains older breakpoint experiments above that must not win the cascade. */
@media (min-width: 768px) and (max-width: 1180px) {
    html body.raika-body .raika-app-content {
        height: auto !important;
        min-height: calc(100dvh - 64px) !important;
        flex: 1 0 auto !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-category-strip {
        flex: 0 0 auto !important;
    }

    html body.raika-body .raika-category-strip > .raika-feature-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls {
        height: 54px !important;
        min-height: 54px !important;
        max-height: none !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field {
        grid-row: 1 !important;
        position: relative !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field .raika-field-icon {
        left: 18px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field input {
        padding-left: 50px !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > #providers-wrap {
        grid-area: auto !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 300px !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-home,
    html body.raika-body .raika-home:not(.is-games-view) {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 18px !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-hero .slides {
        display: flex !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
    }

    html body.raika-body .raika-hero .raika-hero-slide {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    html body.raika-body .raika-hero-copy {
        width: min(55%, 500px) !important;
        max-width: min(55%, 500px) !important;
    }

    html body.raika-body .raika-hero-art,
    html body.raika-body .raika-hero-slots,
    html body.raika-body .raika-hero-originals {
        right: clamp(-42px, -3vw, -22px) !important;
        max-width: 50% !important;
    }

    html body.raika-body .raika-category-strip {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-auto-rows: minmax(118px, auto) !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-category-strip .raika-feature-card {
        width: 100% !important;
        min-width: 0 !important;
        height: clamp(118px, 14vw, 146px) !important;
        min-height: 118px !important;
        max-height: 146px !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-searchbar {
        height: auto !important;
        min-height: 52px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls {
        grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) !important;
        align-items: center !important;
        gap: 12px !important;
        margin: 0 0 24px !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-search-field {
        grid-column: 1 !important;
    }

    html body.raika-body .raika-home:not(.is-games-view) > .raika-search-controls > .raika-provider-field {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 300px !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-footer {
        margin-top: 32px !important;
    }
}

/* Authoritative desktop position for the Originals mascot. Keep this last so
   older sidebar-state experiments cannot push the artwork outside the card. */
@media (min-width: 1181px) {
    html body.raika-body .raika-shell .raika-hero-slide img.raika-hero-art.raika-hero-originals {
        top: 50% !important;
        right: 4.5% !important;
        bottom: auto !important;
        left: auto !important;
        width: auto !important;
        height: min(100%, 340px) !important;
        max-width: 44% !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        translate: none !important;
        transform: translateY(-50%) !important;
    }
}

/* Final shelf proportions: larger game artwork and category labels, with
   compact navigation controls across every horizontal game section. */
body.raika-body .raika-home .raika-section-head {
    min-height: 40px !important;
    margin-bottom: 10px !important;
}

body.raika-body .raika-home .raika-section-head h2 {
    gap: 9px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -.02em !important;
}

body.raika-body .raika-home .raika-section-head h2::before {
    width: 3px !important;
    min-width: 3px !important;
    height: 24px !important;
    flex-basis: 3px !important;
}

@media (min-width: 1181px) {
    html body.raika-body .raika-home .raika-game-row {
        grid-auto-columns: clamp(168px, 10.5vw, 196px) !important;
        gap: 14px !important;
        padding-bottom: 7px !important;
    }

    html body.raika-body .raika-home .raika-section-head {
        min-height: 44px !important;
        margin-bottom: 12px !important;
    }

    html body.raika-body .raika-home .raika-section-head h2 {
        gap: 11px !important;
        font-size: 30px !important;
    }

    html body.raika-body .raika-home .raika-section-head h2::before {
        width: 4px !important;
        min-width: 4px !important;
        height: 30px !important;
        flex-basis: 4px !important;
    }
}

@media (min-width: 768px) and (max-width: 1180px) {
    html body.raika-body .raika-home .raika-game-row {
        grid-auto-columns: clamp(154px, 21vw, 178px) !important;
        gap: 12px !important;
    }

    html body.raika-body .raika-home .raika-section-head h2 {
        font-size: clamp(23px, 3vw, 27px) !important;
    }

    html body.raika-body .raika-home .raika-section-head h2::before {
        height: 27px !important;
    }
}

@media (max-width: 767px) {
    html body.raika-body .raika-home .raika-game-row {
        grid-auto-columns: clamp(132px, 39vw, 152px) !important;
        gap: 10px !important;
    }

    html body.raika-body .raika-home .raika-section-head {
        min-height: 34px !important;
        margin-bottom: 8px !important;
    }

    html body.raika-body .raika-home .raika-section-head h2 {
        gap: 8px !important;
        font-size: 21px !important;
    }

    html body.raika-body .raika-home .raika-section-head h2::before {
        height: 22px !important;
    }

    html body.raika-body .raika-row-controls {
        grid-template-columns: 32px 32px auto !important;
        gap: 5px !important;
    }

    html body.raika-body .raika-row-controls .raika-row-control,
    html body.raika-body .raika-row-controls .raika-section-link {
        height: 32px !important;
        min-height: 32px !important;
        border-radius: 9px !important;
    }

    html body.raika-body .raika-row-controls .raika-row-control {
        width: 32px !important;
        min-width: 32px !important;
        flex-basis: 32px !important;
    }

    html body.raika-body .raika-row-controls .raika-section-link {
        min-width: 42px !important;
        padding-inline: 10px !important;
        font-size: 11px !important;
    }
}

/* Authoritative phone search stack: the query field owns the full row and
   the provider selector sits directly below it in every home state. */
@media (max-width: 767px) {
    html body.raika-body .raika-home > .raika-search-controls,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 20px !important;
        overflow: visible !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-filter-search-separator,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-filter-search-separator {
        display: none !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > .raika-search-field,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-home > .raika-search-controls > #providers-wrap,
    html body.raika-body .raika-home.is-games-view > .raika-search-controls > #providers-wrap {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    html body.raika-body .raika-home #providers-wrap .ts-wrapper,
    html body.raika-body .raika-home.is-games-view #providers-wrap .ts-wrapper,
    html body.raika-body .raika-home #providers-wrap .ts-control,
    html body.raika-body .raika-home.is-games-view #providers-wrap .ts-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* The provider selector must use the visible search-input surface, not the
   bluer legacy control token. Keep every Tom Select layer identical. */
html:not([data-theme="light"]) body.raika-body .raika-home #providers-wrap,
html:not([data-theme="light"]) body.raika-body .raika-home #providers-wrap .ts-wrapper,
html:not([data-theme="light"]) body.raika-body .raika-home #providers-wrap .ts-control,
html[data-theme="dark"] body.raika-body .raika-home #providers-wrap,
html[data-theme="dark"] body.raika-body .raika-home #providers-wrap .ts-wrapper,
html[data-theme="dark"] body.raika-body .raika-home #providers-wrap .ts-control {
    background: #22272f !important;
    background-image: none !important;
}

html[data-theme="light"] body.raika-body .raika-home #providers-wrap,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-wrapper,
html[data-theme="light"] body.raika-body .raika-home #providers-wrap .ts-control {
    background: #e2e8ef !important;
    background-image: none !important;
}

/* Promotional cards follow the neutral graphite shell instead of the legacy
   navy card palette. Artwork remains untouched and fully opaque. */
html:not([data-theme="light"]) body.raika-body .raika-category-strip .raika-feature-card,
html[data-theme="dark"] body.raika-body .raika-category-strip .raika-feature-card {
    background: linear-gradient(145deg, #252a31 0%, #1b2026 100%) !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-category-strip .raika-feature-card::before,
html[data-theme="dark"] body.raika-body .raika-category-strip .raika-feature-card::before {
    background: linear-gradient(145deg, #252a31 0%, #1b2026 100%) !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-category-strip .raika-feature-card::after,
html[data-theme="dark"] body.raika-body .raika-category-strip .raika-feature-card::after {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-category-strip .raika-feature-card:hover,
html:not([data-theme="light"]) body.raika-body .raika-category-strip .raika-feature-card:focus-visible,
html[data-theme="dark"] body.raika-body .raika-category-strip .raika-feature-card:hover,
html[data-theme="dark"] body.raika-body .raika-category-strip .raika-feature-card:focus-visible {
    background: linear-gradient(145deg, #2b3138 0%, #20262c 100%) !important;
    border-color: #4a535d !important;
}

/* Category rail uses the same graphite family as the refreshed cards. */
html:not([data-theme="light"]) body.raika-body .raika-home-filter-tabs,
html[data-theme="dark"] body.raika-body .raika-home-filter-tabs {
    background: linear-gradient(145deg, #252a31 0%, #1b2026 100%) !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-home-filter-tab,
html[data-theme="dark"] body.raika-body .raika-home-filter-tab {
    color: #aeb6c2 !important;
}

html:not([data-theme="light"]) body.raika-body .raika-home-filter-tab + .raika-home-filter-tab,
html[data-theme="dark"] body.raika-body .raika-home-filter-tab + .raika-home-filter-tab {
    border-left-color: #3a424b !important;
}

html:not([data-theme="light"]) body.raika-body .raika-home-filter-tab:hover,
html[data-theme="dark"] body.raika-body .raika-home-filter-tab:hover {
    color: #eef1f5 !important;
    background: #2b3138 !important;
}

html:not([data-theme="light"]) body.raika-body .raika-home-filter-tab.is-active,
html:not([data-theme="light"]) body.raika-body .raika-home-filter-tab[aria-current="true"],
html[data-theme="dark"] body.raika-body .raika-home-filter-tab.is-active,
html[data-theme="dark"] body.raika-body .raika-home-filter-tab[aria-current="true"] {
    color: #ffffff !important;
    border-left-color: transparent !important;
    box-shadow: none !important;
}

/* Search and provider selector share one silhouette at every breakpoint. */
body.raika-body .raika-home .raika-search-field,
body.raika-body .raika-home .raika-search-field input,
body.raika-body .raika-home #providers-wrap,
body.raika-body .raika-home #providers-wrap .ts-wrapper,
body.raika-body .raika-home #providers-wrap .ts-control {
    border-radius: 18px !important;
}

body.raika-body .raika-home > .raika-search-controls > .raika-search-field,
body.raika-body .raika-home.is-games-view > .raika-search-controls > .raika-search-field {
    border-radius: 18px !important;
}

@media (max-width: 767px) {
    html:not([data-theme="light"]) body.raika-body .raika-category-strip .raika-promo-mobile-label,
    html[data-theme="dark"] body.raika-body .raika-category-strip .raika-promo-mobile-label {
        color: #f2f5f8 !important;
        background: linear-gradient(180deg, rgba(27, 32, 38, 0) 0%, #1b2026 52%) !important;
    }
}

/* Providers already represents the complete list; its header only needs
   carousel navigation, so do not reserve a third column for an All action. */
body.raika-body .raika-provider-list-section .raika-row-controls {
    grid-template-columns: 34px 34px !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-provider-list-section .raika-row-controls {
        grid-template-columns: 32px 32px !important;
    }
}

/* Footer support card follows the neutral graphite palette. */
html:not([data-theme="light"]) body.raika-body .raika-footer,
html[data-theme="dark"] body.raika-body .raika-footer {
    background: linear-gradient(145deg, #252a31 0%, #1b2026 100%) !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-footer::before,
html[data-theme="dark"] body.raika-body .raika-footer::before {
    background: transparent !important;
    opacity: 0 !important;
}

html:not([data-theme="light"]) body.raika-body .raika-footer-copy > span,
html[data-theme="dark"] body.raika-body .raika-footer-copy > span {
    color: #c8d0da !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-footer-link,
html[data-theme="dark"] body.raika-body .raika-footer-link {
    color: #c4ccd6 !important;
    background: #22272f !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-footer-link:hover,
html:not([data-theme="light"]) body.raika-body .raika-footer-link:focus-visible,
html[data-theme="dark"] body.raika-body .raika-footer-link:hover,
html[data-theme="dark"] body.raika-body .raika-footer-link:focus-visible {
    color: #eef1f5 !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
}

html:not([data-theme="light"]) body.raika-body .raika-footer-icon,
html[data-theme="dark"] body.raika-body .raika-footer-icon {
    color: #aeb8c5 !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
    box-shadow: none !important;
}

/* The right vignette is a scroll affordance: it is visible only while more
   cards remain to the right. The left edge always stays fully visible. */
body.raika-body .raika-home .raika-game-row.has-more-right {
    -webkit-mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - 48px),
        rgba(0, 0, 0, .72) calc(100% - 18px),
        transparent 100%
    ) !important;
    mask-image: linear-gradient(
        90deg,
        #000 0,
        #000 calc(100% - 48px),
        rgba(0, 0, 0, .72) calc(100% - 18px),
        transparent 100%
    ) !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}

body.raika-body .raika-home .raika-game-row.has-more-left:not(.has-more-right) {
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, .72) 18px,
        #000 48px,
        #000 100%
    ) !important;
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, .72) 18px,
        #000 48px,
        #000 100%
    ) !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
}

body.raika-body .raika-home .raika-game-row.has-more-left.has-more-right {
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, .72) 18px,
        #000 48px,
        #000 calc(100% - 48px),
        rgba(0, 0, 0, .72) calc(100% - 18px),
        transparent 100%
    ) !important;
    mask-image: linear-gradient(
        90deg,
        transparent 0,
        rgba(0, 0, 0, .72) 18px,
        #000 48px,
        #000 calc(100% - 48px),
        rgba(0, 0, 0, .72) calc(100% - 18px),
        transparent 100%
    ) !important;
}

@media (max-width: 767px) {
    body.raika-body .raika-home .raika-game-row.has-more-right {
        -webkit-mask-image: linear-gradient(
            90deg,
            #000 0,
            #000 calc(100% - 28px),
            rgba(0, 0, 0, .78) calc(100% - 10px),
            transparent 100%
        ) !important;
        mask-image: linear-gradient(
            90deg,
            #000 0,
            #000 calc(100% - 28px),
            rgba(0, 0, 0, .78) calc(100% - 10px),
            transparent 100%
        ) !important;
    }

    body.raika-body .raika-home .raika-game-row.has-more-left:not(.has-more-right) {
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0,
            rgba(0, 0, 0, .78) 10px,
            #000 28px,
            #000 100%
        ) !important;
        mask-image: linear-gradient(
            90deg,
            transparent 0,
            rgba(0, 0, 0, .78) 10px,
            #000 28px,
            #000 100%
        ) !important;
    }

    body.raika-body .raika-home .raika-game-row.has-more-left.has-more-right {
        -webkit-mask-image: linear-gradient(
            90deg,
            transparent 0,
            rgba(0, 0, 0, .78) 10px,
            #000 28px,
            #000 calc(100% - 28px),
            rgba(0, 0, 0, .78) calc(100% - 10px),
            transparent 100%
        ) !important;
        mask-image: linear-gradient(
            90deg,
            transparent 0,
            rgba(0, 0, 0, .78) 10px,
            #000 28px,
            #000 calc(100% - 28px),
            rgba(0, 0, 0, .78) calc(100% - 10px),
            transparent 100%
        ) !important;
    }
}

/* Header account menu uses the same neutral graphite surfaces as the lobby. */
html:not([data-theme="light"]) body.raika-body #avatar-menu.raika-avatar-menu,
html[data-theme="dark"] body.raika-body #avatar-menu.raika-avatar-menu {
    color: #eef1f5 !important;
    background: #1b2026 !important;
    border-color: #3a424b !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .42) !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .menu > li > a,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-trigger,
html[data-theme="dark"] body.raika-body #avatar-menu .menu > li > a,
html[data-theme="dark"] body.raika-body #avatar-menu .language-trigger {
    color: #d8dee7 !important;
    background: #22272f !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .menu > li > a:hover,
html:not([data-theme="light"]) body.raika-body #avatar-menu .menu > li > a:focus-visible,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-trigger:hover,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-trigger:focus-visible,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-picker.is-open .language-trigger,
html[data-theme="dark"] body.raika-body #avatar-menu .menu > li > a:hover,
html[data-theme="dark"] body.raika-body #avatar-menu .menu > li > a:focus-visible,
html[data-theme="dark"] body.raika-body #avatar-menu .language-trigger:hover,
html[data-theme="dark"] body.raika-body #avatar-menu .language-trigger:focus-visible,
html[data-theme="dark"] body.raika-body #avatar-menu .language-picker.is-open .language-trigger {
    color: #ffffff !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .menu-icon,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-trigger-code,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-option-code,
html[data-theme="dark"] body.raika-body #avatar-menu .menu-icon,
html[data-theme="dark"] body.raika-body #avatar-menu .language-trigger-code,
html[data-theme="dark"] body.raika-body #avatar-menu .language-option-code {
    color: #9dc9ff !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .raika-theme-button--menu,
html[data-theme="dark"] body.raika-body #avatar-menu .raika-theme-button--menu {
    color: #bdc6d1 !important;
    background: #22272f !important;
    border-color: #3a424b !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .raika-theme-button--menu:hover,
html:not([data-theme="light"]) body.raika-body #avatar-menu .raika-theme-button--menu:focus-visible,
html[data-theme="dark"] body.raika-body #avatar-menu .raika-theme-button--menu:hover,
html[data-theme="dark"] body.raika-body #avatar-menu .raika-theme-button--menu:focus-visible {
    color: #ffffff !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .raika-language-separator,
html[data-theme="dark"] body.raika-body #avatar-menu .raika-language-separator {
    background: #343b44 !important;
    border-color: #343b44 !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .language-options,
html[data-theme="dark"] body.raika-body #avatar-menu .language-options {
    color: #d8dee7 !important;
    background: #1b2026 !important;
    border-color: #3a424b !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .42) !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .language-option,
html[data-theme="dark"] body.raika-body #avatar-menu .language-option {
    color: #c6ced8 !important;
    background: transparent !important;
}

html:not([data-theme="light"]) body.raika-body #avatar-menu .language-option:hover,
html:not([data-theme="light"]) body.raika-body #avatar-menu .language-option.active,
html[data-theme="dark"] body.raika-body #avatar-menu .language-option:hover,
html[data-theme="dark"] body.raika-body #avatar-menu .language-option.active {
    color: #ffffff !important;
    background: #2b3138 !important;
}

/* Balance belongs to the same graphite control family as search and account menu. */
html:not([data-theme="light"]) body.raika-body .raika-balance-pill,
html[data-theme="dark"] body.raika-body .raika-balance-pill {
    color: #f2f5f8 !important;
    background: #22272f !important;
    background-image: none !important;
    border-color: #3a424b !important;
    box-shadow: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-balance-pill:hover,
html:not([data-theme="light"]) body.raika-body .raika-balance-pill:focus-visible,
html[data-theme="dark"] body.raika-body .raika-balance-pill:hover,
html[data-theme="dark"] body.raika-body .raika-balance-pill:focus-visible {
    color: #ffffff !important;
    background: #2b3138 !important;
    border-color: #4a535d !important;
    box-shadow: none !important;
    outline: none !important;
}

html:not([data-theme="light"]) body.raika-body .raika-balance-pill #balance,
html:not([data-theme="light"]) body.raika-body .raika-balance-pill #no-balance,
html[data-theme="dark"] body.raika-body .raika-balance-pill #balance,
html[data-theme="dark"] body.raika-body .raika-balance-pill #no-balance {
    text-shadow: none !important;
}

/* Full-page wheel bootstrap must cover the sticky header and sidebar from the
   first rendered frame, including after JS reparents it directly into body. */
body.raika-body .raika-wheel-loading-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483000 !important;
    margin: 0 !important;
    padding: 0 !important;
    background:
        radial-gradient(circle at 50% 42%, rgba(0, 117, 255, .12), transparent 30%),
        rgba(7, 10, 14, .82) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.raika-body .raika-wheel-loading-overlay.hidden {
    display: none !important;
}

/* Brand sequence in the desktop header: mascot, Raika, Lucky Wheel. */
@media (min-width: 1024px) {
    body.raika-body .raika-topbar-left {
        gap: 14px !important;
    }

    body.raika-body .raika-topbar-logo {
        display: flex !important;
        width: 58px !important;
        min-width: 58px !important;
        height: 58px !important;
        flex: 0 0 58px !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        text-decoration: none !important;
    }

    body.raika-body .raika-topbar-logo img {
        display: block !important;
        width: 58px !important;
        max-width: 58px !important;
        height: 58px !important;
        max-height: 58px !important;
        object-fit: contain !important;
        filter: none !important;
    }

    body.raika-body #sidebar .raika-sidebar-wordmark,
    body.raika-body .raika-sidebar-collapsed #sidebar .raika-sidebar-wordmark {
        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        margin-bottom: 6px !important;
    }
}

/* Slot-card hover: a slightly higher, gently enlarged desktop lift. */
@media (hover: hover) and (pointer: fine) {
    body.raika-body .raika-game-row {
        /* The bottom-anchored 1.025 scale adds roughly 5 px above a desktop
           card on top of the 5 px lift. Keep extra room inside the scrollport
           so overflow-x scrolling cannot clip the transformed top edge. */
        padding-top: 16px !important;
        padding-inline: 4px !important;
        scroll-padding-inline: 4px !important;
    }

    body.raika-body .raika-game-grid {
        padding-top: 12px !important;
        padding-inline: 4px !important;
    }

    body.raika-body .raika-game-card {
        transform-origin: center bottom !important;
        transition: transform 190ms cubic-bezier(.22, 1, .36, 1),
                    box-shadow 190ms ease,
                    border-color 190ms ease,
                    filter 190ms ease !important;
        will-change: transform;
    }

    body.raika-body .raika-game-card:hover {
        transform: translateY(-5px) scale(1.025) !important;
    }
}

/* Account menu: let the language selector use the full row instead of being
   squeezed into the generic menu-item horizontal padding. */
body.raika-body #avatar-menu .raika-language-theme-row {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: minmax(0, 1fr) 46px !important;
}

body.raika-body #avatar-menu .raika-language-theme-row .language-picker,
body.raika-body #avatar-menu .raika-language-theme-row .language-trigger,
body.raika-body #avatar-menu .raika-language-theme-row .language-options {
    width: 100% !important;
    max-width: none !important;
}
/* Fullscreen exit controls stay inside the fullscreen element, including WebKit. */
#slot-container:fullscreen #exit-btn,
#slot-container:-webkit-full-screen #exit-btn,
body.raika-slot-fullscreen #exit-btn {
    display: inline-flex !important;
    z-index: 20003 !important;
    pointer-events: auto !important;
}

.raika-play-exit-fullscreen {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: calc(12px + env(safe-area-inset-left, 0px));
    z-index: 20;
    display: none;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #fff;
    background: rgba(9, 14, 24, 0.78);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.raika-play-exit-fullscreen svg {
    width: 18px;
    height: 18px;
}

#play-stage:fullscreen .raika-play-exit-fullscreen,
#play-stage:-webkit-full-screen .raika-play-exit-fullscreen,
.raika-play-exit-fullscreen.is-visible {
    display: inline-flex;
}
