:root {
    --bg: #07090f;
    --bg-2: #0c111c;
    --panel: rgba(18, 24, 38, 0.7);
    --panel-solid: #121826;
    --border: rgba(120, 160, 255, 0.18);
    --text: #e6ecff;
    --muted: #8a96b3;
    --accent: #5cf2ff;
    --accent-2: #7c5cff;
    --accent-3: #ff5cae;
    --good: #4ade80;
    --warn: #fbbf24;
    --bad: #ef4444;
    --radius: 14px;
    --shadow: 0 20px 60px -20px rgba(92, 242, 255, 0.25);
}


@property --hero-glow-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(60% 50% at 10% -10%, rgba(124, 92, 255, 0.25), transparent 60%),
        radial-gradient(50% 40% at 100% 0%, rgba(92, 242, 255, 0.18), transparent 60%),
        radial-gradient(40% 40% at 50% 110%, rgba(255, 92, 174, 0.15), transparent 60%),
        linear-gradient(180deg, #07090f 0%, #0a0d18 100%);
    z-index: -2;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    
    background-image:
        linear-gradient(rgba(120, 160, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 255, 0.11) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
    mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, black 0%, rgba(0, 0, 0, 0.55) 55%, transparent 88%);
    z-index: -1;
    pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: 18px; }

p { color: var(--muted); margin: 0 0 12px; }

.container { width: min(1200px, 100% - 32px); margin: 0 auto; }

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(7, 9, 15, 0.65);
    border-bottom: 1px solid var(--border);
}
@keyframes gr-promo-sheen {
    0% {
        background-position: -60% center;
        opacity: 0.55;
    }
    55% {
        opacity: 0.85;
    }
    100% {
        background-position: 160% center;
        opacity: 0.55;
    }
}

@keyframes gr-x2-badge-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.12) inset,
            0 6px 18px rgba(250, 204, 21, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 8px 26px rgba(52, 211, 153, 0.45);
    }
}

@keyframes gr-topup-x2-aurora {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translate(4%, -3%) scale(1.03);
    }
}

.site-broadcast-host {
    position: relative;
    z-index: 40;
    padding: 12px 0 14px;
}
.site-broadcast {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding-left: 12px;
    background:
        linear-gradient(100deg, rgba(124, 92, 255, 0.2), rgba(92, 242, 255, 0.14) 45%, rgba(255, 92, 174, 0.08)),
        linear-gradient(180deg, rgba(251, 191, 36, 0.14) 0%, transparent 18px);
    border: 1px solid rgba(120, 160, 255, 0.22);
    border-top: 2px solid rgba(251, 191, 36, 0.5);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.site-broadcast__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 12px 18px 12px 12px;
}
.site-broadcast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(7, 9, 15, 0.5);
    border: 1px solid rgba(120, 160, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-broadcast__icon svg,
.site-broadcast__svg {
    display: block;
    width: 22px;
    height: 22px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(92, 242, 255, 0.4));
}
.site-broadcast.site-broadcast--promo {
    background:
        radial-gradient(ellipse 120% 80% at 15% 20%, rgba(250, 204, 21, 0.22), transparent 55%),
        radial-gradient(ellipse 90% 70% at 88% 75%, rgba(168, 85, 247, 0.18), transparent 50%),
        linear-gradient(125deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.2) 38%, rgba(124, 92, 255, 0.22) 78%, rgba(236, 72, 153, 0.12) 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-top: 2px solid rgba(250, 204, 21, 0.85);
    box-shadow:
        0 14px 48px rgba(0, 0, 0, 0.42),
        0 0 56px rgba(34, 197, 94, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.site-broadcast__sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.site-broadcast__sheen::after {
    content: '';
    position: absolute;
    inset: -40% -30%;
    background: linear-gradient(
        115deg,
        transparent 37%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 62%
    );
    background-size: 220% 100%;
    animation: gr-promo-sheen 4.8s ease-in-out infinite;
}

.site-broadcast__inner--promo {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 14px 18px 14px 14px;
}

.site-broadcast__icon--promo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(34, 197, 94, 0.25));
    border: 1px solid rgba(253, 224, 71, 0.45);
    box-shadow:
        0 0 20px rgba(250, 204, 21, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.site-broadcast__promo-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 2px 12px rgba(254, 240, 138, 0.65));
}

.site-broadcast__promo-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.site-broadcast__promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 3px 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #0f172a;
    border-radius: 999px;
    background: linear-gradient(180deg, #fef08a 0%, #fcd34d 45%, #f59e0b 100%);
    animation: gr-x2-badge-pulse 3s ease-in-out infinite;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-broadcast__promo-title-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(92deg, #ecfdf5, #ccfbf1, #fef08a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}

.site-broadcast__promo-sparks {
    display: inline-flex;
    gap: 3px;
    margin-left: 2px;
}

.site-broadcast__promo-sparks span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fef08a;
    box-shadow: 0 0 8px #fde047;
    animation: gr-x2-badge-pulse 2.6s ease-in-out infinite;
}

.site-broadcast__promo-sparks span + span {
    animation-delay: -0.4s;
}

.site-broadcast__text--promo {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.52 !important;
    color: rgba(241, 245, 249, 0.96) !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

.site-broadcast__promo-report {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(250, 204, 21, 0.22) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.site-broadcast__promo-report__row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: rgba(241, 245, 249, 0.98) !important;
}

.site-broadcast__countdown--live {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.04em !important;
    color: #fef08a !important;
    text-shadow: 0 0 18px rgba(250, 204, 21, 0.35) !important;
}

.site-broadcast__promo-report__hint {
    margin-top: 8px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: rgba(226, 232, 240, 0.78) !important;
}

.site-broadcast__promo-report__hint time {
    font-weight: 600 !important;
    color: rgba(254, 240, 138, 0.95) !important;
}

/* Кабинет: отчёт по сроку глобальной акции ×2 */
.gr-topup-promo-timer {
    position: relative;
    margin-bottom: 18px !important;
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.35) !important;
    background: linear-gradient(125deg, rgba(22, 101, 52, 0.12), rgba(30, 27, 75, 0.2)), var(--panel-solid) !important;
}

.gr-topup-promo-timer__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.gr-topup-promo-timer__clock {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fde047;
    margin: 4px 0 8px;
}

.gr-topup-promo-timer__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.gr-topup-promo-timer__hint time {
    font-weight: 600;
    color: var(--text);
}

/* Кабинет: компактная полоса акции ×2 под формой пополнения */
.gr-topup-promo-bundle {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(250, 204, 21, 0.26) !important;
    background: linear-gradient(
            118deg,
            rgba(22, 101, 52, 0.07),
            rgba(30, 27, 75, 0.1)),
        var(--panel-solid) !important;
}

.gr-topup-promo-bundle__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gr-topup-promo-bundle__tag {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #0f172a;
    border-radius: 8px;
    background: linear-gradient(160deg, #fef9c3, #fde047 45%, #eab308);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.gr-topup-promo-bundle__title {
    font-size: 0.9rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.25;
}

.gr-topup-promo-bundle__timer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 0 0 6px;
}

.gr-topup-promo-bundle__timer-label {
    margin: 0 !important;
    font-size: 12.5px !important;
}

.gr-topup-promo-bundle__clock {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fde047;
    line-height: 1.2;
}

.gr-topup-promo-bundle__rule {
    margin: 6px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: var(--text);
}

.gr-topup-promo-bundle__rule--muted {
    color: var(--muted) !important;
}

@media (max-width: 520px) {
    .site-broadcast__promo-report__row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .gr-topup-promo-bundle__timer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.gr-topup-x2-notice {
    position: relative;
    margin-bottom: 18px !important;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, 0.4) !important;
    border-top: 2px solid rgba(250, 204, 21, 0.75) !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(34, 197, 94, 0.08);
    background:
        linear-gradient(138deg, rgba(22, 101, 52, 0.16), transparent 58%),
        linear-gradient(300deg, rgba(91, 33, 182, 0.1), transparent 50%),
        var(--panel-solid);
}

.gr-topup-x2-notice__aurora {
    position: absolute;
    inset: -50%;
    opacity: 0.65;
    background:
        radial-gradient(circle at 20% 30%, rgba(250, 204, 21, 0.2), transparent 42%),
        radial-gradient(circle at 80% 60%, rgba(124, 92, 255, 0.18), transparent 45%);
    animation: gr-topup-x2-aurora 11s ease-in-out infinite;
    pointer-events: none;
}

.gr-topup-x2-notice .gr-topup-x2-notice__row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.gr-topup-x2-notice__badge-wrap {
    flex-shrink: 0;
}

.gr-topup-x2-notice__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #0f172a;
    background: linear-gradient(160deg, #fef9c3 0%, #fde047 40%, #f59e0b 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.25) inset,
        0 10px 28px rgba(245, 158, 11, 0.35);
    animation: gr-x2-badge-pulse 3.2s ease-in-out infinite;
}

.gr-topup-x2-notice__title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(95deg, #d1fae5, #a7f3d0, #fef08a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gr-topup-x2-notice__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: var(--text);
}

/* Модалка оплаты: превью бонуса */
.gr-topup-x2-preview {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) !important;
    border-color: rgba(52, 211, 153, 0.45) !important;
    background:
        radial-gradient(ellipse 110% 80% at 0% 50%, rgba(34, 197, 94, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 60% at 100% 80%, rgba(124, 92, 255, 0.12), transparent 50%) !important;
}

.gr-topup-x2-preview__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gr-topup-x2-preview__shine::after {
    content: '';
    position: absolute;
    inset: -35%;
    background: linear-gradient(
        110deg,
        transparent 36%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 62%
    );
    background-size: 200% 100%;
    animation: gr-promo-sheen 5.4s ease-in-out infinite;
}

.gr-topup-x2-preview__row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.gr-topup-x2-preview__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    border-radius: 12px;
    background: linear-gradient(160deg, #ecfccb, #a3e635 45%, #65a30d);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.gr-topup-x2-preview__line {
    font-size: 15px;
    margin-bottom: 6px;
}

.gr-topup-x2-preview__sum {
    font-size: 18px;
    font-weight: 800;
    color: var(--good);
}

.gr-topup-x2-preview__sub {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.site-broadcast__text {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 0;
    align-self: center;
}

.gr-maintenance-banner {
    position: relative;
    z-index: 50;
    padding: 12px 0;
    background: linear-gradient(90deg, rgba(180, 60, 60, 0.22), rgba(255, 120, 80, 0.12));
    border-bottom: 1px solid rgba(255, 140, 120, 0.35);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}
.gr-maintenance-banner__inner {
    text-align: center;
}
.gr-maintenance-banner__inner strong {
    color: #ffb4a8;
    margin-right: 6px;
}
.gr-maintenance-banner__tg {
    margin-top: 10px;
}

.maintenance-page {
    min-height: 100vh;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 92, 255, 0.12), transparent);
}
.maintenance-page__main {
    padding: 48px 16px 32px;
}
.maintenance-page__card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 24px 24px;
}
.maintenance-page__title {
    margin: 0 0 16px;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}
