/* nexus-alpha-exclusive component classes, split out of app/globals.css so they
   don't ship (or read as "mixed in") for the other 4 variations. Loaded via
   <link> only when APPLICATION_SITE_VARIATION=nexus-alpha, same mechanism as
   the per-variation theme CSS in public/themes/<variation>/. See
   scripts/copy-themes.mjs and core/layout/getServerLayoutData.ts. */

/* Topbar (utility bar above the nav) — verbatim from CHM's desktop-layout.css
   .topbar-container block, kept as real CSS classes (not Tailwind utilities) so it's a
   byte-for-byte port instead of a hand-translated approximation. */
.topbar-container {
    background: var(--topbar-cntr-bg);
    padding: 8px 0px;
    font-size: 14px;
    line-height: 21px;
}

.topbar-container .row {
    display: flex;
    align-items: center;
    margin-left: -12px;
    margin-right: -12px;
}

.topbar-left-container {
    width: 46%;
}

.topbar-right-container {
    width: 54%;
}

.topbar-left-section {
    display: flex;
    flex-wrap: nowrap;
}

.topbar-left-section .topbar-item {
    color: var(--topbar-left-section-item-color);
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-left-section .topbar-item + .topbar-item {
    margin-left: 5px;
    border-left: 1px dotted #ccc;
    padding-left: 5px;
}

.topbar-left-section .topbar-item a {
    color: inherit;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.topbar-left-section .topbar-item a:hover {
    color: var(--topbar-left-section-item-a-hover-color);
}

.topbar-left-section .topbar-item a.telegram-btn {
    padding: 5px 10px;
}

.topbar-left-section .live-chat {
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    line-height: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.topbar-left-section .topbar-item a.download-apk-btn {
    color: #fff;
    padding: 5px;
}

.topbar-left-section .topbar-item a.telegram-btn,
.topbar-left-section .topbar-item a.telegram-btn:hover {
    color: #fff;
    background-image: linear-gradient(to bottom, #0BB4FF, #036CA0);
}

.topbar-left-section .language-selector-container {
    position: relative;
}

/* Login panel (topbar-right-container content) — byte-for-byte from CHM's
   desktop-login-panel.css, its own separate class/color system from the shared
   .btn-login/.btn-register used elsewhere on the site (register CTAs etc. are a
   different CHM class, .standard-secondary-button, with its own theming). */
.login-panel {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    font-size: 12px;
}

.login-panel .login-panel-item + .login-panel-item {
    margin-left: 10px;
}

.login-panel .login-button,
.login-panel .register-button {
    border-radius: 15px;
    display: block;
    padding: 3px 10px;
    text-transform: uppercase;
    line-height: 22px;
    border: none;
    width: 90px;
    text-align: center;
    text-decoration: none;
    outline: none;
}

.login-panel .login-button {
    /* ponytail: fallback pinned here because Turbopack's dev-mode CSS module compiler has
       been observed to intermittently drop exactly one custom-property declaration per
       recompile (confirmed via CDP - a different property goes empty each time a nearby
       line is edited, same var resolves fine after an unrelated edit) - var()'s built-in
       fallback keeps this specific button correct regardless of that dev-only flake. */
    background: var(--login-panel-login-btn-bg, linear-gradient(to bottom, #6a6a6a 0%, #464646 100%));
    color: var(--login-panel-login-btn-color);
    border: 1px solid var(--login-panel-login-btn-border);
}

.login-panel .login-button:hover {
    background: var(--login-panel-login-btn-hover-bg);
    color: var(--login-panel-login-btn-hover-color);
}

.login-panel .register-button {
    background: var(--login-panel-register-btn-bg);
    color: var(--login-panel-register-btn-color);
    border: 1px solid var(--login-panel-register-btn-border);
}

.login-panel .register-button:hover {
    background: var(--login-panel-register-btn-hover-bg);
    color: var(--login-panel-register-btn-hover-color);
    text-shadow: var(--login-panel-register-btn-hover-ts);
}

/* Filled primary CTA on top of .register-button (mobile Register CTA, FormSubmitButton,
   Register pre-modal "Create New Account"). Themes opt in via --register-cta-*; otherwise
   it keeps the shared .register-button look. */
.register-button.register-cta {
    background: var(--register-cta-bg, var(--login-panel-register-btn-bg));
}

.register-button.register-cta:hover {
    background: var(--register-cta-hover-bg, var(--login-panel-register-btn-hover-bg));
}

/* Mobile header bottom stroke (globals' .site-header only draws --site-header-borderbtm
   from md up). Themes opt in via --mobile-site-header-borderbtm; default stays none. */
@media (max-width: 767.98px) {
    .site-header {
        border-bottom: var(--mobile-site-header-borderbtm, none);
    }
}

/* Home Download APK button (mobile Download / desktop Install Guide). Themes opt in via
   --download-apk-btn-bg*; otherwise it keeps the .btn-register gradient. */
.btn-register.download-apk-btn {
    background-image: var(--download-apk-btn-bg, linear-gradient(to bottom, var(--btn-register-from), var(--btn-register-to)));
}

.btn-register.download-apk-btn:hover {
    background-image: var(--download-apk-btn-hover-bg, linear-gradient(to bottom, var(--btn-register-from-hover), var(--btn-register-to-hover)));
}

/* Game card maintenance overlay (CHM's [data-maintenance-status="true"]:after) */
.game-maintenance-overlay {
    background-color: #000000b2;
}

.game-maintenance-badge {
    font-size: 14px;
    font-weight: normal;
    color: #fff;
    padding: 0 10px;
    background-color: #808080;
    border-radius: 5px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-apk-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;

    & .title {
        color: var(--download-apk-details-title-color);
        font-size: 22px;
        font-weight: 600;
        line-height: 26.27px;
        margin-bottom: 8px;
    }

    & .description {
        color: var(--download-apk-details-desc-color);
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        margin-bottom: 32px;
        text-align: center;
    }

    & .download-buttons-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    & .btn {
        display: block;
        color: var(--download-apk-details-btn-color);
        font-size: 14px;
        font-weight: 500;
        line-height: 16.51px;
        padding: 9px 17px;
        border-radius: 100px;
        border: none;
        width: 240px;
        height: 40px;
        align-content: center;
        text-align: center;
        text-decoration: none;
        background-image: var(--download-apk-details-btn-bg);
        cursor: pointer;

        &.back {
            color: var(--download-apk-details-btn-back-color);
            background: var(--download-apk-details-btn-back-bg);
            box-shadow: var(--download-apk-details-btn-back-bs);
        }
    }
}

@media (max-width: 991.98px) {
    .download-apk-details {
        width: auto;

        & .title {
            font-size: 20px;
            line-height: 23.88px;
        }

        & .description {
            font-size: 14px;
            line-height: 16.8px;
        }
    }
}

/* CHM's /download-lite-apps PWA install page (Views/Home DownloadLiteApps.cshtml per
   brand, plus the phone-mockup half of download-apk-responsive.css, lines 254 onward
   — the base design-system tokens below are namespaced pwa- here (CHM defines them
   bare on :root) purely to avoid colliding with other generic gold, tx, sp, r tokens
   elsewhere in this much larger app; values are unchanged). Brand colors for the
   header, platform background, and install button come from the pwa- vars added per
   theme file (same pattern as the download-apk- vars); everything else (ios-guide
   dialog, features list, badges) uses this fixed dark palette for every theme except
   a light-mode override below for the 4 light themes — CHM itself also color-shifts
   the ios-guide dialog for 7 of the dark themes to match their accent color, which
   this skips (falls back to this same dark palette for all non-light themes) as a
   deliberate simplification: it's a rarely-seen secondary modal, still fully legible,
   not worth 7 more var sets. */
:root {
    --pwa-gold: #FFC93C;
    --pwa-gold-bright: #FFE08A;
    --pwa-ink-800: #27272d;
    --pwa-ink-850: #27272d;
    --pwa-ink-950: #07080F;
    --pwa-line: rgba(255, 255, 255, 0.09);
    --pwa-line-2: rgba(255, 255, 255, 0.16);
    --pwa-s88-blue-bright: #3A47FF;
    --pwa-tx: #FFFFFF;
    --pwa-tx-dim: #5C617F;
    --pwa-tx-mut: #8186A8;
    --pwa-tx-soft: #C3C7DE;
    --pwa-r-lg: 10px;
    --pwa-r-md: 8px;
    --pwa-r-pill: 999px;
    --pwa-r-2xl: 20px;
    --pwa-r-xl: 14px;
}

.download-app-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    overflow: auto;
}

.platform-view {
    display: none;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--pwa-platform-view-bg, #07080f);
    background-image: var(--pwa-platform-view-bg-image, radial-gradient(120% 80% at 50% 0%, #401f4b 0%, #130019 100%));
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    &.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.platform-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.phone-mockup.s88-phone {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    background-color: transparent !important;
    display: flex !important;
    flex-direction: column !important;

    & > div:first-child {
        flex: 0 0 auto !important;
    }

    & > div:last-child {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 18px;
    background-color: var(--pwa-phone-header-bg, #401f4b);
    color: var(--pwa-phone-header-color, var(--pwa-tx));
}

.logo-pwa img {
    width: auto;
    height: 45px;
}

.phone-display {
    display: flex;
    flex: 0.5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 24px 16px 22px;
    position: relative;
    overflow: hidden;
    color: var(--pwa-phone-header-color, var(--pwa-tx));
    text-align: center;
}

.phone-app-icon img {
    max-width: 120px;
    max-height: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.platform-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background-color: transparent;
    color: var(--pwa-tx);
}

.content-section {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    color: var(--pwa-tx);
    text-align: center;
}

.install-title {
    color: var(--pwa-title-color, var(--pwa-tx));
    font-size: 24px;
    font-weight: 800;
    line-height: 27.84px;
    margin-bottom: 9px;
    position: relative;
    text-align: center;
}

.brand-name {
    color: var(--pwa-title-color, var(--pwa-tx));
    font-size: 24px;
    font-weight: 800;
    line-height: 27.84px;
    text-align: center;
}

.lite-badge {
    color: var(--pwa-gold);
    font-size: 24px;
    font-weight: 800;
    line-height: 27.84px;
    text-align: center;
}

.install-description {
    width: 100%;
    max-width: 320px;
    margin: 0 11px 20px;
    color: var(--pwa-muted-text-color, var(--pwa-tx-soft));
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20.925px;
    position: relative;
    text-align: center;
}

.lightning-icon {
    display: inline-flex;
    align-items: center;
    width: 16px;
    height: 16px;
    color: var(--pwa-gold-bright);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20.925px;
    vertical-align: -3px;
}

.download_apps_lite_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    padding: 12px 16px;
    position: relative;
    border-radius: var(--pwa-r-xl);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    border: none;
    background: var(--pwa-lite-button-bg);
    box-shadow: var(--pwa-lite-button-shadow);
    -webkit-tap-highlight-color: transparent;

    &:active {
        opacity: 0.95;
        transform: scale(0.98);
    }

    &:disabled {
        cursor: default;
        opacity: 0.7;
    }
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 330px;
    margin: 18px auto;
    position: relative;
    color: var(--pwa-tx);
    text-align: left;
    padding: 0 16px;
    box-sizing: border-box;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    color: var(--pwa-tx);
}

.feature-checkmark {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: var(--pwa-r-pill);
    background-color: rgb(39, 208, 122);
    box-shadow: 0 2px 6px -2px rgba(39, 208, 122, 0.6);
    color: rgb(12, 31, 20);
    flex-shrink: 0;
}

.feature-text {
    color: var(--pwa-muted-text-color, var(--pwa-tx-soft));
    font-size: 13px;
    font-weight: 400;
    line-height: 18.2px;
    text-align: left;

    & strong {
        color: var(--pwa-title-color, var(--pwa-tx));
        font-weight: 700;
    }
}

.tagline {
    display: block;
    max-width: 320px;
    margin: 12px auto 16px;
    position: relative;
    color: var(--pwa-tagline-color, var(--pwa-gold-bright));
    font-size: 12px;
    font-weight: 700;
    line-height: 17.04px;
    text-align: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 12px;
    position: relative;
    color: var(--pwa-tx-dim);
    font-size: 11.5px;
    font-weight: 400;
    text-align: center;
}

.badge-text {
    color: var(--pwa-badge-color, var(--pwa-tx-mut));
    font-size: 11.5px;
    font-weight: 400;
    text-align: center;
}

.success-message {
    display: none;
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 10001;
    background: #e8fff0;
    border: 1px solid #9be6b4;
    border-radius: 12px;
    padding: 1rem;
    font: 500 0.85rem/1.5 Poppins, sans-serif;
    color: #1a7a3a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    &.show {
        display: block;
    }
}

.ios-guide-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));

    &.open {
        display: flex;
    }
}

body.ios-guide-open {
    overflow: hidden;
}

.ios-guide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 15, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ios-guide-dialog {
    position: relative;
    width: min(calc(100% - 32px), 360px);
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px 16px;
    border: 1px solid var(--pwa-line-2);
    border-radius: var(--pwa-r-2xl);
    background: var(--pwa-ink-850);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pwa-tx);
}

.ios-guide-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--pwa-line);
    border-radius: var(--pwa-r-pill);
    background: var(--pwa-ink-800);
    color: var(--pwa-tx-soft);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    &:active {
        opacity: 0.8;
    }
}

.ios-guide-title {
    margin: 0 0 8px;
    color: var(--pwa-tx);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.ios-guide-gold {
    color: var(--pwa-gold);
}

.ios-guide-subtitle {
    margin: 0 0 16px;
    color: var(--pwa-tx-mut);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.ios-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ios-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--pwa-line);
    border-radius: var(--pwa-r-md);
    background: rgba(255, 255, 255, 0.03);
}

.ios-guide-num {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--pwa-r-pill);
    background: var(--pwa-gold);
    color: var(--pwa-ink-950);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

.ios-guide-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--pwa-r-lg);
    background: rgba(42, 53, 240, 0.18);
    color: var(--pwa-s88-blue-bright);
    margin-top: 2px;
}

