/* ==========================================================================
   Royal Exchange parity — layout/CSS match for latest Blade theme (Khelo WL)
   Reference: royalexch666.com (black #000 / red #ff3131 / sidebar #212121)
   ========================================================================== */

:root {
    --royal-red: #ff3131;
    --royal-red-2: #e02020;
    --royal-green: #85de2a;
    /* royalexch666.com live parity tokens */
    --royal-head: #000;
    --royal-body: #1a1a1a;
    --royal-secondary: #212121;
    --royal-border: #333;
    --royal-bg: #1a1a1a;
    --royal-panel: #212121;
    --royal-line: #333;
    --royal-text-muted: #b7b7b7;
    --header-h: 70px;
    --header-h-mobile: 85px;
    --header-h-game: 54px;
    --header-h-mobile-logged: 118px;
}

body.latest-theme.latest-royal-parity {
    background: var(--royal-body);
    padding-top: var(--header-h);
    font-family: Poppins, Roboto, system-ui, sans-serif;
}

@media (max-width: 767.98px) {
    body.latest-theme.latest-royal-parity {
        padding-top: var(--header-h-mobile);
    }
}

body.latest-theme.latest-royal-parity[data-turbo] .latest-main,
body.latest-theme.latest-royal-parity[data-turbo] .latest-shell {
    background: var(--royal-bg);
}

/* ── Header — royalexch666 deep parity ─────────────────────────────────── */
body.latest-theme.latest-royal-parity .latest-header.latest-header-royal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 99;
    background: var(--royal-head);
    border-bottom: 0;
    height: var(--header-h);
    padding: 0;
    overflow-x: clip;
    /* latest.css sets display:flex + space-between; that shrinks inner to content width */
    display: block;
}

.latest-header-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    height: 100%;
}

.latest-header-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    height: 100%;
    min-width: 0;
}

/* Mobile logged-in row 2 — search + language (royal parity) */
.latest-header-tools-row {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.latest-header-tools-row .latest-lang {
    flex: 0 0 auto;
}

.latest-header-tools-row .latest-searchbar {
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 768px) {
    .latest-lang-search-desktop {
        display: flex;
    }

    .latest-header-tools-row {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .latest-lang-search-desktop {
        display: none !important;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row,
    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-tools-row {
        display: flex;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) {
        height: auto;
        min-height: var(--header-h-mobile-logged, 118px);
        max-height: none;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) {
        height: auto;
        min-height: var(--header-h-mobile, 85px);
        max-height: none;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-inner {
        height: auto;
        padding: 2px 10px 2px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-inner {
        height: auto;
        padding: 2px 10px 2px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-row {
        flex-wrap: nowrap;
        align-items: center;
        row-gap: 0;
        height: auto;
        min-height: 52px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-logo-toggle {
        flex: 0 0 auto;
        max-width: 42%;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-right {
        flex: 1 1 auto;
        width: auto;
        max-width: 58%;
        margin-left: auto;
        order: unset;
        justify-content: flex-end;
        gap: 0;
        min-width: 0;
    }

    body.latest-theme:has(.latest-header-afterlogin:not(.latest-header-game)) {
        padding-top: var(--header-h-mobile-logged, 118px);
    }
}

/* Logo + burger cluster */
.latest-logo-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    order: 0;
}

.latest-header-royal .latest-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    margin: 0 7px 0 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.latest-header-royal .latest-burger img,
.latest-header-royal .latest-burger svg.latest-burger-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    pointer-events: none;
}

.latest-header-royal .latest-burger svg.latest-burger-icon {
    fill: currentColor;
}

.latest-header-royal .latest-logo {
    width: clamp(72px, 9vw, 130px);
    flex-shrink: 1;
    min-width: 0;
}

.latest-header-royal .latest-logo img {
    height: auto;
    max-height: clamp(28px, 4.5vw, 65px);
    width: 100%;
    object-fit: contain;
}

/* Nav track — flex slot between logo and header-right (audit: nav_pills w) */
.latest-header-royal .latest-nav-track {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
}

.latest-header-royal .latest-nav-track .latest-topnav.latest-nav-pills {
    width: 100%;
    flex: none;
    max-width: none;
    justify-content: normal;
}

/* Top nav — red underline on hover/active */
.latest-header-royal .latest-topnav,
.latest-header-royal .latest-topnav.latest-nav-pills {
    display: flex;
    align-items: normal;
    flex: 1;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    order: 1;
    min-width: 0;
}

.latest-header-royal .latest-topnav::-webkit-scrollbar { display: none; }

.latest-header-royal .latest-topnav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 5px;
    padding: 3px 10px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 40px;
    height: 40px;
    color: #fff;
    white-space: nowrap;
    background: transparent !important;
    border-radius: 0;
    transition: color 0.3s ease;
}

.latest-header-royal .latest-topnav a img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.latest-header-royal .latest-topnav a::after {
    content: "";
    position: absolute;
    left: 5%;
    bottom: 50%;
    width: 90%;
    height: 2px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.latest-header-royal .latest-topnav a:hover::after,
.latest-header-royal .latest-topnav a.active::after,
.latest-header-royal .latest-topnav a:focus::after {
    bottom: 4px;
    background: var(--royal-red) !important;
    opacity: 1;
    visibility: visible;
}

.latest-header-royal .latest-topnav a:hover,
.latest-header-royal .latest-topnav a.active {
    color: var(--royal-red);
}

/* Language + search cluster */
.latest-lang-search {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 5px;
    order: 2;
    flex-shrink: 0;
}

.latest-header-royal .latest-lang {
    background: var(--royal-secondary);
    border: 1px solid var(--royal-border);
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 4px;
}

.latest-header-royal .latest-lang-select {
    max-width: 96px;
    font-size: 11px;
    cursor: pointer;
    -webkit-appearance: menulist;
    appearance: menulist;
    padding-right: 18px;
}

.latest-searchbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #005ca2;
    color: #fff;
    flex-shrink: 0;
    margin-left: 6px;
    transition: opacity 0.2s;
}

.latest-searchbar i {
    font-size: 15px;
}

.latest-searchbar-label {
    display: none;
}

.latest-searchbar:hover {
    opacity: 0.85;
    color: #fff;
}

/* Header right cluster */
.latest-header-royal .latest-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    order: 3;
    flex-shrink: 0;
    margin-left: auto;
}

.latest-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.latest-header-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Guest auth — Enter with nested 18+ */
.latest-login-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--royal-red);
    border: 1px solid var(--royal-red);
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 7px 40px 7px 15px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.2s;
}

.latest-login-btn:hover {
    background: var(--royal-red-2);
    border-color: var(--royal-red-2);
    color: #fff;
    opacity: 0.95;
}

.latest-login-age {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    color: #000;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    padding-left: 2px;
}

.latest-signup-btn {
    display: inline-flex;
    align-items: center;
    background: var(--royal-red);
    border: 1px solid var(--royal-red) !important;
    border-radius: 4px;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 7px 15px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.2s;
}

.latest-signup-btn:hover {
    opacity: 0.8;
    color: #fff !important;
}

/* Logged-in wallet pill — W | Balance/Exposure/Bonus | D */
.latest-balance-amount {
    display: flex;
    align-items: center;
    background: var(--royal-panel);
    border-radius: 25px;
    color: #fff;
    font-size: 12px;
    height: 35px;
    overflow: visible;
    min-width: 0;
}

.latest-bal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 25px;
    border: 1px solid #000;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s;
}

.latest-bal-w {
    background: var(--royal-red);
}

.latest-bal-d {
    background: var(--royal-green);
    color: #000 !important;
    animation: royalHeaderBounce 2s ease infinite;
}

@keyframes royalHeaderBounce {
    70%  { transform: translateX(0); }
    80%  { transform: translateX(12%); }
    90%  { transform: translateX(0); }
    95%  { transform: translateX(7%); }
    97%  { transform: translateX(0); }
    99%  { transform: translateX(3%); }
    100% { transform: translateX(0); }
}

.latest-bal-readout {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    max-width: none;
    padding: 0 8px;
    height: 100%;
    overflow: visible;
    flex: 1 1 auto;
}

.latest-bal-readout-royal {
    flex-wrap: nowrap;
    gap: 0 8px;
    max-width: none;
    min-width: 0;
    padding: 0 6px;
    line-height: 1.15;
    overflow: visible;
}

.latest-bal-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
    font-size: 11px;
}

.latest-bal-readout-royal .latest-bal-label {
    font-size: 10px;
}

.latest-bal-readout-royal .latest-bal-val {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.latest-bal-pane {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 15px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.latest-bal-pane.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.latest-bal-label {
    color: var(--royal-text-muted);
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.latest-bal-val {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Profile / menu button (logged-in) — royal menu-btn parity (25×25 img) */
.latest-header-royal .latest-profile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    margin-left: 6px;
    padding: 0;
    font-size: 18px;
    cursor: pointer;
}

.latest-header-royal .latest-profile-toggle img,
.latest-header-royal .latest-profile-toggle .latest-profile-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.latest-header-royal .latest-profile-toggle:hover {
    color: var(--royal-red);
}

/* Mobile nav drawer */
.latest-mobnav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 88vw);
    height: 100vh;
    background: #0d0d0d;
    border-right: 1px solid var(--royal-line);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
}

.latest-mobnav.open {
    transform: translateX(0);
}

.latest-mobnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--royal-line);
    font-weight: 700;
    color: #fff;
}

.latest-mobnav-close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.latest-mobnav-links {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.latest-mobnav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.latest-mobnav-links a:hover,
.latest-mobnav-links a.active {
    background: rgba(255, 49, 49, 0.08);
    border-left-color: var(--royal-red);
    color: var(--royal-red);
}

.latest-mobnav-links a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Shell offset for fixed header */
body.latest-royal-parity:not(.latest-embed-route) .latest-shell {
    --sidebar-w: 170px;
}

.latest-shell {
    --sidebar-w: 90px;
    --aura-w: 350px;
    --header-h: 70px;
    min-height: calc(100vh - var(--header-h));
}

.latest-sidebar {
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
}

/* Legacy btn overrides — keep royal red on turbo tenants too */
.latest-btn-enter,
.latest-btn-register,
body.latest-theme[data-turbo] .latest-btn-enter,
body.latest-theme[data-turbo] .latest-btn-register {
    background: var(--royal-red) !important;
    color: #fff !important;
    border: 1px solid var(--royal-red) !important;
}

/* ── Shell / sidebars ─────────────────────────────────────────────────────── */
.latest-sidebar {
    background: var(--royal-panel);
    border-color: var(--royal-line);
    padding: 8px 6px;
}

.latest-sb-list a {
    font-size: 10px;
    padding: 8px 4px;
    gap: 4px;
    color: #aaa;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-width: 100%;
}

.latest-sb-list a img {
    width: 28px;
    height: 28px;
}

.latest-sb-list a:hover,
.latest-sb-list a.active {
    color: var(--royal-red);
    background: rgba(224, 32, 32, 0.08);
}

body.latest-theme[data-turbo] .latest-sidebar a:hover,
body.latest-theme[data-turbo] .latest-sidebar a.active {
    color: var(--royal-red) !important;
}

.latest-aura-mount {
    display: contents;
}

.latest-aura {
    background: var(--royal-panel);
    border-color: var(--royal-line);
    width: var(--aura-w);
}

.latest-aura-title {
    color: var(--royal-red);
}

.latest-aura-tab.active {
    background: var(--royal-red);
    border-color: var(--royal-red);
}

.latest-main {
    padding: 10px 12px 16px;
}

body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main {
    padding-top: 10px;
    padding-bottom: 16px;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main {
        padding-top: 0;
    }
}

@media (min-width: 768px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ── Dual hero (royal slick: 2×450px slides, 228px tall) ─────────────────── */
.latest-hero-duo,
.latest-hero-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 0;
    height: 228px;
    max-height: 228px;
    box-sizing: border-box;
}

.latest-hero-duo-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    height: 228px;
    width: 100%;
}

.latest-hero-duo-track::-webkit-scrollbar {
    display: none;
}

.latest-hero-duo-slide {
    flex: 0 0 calc(50% - 2px);
    scroll-snap-align: start;
    border-radius: 0;
    overflow: visible;
    min-width: calc(50% - 2px);
    max-width: calc(50% - 2px);
    height: 228px;
    display: block;
    line-height: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: none;
    background: transparent;
}

.latest-hero-duo-slide:hover {
    transform: none;
    box-shadow: none;
}

.latest-hero-duo-slide img {
    width: 100%;
    height: calc(100% - 5px);
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

@media (max-width: 991.98px) {
    .latest-hero-duo-slide img {
        object-position: left center;
    }
}

.latest-hero-duo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
    border: 0;
    cursor: pointer;
}

.latest-hero-duo-arrow.prev { left: 6px; }
.latest-hero-duo-arrow.next { right: 6px; }
.latest-hero-duo-arrow:hover { background: var(--royal-red); }

.latest-hero-duo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}

.latest-hero-duo-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.latest-hero-duo-dot.is-active {
    background: var(--royal-red);
    transform: scale(1.15);
}

/* Turbo overlay hero "glow" — WL primary border-bottom; not on royalexch666 parity */
body.latest-royal-parity.latest-theme[data-turbo] .latest-hero-duo,
body.latest-royal-parity.latest-theme[data-turbo] .latest-hero-wrap {
    border-bottom: 0 !important;
    box-shadow: none;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .latest-hero-duo,
    .latest-hero-wrap {
        height: 181px;
        max-height: 181px;
    }

    .latest-hero-duo-track,
    .latest-hero-duo-slide {
        height: 181px;
    }

    .latest-hero-duo-slide {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .latest-hero-duo-track {
        gap: 0;
    }

    .latest-hero-duo-arrow {
        display: none !important;
    }

    body.latest-royal-parity .latest-hero-duo-dots {
        display: none !important;
    }
}

/* Mobile bottom nav — royalexch666 footer-menu gradient */
@media (max-width: 991px) {
    body.latest-theme:not(.latest-embed-route) {
        padding-bottom: calc(var(--bottomnav-h, 58px) + env(safe-area-inset-bottom, 0px) + 8px);
    }
    .latest-bottom-nav.latest-footer-menu {
        display: block;
        z-index: 98;
        height: 58px;
        padding: 4px 0 env(safe-area-inset-bottom, 0);
        background: linear-gradient(180deg, #050505 0%, #171717 100%);
        border-top: 1px solid #fff;
        box-shadow: rgba(0, 0, 0, 0.45) 0 2px 20px 0;
    }
    .latest-bottom-nav.latest-footer-menu ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: stretch;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    .latest-bottom-nav.latest-footer-menu li {
        display: flex;
        align-items: stretch;
        justify-content: center;
        min-width: 0;
    }
    .latest-bottom-nav.latest-footer-menu li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 9px;
        font-weight: 600;
        color: #b7b7b7;
        gap: 3px;
        line-height: 1.1;
        text-align: center;
        padding: 2px 4px;
    }
    .latest-bottom-nav.latest-footer-menu .latest-bottom-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    .latest-bottom-nav.latest-footer-menu .latest-bottom-label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .latest-bottom-nav.latest-footer-menu li a.active,
    .latest-bottom-nav.latest-footer-menu li a:hover {
        color: var(--royal-red);
    }
    .latest-bottom-nav.latest-footer-menu li a img {
        width: 22px;
        height: 22px;
        object-fit: contain;
        display: block;
    }
}

/* ── Hero (legacy single carousel — hidden if unused) ───────────────────── */
.latest-features {
    gap: 15px;
    margin-bottom: 14px;
}

.latest-feature-card {
    background: linear-gradient(0deg, rgb(5, 5, 5), rgb(23, 23, 23));
    border: 1px solid rgb(33, 33, 33);
    min-height: 120px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
}

.latest-feature-card:hover {
    border-color: var(--royal-red);
}

.latest-feature-card h6 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.latest-feature-card h4 {
    font-size: 13px;
}

.latest-feature-card p {
    font-size: 11px;
}

/* ── Popular games — royal 5-col grid, no horizontal scroll on desktop ──── */
.latest-popular-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    overflow: visible;
}