.maintenance-page__lead {
    margin: 0 0 12px;
    color: var(--text);
    line-height: 1.55;
    white-space: pre-wrap;
}
.maintenance-page__sub {
    margin: 0 0 18px;
    max-width: 42em;
    margin-left: auto;
    margin-right: auto;
}
.maintenance-page__actions .btn {
    margin-top: 4px;
}
.maintenance-page__footer {
    margin-top: 22px;
    margin-bottom: 0;
}

.nav-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
    font-weight: 800; font-size: 20px; color: #fff;
    letter-spacing: 0.04em; text-transform: uppercase;
}
.brand-logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
    display: grid; place-items: center;
    box-shadow: 0 6px 22px rgba(124, 92, 255, 0.45);
    font-size: 18px;
}

.nav-trail {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.nav-scroll {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}
.nav-scroll-spacer {
    flex: 1 1 0;
    min-width: 0;
}
.nav-scroll-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nav-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.nav-aside {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(120, 160, 255, 0.22);
}
.nav-scroll a,
.nav-scroll button,
.nav-aside a,
.nav-aside button {
    color: var(--text); padding: 8px 14px; border-radius: 10px;
    background: transparent; border: 1px solid transparent; cursor: pointer; font: inherit;
    transition: 0.2s;
}
.nav-scroll a.nav-link,
.nav-scroll button.nav-link,
.nav-aside a.nav-link,
.nav-aside button.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.nav-scroll .nav-icon,
.nav-aside .nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(230, 236, 255, 0.88);
}
.nav-scroll .nav-icon--sm,
.nav-aside .nav-icon--sm {
    width: 18px;
    height: 18px;
}
.nav-scroll .nav-icon--catalog,
.nav-aside .nav-icon--catalog {
    display: block;
}
.nav-scroll .nav-link-label,
.nav-aside .nav-link-label {
    white-space: nowrap;
}
.nav-scroll a.nav-link:hover .nav-icon,
.nav-scroll button.nav-link:hover .nav-icon,
.nav-scroll a.nav-link.active .nav-icon,
.nav-scroll button.nav-link.active .nav-icon,
.nav-aside a.nav-link:hover .nav-icon,
.nav-aside button.nav-link:hover .nav-icon,
.nav-aside a.nav-link.active .nav-icon,
.nav-aside button.nav-link.active .nav-icon {
    color: #fff;
}
.nav-scroll a.btn.nav-reg,
.nav-aside a.btn.nav-reg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* Иначе .nav-aside .nav-icon перебивает цвет кнопки — текст тёмный, иконка остаётся белой */
.nav-scroll a.btn.nav-reg .nav-icon,
.nav-aside a.btn.nav-reg .nav-icon {
    color: inherit;
}

.nav-link--logout .nav-loyalty-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin: 0 2px 0 0;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
    user-select: none;
}
.nav-link--logout .nav-loyalty-star {
    display: inline-block;
}
.nav-link--logout .nav-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px 0 0;
    flex-shrink: 0;
    line-height: 0;
    vertical-align: middle;
}
.nav-link--logout .nav-profile-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.nav-scroll a.nav-link:hover,
.nav-scroll button.nav-link:hover,
.nav-aside a.nav-link:hover,
.nav-aside button.nav-link:hover { background: rgba(120, 160, 255, 0.1); border-color: var(--border); color: #fff; }
.nav-scroll .active,
.nav-aside .active { background: rgba(120, 160, 255, 0.12); border-color: var(--border); }


@media (max-width: 1040px) {
    .nav-inner {
        gap: 12px;
    }
    .nav-scroll-links {
        gap: 4px;
    }
    .nav-scroll a.nav-link,
    .nav-scroll button.nav-link,
    .nav-aside a.nav-link,
    .nav-aside button.nav-link {
        padding: 8px 10px;
        gap: 8px;
    }
    .nav-link--telegram .nav-link-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .nav-link--telegram {
        gap: 0;
        position: relative;
    }
}

@media (max-width: 900px) {
    .nav-scroll-spacer {
        display: none;
    }
    .nav-scroll {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 10px;
    }
    .brand {
        width: 100%;
    }
    .brand > span:last-child {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .nav-trail {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: none;
        min-width: 0;
        gap: 8px;
    }
    .nav-scroll {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    .nav-aside {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        padding-left: 0;
        padding-top: 8px;
        margin-top: 2px;
        border-left: none;
        border-top: 1px solid rgba(120, 160, 255, 0.22);
    }
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px;
    border: 1px solid var(--border); background: rgba(120, 160, 255, 0.08);
    color: #fff; font: inherit; font-weight: 600; cursor: pointer;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn:hover { background: rgba(120, 160, 255, 0.15); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #07090f; border: none;
    box-shadow: 0 10px 30px -10px rgba(92, 242, 255, 0.6);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #9af6ff 0%, #c4b0ff 100%);
    color: #05070c;
    box-shadow: 0 14px 44px -10px rgba(154, 246, 255, 0.55), 0 14px 40px -12px rgba(196, 176, 255, 0.45);
}
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
/* Кабинет: кнопки аренды — одна сдержанная палитра (панель + холодная рамка) */
.btn-rental-extend,
.btn-rental-end,
.btn-rental-chat {
    background: rgba(120, 160, 255, 0.08);
    border: 1px solid rgba(120, 160, 255, 0.26);
    color: #e6ecff;
    box-shadow: none;
    font-weight: 600;
}
.btn-rental-extend:hover,
.btn-rental-chat:hover {
    background: rgba(120, 160, 255, 0.14);
    border-color: rgba(120, 160, 255, 0.38);
    color: #fff;
}
.btn-rental-end {
    border-color: rgba(160, 110, 120, 0.45);
    color: #f1d5d8;
}
.btn-rental-end:hover {
    background: rgba(160, 100, 110, 0.14);
    border-color: rgba(180, 130, 138, 0.5);
    color: #fff;
}
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }


button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
[role="button"] {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}


a.nav-link {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}


a.game-card,
a.game-card .cover-img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .info-icon {
    width: 16px; height: 16px; border-radius: 50%; background: rgba(120, 160, 255, 0.2);
    display: inline-grid; place-items: center; font-size: 11px; cursor: help; color: var(--accent);
    position: relative;
}
.field .info-icon[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--panel-solid); border: 1px solid var(--border);
    padding: 8px 12px; border-radius: 8px; font-size: 12px; color: var(--text);
    white-space: normal; width: max-content; max-width: 260px;
    box-shadow: var(--shadow); z-index: 100;
}

.input, .textarea, .select {
    background: rgba(7, 9, 15, 0.6);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 12px;
    font: inherit;
    width: 100%;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(92, 242, 255, 0.12);
    background: rgba(7, 9, 15, 0.85);
}

.password-wrap {
    position: relative;
    width: 100%;
}
.password-wrap .input {
    padding-right: 48px;
}
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    transition: color 0.15s ease, background 0.15s ease;
}
.password-toggle:hover {
    color: var(--accent);
    background: rgba(92, 242, 255, 0.08);
}
.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 242, 255, 0.35);
}
.password-toggle-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: 1 / 1 / 2 / 2;
}
.password-toggle-ico--hide {
    display: none;
}
.password-toggle.is-visible .password-toggle-ico--show {
    display: none;
}
.password-toggle.is-visible .password-toggle-ico--hide {
    display: flex;
}
.password-toggle svg {
    display: block;
}


