/* Floating Challenge (Top Right) */
.floating-challenge {
    position: fixed;
    top: 80px; /* Below logout button */
    right: 20px;
    width: 280px;
    z-index: 100;
}

/* Sidebar Challenge (Subtle) */
.sidebar-challenge {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-challenge h4 {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.challenge-loading-mini {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 0.9em;
}

.challenge-language-mini {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 8px;
}

.challenge-phrase-mini {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 10px 0 15px 0;
}

.challenge-actions-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.use-challenge-btn-mini {
    background: #ff006e;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.use-challenge-btn-mini:hover {
    background: #ff2e8a;
    transform: translateY(-1px);
}

.view-leaderboard-link {
    text-align: center;
    color: #666;
    font-size: 0.85em;
    text-decoration: none;
    padding: 8px;
    transition: color 0.3s ease;
}

.view-leaderboard-link:hover {
    color: #ff006e;
}

/* Mobile: Hide floating challenge or show at bottom */
@media (max-width: 968px) {
    .floating-challenge {
        position: static;
        width: 100%;
        margin: 20px auto;
        max-width: 600px;
    }
    
    .sidebar-challenge {
        padding: 15px;
    }
    
    .challenge-phrase-mini {
        font-size: 1.1em;
    }
}