/* ═══════════════════════════════════════════════════════════════════════
   СОВРЕМЕННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ DRAVYX WIN
   ═══════════════════════════════════════════════════════════════════════ */

/* Скрыть мобильные элементы на десктопе */
@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-chat-fab,
    .mobile-action-buttons,
    .mobile-chat-modal,
    .mobile-action-btn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ (≤768px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    
    /* ─────── ПРЕЛОАДЕР - МОБИЛЬНАЯ АДАПТАЦИЯ ─────── */
    .loader-container {
        gap: 30px;
        padding: 30px 20px;
    }
    
    .loader-logo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .loader-logo {
        width: 140px;
        height: 140px;
    }
    
    .loader-title {
        font-size: 36px;
        gap: 10px;
        letter-spacing: 1px;
    }
    
    .loader-progress {
        max-width: 100%;
    }
    
    .loader-progress-text {
        font-size: 16px;
    }
    
    .transition-logo {
        width: 100px;
        height: 100px;
    }
    
    .particle {
        width: 4px;
        height: 4px;
    }
    
    .particle-1 {
        width: 6px;
        height: 6px;
    }
    
    .particle-2,
    .particle-5 {
        width: 4px;
        height: 4px;
    }
    
    .particle-3,
    .particle-4 {
        width: 5px;
        height: 5px;
    }
    
    /* ─────── ОСНОВНЫЕ НАСТРОЙКИ ─────── */
    body {
        padding-bottom: 80px !important;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* ─────── АГРЕССИВНОЕ ОТОБРАЖЕНИЕ ВСЕХ ИЗОБРАЖЕНИЙ ─────── */
    img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        -webkit-touch-callout: none !important;
    }
    
    /* ─────── СПЕЦИАЛЬНЫЙ КЛАСС ДЛЯ ПРИНУДИТЕЛЬНОГО GIF ─────── */
    img.force-gif-animation,
    .force-gif-animation {
        animation: none !important;
        -webkit-animation: none !important;
        animation-play-state: running !important;
        -webkit-animation-play-state: running !important;
        image-rendering: auto !important;
        -webkit-image-rendering: auto !important;
        image-rendering: -webkit-optimize-contrast !important;
        filter: none !important;
        -webkit-filter: none !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        will-change: transform !important;
        contain: layout !important;
    }
    
    /* ─────── GIF АВАТАРКИ - Максимально агрессивное включение ─────── */
    img[src$=".gif"],
    img[src*=".gif"],
    img[src*="gif"],
    img[src*="GIF"],
    /* Универсальные стили для всех аватарок - делаем их круглыми */
    /* Убираем width и height из универсальных стилей, чтобы не ломать размеры */
    [class*="avatar"] img,
    img[class*="avatar"],
    .avatar img,
    .user-avatar img,
    .user-avatar-sm img,
    .player-avatar img,
    .player-avatar-sm img,
    .participant-avatar img,
    .boss-avatar img,
    .recent-avatar img,
    .waiting-player-avatar img,
    .preparing-player-avatar img,
    .pretender-avatar img,
    .winner-avatar-img,
    .winner-avatar-wrapper img,
    .slot-avatar-img,
    .withdrawal-avatar img,
    .neon-avatar img {
        border-radius: 50% !important;
        object-fit: cover !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: -moz-crisp-edges !important;
        image-rendering: crisp-edges !important;
        image-rendering: pixelated !important;
        image-rendering: auto !important;
        -webkit-transform: translateZ(0) translate3d(0,0,0) !important;
        transform: translateZ(0) translate3d(0,0,0) !important;
        -webkit-backface-visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-perspective: 1000 !important;
        perspective: 1000 !important;
        will-change: transform !important;
        animation-play-state: running !important;
        -webkit-animation-play-state: running !important;
        animation-iteration-count: infinite !important;
        -webkit-animation-iteration-count: infinite !important;
        animation-duration: inherit !important;
        -webkit-animation-duration: inherit !important;
        background: transparent !important;
        background-color: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1 !important;
        object-fit: cover !important;
        -o-object-fit: cover !important;
        font-family: 'object-fit: cover;' !important;
    }
    
    /* ─────── HEADER - Упрощенный ─────── */
    .header {
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(20px);
        background: rgba(30, 41, 59, 0.95);
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Скрыть десктопное меню */
    .nav-menu {
        display: none !important;
    }
    
    /* Адаптация панели пользователя */
    .user-panel {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .user-info {
        gap: 8px;
    }
    
    /* Кнопка выхода на мобилке */
    .btn-logout {
        width: 32px !important;
        height: 32px !important;
    }
    
    .btn-logout svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Модераторские кнопки на мобилке */
    .mod-buttons {
        opacity: 1 !important; /* Всегда показываем на мобилке */
    }
    
    .mod-btn {
        width: 24px !important;
        height: 24px !important;
    }
    
    .mod-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Баланс пользователя на мобилке - ультрасовременный */
    .user-balance {
        display: inline-flex !important;
        align-items: center;
        gap: 8px !important;
        padding: 8px 14px !important;
        background: linear-gradient(
            135deg,
            rgba(16, 185, 129, 0.12) 0%,
            rgba(5, 150, 105, 0.08) 50%,
            rgba(4, 120, 87, 0.12) 100%
        ) !important;
        border: 1.5px solid rgba(16, 185, 129, 0.3) !important;
        border-radius: 16px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        letter-spacing: 0.3px !important;
        color: #10b981 !important;
        cursor: pointer !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 
            0 4px 12px rgba(16, 185, 129, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    /* Ban Modal Mobile Styles */
    .ban-modal {
        max-width: 90%;
        padding: 24px 20px !important;
    }
    
    .ban-modal-icon {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 20px !important;
    }
    
    .ban-modal h2 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    
    .ban-reason {
        font-size: 14px !important;
        padding: 12px !important;
        margin-bottom: 20px !important;
    }
    
    .ban-actions .btn-primary {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .ban-note {
        font-size: 12px !important;
    }
    
    /* System Mute Message Mobile Styles */
    .chat-message.system-mute {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%) !important;
        border-left: 3px solid rgba(239, 68, 68, 0.8) !important;
        padding: 10px 12px !important;
        margin: 10px 0 !important;
    }
    
    .mute-header {
        margin-bottom: 6px !important;
    }
    
    .mute-header svg {
        width: 18px !important;
        height: 18px !important;
        color: #ef4444 !important;
    }
    
    .mute-header span {
        font-size: 11px !important;
        color: #ef4444 !important;
    }
    
    .mute-info {
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    
    .mute-info-icon {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
        color: #ef4444 !important;
    }
    
    .mute-info span {
        flex: 1 !important;
    }
    
    /* Глассморфизм эффект */
    .user-balance::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
        );
        transition: left 0.5s ease;
    }
    
    .user-balance:active::before {
        left: 100%;
    }
    
    /* Ripple эффект при клике */
    .user-balance::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(
            circle,
            rgba(16, 185, 129, 0.4) 0%,
            transparent 70%
        );
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    .user-balance:active::after {
        width: 300%;
        height: 300%;
    }
    
    .user-balance:active {
        transform: scale(0.96);
        box-shadow: 
            0 6px 20px rgba(16, 185, 129, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
        border-color: rgba(16, 185, 129, 0.5) !important;
        background: linear-gradient(
            135deg,
            rgba(16, 185, 129, 0.18) 0%,
            rgba(5, 150, 105, 0.12) 50%,
            rgba(4, 120, 87, 0.18) 100%
        ) !important;
    }
    
    /* Пульсация границы */
    @keyframes balancePulse {
        0%, 100% {
            box-shadow: 
                0 4px 12px rgba(16, 185, 129, 0.15),
                0 0 0 0 rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        50% {
            box-shadow: 
                0 4px 12px rgba(16, 185, 129, 0.15),
                0 0 0 4px rgba(16, 185, 129, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
    }
    
    .user-balance {
        animation: balancePulse 3s ease-in-out infinite;
    }
    
    /* SVG иконка в балансе */
    .user-balance svg {
        color: #10b981 !important;
        filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.4));
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
        animation: iconBreath 2.5s ease-in-out infinite;
    }
    
    @keyframes iconBreath {
        0%, 100% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.05);
            opacity: 0.85;
        }
    }
    
    .user-balance:active svg {
        transform: scale(1.1) rotate(-5deg);
        filter: drop-shadow(0 3px 6px rgba(16, 185, 129, 0.6));
        animation: none;
    }
    
    /* Текст баланса с градиентом */
    .user-balance span {
        background: linear-gradient(
            135deg,
            #10b981 0%,
            #34d399 50%,
            #10b981 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800;
        filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.5));
    }
    
    /* Декоративный индикатор "можно кликнуть" */
    .user-balance::after {
        pointer-events: none;
    }
    
    /* Небольшая светящаяся точка сверху справа */
    @keyframes balanceGlow {
        0%, 100% {
            opacity: 0.4;
            transform: scale(1);
        }
        50% {
            opacity: 0.8;
            transform: scale(1.2);
        }
    }
    
    .user-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 4px !important;
    }
    
    .user-name {
        font-size: 12px !important;
        max-width: 200px !important;
        overflow: visible !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        word-break: normal !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
        text-align: right !important;
        width: 100% !important;
        position: relative !important;
        z-index: 10 !important;
        height: auto !important;
        min-height: 14px !important;
        max-height: none !important;
        transform: none !important;
        color: #fff !important;
        font-weight: 600 !important;
    }
    
    .user-name::before,
    .user-name::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    /* Исправление отображения ника в чате на мобильных */
    /* Выделение в чате по уровням (мобильная версия) */
.chat-author .chat-level-2 {
    color: #667eea;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.chat-author .chat-level-6 {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: chatGoldFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .chat-level-11 {
    background: linear-gradient(90deg, #b8b6b4 0%, #e5e4e2 25%, #ffffff 50%, #e5e4e2 75%, #b8b6b4 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: platinumChatFlow 3s ease-in-out infinite;
    display: inline-block;
}

.chat-author .chat-level-16 {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 25%, #ffd700 50%, #40e0d0 75%, #ff0080 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: legendChatFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .chat-level-21 {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 25%, #ffd700 50%, #40e0d0 75%, #ff0080 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: legendChatFlow 2s linear infinite;
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.chat-author {
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-break: break-word !important;
        max-width: 100% !important;
        display: inline-block !important;
        position: relative !important;
        background: none !important;
    }
    
    .chat-author::before,
    .chat-author::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    .chat-message-body {
        overflow: visible !important;
        min-width: auto !important;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        background: transparent !important;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .user-avatar::before,
    .user-avatar::after {
        display: none !important;
    }
    
    .user-avatar img,
    .user-avatar-sm img {
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        image-rendering: auto !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: auto !important;
        animation: none !important;
        -webkit-animation: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .player-avatar img,
    .participant-avatar img,
    img[src$=".gif"],
    img[src*="gif"] {
        background: transparent !important;
        image-rendering: auto !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: auto !important;
        animation: none !important;
        -webkit-animation: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        pointer-events: auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    /* Принудительно включаем анимацию GIF */
    @supports (-webkit-appearance: none) {
        .user-avatar img[src$=".gif"],
        .user-avatar img[src*="gif"],
        img[src$=".gif"],
        img[src*="gif"] {
            -webkit-transform: translate3d(0, 0, 0) !important;
            transform: translate3d(0, 0, 0) !important;
        }
    }
    
    .btn-login {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-login svg {
        width: 16px;
        height: 16px;
    }
    
    /* ─────── ВЫБОР КОМНАТЫ - Упрощенный ─────── */
    .room-selector {
        padding: 20px 0;
    }
    
    .selector-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .rooms-list {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
        max-width: 100%;
    }
    
    .room-item {
        padding: 16px 8px;
        text-align: center;
    }
    
    .room-name {
        font-size: 20px;
        margin-bottom: 0;
    }
    
    /* Скрыть детальную информацию о комнате */
    .room-limits,
    .room-stats {
        display: none !important;
    }
    
    /* ─────── ИГРОВАЯ ЗОНА - Переработанная ─────── */
    .game-area {
        padding: 16px 0;
    }
    
    .game-layout {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Порядок элементов */
    .game-center {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .game-center .game-status {
        order: 1;
    }
    
    .game-center .game-display {
        order: 2;
    }
    
    .game-center .bet-form {
        order: 4;
    }
    
    .game-center .game-players {
        order: 5;
    }
    
    /* Скрыть sidebar визуально, но оставить в DOM для JavaScript */
    .game-sidebar {
        position: absolute !important;
        left: -99999px !important;
        top: -99999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* BOSS карточка внутри game-center (после перемещения JS) */
    .game-center > .boss-card {
        display: block !important;
        order: 3 !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* PRETENDER секция внутри game-center (после перемещения JS) */
    .game-center > .pretender-section {
        display: block !important;
        order: 3 !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* RECENT CARD внутри game-center (после перемещения JS) */
    .game-center > .recent-card {
        display: block !important;
        order: 6 !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Скрыть правый sidebar полностью */
    .game-sidebar-right {
        display: none !important;
    }
    
    /* Скрыть stats-card */
    .stats-card {
        display: none !important;
    }
    
    /* ─────── БЛОК СТАТУСА ИГРЫ (БАНК И УЧАСТНИКИ) ─────── */
    .game-status {
        display: flex;
        flex-direction: row;
        gap: 10px;
        order: 1;
        margin-bottom: 16px;
    }
    
    .status-item {
        flex: 1;
        position: relative;
        padding: 16px 14px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
        border: 2px solid transparent;
        background-clip: padding-box;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        overflow: hidden;
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        animation: statusItemFadeIn 0.5s ease-out;
    }
    
    .status-item::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, 
            rgba(102, 126, 234, 0.6) 0%, 
            rgba(118, 75, 162, 0.6) 50%,
            rgba(102, 126, 234, 0.6) 100%);
        border-radius: 16px;
        z-index: -1;
        background-size: 200% 200%;
        animation: borderFlowMobile 4s linear infinite;
    }
    
    @keyframes borderFlowMobile {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }
    
    @keyframes statusItemFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .status-item svg {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 8px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        border-radius: 12px;
        color: white;
        stroke: white;
        box-shadow: 
            0 6px 20px rgba(102, 126, 234, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        animation: iconFloatMobile 3s ease-in-out infinite;
    }
    
    @keyframes iconFloatMobile {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-4px) scale(1.05);
        }
    }
    
    .status-label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .status-value {
        font-size: 22px;
        font-weight: 800;
        background: linear-gradient(135deg, #667eea 0%, #9f7aea 50%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 200% 200%;
        animation: valueGradientMobile 4s ease infinite;
        filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.4));
    }
    
    @keyframes valueGradientMobile {
        0%, 100% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
    }
    
    /* ─────── ИГРОВОЙ ДИСПЛЕЙ - Компактный и без переполнения ─────── */
    .game-display {
        order: 2;
        min-height: auto;
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 16px;
        overflow: hidden;
        width: 100%;
    }
    
    .game-display * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ожидание игроков - компактный вертикальный layout */
    .waiting-for-players {
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .waiting-icon-wrapper {
        margin: 0;
    }
    
    .waiting-icon {
        width: 50px;
        height: 50px;
    }
    
    .waiting-content {
        width: 100%;
    }
    
    .waiting-title {
        font-size: 16px;
        margin-bottom: 6px;
        font-weight: 700;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .waiting-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
        color: var(--text-secondary);
    }
    
    .waiting-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 0;
        width: 100%;
    }
    
    .waiting-stat {
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        border: 1px solid rgba(102, 126, 234, 0.2);
    }
    
    .waiting-stat-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 4px;
    }
    
    .waiting-stat-value {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
    }
    
    /* Убрать pulse эффект который может создавать overflow */
    .waiting-pulse {
        display: none;
    }
    
    /* Компактный waiting players список */
    .waiting-players {
        margin-top: 12px;
        width: 100%;
    }
    
    .waiting-count {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .waiting-avatars {
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .waiting-player-card {
        padding: 10px 12px;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .waiting-player-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .waiting-player-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .waiting-player-name {
        font-size: 13px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .waiting-player-bets {
        font-size: 11px;
    }
    
    /* Минимальная ставка в waiting блоке */
    .game-waiting p,
    .game-waiting h3 {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .game-waiting {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
    
    /* Таймер - компактный горизонтальный */
    .countdown-container {
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    .countdown-circle {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .countdown-number {
        font-size: 32px;
    }
    
    .countdown-content {
        flex: 1;
        text-align: left;
    }
    
    .countdown-title {
        font-size: 14px;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .countdown-progress-bar {
        margin-top: 12px;
    }
    
    /* Подготовка игры - горизонтальный layout */
    .game-preparing {
        padding: 20px 16px;
    }
    
    .preparing-header {
        margin-bottom: 20px;
    }
    
    .preparing-header svg {
        width: 40px;
        height: 40px;
    }
    
    .preparing-header h2 {
        font-size: 20px;
        margin: 10px 0;
    }
    
    .preparing-countdown {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin: 10px 0;
    }
    
    .preparing-players {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .preparing-player-card {
        padding: 12px;
    }
    
    .preparing-player-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .preparing-player-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    /* Компактная слот-машина */
    .slot-machine {
        padding: 12px;
    }
    
    .slot-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .slot-window {
        height: 110px;
        border-radius: 12px;
    }
    
    .slot-item {
        width: 75px;
        height: 95px;
        padding: 6px;
    }
    
    .slot-avatar-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .slot-avatar-wrapper img,
    .slot-avatar-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .slot-name {
        font-size: 11px;
    }
    
    .slot-ticket {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Результат игры - компактный */
    .slot-result {
        margin-top: 16px;
    }
    
    .result-announcement {
        font-size: 16px;
    }
    
    .result-winner-name {
        font-size: 22px;
    }
    
    .result-prize {
        font-size: 20px;
    }
    
    /* ─────── BOSS КОМНАТЫ - Красивый горизонтальный блок ─────── */
    .boss-card {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.08)) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
        border-radius: 16px !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
        display: block !important;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(251, 191, 36, 0.15);
        position: relative;
    }
    
    /* Золотая полоса сверху */
    .boss-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    }
    
    /* Компактный заголовок */
    .boss-header {
        font-size: 9px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        padding: 6px 12px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: rgba(251, 191, 36, 0.12);
        color: #fbbf24;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    
    .boss-icon {
        width: 12px;
        height: 12px;
        fill: #fbbf24;
    }
    
    /* Горизонтальный layout: аватар слева, инфо справа */
    .boss-content {
        background: transparent;
        border-radius: 0;
        padding: 12px !important;
        display: flex;
        gap: 12px;
        align-items: center;
    }
    
    /* Босс - горизонтальный */
    .boss-info {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.03);
        padding: 8px;
        border-radius: 12px;
        border: 1px solid rgba(251, 191, 36, 0.2);
    }
    
    .boss-avatar {
        width: 52px !important;
        height: 52px !important;
        border-radius: 50%;
        border: 2px solid #fbbf24;
        box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
        flex-shrink: 0;
        overflow: hidden !important;
    }
    
    .boss-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .boss-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .boss-details h4 {
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        color: #fbbf24;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .boss-details h4::before,
    .boss-details h4::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    .boss-details p {
        font-size: 11px;
        margin: 0;
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.3;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .boss-details p strong {
        color: #fbbf24;
        font-weight: 600;
    }
    
    /* SVG иконки в описании */
    .boss-details p svg {
        width: 12px;
        height: 12px;
        fill: rgba(251, 191, 36, 0.7);
    }
    
    /* Пустое состояние - горизонтальное с SVG */
    .boss-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
        border: 1px dashed rgba(251, 191, 36, 0.25);
        position: relative;
    }
    
    .boss-empty::before {
        content: '';
        width: 28px;
        height: 28px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(251, 191, 36, 0.5)'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        flex-shrink: 0;
    }
    
    .boss-empty p {
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
    }
    
    .boss-empty span {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.4);
    }
    
    /* Скрыть кнопку деталей */
    .boss-actions {
        display: none !important;
    }
    
    /* ─────── ПРЕТЕНДЕНТ - Красивый отдельный горизонтальный блок ─────── */
    .pretender-section {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.08)) !important;
        border: 1.5px solid rgba(245, 158, 11, 0.3) !important;
        border-radius: 16px !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        display: block !important;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(245, 158, 11, 0.15);
        position: relative;
    }
    
    /* Оранжевая полоса сверху */
    .pretender-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    }
    
    /* Компактный заголовок претендента */
    .pretender-header {
        font-size: 9px !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        padding: 6px 12px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        background: rgba(245, 158, 11, 0.12);
        color: #f59e0b;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    
    .pretender-header svg {
        width: 12px !important;
        height: 12px !important;
        fill: #f59e0b;
    }
    
    /* Горизонтальный layout претендента */
    .pretender-content {
        background: transparent;
        border-radius: 0;
        padding: 12px !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .pretender-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
    }
    
    .pretender-avatar {
        width: 52px !important;
        height: 52px !important;
        border-radius: 50%;
        border: 2px solid #f59e0b;
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
        flex-shrink: 0;
        overflow: hidden !important;
    }
    
    .pretender-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .pretender-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .pretender-details h4 {
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        color: #f59e0b;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .pretender-details h4::before,
    .pretender-details h4::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    .pretender-details p {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.65);
        margin: 0;
        line-height: 1.3;
    }
    
    /* Прогресс претендента - компактный справа */
    .pretender-progress {
        margin: 0;
        width: 90px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .progress-label {
        display: flex;
        justify-content: center;
        font-size: 10px;
        margin: 0;
        color: rgba(255, 255, 255, 0.5);
        gap: 3px;
        font-weight: 600;
    }
    
    .progress-label .progress-numbers {
        color: #f59e0b;
        font-weight: 700;
    }
    
    .progress-bar {
        height: 6px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        border: 1px solid rgba(245, 158, 11, 0.2);
    }
    
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #f59e0b, #fbbf24);
        border-radius: 10px;
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
        position: relative;
        transition: width 0.5s ease;
    }
    
    /* ─────── ПОЛЕ СТАВКИ - Удобное ─────── */
    .bet-form {
        order: 4;
        padding: 16px !important;
        margin-bottom: 12px;
        border-radius: 16px;
    }
    
    .bet-input-wrapper label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .input-group input {
        width: 100%;
        padding: 16px;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        border-radius: 12px;
    }
    
    .input-currency {
        font-size: 16px;
    }
    
    .quick-amounts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .quick-btn {
        padding: 10px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 10px;
    }
    
    .btn-bet {
        width: 100%;
        padding: 16px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 12px;
    }
    
    /* ─────── УЧАСТНИКИ ИГРЫ - Красивый современный дизайн ─────── */
    .game-players {
        order: 5;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06)) !important;
        border: 1.5px solid rgba(102, 126, 234, 0.25) !important;
        border-radius: 16px !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(102, 126, 234, 0.12);
        position: relative;
    }
    
    /* Синяя полоса сверху */
    .game-players::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #667eea, transparent);
    }
    
    .game-players h3 {
        font-size: 10px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(102, 126, 234, 0.12);
        color: #667eea;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    
    .game-players h3 svg {
        width: 14px;
        height: 14px;
        fill: #667eea;
    }
    
    .players-list {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .player-item {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(102, 126, 234, 0.15);
        border-radius: 12px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        transition: all 0.2s ease;
    }
    
    .player-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.06);
    }
    
    .player-info {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        min-width: 0;
    }
    
    .player-avatar-sm,
    .player-avatar {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50%;
        border: 2px solid #667eea;
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
        flex-shrink: 0;
        overflow: hidden !important;
    }
    
    .player-avatar-sm img,
    .player-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .player-details {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .player-name {
        font-size: 13px;
        font-weight: 700;
        margin: 0;
        color: #fff;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .player-name::before,
    .player-name::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    .player-tickets {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
    }
    
    .player-item-bet,
    .player-bet {
        font-size: 14px;
        font-weight: 700;
        color: #667eea;
        flex-shrink: 0;
    }
    
    /* Пустое состояние участников */
    .players-list .empty-message {
        text-align: center;
        padding: 20px;
        color: rgba(255, 255, 255, 0.5);
        font-size: 12px;
    }
    
    /* ─────── ПОСЛЕДНИЕ ПОБЕДЫ - Красивый современный дизайн ─────── */
    .recent-card {
        order: 6;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.06)) !important;
        border: 1.5px solid rgba(34, 197, 94, 0.25) !important;
        border-radius: 16px !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        display: block !important;
        overflow: hidden;
        box-shadow: 0 2px 16px rgba(34, 197, 94, 0.12);
        position: relative;
    }
    
    /* Зеленая полоса сверху */
    .recent-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #22c55e, transparent);
    }
    
    .recent-card h3 {
        font-size: 10px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(34, 197, 94, 0.12);
        color: #22c55e;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    
    .recent-card h3 svg {
        width: 14px;
        height: 14px;
        fill: #22c55e;
    }
    
    .recent-list {
        padding: 12px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .recent-item {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(34, 197, 94, 0.15);
        border-radius: 12px;
        padding: 10px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.2s ease;
    }
    
    .recent-item:last-child {
        margin-bottom: 0;
    }
    
    .recent-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.06);
    }
    
    .recent-avatar {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50%;
        border: 2px solid #22c55e;
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
        flex-shrink: 0;
        overflow: hidden !important;
    }
    
    .recent-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .recent-player-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .clickable-username {
        font-size: 13px;
        font-weight: 700;
        margin: 0;
        color: #fff;
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-break: break-word !important;
        display: inline-block !important;
    }
    
    .clickable-username:not(.status-bronze):not(.status-silver):not(.status-gold):not(.status-platinum):not(.status-diamond):not(.status-legend) {
        color: #fff !important;
        background: none !important;
        -webkit-text-fill-color: #fff !important;
        background-clip: unset !important;
        -webkit-background-clip: unset !important;
    }
    
    .clickable-username.status-bronze,
    .clickable-username.status-silver,
    .clickable-username.status-gold,
    .clickable-username.status-platinum,
    .clickable-username.status-diamond,
    .clickable-username.status-legend {
        color: transparent !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    .clickable-username::before,
    .clickable-username::after {
        display: none !important;
        content: none !important;
        background: none !important;
    }
    
    .recent-game-details {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
        padding: 0;
    }
    
    .recent-prize {
        font-size: 14px;
        font-weight: 700;
        color: #22c55e;
        flex-shrink: 0;
    }
    
    /* ─────── ПОСЛЕДНИЕ ВЫПЛАТЫ ─────── */
    .withdrawals-card {
        order: 7;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1.5px solid rgba(102, 126, 234, 0.2) !important;
        border-radius: 16px !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        display: block !important;
        overflow: hidden;
    }
    
    .withdrawals-card h3 {
        font-size: 10px !important;
        font-weight: 700 !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: rgba(102, 126, 234, 0.12);
        color: #667eea;
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }
    
    .withdrawals-card h3 svg {
        width: 14px;
        height: 14px;
    }
    
    .withdrawals-list {
        padding: 12px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .withdrawal-item {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(102, 126, 234, 0.15);
        border-radius: 12px;
        padding: 10px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .withdrawal-item:last-child {
        margin-bottom: 0;
    }
    
    .withdrawal-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid rgba(102, 126, 234, 0.3);
        overflow: hidden !important;
    }
    
    .withdrawal-avatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .withdrawal-info {
        flex: 1;
        min-width: 0;
    }
    
    .withdrawal-username {
        font-size: 13px;
        font-weight: 600;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .withdrawal-details {
        font-size: 11px;
        padding: 0;
    }
    
    .withdrawal-amount {
        font-size: 13px;
        font-weight: 700;
        flex-shrink: 0;
    }
    
    /* ─────── РЕЗУЛЬТАТ ИГРЫ - Адаптированный ─────── */
    .winner-result-card {
        flex-direction: column;
        padding: 20px 16px !important;
        gap: 20px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .winner-trophy-icon {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .winner-left-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .winner-title {
        font-size: 20px;
        letter-spacing: 1px;
        text-align: center;
    }
    
    .winner-subtitle {
        font-size: 11px;
        text-align: center;
    }
    
    .winner-center-section {
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .winner-avatar-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .winner-avatar-wrapper {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .winner-avatar-img,
    .winner-avatar-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .winner-username {
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        max-width: 100%;
        word-break: break-word;
    }
    
    .winner-info-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .winner-info-main {
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: center;
    }
    
    .winner-info-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .winner-info-content {
        flex: 1;
        text-align: center;
    }
    
    .winner-info-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .winner-info-value {
        font-size: 22px;
        line-height: 1.2;
    }
    
    .winner-info-secondary {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .winner-info-item {
        width: 100%;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .winner-info-icon-small {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .winner-info-label-small {
        font-size: 10px;
    }
    
    .winner-info-value-small {
        font-size: 13px;
    }
    
    /* ─────── НИЖНЯЯ НАВИГАЦИЯ - Современная ─────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 12px;
    cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    max-width: 80px;
        position: relative;
    }
    
    .mobile-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 0 0 3px 3px;
        transition: width 0.3s ease;
    }
    
    .mobile-nav-item.active::before {
        width: 40px;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
        transition: all 0.3s ease;
}

.mobile-nav-item.active svg,
.mobile-nav-item.active span {
    color: var(--primary);
}

.mobile-nav-item.active {
    background: rgba(102, 126, 234, 0.15);
        transform: translateY(-2px);
}

/* Индикатор уведомлений для мобильной навигации */
.mobile-nav-item .support-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.6), 0 0 0 2px var(--bg-dark);
    animation: badgePulseMobile 2s ease-in-out infinite;
    z-index: 10;
    line-height: 1.2;
}

.mobile-nav-item .bonus-notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #667eea 0%, #ec4899 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.6), 0 0 0 2px var(--bg-dark);
    animation: badgePulseMobile 2s ease-in-out infinite;
    z-index: 10;
    line-height: 1.2;
}

@keyframes badgePulseMobile {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.6), 0 0 0 2px var(--bg-dark);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 3px 8px rgba(102, 126, 234, 0.8), 0 0 0 2px var(--bg-dark);
    }
}

.mobile-nav-item.has-notification::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: notificationDotMobile 1.5s ease-in-out infinite;
    z-index: 9;
}

@keyframes notificationDotMobile {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

    /* ─────── КНОПКА ЧАТА (FAB) ─────── */
.mobile-chat-fab {
    position: fixed;
    bottom: 85px;
        right: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea, #5568d3);
    border-radius: 50%;
        display: flex;
    align-items: center;
    justify-content: center;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    z-index: 999;
        cursor: pointer;
        transition: all 0.3s ease;
        animation: fabPulse 2s ease-in-out infinite;
    }
    
    @keyframes fabPulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 6px 30px rgba(102, 126, 234, 0.7);
        }
    }
    
    .mobile-chat-fab:active {
        transform: scale(0.95);
}

.mobile-chat-fab svg {
    width: 28px;
    height: 28px;
    color: white;
}

    /* ─────── КНОПКИ ДЕЙСТВИЙ (РАЗДАЧА И ПРАВИЛА) ─────── */
    /* Скрыты на мобилке - теперь внутри чата */
.mobile-action-buttons {
        display: none !important;
}

.mobile-action-btn {
    width: 48px;
    height: 48px;
        background: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-action-btn:active {
        transform: scale(0.95);
}

.mobile-action-btn svg {
    width: 24px;
    height: 24px;
    color: #667eea;
        transition: color 0.3s ease;
    }
    
    .mobile-action-btn:hover svg {
        color: #10b981;
    }
    
    /* ─────── МОДАЛЬНОЕ ОКНО ЧАТА ─────── */
.mobile-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
}

.mobile-chat-modal.active {
        display: flex;
        opacity: 1;
}

.mobile-chat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background: rgba(20, 20, 30, 0.98);
        backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
        animation: slideUpModal 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    @keyframes slideUpModal {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
}

.mobile-chat-header {
        padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
        justify-content: center;
    align-items: center;
        flex-shrink: 0;
        position: relative;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    }
    
    .mobile-chat-header svg:first-child {
        width: 20px;
        height: 20px;
        stroke: #667eea;
        margin-right: 8px;
    }
    
    .mobile-chat-header h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: #667eea;
        text-transform: uppercase;
        letter-spacing: 0.5px;
}

.mobile-chat-close {
        position: absolute;
        right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-chat-close:active {
        background: rgba(239, 68, 68, 0.3);
        transform: scale(0.95);
    }
    
    .mobile-chat-close svg {
        color: white;
    }
    
    /* Кнопки действий в чате */
    .mobile-chat-actions {
        padding: 12px 16px;
        display: flex;
        gap: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.1);
    }
    
    .mobile-chat-action-btn {
        flex: 1;
        padding: 10px 12px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
        border: 1px solid rgba(102, 126, 234, 0.3);
        border-radius: 12px;
        color: #667eea;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-chat-action-btn svg {
        width: 16px;
        height: 16px;
        stroke: #667eea;
    }
    
    .mobile-chat-action-btn:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.2));
}

.mobile-chat-body {
    flex: 1;
    overflow-y: auto;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
}

.mobile-chat-footer {
        padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
        flex-shrink: 0;
}

.mobile-chat-footer input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: white;
        font-size: 14px;
    }
    
    .mobile-chat-footer input::placeholder {
        color: rgba(255, 255, 255, 0.4);
}

.mobile-chat-footer button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
        background: linear-gradient(135deg, #667eea, #5568d3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-chat-footer button:active {
        transform: scale(0.95);
    }
    
    .mobile-chat-footer button svg {
        color: white;
    }
    
    /* ─────── ПРОФИЛЬ - Мобильная адаптация ─────── */
    .profile-page {
        padding: 20px 0 80px;
    }
    
    .profile-container {
        padding: 0 16px;
    }
    
    .neon-profile-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }
    
    .neon-avatar-container {
        margin: 0 auto;
    }
    
    .neon-avatar-ring {
        width: 100px;
        height: 100px;
    }
    
    .neon-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .neon-avatar img {
        border-radius: 50% !important;
        object-fit: cover !important;
    }
    
    .neon-username-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .neon-username {
        font-size: 24px;
    }
    
    .neon-balance-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    .neon-balance-display {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
        font-size: 28px;
    }
    
    .neon-pill-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 16px;
        font-size: 13px;
        justify-content: center;
        border-radius: 16px;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .neon-pill-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .profile-stat-card {
        padding: 16px;
    }
    
    .stat-card-value {
        font-size: 20px;
    }
    
    .profile-content-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* ─────── LEADERBOARD - Мобильная адаптация ─────── */
    .leaderboard-page {
        padding: 20px 0 80px;
    }
    
    .page-container {
        padding: 0 16px;
    }
    
    .page-header {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .leaderboard-podium {
        flex-direction: column;
        gap: 12px;
    }
    
    /* ─────── FAQ - Мобильная адаптация ─────── */
    .faq-page {
        padding: 20px 0 80px;
    }
    
    .faq-content {
        padding: 0;
    }
    
    .faq-category-title {
        font-size: 16px;
    }
    
    /* ─────── ПРАВИЛА САЙТА - Мобильная адаптация ─────── */
    .site-rules-page {
        padding: 20px 0 80px;
    }
    
    .rules-card-header {
        padding: 16px 18px;
        flex-wrap: wrap;
    }
    
    .rules-card-header svg {
        width: 24px;
        height: 24px;
    }
    
    .rules-card-header h2 {
        font-size: 16px;
    }
    
    .rules-card-body {
        padding: 18px;
    }
    
    .rules-card-body p {
        font-size: 14px;
    }
    
    .rules-card-list li {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .rules-warning {
        padding: 14px 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .rules-warning svg {
        margin: 0 auto;
    }
    
    .site-rules-footer {
        padding: 20px 16px;
    }
    
    .site-rules-footer p {
        font-size: 13px;
    }
    
    .faq-question {
        font-size: 14px;
        padding: 14px;
    }
    
    .faq-answer {
        padding: 14px;
        font-size: 13px;
    }
    
    /* ─────── МОДАЛЬНЫЕ ОКНА - Адаптация ─────── */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 24px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3,
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .giveaway-type-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .giveaway-type-card {
        flex-direction: row;
        text-align: left;
        padding: 12px;
    }
    
    .giveaway-type-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        margin-bottom: 0;
    }
    
    /* ─────── FOOTER - Мобильная адаптация ─────── */
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-partner,
    .footer-partner-section {
        margin-top: 24px;
    }
    
    .footer-partner-title {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .footer-partner-card {
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        max-width: 100%;
        width: 100%;
    }
    
    .footer-partner-logo-wrap {
        width: 100%;
        height: 70px;
    }
    
    .footer-partner-logo {
        height: 40px;
    }
    
    .footer-partner-text {
        font-size: 13px;
    }
    
    .footer-partner-features {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-partner-feature {
        font-size: 11px;
        padding: 6px 10px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-partner-cta {
        font-size: 12px;
        justify-content: center;
        padding: 8px 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 12px;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-disclaimer {
        padding: 16px;
    }
    
    .footer-disclaimer p {
        font-size: 12px;
    }
    
    /* ─────── АНИМАЦИИ ДЛЯ ПЕРЕКЛЮЧЕНИЯ СТРАНИЦ ─────── */
    .game-area,
    .profile-page,
    .leaderboard-page,
    .faq-page,
    .site-rules-page {
        animation: fadeInUp 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* ─────── УВЕДОМЛЕНИЯ ─────── */
    .notification {
        bottom: 90px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto;
        border-radius: 12px;
    }
    
    /* ─────── ОПТИМИЗАЦИЯ СКРОЛЛА ─────── */
    .recent-list::-webkit-scrollbar,
    .withdrawals-list::-webkit-scrollbar,
    .mobile-chat-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .recent-list::-webkit-scrollbar-thumb,
    .withdrawals-list::-webkit-scrollbar-thumb,
    .mobile-chat-body::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 2px;
    }
    
    /* ─────── AUTH MODAL - Мобильная адаптация ─────── */
    .auth-modal-modern {
        max-width: 100%;
        margin: 10px;
        border-radius: 20px;
        border-width: 1.5px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(102, 126, 234, 0.08);
    }
    
    .auth-modal-header {
        padding: 36px 24px 28px;
        border-bottom-width: 1.5px;
    }
    
    .auth-modal-header::before {
        height: 3px;
    }
    
    .auth-modal-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
    }
    
    .auth-modal-icon::before {
        width: 120%;
        height: 120%;
    }
    
    .auth-modal-header h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .auth-modal-subtitle {
        font-size: 13.5px;
        margin-bottom: 22px;
    }
    
    .auth-bonus-badge {
        padding: 12px 20px;
        font-size: 13px;
        gap: 8px;
        border-width: 2px;
    }
    
    .auth-bonus-badge svg {
        width: 15px;
        height: 15px;
    }
    
    .auth-methods {
        padding: 24px 20px;
        gap: 16px;
        flex-direction: column;
    }
    
    .auth-method-card {
        gap: 18px;
        padding: 28px 22px;
        flex-direction: row;
        text-align: left;
        border-radius: 18px;
        border-width: 2px;
    }
    
    .auth-method-card::after {
        border-radius: 18px;
    }
    
    .auth-method-card:hover {
        transform: translateY(-2px);
    }
    
    .auth-method-card:active {
        transform: translateY(0) scale(0.98);
    }
    
    .auth-method-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        flex-shrink: 0;
    }
    
    .auth-method-icon::before {
        border-radius: 20px;
    }
    
    .auth-method-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .auth-method-content {
        text-align: left;
        flex: 1;
        min-width: 0;
    }
    
    .auth-method-content h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .auth-method-content p {
        font-size: 12.5px;
        margin-bottom: 10px;
    }
    
    .auth-method-badge {
        font-size: 10px;
        padding: 5px 12px;
        border-width: 1.5px;
    }
    
    .auth-method-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .auth-method-arrow,
    .auth-method-lock {
        width: 28px;
        height: 28px;
        top: 16px;
        right: 16px;
        background: rgba(102, 126, 234, 0.12);
        border-width: 1.5px;
    }
    
    .auth-method-card:active .auth-method-arrow {
        transform: scale(1.05) translateX(3px);
    }
    
    .auth-modal-footer {
        padding: 20px 24px 28px;
        border-top-width: 1.5px;
    }
    
    .auth-modal-footer p {
        font-size: 11.5px;
        line-height: 1.6;
    }
    
    /* ═══════════════════════════════════════════════════════════════════════
       FINAL TIMER - МОБИЛЬНАЯ АДАПТАЦИЯ  
       ═══════════════════════════════════════════════════════════════════════ */
    
    .timer-final-container {
        padding: 30px 15px;
        gap: 25px;
        min-height: 350px;
    }
    
    .timer-circle-wrapper {
        width: 240px;
        height: 240px;
    }
    
    .timer-count {
        font-size: 80px;
    }
    
    .timer-subtitle {
        font-size: 14px;
    }
    
    .timer-status-text {
        font-size: 13px;
    }
    
    @keyframes timerIconBounce {
        0%, 100% {
            transform: translateY(0) scale(1);
        }
        50% {
            transform: translateY(-4px) scale(1.2);
        }
    }
    
    .timer-status-text {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .timer-progress-track {
        position: relative;
        width: 100%;
        max-width: 280px;
        height: 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }
    
    .timer-progress-fill {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: linear-gradient(90deg, #667eea 0%, #9f7aea 50%, #764ba2 100%);
        border-radius: 10px;
        transition: width 1s linear;
        box-shadow: 0 0 18px rgba(102, 126, 234, 0.6);
    }
    
    .timer-progress-glow {
        position: absolute;
        top: -4px;
        left: 0;
        height: 16px;
        background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.8) 0%, transparent 70%);
        border-radius: 10px;
        transition: width 1s linear;
        filter: blur(8px);
        animation: progressGlowPulse 2s ease-in-out infinite;
    }
    
    @keyframes progressGlowPulse {
        0%, 100% {
            opacity: 0.6;
        }
        50% {
            opacity: 1;
        }
    }
    
    /* ─────── WINNER ANNOUNCEMENT - Компактная мобильная версия ─────── */
    .system-winner {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1)) !important;
        border-left: 3px solid #ffd700 !important;
    }
    
    .winner-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .winner-header .giveaway-icon {
        width: 16px !important;
        height: 16px !important;
        color: #ffd700;
    }
    
    .winner-header span {
        font-size: 12px;
        font-weight: 700;
        color: #ffd700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .winner-info {
        font-size: 13px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .winner-info strong {
        color: #ffd700;
        font-weight: 700;
    }
    
    /* ─────── SLOT MACHINE - Синхронизация для мобилки ─────── */
    .slot-machine {
        overflow: hidden !important;
        position: relative !important;
        padding: 24px 15px !important;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
        border-radius: 20px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(102, 126, 234, 0.2);
        box-shadow: 
            0 6px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .slot-title {
        font-size: 18px;
        font-weight: 800;
        text-align: center;
        margin-bottom: 18px;
        background: linear-gradient(135deg, #667eea, #9f7aea, #f093fb);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .slot-window {
        position: relative;
        overflow: hidden;
        padding: 20px 0;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 16px;
        border: 2px solid rgba(102, 126, 234, 0.3);
        box-shadow: 
            inset 0 2px 8px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(102, 126, 234, 0.2);
    }
    
    .slot-indicator {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 4px;
        height: 125%;
        background: linear-gradient(180deg, 
            transparent 0%, 
            #667eea 12%, 
            #9f7aea 50%,
            #667eea 88%, 
            transparent 100%);
        box-shadow: 
            0 0 15px rgba(102, 126, 234, 1),
            0 0 30px rgba(159, 122, 234, 0.7),
            0 0 45px rgba(102, 126, 234, 0.5);
        z-index: 100;
        pointer-events: none;
        border-radius: 2px;
    }
    
    .slot-indicator::before,
    .slot-indicator::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        background: radial-gradient(circle, #9f7aea, #667eea);
        border-radius: 50%;
        box-shadow: 
            0 0 15px rgba(159, 122, 234, 1),
            0 0 30px rgba(102, 126, 234, 0.7),
            inset 0 0 8px rgba(255, 255, 255, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    .slot-indicator::before {
        top: 12%;
    }
    
    .slot-indicator::after {
        bottom: 12%;
    }
    
    .slot-reel {
        position: relative;
        overflow: visible;
    }
    
    .slot-items {
        display: flex !important;
        gap: 12px !important;
        will-change: transform;
        align-items: center;
    }
    
    .slot-item {
        width: 90px !important;
        min-width: 90px !important;
        height: 90px !important;
        flex-shrink: 0 !important;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .slot-item.winner {
        animation: slotWinnerPulse 0.6s ease-in-out forwards;
    }
    
    @keyframes slotWinnerPulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.2);
        }
        100% {
            transform: scale(1.1);
        }
    }
    
    .slot-avatar-frame {
        width: 100%;
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        background: rgba(0, 0, 0, 0.2);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(5px);
    }
    
    .slot-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНАЯ АДАПТАЦИЯ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ (≤480px)
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* Прелоадер для очень маленьких экранов */
    .loader-container {
        gap: 25px;
        padding: 25px 15px;
    }
    
    .loader-logo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .loader-logo {
        width: 120px;
        height: 120px;
    }
    
    .loader-title {
        font-size: 28px;
        gap: 8px;
    }
    
    .loader-progress-text {
        font-size: 14px;
    }
    
    .transition-logo {
        width: 80px;
        height: 80px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .particle-1 {
        width: 5px;
        height: 5px;
    }
    
    .particle-2,
    .particle-5 {
        width: 3px;
        height: 3px;
    }
    
    .particle-3,
    .particle-4 {
        width: 4px;
        height: 4px;
    }
    
    .rooms-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .room-name {
        font-size: 18px;
    }
    
    .status-value {
        font-size: 16px;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-stats-row {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .neon-balance-display {
        font-size: 24px;
    }
    
    .mobile-bottom-nav {
        height: 65px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    /* ─────── РЕЗУЛЬТАТ ИГРЫ - Малые экраны ─────── */
    .winner-result-card {
        padding: 16px 12px !important;
        gap: 16px;
        border-radius: 16px;
    }
    
    .winner-trophy-icon {
        width: 60px;
        height: 60px;
    }
    
    .winner-title {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    .winner-subtitle {
        font-size: 10px;
    }
    
    .winner-avatar-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .winner-avatar-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .winner-username {
        font-size: 14px;
    }
    
    .winner-info-main {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .winner-info-icon {
        width: 24px;
        height: 24px;
    }
    
    .winner-info-label {
        font-size: 10px;
    }
    
    .winner-info-value {
        font-size: 20px;
    }
    
    .winner-info-secondary {
        gap: 8px;
    }
    
    .winner-info-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .winner-info-icon-small {
        width: 16px;
        height: 16px;
    }
    
    .winner-info-label-small {
        font-size: 9px;
    }
    
    .winner-info-value-small {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding-bottom: 60px !important;
    }
    
    .mobile-bottom-nav {
        height: 60px;
        padding: 0 8px;
    }
    
    .mobile-nav-item {
        padding: 6px;
    }
    
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    .mobile-chat-fab,
    .mobile-action-buttons {
        bottom: 75px;
    }
    
    .mobile-chat-fab {
        width: 48px;
        height: 48px;
    }
    
    .mobile-action-btn {
        width: 42px;
        height: 42px;
    }
    
    /* ─────── РЕЗУЛЬТАТ ИГРЫ - Ландшафт ─────── */
    .winner-result-card {
        flex-direction: row !important;
        padding: 16px 20px !important;
        gap: 20px;
    }
    
    .winner-left-section {
        flex-direction: row !important;
        align-items: center !important;
        width: auto;
        flex-shrink: 0;
    }
    
    .winner-trophy-icon {
        width: 50px;
        height: 50px;
    }
    
    .winner-title-section {
        text-align: left;
    }
    
    .winner-title {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .winner-subtitle {
        font-size: 11px;
    }
    
    .winner-center-section {
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px;
    }
    
    .winner-avatar-section {
        flex-direction: row !important;
        gap: 10px;
    }
    
    .winner-avatar-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 50% !important;
        overflow: hidden !important;
    }
    
    .winner-avatar-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    
    .winner-username {
        font-size: 14px;
        text-align: left;
    }
    
    .winner-info-grid {
        flex-direction: row !important;
        gap: 12px;
    }
    
    .winner-info-main {
        flex: 1;
        padding: 10px 12px;
    }
    
    .winner-info-value {
        font-size: 18px;
    }
    
    .winner-info-secondary {
        flex-direction: row !important;
        flex: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ ЗАГРУЗЧИКА АВАТАРА
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .upload-avatar-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .upload-avatar-zone {
        padding: 24px 16px;
        min-height: 200px;
    }
    
    .upload-avatar-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 16px;
    }
    
    .upload-avatar-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .upload-avatar-title {
        font-size: 16px;
    }
    
    .upload-avatar-subtitle {
        font-size: 13px;
    }
    
    .upload-avatar-formats {
        font-size: 11px;
    }
    
    .upload-preview-image-container {
        width: 150px;
        height: 150px;
    }
    
    .upload-preview-filename {
        font-size: 13px;
    }
    
    .upload-preview-filesize,
    .upload-preview-filetype {
        font-size: 11px;
    }
    
    .btn-upload-avatar {
        width: 100%;
    }
}

/* ════════════════════════════════════════════════════════════
   FOOTER CONTACTS - Мобильная адаптация
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .footer-contacts-section {
        padding: 20px 0 15px;
    }

    .footer-contacts-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-contacts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-contact-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .footer-contact-icon {
        width: 36px;
        height: 36px;
    }

    .footer-contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-contact-content h4 {
        font-size: 13px;
    }

    .footer-contact-content p {
        font-size: 11px;
    }
}

/* ════════════════════════════════════════════════════════════
   СБРОС МОБИЛЬНЫХ СТИЛЕЙ ДЛЯ ДЕСКТОПА (min-width: 769px)
   ════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    /* Убираем мобильную навигацию */
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-chat-fab {
        display: none !important;
    }
    
    /* Сбрасываем стили для boss-card, pretender-section, recent-card */
    .boss-card,
    .pretender-section,
    .recent-card {
        display: block !important;
        order: unset !important;
        width: auto !important;
        margin-bottom: 0 !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        left: auto !important;
        top: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* Восстанавливаем десктопный layout */
    .game-center {
        padding: 20px !important;
    }
    
    /* Убеждаемся что sidebar видим на больших экранах */
    .game-sidebar {
        display: block !important;
    }
    
    /* Сбрасываем мобильные стили для элементов игры */
    .countdown-container,
    .slot-machine,
    .game-status,
    .bet-form {
        width: auto !important;
        max-width: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FKWALLET PAYMENT MODALS - MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .deposit-modal,
    .withdrawal-modal,
    .fkwallet-loading-modal,
    .fkwallet-instruction-modal {
        max-width: 95%;
        max-height: 90vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .fkwallet-instruction-modal .modal-body {
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
    }
    
    .deposit-modal .modal-header h2,
    .withdrawal-modal .modal-header h2,
    .fkwallet-instruction-modal .modal-header h2 {
        font-size: 20px;
        gap: 8px;
    }
    
    .deposit-modal .modal-header svg,
    .withdrawal-modal .modal-header svg {
        width: 20px;
        height: 20px;
    }
    
    .fkwallet-loading-modal {
        padding: 40px 24px;
    }
    
    .loader {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .loading-title {
        font-size: 18px;
    }
    
    .loading-subtitle {
        font-size: 13px;
    }
    
    .fkwallet-instruction-modal .modal-header {
        padding: 20px 20px;
    }
    
    .fkwallet-instruction-modal .modal-header h2 {
        font-size: 20px;
    }
    
    .fkwallet-instruction-modal .modal-body {
        padding: 20px;
    }
    
    .payment-notification {
        padding: 12px;
        font-size: 13px;
    }
    
    .instruction-step {
        padding: 12px;
        gap: 12px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    .btn-p2p-link {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .payment-timer {
        padding: 12px 14px;
        font-size: 13px;
        margin: 16px 0;
    }
    
    .payment-timer strong {
        font-size: 14px;
    }
    
    .btn-cancel-payment {
        padding: 12px 20px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .fkwallet-success-modal,
    .fkwallet-cancelled-modal {
        max-width: 95%;
        border-radius: 20px;
    }
    
    .fkwallet-success-modal .modal-body,
    .fkwallet-cancelled-modal .modal-body {
        padding: 30px 20px;
        gap: 20px;
    }
    
    .cancelled-modal-container {
        padding: 40px 20px 30px;
        gap: 24px;
    }
    
    .modal-close-modern {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
    
    .modal-close-modern svg {
        width: 18px;
        height: 18px;
    }
    
    .cancelled-icon-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .cancelled-icon-circle {
        width: 120px;
        height: 120px;
    }
    
    .cancelled-icon-main {
        width: 120px;
        height: 120px;
    }
    
    .success-icon,
    .cancelled-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-icon svg,
    .cancelled-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .cancelled-title {
        font-size: 22px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .title-icon {
        width: 24px;
        height: 24px;
    }
    
    .cancelled-message {
        font-size: 14px;
        line-height: 1.6;
        gap: 6px;
    }
    
    .success-message,
    .cancelled-message {
        font-size: 14px;
    }
    
    .btn-close-cancelled-modern {
        padding: 14px 32px;
        font-size: 15px;
        width: 100%;
        min-width: auto;
    }
    
    .btn-close-success,
    .btn-close-cancelled {
        padding: 12px 28px;
        font-size: 15px;
        width: 100%;
    }
    
    .sparkle {
        width: 4px;
        height: 4px;
    }
    
    .sparkle-2 {
        width: 3px;
        height: 3px;
    }
    
    .sparkle-3 {
        width: 3px;
        height: 3px;
    }
    
    @media (max-width: 480px) {
        .cancelled-modal-container {
            padding: 30px 15px 25px;
            gap: 20px;
        }
        
        .cancelled-icon-wrapper {
            width: 100px;
            height: 100px;
        }
        
        .cancelled-icon-circle {
            width: 100px;
            height: 100px;
        }
        
        .cancelled-icon-main {
            width: 100px;
            height: 100px;
        }
        
        .cancelled-title {
            font-size: 20px;
        }
        
        .cancelled-message {
            font-size: 13px;
        }
        
        .btn-close-cancelled-modern {
            padding: 12px 24px;
            font-size: 14px;
        }
    }
    
    .payment-info {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .payment-info p {
        font-size: 13px;
        margin: 6px 0;
    }
    
    .amount-input-wrapper input {
        padding: 12px 45px 12px 12px;
        font-size: 15px;
    }
    
    .input-currency {
        right: 12px;
        font-size: 15px;
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .quick-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .payment-method-selection {
        margin: 20px 0;
    }
    
    .payment-method-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-method-card {
        padding: 14px 10px;
        gap: 8px;
    }
    
    .payment-method-check {
        width: 20px;
        height: 20px;
        top: 6px;
        right: 6px;
    }
    
    .payment-method-check svg {
        width: 12px;
        height: 12px;
    }
    
    .payment-logo {
        width: 40px;
        height: 40px;
    }
    
    .payment-name {
        font-size: 14px;
    }
    
    .payment-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .amount-hint {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .btn-deposit,
    .btn-withdrawal {
        padding: 14px 20px;
        font-size: 15px;
        margin-top: 16px;
    }
    
    .btn-deposit svg,
    .btn-withdrawal svg {
        width: 18px;
        height: 18px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* Balance Actions Mobile */
    .balance-actions-card {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .balance-action-btns {
        gap: 10px;
    }
    
    .balance-action-btn {
        padding: 10px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    .balance-action-btn svg {
        width: 18px;
        height: 18px;
    }
}