input.input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
input.input[type="number"]::-webkit-outer-spin-button,
input.input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.textarea { min-height: 120px; resize: none; }

.card {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    background: rgba(120, 160, 255, 0.12); color: var(--text);
    border: 1px solid var(--border);
}
.badge.good   { background: rgba(74, 222, 128, 0.15); color: #bbf7d0; border-color: rgba(74, 222, 128, 0.35); }
.badge.warn   { background: rgba(251, 191, 36, 0.15); color: #fde68a; border-color: rgba(251, 191, 36, 0.35); }
.badge.bad    { background: rgba(239, 68, 68, 0.15);  color: #fecaca; border-color: rgba(239, 68, 68, 0.35); }
.badge.info   { background: rgba(92, 242, 255, 0.15); color: #a5f3fc; border-color: rgba(92, 242, 255, 0.35); }

.players-badge-ico {
    display: inline-flex;
    flex-shrink: 0;
}
.players-badge-ico svg {
    display: block;
    width: 14px;
    height: 14px;
    opacity: 0.92;
}

.hero {
    padding: 64px 0 28px;
    text-align: center;
}
.hero-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 18px;
    width: 100%;
}
.hero-side-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    flex: 0 0 auto;
    width: min(292px, 100%);
    align-self: stretch;
    min-height: 0;
}
.hero-title-wrap,
.hero-pay-brick {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(12, 16, 26, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 36px -24px rgba(0, 0, 0, 0.45);
}
.hero-title-wrap {
    padding: 0 0 14px;
    margin-bottom: 18px;
    text-align: center;
    min-width: 0;
    
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.hero-title-wrap h1 {
    margin-bottom: 0;
}
.hero-pay-brick {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    text-align: left;
}
.hero-pay-brick p {
    margin: 0;
}
.hero-pay-brick strong {
    color: var(--text);
}
body.home-video-bg .hero-title-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.home-video-bg .hero-pay-brick {
    background: rgba(12, 16, 26, 0.52);
    border-color: var(--border);
}
@media (max-width: 720px) {
    .hero-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-side-stack {
        width: 100%;
        max-width: none;
        align-self: stretch;
        justify-content: flex-start;
        gap: 14px;
    }
    .hero-pay-brick {
        width: 100%;
        max-width: none;
    }
    .hero-panel {
        width: 100%;
        max-width: 100%;
    }
}
.hero-panel {
    flex: 1 1 360px;
    min-width: min(100%, 280px);
    max-width: min(940px, 100%);
    width: auto;
    margin: 0;
    padding: 26px 32px 24px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: rgba(12, 16, 26, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 22px 56px -30px rgba(0, 0, 0, 0.55);
}
body.home-video-bg .hero-panel {
    background: rgba(12, 16, 26, 0.62);
    border-color: var(--border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 22px 56px -30px rgba(0, 0, 0, 0.55);
}
body.home-video-bg .hero {
    padding-top: 72px;
    padding-bottom: 32px;
}
.hero-panel .hero-lead {
    max-width: none;
    margin-bottom: 0;
}
.hero-panel .hero-actions {
    margin-top: 18px;
}
.hero .glow {
    display: inline-block;
    --hero-glow-angle: 0deg;
    background-image: linear-gradient(
        var(--hero-glow-angle),
        var(--accent) 0%,
        var(--accent-2) 28%,
        #ffffff 50%,
        var(--accent-3) 72%,
        var(--accent) 100%
    );
    background-size: 165% 165%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    will-change: filter;
    animation:
        hero-glow-orbit 3.8s linear infinite,
        hero-glow-hue 3.2s ease-in-out infinite alternate;
}
@keyframes hero-glow-orbit {
    to {
        --hero-glow-angle: 360deg;
    }
}
@keyframes hero-glow-hue {
    0% {
        filter: hue-rotate(-12deg) saturate(1.35) brightness(1.08);
    }
    100% {
        filter: hue-rotate(42deg) saturate(1.55) brightness(1.18);
    }
}
.hero-lead {
    max-width: 640px;
    margin: 0 auto 20px;
    font-size: 17px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-lead > p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1.55;
}
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .hero-actions { display: none; }

.filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr);
    gap: 12px;
    margin: 24px 0;
    align-items: stretch;
}
.filters-search {
    position: relative;
    width: 100%;
    min-width: 0;
}
.filters-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    color: var(--muted);
    pointer-events: none;
    opacity: 0.9;
}
.filters-search:focus-within .filters-search-icon {
    color: var(--accent);
    opacity: 1;
}
.filters-search .input {
    padding-left: 42px;
    max-width: none;
    width: 100%;
    min-width: 0;
}
.catalog-section .filters-search .input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}
.catalog-section .filters-search .input[type="search"]::-webkit-search-decoration,
.catalog-section .filters-search .input[type="search"]::-webkit-search-cancel-button,
.catalog-section .filters-search .input[type="search"]::-webkit-search-results-button,
.catalog-section .filters-search .input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}
.catalog-section .filters-search .input {
    height: var(--catalog-filter-h, 48px);
    min-height: var(--catalog-filter-h, 48px);
    max-height: var(--catalog-filter-h, 48px);
    padding: 11px 14px 11px 42px;
    line-height: 1.25;
    box-sizing: border-box;
}

.catalog-category {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 1;
}
.catalog-category--open {
    z-index: 50;
}
.catalog-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    height: var(--catalog-filter-h, 48px);
    min-height: var(--catalog-filter-h, 48px);
    max-height: var(--catalog-filter-h, 48px);
    line-height: 1.25;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(7, 9, 15, 0.6);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    text-align: left;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}
.catalog-category-toggle:hover {
    background: rgba(7, 9, 15, 0.85);
    border-color: rgba(120, 160, 255, 0.35);
}
.catalog-category-toggle:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(92, 242, 255, 0.12);
}
.catalog-category--open .catalog-category-toggle {
    border-color: rgba(92, 242, 255, 0.45);
}
.catalog-category-toggle-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.catalog-category-muted {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    white-space: nowrap;
}
.catalog-category-muted::after {
    content: "\00a0·";
    font-weight: 700;
    opacity: 0.45;
}
.catalog-category-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.catalog-category-chevron {
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--muted);
    transition: transform 0.2s ease, border-top-color 0.2s;
}
.catalog-category--open .catalog-category-chevron {
    transform: rotate(180deg);
    border-top-color: var(--accent);
}
.catalog-category-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(12, 16, 26, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    max-height: min(320px, 45vh);
    overflow-y: auto;
}
.catalog-category-list {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}
.cat-list-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cat-list-item:hover {
    background: rgba(120, 160, 255, 0.08);
    border-color: var(--border);
}
.cat-list-item--active {
    background: rgba(92, 242, 255, 0.12);
    border-color: rgba(92, 242, 255, 0.35);
    color: var(--accent);
}
.cat-list-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 242, 255, 0.35);
}