.ios-guide-text {
    flex: 1;
    color: var(--pwa-tx-soft);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    margin-top: 4px;

    & strong {
        color: var(--pwa-tx);
        font-weight: 700;
    }
}

/* CHM color-shifts these for 4 light themes only (dark palette above stays
   correct/legible for every other theme, including ones with no explicit
   override in CHM's own source - see file-level comment above). */
html.theme-nexus-alpha-light-blue .ios-guide-dialog,
html.theme-nexus-alpha-light-cyan .ios-guide-dialog,
html.theme-nexus-alpha-light-gold .ios-guide-dialog,
html.theme-nexus-alpha-red-white .ios-guide-dialog {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #292929;
}

html.theme-nexus-alpha-light-blue .ios-guide-title,
html.theme-nexus-alpha-light-cyan .ios-guide-title,
html.theme-nexus-alpha-light-gold .ios-guide-title,
html.theme-nexus-alpha-red-white .ios-guide-title {
    color: #292929;
}

html.theme-nexus-alpha-light-blue .ios-guide-subtitle,
html.theme-nexus-alpha-light-cyan .ios-guide-subtitle,
html.theme-nexus-alpha-light-gold .ios-guide-subtitle,
html.theme-nexus-alpha-red-white .ios-guide-subtitle {
    color: #666666;
}