@media (min-width: 1200px) {
    .latest-popular-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .latest-popular-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) {
    .latest-popular-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .latest-popular-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .latest-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.latest-game-card {
    aspect-ratio: 3 / 4;
    background: transparent;
    border: 1px solid var(--royal-border);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.latest-game-card:hover {
    border-color: var(--royal-red);
}

.latest-game-badge {
    background: var(--royal-red);
}

.latest-game-play {
    background: var(--royal-red);
}

.latest-section-title i {
    color: var(--royal-red);
}

body.latest-royal-parity h3.latest-section-title {
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

body.latest-royal-parity h3.latest-section-title .latest-section-flame {
    color: var(--royal-red);
    font-size: 13px;
    line-height: 1;
}

.latest-section-action {
    background: var(--royal-red);
}

.latest-section-action:hover {
    background: var(--royal-red-2);
}

/* ── WhatsApp float (royal green circle) ──────────────────────────────────── */
.latest-whatsapp-float {
    background: #25d366;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottomnav-h, 58px) + env(safe-area-inset-bottom, 0px) + 16px);
    z-index: 120;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (min-width: 992px) {
    .latest-whatsapp-float {
        bottom: 24px;
    }

    body.latest-royal-parity .latest-whatsapp-float {
        display: none !important;
    }
}

/* ── Responsive breakpoints (royalexch666 header) ─────────────────────────── */

/* Small desktop / iPad landscape — single-row header, nav scrolls (no wrap) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .latest-header-royal .latest-logo {
        width: clamp(78px, 8vw, 110px);
    }

    .latest-header-royal .latest-logo img {
        max-height: 48px;
    }

    .latest-lang-search {
        order: 1;
        flex-shrink: 0;
    }

    .latest-header-royal .latest-header-right {
        order: 2;
        flex-shrink: 0;
    }

    .latest-header-royal .latest-nav-track {
        order: 3;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    .latest-header-royal .latest-topnav {
        order: 3;
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }

    .latest-header-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .latest-header-royal .latest-topnav a {
        height: 28px;
        line-height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }
}

/* Tablet — burger drawer; keep 70px single row (Royal parity) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .latest-header-royal {
        height: var(--header-h) !important;
        min-height: var(--header-h);
        max-height: var(--header-h);
    }

    .latest-header-royal .latest-header-inner {
        height: 100%;
    }

    .latest-header-royal .latest-header-row {
        flex-wrap: nowrap !important;
        align-items: center;
        height: 100%;
        gap: 6px;
    }

    .latest-header-royal .latest-nav-track,
    .latest-header-royal .latest-lang-search-desktop {
        display: none !important;
    }

    .latest-header-royal .latest-logo {
        width: clamp(72px, 11vw, 85px);
    }

    .latest-header-royal .latest-logo img {
        max-height: 40px;
    }

    .latest-header-royal .latest-header-right {
        margin-left: auto;
        flex-shrink: 0;
        gap: 4px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-login-btn {
        padding: 6px 35px 6px 8px;
        font-size: clamp(0.72rem, 1.8vw, 0.82rem);
        min-height: 34px;
        min-width: 77px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-signup-btn {
        padding: 6px 10px;
        font-size: clamp(0.72rem, 1.8vw, 0.82rem);
        min-height: 34px;
    }
}

@media (max-width: 767.98px) {
    body:not(.latest-embed-route) .latest-shell {
        grid-template-columns: 1fr;
    }

    .latest-aura {
        display: none !important;
    }

    body:not(.latest-embed-route) #latestSidebar.latest-sidebar:not(.open) {
        display: none !important; /* hide rail in flow; .open uses fixed drawer @ ~4852 */
    }

    .latest-header-royal .latest-burger {
        display: inline-flex;
        color: inherit;
    }

    .latest-header-royal .latest-nav-track,
    .latest-header-royal .latest-topnav {
        display: none !important;
    }

    .latest-header-royal .latest-header-row {
        flex-wrap: nowrap !important;
    }
}

/* Tablet 768–991 — Royal keeps 170px left rail, no aura */
@media (min-width: 768px) and (max-width: 991.98px) {
    body.latest-royal-parity:not(.latest-embed-route) {
        --sidebar-w: 170px;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-shell {
        display: grid;
        grid-template-columns: var(--sidebar-w, 170px) minmax(0, 1fr);
        background: var(--royal-bg);
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura {
        display: none;
    }

    body.latest-royal-parity:not(.latest-embed-route) #latestSidebar.latest-sidebar {
        display: flex;
        position: static;
        top: auto;
        left: auto;
        width: var(--sidebar-w, 170px);
        max-width: var(--sidebar-w, 170px);
        height: auto;
        max-height: none;
        transform: none;
        z-index: auto;
        padding: 8px 6px;
    }

    .latest-header-royal .latest-burger {
        display: none;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-hero-duo,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-hero-wrap,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-section,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-support,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-sports-btns {
        margin-left: 10px;
        margin-right: 10px;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-footer {
        margin-left: 0;
        margin-right: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

}

@media (min-width: 992px) {
    body.latest-royal-parity:not(.latest-embed-route) {
        --sidebar-w: 170px;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-shell {
        --sidebar-w: 170px;
        --aura-w: 350px;
        display: grid;
        grid-template-columns: var(--sidebar-w, 170px) minmax(0, 1fr) var(--aura-w, 350px);
        background: var(--royal-bg);
        min-height: calc(100dvh - var(--header-h, 70px));
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura {
        display: flex;
    }
}

/* Medium desktop — Royal hides right rail below 1200px so center column stays wide */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-shell {
        grid-template-columns: var(--sidebar-w, 170px) minmax(0, 1fr);
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura {
        display: none;
    }
}

/* 1200–1439 — Royal uses 300px aura rail (350px only at ≥1440) */
@media (min-width: 1200px) and (max-width: 1439.98px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-shell {
        --aura-w: 300px;
        grid-template-columns: var(--sidebar-w, 170px) minmax(0, 1fr) var(--aura-w, 300px);
    }
}

/* Mobile — taller header, search pill + lang row (Royal guest parity: 85px) */
@media (max-width: 767.98px) {
    .latest-header-royal.latest-header-guest:not(.latest-header-game) {
        padding-top: 0;
        padding-bottom: 0;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-logo {
        width: 78px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-logo img {
        max-height: 34px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-row {
        flex-wrap: nowrap;
        align-items: center;
        row-gap: 0;
        min-height: 49px;
        max-height: 49px;
        height: 49px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-nav-track,
    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-lang-search-desktop {
        display: none !important;
    }

    .latest-logo-toggle {
        order: 0;
        flex: 0 1 auto;
        min-width: 0;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-right {
        order: 1;
        margin-left: auto;
        flex-shrink: 0;
        gap: 4px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-login-btn {
        padding: 6px 28px 6px 4px;
        font-size: 0.72rem;
        line-height: 1.1;
        min-height: 34px;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-signup-btn {
        padding: 6px 10px;
        font-size: 0.72rem;
        min-height: 34px;
        line-height: 1.1;
    }

    .latest-lang-search {
        flex-direction: row;
        order: 2;
        width: 100%;
        margin-top: 0;
        margin-right: 0;
        gap: 8px;
        align-items: center;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-lang-search {
        display: none;
    }

    .latest-header-royal .latest-lang {
        flex-shrink: 0;
        min-width: 118px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row,
    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-tools-row {
        gap: 8px;
        margin: 0;
        padding: 0;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        align-items: center;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-lang,
    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-tools-row .latest-lang {
        display: block !important;
        flex: 0 0 124px;
        min-width: 124px;
        max-width: 124px;
        width: 124px;
        height: 30px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background: #000;
        border: 1px solid var(--royal-red);
        border-radius: 25px;
        position: relative;
        z-index: 3;
        pointer-events: auto;
        touch-action: manipulation;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-lang-select,
    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-tools-row .latest-lang-select {
        display: block;
        width: 100%;
        height: 30px;
        min-height: 30px;
        margin: 0;
        padding: 0 24px 0 10px;
        font-size: 12px;
        line-height: 30px;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        background: transparent;
        border: 0;
        border-radius: 25px;
        color: #fff;
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
        -webkit-appearance: menulist;
        appearance: menulist;
        position: relative;
        z-index: 4;
    }

    .latest-header-tools-row .latest-searchbar {
        flex: 1 1 auto;
        width: auto;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        border-radius: 20px;
        background: #171717;
        border: 0.8px solid #2b2b2b;
        color: #fff;
        justify-content: flex-start;
        padding: 3px 7px 4px;
        gap: 6px;
        margin-left: 0;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game),
    .latest-header-royal.latest-header-guest:not(.latest-header-game) {
        overflow-x: clip;
        overflow-y: visible;
    }

    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-inner {
        padding-bottom: 0;
    }

    .latest-searchbar-label {
        display: inline;
        font-size: 12px;
        font-weight: 500;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .latest-sports-btns {
        display: grid;
        gap: 8px;
        margin-bottom: 10px;
    }

    .latest-login-btn {
        padding: 7px 35px 7px 4px;
        font-size: 0.8rem;
    }

    .latest-bal-readout:not(.latest-bal-readout-royal) {
        min-width: 72px;
        max-width: 110px;
    }

    .latest-bal-label {
        font-size: 9px;
    }

    .latest-bal-val {
        font-size: 11px;
    }
}

/* Sports quick links — mobile homepage only */
@media (min-width: 992px) {
    .latest-sports-btns {
        display: none;
    }
}

@media (max-width: 600px) {
    .latest-header-royal .latest-lang {
        display: block !important;
    }

    .latest-header-royal .latest-lang-select {
        max-width: 110px;
        font-size: 10px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-lang-select,
    .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-tools-row .latest-lang-select {
        font-size: 14px;
    }

    .latest-header-royal .latest-header-right {
        gap: 4px;
    }

    .latest-login-btn {
        padding: 6px 35px 6px 8px;
        font-size: 0.75rem;
        min-width: 77px;
    }

    .latest-signup-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .latest-header-inner {
        padding: 0 10px;
    }

    .latest-header-royal .latest-logo img {
        max-height: 36px;
    }
}

@media (max-width: 380px) {
    .latest-header-royal .latest-logo img {
        max-height: 32px;
    }

    .latest-bal-readout:not(.latest-bal-readout-royal) {
        min-width: 64px;
        max-width: 90px;
        padding: 0 4px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal {
        min-width: 0;
        max-width: none;
        padding: 0 2px;
    }
}

/* Logged-in profile drawer (royal account menu) */
.latest-profile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    margin-left: 6px;
    padding: 0;
}
.latest-profile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    pointer-events: none;
}
.latest-profile-backdrop.show {
    display: block;
    pointer-events: auto;
}
.latest-profile-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 92vw);
    height: 100vh;
    background: #0d0d0d;
    border-left: 1px solid rgba(255, 49, 49, 0.25);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 1rem 0 2rem;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}
.latest-profile-panel.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
.latest-profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.latest-profile-user {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}
.latest-profile-close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.latest-profile-wallets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
}
.latest-profile-wallets div {
    background: #141414;
    border: 1px solid rgba(255, 49, 49, 0.15);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}
.latest-profile-wallets span {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
}
.latest-profile-wallets b {
    color: #fff;
    font-size: 0.95rem;
}
.latest-profile-exposure {
    padding: 0 1rem 0.75rem;
    font-size: 0.82rem;
    color: #94a3b8;
}
.latest-profile-exposure b { color: #fff; margin-left: 6px; }
.latest-profile-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.5rem;
}
.latest-profile-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.75rem;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}
.latest-profile-links a:hover {
    background: rgba(255, 49, 49, 0.08);
    color: var(--royal-red);
}
.latest-profile-links a i { width: 18px; text-align: center; }
.latest-profile-logout { color: #f87171 !important; }

/* Hide legacy wallet pill if present */
.latest-wallet-pill { display: none !important; }

/* Admin → player announcement marquee (latest theme) */
.latest-marquee-bar {
    background: var(--royal-head);
    border-bottom: 1px solid rgba(255, 49, 49, 0.15);
    padding: 0.35rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.latest-marquee-inner {
    display: inline-block;
    animation: latestMarqueeScroll 30s linear infinite;
    padding-left: 100%;
    color: #e5e7eb;
    font-size: 0.82rem;
}
.latest-marquee-inner i { color: var(--royal-red); margin-right: 0.45rem; }
@keyframes latestMarqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Footer — royal shell chrome (#2b2b2b borders, main-column alignment) */
body.latest-royal-parity .latest-footer {
    background: var(--royal-head);
    border-top: none;
    padding: 40px 0 0;
    margin-top: 0;
    box-sizing: border-box;
    min-width: 0;
}

body.latest-royal-parity .latest-footer-inner {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Footer gaming partner logos (royalexch666 providers_logo strip) */
.latest-footer-partners.providers_logo {
    padding-bottom: 30px;
}
.latest-footer-partners.providers_logo h4,
.latest-footer-partners.providers_logo h5 {
    font-size: 20px;
    text-transform: capitalize;
    color: var(--royal-text-muted, #fff);
    margin: 0 0 15px;
    font-weight: 600;
    text-align: left;
}
.latest-footer-provider-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}
.latest-footer-provider-logos li {
    margin: 0 20px 0 0;
    max-width: 18%;
    padding: 0;
}
.latest-footer-provider-logos img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    filter: none;
}

/* Footer payment partners (royalexch666 paymentspartner strip) */
.latest-footer-partners.paymentspartner h5 {
    font-size: 20px;
    text-transform: capitalize;
    color: var(--royal-text-muted, #fff);
    margin: 0 0 15px;
    font-weight: 600;
    text-align: left;
}
.latest-footer-payment-logos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 10px;
}
.latest-footer-payment-logos li {
    margin: 0;
    padding: 0;
    line-height: 0;
}
.latest-footer-payment-logos img {
    display: block;
    width: 35px;
    height: auto;
    margin: 0;
    object-fit: contain;
}

/* ── Footer partners (royalexch666 capsules + round payment icons) ─────── */
.latest-footer-capsules {
    gap: 8px !important;
}
.latest-footer-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--royal-border);
    min-height: 36px;
    transition: border-color .15s;
}
.latest-footer-capsule:hover {
    border-color: var(--royal-red);
}
.latest-footer-capsule img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #0d0d0d;
}
.latest-footer-capsule span {
    font-size: 11px;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
}
.latest-footer-payments {
    gap: 10px !important;
}
.latest-footer-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    padding: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.latest-footer-pay-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Feature tabs — royal 4-up desktop, 2×2 mobile, equal height ─────────── */
body.latest-theme .latest-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    box-sizing: border-box;
}
body.latest-theme .latest-feature-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    min-height: 120px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--royal-secondary);
    padding: 20px;
    box-shadow: none;
}
body.latest-theme .latest-feature-card:hover {
    border-color: var(--royal-red);
    transform: none;
    box-shadow: none;
}
body.latest-theme .latest-feature-card .latest-feature-icon {
    margin: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
}
body.latest-theme .latest-feature-card .latest-feature-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    object-position: center;
}
@media (max-width: 767px) {
    body.latest-theme .latest-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.latest-theme .latest-feature-card {
        min-height: 145px;
        gap: 8px;
        padding: 12px 10px;
    }
}

/* Sports quick links — image buttons, no turbo gradient fill */
body.latest-theme .latest-sports-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}
body.latest-theme .latest-sports-btn {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    aspect-ratio: 120 / 67;
    border-radius: 4px;
    overflow: hidden;
}
body.latest-theme .latest-sports-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.latest-theme .latest-sports-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    background: transparent !important;
}

/* ── Account pages (statement, profile, deposit, withdraw, my bets…) ───── */
.latest-account-page {
    color: #e2e8f0;
    font-family: Poppins, Roboto, system-ui, sans-serif;
}
.latest-account-page h1,
.latest-account-page h2,
.latest-account-page h3 {
    color: #fff;
    font-weight: 700;
}
.latest-account-page h1 {
    font-size: 1.35rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--royal-red);
}
.latest-account-page h3 {
    color: var(--royal-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.latest-account-page label {
    display: block;
    color: #b7b7b7;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.latest-account-page input[type="text"],
.latest-account-page input[type="password"],
.latest-account-page input[type="email"],
.latest-account-page input[type="number"],
.latest-account-page input[type="date"],
.latest-account-page select,
.latest-account-page textarea,
.latest-account-page .form-control,
.latest-account-page .turbo-input {
    width: 100%;
    background: #141414 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
}
.latest-account-page input:focus,
.latest-account-page select:focus,
.latest-account-page textarea:focus {
    border-color: var(--royal-red) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 49, 49, 0.15);
}
.latest-account-page .btn-primary,
.latest-account-page button[type="submit"],
.latest-account-page .turbo-btn-filter,
.latest-account-page .btn.btn-primary {
    background: var(--royal-red) !important;
    border: 1px solid var(--royal-red) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
}
.latest-account-page .btn-primary:hover,
.latest-account-page .turbo-btn-filter:hover {
    background: var(--royal-red-2) !important;
    border-color: var(--royal-red-2) !important;
}
.latest-account-page table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0;
}
.latest-account-page table th {
    background: #141414;
    color: #b7b7b7;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
}
.latest-account-page table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #222;
    font-size: 0.82rem;
}
.latest-account-page table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
.latest-account-page .turbo-stmt-title {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    font-size: 1.35rem;
    border-bottom: 2px solid var(--royal-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.latest-account-page .turbo-filter-card,
.latest-account-page .turbo-table-container,
.latest-account-page .turbo-stat-card,
.latest-account-page .wd-amount-card,
.latest-account-page .wd-balance-bar {
    background: #141414 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 6px;
}
.latest-account-page .turbo-btn-filter {
    background: var(--royal-red) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.latest-account-page .turbo-input:focus {
    border-color: var(--royal-red) !important;
    box-shadow: 0 0 0 2px rgba(255, 49, 49, 0.15) !important;
}
.latest-account-page .wd-section-head {
    color: var(--royal-red) !important;
}
.latest-account-page a {
    color: var(--royal-red);
}
.latest-account-page .q-btn.active,
.latest-account-page .q-btn:hover,
.latest-account-page .q-btn.sel {
    border-color: var(--royal-red) !important;
    color: #fff !important;
    background: var(--royal-red) !important;
}
.latest-account-page .btn-gold,
.latest-account-page .pe-submit,
.latest-account-page .dw-btn--deposit {
    background: var(--royal-red) !important;
    color: #fff !important;
    border: 0 !important;
}
.latest-account-page .turbo-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
    align-items: flex-end;
}
.latest-account-page .turbo-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.latest-account-page .turbo-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}
.latest-account-page .turbo-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
}
.latest-account-page .turbo-table th {
    background: #141414;
    padding: 0.7rem 0.85rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    color: #b7b7b7;
    border-bottom: 1px solid #2a2a2a;
}
.latest-account-page .turbo-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #222;
}
.latest-account-page .turbo-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}
.latest-account-page section {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
}
body.latest-theme {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Account page — neutralize legacy turbo gold borders/accents */
.latest-account-page input[readonly],
.latest-account-page input:read-only {
    background: #0a0a0a !important;
    color: #64748b !important;
    cursor: not-allowed;
}
.latest-account-page .wd-balance-bar,
.latest-account-page .wd-amount-card,
.latest-account-page .wd-account-card,
.latest-account-page .wd-add-form,
.latest-account-page .otp-box,
.latest-account-page .pe-card,
.latest-account-page .pe-detail-box,
.latest-account-page .q-btn,
.latest-account-page .pe-input,
.latest-account-page .pe-file,
.latest-account-page .wp-card,
.latest-account-page .bonus-card,
.latest-account-page .no-accounts {
    border-color: #2a2a2a !important;
}
.latest-account-page .wd-account-card:hover {
    border-color: rgba(255, 49, 49, 0.35) !important;
}
.latest-account-page .wd-account-card .ac-icon {
    background: rgba(255, 49, 49, 0.12) !important;
}
.latest-account-page .wd-add-toggle {
    border-color: rgba(255, 49, 49, 0.35) !important;
}
.latest-account-page .q-btn:hover:not(.sel) {
    background: rgba(255, 49, 49, 0.1) !important;
}
.latest-account-page .spin {
    border-color: rgba(255, 49, 49, 0.2) !important;
    border-top-color: var(--royal-red) !important;
}
.latest-account-page .btn-gold,
.latest-account-page .pe-submit,
.latest-account-page .dw-btn--deposit,
.latest-account-page .bonus-cta {
    color: #fff !important;
}
.latest-account-page .bonus-card::before {
    background: radial-gradient(circle, rgba(255, 49, 49, 0.15) 0%, transparent 70%) !important;
}
.latest-account-page .bonus-card .bonus-tag {
    background: rgba(255, 49, 49, 0.15) !important;
    color: var(--royal-red) !important;
}

/* ── Account / game-embed shell — hide side rails, royal main width ───────── */
body.latest-theme:has(.latest-account-page) .latest-aura,
body.latest-theme:has(.latest-game-embed-page) .latest-aura,
body.latest-theme:has(.latest-provider-embed) .latest-aura {
    display: none !important;
}

body.latest-theme:has(.latest-account-page) #latestSidebar,
body.latest-theme:has(.latest-account-page) .latest-sidebar {
    display: none !important;
}

body.latest-theme:has(.latest-account-page) .latest-shell,
body.latest-theme:has(.latest-game-embed-page) .latest-shell,
body.latest-theme:has(.latest-provider-embed) .latest-shell {
    grid-template-columns: 1fr;
}

body.latest-theme:has(.latest-account-page) .latest-main {
    padding: 12px 16px 24px;
    background: var(--royal-bg);
}

body.latest-theme:has(.latest-game-embed-page) .latest-main,
body.latest-theme:has(.latest-provider-embed) .latest-main {
    padding: 0 !important;
    background: var(--royal-bg);
}

.latest-account-shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.latest-account-inner {
    width: 100%;
}

.latest-account-page .turbo-stmt-wrap,
.latest-account-page .turbo-filter-card,
.latest-account-page .turbo-table-container {
    width: 100%;
}

/* Neutralize turbo gold input leak on account pages */
body.latest-theme[data-turbo] .latest-account-page input[type="text"],
body.latest-theme[data-turbo] .latest-account-page input[type="password"],
body.latest-theme[data-turbo] .latest-account-page input[type="email"],
body.latest-theme[data-turbo] .latest-account-page input[type="number"],
body.latest-theme[data-turbo] .latest-account-page input[type="date"],
body.latest-theme[data-turbo] .latest-account-page select,
body.latest-theme[data-turbo] .latest-account-page textarea {
    background: #141414 !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.latest-theme[data-turbo] .latest-account-page input:focus,
body.latest-theme[data-turbo] .latest-account-page select:focus,
body.latest-theme[data-turbo] .latest-account-page textarea:focus {
    border-color: var(--royal-red) !important;
    box-shadow: 0 0 0 2px rgba(255, 49, 49, 0.15) !important;
}

/* Deposit / withdraw card palette — override inline navy turbo styles */
.latest-account-page .wd-balance-bar,
.latest-account-page .wd-amount-card,
.latest-account-page .wd-account-card,
.latest-account-page .wd-add-form,
.latest-account-page .wd-add-toggle,
.latest-account-page .otp-box,
.latest-account-page .pe-card,
.latest-account-page .pe-detail-box,
.latest-account-page .no-accounts {
    background: #141414 !important;
    border-color: #2a2a2a !important;
}

.latest-account-page .wd-account-card.active {
    background: #1a1a1a !important;
    border-color: var(--royal-red) !important;
}

.latest-account-page .wd-amount-input,
.latest-account-page .wd-field input,
.latest-account-page .wd-field select,
.latest-account-page .pe-input,
.latest-account-page .pe-file,
.latest-account-page .otp-digit {
    background: #0a0a0a !important;
    border-color: #333 !important;
}

.latest-account-page .q-btn {
    background: #0a0a0a !important;
    border-color: #333 !important;
    color: #fff !important;
}

.latest-account-page .q-btn.sel,
.latest-account-page .q-btn.active {
    background: var(--royal-red) !important;
    border-color: var(--royal-red) !important;
    color: #fff !important;
}

.latest-account-page .btn-gold,
.latest-account-page .pe-submit,
.latest-account-page .dw-btn--deposit {
    background: var(--royal-red) !important;
    color: #fff !important;
    border: 0 !important;
}

.latest-account-page .wd-section-head,
.latest-account-page .wd-amount-input span,
.latest-account-page .pe-amt strong,
.latest-account-page .pe-detail-val {
    color: var(--royal-red) !important;
}

.latest-account-page .wd-add-toggle,
.latest-account-page .wd-tab.active,
.latest-account-page .otp-resend {
    color: var(--royal-red) !important;
}

.latest-account-page .wd-tab.active {
    border-bottom-color: var(--royal-red) !important;
}

/* Profile grid — royal 2-col desktop cards */
.latest-account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

.latest-account-page > div[style*="grid-template-columns"],
.latest-account-inner > div[style*="grid-template-columns"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: start;
}

@media (min-width: 992px) {
    .latest-account-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .latest-account-page .turbo-filter-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        align-items: end;
    }

    .latest-account-page .turbo-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .latest-account-page > div[style*="grid-template-columns"],
    .latest-account-inner > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr;
    }

    .latest-account-page .turbo-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .latest-account-page .turbo-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.latest-account-page .latest-account-alert {
    border-radius: 8px;
    padding: .85rem;
    margin-bottom: 1rem;
}

.latest-account-page .latest-account-alert--success {
    background: #064e3b;
    border: 1px solid #059669;
    color: #ecfdf5;
}

.latest-account-page .latest-account-alert--error {
    background: #7f1d1d;
    border: 1px solid #ef4444;
    color: #fecaca;
}

.latest-account-page .latest-account-hint {
    color: #64748b;
    font-size: .85rem;
}

.latest-account-page .mb-3 {
    margin-bottom: .75rem;
}

.latest-account-page .latest-account-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
}

.latest-account-page .latest-account-login-prompt {
    text-align: center;
    margin: 2rem 0;
}

.latest-account-page .latest-account-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-bottom: .75rem;
}

.latest-account-page > div[style*="grid-template-columns"] {
    gap: 1rem !important;
}

.latest-account-page section {
    margin-bottom: 0;
}

.latest-account-page section h3 {
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
}

/* Account statement */
.latest-account-page .turbo-stmt-wrap {
    max-width: 100%;
}

.latest-account-page .turbo-filter-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.latest-account-page .turbo-table-container {
    padding: 0;
    overflow: hidden;
}

/* Game embed — full-height iframe under royal header (no bottom gap) */
.latest-game-embed-page,
.latest-provider-embed,
.latest-embed-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.latest-game-embed-shell,
.latest-embed-shell {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--header-h, 70px));
    min-height: calc(100dvh - var(--header-h, 70px));
    max-height: calc(100dvh - var(--header-h, 70px));
    background: #000;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body.latest-embed-route .latest-casino-lobby-page .latest-game-embed-shell {
    height: auto;
    min-height: min(420px, calc(100dvh - var(--header-h, 70px) - 52px));
    max-height: none;
}

.latest-game-embed-shell iframe,
.latest-embed-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    background: #000;
    vertical-align: top;
}

.latest-game-embed-loader,
.latest-embed-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #0d0d0d;
    color: var(--royal-red);
    font-weight: 600;
    z-index: 1;
}

.latest-embed-loader--standalone,
.latest-embed-gate,
.latest-embed-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100dvh - var(--header-h, 70px));
    padding: 2rem 1.25rem;
    color: #cbd5e1;
    background: #0a0a0a;
}