.chip-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-suggestion {
    padding: 4px 10px; font-size: 12px;
    border-radius: 999px;
    background: rgba(120, 160, 255, 0.08);
    border: 1px dashed var(--border);
    color: var(--muted);
    cursor: pointer; transition: 0.2s;
}
.chip-suggestion:hover { background: rgba(92, 242, 255, 0.15); color: var(--accent); border-color: var(--accent); border-style: solid; }

.games-grid {
    display: grid;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Явные колонки вместо auto-fill: иначе пустые дорожки сетки «центрируют» последний ряд */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    justify-items: stretch;
    align-items: stretch;
    margin-bottom: 0;
    position: relative;
    z-index: 0;
}
.games-grid > .game-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}
@media (min-width: 960px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}



.catalog-section {
    --catalog-filter-h: 48px;
    position: relative;
    margin-top: 6px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid var(--border);
    background: rgba(12, 16, 26, 0.58);
    backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 22px 56px -30px rgba(0, 0, 0, 0.55);
}

.catalog-panel-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 28px min(56px, 5.5vw) 38px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.catalog-main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}


.catalog-section .catalog-head.section-title,
.catalog-section .section-title.catalog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    box-sizing: border-box;
}
.catalog-section .catalog-head.section-title h2,
.catalog-section .section-title.catalog-head h2 {
    margin: 0;
    min-width: 0;
    line-height: 1.1;
}
.catalog-section .catalog-head.section-title .badge,
.catalog-section .section-title.catalog-head .badge {
    flex-shrink: 0;
    align-self: center;
}

.catalog-section .filters {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 8;
    align-items: stretch;
}

.catalog-panel-inner .games-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.catalog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(7, 10, 18, 0.55);
}
.catalog-pager-btn {
    min-width: 132px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
}
.catalog-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.catalog-pager-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: min(200px, 100%);
    text-align: center;
}
.catalog-page-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}
.catalog-page-range {
    font-size: 13px;
    color: var(--muted);
}


.catalog-wish-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}
.catalog-wish-card {
    width: min(520px, 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(12px);
    padding: 20px 22px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}
.catalog-wish-title {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: var(--text);
}
.catalog-wish-text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}
@media (max-width: 960px) {
    .catalog-wish-cta {
        margin-top: 24px;
        padding-top: 22px;
    }
    .catalog-panel-inner {
        padding: 22px min(28px, 5.5vw) 28px;
    }
    .catalog-section {
        border-radius: calc(var(--radius) + 2px);
    }
}

.game-card {
    background: var(--panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border 0.2s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    cursor: pointer;
    position: relative;
}
.game-card::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(92, 242, 255, 0), rgba(124, 92, 255, 0));
    pointer-events: none; transition: 0.3s;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(92, 242, 255, 0.45); box-shadow: var(--shadow); }
.game-card:hover::before { background: linear-gradient(135deg, rgba(92, 242, 255, 0.08), rgba(124, 92, 255, 0.08)); }
.game-card .cover {
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    z-index: 1;
    background-color: #0a0e1a;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-card .cover .cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    display: block;
}
.game-card:hover .cover { transform: scale(1.05); }
.game-card .cover::after {
    content: ''; position: absolute; inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 15, 0.7));
}
.game-card .body {
    position: relative;
    z-index: 1;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
}
.game-card h3 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.game-card .body > p.game-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    min-height: calc(1.45em * 4);
}
.game-card .meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    min-height: calc(1.35em * 2 + 4px);
    align-content: flex-start;
}
.game-card .price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-card .price .amount { font-size: 18px; font-weight: 700; color: var(--accent); }
.discount-tag {
    position: absolute; top: 12px; left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    padding: 4px 10px; border-radius: 999px; font-weight: 700;
    font-size: 12px; color: #fff;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.stock-pill.stock-ok {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.28), rgba(74, 222, 128, 0.16));
    color: #d6ffe6;
    border-color: rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.45), inset 0 0 12px rgba(74, 222, 128, 0.1);
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}
.stock-pill.stock-empty {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.12));
    color: #ffd6d6;
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.25);
}
.stock-pill.stock-pill--detail {
    text-transform: none;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: stock-pulse 1.6s ease-out infinite;
}
@keyframes stock-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.75), 0 0 8px rgba(74, 222, 128, 0.9); }
    70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0), 0 0 8px rgba(74, 222, 128, 0.9); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0), 0 0 4px rgba(74, 222, 128, 0.4); }
}

.star-rating {
    display: inline-flex;
    gap: 6px;
    user-select: none;
}
.star-rating .star {
    background: transparent;
    border: 0;
    padding: 0 2px;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.18);
    transition: transform 0.12s ease, color 0.12s ease, text-shadow 0.12s ease;
}
.star-rating .star:hover {
    transform: scale(1.18);
}
.star-rating .star.on {
    color: #facc15;
    text-shadow: 0 0 14px rgba(250, 204, 21, 0.65), 0 0 4px rgba(250, 204, 21, 0.9);
}

.stars-static {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
}
.stars-static > span {
    color: rgba(255, 255, 255, 0.18);
}
.stars-static > span.on {
    color: #facc15;
    text-shadow: 0 0 6px rgba(250, 204, 21, 0.45);
}

.bundle-badge {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 191, 36, 0.1));
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.55);
    font-weight: 700;
}

.busy-info {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.35);
}

.game-card .cover .stock-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 11px;
    padding: 6px 11px;
}
.game-card .cover .stock-pill.stock-pill--detail {
    white-space: normal;
    max-width: min(11.5rem, 48vw);
    text-align: center;
    line-height: 1.2;
    gap: 6px;
}

.toast-wrap { position: fixed; right: 20px; top: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; max-width: 340px; }
.toast {
    background: var(--panel-solid); border: 1px solid var(--border);
    padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow);
    animation: slide-in 0.25s ease;
}
.toast.success { border-color: rgba(74, 222, 128, 0.5); }
.toast.error   { border-color: rgba(239, 68, 68, 0.5); }
.toast.info    { border-color: rgba(129, 140, 248, 0.38); }

.toast--topup-x2 {
    position: relative;
    overflow: hidden;
    border-width: 2px !important;
    border-color: rgba(52, 211, 153, 0.72) !important;
    padding-top: 14px;
    padding-left: 16px;
    background:
        linear-gradient(120deg, rgba(22, 101, 52, 0.22), transparent 48%),
        linear-gradient(300deg, rgba(91, 33, 182, 0.16), transparent 46%),
        var(--panel-solid) !important;
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.38),
        0 0 36px rgba(34, 197, 94, 0.12) !important;
}

.toast--topup-x2::after {
    content: '';
    position: absolute;
    inset: -30% -20%;
    pointer-events: none;
    opacity: 0.45;
    background: linear-gradient(
        118deg,
        transparent 42%,
        rgba(253, 224, 71, 0.16) 50%,
        transparent 56%
    );
    background-size: 180% 100%;
    animation: gr-promo-sheen 4.2s ease-in-out infinite;
}

.toast--topup-x2 .t-title {
    position: relative;
    z-index: 1;
    font-weight: 800;
    background: linear-gradient(96deg, #a7f3d0 0%, #fef08a 55%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.toast--topup-x2 .t-text {
    position: relative;
    z-index: 1;
    color: var(--text) !important;
    line-height: 1.5;
}

.toast .t-title { font-weight: 700; margin-bottom: 2px; }
.toast .t-text { font-size: 13px; color: var(--muted); }
.toast.toast-sticky { border-color: rgba(251, 191, 36, 0.5); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
@keyframes slide-in { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.modal-backdrop {
    position: fixed; inset: 0; background: rgba(3, 5, 10, 0.7);
    backdrop-filter: blur(8px); z-index: 100;
    display: grid; place-items: center; padding: 16px;
    animation: fade-in 0.2s;
}
.modal {
    position: relative;
    background: var(--panel-solid); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; width: min(640px, 100%);
    max-height: 92vh; overflow-y: auto;
    box-shadow: var(--shadow);
    animation: pop 0.25s ease;
}
.modal h2 { margin-top: 0; }

.modal > .modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    width: 44px;
    height: 44px;
    margin: 0 0 10px 12px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
}
.modal > .modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(148, 163, 184, 0.45);
}

.modal.steam-agent-modal {
    width: min(520px, 100%);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.steam-agent-modal-head {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--panel-solid);
    z-index: 4;
}
.steam-agent-modal-head .modal-close {
    float: none;
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}
.steam-agent-modal-head .modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(148, 163, 184, 0.45);
}
.steam-agent-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 18px 20px;
    -webkit-overflow-scrolling: touch;
}