html.theme-nexus-alpha-light-blue .ios-guide-text,
html.theme-nexus-alpha-light-cyan .ios-guide-text,
html.theme-nexus-alpha-light-gold .ios-guide-text,
html.theme-nexus-alpha-red-white .ios-guide-text {
    color: #666666;

    & strong {
        color: #292929;
    }
}

html.theme-nexus-alpha-light-blue .ios-guide-close,
html.theme-nexus-alpha-light-cyan .ios-guide-close,
html.theme-nexus-alpha-light-gold .ios-guide-close,
html.theme-nexus-alpha-red-white .ios-guide-close {
    background: #e8e8e8;
    border-color: #d0d0d0;
    color: #666666;
}

html.theme-nexus-alpha-light-blue .ios-guide-step,
html.theme-nexus-alpha-light-cyan .ios-guide-step,
html.theme-nexus-alpha-light-gold .ios-guide-step,
html.theme-nexus-alpha-red-white .ios-guide-step {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

@media (max-width: 480px) {
    .content-section {
        padding: 16px 12px;
    }

    .install-title {
        font-size: 22px;
    }

    .install-description {
        font-size: 13px;
    }

    .features-container {
        padding: 0 12px;
        gap: 8px;
    }

    .feature-item {
        gap: 8px;
    }

    .feature-text {
        font-size: 12px;
        line-height: 17px;
    }
}

/* ---- Header game-list dropdown - CHM Content/NexusAlpha/desktop-layout.css `.top-menu .game-list` (1:1) ---- */
.header-game-list {
    border-top: var(--top-menu-game-list-btop, 4px solid #151515);
    background-color: var(--top-menu-game-list-bg, rgba(0, 0, 0, 0.90));
    border-bottom: var(--top-menu-game-list-bbot, 10px solid #242424);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 10px 0 20px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.header-game-list-item {
    flex-basis: 25%;
    display: inline-block;
    padding: 0 10px;
    margin: 3px 0;
}

.header-game-list-item > a {
    display: block;
    width: 100%;
    padding: 0;
    padding-top: calc(123 / 271 * 100%);
    position: relative;
    aspect-ratio: 271 / 123;
    background: none;
    border: 0;
    cursor: pointer;
}

.header-game-list-item:hover > a {
    transform: scale(105%);
    transition: transform .25s ease;
}

.header-game-list-item > a .background {
    background: var(--top-menu-game-list-li-a-background-bg, linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(151, 126, 49, 0.71) 99.99%));
    border-radius: 70px;
    border: var(--top-menu-game-list-li-a-background-border, 1px solid #C99D01);
    position: absolute;
    top: 18%;
    bottom: 0;
    left: 0;
    right: 0;
}

.header-game-list-item > a .foreground {
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: absolute;
    top: -10px;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom-left-radius: 55px;
    border-bottom-right-radius: 55px;
    background-position: top;
}

.header-game-list-item > a[data-maintenance-status="true"] {
    transform: none;
    transition: none;
    pointer-events: none;
    cursor: not-allowed;
}

.header-game-list-item > a[data-maintenance-status="true"]::after {
    content: var(--maintenance-text, '') " ";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    font-size: 20px;
    color: #fff;
    border-radius: 5px;
    width: fit-content;
    background: #808080;
    padding: 0 10px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-game-list-item > a[data-maintenance-status="true"] .background {
    filter: grayscale(1) brightness(50%);
    border-color: grey;
}

.header-game-list-item > a[data-maintenance-status="true"] .foreground {
    filter: grayscale(1) brightness(0.5);
}

.header-game-list-item > a .background .floating-icon {
    position: absolute;
    top: -12px;
    right: 0;
    left: 100%;
    width: auto;
    max-width: calc(100% - 8px);
    height: 22px;
    background: transparent;
    transform: translateX(calc(-100% + -8px));
    z-index: 1;
}
