/* AXORPUS — главная страница. Версия 2026.10.03.2. */

/* Reset и базовые стили */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .initially-hidden {
            display: none;
        }

        /* Запрет выделения текста на всей странице */
        body {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #0a0a0f;
            color: #fff;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Разрешаем выделение в модальных окнах */
        .modal p,
        .modal .doc-modal-content,
        .modal .rules-list,
        .doc-modal-content p {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        /* Запрет выделения у элементов скролла */
        .scroll-item,
        .scroll-item * {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        /* Хай-тек фон с сеткой */
        .site-wrapper {
            background: 
                linear-gradient(rgba(10, 10, 15, 0.85), rgba(10, 10, 15, 0.85)),
                url('/site_main/res/images/fon.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            min-height: 100vh;
            position: relative;
        }

        .site-wrapper.no-bg {
            background: #0a0a0f;
        }

        /* Анимированная сетка */
        .site-wrapper::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 60px 60px;
            pointer-events: none;
            z-index: 0;
            animation: gridMove 30s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(60px, 60px); }
        }

        /* Шапка */
        .header {
            padding: 20px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(0, 255, 255, 0.2);
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(10px);
            position: relative;
            z-index: 10;
            flex-wrap: wrap;
            gap: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo img {
            height: 100px;
            width: auto;
            animation: logoImagePulse 2.4s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes logoImagePulse {
            0%, 100% { filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.28)); }
            50% { filter: drop-shadow(0 0 32px rgba(0, 255, 255, 0.75)); }
        }

        /* ============================================================ */
        /* ЛОГОТИП В ШАПКЕ — АКСОРПУС (кириллица) с эффектом на всё слово */
        /* ============================================================ */
        .logo-text {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-weight: 900;
            font-size: 28px;
            letter-spacing: 4px;
            cursor: default;
            background: linear-gradient(90deg, #00ffff, #0088ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
            animation: glowPulse 2s ease-in-out infinite;
        }

        @keyframes glowPulse {
            0%, 100% {
                text-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
            }
            50% {
                text-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
            }
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-menu {
            position: relative;
            display: inline-block;
            cursor: pointer;
        }

        .user-status {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 12px;
            color: #00ffff;
            border: 1px solid rgba(0, 255, 255, 0.3);
            padding: 8px 20px;
            border-radius: 4px;
            background: rgba(0, 255, 255, 0.05);
            letter-spacing: 2px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .user-status:hover {
            background: rgba(0, 255, 255, 0.12);
            border-color: rgba(0, 255, 255, 0.5);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.05);
        }

        .user-status .id-label {
            color: rgba(255, 255, 255, 0.4);
            font-size: 10px;
            letter-spacing: 1px;
        }

        .user-status .id-value {
            color: #00ffff;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
            font-size: 13px;
        }

        .user-status .account-divider {
            width: 1px;
            height: 30px;
            background: rgba(0, 255, 255, 0.15);
            margin: 0 2px;
        }

        .user-status .balance-value {
            color: #00ff88;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
            font-size: 13px;
            white-space: nowrap;
        }

        .account-identity {
            min-width: 0;
        }

        .account-identity .id-label,
        .account-identity .id-value {
            display: block;
        }

        .currency-balance {
            min-width: 54px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
        }

        button.currency-balance {
            appearance: none;
            -webkit-appearance: none;
            padding: 2px 4px;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            color: inherit;
            font: inherit;
            letter-spacing: inherit;
            cursor: pointer;
            transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
        }

        button.currency-balance:hover,
        button.currency-balance:focus-visible {
            border-color: rgba(0, 255, 255, .34);
            background: rgba(0, 255, 255, .09);
            box-shadow: 0 0 18px rgba(0, 255, 255, .08);
            outline: none;
        }

        .currency-balance-icon {
            width: 30px;
            height: 30px;
            flex: 0 0 auto;
            object-fit: contain;
            filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
            pointer-events: none;
        }

        .currency-balance-icon.book-icon {
            width: 32px;
            height: 32px;
        }

        .header-action-button {
            width: 62px;
            min-height: 58px;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            color: #00ffff;
            background: rgba(0, 255, 255, 0.06);
            border: 1px solid rgba(0, 255, 255, 0.22);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.25s ease;
            gap: 4px;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 8px;
            letter-spacing: .5px;
        }

        .header-action-button:hover {
            background: rgba(0, 255, 255, 0.16);
            border-color: rgba(0, 255, 255, 0.55);
            box-shadow: 0 0 24px rgba(0, 255, 255, 0.12);
        }

        .header-action-button svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .header-shop-button {
            border-color: rgba(0, 255, 136, 0.55);
            color: #00ff88;
            background: rgba(0, 255, 136, 0.10);
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
        }

        .header-shop-button:hover {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.18);
        }

        .user-status .arrow-down {
            appearance: none;
            -webkit-appearance: none;
            width: 40px;
            height: 40px;
            min-width: 40px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.3);
            line-height: 1;
            cursor: pointer;
            transition: transform 0.3s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
            margin-left: 4px;
        }

        .user-status .arrow-down:hover,
        .user-status .arrow-down:focus-visible {
            color: #00ffff;
            border-color: rgba(0, 255, 255, 0.34);
            background: rgba(0, 255, 255, 0.09);
            outline: none;
        }

        .user-status .arrow-down.open {
            transform: rotate(180deg);
        }

        .user-dropdown {
            display: none;
            position: absolute;
            top: 110%;
            right: 0;
            min-width: 220px;
            background: rgba(10, 10, 15, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(0, 255, 255, 0.15);
            border-radius: 10px;
            padding: 8px 0;
            box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 255, 0.03);
            z-index: 50;
            animation: dropdownIn 0.2s ease;
        }

        .user-dropdown.open {
            display: block;
        }

        @keyframes dropdownIn {
            from {
                opacity: 0;
                transform: translateY(-10px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .user-dropdown .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 20px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .user-dropdown .dropdown-item:hover {
            background: rgba(0, 255, 255, 0.08);
            color: #fff;
        }

        .user-dropdown .dropdown-item .icon {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

        .user-dropdown .dropdown-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.05);
            margin: 4px 15px;
        }

        .user-dropdown .dropdown-item.danger {
            color: #ff6b6b;
        }

        .user-dropdown .dropdown-item.danger:hover {
            background: rgba(255, 0, 0, 0.08);
            color: #ff6b6b;
        }

        /* Основной контент */
        .main-content {
            padding: 40px;
            position: relative;
            z-index: 1;
        }

        .section-title {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #00ffff;
            text-transform: uppercase;
            letter-spacing: 4px;
            margin-bottom: 30px;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, rgba(0, 255, 255, 0.5), transparent);
        }

        /* Горизонтальный скролл контейнер */
        .scroll-wrapper {
            position: relative;
            overflow: hidden;
            margin-bottom: 20px;
            padding: 10px 0;
        }

        .scroll-container {
            display: flex;
            gap: 25px;
            overflow-x: auto;
            overflow-y: visible;
            padding: 20px 10px 30px 10px;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            cursor: grab;
            scrollbar-width: auto;
            scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
        }

        .scroll-container::-webkit-scrollbar {
            height: 6px;
        }

        .scroll-container::-webkit-scrollbar-track {
            background: rgba(0, 255, 255, 0.05);
            border-radius: 3px;
        }

        .scroll-container::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, #00ffff, #0088ff);
            border-radius: 3px;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
        }

        /* Элемент скролла */
        .scroll-item {
            flex: 0 0 280px;
            height: 350px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(0, 255, 255, 0.15);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            transition: all 0.4s ease;
            cursor: pointer;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        }

        .scroll-item:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: rgba(0, 255, 255, 0.5);
            box-shadow: 0 0 50px rgba(0, 255, 255, 0.15), inset 0 0 50px rgba(0, 255, 255, 0.05);
        }

        .scroll-item.is-disabled {
            cursor: not-allowed;
            opacity: 0.42;
            filter: grayscale(0.7);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .scroll-item.is-disabled:hover {
            transform: none;
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        }

        .scroll-item.is-disabled:hover .item-image {
            transform: none;
        }

        .development-badge {
            position: absolute;
            top: 14px;
            right: 14px;
            z-index: 4;
            padding: 7px 10px;
            border: 1px solid rgba(255, 255, 255, .28);
            border-radius: 999px;
            background: rgba(9, 11, 16, .82);
            color: rgba(255, 255, 255, .88);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: .07em;
            text-transform: uppercase;
        }

        .scroll-item .item-image {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            position: relative;
            transition: transform 0.5s ease;
        }

        .scroll-item .item-cover-image {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
            pointer-events: none;
            -webkit-user-drag: none;
        }

        .scroll-item:hover .item-image {
            transform: scale(1.05);
        }

        .scroll-item .item-image .fallback {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(30, 30, 50, 0.9);
            color: #00ffff;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 18px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            border: 2px dashed rgba(0, 255, 255, 0.2);
            text-align: center;
            padding: 20px;
        }

        .scroll-item .item-image .fallback .game-number {
            font-size: 48px;
            opacity: 0.3;
            margin-bottom: 10px;
        }

        .scroll-item .item-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            transform: translateY(30px);
            opacity: 0;
            transition: all 0.4s ease;
        }

        .scroll-item:hover .item-overlay {
            transform: translateY(0);
            opacity: 1;
        }

        .scroll-item .item-overlay h3 {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 5px;
            text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
        }

        .scroll-item .item-overlay p {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
        }

        .scroll-item .item-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0, 255, 255, 0.2);
            border: 1px solid rgba(0, 255, 255, 0.3);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 10px;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: #00ffff;
            letter-spacing: 1px;
            backdrop-filter: blur(5px);
            text-align: left;
            line-height: 1.35;
            white-space: normal;
        }

        .game-price-badge {
            position: absolute;
            left: 15px;
            bottom: 15px;
            z-index: 7;
            padding: 5px 11px;
            border-radius: 14px;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 10px;
            letter-spacing: 0.5px;
            color: #ffe17a;
            background: rgba(30, 25, 5, 0.78);
            border: 1px solid rgba(255, 225, 122, 0.28);
            backdrop-filter: blur(5px);
        }

        .game-price-badge.free {
            color: #00ff88;
            background: rgba(0, 40, 25, 0.78);
            border-color: rgba(0, 255, 136, 0.25);
        }

        .game-price-badge.purchased {
            color: #00ff88;
            background: rgba(0, 40, 25, 0.82);
            border-color: rgba(0, 255, 136, 0.3);
            font-size: 16px;
            line-height: 1;
        }

        .modal-price {
            margin: -8px 0 22px 0;
            padding: 10px 14px;
            border: 1px solid rgba(0, 255, 255, 0.14);
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.25);
            color: #ffe17a;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 13px;
            letter-spacing: 0.5px;
        }

        .modal-price.purchased {
            color: #00ff88;
        }

        /* Кнопка "Магазин" */
        .more-btn-wrapper {
            display: flex;
            justify-content: center;
            padding: 20px 0 10px 0;
        }

        .more-btn {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 16px;
            font-weight: 700;
            color: #00ffff;
            background: rgba(0, 255, 255, 0.05);
            border: 1px solid rgba(0, 255, 255, 0.3);
            padding: 15px 50px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 3px;
            position: relative;
            overflow: hidden;
        }

        .more-btn:hover {
            background: rgba(0, 255, 255, 0.15);
            box-shadow: 0 0 40px rgba(0, 255, 255, 0.1);
            transform: scale(1.02);
        }

        .more-btn::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #00ffff, #0088ff, #00ffff);
            background-size: 400% 400%;
            border-radius: 8px;
            z-index: -1;
            animation: borderGlow 3s ease infinite;
            opacity: 0.3;
        }

        @keyframes borderGlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Подвал */
        .footer {
            margin-top: 60px;
            padding: 40px 40px 20px 40px;
            border-top: 1px solid rgba(0, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
        }

        .footer-column h4 {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 14px;
            color: #00ffff;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .footer-column a {
            display: block;
            color: rgba(255, 255, 255, 0.5);
            text-decoration: none;
            font-size: 14px;
            padding: 5px 0;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .footer-column a:hover {
            color: #00ffff;
            padding-left: 10px;
        }

        .footer-bottom {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 255, 255, 0.05);
            text-align: center;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.3);
        }

        /* Модальное окно для игр */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: rgba(20, 20, 40, 0.95);
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 16px;
            padding: 40px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0 0 60px rgba(0, 255, 255, 0.1);
            animation: modalIn 0.3s ease;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal::-webkit-scrollbar {
            width: 4px;
        }

        .modal::-webkit-scrollbar-track {
            background: rgba(0, 255, 255, 0.05);
            border-radius: 2px;
        }

        .modal::-webkit-scrollbar-thumb {
            background: #00ffff;
            border-radius: 2px;
        }

        @keyframes modalIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .modal h2 {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 24px;
            color: #00ffff;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }

        .modal p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 16px;
            margin-bottom: 25px;
            line-height: 1.6;
            text-align: left;
            white-space: pre-wrap;
            word-wrap: break-word;
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        .modal .btn-close {
            padding: 10px 40px;
            background: rgba(0, 255, 255, 0.1);
            border: 1px solid rgba(0, 255, 255, 0.3);
            color: #00ffff;
            border-radius: 8px;
            cursor: pointer;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 14px;
            transition: all 0.3s ease;
            letter-spacing: 1px;
        }

        .modal .btn-close:hover {
            background: rgba(0, 255, 255, 0.2);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
        }

        .modal .btn-play {
            padding: 10px 40px;
            background: linear-gradient(135deg, #00ffff, #0088ff);
            border: none;
            color: #0a0a0f;
            border-radius: 8px;
            cursor: pointer;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 14px;
            font-weight: 700;
            transition: all 0.3s ease;
            letter-spacing: 1px;
            margin-right: 10px;
        }

        .modal .btn-play:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
        }

        .modal .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .support-qr-placeholder {
            width: 170px;
            height: 170px;
            margin: 0 auto 18px auto;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px dashed rgba(0, 255, 255, 0.45);
            border-radius: 14px;
            background:
                linear-gradient(45deg, rgba(0, 255, 255, 0.06) 25%, transparent 25%, transparent 75%, rgba(0, 255, 255, 0.06) 75%),
                linear-gradient(45deg, rgba(0, 255, 255, 0.06) 25%, transparent 25%, transparent 75%, rgba(0, 255, 255, 0.06) 75%);
            background-size: 24px 24px;
            background-position: 0 0, 12px 12px;
            color: #00ffff;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 22px;
            letter-spacing: 3px;
        }

        .support-user-id {
            margin: 0 0 22px 0;
            padding: 10px 12px;
            border: 1px solid rgba(0, 255, 255, 0.14);
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.65);
            font-family: 'Courier New', monospace;
            overflow-wrap: anywhere;
        }

        /* Модальное окно для документов */
        .doc-modal-content {
            text-align: left;
        }

        .doc-modal-content p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            line-height: 1.8;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-height: 50vh;
            overflow-y: auto;
            padding-right: 10px;
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        .doc-modal-content p::-webkit-scrollbar {
            width: 4px;
        }

        .doc-modal-content p::-webkit-scrollbar-track {
            background: rgba(0, 255, 255, 0.05);
            border-radius: 2px;
        }

        .doc-modal-content p::-webkit-scrollbar-thumb {
            background: #00ffff;
            border-radius: 2px;
        }

        .rules-list {
            text-align: left;
            color: rgba(255, 255, 255, 0.8);
            font-size: 14px;
            line-height: 2;
            padding-left: 20px;
            margin-bottom: 20px;
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        .rules-title {
            color: #00ffff;
            margin-bottom: 15px;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        .rules-intro {
            margin-bottom: 15px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
        }

        .rules-danger {
            color: #ff6b6b;
        }

        .rules-updated {
            margin-top: 15px;
            color: rgba(255, 255, 255, 0.3);
            font-size: 12px;
            text-align: center;
        }

        .games-load-error {
            color: #ff4444;
            text-align: center;
            padding: 40px;
            font-size: 18px;
        }

        .fallback-game-type {
            margin-top: 5px;
            font-size: 12px;
            opacity: 0.5;
        }

        .fallback-game-name {
            margin-top: 5px;
            font-size: 14px;
        }

        .rules-list li {
            margin-bottom: 8px;
        }

        .rules-highlight {
            color: #00ffff;
            font-weight: 600;
        }

        .rules-warning {
            color: #ff6b6b;
            font-weight: 600;
            text-align: center;
            font-size: 16px;
            margin-top: 20px;
            padding: 15px;
            border: 1px solid rgba(255, 107, 107, 0.3);
            border-radius: 8px;
            background: rgba(255, 107, 107, 0.05);
        }

        /* ============================================================
           АДАПТИВНОСТЬ
        ============================================================ */
        @media (max-width: 768px) {
            .header {
                padding: 15px 20px;
            }

            .logo-text {
                font-size: 20px;
                letter-spacing: 2px;
            }

            .logo img {
                height: 35px;
            }

            .user-status {
                font-size: 10px;
                padding: 5px 12px;
            }

            .user-status .id-value {
                font-size: 11px;
            }

            .main-content {
                padding: 20px;
            }

            .section-title {
                font-size: 18px;
                letter-spacing: 2px;
            }

            .scroll-item {
                flex: 0 0 220px;
                height: 280px;
            }

            .scroll-container {
                gap: 15px;
                padding: 10px 5px 20px 5px;
            }

            .more-btn {
                font-size: 12px;
                padding: 12px 30px;
            }

            .footer {
                padding: 30px 20px 15px 20px;
            }

            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }

            .scroll-item .item-overlay h3 {
                font-size: 14px;
            }

            .scroll-item .item-image .fallback .game-number {
                font-size: 32px;
            }

            .modal {
                padding: 30px 20px;
            }

            .modal h2 {
                font-size: 20px;
            }

            .rules-list {
                font-size: 13px;
                padding-left: 15px;
            }

            .user-dropdown {
                min-width: 180px;
                right: -10px;
            }

            .scroll-item .item-badge {
                top: 12px;
                left: 12px;
                font-size: 9px;
                padding: 3px 10px;
            }
        }

        @media (max-width: 480px) {
            .header {
                flex-direction: column;
                align-items: flex-start;
            }

            .header-right {
                width: 100%;
                flex-wrap: wrap;
                justify-content: flex-end;
                gap: 6px;
            }

            .header-right .user-menu {
                flex: 1 0 100%;
                width: 100%;
            }

            .logo-text {
                font-size: 18px;
                letter-spacing: 2px;
            }

            .logo img {
                height: 30px;
            }

            .user-status {
                font-size: 9px;
                width: 100%;
                justify-content: space-between;
                gap: 4px;
                padding: 5px 8px;
                letter-spacing: .5px;
            }

            .user-status .id-value {
                display: inline-block;
                max-width: 120px;
                overflow: hidden;
                text-overflow: ellipsis;
                vertical-align: bottom;
                white-space: nowrap;
                font-size: 10px;
            }

            .header-action-button {
                width: 52px;
                min-height: 48px;
                font-size: 7px;
            }

            .main-content {
                padding: 15px;
            }

            .section-title {
                font-size: 16px;
                letter-spacing: 1px;
                margin-bottom: 20px;
            }

            .section-title::after {
                display: none;
            }

            .scroll-wrapper {
                padding: 5px 0;
            }

            .scroll-container {
                gap: 12px;
                padding: 10px 5px 15px 5px;
            }

            .scroll-item {
                flex: 0 0 160px;
                height: 220px;
                border-radius: 10px;
            }

            .scroll-item .item-image .fallback {
                font-size: 14px;
                padding: 15px;
            }

            .scroll-item .item-image .fallback .game-number {
                font-size: 28px;
            }

            .scroll-item .item-badge {
                top: 10px;
                left: 10px;
                font-size: 8px;
                padding: 2px 8px;
                border-radius: 12px;
            }

            .scroll-item .item-overlay {
                padding: 12px 15px;
                transform: translateY(20px);
            }

            .scroll-item .item-overlay h3 {
                font-size: 12px;
                margin-bottom: 2px;
            }

            .scroll-item .item-overlay p {
                font-size: 10px;
            }

            .more-btn {
                font-size: 11px;
                padding: 10px 20px;
                letter-spacing: 1px;
            }

            .footer {
                padding: 20px 15px 10px 15px;
                margin-top: 30px;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 15px;
            }

            .footer-column a:hover {
                padding-left: 0;
            }

            .footer-column h4 {
                font-size: 13px;
                margin-bottom: 8px;
            }

            .footer-column a {
                font-size: 12px;
                padding: 3px 0;
            }

            .rules-list {
                font-size: 12px;
                padding-left: 10px;
            }

            .user-dropdown {
                min-width: 150px;
                right: -5px;
            }

            .user-dropdown .dropdown-item {
                font-size: 12px;
                padding: 8px 14px;
            }

            .user-dropdown .dropdown-item .icon {
                font-size: 14px;
                width: 18px;
            }

            .modal {
                padding: 25px 15px;
                max-width: 95%;
            }

            .modal h2 {
                font-size: 18px;
            }

            .modal p {
                font-size: 14px;
            }

            .modal .btn-play,
            .modal .btn-close {
                font-size: 12px;
                padding: 8px 25px;
            }
        }

        /* Очень маленькие экраны */
        @media (max-width: 360px) {
            .scroll-item {
                flex: 0 0 140px;
                height: 190px;
            }

            .scroll-item .item-badge {
                font-size: 7px;
                padding: 2px 6px;
                top: 8px;
                left: 8px;
            }

            .scroll-item .item-overlay h3 {
                font-size: 11px;
            }

            .scroll-item .item-overlay p {
                font-size: 9px;
            }

            .scroll-item .item-image .fallback .game-number {
                font-size: 22px;
            }
        }

        /* Анимация появления */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .scroll-item {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }

        .scroll-item:nth-child(1) { animation-delay: 0.1s; }
        .scroll-item:nth-child(2) { animation-delay: 0.2s; }
        .scroll-item:nth-child(3) { animation-delay: 0.3s; }
        .scroll-item:nth-child(4) { animation-delay: 0.4s; }
        .scroll-item:nth-child(5) { animation-delay: 0.5s; }
        .scroll-item:nth-child(6) { animation-delay: 0.6s; }
        .scroll-item:nth-child(7) { animation-delay: 0.7s; }
        .scroll-item:nth-child(8) { animation-delay: 0.8s; }
        .scroll-item:nth-child(9) { animation-delay: 0.9s; }
        .scroll-item:nth-child(10) { animation-delay: 1.0s; }

        .cookie-notice {
            position: fixed;
            left: 20px;
            right: 20px;
            bottom: 20px;
            z-index: 12000;
            max-width: 880px;
            margin: 0 auto;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            color: rgba(255, 255, 255, 0.86);
            background: rgba(8, 10, 20, 0.97);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 12px;
            box-shadow: 0 0 34px rgba(0, 255, 255, 0.12);
            font-size: 14px;
            line-height: 1.45;
        }

        .cookie-notice[hidden] { display: none; }
        .cookie-notice a { color: #00ffff; }
        .cookie-notice button {
            flex: 0 0 auto;
            padding: 9px 22px;
            color: #061016;
            background: #00ffff;
            border: 0;
            border-radius: 7px;
            font: 700 13px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            cursor: pointer;
        }

        .profile-field {
            margin: 20px 0 12px;
            text-align: left;
        }

        .profile-field label {
            display: block;
            margin-bottom: 8px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
        }

        .profile-field input {
            width: 100%;
            padding: 12px 14px;
            color: #fff;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(0, 255, 255, 0.35);
            border-radius: 7px;
            font: 600 16px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            outline: none;
        }

        .profile-field input:focus {
            border-color: #00ffff;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
        }

        .profile-hint,
        .profile-user-id {
            color: rgba(255, 255, 255, 0.45);
            font-size: 13px;
            line-height: 1.4;
        }

        /* VIP рядом с данными пользователя */
        .vip-badge {
            display: none;
            min-width: 62px;
            padding: 7px 10px;
            color: #d6e1ec;
            background: rgba(160, 175, 190, 0.08);
            border: 1px solid rgba(190, 205, 220, 0.24);
            border-radius: 16px;
            font: 700 10px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            letter-spacing: 0.8px;
            white-space: nowrap;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .vip-badge.visible { display: inline-flex; align-items: center; justify-content: center; }
        .vip-badge:hover { transform: translateY(-1px); }
        .vip-badge.level-1 {
            color: #8fffd1;
            border-color: rgba(0, 255, 136, 0.42);
            box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
        }
        .vip-badge.level-2 {
            color: #76dcff;
            border-color: rgba(0, 190, 255, 0.48);
            box-shadow: 0 0 18px rgba(0, 190, 255, 0.15);
        }
        .vip-badge.level-3 {
            color: #f4c7ff;
            border-color: rgba(212, 91, 255, 0.55);
            box-shadow: 0 0 22px rgba(212, 91, 255, 0.22);
        }

        /* Встроенная регистрация */
        .registration-modal { width: min(540px, 94vw); }
        .registration-modal .registration-subtitle {
            margin-bottom: 20px;
            text-align: center;
            color: rgba(255, 255, 255, 0.55);
        }
        .registration-oauth {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 18px;
        }
        .oauth-button {
            position: relative;
            display: flex;
            min-height: 50px;
            padding: 10px 13px;
            align-items: center;
            justify-content: center;
            gap: 9px;
            overflow: hidden;
            color: #fff;
            border: 1px solid transparent;
            border-radius: 9px;
            font: 700 14px/1.25 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
        }
        .oauth-button::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(120deg, rgba(255,255,255,0.13), transparent 46%);
        }
        .oauth-button:hover {
            transform: translateY(-1px);
            filter: brightness(1.08);
        }
        .oauth-button:active { transform: translateY(0); }
        .oauth-button:focus-visible {
            outline: 2px solid #00ffff;
            outline-offset: 3px;
        }
        .oauth-button--vk {
            background: linear-gradient(135deg, #087bdf, #0077ff);
            border-color: rgba(126, 195, 255, 0.5);
            box-shadow: 0 8px 24px rgba(0, 119, 255, 0.17);
        }
        .oauth-button--yandex {
            background: linear-gradient(135deg, #2a2a2f, #111116);
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
        }
        .oauth-button-mark {
            position: relative;
            z-index: 1;
            display: inline-flex;
            min-width: 28px;
            height: 28px;
            padding: 0 4px;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            color: #fff;
            background: rgba(255, 255, 255, 0.16);
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 8px;
            font-size: 11px;
            letter-spacing: -0.3px;
        }
        .oauth-button-mark--yandex {
            color: #fff;
            background: #fc3f1d;
            border-color: #fc3f1d;
            font-size: 17px;
        }
        .oauth-button > span:last-child { position: relative; z-index: 1; }
        .registration-separator {
            display: flex;
            margin: 0 0 16px;
            align-items: center;
            gap: 10px;
            color: rgba(255, 255, 255, 0.4);
            font-size: 12px;
            white-space: nowrap;
        }
        .registration-separator::before,
        .registration-separator::after {
            content: '';
            height: 1px;
            flex: 1 1 auto;
            background: rgba(255, 255, 255, 0.12);
        }
        .registration-step[hidden] { display: none; }
        .registration-field { margin-bottom: 16px; text-align: left; }
        .registration-field label,
        .support-field label {
            display: block;
            margin-bottom: 7px;
            color: rgba(255, 255, 255, 0.66);
            font-size: 14px;
        }
        .registration-field input,
        .support-field input {
            width: 100%;
            padding: 13px 15px;
            color: #fff;
            background: rgba(0, 0, 0, 0.38);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 8px;
            font: 600 16px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            outline: none;
        }
        .registration-field input:focus,
        .support-field input:focus {
            border-color: #00ffff;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
        }
        .registration-message,
        .support-message {
            display: none;
            margin: 14px 0;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.45;
            text-align: left;
        }
        .registration-message.visible,
        .support-message.visible { display: block; }
        .registration-message.info,
        .support-message.info {
            color: #8eeeff;
            background: rgba(0, 200, 255, 0.08);
            border: 1px solid rgba(0, 200, 255, 0.2);
        }
        .registration-message.success,
        .support-message.success {
            color: #7dffb7;
            background: rgba(0, 255, 136, 0.08);
            border: 1px solid rgba(0, 255, 136, 0.22);
        }
        .registration-message.error,
        .support-message.error {
            color: #ff8585;
            background: rgba(255, 70, 70, 0.08);
            border: 1px solid rgba(255, 70, 70, 0.22);
        }
        .registration-note {
            margin: 14px 0 0 !important;
            color: rgba(255, 255, 255, 0.4) !important;
            font-size: 13px !important;
            text-align: center !important;
        }
        .registration-code-row { display: flex; gap: 10px; align-items: stretch; }
        .registration-code-row input { flex: 1; }
        .registration-timer {
            min-height: 20px;
            margin: 9px 0 4px;
            color: rgba(255, 255, 255, 0.42);
            font-size: 13px;
            text-align: center;
        }

        /* Пожертвование и VIP-прогресс */
        .support-modal { width: min(570px, 94vw); }
        .support-user-id { margin-bottom: 16px; }
        .support-presets {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            margin: 10px 0 16px;
        }
        .support-preset {
            padding: 9px 6px;
            color: #00ffff;
            background: rgba(0, 255, 255, 0.06);
            border: 1px solid rgba(0, 255, 255, 0.22);
            border-radius: 7px;
            font: 700 12px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            cursor: pointer;
        }
        .support-preset:hover { background: rgba(0, 255, 255, 0.14); }
        .support-explanation {
            margin-bottom: 16px !important;
            font-size: 14px !important;
            color: rgba(255, 255, 255, 0.58) !important;
        }
        .modal button:disabled {
            opacity: 0.48;
            cursor: wait;
            transform: none !important;
        }
        .vip-summary {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin: 18px 0;
        }
        .vip-stat {
            padding: 12px 8px;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(0, 255, 255, 0.12);
            border-radius: 8px;
            text-align: center;
        }
        .vip-stat span { display: block; color: rgba(255,255,255,0.43); font-size: 11px; }
        .vip-stat strong { display: block; margin-top: 5px; color: #fff; font-size: 15px; }
        .vip-progress-track {
            height: 14px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(0, 255, 255, 0.16);
            border-radius: 999px;
        }
        .vip-progress-fill {
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, #00ffff, #0088ff, #c45dff);
            border-radius: inherit;
            transition: width 0.5s ease;
        }
        .vip-progress-caption {
            margin: 10px 0 20px !important;
            color: rgba(255,255,255,0.55) !important;
            font-size: 13px !important;
            text-align: center !important;
        }

        @media (max-width: 600px) {
            .vip-badge { min-width: 52px; padding: 6px 8px; font-size: 9px; }
            .registration-oauth { grid-template-columns: 1fr; }
            .registration-code-row { flex-direction: column; }
            .support-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .vip-summary { grid-template-columns: 1fr; }
        }

        @media (max-width: 600px) {
            .cookie-notice {
                left: 10px;
                right: 10px;
                bottom: 10px;
                flex-direction: column;
                align-items: stretch;
            }
        }

        /* ============================================================
           МОБИЛЬНАЯ КОМПОНОВКА 2026.09.26
        ============================================================ */
        html {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        button,
        a,
        input {
            touch-action: manipulation;
        }

        @media (max-width: 680px) {
            .site-wrapper {
                background-attachment: scroll;
            }

            .header {
                display: grid;
                grid-template-columns: minmax(0, 1fr);
                align-items: stretch;
                gap: 10px;
                padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
            }

            .logo {
                width: 100%;
                min-width: 0;
                justify-content: center;
            }

            .logo img {
                width: min(58vw, 220px);
                height: auto;
                max-height: 68px;
            }

            .header-right {
                width: 100%;
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                align-items: stretch;
                gap: 8px;
            }

            .header-right .user-menu {
                grid-column: 1 / -1;
                width: 100%;
                min-width: 0;
            }

            .user-status {
                width: 100%;
                min-height: 54px;
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto auto auto auto;
                align-items: center;
                justify-content: initial;
                gap: 6px;
                padding: 7px 9px;
                border-radius: 8px;
                letter-spacing: 0;
            }

            .account-identity {
                overflow: hidden;
            }

            .user-status .id-label {
                display: block;
                margin-bottom: 2px;
                font-size: 9px;
                line-height: 1;
                letter-spacing: .5px;
            }

            .user-status .id-value {
                display: block;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-size: 11px;
            }

            .user-status .account-divider {
                display: none;
            }

            .currency-balance {
                min-width: 48px;
                gap: 3px;
            }

            .currency-balance-icon,
            .currency-balance-icon.book-icon {
                width: 28px;
                height: 28px;
            }

            .user-status .balance-value {
                font-size: 12px;
                letter-spacing: 0;
            }

            .vip-badge {
                min-width: 45px;
                padding: 6px 7px;
                font-size: 9px;
            }

            .user-status .arrow-down {
                margin-left: 0;
            }

            .header-action-button {
                width: 100%;
                min-height: 46px;
                padding: 7px 12px;
                flex-direction: row;
                gap: 7px;
                border-radius: 8px;
                font-size: 11px;
                letter-spacing: .4px;
            }

            .header-action-button svg {
                width: 19px;
                height: 19px;
            }

            .user-dropdown {
                top: calc(100% + 6px);
                left: 0;
                right: 0;
                width: 100%;
                min-width: 0;
            }

            .user-dropdown .dropdown-item {
                min-height: 44px;
                padding: 10px 14px;
                font-size: 13px;
            }

            .main-content {
                padding: 22px 12px 12px;
            }

            .section-title {
                margin-bottom: 12px;
                font-size: 18px;
                line-height: 1.25;
                letter-spacing: 1.2px;
            }

            .section-title::after {
                display: none;
            }

            .scroll-wrapper {
                margin: 0 -12px 10px;
                padding: 2px 0 8px;
            }

            .scroll-container {
                gap: 12px;
                padding: 10px 12px 18px;
                scroll-snap-type: x mandatory;
                scroll-padding-inline: 12px;
                overscroll-behavior-inline: contain;
            }

            .scroll-item,
            .scroll-item:hover {
                flex: 0 0 min(76vw, 280px);
                width: min(76vw, 280px);
                height: auto;
                aspect-ratio: 4 / 5;
                scroll-snap-align: center;
                transform: none;
                border-radius: 12px;
            }

            .scroll-item .item-image,
            .scroll-item:hover .item-image {
                transform: none;
            }

            .scroll-item .item-overlay,
            .scroll-item:hover .item-overlay {
                padding: 48px 14px 14px;
                opacity: 1;
                transform: none;
                background: linear-gradient(transparent 0%, rgba(0, 0, 0, .22) 30%, rgba(0, 0, 0, .94) 100%);
            }

            .scroll-item .item-overlay h3 {
                font-size: 15px;
            }

            .scroll-item .item-overlay p {
                font-size: 11px;
                line-height: 1.35;
            }

            .scroll-item .item-badge {
                top: 10px;
                left: 10px;
                max-width: calc(100% - 20px);
                padding: 3px 8px;
                font-size: 8px;
            }

            .development-badge {
                top: 10px;
                right: 10px;
                padding: 5px 7px;
                font-size: 8px;
            }

            .game-price-badge {
                top: 42px;
                bottom: auto;
                left: 10px;
                padding: 4px 9px;
                font-size: 9px;
            }

            .more-btn-wrapper {
                padding: 14px 0 4px;
            }

            .more-btn {
                width: 100%;
                min-height: 48px;
                padding: 12px 16px;
                font-size: 12px;
                letter-spacing: 1.3px;
            }

            .footer {
                margin-top: 28px;
                padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 18px;
                text-align: center;
            }

            .footer-column a {
                min-height: 34px;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 5px 0;
            }

            .footer-column a:hover {
                padding-left: 0;
            }

            .footer-bottom {
                margin-top: 18px;
                padding-top: 14px;
                line-height: 1.6;
            }

            .modal-overlay {
                align-items: center;
                overflow-y: auto;
                padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
            }

            .modal {
                width: 100%;
                max-width: 100%;
                max-height: calc(100dvh - 24px);
                padding: 22px 16px;
                border-radius: 14px;
            }

            .modal h2 {
                margin-bottom: 12px;
                font-size: 19px;
                line-height: 1.25;
                letter-spacing: 1px;
            }

            .modal p {
                margin-bottom: 18px;
                font-size: 14px;
                line-height: 1.5;
            }

            .modal .modal-buttons {
                flex-direction: column;
                gap: 9px;
            }

            .modal .btn-play,
            .modal .btn-close,
            .modal .modal-buttons > button {
                width: 100%;
                min-height: 44px;
                margin: 0;
                padding: 10px 14px;
            }

            .registration-field input,
            .support-field input,
            .profile-field input {
                min-height: 46px;
                font-size: 16px;
            }

            .registration-code-row {
                flex-direction: column;
            }

            .support-presets {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .vip-summary {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 6px;
            }

            .vip-stat {
                padding: 10px 5px;
            }

            .vip-stat span {
                font-size: 9px;
            }

            .vip-stat strong {
                font-size: 13px;
            }

            .doc-modal-content p {
                max-height: 58dvh;
                padding-right: 5px;
                font-size: 13px;
                line-height: 1.6;
            }

            .cookie-notice {
                left: 8px;
                right: 8px;
                bottom: calc(8px + env(safe-area-inset-bottom));
                max-height: calc(100dvh - 16px);
                overflow-y: auto;
                padding: 13px;
                gap: 12px;
                font-size: 12px;
            }

            .cookie-notice button {
                width: 100%;
                min-height: 42px;
            }
        }

        @media (max-width: 360px) {
            .user-status {
                grid-template-columns: minmax(0, 1fr) auto auto auto;
            }

            .vip-badge.visible {
                grid-row: 2;
                grid-column: 1;
                justify-self: start;
                margin-top: 4px;
            }

            .currency-balance {
                min-width: 43px;
            }

            .currency-balance-icon,
            .currency-balance-icon.book-icon {
                width: 25px;
                height: 25px;
            }

            .scroll-item,
            .scroll-item:hover {
                flex-basis: 82vw;
                width: 82vw;
            }
        }

        @media (hover: none), (pointer: coarse) {
            .site-wrapper {
                background-attachment: scroll;
            }

            .scroll-container {
                scroll-behavior: auto;
            }

            .scroll-item,
            .scroll-item:hover {
                animation: none;
                opacity: 1;
                transition: none;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: #111522;
                box-shadow: 0 10px 26px rgba(0, 0, 0, .42);
                contain: paint;
            }

            .scroll-item:hover {
                transform: none;
            }

            .scroll-item.is-disabled,
            .scroll-item.is-disabled:hover {
                filter: none;
            }

            .scroll-item .item-image,
            .scroll-item:hover .item-image {
                transition: none;
            }

            .scroll-item .item-badge {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(0, 34, 48, .9);
            }

            .scroll-item .item-overlay {
                opacity: 1;
                transform: none;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .01ms !important;
            }
        }

        /* ============================================================
           ДОКУМЕНТЫ, ОФЕРТА И VIP — 2026.09.27.1
        ============================================================ */
        @media (hover: hover) and (pointer: fine) {
            .game-price-badge {
                transition: transform .4s ease, opacity .3s ease;
            }

            .scroll-item:hover .game-price-badge {
                transform: translateY(calc(100% + 20px));
                opacity: 0;
                pointer-events: none;
            }
        }

        .payment-offer-consent {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 16px 0 4px;
            padding: 13px 14px;
            border: 1px solid rgba(0, 255, 255, .18);
            border-radius: 8px;
            background: rgba(0, 0, 0, .24);
            color: rgba(255, 255, 255, .72);
            font-size: 13px;
            line-height: 1.45;
            text-align: left;
            cursor: pointer;
        }

        .payment-offer-consent input,
        .legal-consent-check input {
            flex: 0 0 auto;
            width: 18px;
            height: 18px;
            margin: 1px 0 0;
            accent-color: #00ffff;
        }

        .payment-offer-consent a,
        .legal-consent-panel a {
            color: #00ffff;
            text-decoration-thickness: 1px;
            text-underline-offset: 2px;
        }

        .vip-benefits {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 18px;
            text-align: left;
        }

        .vip-benefit {
            padding: 13px;
            border: 1px solid rgba(255, 255, 255, .1);
            border-radius: 9px;
            background: rgba(255, 255, 255, .025);
            opacity: .62;
            transition: border-color .25s ease, background .25s ease, opacity .25s ease;
        }

        .vip-benefit strong,
        .vip-benefit span {
            display: block;
        }

        .vip-benefit strong {
            margin-bottom: 6px;
            color: #00ffff;
            font-size: 13px;
        }

        .vip-benefit span {
            color: rgba(255, 255, 255, .64);
            font-size: 11px;
            line-height: 1.45;
        }

        .vip-benefit.unlocked {
            border-color: rgba(0, 255, 136, .24);
            background: rgba(0, 255, 136, .055);
            opacity: .86;
        }

        .vip-benefit.current {
            border-color: rgba(0, 255, 255, .52);
            background: rgba(0, 255, 255, .09);
            box-shadow: 0 0 20px rgba(0, 255, 255, .08);
            opacity: 1;
        }

        .vip-base-note {
            margin: 11px 0 0;
            color: rgba(255, 255, 255, .42);
            font-size: 11px;
            line-height: 1.45;
        }

        html.legal-consent-open,
        body.legal-consent-open {
            overflow: hidden;
        }

        .legal-consent-overlay {
            position: fixed;
            inset: 0;
            z-index: 20000;
            display: grid;
            place-items: center;
            padding: 20px;
            overflow-y: auto;
            background: rgba(0, 0, 0, .88);
            backdrop-filter: blur(10px);
        }

        .legal-consent-overlay[hidden] {
            display: none;
        }

        .legal-consent-panel {
            width: min(620px, 100%);
            padding: 28px;
            border: 1px solid rgba(0, 255, 255, .35);
            border-radius: 16px;
            background: #111225;
            box-shadow: 0 0 48px rgba(0, 255, 255, .13);
            color: rgba(255, 255, 255, .75);
        }

        .legal-consent-panel h2 {
            margin: 0 0 14px;
            color: #00ffff;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 25px;
            letter-spacing: 1px;
            text-align: center;
        }

        .legal-consent-panel p,
        .legal-consent-panel li {
            font-size: 14px;
            line-height: 1.55;
        }

        .legal-consent-panel ul {
            margin: 12px 0 18px;
            padding-left: 23px;
        }

        .legal-consent-panel li + li {
            margin-top: 6px;
        }

        .legal-consent-check {
            display: flex;
            align-items: flex-start;
            gap: 11px;
            padding: 14px;
            border: 1px solid rgba(0, 255, 255, .18);
            border-radius: 9px;
            background: rgba(0, 0, 0, .24);
            font-size: 13px;
            line-height: 1.5;
            cursor: pointer;
        }

        .legal-consent-message {
            min-height: 21px;
            margin: 10px 0;
            color: rgba(255, 255, 255, .55);
            text-align: center;
        }

        .legal-consent-message.error {
            color: #ff8686;
        }

        .legal-consent-accept {
            display: block;
            min-width: 150px;
            margin: 4px auto 0;
            padding: 11px 25px;
            border: 1px solid #00ffff;
            border-radius: 8px;
            background: rgba(0, 255, 255, .12);
            color: #00ffff;
            font: 700 14px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            cursor: pointer;
        }

        .legal-consent-accept:disabled {
            opacity: .42;
            cursor: not-allowed;
        }

        @media (max-width: 680px) {
            .vip-benefits {
                grid-template-columns: 1fr;
            }

            .legal-consent-overlay {
                align-items: start;
                padding: 12px;
            }

            .legal-consent-panel {
                margin: 8px 0;
                padding: 20px 17px;
            }

            .legal-consent-panel h2 {
                font-size: 21px;
            }
        }

        /* ============================================================
           ОБЛОЖКА В ОКНЕ ИСТОРИИ — ЛЁГКОЕ ПОЯВЛЕНИЕ
        ============================================================ */
        html {
            scrollbar-gutter: stable;
        }

        body.game-modal-open {
            overflow: hidden;
        }

        .game-modal-overlay {
            padding: 18px;
            overflow-y: auto;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            background: rgba(0, 0, 0, .88);
        }

        .game-modal-overlay.active {
            animation: gameModalFadeIn .2s ease-out both;
        }

        .game-modal-overlay.active.is-closing {
            animation: gameModalFadeOut .18s ease-in both;
        }

        .game-modal-overlay .game-modal {
            width: min(620px, 94vw);
            max-width: 620px;
            max-height: calc(100vh - 36px);
            max-height: 94dvh;
            padding: 26px 30px 28px;
            animation: none;
            opacity: 1;
            transform: none;
            transition: none;
        }

        @keyframes gameModalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes gameModalFadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        .game-modal-cover-frame {
            width: min(440px, 100%, 43vh);
            margin: 0 auto 21px;
            overflow: hidden;
            position: relative;
            border: 1px solid rgba(0, 255, 255, .3);
            border-radius: 16px;
            background:
                radial-gradient(circle at 50% 10%, rgba(0, 255, 255, .09), transparent 52%),
                rgba(5, 7, 14, .9);
            box-shadow:
                0 22px 55px rgba(0, 0, 0, .48),
                0 0 34px rgba(0, 255, 255, .09);
        }

        .game-modal-cover-frame::before {
            content: '';
            display: block;
            padding-top: 125%;
        }

        .game-modal-cover {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: center;
            overflow: hidden;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            opacity: 1;
            transform: none;
            transition: none;
        }

        .game-modal-cover.has-image::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, .18));
        }

        .game-modal-cover-fallback {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 11px;
            padding: 30px;
            color: #00ffff;
            text-align: center;
            background:
                linear-gradient(145deg, rgba(0, 255, 255, .07), transparent 48%),
                rgba(24, 25, 45, .96);
            transition: opacity .2s ease;
        }

        .game-modal-cover.has-image .game-modal-cover-fallback {
            opacity: 0;
        }

        .game-modal-cover-number {
            font: 700 clamp(42px, 8vw, 72px) system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            opacity: .24;
        }

        .game-modal-cover-type {
            font: 700 11px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            letter-spacing: 2px;
            opacity: .7;
        }

        .game-modal-cover-name {
            max-width: 100%;
            color: rgba(255, 255, 255, .88);
            font: 700 17px/1.35 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            overflow-wrap: anywhere;
        }

        .game-modal h2 {
            margin: 0 0 9px;
            font-size: clamp(20px, 3.5vw, 27px);
            line-height: 1.25;
            transition: opacity .25s ease, transform .32s ease;
        }

        .game-modal #modalDescription {
            max-width: 520px;
            margin: 0 auto 20px;
            color: rgba(255, 255, 255, .67);
            font-size: 14px;
            line-height: 1.55;
            text-align: center;
            transition: opacity .25s ease, transform .32s ease;
        }

        .game-modal .modal-buttons {
            transition: none;
        }

        #docModalActionBtn {
            align-items: center;
            justify-content: center;
        }

        #docModalTitle.currency-info-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-bottom: 18px;
        }

        .currency-info-title-image {
            width: 78px;
            height: 78px;
            flex: 0 0 78px;
            display: block;
            object-fit: contain;
            filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38));
        }

        .currency-info-content p {
            max-height: none;
            margin-bottom: 18px;
            padding-right: 0;
            overflow: visible;
        }

        .currency-info-content p:last-child {
            margin-bottom: 24px;
        }

        @media (max-width: 600px) {
            #docModalTitle.currency-info-title {
                gap: 10px;
                margin-bottom: 14px;
            }

            .currency-info-title-image {
                width: 62px;
                height: 62px;
                flex-basis: 62px;
            }

            .game-modal-overlay {
                padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
            }

            .game-modal-overlay .game-modal {
                width: 100%;
                max-height: calc(100vh - 20px);
                max-height: calc(100dvh - 20px);
                padding: 17px 15px 19px;
            }

            .game-modal-cover-frame {
                width: min(82vw, 380px, 43vh);
                margin-bottom: 16px;
                border-radius: 13px;
            }

            .game-modal #modalDescription {
                margin-bottom: 16px;
                font-size: 13px;
                line-height: 1.45;
            }

            .game-modal .modal-buttons {
                flex-direction: row;
                flex-wrap: nowrap;
            }

            .game-modal .modal-buttons > button {
                min-width: 0;
                flex: 1 1 0;
                padding-left: 10px;
                padding-right: 10px;
            }
        }

        @media (max-width: 380px) {
            .game-modal-cover-frame {
                width: min(78vw, 330px);
            }

            .game-modal h2 {
                font-size: 19px;
            }
        }