.steam-agent-chat-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 12px;
    align-items: stretch;
}
.steam-agent-chat-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 14px;
}
@media (max-width: 420px) {
    .steam-agent-chat-actions {
        flex-direction: column;
    }
}

.admin-live-chat-lock-modal > h3 {
    padding-right: 52px;
}

.modal-actions {
    position: sticky;
    bottom: -24px;
    margin: 20px -24px -24px;
    padding: 14px 24px;
    background: linear-gradient(to top, var(--panel-solid) 70%, rgba(18, 24, 38, 0.85));
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    z-index: 5;
}
@media (max-width: 600px) {
    .modal-actions { flex-wrap: wrap; }
    .modal-actions .btn { flex: 1; min-width: 0; justify-content: center; }
}
@keyframes pop { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.empty {
    text-align: center; padding: 60px 16px; color: var(--muted);
    border: 1px dashed var(--border); border-radius: var(--radius);
}

.auth-page {
    min-height: calc(100vh - 80px);
    display: grid; place-items: center; padding: 40px 16px;
}
.auth-card { width: min(440px, 100%); }
.auth-card .brand { justify-content: center; margin-bottom: 14px; }
.auth-switch { text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }

.section { padding: 30px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.row { display: grid; gap: 22px; }
.row.two { grid-template-columns: 1fr 1fr; }
.row.three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
    .row.two, .row.three { grid-template-columns: 1fr; }
    .nav-inner { flex-wrap: wrap; }
    .nav-trail { width: 100%; justify-content: space-between; gap: 8px; }
    .nav-scroll { flex: 1 1 auto; min-width: 0; }
    .nav-aside { padding-left: 8px; border-left-color: rgba(120, 160, 255, 0.18); }
    .nav-scroll a, .nav-scroll button, .nav-aside a, .nav-aside button { white-space: nowrap; }
    .hero { padding: 32px 0 16px; }
    body.home-video-bg .hero {
        padding-top: 36px;
        padding-bottom: 20px;
    }
    .hero-panel {
        padding: 20px 18px 18px;
        border-radius: 12px;
    }
    .filters {
        grid-template-columns: 1fr;
    }
}

.game-page-hero {
    position: relative;
    padding: 40px 0;
    margin-bottom: 30px;
    animation: fade-rise 0.45s ease both;
}
.game-page-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}
.game-page-hero-main > a {
    margin: 0 !important;
}
.game-page-hero-main > h1 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.12;
}
.game-page-hero-main > .tags {
    margin: 0 0 14px !important;
}
.game-page-hero .hero-bg {
    position: absolute; inset: -20px -20px 0; z-index: -1;
    background-size: cover; background-position: center; filter: blur(40px) saturate(1.2); opacity: 0.5;
    mask-image: linear-gradient(180deg, black, transparent);
}


body.game-trailer-bg #nav-root {
    position: relative;
    z-index: 50;
}
body.game-trailer-bg .footer {
    position: relative;
    z-index: 50;
}


body.home-video-bg #nav-root {
    position: relative;
    z-index: 50;
}
body.home-video-bg main.container {
    position: relative;
    z-index: 1;
}
body.home-video-bg .footer {
    position: relative;
    z-index: 1;
}
.home-bg-trailer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.home-bg-trailer__dim {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 130% 90% at 50% 15%, rgba(7, 9, 15, 0.5) 0%, rgba(7, 9, 15, 0.82) 45%, rgba(7, 9, 15, 0.93) 100%),
        linear-gradient(180deg, rgba(7, 9, 15, 0.55) 0%, rgba(7, 9, 15, 0.25) 35%, rgba(7, 9, 15, 0.55) 100%);
}
.home-bg-trailer__media {
    pointer-events: none;
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    filter: blur(28px) saturate(1.12);
    transform: scale(1.04);
}
.home-bg-trailer__layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease-in-out;
    z-index: 0;
    pointer-events: none;
}
.home-bg-trailer__layer.is-visible {
    opacity: 1;
    z-index: 1;
}
.home-bg-trailer__layer iframe,
.home-bg-trailer__layer video {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    border: 0;
    object-fit: cover;
}

#root {
    position: relative;
}
.game-bg-trailer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.game-bg-trailer__dim {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(7, 9, 15, 0.45) 0%, rgba(7, 9, 15, 0.88) 55%, rgba(7, 9, 15, 0.94) 100%);
}
.game-bg-trailer__media {
    pointer-events: none;
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    z-index: 0;
}
.game-bg-trailer__media video,
.game-bg-trailer__media iframe {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    border: 0;
    object-fit: cover;
}
.game-page-stack {
    position: relative;
    z-index: 1;
}
.game-bg-trailer-badge {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    pointer-events: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(124, 92, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}
@media (max-width: 640px) {
    .home-bg-trailer {
        display: none;
    }
    .game-bg-trailer,
    .game-bg-trailer-badge {
        display: none;
    }
}
.gallery {
    display: grid; gap: 12px;
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
}
.gallery-main-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-sizing: border-box;
}
.gallery-main-shell .main {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0a0e1a;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 0;
    border-radius: 0;
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
}
.gallery-main-shell .main video, .gallery-main-shell .main iframe { width: 100%; height: 100%; display: block; }
.gallery .thumbs {
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
}
.gallery .thumbs-strip {
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.gallery .thumbs-strip::-webkit-scrollbar {
    display: none;
    height: 0;
}
.gallery .thumb-nav.gallery-overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    left: 10px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-height: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(7, 9, 15, 0.52);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: opacity 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}
.gallery .thumb-nav.gallery-overlay-nav[data-thumb-nav="next"] {
    left: auto;
    right: 10px;
}
.gallery .thumb-nav.gallery-overlay-nav:hover:not(:disabled) {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.35);
    color: #fff;
}
.gallery .thumb-nav.gallery-overlay-nav:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.gallery .thumb-nav.gallery-overlay-nav:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}
@media (max-width: 420px) {
    .gallery .thumb-nav.gallery-overlay-nav {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 22px;
        left: 6px;
    }
    .gallery .thumb-nav.gallery-overlay-nav[data-thumb-nav="next"] {
        right: 6px;
    }
}
.gallery .thumbs .thumb {
    width: 110px;
    flex: 0 0 110px;
    max-width: 110px;
    height: calc(110px * 9 / 16);
    max-height: 72px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #0a0e1a;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer; opacity: 0.7;
    border: 1px solid var(--border); transition: 0.2s;
}
.gallery .thumbs .thumb .thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    pointer-events: none;
}
.gallery .thumbs .thumb.active, .gallery .thumbs .thumb:hover { opacity: 1; border-color: var(--accent); }
.gallery .thumbs .thumb.video { position: relative; }
.gallery .thumbs .thumb.video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9);
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }

.rent-card .price-big { font-size: 32px; font-weight: 800; color: var(--accent); }
.rent-card .hours-controls { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }

.range-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.range-row .label { color: var(--muted); font-size: 13px; }
.range-display {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #07090f;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 6px 22px -6px rgba(124, 92, 255, 0.6);
    min-width: 70px; justify-content: center;
}

.range {
    -webkit-appearance: none; appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(to right,
        var(--accent) 0%,
        var(--accent-2) var(--range-fill, 0%),
        rgba(120, 160, 255, 0.12) var(--range-fill, 0%),
        rgba(120, 160, 255, 0.12) 100%);
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
    border: 1px solid var(--border);
}
.range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #e0e9ff 70%);
    border: 3px solid var(--accent);
    box-shadow:
        0 0 0 4px rgba(92, 242, 255, 0.18),
        0 6px 20px rgba(92, 242, 255, 0.5);
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.2s;
}
.range::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 0 6px rgba(92, 242, 255, 0.25),
        0 8px 28px rgba(124, 92, 255, 0.7);
}
.range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.18); border-color: var(--accent-2); }
.range::-moz-range-thumb {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #e0e9ff 70%);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(92, 242, 255, 0.18), 0 6px 20px rgba(92, 242, 255, 0.5);
    cursor: grab;
}
.range:focus { box-shadow: 0 0 0 3px rgba(92, 242, 255, 0.15); }

.range-ticks {
    position: relative; height: 8px; margin-top: -4px;
    pointer-events: none;
}
.range-ticks span {
    position: absolute; transform: translateX(-50%);
    width: 1px; height: 6px; background: rgba(120, 160, 255, 0.3);
}
.range-ticks .lbl {
    position: absolute; transform: translateX(-50%); top: 10px;
    width: auto; height: auto; background: transparent;
    color: var(--muted); font-size: 11px; white-space: nowrap;
}


