/* wheel-icon.css - ULTRA LIQUID GLASS STYLE (как в навигации) */

.profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 6px;               
}

/* wheel-icon.css - ULTRA LIQUID GLASS STYLE (УМЕНЬШЕННЫЙ РАЗМЕР) */

.wheel-mini-btn {
    /* УМЕНЬШАЕМ РАЗМЕРЫ КНОПКИ */
    border-radius: 15px !important; /* Было 18px */
    
    /* Уменьшаем внутренние отступы */
    padding: 0 !important; /* Важно для контроля размеров */
}

.wheel-mini-content {
    padding: 5px 12px !important; /* Было 6px 14px - УМЕНЬШАЕМ */
    gap: 6px !important; /* Было 8px - УМЕНЬШАЕМ */
    min-width: 90px !important; /* Было 110px - УМЕНЬШАЕМ */
    height: 28px !important; /* Было 32px - УМЕНЬШАЕМ */
}

.wheel-mini-icon {
    font-size: 13px !important; /* Было 15px - УМЕНЬШАЕМ */
}

.wheel-mini-text {
    font-size: 11px !important; /* Было 12px - УМЕНЬШАЕМ */
    letter-spacing: 0.2px !important; /* Было 0.3px - УМЕНЬШАЕМ */
}

/* Уменьшаем акриловый слой */
.wheel-mini-btn::before {
    top: 0.4px !important;
    left: 0.4px !important;
    right: 0.4px !important;
    bottom: 0.4px !important;
    border-radius: 14.6px !important; /* Было 17.5px */
}

/* Эффект влажного стекла сверху */
.wheel-mini-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        transparent 100%
    );
    border-radius: 18px 18px 8px 8px;
    pointer-events: none;
    z-index: -1;
}

.wheel-mini-content {
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
    height: 32px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.wheel-mini-icon {
    font-size: 15px;
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.wheel-mini-text {
    font-size: 12px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.75);
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-align: center;
    flex-grow: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* Эффект наведения — плавающее стекло */
.wheel-mini-btn:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(28px) saturate(190%) brightness(1.07);
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.07);
    
    border-color: rgba(255, 255, 255, 0.55);
    border-top-color: rgba(255, 255, 255, 0.7);
    
    transform: translateY(-2px) scale(1.02);
    
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 0 0 0.8px rgba(255, 255, 255, 0.12),
        inset 0 0.6px 0 rgba(255, 255, 255, 0.8),
        inset 0 -0.6px 0 rgba(0, 0, 0, 0.06);
}

/* Нажатие */
.wheel-mini-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.55) !important;
}

/* Стиль для заблокированной кнопки */
.wheel-mini-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    backdrop-filter: blur(15px) saturate(120%) brightness(0.9);
    -webkit-backdrop-filter: blur(15px) saturate(120%) brightness(0.9);
}

/* Анимация вращения для иконки */
@keyframes rotate-smooth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wheel-mini-icon {
    animation: rotate-smooth 12s linear infinite;
    animation-play-state: running;
}

.wheel-mini-btn:hover .wheel-mini-icon {
    animation-duration: 6s;
}

/* Цветовые вариации в зависимости от состояния таймера */
.wheel-mini-btn.timer-active {
    border-color: rgba(255, 100, 100, 0.25);
    background: rgba(255, 255, 255, 0.7) !important;
}

.wheel-mini-btn.timer-active .wheel-mini-text {
    color: rgba(255, 60, 60, 0.9);
}

.wheel-mini-btn.timer-active .wheel-mini-icon {
    color: rgba(255, 60, 60, 0.9);
}

/* Анимация для готовой кнопки */
.wheel-mini-btn.ready {
    animation: pulse-liquid 2s infinite alternate;
}

@keyframes pulse-liquid {
    0% {
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.08),
            0 2px 6px rgba(0, 0, 0, 0.04),
            inset 0 0.4px 0 rgba(255, 255, 255, 0.7);
    }
    100% {
        box-shadow: 
            0 6px 20px rgba(0, 122, 255, 0.15),
            0 2px 6px rgba(0, 122, 255, 0.08),
            0 0 0 1px rgba(0, 122, 255, 0.1),
            inset 0 0.4px 0 rgba(255, 255, 255, 0.7);
    }
}

.wheel-mini-btn.ready .wheel-mini-text {
    color: #007AFF;
}

.wheel-mini-btn.ready .wheel-mini-icon {
    color: #007AFF;
}

/* ============= ТЕМНАЯ ТЕМА ============= */

@media (prefers-color-scheme: dark) {
    .wheel-mini-btn {
        background: rgba(28, 28, 28, 0.6) !important;
        backdrop-filter: blur(25px) saturate(160%) brightness(0.95);
        -webkit-backdrop-filter: blur(25px) saturate(160%) brightness(0.95);
        
        color: rgba(255, 255, 255, 0.8);
        
        border: 0.6px solid rgba(255, 255, 255, 0.1);
        border-top: 0.8px solid rgba(255, 255, 255, 0.15);
        border-bottom: 0.5px solid rgba(0, 0, 0, 0.25);
        
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.25),
            0 2px 6px rgba(0, 0, 0, 0.15),
            inset 0 0.4px 0 rgba(255, 255, 255, 0.1),
            inset 0 -0.4px 0 rgba(0, 0, 0, 0.3);
    }
    
    .wheel-mini-btn::before {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.04) 100%
        );
    }
    
    .wheel-mini-btn::after {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 40%,
            transparent 100%
        );
    }
    
    .wheel-mini-icon {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .wheel-mini-text {
        color: rgba(255, 255, 255, 0.85);
    }
    
    .wheel-mini-btn:hover {
        background: rgba(35, 35, 35, 0.7) !important;
        backdrop-filter: blur(28px) saturate(170%) brightness(0.98);
        -webkit-backdrop-filter: blur(28px) saturate(170%) brightness(0.98);
        
        border-color: rgba(255, 255, 255, 0.18);
        border-top-color: rgba(255, 255, 255, 0.22);
        
        color: rgba(255, 255, 255, 0.95);
    }
    
    .wheel-mini-btn.timer-active {
        border-color: rgba(255, 100, 100, 0.3);
        background: rgba(40, 30, 30, 0.7) !important;
    }
    
    .wheel-mini-btn.timer-active .wheel-mini-text,
    .wheel-mini-btn.timer-active .wheel-mini-icon {
        color: rgba(255, 150, 150, 0.95);
    }
    
    .wheel-mini-btn.ready .wheel-mini-text,
    .wheel-mini-btn.ready .wheel-mini-icon {
        color: #0A84FF;
    }
}

/* Адаптивность (без изменений размеров) */
@media (max-width: 768px) {
    .wheel-mini-btn {
        backdrop-filter: blur(20px) saturate(170%) brightness(1.05);
        -webkit-backdrop-filter: blur(20px) saturate(170%) brightness(1.05);
    }
}

@media (max-width: 480px) {
    .wheel-mini-btn {
        backdrop-filter: blur(15px) saturate(160%) brightness(1.05);
        -webkit-backdrop-filter: blur(15px) saturate(160%) brightness(1.05);
    }
}