.latest-embed-gate i,
.latest-embed-error i {
    font-size: 2.2rem;
    color: var(--royal-red);
    margin-bottom: 1rem;
}

.latest-embed-gate h2,
.latest-embed-error h2 {
    color: #fff;
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.latest-embed-gate p,
.latest-embed-error p {
    color: #94a3b8;
    margin: 0 0 1.25rem;
    max-width: 420px;
}

.latest-embed-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: var(--royal-red);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
}

.latest-embed-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.latest-game-embed-shell.loaded .latest-game-embed-loader,
.latest-embed-shell.loaded .latest-embed-loader {
    display: none;
}

@media (max-width: 991px) {
    .latest-game-embed-shell,
    .latest-embed-shell {
        height: calc(100dvh - var(--header-h-mobile, 85px));
        min-height: calc(100dvh - var(--header-h-mobile, 85px));
        max-height: calc(100dvh - var(--header-h-mobile, 85px));
    }

    body.latest-embed-route .latest-casino-lobby-page .latest-game-embed-shell {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .latest-embed-loader--standalone,
    .latest-embed-gate,
    .latest-embed-error {
        min-height: calc(100dvh - var(--header-h-mobile, 85px));
    }
}

/* ── Embed routes (sports / exchange / casino iframe) ───────────────────── */
body.latest-embed-route {
    padding-bottom: 0 !important;
    overflow-x: hidden;
}

body.latest-embed-route .latest-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    height: calc(100dvh - var(--header-h, 70px));
    margin: 0;
}