*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track {
    background: rgba(7, 9, 15, 0.4);
    border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 10px;
    border: 2px solid rgba(7, 9, 15, 0.6);
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    border-color: rgba(7, 9, 15, 0.3);
}
*::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-color: var(--accent-2) rgba(7, 9, 15, 0.4); scrollbar-width: thin; }

.cabinet-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin: 24px 0 60px; }
.cabinet-side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: max-content; }
.cabinet-side .menu { display: flex; flex-direction: column; gap: 4px; }
.cabinet-side .menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left; padding: 10px 12px; border-radius: 10px;
    background: transparent; border: 0; color: var(--text); cursor: pointer; font: inherit;
    transition: 0.2s;
}
.cabinet-side .menu button .cab-menu-ico {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.88;
}
.cabinet-side .menu button .cab-menu-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}
.cabinet-side .menu button.active .cab-menu-ico { opacity: 1; }
.cabinet-side .menu button:hover { background: rgba(120, 160, 255, 0.08); }
.cabinet-side .menu button.active { background: rgba(92, 242, 255, 0.15); color: var(--accent); }
.cabinet-side .balance { margin: 0 0 12px; padding: 14px; border-radius: 12px; background: rgba(92, 242, 255, 0.06); border: 1px solid rgba(92, 242, 255, 0.2); }
.cabinet-side .balance .amount { font-size: 24px; font-weight: 700; color: var(--accent); }

@media (max-width: 800px) { .cabinet-grid { grid-template-columns: 1fr; } }

.profile-preset-avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profile-preset-av {
    padding: 0; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--border); background: transparent; cursor: pointer; flex-shrink: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-preset-av:hover { border-color: rgba(92, 242, 255, 0.45); }
.profile-preset-av:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-preset-av--sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.profile-preset-av img { display: block; width: 100%; height: 100%; object-fit: cover; }

.rental-row {
    display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center;
    padding: 14px; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 10px; background: rgba(7, 9, 15, 0.4);
}
.rental-row .rcover {
    width: 80px; height: 50px; border-radius: 8px;
    background-color: #0a0e1a;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.rental-row .rcover.rcover--has-img {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.rental-row .rcover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rental-row .rcover-letter--fallback {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    font-size: 20px;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.55);
    line-height: 1;
    user-select: none;
    background: rgba(15, 23, 42, 0.75);
}
.rental-row .rcover.rcover--broken .rcover-letter--fallback {
    display: grid;
}
.rental-row .rcover.rcover--placeholder {
    display: grid;
    place-items: center;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.65);
}
.rental-row .rcover-letter {
    font-size: 20px;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.55);
    line-height: 1;
    user-select: none;
}
.rental-row .rtitle { font-weight: 600; }
.rental-row .rmeta { font-size: 13px; color: var(--muted); }
.rental-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}
.rental-status-strip--simple {
    align-items: center;
}
.rental-status-session,
.rental-status-countdown {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(18, 24, 38, 0.82);
    border: 1px solid rgba(120, 160, 255, 0.22);
    box-shadow: none;
}
.rental-status-session {
    flex: 1 1 220px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.rental-status-countdown {
    flex: 0 1 auto;
    min-width: 168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rental-status-pulse {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: rgba(92, 242, 255, 0.75);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(92, 242, 255, 0.35);
    animation: rental-status-pulse 2.2s ease-out infinite;
}
@keyframes rental-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(92, 242, 255, 0.28); }
    70% { box-shadow: 0 0 0 10px rgba(92, 242, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 242, 255, 0); }
}
.rental-status-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.rental-status-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}
.rental-status-countdown--over {
    background: rgba(28, 18, 22, 0.88);
    border-color: rgba(160, 110, 118, 0.4);
}
.rental-status-countdown--over .rental-countdown-label {
    color: rgba(220, 180, 184, 0.88);
}
.rental-status-countdown--over .rental-countdown-value {
    color: #f5d0d4;
}
.rental-countdown-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}
.rental-countdown-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1.1;
    font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
}
.rental-end-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    line-height: 1.55;
}
.rental-end-hint__icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.rental-end-hint-ico {
    display: block;
    width: 22px;
    height: 22px;
    opacity: 0.92;
}
.rental-end-hint__text {
    flex: 1;
    min-width: 0;
}
.rental-end-hint-sub {
    margin-top: 8px;
    margin-left: 32px;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .rental-end-hint-sub { margin-left: 0; }
}
.rental-creds-card {
    margin-top: 12px;
    padding: 14px;
}
.rental-creds-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.rental-creds-card .btn-sm {
    background: rgba(120, 160, 255, 0.06);
    border: 1px solid rgba(120, 160, 255, 0.22);
    color: #dce4ff;
}
.rental-creds-card .btn-sm:hover {
    background: rgba(120, 160, 255, 0.12);
    border-color: rgba(120, 160, 255, 0.32);
    color: #fff;
}
@media (max-width: 600px) {
    .rental-status-strip { flex-direction: column; }
    .rental-status-countdown { min-width: 0; width: 100%; }
}
.rental-row .ractions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 600px) {
    .rental-row { grid-template-columns: 1fr; }
    .rental-row .rcover { width: 100%; height: 120px; }
    .rental-row .ractions { justify-content: flex-end; }
}

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.admin-tabs button {
    padding: 8px 14px; border-radius: 10px; background: transparent; border: 1px solid var(--border);
    color: var(--text); cursor: pointer; font: inherit;
    transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.admin-tabs button:hover { transform: translateY(-1px); background: rgba(120, 160, 255, 0.08); }
.admin-tabs button.active { background: rgba(92, 242, 255, 0.12); border-color: var(--accent); color: var(--accent); }

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* Основная и вспомогательная админка — шире контейнер (до ~1200px таблицы «ломали» строки и ползунок) */
body.admin-page main.container {
    width: min(1720px, calc(100vw - 40px));
    max-width: 100%;
}

body.admin-page footer .container {
    width: min(1720px, calc(100vw - 40px));
    max-width: 100%;
}

body.admin-page main .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.admin-page main .table-wrap table {
    width: max(100%, min-content);
}

body.admin-page main .table-wrap table th,
body.admin-page main .table-wrap table td {
    padding: 9px 10px;
    font-size: 13px;
}

body.admin-page main .table-wrap table th {
    font-size: 11px;
}

.image-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.image-list .img-thumb {
    width: 80px; height: 50px; border-radius: 8px; background: #0a0e1a center/cover; position: relative;
    border: 1px solid var(--border);
}
.image-list .img-thumb button { position: absolute; top: -6px; right: -6px; background: var(--bad); color: #fff; border: 0; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 12px; }

.stat-card { padding: 18px; }
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 28px; font-weight: 800; color: #fff; margin-top: 4px; }

.skeleton { background: linear-gradient(90deg, rgba(120, 160, 255, 0.05), rgba(120, 160, 255, 0.12), rgba(120, 160, 255, 0.05)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.footer {
    border-top: 1px solid var(--border);
    margin-top: 40px; padding: 28px 0;
    color: var(--muted); font-size: 13px; text-align: center;
}
.footer a { color: var(--text); }
.footer-mail {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}
.footer-mail:hover { color: var(--accent); }

.help-bar {
    position: fixed;
    bottom: calc(22px + 3 * (52px + 14px) + 10px);
    right: 22px;
    z-index: 98;
    background: var(--panel-solid);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    max-width: min(480px, calc(100vw - 100px));
}
.help-bar:hover { color: var(--accent); border-color: var(--accent); }

.payment-step { padding: 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: rgba(7, 9, 15, 0.4); }
.payment-step b { color: var(--accent); }
.copy-box { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 10px; font-family: monospace; word-break: break-all; }

.kbd { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border); background: rgba(7, 9, 15, 0.6); font-family: monospace; font-size: 12px; }


@keyframes nav-enter {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float-brand {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@keyframes help-pop {
    0% { opacity: 0; transform: translateY(12px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.nav { animation: nav-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

.hero h1 { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
.hero-lead { animation: hero-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }
.hero-actions { animation: hero-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both; }

.section-title { animation: fade-rise 0.45s ease 0.04s both; }
.filters { animation: fade-rise 0.45s ease 0.1s both; }

.games-grid .game-card {
    animation: fade-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.games-grid .game-card:nth-child(1) { animation-delay: 0.03s; }
.games-grid .game-card:nth-child(2) { animation-delay: 0.06s; }
.games-grid .game-card:nth-child(3) { animation-delay: 0.09s; }
.games-grid .game-card:nth-child(4) { animation-delay: 0.12s; }
.games-grid .game-card:nth-child(5) { animation-delay: 0.15s; }
.games-grid .game-card:nth-child(6) { animation-delay: 0.18s; }
.games-grid .game-card:nth-child(7) { animation-delay: 0.21s; }
.games-grid .game-card:nth-child(8) { animation-delay: 0.24s; }
.games-grid .game-card:nth-child(9) { animation-delay: 0.27s; }
.games-grid .game-card:nth-child(10) { animation-delay: 0.3s; }
.games-grid .game-card:nth-child(11) { animation-delay: 0.33s; }
.games-grid .game-card:nth-child(12) { animation-delay: 0.36s; }
.games-grid .game-card:nth-child(13) { animation-delay: 0.39s; }
.games-grid .game-card:nth-child(14) { animation-delay: 0.42s; }
.games-grid .game-card:nth-child(15) { animation-delay: 0.45s; }
.games-grid .game-card:nth-child(16) { animation-delay: 0.48s; }
.games-grid .game-card:nth-child(17) { animation-delay: 0.51s; }
.games-grid .game-card:nth-child(18) { animation-delay: 0.54s; }
.games-grid .game-card:nth-child(19) { animation-delay: 0.57s; }
.games-grid .game-card:nth-child(20) { animation-delay: 0.6s; }

.brand-logo { animation: float-brand 6s ease-in-out infinite; }

.auth-card {
    animation: fade-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.footer {
    animation: fade-rise 0.55s ease 0.15s both;
}

.help-bar {
    animation: help-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.stat-card {
    transition: transform 0.2s ease, border-color 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 242, 255, 0.35);
}

.gallery .thumbs .thumb {
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.gallery .thumbs .thumb:hover {
    transform: scale(1.04);
    opacity: 1;
    border-color: var(--accent);
}
.gallery .thumbs .thumb.active {
    box-shadow: 0 0 0 2px var(--accent);
    border-color: var(--accent);
    opacity: 1;
}

.rent-card {
    animation: fade-rise 0.45s ease 0.12s both;
}

.rules-page .rules-block { max-width: 860px; margin: 0 auto; }
.rules-page .rules-block h2 {
    font-size: 17px;
    margin-top: 26px;
    margin-bottom: 10px;
    color: var(--accent);
}
.rules-page .rules-block ol {
    margin: 0 0 8px;
    padding-left: 1.35rem;
    color: var(--text);
}
.rules-page .rules-block li { margin-bottom: 12px; }
.rules-page .rules-block .lead { color: var(--muted); line-height: 1.65; }

.support-fab-wrap {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-width: calc(100vw - 20px);
    pointer-events: none;
}
.support-fab-wrap .support-fab {
    pointer-events: auto;
}
.support-fab-hint {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(186, 200, 230, 0.95);
    text-align: right;
    max-width: 132px;
    text-shadow: 0 1px 14px rgba(7, 9, 15, 0.95);
    pointer-events: none;
}
.support-fab-hint b {
    color: var(--accent);
    font-weight: 600;
}
@media (max-width: 520px) {
    .support-fab-hint {
        display: none;
    }
}

.support-fab {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(92, 242, 255, 0.45);
    background: linear-gradient(145deg, rgba(124, 92, 255, 0.55), rgba(92, 242, 255, 0.28));
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.telegram-fab-wrap {
    position: fixed;
    bottom: calc(22px + 52px + 14px);
    right: 22px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-width: calc(100vw - 20px);
    pointer-events: none;
}
.telegram-fab-wrap .telegram-fab {
    pointer-events: auto;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
}
.telegram-fab-hint {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(186, 200, 230, 0.95);
    text-align: right;
    max-width: 132px;
    text-shadow: 0 1px 14px rgba(7, 9, 15, 0.95);
    pointer-events: none;
}
.telegram-fab-hint b {
    color: #7dd3fc;
    font-weight: 600;
}
@media (max-width: 520px) {
    .telegram-fab-hint {
        display: none;
    }
}
.telegram-fab {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: linear-gradient(145deg, rgba(2, 132, 199, 0.65), rgba(14, 165, 233, 0.4));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}
.telegram-fab .nav-icon {
    width: 24px;
    height: 24px;
}
.telegram-fab:hover {
    filter: brightness(1.08);
}

.community-chat-fab-wrap {
    position: fixed;
    bottom: calc(22px + 2 * (52px + 14px));
    right: 22px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    max-width: calc(100vw - 20px);
    pointer-events: none;
}
.community-chat-fab-wrap .community-chat-fab {
    pointer-events: auto;
    display: grid;
    place-items: center;
    text-decoration: none;
}
.community-chat-fab-hint {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(186, 200, 230, 0.95);
    text-align: right;
    max-width: 132px;
    text-shadow: 0 1px 14px rgba(7, 9, 15, 0.95);
    pointer-events: none;
}
.community-chat-fab-hint b {
    color: #a7f3d0;
    font-weight: 600;
}
@media (max-width: 520px) {
    .community-chat-fab-hint {
        display: none;
    }
}
.community-chat-fab {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(167, 243, 208, 0.55);
    background: linear-gradient(145deg, rgba(52, 211, 153, 0.45), rgba(124, 92, 255, 0.35));
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}
.community-chat-fab:hover {
    filter: brightness(1.08);
}

/* Крупнее подсказки и кнопки FAB на ПК (поддержка + Telegram + чат) */
@media (min-width: 900px) {
    .support-fab-wrap,
    .telegram-fab-wrap,
    .community-chat-fab-wrap {
        gap: 14px;
    }
    .support-fab-hint,
    .telegram-fab-hint,
    .community-chat-fab-hint {
        font-size: 14px;
        line-height: 1.45;
        max-width: 180px;
    }
    .support-fab-hint b,
    .telegram-fab-hint b,
    .community-chat-fab-hint b {
        font-size: 15px;
    }
    .support-fab,
    .telegram-fab,
    .community-chat-fab {
        width: 60px;
        height: 60px;
        font-size: 28px;
        box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
    }
    .telegram-fab .nav-icon {
        width: 28px;
        height: 28px;
    }
    .telegram-fab-wrap {
        bottom: calc(22px + 60px + 14px);
    }
    .community-chat-fab-wrap {
        bottom: calc(22px + 2 * (60px + 14px));
    }
    .help-bar {
        bottom: calc(22px + 3 * (60px + 14px) + 10px);
    }
}

.adm-sup-tab-badge {
    display: inline-block;
    min-width: 1.15em;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #0a0c10;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.admin-tabs button[data-tab='support'].adm-sup-tab--alert {
    box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.75);
    animation: adm-sup-tab-pulse 1.6s ease-in-out infinite;
}
@keyframes adm-sup-tab-pulse {
    0%,
    100% {
        box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.45);
    }
    50% {
        box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.95);
    }
}
tr.support-chat-row--pending {
    background: rgba(245, 158, 11, 0.12);
    box-shadow: inset 3px 0 0 0 #f59e0b;
}

.support-fab:hover { filter: brightness(1.08); }
.support-fab.support-fab-unread {
    border-color: rgba(251, 191, 36, 0.85);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45), 0 8px 28px rgba(0, 0, 0, 0.38);
    animation: support-fab-pulse 1.4s ease-in-out infinite;
}
@keyframes support-fab-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45), 0 8px 28px rgba(0, 0, 0, 0.38); }
    50% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.25), 0 8px 32px rgba(251, 191, 36, 0.15); }
}
.support-site-modal {
    position: relative;
    width: min(94vw, 600px);
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0;
}

.support-site-modal > .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    float: none;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    line-height: 1;
}
.support-site-modal > h3 {
    padding-right: 48px;
    flex: 0 0 auto;
}
.support-site-modal > .hint {
    flex: 0 0 auto;
}
.support-site-modal .support-site-msg-list {
    flex: 0 1 auto;
    min-height: 80px;
    max-height: min(38vh, 320px);
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 4px 0;
}
.support-site-modal .textarea {
    flex: 0 0 auto;
    min-height: 88px;
    max-height: 140px;
}
.support-site-modal .modal-actions {
    position: relative;
    bottom: auto;
    margin: 0;
    padding: 12px 0 0;
    flex: 0 0 auto;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    background: transparent;
    backdrop-filter: none;
}

/* Общий чат пользователей (/community-chat) */
.community-chat-page .community-chat-scroll {
    min-height: 200px;
    max-height: min(52vh, 520px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}
.community-chat-msg__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.community-chat-msg__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(92, 242, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
}
img.community-chat-msg__avatar {
    display: block;
}
.community-chat-msg__avatar--fallback {
    display: grid;
    place-items: center;
    font-size: 18px;
    border: 1px solid var(--border);
    color: var(--muted);
}
.community-chat-msg__main {
    flex: 1;
    min-width: 0;
}

.community-chat-msg__meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}
.community-chat-msg--self .community-chat-msg__meta {
    color: var(--accent);
}
.community-chat-msg__body {
    white-space: pre-wrap;
    word-break: break-word;
}
.community-chat-form .textarea {
    min-height: 88px;
}

.community-chat-cd-row {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(92, 242, 255, 0.35);
    background: rgba(92, 242, 255, 0.08);
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}
.community-chat-form textarea:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .nav, .hero h1, .hero-lead, .hero-actions, .section-title, .filters,
    .games-grid .game-card, .auth-card, .game-page-hero, .footer, .help-bar, .rent-card {
        animation: none !important;
        animation-delay: 0s !important;
    }
    .hero .glow {
        animation: none !important;
        filter: none !important;
        --hero-glow-angle: 118deg;
        background-image: linear-gradient(120deg, var(--accent), var(--accent-2), var(--accent-3));
        background-size: 100% 100%;
        background-position: 0 0;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        will-change: auto;
    }
    .brand-logo, .stock-dot {
        animation: none !important;
    }
    .game-card:hover .cover { transform: none; }
    .site-broadcast__sheen::after,
    .gr-topup-x2-preview__shine::after,
    .toast--topup-x2::after {
        animation: none !important;
    }
    .gr-topup-x2-notice__aurora,
    .site-broadcast__promo-badge,
    .gr-topup-x2-notice__badge,
    .site-broadcast__promo-sparks span {
        animation: none !important;
    }
    .support-fab.support-fab-unread { animation: none !important; }
    .home-bg-trailer {
        display: none !important;
    }
    .toast {
        animation: none !important;
    }
}


@media (max-width: 560px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    .container {
        width: min(1200px, calc(100% - 20px));
    }
    body.admin-page main.container {
        width: calc(100% - 20px);
        max-width: 100%;
    }
    body.admin-page footer .container {
        width: calc(100% - 20px);
        max-width: 100%;
    }
    .nav {
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
    }
    .nav-inner {
        gap: 10px;
        padding: 10px 0;
    }
    .brand {
        font-size: 16px;
        gap: 8px;
        letter-spacing: 0.02em;
        min-width: 0;
    }
    .brand-logo {
        width: 32px;
        height: 32px;
        font-size: 15px;
        border-radius: 9px;
        flex-shrink: 0;
    }
    .nav-scroll a.nav-link,
    .nav-scroll button.nav-link,
    .nav-aside a.nav-link,
    .nav-aside button.nav-link {
        padding: 10px 11px;
        min-height: 44px;
    }
    .nav-aside a.btn.nav-reg {
        min-height: 44px;
        padding: 10px 14px;
    }

    .hero {
        padding: 28px 0 18px;
    }
    body.home-video-bg .hero {
        padding-top: 32px;
        padding-bottom: 20px;
    }
    .hero-panel {
        padding: 16px 14px 14px;
    }
    .hero-lead {
        font-size: 15px;
        gap: 10px;
    }

    .section {
        padding: 22px 0;
    }
    .section-title:not(.catalog-head) {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }
    .catalog-section .catalog-head.section-title,
    .catalog-section .section-title.catalog-head {
        align-items: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .game-card h3 {
        font-size: 16px;
        line-height: 1.25;
    }
    .game-card .body {
        padding: 12px 14px 14px;
    }

    .catalog-panel-inner {
        padding: 16px 14px 22px;
    }
    .catalog-pager {
        flex-direction: column;
        gap: 12px;
        padding: 14px 12px;
        margin-top: 16px;
    }
    .catalog-pager-btn {
        width: 100%;
        min-width: 0;
    }
    .catalog-wish-card {
        padding: 16px 14px;
    }

    .game-page-hero {
        padding: 20px 0 12px;
        margin-bottom: 16px;
    }
    .game-page-hero-main {
        gap: 6px;
    }
    .game-page-hero .hero-bg {
        inset: -10px -10px 0;
    }
    .row.two {
        gap: 16px;
    }
    .rent-card {
        position: static;
        top: auto;
    }
    .rent-card .price-big {
        font-size: clamp(22px, 9vw, 30px);
    }
    .tags {
        gap: 5px;
    }

    .card {
        padding: 16px;
    }

    .input,
    .textarea,
    .select {
        font-size: 16px;
    }

    .toast-wrap {
        right: 10px;
        left: 10px;
        top: auto;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        max-width: none;
    }
    .toast {
        animation: toast-slide-up 0.28s ease;
    }

    .help-bar {
        right: 10px;
        left: 10px;
        bottom: calc(200px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        justify-content: center;
        text-align: center;
        border-radius: 12px;
        padding: 10px 12px;
    }
    .support-fab-wrap {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
    }
    .telegram-fab-wrap {
        bottom: calc(10px + 52px + 14px + env(safe-area-inset-bottom, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
    }
    .community-chat-fab-wrap {
        bottom: calc(10px + 2 * (52px + 14px) + env(safe-area-inset-bottom, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
    }

    .footer {
        padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
        font-size: 12px;
        margin-top: 28px;
    }

    .modal-backdrop {
        padding: 10px;
        align-items: flex-end;
    }
    .modal {
        width: 100%;
        max-height: min(92dvh, 92vh);
        border-radius: 16px 16px 0 0;
        padding: 18px 16px 20px;
    }
    .modal.steam-agent-modal {
        padding: 0;
        border-radius: 16px 16px 0 0;
    }

    .auth-page {
        padding: 24px 12px calc(32px + env(safe-area-inset-bottom, 0px));
        min-height: calc(100dvh - 72px);
    }
}

@keyframes toast-slide-up {
    from {
        transform: translateY(130%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (hover: none) {
    .game-card:hover {
        transform: none;
    }
    .game-card:hover .cover {
        transform: none;
    }
}

@media (max-width: 560px) and (pointer: coarse) {
    .range::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    .range::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
}


.admin-live-chat-lock-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(5, 8, 16, 0.88);
    backdrop-filter: blur(8px);
}
.admin-live-chat-lock-modal {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.admin-live-chat-msg-list {
    flex: 1;
    min-height: 120px;
    max-height: 42vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.28);
}
.admin-live-chat-admin-wrap {
    z-index: 2001;
}


body.gr-account-banned-lock {
    overflow: hidden;
    touch-action: none;
}
.gr-account-banned-overlay {
    position: fixed;
    inset: 0;
    z-index: 500000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}
.gr-account-banned-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    padding: 28px 22px 22px;
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.gr-account-banned-title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fecaca;
}
.gr-account-banned-text {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
}

/* --- Сейф Steam: карточки вместо широкой таблицы --- */
.vault-list-host {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.vault-card--archived {
    opacity: 0.88;
    border-style: dashed;
}

.vault-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(12, 16, 28, 0.55);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.vault-card-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(88, 120, 255, 0.08), transparent);
}

.vault-card-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.vault-card-id {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.vault-steam-login {
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-all;
}

.vault-card-family-sub.vault-card-family-sub--parent {
    color: #fde68a;
    margin-top: 4px;
}

.vault-card-family-sub {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(200, 210, 240, 0.92);
    max-width: 56ch;
}

.vault-card-family-sub.vault-card-family-sub--muted {
    font-weight: 500;
    color: var(--muted);
}

.vault-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.vault-card-body {
    padding: 16px 18px 18px;
}

.vault-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.vault-blk {
    min-width: 0;
}

.vault-blk h4 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.vault-field {
    margin-bottom: 10px;
}

.vault-field:last-child {
    margin-bottom: 0;
}

.vault-field > span.vault-f-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.vault-field-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.vault-field-row code {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(120, 130, 160, 0.25);
}

.vault-blk--full {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(120, 130, 160, 0.2);
}

.vault-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vault-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    background: rgba(88, 140, 255, 0.12);
    border: 1px solid rgba(88, 140, 255, 0.28);
    color: var(--text);
    word-break: break-word;
}

.vault-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 20px;
    margin-top: 14px;
}

.vault-meta-grid--single {
    grid-template-columns: 1fr;
}

.vault-meta-item .vault-meta-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.vault-meta-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.vault-notes {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
    opacity: 0.95;
}