body.latest-embed-route #latestSidebar,
body.latest-embed-route .latest-aura,
body.latest-embed-route .latest-aura-sidebar,
body.latest-embed-route .latest-sidebar {
    display: none !important;
}

body.latest-embed-route .latest-main {
    padding: 0 !important;
    margin: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.latest-embed-route .latest-main > .latest-embed-page,
body.latest-embed-route .latest-main > .latest-provider-embed,
body.latest-embed-route .latest-main > .latest-game-embed-page,
body.latest-embed-route .latest-main > .latest-casino-lobby-page {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

body.latest-embed-route .latest-embed-page,
body.latest-embed-route .latest-provider-embed,
body.latest-embed-route .latest-game-embed-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

/* Gate/error — flex fill under header (avoids min-height vs compact game header drift) */
body.latest-embed-route .latest-embed-gate,
body.latest-embed-route .latest-embed-error,
body.latest-embed-route .latest-embed-loader--standalone,
body.latest-embed-route .latest-game-embed-page > .latest-embed-gate,
body.latest-embed-route .latest-game-embed-page > .latest-embed-error,
body.latest-embed-route .latest-game-embed-page > .latest-embed-loader--standalone {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

body.latest-embed-game-header .latest-embed-gate,
body.latest-embed-game-header .latest-embed-error,
body.latest-embed-game-header .latest-embed-loader--standalone {
    min-height: calc(100dvh - var(--header-h-game, 54px));
}

@media (min-width: 768px) {
    body.latest-embed-game-header .latest-embed-gate,
    body.latest-embed-game-header .latest-embed-error,
    body.latest-embed-game-header .latest-embed-loader--standalone {
        min-height: calc(100dvh - var(--header-h, 70px));
    }
}

body.latest-embed-route .latest-footer,
body.latest-embed-route .latest-bottom-nav {
    display: none !important;
}

body.latest-embed-route .latest-marquee-bar {
    display: none !important;
}

body.latest-embed-route .latest-whatsapp-float {
    display: none !important;
}

@media (max-width: 991.98px) and (min-width: 768px) {
    body.latest-embed-route:not(.latest-embed-game-header) .latest-shell {
        height: calc(100dvh - var(--header-h, 70px));
    }
}

@media (max-width: 767.98px) {
    body.latest-embed-route:not(.latest-embed-game-header) {
        padding-top: var(--header-h-mobile, 85px) !important;
    }

    body.latest-embed-route:not(.latest-embed-game-header) .latest-shell {
        height: calc(100dvh - var(--header-h-mobile, 85px));
    }

    /* Logged-in casino/provider lobbies — same tall header + padding as homepage */
    body.latest-embed-route:not(.latest-embed-game-header):has(.latest-header-afterlogin:not(.latest-header-game)) {
        padding-top: var(--header-h-mobile-logged, 118px) !important;
    }

    body.latest-embed-route:not(.latest-embed-game-header):has(.latest-header-afterlogin:not(.latest-header-game)) .latest-shell {
        height: calc(100dvh - var(--header-h-mobile-logged, 118px));
    }

    /* Guest embed routes (/aviator, /exchange, …) — same 85px + tools row as home */
    body.latest-embed-route:not(.latest-embed-game-header) .latest-header-royal.latest-header-guest:not(.latest-header-game) {
        height: auto;
        min-height: var(--header-h-mobile, 85px);
        max-height: none;
    }

    body.latest-embed-route:not(.latest-embed-game-header) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-nav-track,
    body.latest-embed-route:not(.latest-embed-game-header) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-lang-search-desktop {
        display: none !important;
    }

    body.latest-embed-route:not(.latest-embed-game-header) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-tools-row {
        display: flex;
    }
}

/* Compact game-route header (logo + wallet) — all embed sizes */
.latest-header-royal.latest-header-game {
    display: flex;
    align-items: center;
    height: var(--header-h, 70px);
    min-height: var(--header-h, 70px);
    max-height: var(--header-h, 70px);
}

.latest-header-royal.latest-header-game .latest-header-row {
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
}

.latest-header-royal.latest-header-game .latest-logo img {
    max-height: 42px;
}

.latest-header-royal.latest-header-game .latest-header-inner {
    padding: 0 12px;
    height: 100%;
}

.latest-header-royal.latest-header-game .latest-logo-toggle {
    flex: 0 0 auto;
}

.latest-header-royal.latest-header-game .latest-header-right {
    flex: 0 0 auto;
    margin-left: auto;
}

.latest-header-royal.latest-header-game .latest-balance-amount,
.latest-header-royal.latest-header-game .latest-bal-readout {
    min-width: 0;
}

/* Game header: one cycling stat at every breakpoint (never 3-across) */
.latest-header-royal.latest-header-game .latest-bal-readout-royal {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
}

.latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-stat:not(.is-active) {
    display: none !important;
}

.latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-stat.is-active {
    display: inline-flex !important;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-label,
.latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .latest-header-royal.latest-header-game .latest-balance-amount {
        height: 35px;
        min-height: 35px;
        max-height: 35px;
        flex-shrink: 0;
        overflow: hidden;
    }

    .latest-header-royal.latest-header-game .latest-bal-readout-royal {
        min-width: 96px;
        max-width: 220px;
        padding: 0 8px;
    }

    .latest-header-royal.latest-header-game .latest-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .latest-header-royal.latest-header-game .latest-balance-item {
        flex-shrink: 0;
    }

    .latest-header-royal.latest-header-game .latest-header-profile {
        flex-shrink: 0;
        margin-left: 2px;
    }
}

@media (max-width: 991px) {
    .latest-header-royal.latest-header-game .latest-topnav {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .latest-header-royal.latest-header-game {
        height: var(--header-h-game, 54px);
        min-height: var(--header-h-game, 54px);
        max-height: var(--header-h-game, 54px);
        padding: 0;
    }

    .latest-header-royal.latest-header-game .latest-logo {
        width: 96px;
    }

    .latest-header-royal.latest-header-game .latest-logo img {
        max-height: 36px;
    }

    .latest-header-royal.latest-header-game .latest-header-row {
        row-gap: 0;
    }

    .latest-header-royal.latest-header-game .latest-bal-val {
        font-size: 12px;
    }

    .latest-header-royal.latest-header-game .latest-bal-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    /* Game embed: one balance line at a time (JS cycles); never stack 3 inline rows */
    .latest-header-royal.latest-header-game .latest-header-right {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 108px);
    }

    .latest-header-royal.latest-header-game .latest-header-actions {
        width: 100%;
        min-width: 0;
        justify-content: flex-end;
    }

    .latest-header-royal.latest-header-game .latest-balance-item {
        min-width: 0;
        max-width: 100%;
    }

    .latest-header-royal.latest-header-game .latest-balance-amount {
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .latest-header-royal.latest-header-game .latest-bal-readout-royal {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        justify-content: center;
    }

    .latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-stat:not(.is-active) {
        display: none !important;
    }

    .latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-stat.is-active {
        display: inline-flex !important;
        align-items: baseline;
        gap: 3px;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-label,
    .latest-header-royal.latest-header-game .latest-bal-readout-royal .latest-bal-val {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Embed routes: keep compact header visible; iframe fills remainder */
body.latest-embed-game-header {
    padding-top: var(--header-h-game, 54px) !important;
}

@media (min-width: 768px) {
    body.latest-embed-game-header {
        padding-top: var(--header-h, 70px) !important;
    }
}

body.latest-embed-game-header .latest-header-royal.latest-header-game {
    display: block !important;
}

body.latest-embed-game-header .latest-marquee-bar {
    display: none !important;
}

body.latest-embed-game-header .latest-shell {
    height: calc(100dvh - var(--header-h-game, 54px));
    max-height: calc(100dvh - var(--header-h-game, 54px));
    min-height: 0;
}

body.latest-embed-game-header .latest-main,
body.latest-embed-game-header .latest-embed-page,
body.latest-embed-game-header .latest-provider-embed,
body.latest-embed-game-header .latest-game-embed-page,
body.latest-embed-game-header .latest-casino-lobby-page {
    height: 100%;
    min-height: 0;
    padding: 0 !important;
}

body.latest-embed-game-header .latest-embed-shell,
body.latest-embed-game-header .latest-game-embed-shell {
    height: 100%;
    min-height: 100%;
    max-height: 100%;
}

@media (min-width: 768px) {
    body.latest-embed-game-header .latest-shell {
        height: calc(100dvh - var(--header-h, 70px));
        max-height: calc(100dvh - var(--header-h, 70px));
    }
}

/* Casino provider tab strip above lobby iframe */
.latest-casino-prov-wrap,
.latest-casino-providers {
    display: flex;
    align-items: center;
    overflow-x: auto;
    margin: 0;
    padding: 8px 10px 6px;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.latest-casino-prov-wrap::-webkit-scrollbar {
    display: none;
}
.latest-casino-prov-strip,
.casino-provider-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: min-content;
    width: max-content;
}
.latest-casino-prov-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #e2e8f0;
    background: transparent;
    border: 1px solid #333;
    text-decoration: none !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.15s ease;
}
.latest-casino-prov-strip a:hover {
    border-color: var(--royal-red);
    color: #fff;
}
.latest-casino-prov-strip a.active {
    background: var(--royal-red);
    color: #fff;
    border-color: var(--royal-red);
}

/* Casino lobby — flex column: tabs + iframe/catalog fill viewport below header */
.latest-casino-lobby-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    background: #000;
}

body.latest-embed-route .latest-casino-lobby-page .latest-casino-prov-wrap {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 5;
}

body.latest-embed-route .latest-casino-lobby-page .latest-game-embed-shell,
body.latest-embed-route .latest-casino-lobby-page .latest-embed-gate,
body.latest-embed-route .latest-casino-lobby-page .latest-embed-error,
body.latest-embed-route .latest-casino-lobby-page .latest-embed-loader--standalone {
    flex: 1 1 auto;
    min-height: min(420px, calc(100dvh - var(--header-h, 70px) - 52px));
    height: auto;
    max-height: none;
}

body.latest-embed-route .latest-casino-lobby-page .latest-casino-catalog {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.latest-casino-lobby-head {
    padding: 10px 12px 4px;
}

.latest-casino-lobby-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.latest-casino-lobby-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.latest-casino-catalog {
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

.latest-casino-cat-wrap {
    overflow-x: auto;
    margin: 0 0 10px;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.latest-casino-cat-wrap::-webkit-scrollbar {
    display: none;
}

.latest-casino-cat-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: min-content;
}

.latest-casino-cat-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: #141414;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.latest-casino-cat-btn:hover {
    color: #fff;
    border-color: var(--royal-red);
}

.latest-casino-cat-btn.active {
    background: var(--royal-red);
    border-color: var(--royal-red);
    color: #fff;
}

.latest-casino-cat-btn i {
    font-size: 0.68rem;
}

.latest-casino-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 576px) {
    .latest-casino-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (min-width: 992px) {
    .latest-casino-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .latest-casino-catalog {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
}

.latest-casino-game-card {
    aspect-ratio: 168 / 127;
    position: relative;
}

.latest-casino-game-card .latest-game-img {
    position: absolute;
    inset: 0;
    background: #0f0f0f;
}

.latest-casino-game-card .latest-game-img img {
    object-fit: contain;
    object-position: center center;
}

.latest-casino-game-card .latest-casino-game-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    color: var(--royal-red);
    font-size: 1.75rem;
}

.latest-casino-game-card--fallback .latest-casino-game-fallback,
.latest-casino-game-card:not(:has(img)) .latest-casino-game-fallback {
    display: flex;
}

.latest-casino-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.latest-casino-empty i {
    display: block;
    font-size: 2rem;
    color: var(--royal-red);
    opacity: 0.45;
    margin-bottom: 0.75rem;
}

.latest-embed-gate--muted i {
    opacity: 0.85;
}

@media (max-width: 767.98px) {
    .latest-casino-prov-strip a {
        padding: 8px 12px;
        font-size: 10px;
    }

    .latest-casino-lobby-title {
        font-size: 0.95rem;
    }
}

/* ── Royal shell parity — override turbo gold/navy, fix 3-column grid ─────── */
body.latest-royal-parity:not(.latest-embed-route) .latest-main {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0 0 16px;
    background: var(--royal-body);
}

body.latest-royal-parity[data-turbo] .latest-sidebar {
    background: var(--royal-panel) !important;
    border-right: 1px solid var(--royal-line) !important;
}

body.latest-royal-parity[data-turbo] .latest-aura {
    background: var(--royal-panel) !important;
    border-left: 1px solid var(--royal-line) !important;
}

body.latest-royal-parity[data-turbo] .latest-sidebar a:hover,
body.latest-royal-parity[data-turbo] .latest-sidebar a.active {
    color: #fff !important;
    background: transparent !important;
    border-color: transparent !important;
}

body.latest-royal-parity[data-turbo] .latest-sidebar a:hover span,
body.latest-royal-parity[data-turbo] .latest-sidebar a.active span {
    color: #fff !important;
}

body.latest-royal-parity[data-turbo] .latest-game-card:hover {
    border-color: var(--royal-red) !important;
    outline: none !important;
}

body.latest-royal-parity[data-turbo] .latest-section-action,
body.latest-royal-parity .latest-section-action {
    background: var(--royal-red) !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.latest-royal-parity .latest-features {
    box-sizing: border-box;
}

body.latest-royal-parity .latest-section {
    width: 100%;
}

body.latest-royal-parity .latest-sports-btns {
    display: none;
}

@media (min-width: 768px) {
    body.latest-royal-parity .latest-sports-btns {
        display: none;
    }
}

@media (max-width: 767.98px) {
    body.latest-royal-parity .latest-sports-btns {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-bottom: 10px;
        max-width: 100%;
    }

    body.latest-royal-parity .latest-sports-btn {
        display: block;
        background: transparent !important;
        border: 0 !important;
        border-radius: 4px;
        padding: 0;
        overflow: hidden;
        aspect-ratio: 120 / 67;
        min-height: 0;
    }

    body.latest-royal-parity .latest-sports-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
}

/* Right Aura rail — match royalexch666.com .rightbarSec (350px desktop) */
body.latest-royal-parity:not(.latest-embed-route) .latest-aura {
    padding: 10px !important;
    gap: 10px;
    background: var(--royal-panel) !important;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-title {
    color: var(--royal-red) !important;
    flex-shrink: 0;
    margin: 0;
    padding: 0 10px;
    font-size: 12px !important;
    line-height: 22px !important;
    letter-spacing: normal;
    text-align: left;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tabs {
    flex-shrink: 0;
    min-height: 39px;
    height: 39px;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tabs::-webkit-scrollbar {
    display: none;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab {
    flex-shrink: 0;
    height: 39px;
    min-height: 39px;
    padding: 6px 15px !important;
    font-size: 11px !important;
    line-height: 21px !important;
    font-weight: 400;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    white-space: nowrap;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab.active {
    background: var(--royal-red) !important;
    border-color: var(--royal-red) !important;
    color: #fff !important;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab:not(.active) {
    background: transparent !important;
    color: #fff !important;
}

body.latest-royal-parity .latest-aura-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card {
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card:hover {
    border-color: transparent;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-img {
    aspect-ratio: auto;
    height: 118px;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-name {
    padding: 4px 0 0;
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    text-align: center;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-more {
    display: none !important;
}

.latest-header-royal .latest-logo img,
.latest-topnav a img,
.latest-mobnav-links a img,
.latest-bottom-nav.latest-footer-menu li a img,
.latest-feature-card img {
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

body.latest-theme .latest-sports-btn img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.latest-header-royal .latest-topnav a img {
    width: 18px;
    height: 18px;
}

.latest-game-card .latest-game-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.latest-game-card .latest-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.latest-hero-duo-slide img {
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 991.98px) {
    .latest-hero-duo-slide img {
        object-position: left center;
    }
}

@media (max-width: 767px) {
    body.latest-theme:not(.latest-embed-route):not(.latest-royal-parity) .latest-main {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── Header nav pills — royal x/y/alignItems parity (audit: x_delta 13, alignItems normal) ─ */
@media (min-width: 992px) {
    .latest-header-royal .latest-header-inner {
        padding-left: 3px;
        padding-right: 16px;
    }

    .latest-header-royal .latest-topnav,
    .latest-header-royal .latest-topnav.latest-nav-pills {
        align-items: normal !important;
        margin-top: 2px;
    }

    .latest-header-royal .latest-topnav a {
        height: 46px;
        line-height: 46px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Account routes — compact header (wallet + profile only) */
body.latest-account-route .latest-header-royal .latest-topnav,
body.latest-account-route .latest-header-royal .latest-nav-track,
body.latest-account-route .latest-header-royal .latest-lang-search-desktop {
    display: none !important;
}

body.latest-account-route .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-row {
    flex-wrap: nowrap;
    gap: 8px;
}

body.latest-account-route .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-right {
    margin-left: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

/* Logged-in wallet carousel — tablet only (mobile shows all 3 stats stacked) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal {
        overflow: visible;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-stat {
        display: none;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        font-variant-numeric: tabular-nums;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-stat.is-active {
        display: inline-flex;
        align-items: baseline;
        gap: 3px;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-label,
    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-val {
        overflow: visible;
        text-overflow: clip;
        font-variant-numeric: tabular-nums;
    }
}

/* Logged-in desktop header cluster — wallet row fits full amounts */
@media (min-width: 992px) {
    .latest-header-royal.latest-header-afterlogin .latest-header-row {
        gap: 12px;
    }

    .latest-header-royal.latest-header-afterlogin .latest-bal-readout {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal {
        flex-wrap: nowrap;
        gap: 0 10px;
        justify-content: center;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-label {
        font-size: 10px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-val {
        font-size: 11px;
        font-variant-numeric: tabular-nums;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-balance-amount {
        min-width: min(100%, 380px);
        max-width: none;
        width: auto;
        flex-shrink: 0;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-stat {
        display: inline-flex;
        flex-shrink: 0;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-actions {
        flex: 0 1 auto;
        max-width: none;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-balance-amount {
        height: 35px;
    }

    .latest-header-royal.latest-header-game .latest-balance-amount {
        height: 35px;
        min-height: 35px;
        max-height: 35px;
    }

    /* Game embed desktop — W | Balance/Exposure/Bonus | D + profile (royal parity) */
    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-header-row {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-logo-toggle {
        flex: 0 0 auto;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-header-right {
        flex: 0 0 auto;
        margin-left: auto;
        min-width: 0;
        justify-content: flex-end;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-header-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-balance-item {
        flex: 0 0 auto;
        min-width: 0;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-balance-amount {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        min-width: min(100%, 380px);
        max-width: none;
        width: auto;
        flex-shrink: 0;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-readout {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-readout-royal {
        flex-wrap: nowrap;
        gap: 0 10px;
        justify-content: center;
        min-width: 0;
        max-width: none;
        overflow: visible;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-readout-royal .latest-bal-stat {
        display: inline-flex !important;
        align-items: baseline;
        gap: 3px;
        flex-shrink: 0;
        overflow: visible;
        white-space: nowrap;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-readout-royal .latest-bal-label {
        font-size: 10px;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-readout-royal .latest-bal-val {
        font-size: 11px;
        font-variant-numeric: tabular-nums;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-withdraw,
    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-bal-deposit {
        flex: 0 0 auto;
        display: flex;
    }

    .latest-header-royal.latest-header-afterlogin.latest-header-game .latest-header-profile {
        flex-shrink: 0;
        margin-left: 4px;
    }

    body.latest-embed-game-header .latest-header-royal.latest-header-game .latest-header-inner {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Mobile logged-in header — three rows: logo | wallet | search+lang (royal parity) */
@media (max-width: 767.98px) {
    body.latest-theme:has(.latest-header-afterlogin:not(.latest-header-game)) {
        padding-top: var(--header-h-mobile-logged, 118px);
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) {
        height: auto;
        min-height: var(--header-h-mobile-logged, 118px);
        max-height: none;
        padding: 0;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-row {
        flex-wrap: nowrap;
        align-items: center;
        row-gap: 0;
        height: auto;
        min-height: 52px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-nav-track,
    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-lang-search {
        display: none !important;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-logo-toggle {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 42%;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-inner {
        padding: 2px 10px 2px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-logo {
        width: 90px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-logo img {
        max-height: 40px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-right {
        flex: 1 1 auto;
        width: auto;
        max-width: 58%;
        margin-left: auto;
        min-width: 0;
        order: unset;
        justify-content: flex-end;
        gap: 0;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-actions {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        width: auto;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-balance-item {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        width: auto;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-balance-amount {
        height: 35px;
        min-height: 35px;
        width: 100%;
        max-width: 100%;
        border-radius: 25px;
        align-items: center;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        border-radius: 25px;
        align-self: center;
        flex-shrink: 0;
        font-size: 16px;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout {
        min-width: 0;
        max-width: none;
        padding: 4px 6px;
        flex: 1 1 auto;
        position: static;
        height: auto;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        gap: 1px;
        line-height: 1.15;
        overflow: visible;
        position: static;
        min-height: 0;
        width: 100%;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-stat {
        display: flex;
        width: 100%;
        max-width: 100%;
        font-size: 10px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        text-align: left;
        justify-content: space-between;
        flex-shrink: 0;
        align-items: baseline;
        gap: 4px;
        opacity: 1 !important;
        transform: none;
        pointer-events: auto;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-stat.is-active {
        display: flex;
        align-items: baseline;
        gap: 4px;
        min-width: 0;
        flex: 0 0 auto;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-label,
    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-bal-readout-royal .latest-bal-val {
        font-size: 11px;
        font-variant-numeric: tabular-nums;
        overflow: visible;
        text-overflow: clip;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-profile .latest-profile-toggle {
        display: inline-flex !important;
        width: 25px;
        height: 25px;
        border: 0;
        border-radius: 0;
        background: transparent;
        margin-left: 6px;
        padding: 0;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-profile-backdrop:not(.show),
    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-profile-panel:not(.open) {
        display: none !important;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row {
        gap: 8px;
        margin: 0;
        padding: 0;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        align-items: center;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-lang {
        display: block !important;
        flex: 0 0 124px;
        min-width: 124px;
        max-width: 124px;
        width: 124px;
        height: 30px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background: #000;
        border: 1px solid var(--royal-red);
        border-radius: 25px;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-lang-select {
        display: block;
        width: 100%;
        height: 30px;
        min-height: 30px;
        margin: 0;
        padding: 0 24px 0 10px;
        font-size: 12px;
        line-height: 30px;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        background: transparent;
        border: 0;
        border-radius: 25px;
        color: #fff;
        cursor: pointer;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-appearance: menulist;
        appearance: menulist;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-searchbar {
        flex: 1 1 auto;
        width: auto;
        height: 30px;
        min-height: 30px;
        padding: 3px 7px 4px;
        gap: 6px;
        border-radius: 20px;
        background: #171717;
        border: 0.8px solid #2b2b2b;
        color: #fff;
        justify-content: flex-start;
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) .latest-header-tools-row .latest-searchbar-label {
        font-size: 12px;
    }

    body.latest-account-route:has(.latest-account-page) .latest-main {
        padding-top: 8px;
    }
}

/* Homepage hero — fill center column (royal sports_page_banner uses main width, not fixed 900) */
body.latest-royal-parity .latest-main > .latest-hero-duo,
body.latest-royal-parity .latest-main > .latest-hero-wrap {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
}

body.latest-royal-parity .latest-hero-duo-track {
    max-width: 100%;
}

/* Homepage mid — section rhythm + game grid (audit: mid ~20%) */
body.latest-royal-parity .latest-section {
    margin-bottom: 10px;
}

body.latest-royal-parity .latest-section-popular {
    margin-top: 20px;
}

@media (min-width: 768px) {
    body.latest-royal-parity .latest-section-popular {
        margin-top: 28px;
    }
}

body.latest-royal-parity .latest-section-head {
    margin-bottom: 8px;
}

/* Desktop account shell — centered 1200px column (audit: account_grid x:120) */
@media (min-width: 992px) {
    body.latest-account-route.latest-theme:has(.latest-account-page) .latest-main {
        padding: 10px max(16px, calc((100% - 1200px) / 2)) 24px;
        background: var(--royal-bg);
    }

    body.latest-account-route .latest-account-shell {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Guest desktop — nav track fills header row on all non-embed pages (login, casino, homepage) */
@media (min-width: 992px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-row {
        flex-wrap: nowrap;
    }

    /* margin-left:auto on header-right was absorbing free space and capping nav at content width */
    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-header-right {
        order: 3;
        margin-left: 0;
        flex-shrink: 0;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-lang-search {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-nav-track {
        display: flex;
        flex: 1 1 0%;
        min-width: 0;
        order: 1;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-nav-track .latest-topnav.latest-nav-pills {
        width: 100%;
        flex: 1 1 auto;
        max-width: none;
        justify-content: normal;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-topnav.latest-nav-pills a {
        flex: 0 0 auto;
    }

    /* Royal desktop guest CTAs — measured 93×34px on royalexch666.com */
    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-login-btn {
        padding: 6px 34px 6px 10px;
        font-size: 0.78rem;
        line-height: 1;
        min-height: 34px;
        height: 34px;
        box-sizing: border-box;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-signup-btn {
        padding: 6px 12px;
        font-size: 0.78rem;
        line-height: 1;
        min-height: 34px;
        height: 34px;
        box-sizing: border-box;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-header-royal.latest-header-guest:not(.latest-header-game) .latest-login-age {
        width: 26px;
        height: 26px;
        font-size: 9px;
        right: 3px;
    }
}

/* Desktop — footer lives in .latest-main grid column (not body-level margin inset) */
@media (min-width: 992px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-footer {
        display: block;
        box-sizing: border-box;
        width: calc(100% + 20px);
        max-width: none;
        margin-left: -10px;
        margin-right: -10px;
        margin-top: 24px;
        padding: 28px 20px 20px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-footer .latest-footer-inner {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 8px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-footer-top {
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-footer-links {
        flex-wrap: wrap;
        row-gap: 10px;
        column-gap: 22px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-footer-provider-logos {
        gap: 12px 20px;
    }

    body.latest-royal-parity.latest-account-route:not(.latest-embed-route) .latest-main > .latest-footer {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 24px 0 20px;
    }

    body.latest-royal-parity.latest-account-route:not(.latest-embed-route) .latest-main > .latest-footer .latest-footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 max(16px, calc((100% - 1200px) / 2));
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-main > .latest-footer {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip;
        box-sizing: border-box;
    }

    body.latest-royal-parity .latest-footer-inner {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    body.latest-royal-parity .latest-footer-top {
        width: 100%;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px;
    }

    body.latest-royal-parity .latest-footer-social {
        flex-wrap: wrap;
    }

    body.latest-royal-parity .latest-footer-provider-logos {
        gap: 0;
    }

    body.latest-royal-parity .latest-footer-provider-logos li {
        flex: 0 1 31%;
        max-width: 31%;
        margin: 1%;
    }

    body.latest-royal-parity .latest-footer-provider-logos img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    body.latest-royal-parity .latest-footer-partners.providers_logo {
        padding-bottom: 20px;
    }

    body.latest-royal-parity .latest-footer-payment-logos {
        gap: 10px;
    }

    body.latest-royal-parity .latest-footer-payment-logos img {
        width: 30px;
    }

    body.latest-royal-parity .latest-footer-partners-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    body.latest-royal-parity .latest-footer-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    body.latest-royal-parity .latest-footer-partners.providers_logo h4,
    body.latest-royal-parity .latest-footer-partners.providers_logo h5,
    body.latest-royal-parity .latest-footer-partners h5 {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.latest-royal-parity:not(.latest-embed-route) {
        overflow-x: clip;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-main {
        overflow-x: clip;
        max-width: 100%;
        min-width: 0;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-footer {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ── Support banners (deposit / withdraw) — royalexch666 .support-buttons parity ───
   Mobile (≤767): single column stack, full width, natural banner aspect (900×500).
   Tablet/desktop (768+): 2-up row; img heights 159px (768–991), 248px (≥992). */
body.latest-royal-parity:not(.latest-embed-route) .latest-main > .latest-support {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 899px;
    margin: 40px 0 18px;
    padding: 0;
    box-sizing: border-box;
    font-size: 0;
}

body.latest-royal-parity .latest-support a,
body.latest-royal-parity .latest-support-deposit,
body.latest-royal-parity .latest-support-withdraw {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    line-height: 0;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
}

body.latest-royal-parity .latest-support img,
body.latest-royal-parity .latest-support-img-deposit,
body.latest-royal-parity .latest-support-img-withdraw {
    width: 100%;
    max-width: 100%;
    display: block;
    vertical-align: top;
    object-fit: fill;
    object-position: center;
    animation: none;
    transition: none;
    transform: none;
}

body.latest-royal-parity .latest-support a:hover img {
    animation: none;
    transition: none;
    transform: none;
}

body.latest-royal-parity .latest-support:has(> a:only-child) a {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-main > .latest-support,
    body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page > .latest-support {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        margin: 28px 0 24px;
        padding: 0;
    }

    body.latest-royal-parity .latest-support a,
    body.latest-royal-parity .latest-support-deposit,
    body.latest-royal-parity .latest-support-withdraw {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    body.latest-royal-parity .latest-support img,
    body.latest-royal-parity .latest-support-img-deposit,
    body.latest-royal-parity .latest-support-img-withdraw {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 9 / 5;
        object-fit: contain;
        object-position: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-main > .latest-support {
        flex-direction: row;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        margin: 32px 0 24px;
        padding: 0 !important;
    }

    body.latest-royal-parity .latest-support img,
    body.latest-royal-parity .latest-support-img-deposit,
    body.latest-royal-parity .latest-support-img-withdraw {
        height: 159px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 992px) {
    body.latest-royal-parity .latest-support img,
    body.latest-royal-parity .latest-support-img-deposit,
    body.latest-royal-parity .latest-support-img-withdraw {
        height: 248px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 1440px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-support {
        max-width: 899px;
        width: 100%;
        margin-left: 0 !important;
        margin-right: auto !important;
        margin-top: 40px !important;
        margin-bottom: 18px !important;
    }
}

/* ── Policy / info pages — royal dark panel (replaces legacy SPA scrape) ─── */
body.latest-royal-parity .latest-policy-page {
    max-width: 900px;
    margin: 14px auto;
}

body.latest-royal-parity .latest-policy-body {
    background: var(--royal-panel);
    border: 1px solid var(--royal-line);
    border-radius: 6px;
    padding: 22px 24px;
    color: var(--royal-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

body.latest-royal-parity .latest-policy-body a {
    color: var(--royal-red);
    text-decoration: underline;
}

body.latest-royal-parity .latest-policy-body ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

body.latest-royal-parity .latest-policy-updated {
    margin-top: 18px;
    font-size: 12.5px;
    color: #888;
}

/* ── Live Casino (vivo) — multi-row grid (royal 6-col desktop, 2-col mobile) ─ */
body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
    display: grid;
    grid-auto-flow: row;
    gap: 8px;
    overflow: visible !important;
    scroll-snap-type: none;
    padding-bottom: 0;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-columns: unset !important;
}

/* Popular Games — multi-row grid (drop carousel single-row flow) */
body.latest-royal-parity .latest-popular-grid.displayGames,
body.latest-royal-parity .latest-popular-grid[data-carousel="popular"],
body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 8px;
    overflow: visible !important;
    scroll-snap-type: none;
    padding-bottom: 0;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-popular-grid[data-carousel="popular"],
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-popular-grid[data-carousel="popular"],
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-popular-grid[data-carousel="popular"],
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991px) {
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card,
body.latest-royal-parity .latest-popular-grid[data-carousel="popular"] .latest-game-card,
body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card,
body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card {
    flex: unset !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 168 / 127 !important;
    scroll-snap-align: unset;
}

body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card .latest-game-img img,
body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card .latest-game-img img,
body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card .latest-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #111;
}

/* Live Casino — exactly 2 rows (royal parity caps) */
@media (min-width: 1200px) {
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card:nth-child(n + 13) {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card:nth-child(n + 11) {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card:nth-child(n + 9) {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card:nth-child(n + 5) {
        display: none !important;
    }
}

body.latest-royal-parity .latest-casino-grid .latest-casino-game-card {
    aspect-ratio: 168 / 127 !important;
}

body.latest-royal-parity .latest-casino-grid .latest-casino-game-card .latest-game-img {
    background: #111;
}

body.latest-royal-parity .latest-casino-grid .latest-casino-game-card .latest-game-img img {
    object-fit: contain !important;
    object-position: center center;
    background: #111;
}

/* ── Mobile game cards — royal 2-col grid (168×127, gap 10px) ─────────────── */
@media (max-width: 767.98px) {
    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"],
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        overflow: visible !important;
        padding: 10px;
        padding-bottom: 0;
        box-sizing: border-box;
    }

    body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card,
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card,
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card {
        width: 100% !important;
        max-width: none !important;
        flex: unset !important;
        aspect-ratio: 168 / 127 !important;
        border-radius: 5px;
        border: 0;
    }

    body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card .latest-game-img,
    body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card .latest-game-img img,
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card .latest-game-img,
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card .latest-game-img img,
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card .latest-game-img,
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card .latest-game-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #111;
    }

    body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-name,
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-name,
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-name {
        font-size: 9px;
        padding: 12px 3px 4px;
        line-height: 1.2;
    }
}

@media (max-width: 380px) {
    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"],
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
        gap: 8px;
    }
}

/* ── Casino provider tiles — 6-col flex @ 900px (royal exchangeGames-content parity) ─ */
body.latest-royal-parity .latest-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 10px;
    padding-bottom: 15px;
    box-sizing: border-box;
}

body.latest-royal-parity .latest-provider-card {
    flex: 0 0 calc(16.66666667% - 8.33333333px);
    max-width: calc(16.66666667% - 8.33333333px);
    width: calc(16.66666667% - 8.33333333px);
    aspect-ratio: 500 / 376;
    min-height: 0;
    padding: 5px;
    background: #171717;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    transform: none;
    transition: none;
    box-sizing: border-box;
}

body.latest-royal-parity .latest-provider-card:hover {
    transform: none;
    border-color: transparent;
}

body.latest-royal-parity .latest-provider-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
    border-radius: 2px;
    box-sizing: border-box;
}

/* Feature row — royal .facts-sec > ul parity (flex + 15px gap; li a column + gradient) */
body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
    --royal-features-gap: 15px;
    --royal-features-mt: 30px;
    --royal-features-inset-x: 21px;
    --royal-feature-gradient: linear-gradient(0deg, rgb(5, 5, 5), rgb(23, 23, 23));
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--royal-features-gap);
    width: calc(100% - var(--royal-features-inset-x));
    max-width: calc(100% - var(--royal-features-inset-x));
    margin: var(--royal-features-mt) 11px 0 10px;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    text-decoration: none;
    gap: 0;
    flex: 0 0 calc((100% - (var(--royal-features-gap) * 3)) / 4);
    width: calc((100% - (var(--royal-features-gap) * 3)) / 4);
    max-width: calc((100% - (var(--royal-features-gap) * 3)) / 4);
    min-height: 155px;
    height: 155px;
    min-width: 0;
    padding: 20px;
    background: var(--royal-feature-gradient);
    border: 1px solid rgb(33, 33, 33);
    border-radius: 10px;
    color: #fff;
    transform: none;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}

body.latest-royal-parity .latest-feature-card > div:last-child {
    min-width: 0;
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
}

body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card .latest-feature-icon {
    margin: 0 auto 6px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.latest-royal-parity .latest-feature-card h6,
body.latest-royal-parity .latest-feature-card p {
    overflow-wrap: anywhere;
}

/* Tablet — fluid 4-up within .latest-main (768–991) */
@media (min-width: 768px) and (max-width: 991.98px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        --royal-features-gap: 12px;
        --royal-features-mt: 24px;
        padding: 0 2px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        flex-basis: calc((100% - (var(--royal-features-gap) * 3)) / 4);
        width: calc((100% - (var(--royal-features-gap) * 3)) / 4);
        max-width: calc((100% - (var(--royal-features-gap) * 3)) / 4);
        min-height: 130px;
        height: auto;
        padding: 20px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card .latest-feature-icon {
        width: 40px;
        height: 40px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card .latest-feature-icon img {
        width: 36px;
        height: 36px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card h6 {
        font-size: 0.85rem;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card p {
        font-size: 10px;
        line-height: 1.35;
    }
}

/* Medium desktop — fluid row when center column < 899px (992–1199) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        --royal-features-gap: 15px;
        --royal-features-mt: 30px;
        margin-left: auto;
        margin-right: auto;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        min-height: 141px;
    }
}

/* Medium-wide desktop — royal facts-sec row height (~176px at 1200) */
@media (min-width: 1200px) and (max-width: 1439.98px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        --royal-features-gap: 15px;
        --royal-features-mt: 30px;
        --royal-features-inset-x: 21px;
        width: calc(100% - var(--royal-features-inset-x));
        max-width: calc(100% - var(--royal-features-inset-x));
        margin-left: auto;
        margin-right: auto;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        min-height: 176px;
    }
}

/* Desktop — royal 899px cap (≥1440; 1200–1439 stays fluid in center column) */
@media (min-width: 1440px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        --royal-features-gap: 15px;
        --royal-features-mt: 30px;
        max-width: 899px;
        width: 899px;
        margin-left: auto;
        margin-right: auto;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        min-height: 155px;
        height: 155px;
    }
}

body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card:hover {
    border-color: var(--royal-red);
    transform: none;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        --royal-features-gap: 15px;
        --royal-features-mt: 30px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 2px;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        flex: 0 0 calc((100% - var(--royal-features-gap)) / 2);
        width: calc((100% - var(--royal-features-gap)) / 2);
        max-width: calc((100% - var(--royal-features-gap)) / 2);
        min-height: 145px;
        height: 145px;
        padding: 15px 5px;
    }

    body.latest-royal-parity .latest-providers {
        gap: 10px;
        padding: 10px;
        padding-bottom: 15px;
    }

    body.latest-royal-parity .latest-provider-card {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        width: calc(50% - 5px);
    }

    body.latest-royal-parity .latest-main > .latest-hero-duo,
    body.latest-royal-parity .latest-main > .latest-hero-wrap,
    body.latest-royal-parity .latest-main > .latest-section {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-main > .latest-footer {
        margin-left: -10px !important;
        margin-right: -10px !important;
        width: calc(100% + 20px) !important;
        max-width: calc(100% + 20px) !important;
    }

    body.latest-royal-parity .latest-footer-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.latest-royal-parity .latest-footer {
        padding-bottom: 16px;
    }

    body.latest-royal-parity .latest-footer-links {
        justify-content: center;
        text-align: center;
        flex-direction: row;
        gap: 4px 0;
        padding-top: 12px;
        border-top: 1px solid var(--royal-line, #222);
    }

    body.latest-royal-parity .latest-footer-links a {
        font-size: 11px;
        white-space: nowrap;
    }

    body.latest-royal-parity .latest-footer-links a:not(:last-child)::after {
        content: " |";
        color: var(--royal-text-muted, #9ca3af);
        pointer-events: none;
    }
}

/* ── Exchange embed — full-viewport iframe under compact header (auth) ───── */
body.latest-embed-route.latest-embed-game-header .latest-provider-embed--exchange .latest-embed-shell,
body.latest-embed-route.latest-embed-game-header .latest-provider-embed--exchange .latest-embed-shell iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    display: block;
}

body.latest-embed-route .latest-provider-embed--exchange {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    background: var(--royal-bg);
}

/* Mobile bottom nav clearance on non-embed pages */
@media (max-width: 991.98px) {
    body.latest-theme.latest-royal-parity:not(.latest-embed-route) {
        padding-bottom: calc(var(--bottomnav-h, 58px) + env(safe-area-inset-bottom, 0px) + 8px);
    }

    body.latest-theme.latest-royal-parity:not(.latest-embed-route) .latest-main {
        padding-bottom: 0 !important;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.latest-theme.latest-royal-parity:not(.latest-embed-route) .latest-shell {
        min-width: 0;
        max-width: 100%;
        overflow-x: clip;
    }
}

/* ── Royal animations (bounce2 — feature cards only) ─────────────────────── */
@keyframes royalBounce2 {
    70%  { transform: translateY(0) rotate(0deg); }
    80%  { transform: translateY(12%) rotate(12deg); }
    90%  { transform: translateY(0) rotate(0deg); }
    95%  { transform: translateY(7%) rotate(7deg); }
    97%  { transform: translateY(0) rotate(0deg); }
    99%  { transform: translateY(3%) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

body.latest-royal-parity .latest-feature-card .latest-feature-icon img.aviator {
    animation: royalBounce2 4s ease infinite;
    max-width: 60px;
}

/* ── Royal leftbarSec sidebar layout (tablet+ sticky rail; mobile drawer below) ─ */
@media (min-width: 768px) {
body.latest-royal-parity #latestSidebar.latest-sidebar {
    background: var(--royal-panel);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scrollbar-width: none;
}
}

body.latest-royal-parity .latest-sb-mobile-head {
    flex-shrink: 0;
}

body.latest-royal-parity .latest-sb-scroll {
    flex: 1 1 0%;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
}

body.latest-royal-parity .latest-sb-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.latest-royal-parity .latest-sb-section {
    background: #141414;
    border-radius: 5px;
    margin-bottom: 15px;
    border-top: 0;
    padding: 0;
    overflow: hidden;
}

body.latest-royal-parity .latest-sb-section:last-child {
    margin-bottom: 0;
}

body.latest-royal-parity .latest-sb-list {
    gap: 0;
}

body.latest-royal-parity .latest-sb-list li {
    margin: 0 15px;
    position: relative;
}

body.latest-royal-parity .latest-sb-list li:not(:first-child)::before {
    content: "";
    display: block;
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000;
    box-shadow: 0 0.35px 0 0 #717171;
}

body.latest-royal-parity .latest-sb-list a {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 0;
    padding: 5px;
    line-height: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #b7b7b7;
    border-radius: 0;
    transition: color 0.3s ease;
}

body.latest-royal-parity .latest-sb-list a span {
    margin-left: 10px;
    text-transform: capitalize;
    white-space: nowrap;
}

body.latest-royal-parity .latest-sb-list a img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(rgba(0, 0, 0, 0.85) 4px 4px 4px);
}

body.latest-royal-parity .latest-sb-list a:hover span,
body.latest-royal-parity .latest-sb-list a.active span {
    color: #fff;
}

body.latest-royal-parity .latest-sb-list a:hover,
body.latest-royal-parity .latest-sb-list a.active {
    background: transparent;
    color: #fff;
}

body.latest-royal-parity .latest-sb-mobile-only {
    display: none !important;
}

body.latest-royal-parity .latest-sb-mobile-foot {
    display: none;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 10px;
}

body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 12px;
    margin: 0;
    line-height: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    background: #141414;
}

body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout span {
    margin-left: 10px;
    text-transform: capitalize;
}

body.latest-royal-parity .latest-sb-list a.latest-sb-logout,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout,
body.latest-royal-parity .latest-sb-list a.latest-sb-logout span,
body.latest-royal-parity .latest-sb-list a.latest-sb-logout .latest-sb-list-icon,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout span,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout .latest-sb-list-icon {
    color: #f87171;
}

body.latest-royal-parity .latest-sb-list a.latest-sb-logout .latest-sb-list-icon,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout .latest-sb-list-icon {
    width: 24px;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    filter: none;
}

body.latest-royal-parity .latest-sb-list a.latest-sb-logout:hover span,
body.latest-royal-parity .latest-sb-list a.latest-sb-logout:hover .latest-sb-list-icon,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout:hover span,
body.latest-royal-parity .latest-sb-mobile-foot .latest-sb-logout:hover .latest-sb-list-icon {
    color: #fca5a5;
}

/* Mobile drawer — mobleftbarPage / leftbarSec parity */
body.latest-royal-parity .latest-sb-mobile-head {
    display: none;
}

@media (max-width: 767.98px) {
    body.latest-royal-parity.latest-sidebar-open {
        overflow: hidden;
    }

    body.latest-royal-parity .latest-sb-mobile-head {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
        margin-bottom: 10px;
    }

    body.latest-royal-parity .latest-sb-mobile-only {
        display: block !important;
    }

    body.latest-royal-parity .latest-sb-mobile-foot {
        display: block;
    }

    body.latest-royal-parity .latest-sb-scroll {
        flex: 1 1 0%;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    body.latest-royal-parity #latestSidebar.latest-sidebar {
        position: fixed;
        top: var(--header-h-mobile, 85px);
        left: 0;
        width: min(250px, 70vw);
        max-width: 250px;
        height: calc(100dvh - var(--header-h-mobile, 85px));
        max-height: calc(100dvh - var(--header-h-mobile, 85px));
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 15px 10px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        border-right: 1px solid var(--royal-line, #222);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
    }

    body.latest-royal-parity #latestSidebar.latest-sidebar.open {
        transform: translateX(0);
    }

    body.latest-royal-parity .latest-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 98;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    body.latest-royal-parity .latest-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.latest-royal-parity .latest-sb-list a {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 13px !important;
        padding: 5px !important;
        line-height: 30px !important;
    }

    body.latest-royal-parity .latest-sb-list a span {
        display: inline !important;
        margin-left: 10px;
    }

    body.latest-royal-parity .latest-sb-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    body.latest-royal-parity .latest-sb-profile-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #222;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        flex-shrink: 0;
    }

    body.latest-royal-parity .latest-sb-user-name {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

    body.latest-royal-parity .latest-sb-profile-info p {
        margin: 2px 0 0;
        color: #aaa;
        font-size: 12px;
    }

    body.latest-royal-parity .latest-sb-upper-balance {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        background: #2b2b2b;
        border-radius: 5px;
        margin-top: 10px;
        padding: 15px 10px;
        overflow: hidden;
    }

    body.latest-royal-parity .latest-sb-bal-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    body.latest-royal-parity .latest-sb-bal-cell {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
    }

    body.latest-royal-parity .latest-sb-bal-key {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    body.latest-royal-parity .latest-sb-bal-num {
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        text-align: right;
        flex: 1 1 auto;
        min-width: 0;
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }

    body.latest-royal-parity .latest-sb-bal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    body.latest-royal-parity .latest-sb-bal-action {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        min-width: 0;
        text-align: center;
        padding: 8px 4px;
        border-radius: 4px;
        border: 1px solid #fff;
        color: #fff;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.2;
        text-transform: uppercase;
        text-decoration: none;
        box-sizing: border-box;
    }

    body.latest-royal-parity .latest-sb-bal-d {
        border-color: var(--royal-green, #1fb96b);
        color: var(--royal-green, #1fb96b);
    }
}

@media (min-width: 768px) {
    body.latest-royal-parity:not(.latest-embed-route) #latestSidebar.latest-sidebar {
        position: sticky;
        top: var(--header-h, 70px);
        width: var(--sidebar-w, 170px);
        min-width: var(--sidebar-w, 170px);
        max-width: var(--sidebar-w, 170px);
        height: calc(100vh - var(--header-h, 70px));
        transform: none;
        display: flex;
        flex-direction: column;
    }

    body.latest-royal-parity .latest-sb-mobile-head {
        display: none !important;
    }
}

@media (min-width: 992px) {
    body.latest-royal-parity:not(.latest-embed-route) #latestSidebar.latest-sidebar {
        position: sticky;
        top: var(--header-h, 70px);
        width: var(--sidebar-w, 170px);
        height: calc(100vh - var(--header-h, 70px));
        transform: none;
        display: flex;
        flex-direction: column;
    }

    body.latest-royal-parity .latest-sb-mobile-head {
        display: none !important;
    }
}

/* ── Auth overlay on homepage chrome (login / register) ───────────────────── */
body.latest-royal-parity.latest-auth-route .latest-auth-home {
    position: relative;
    min-height: 0;
}

body.latest-royal-parity.latest-auth-route .latest-auth-home-bg {
    pointer-events: none;
    user-select: none;
}

body.latest-royal-parity.latest-auth-route .latest-auth-home-scrim {
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(0, 0, 0, 0.72);
    pointer-events: none;
}

body.latest-royal-parity.latest-auth-route .latest-auth-home-modal {
    position: fixed;
    inset: 0;
    z-index: 10065;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

body.latest-royal-parity.latest-auth-route .latest-auth-home-modal .royal-auth-wrap {
    min-height: 0;
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: transparent;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
}

body.latest-royal-parity.latest-auth-route .latest-auth-home-modal .royal-auth-panel {
    width: 100%;
}

body.latest-royal-parity.latest-auth-route .latest-auth-home-modal .royal-auth-shell {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    min-height: 0;
    border-radius: 5px;
}

/* ── Casino browse routes — homepage shell + catalog (not full-screen embed) ─ */
body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-casino-catalog,
body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-game-embed-shell,
body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-embed-gate,
body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-embed-error,
body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-embed-loader--standalone {
    flex: 0 0 auto;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-game-embed-shell {
    height: min(72vh, 820px);
    min-height: 420px;
    max-height: none;
    margin: 0 0 8px;
    border-radius: 6px;
    overflow: hidden;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-casino-prov-wrap {
    position: sticky;
    top: var(--header-h, 70px);
    z-index: 20;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page > .latest-features,
body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page > .latest-support {
    margin-top: 12px;
}

@media (max-width: 991.98px) and (min-width: 768px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-casino-prov-wrap {
        top: var(--header-h, 70px);
    }
}

@media (max-width: 767.98px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-casino-prov-wrap {
        top: var(--header-h-mobile, 85px);
    }

    body.latest-royal-parity:has(.latest-header-afterlogin:not(.latest-header-game)):not(.latest-embed-route) .latest-casino-lobby-page .latest-casino-prov-wrap {
        top: var(--header-h-mobile-logged, 118px);
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-casino-lobby-page .latest-game-embed-shell {
        height: min(58vh, 640px);
        min-height: 320px;
    }
}

/* Hide Google Translate chrome; language is driven by header select */
.goog-te-gadget,
.goog-te-gadget > div,
.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-menu-value,
.goog-te-menu-frame {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

body.latest-royal-parity {
    top: 0 !important;
}

/* Mobile — prevent horizontal scroll + taller logged-in header for 3-row wallet */
@media (max-width: 767.98px) {
    html:has(body.latest-royal-parity),
    body.latest-royal-parity {
        overflow-x: clip;
        max-width: 100%;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-main {
        overflow-x: clip;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 0;
        padding-bottom: 0;
    }

    body.latest-theme:has(.latest-header-afterlogin:not(.latest-header-game)) {
        --header-h-mobile-logged: 118px;
        padding-top: var(--header-h-mobile-logged, 118px);
    }

    .latest-header-royal.latest-header-afterlogin:not(.latest-header-game) {
        min-height: var(--header-h-mobile-logged, 118px);
    }

    body.latest-royal-parity:has(.latest-header-afterlogin:not(.latest-header-game)):not(.latest-embed-route) #latestSidebar.latest-sidebar {
        top: var(--header-h-mobile-logged, 118px);
        height: calc(100dvh - var(--header-h-mobile-logged, 118px));
        max-height: calc(100dvh - var(--header-h-mobile-logged, 118px));
    }

    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap,
    body.latest-royal-parity .latest-features,
    body.latest-royal-parity .latest-section {
        max-width: 100%;
        box-sizing: border-box;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        padding: 15px 5px;
    }

    body.latest-royal-parity .latest-providers {
        padding: 10px;
        padding-bottom: 15px;
    }

    /* Mobile hero banner — Royal parity (355×181 container, ~351×176 image, 10px below header) */
    body.latest-royal-parity .latest-main > .latest-hero-duo,
    body.latest-royal-parity .latest-main > .latest-hero-wrap {
        width: 100%;
        max-width: 100%;
        height: 181px;
        max-height: 181px;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    body.latest-royal-parity .latest-hero-duo-track,
    body.latest-royal-parity .latest-hero-duo-slide {
        height: 181px !important;
    }

    body.latest-royal-parity .latest-hero-duo-slide {
        flex: 0 0 100% !important;
        min-width: 100%;
        max-width: 100%;
    }

    body.latest-royal-parity .latest-hero-duo-track {
        gap: 0 !important;
    }
}

/* ══ Ralph iter 1 — motion, game cards, sidebar, tablet 1024 (2026-06-13) ══ */

@media (prefers-reduced-motion: no-preference) {
    body.latest-royal-parity .latest-hero-duo-track {
        scroll-behavior: auto;
    }

    body.latest-royal-parity .latest-hero-duo-dot {
        transition:
            background 0.22s ease,
            transform 0.22s ease,
            width 0.22s ease;
    }

    body.latest-royal-parity .latest-hero-duo-dot.is-active {
        transform: scale(1.2);
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab {
        transition:
            background 0.25s ease,
            color 0.25s ease,
            border-color 0.25s ease;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card {
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card:hover {
        transform: translateY(-2px);
    }

    body.latest-royal-parity .latest-section {
        animation: royalSectionIn 0.42s ease both;
    }

    body.latest-royal-parity .latest-section:nth-of-type(2) {
        animation-delay: 0.04s;
    }

    body.latest-royal-parity .latest-section:nth-of-type(3) {
        animation-delay: 0.08s;
    }

    @keyframes royalSectionIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Game cards — royal img_box: #111 fill, 5px radius, hover scale + glow */
body.latest-royal-parity .latest-game-card,
body.latest-royal-parity .latest-casino-game-card {
    position: relative;
    background: #111 !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 5px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.2s ease;
    will-change: transform;
}

body.latest-royal-parity .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-casino-game-card .latest-game-img {
    background: #111;
}

body.latest-royal-parity .latest-game-card .latest-game-img img,
body.latest-royal-parity .latest-casino-game-card .latest-game-img img {
    transition: transform 0.32s ease;
}

@media (prefers-reduced-motion: no-preference) {
    body.latest-royal-parity .latest-game-card:hover,
    body.latest-royal-parity .latest-casino-game-card:hover {
        transform: scale(1.03);
        border-color: var(--royal-red) !important;
        box-shadow:
            0 10px 26px rgba(255, 49, 49, 0.16),
            0 4px 14px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }

    body.latest-royal-parity .latest-game-card:hover .latest-game-img img,
    body.latest-royal-parity .latest-casino-game-card:hover .latest-game-img img {
        transform: scale(1.05);
    }
}

body.latest-royal-parity[data-turbo] .latest-game-card:hover,
body.latest-royal-parity[data-turbo] .latest-casino-game-card:hover {
    border-color: var(--royal-red) !important;
    outline: none !important;
}

/* Sidebar — royal leftbarSec bg + active accent */
body.latest-royal-parity #latestSidebar.latest-sidebar {
    background: var(--royal-panel) !important;
    border-right: 1px solid var(--royal-line) !important;
}

body.latest-royal-parity .latest-sb-list a {
    transition:
        color 0.25s ease,
        background 0.25s ease;
}

@media (min-width: 992px) {
    body.latest-royal-parity .latest-sb-list a {
        position: relative;
    }

    body.latest-royal-parity .latest-sb-list a::after {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 3px;
        height: 0;
        transform: translateY(-50%);
        background: var(--royal-red);
        border-radius: 0 2px 2px 0;
        transition: height 0.22s ease, opacity 0.22s ease;
        opacity: 0;
    }

    body.latest-royal-parity .latest-sb-list a:hover::after,
    body.latest-royal-parity .latest-sb-list a.active::after {
        height: 22px;
        opacity: 1;
    }

    body.latest-royal-parity .latest-sb-list a:hover,
    body.latest-royal-parity .latest-sb-list a.active {
        background: rgba(255, 49, 49, 0.06) !important;
    }

    body.latest-royal-parity .latest-sb-list a:hover span,
    body.latest-royal-parity .latest-sb-list a.active span {
        color: #fff !important;
    }
}

/* Tablet 1024 — center column + 4-col game grid (aura hidden 992–1199) */
@media (min-width: 992px) and (max-width: 1024px) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-main {
        padding: 10px 8px 14px !important;
    }

    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px;
    }

    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        max-width: 100%;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        --royal-features-gap: 15px;
    }
}

@media (min-width: 1025px) and (max-width: 1199.98px) {
    body.latest-royal-parity .latest-popular-grid.displayGames,
    body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ══ Ralph iter 2 — tablet hero 143px, sidebar active, carousel motion (2026-06-14) ══ */

/* Tablet 768–991 — Royal sports_page_banner ~101px */
@media (min-width: 768px) and (max-width: 991.98px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap,
    body.latest-royal-parity .latest-hero-duo-track,
    body.latest-royal-parity .latest-hero-duo-slide {
        height: 101px !important;
        max-height: 101px !important;
        min-height: 101px !important;
    }

    body.latest-royal-parity .latest-hero-duo-slide img {
        height: var(--duo-slide-h, 96px) !important;
        max-height: 101px !important;
        border-radius: 10px;
        object-fit: cover;
    }
}

/* Tablet/desktop 992+ — full-width dual hero (2-up), not compressed sports strip */
@media (min-width: 992px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        height: 228px !important;
        max-height: 228px !important;
        min-height: 228px !important;
    }

    body.latest-royal-parity .latest-hero-duo-track,
    body.latest-royal-parity .latest-hero-duo-slide {
        height: 228px !important;
        max-height: 228px !important;
        min-height: 228px !important;
    }

    body.latest-royal-parity .latest-hero-duo-slide img {
        height: calc(100% - 5px) !important;
        max-height: none !important;
        border-radius: 10px;
        object-fit: cover;
    }
}

/* Sidebar active — royal leftbarSec: red label + inset bar, no tinted fill */
body.latest-royal-parity .latest-sb-list a.active {
    color: #ff3131 !important;
    background: transparent !important;
}

body.latest-royal-parity.latest-theme[data-turbo] .latest-sb-list a.active,
body.latest-royal-parity.latest-theme[data-turbo] .latest-sidebar .latest-sb-list a.active {
    color: #ff3131 !important;
    background: transparent !important;
    box-shadow: inset 3px 0 0 var(--royal-red);
}

@media (min-width: 992px) {
    body.latest-royal-parity .latest-sb-list a.active {
        box-shadow: inset 3px 0 0 var(--royal-red);
    }

    body.latest-royal-parity .latest-sb-list a.active span {
        color: #fff !important;
        font-weight: 600;
    }

    body.latest-royal-parity .latest-sb-list a.active img {
        filter: none;
    }
}

/* Carousel tracks — smooth horizontal scroll + card hover parity */
@media (prefers-reduced-motion: no-preference) {
    body.latest-royal-parity .latest-carousel-track,
    body.latest-royal-parity [data-carousel] {
        scroll-behavior: smooth;
    }

    body.latest-royal-parity .latest-carousel-track .latest-game-card,
    body.latest-royal-parity [data-carousel] .latest-game-card {
        transition:
            transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
            box-shadow 0.28s ease,
            border-color 0.2s ease;
    }

    body.latest-royal-parity .latest-carousel-track .latest-game-card:hover,
    body.latest-royal-parity [data-carousel] .latest-game-card:hover {
        transform: scale(1.03);
        border-color: var(--royal-red) !important;
        box-shadow:
            0 10px 26px rgba(255, 49, 49, 0.16),
            0 4px 14px rgba(0, 0, 0, 0.5);
        z-index: 2;
    }
}

/* ══ Ralph iter 3 — aura rail motion, card hover BG, provider strip (2026-06-14) ══ */

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tabs {
    scroll-snap-type: x mandatory;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab {
    scroll-snap-align: start;
}

@media (prefers-reduced-motion: no-preference) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab {
        transform: translateZ(0);
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab.active {
        transform: scale(1.02);
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab:not(.active):hover {
        background: rgba(255, 255, 255, 0.06) !important;
    }
}

body.latest-royal-parity .latest-game-card:hover,
body.latest-royal-parity .latest-casino-game-card:hover {
    background: #111 !important;
}

body.latest-royal-parity .latest-game-card:hover .latest-game-img,
body.latest-royal-parity .latest-casino-game-card:hover .latest-game-img {
    background: #111 !important;
}

body.latest-royal-parity.latest-embed-route .latest-casino-prov-wrap,
body.latest-royal-parity.latest-embed-route .latest-casino-providers {
    background: #0a0a0a !important;
    border-bottom: 1px solid #222 !important;
    padding: 8px 10px 6px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.latest-royal-parity.latest-embed-route .latest-casino-prov-strip a {
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    border: 1px solid #333 !important;
    color: #e2e8f0 !important;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.latest-royal-parity.latest-embed-route .latest-casino-prov-strip a.active {
    background: var(--royal-red) !important;
    border-color: var(--royal-red) !important;
    color: #fff !important;
}

body.latest-royal-parity.latest-embed-route .latest-casino-prov-strip a:hover:not(.active) {
    border-color: var(--royal-red) !important;
    color: #fff !important;
}

/* ── Parity pass 2 — royalexch666 shell + game tile backgrounds ─────────── */
body.latest-royal-parity:not(.latest-embed-route) .latest-main,
body.latest-royal-parity:not(.latest-embed-route) .latest-shell {
    background: var(--royal-body) !important;
}

body.latest-royal-parity .latest-sidebar,
body.latest-royal-parity #latestSidebar.latest-sidebar {
    background: var(--royal-panel) !important;
}

body.latest-royal-parity .latest-game-card,
body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-popular-grid.displayGames .latest-game-card .latest-game-img img,
body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-carousel-track[data-carousel="popular"] .latest-game-card .latest-game-img img,
body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card .latest-game-img,
body.latest-royal-parity .latest-carousel-track[data-carousel="vivo"] .latest-game-card .latest-game-img img {
    background: transparent !important;
}

/* ══ Parity pass 4 — middle column + aura rail (2026-06-14) ══ */

@media (min-width: 992px) {
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-hero-duo,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-hero-wrap,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-section,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-support,
    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-sports-btns {
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-footer {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab {
    box-sizing: border-box;
    max-height: 39px;
}

@media (prefers-reduced-motion: no-preference) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab.active {
        transform: none;
    }
}

body.latest-royal-parity .latest-feature-card h6,
body.latest-royal-parity .latest-feature-card h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

body.latest-royal-parity .latest-feature-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--royal-text-muted);
    line-height: 1.4;
}

body.latest-royal-parity .latest-feature-card .latest-feature-icon {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card:hover {
    border-color: var(--royal-red);
    transform: none;
    box-shadow: none;
}

body.latest-royal-parity .latest-game-card {
    background: transparent;
    border: 1px solid var(--royal-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.latest-royal-parity .latest-game-card:hover {
    border-color: var(--royal-red);
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.latest-royal-parity .latest-footer-inner {
    padding-left: 0;
    padding-right: 0;
}

body.latest-royal-parity .latest-footer-text,
body.latest-royal-parity .latest-footer-copy {
    color: var(--royal-text-muted);
}

body.latest-royal-parity .latest-footer-capsule {
    background: transparent;
    border: 1px solid var(--royal-border);
}

body.latest-royal-parity .latest-provider-card {
    background: transparent;
    border: 1px solid var(--royal-border);
    box-shadow: none;
}

body.latest-royal-parity .latest-provider-card:hover {
    border-color: var(--royal-red);
    transform: none;
    box-shadow: none;
}

body.latest-royal-parity .latest-hero-duo,
body.latest-royal-parity .latest-hero-wrap {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background: #212121;
    --duo-gap: 2px;
    --duo-slide-w: 237px;
    --duo-slide-h: 117px;
}

body.latest-royal-parity .latest-hero-duo-track {
    gap: var(--duo-gap);
    overflow: hidden;
    scroll-snap-type: none;
    scroll-behavior: auto;
    will-change: transform;
    align-items: flex-start;
    max-width: 100%;
}

body.latest-royal-parity .latest-hero-duo-track.is-duo-animating {
    transition: transform 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    body.latest-royal-parity .latest-hero-duo-track.is-duo-animating {
        transition: none;
    }
}

body.latest-royal-parity .latest-hero-duo-slide {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    box-sizing: border-box;
    display: block;
    background: #212121;
    flex: 0 0 var(--duo-slide-w) !important;
    min-width: var(--duo-slide-w) !important;
    max-width: var(--duo-slide-w) !important;
    scroll-snap-align: none;
}

body.latest-royal-parity .latest-hero-duo-slide img {
    border-radius: 10px;
    width: 100%;
    height: var(--duo-slide-h);
    object-fit: cover;
    object-position: center;
    box-shadow: none;
}

body.latest-royal-parity .latest-hero-duo-slide:hover {
    transform: none;
    box-shadow: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        --duo-gap: 2px;
        --duo-slide-w: 193px;
        --duo-slide-h: 96px;
    }

    body.latest-royal-parity .latest-hero-duo-slide {
        flex: 0 0 var(--duo-slide-w) !important;
        min-width: var(--duo-slide-w) !important;
        max-width: var(--duo-slide-w) !important;
        flex-shrink: 0;
    }
}

@media (min-width: 992px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        container-type: inline-size;
        --duo-gap: 4px;
    }

    body.latest-royal-parity .latest-hero-duo-slide {
        flex: 0 0 calc((100cqw - var(--duo-gap, 4px)) / 2) !important;
        min-width: calc((100cqw - var(--duo-gap, 4px)) / 2) !important;
        max-width: calc((100cqw - var(--duo-gap, 4px)) / 2) !important;
        flex-shrink: 0;
    }

    body.latest-royal-parity .latest-hero-duo-track {
        width: max-content;
        min-width: 100%;
    }
}

@media (min-width: 1440px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        --duo-gap: 0px;
        --duo-slide-w: 450px;
        --duo-slide-h: 223px;
        height: 228px !important;
        max-height: 228px !important;
        min-height: 228px !important;
    }

    body.latest-royal-parity .latest-hero-duo-track {
        height: 228px !important;
    }

    body.latest-royal-parity .latest-hero-duo-slide {
        flex: 0 0 var(--duo-slide-w) !important;
        min-width: var(--duo-slide-w) !important;
        max-width: var(--duo-slide-w) !important;
        height: 228px !important;
    }

    body.latest-royal-parity .latest-hero-duo-slide img {
        height: var(--duo-slide-h) !important;
        max-height: var(--duo-slide-h) !important;
    }
}

@media (max-width: 767.98px) {
    body.latest-royal-parity .latest-footer {
        padding-top: 25px;
        padding-bottom: 16px;
    }
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card,
body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card:hover,
body.latest-royal-parity .latest-feature-card,
body.latest-royal-parity .latest-game-card,
body.latest-royal-parity .latest-casino-game-card {
    cursor: pointer;
}

body.latest-royal-parity:not(.latest-embed-route) .latest-aura-img,
body.latest-royal-parity:not(.latest-embed-route) .latest-aura-img img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tabs {
        scroll-behavior: auto;
    }

    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-card,
    body.latest-royal-parity:not(.latest-embed-route) .latest-aura-tab {
        transition: none !important;
        transform: none;
    }
}

/* ── Legacy web / client / turbo layouts (non-latest master) ── */
body.latest-theme.latest-royal-parity {
    overflow-x: hidden;
    max-width: 100vw;
}

body.latest-theme.latest-royal-parity app-root,
body.latest-theme.latest-royal-parity #root {
    overflow-x: clip;
    max-width: 100%;
}

body.latest-theme.latest-royal-parity .latest-header.latest-header-royal {
    z-index: 10050;
}

body.latest-theme.latest-royal-parity .latest-mobnav {
    z-index: 10060;
}

body.latest-theme.latest-royal-parity .latest-sidebar-overlay.show {
    z-index: 10055;
}

/* Sidebar drawer must sit above overlay so mobile nav links receive taps */
body.latest-theme.latest-royal-parity #latestSidebar.latest-sidebar.open {
    z-index: 10056;
}

body.latest-theme.latest-royal-parity .latest-profile-panel.open,
body.latest-theme.latest-royal-parity .latest-profile-backdrop.show {
    z-index: 10070;
}

body.latest-theme.latest-royal-parity .top_head,
body.latest-theme.latest-royal-parity .spade-header:not(.latest-header),
body.latest-theme.latest-royal-parity .header.beforeheader,
body.latest-theme.latest-royal-parity header.spade-header-custom {
    display: none !important;
}

@media (max-width: 767.98px) {
    body.latest-theme.latest-royal-parity.latest-header-afterlogin,
    body.latest-theme.latest-royal-parity:has(.latest-header-afterlogin) {
        padding-top: var(--header-h-mobile-logged, 118px);
    }

    body.latest-theme.latest-royal-parity .latest-balance-amount,
    body.latest-theme.latest-royal-parity .latest-bal-btn {
        min-height: 35px;
        height: 35px;
        max-height: 35px;
    }

    body.latest-theme.latest-royal-parity .latest-header-tools-row {
        max-width: 100%;
        overflow: visible;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
    }

    body.latest-theme.latest-royal-parity .latest-header-tools-row .latest-searchbar {
        min-width: 0;
        flex: 1 1 auto;
        width: auto;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        border-radius: 20px;
        background: #171717;
        border: 0.8px solid #2b2b2b;
        color: #fff;
        justify-content: flex-start;
    }

    body.latest-theme.latest-royal-parity .latest-header-tools-row .latest-searchbar i {
        color: #fff;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    body.latest-theme.latest-royal-parity .latest-header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (min-width: 1200px) {
    body.latest-theme.latest-royal-parity .latest-header-inner {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 1440px) {
    body.latest-theme.latest-royal-parity .latest-header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ── Hero duo final overrides — royalexch666 slick (375: 1-up, 768+: equal multi-slide, 1440: 2-up) ── */
body.latest-royal-parity .latest-hero-duo-track {
    overflow-x: hidden;
    scroll-snap-type: none !important;
}

/* Desktop/tablet: viewport shows exactly 2 banners side-by-side in the hero column */
@media (min-width: 768px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        container-type: inline-size;
    }

    body.latest-royal-parity .latest-hero-duo-slide {
        flex: 0 0 calc((100cqw - var(--duo-gap, 2px)) / 2) !important;
        min-width: calc((100cqw - var(--duo-gap, 2px)) / 2) !important;
        max-width: calc((100cqw - var(--duo-gap, 2px)) / 2) !important;
        flex-shrink: 0;
    }

    body.latest-royal-parity .latest-hero-duo-track {
        width: max-content;
        min-width: 100%;
    }
}

@media (max-width: 767.98px) {
    body.latest-royal-parity .latest-hero-duo,
    body.latest-royal-parity .latest-hero-wrap {
        --duo-gap: 0px;
    }

    body.latest-royal-parity .latest-hero-duo-slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 181px !important;
        flex-shrink: 0;
    }

    body.latest-royal-parity .latest-hero-duo-track {
        gap: 0 !important;
    }

    body.latest-royal-parity .latest-hero-duo-slide img {
        height: 176px !important;
    }

    /* Mobile carousel: scrollLeft positioning — translate3d on track clips banner paint */
    body.latest-royal-parity .latest-hero-duo-slide {
        position: relative;
    }

    body.latest-royal-parity .latest-hero-duo-track {
        transform: none !important;
        will-change: auto;
        overflow-x: hidden;
        scroll-behavior: auto;
    }
}

/* ── Desktop layout fixes (2026-06-22): standard header logo + centered features row ── */
@media (min-width: 992px) {
    body.latest-theme.latest-royal-parity:not(.latest-embed-route) .latest-header-royal .latest-header-inner {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 16px;
    }

    body.latest-theme.latest-royal-parity:not(.latest-embed-route) .latest-header-royal .latest-logo-toggle,
    body.latest-theme.latest-royal-parity:not(.latest-embed-route) .latest-header-royal .latest-logo {
        margin-left: 0;
        padding-left: 0;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features {
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    body.latest-royal-parity:not(.latest-embed-route):not(.latest-account-route) .latest-main > .latest-features > .latest-feature-card {
        justify-content: center;
    }
}
